:root {
  --bg: #05070d;
  --card: #0d111c;
  --muted: #9aa4b2;
  --text: #f7f8fb;
  --line: #202738;
  --primary: #8b5cf6;
  --primary-2: #38bdf8;
  --danger: #ef4444;
  --ok: #22c55e;
}

* { box-sizing: border-box; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: rgba(15,23,42,.72); }
*::-webkit-scrollbar-thumb { background: rgba(139,92,246,.72); border-radius: 999px; border: 2px solid rgba(15,23,42,.72); }
*::-webkit-scrollbar-thumb:hover { background: rgba(139,92,246,.95); }
* { scrollbar-width: thin; scrollbar-color: rgba(139,92,246,.72) rgba(15,23,42,.72); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.nav { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(5, 7, 13, .86); backdrop-filter: blur(16px); }
.nav-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.logo { width: 36px; height: 36px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); display: grid; place-items: center; color: white; font-weight: 900; }
.nav-links { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 14px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-lang { color: var(--muted); font-size: 13px; }
.language-form select { width: auto; min-width: 78px; border: 0; background: transparent; color: var(--muted); padding: 6px 4px; font-size: 13px; font-weight: 700; }
.language-form option { background: #0b111e; color: var(--text); }
.btn, button.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: #111827; color: var(--text); padding: 10px 15px; border-radius: 12px; font-weight: 700; cursor: pointer; }
.btn.primary { border-color: transparent; background: var(--primary); color: white; }
.btn.accent, .credits-btn { color: white; border-color: rgba(139,92,246,.45); background: rgba(139,92,246,.16); }
.btn.ghost { color: #a7c6ed; background: transparent; }
.btn.small { padding: 7px 10px; border-radius: 9px; font-size: 12px; }
.btn.danger-outline { border-color: rgba(239,68,68,.45); color: #fecaca; background: rgba(239,68,68,.08); }
.btn svg { width: 15px; height: 15px; }
.btn.danger { border-color: rgba(239, 68, 68, .35); color: #fecaca; }
.hero { min-height: calc(100vh - 72px); display: grid; align-items: center; padding: 82px 0; background: radial-gradient(circle at 50% 10%, rgba(139,92,246,.28), transparent 42%); }
.badge { display: inline-flex; gap: 8px; align-items: center; color: #c4b5fd; border: 1px solid rgba(139,92,246,.28); background: rgba(139,92,246,.12); padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; }
h1 { font-size: clamp(42px, 7vw, 78px); line-height: 1; margin: 18px 0; letter-spacing: 0; }
h2 { font-size: clamp(30px, 4vw, 48px); margin: 0 0 14px; }
h3 { margin: 0 0 8px; }
.lead { color: var(--muted); font-size: 19px; line-height: 1.7; max-width: 720px; }
.hero-form { margin-top: 38px; max-width: 760px; border: 1px solid var(--line); background: rgba(13, 17, 28, .82); border-radius: 20px; padding: 8px; box-shadow: 0 0 80px rgba(139,92,246,.22); }
.hero-form textarea { width: 100%; min-height: 108px; resize: vertical; border: 0; outline: 0; background: transparent; color: var(--text); padding: 16px; font: inherit; }
.hero-form footer { display: flex; justify-content: flex-end; }
.section { padding: 84px 0; }
.section-head { text-align: center; margin-bottom: 38px; }
.muted { color: var(--muted); }
.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.card.highlight { border-color: rgba(139,92,246,.55); box-shadow: 0 0 38px rgba(139,92,246,.16); }
.price { font-size: 42px; font-weight: 900; margin: 12px 0 4px; }
.list { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; color: var(--muted); }
.list li:before { content: "\\2713"; color: var(--primary); font-weight: 900; margin-right: 8px; }
.dash { padding: 36px 0 84px; }
.project-dash { padding-top: 26px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 24px 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.stat strong { display: block; font-size: 30px; margin-top: 4px; color: var(--primary-2); }
.form-card { max-width: 460px; margin: 70px auto; }
label { display: block; margin-bottom: 8px; color: #d7dce5; font-weight: 700; font-size: 14px; }
input, textarea, select { width: 100%; border: 1px solid var(--line); background: #0a0f1a; color: var(--text); border-radius: 12px; padding: 12px 14px; font: inherit; }
.field { margin-bottom: 16px; }
.alert { border: 1px solid rgba(239,68,68,.35); background: rgba(239,68,68,.12); color: #fecaca; padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; }
.status { display: inline-flex; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 800; background: rgba(139,92,246,.13); color: #c4b5fd; }
table { width: 100%; border-collapse: collapse; overflow: hidden; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.footer { border-top: 1px solid var(--line); padding: 30px 0; color: var(--muted); }
.admin-title { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.admin-title h1 { font-size: 26px; margin: 0 0 4px; }
.admin-title-icon { width: 32px; height: 32px; display: grid; place-items: center; color: #a78bfa; border-radius: 10px; background: rgba(139,92,246,.24); }
.admin-title-icon svg { width: 19px; height: 19px; }
.admin-shell { display: grid; grid-template-columns: 188px minmax(0, 1fr); gap: 22px; align-items: start; }
.admin-sidebar { position: sticky; top: 92px; border: 1px solid var(--line); background: #0b111e; border-radius: 14px; padding: 12px 0; overflow: hidden; }
.admin-nav-item { display: flex; align-items: center; gap: 12px; min-height: 36px; padding: 9px 15px; color: #7fa2cf; font-size: 13px; border-right: 2px solid transparent; }
.admin-nav-item svg { width: 16px; height: 16px; color: #8ba0bd; flex: 0 0 auto; }
.admin-nav-item.active, .admin-nav-item:hover { color: #9b5cff; background: rgba(139,92,246,.16); border-right-color: #9b5cff; }
.admin-nav-item.active svg, .admin-nav-item:hover svg { color: #9b5cff; }
.admin-main { min-width: 0; }
.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
.admin-stat { min-height: 132px; background: #0b111e; border: 1px solid #1b2941; border-radius: 14px; padding: 24px; display: grid; align-content: center; gap: 8px; }
.admin-stat svg { width: 22px; height: 22px; color: #9b5cff; }
.admin-stat:nth-child(3) svg { color: #2dd4bf; }
.admin-stat:nth-child(4) svg { color: #fb923c; }
.admin-stat strong { display: block; font-size: 30px; line-height: 1; color: white; }
.admin-stat span { color: #80a6d2; font-size: 13px; }
.admin-section-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.projects-topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.projects-topbar h1 { font-size: 26px; margin: 0 0 6px; }
.projects-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.plan-panel { border: 1px solid #1b2941; background: #0b111e; border-radius: 12px; margin-bottom: 26px; overflow: hidden; }
.plan-panel summary { list-style: none; cursor: pointer; }
.plan-panel summary::-webkit-details-marker { display: none; }
.plan-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 18px; }
.plan-panel[open] .plan-strip { border-bottom: 1px solid #1b2941; }
.plan-panel[open] .chevron { transform: rotate(180deg); display: inline-block; }
.plan-left { display: flex; align-items: center; gap: 12px; }
.plan-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: #9b5cff; background: rgba(139,92,246,.18); }
.plan-icon svg { width: 17px; height: 17px; }
.plan-left strong { margin-right: 8px; font-size: 13px; }
.plan-left span:not(.plan-icon) { color: #8aa7ca; font-size: 12px; background: rgba(139,92,246,.12); padding: 2px 8px; border-radius: 999px; }
.plan-left p { margin: 3px 0 0; color: #80a6d2; font-size: 12px; }
.plan-usage { display: flex; align-items: center; gap: 7px; color: #9f8df8; font-size: 12px; white-space: nowrap; }
.plan-usage svg { width: 14px; height: 14px; }
.plan-details-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; padding: 20px; }
.plan-details-grid h3 { font-size: 14px; margin: 0 0 12px; }
.plan-detail-card { border: 1px solid #1b2941; border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.plan-detail-card strong { display: block; font-size: 20px; margin-bottom: 4px; }
.plan-detail-card span { color: #80a6d2; }
.plan-detail-card ul { columns: 2; list-style: none; padding: 0; margin: 14px 0 0; color: #80a6d2; font-size: 12px; }
.plan-detail-card li { margin-bottom: 8px; }
.plan-detail-card li:before { content: "+"; color: #9b5cff; margin-right: 8px; }
.usage-limits { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.usage-limits article { background: #121a2a; border-radius: 12px; min-height: 72px; display: grid; place-items: center; align-content: center; gap: 3px; text-align: center; color: #80a6d2; font-size: 11px; }
.usage-limits b { color: #fbbf24; font-size: 13px; }
.usage-limits strong { color: white; font-size: 13px; }
.credits-bar-label { display: flex; justify-content: space-between; color: #80a6d2; font-size: 12px; margin-bottom: 8px; }
.credits-bar-label strong { color: white; }
.credits-bar { height: 8px; background: #172033; border-radius: 999px; overflow: hidden; }
.credits-bar span { display: block; height: 100%; background: #ef4444; border-radius: inherit; }
.low-credit { color: #facc15; font-size: 12px; margin: 8px 0 0; }
.plan-details-grid aside { display: grid; align-content: start; gap: 10px; }
.project-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; }
.project-stats article { min-height: 82px; display: grid; align-content: center; gap: 8px; background: #0b111e; border: 1px solid #1b2941; border-radius: 12px; padding: 18px; }
.project-stats span { color: #80a6d2; font-size: 12px; }
.project-stats strong { color: #9b5cff; font-size: 26px; line-height: 1; }
.project-stats strong.green { color: #34d399; }
.project-stats strong.yellow { color: #facc15; }
.project-stats strong.blue { color: #60a5fa; }
.new-project-panel { display: none; border: 1px solid #1b2941; background: #0b111e; border-radius: 12px; padding: 12px; margin-bottom: 24px; }
.new-project-panel:target { display: block; }
.new-project-panel form { display: grid; gap: 10px; }
.new-project-panel textarea { min-height: 86px; }
.project-controls { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.search-box { width: 205px; height: 34px; margin: 0; display: flex; align-items: center; gap: 9px; border: 1px solid #1b2941; background: #0b111e; border-radius: 9px; padding: 0 12px; color: #8aa7ca; }
.search-box svg { width: 15px; height: 15px; flex: 0 0 auto; }
.search-box input { border: 0; padding: 0; background: transparent; font-size: 13px; }
.status-tabs { height: 34px; display: flex; align-items: center; gap: 3px; border: 1px solid #1b2941; background: #0b111e; border-radius: 9px; padding: 4px; }
.status-tabs button { border: 0; background: transparent; color: #80a6d2; height: 26px; padding: 0 11px; border-radius: 8px; font-size: 11px; cursor: pointer; }
.status-tabs button.active { color: white; background: #8b5cf6; }
.project-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 318px)); gap: 18px; align-items: start; margin-bottom: 32px; }
.project-tile { min-height: 184px; border: 1px solid #1b2941; background: #0b111e; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.ready-badge { width: fit-content; display: inline-flex; align-items: center; gap: 6px; background: rgba(16,185,129,.13); color: #34d399; border-radius: 999px; padding: 5px 9px; font-size: 11px; font-weight: 800; }
.ready-badge svg { width: 13px; height: 13px; }
.project-tile h3 { font-size: 15px; margin: 0; }
.project-tile p { color: #80a6d2; font-size: 13px; line-height: 1.5; margin: 0; flex: 1; }
.project-meta { display: flex; align-items: center; justify-content: space-between; color: #80a6d2; font-size: 11px; gap: 8px; }
.project-card-actions { display: flex; align-items: center; gap: 8px; }
.project-card-actions .btn { flex: 1; padding: 8px 12px; font-size: 12px; }
.icon-btn { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #1b2941; background: #0a0f1a; color: #80a6d2; border-radius: 10px; cursor: pointer; }
.icon-btn.success { color: #34d399; border-color: rgba(16,185,129,.3); background: rgba(16,185,129,.08); }
.icon-btn svg { width: 14px; height: 14px; }
.deleted-projects-card { border: 1px solid rgba(239,68,68,.3); background: rgba(127,29,29,.1); border-radius: 12px; padding: 18px; margin: 0 0 32px; }
.deleted-projects-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.deleted-projects-card h2 { font-size: 18px; margin: 0 0 6px; }
.deleted-projects-card code { color: #fecaca; background: rgba(239,68,68,.1); border-radius: 6px; padding: 3px 6px; }
.deleted-projects-card header span { color: #fecaca; border: 1px solid rgba(239,68,68,.35); border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 900; white-space: nowrap; }
.deleted-project-list { display: grid; gap: 10px; }
.deleted-project-list article { display: flex; justify-content: space-between; align-items: center; gap: 14px; border: 1px solid #1b2941; background: #0b111e; border-radius: 10px; padding: 12px; }
.deleted-project-list p { margin: 4px 0 0; color: #80a6d2; font-size: 12px; }
.activity-card { border: 1px solid #1b2941; background: #0b111e; border-radius: 12px; overflow: hidden; margin-top: 8px; }
.activity-card header { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid #1b2941; }
.activity-title { display: flex; align-items: center; gap: 12px; }
.activity-title h3 { font-size: 14px; margin: 0; }
.activity-title p { margin: 2px 0 0; color: #80a6d2; font-size: 11px; }
.activity-icon { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 999px; background: rgba(139,92,246,.18); color: #9b5cff; }
.activity-icon svg { width: 14px; height: 14px; }
.refresh { color: #80a6d2; }
.activity-tabs { display: flex; align-items: center; gap: 22px; padding: 11px 16px; border-bottom: 1px solid #1b2941; color: #80a6d2; font-size: 11px; }
.activity-tabs span.active { color: white; background: #8b5cf6; border-radius: 999px; padding: 7px 12px; }
.activity-list { border-right: 3px solid #8b5cf6; }
.activity-day { padding: 12px 16px 6px; color: #7388a7; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.activity-row { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: start; padding: 13px 16px 18px; }
.activity-dot { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 999px; color: #34d399; background: rgba(16,185,129,.14); }
.activity-dot svg { width: 13px; height: 13px; }
.activity-row h4 { margin: 0 0 3px; color: #9b5cff; font-size: 13px; }
.activity-row p, .activity-row small { margin: 0; color: #80a6d2; font-size: 12px; }
.success-pill { color: #34d399; background: rgba(16,185,129,.13); border-radius: 999px; padding: 4px 8px; font-size: 10px; font-weight: 900; }
.agent-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 12px 0 32px; }
.social-login-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.swagger-ui { filter: invert(.92) hue-rotate(180deg); background: white; border-radius: 10px; padding: 12px; }
.page-library, .feature-page, .faq-page { padding: 42px 0 80px; }
.page-hero.compact { margin-bottom: 28px; }
.page-hero h1 { font-size: 32px; margin: 0 0 8px; }
.page-hero p { color: #80a6d2; margin: 0; }
.page-hero.centered { text-align: center; max-width: 720px; padding: 24px 0 46px; }
.page-hero.centered h1 { font-size: 40px; }
.section-kicker { color: #80a6d2; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; font-weight: 900; margin: 0 0 18px; }
.section-kicker.purple { color: #9b5cff; }
.library-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.search-box.wide { width: 295px; }
.template-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.template-card { border: 1px solid #1b2941; background: #0b111e; border-radius: 12px; overflow: hidden; }
.template-media { height: 138px; background-size: cover; background-position: center; position: relative; }
.template-media span { position: absolute; right: 10px; top: 10px; color: white; background: #8b5cf6; border-radius: 999px; padding: 5px 8px; font-size: 10px; font-weight: 900; }
.template-body { padding: 15px; }
.template-title-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.template-title-row h3 { font-size: 14px; margin: 0; }
.template-title-row small { color: #80a6d2; background: #111827; border-radius: 999px; padding: 3px 7px; }
.template-body p { color: #80a6d2; font-size: 12px; line-height: 1.55; min-height: 40px; }
.template-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #80a6d2; font-size: 11px; }
.template-footer form { margin: 0; }
.template-footer .btn { padding: 7px 10px; font-size: 11px; border-radius: 9px; }
.library-empty { margin-top: 18px; border: 1px dashed #263956; background: #0b111e; color: #80a6d2; border-radius: 12px; padding: 26px; text-align: center; }
.library-empty strong { display: block; color: white; margin-bottom: 6px; }
.library-empty p { margin: 0; }
.feature-grid-page { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; padding-bottom: 60px; }
.feature-box { min-height: 142px; border: 1px solid #1b2941; background: #0b111e; border-radius: 12px; padding: 22px; }
.feature-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: #111827; color: #9b5cff; font-size: 11px; font-weight: 900; margin-bottom: 22px; }
.feature-box h3 { font-size: 13px; }
.feature-box p { color: #80a6d2; font-size: 12px; line-height: 1.55; }
.faq-list { max-width: 720px; padding-bottom: 70px; }
.faq-item { border: 1px solid #1b2941; background: #0b111e; border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 15px 18px; display: flex; justify-content: space-between; gap: 14px; font-weight: 800; font-size: 13px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { border-bottom: 1px solid #1b2941; }
.faq-item p { color: #80a6d2; font-size: 13px; line-height: 1.65; padding: 16px 18px; margin: 0; }
.nav-dashboard { display: inline-flex; align-items: center; gap: 8px; color: white; font-size: 13px; font-weight: 800; }
.nav-dashboard svg { width: 15px; height: 15px; }
.profile-menu { position: relative; }
.profile-menu summary { list-style: none; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgba(139,92,246,.55); color: #a78bfa; background: rgba(139,92,246,.18); border-radius: 999px; cursor: pointer; }
.profile-menu summary::-webkit-details-marker { display: none; }
.profile-menu summary svg { width: 17px; height: 17px; }
.profile-dropdown { position: absolute; right: 0; top: 42px; width: 182px; border: 1px solid #1b2941; background: #0b111e; border-radius: 10px; padding: 8px; box-shadow: 0 18px 50px rgba(0,0,0,.35); z-index: 50; }
.profile-dropdown a, .profile-dropdown button { width: 100%; min-height: 32px; display: flex; align-items: center; gap: 10px; border: 0; background: transparent; color: white; text-align: left; padding: 8px 6px; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; border-radius: 7px; }
.profile-dropdown a:hover, .profile-dropdown button:hover { background: rgba(139,92,246,.12); }
.profile-dropdown svg { width: 15px; height: 15px; }
.profile-dropdown button { color: #ef4444; }
.profile-dropdown form { margin: 0; }
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 70; place-items: center; padding: 24px; }
.modal-overlay:target { display: grid; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(1, 4, 10, .72); backdrop-filter: blur(8px); }
.new-project-modal { position: relative; width: min(462px, 100%); border: 1px solid #1b2941; background: #0d1422; border-radius: 14px; padding: 28px; box-shadow: 0 24px 70px rgba(0,0,0,.52); }
.new-project-modal header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.new-project-modal h2 { margin: 0; font-size: 20px; }
.new-project-modal header a { color: #8aa7ca; font-size: 24px; line-height: 1; }
.new-project-modal label span { color: #80a6d2; font-weight: 500; }
.new-project-modal textarea { min-height: 96px; resize: vertical; }
.new-project-modal footer { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.page-title-row { display: flex; align-items: center; gap: 14px; margin: 0 auto 34px; max-width: 976px; }
.page-title-row h1 { font-size: 26px; margin: 0 0 4px; }
.page-title-row p { color: #80a6d2; margin: 0; }
.page-title-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 14px; background: rgba(139,92,246,.22); color: #a78bfa; }
.page-title-icon svg { width: 22px; height: 22px; }
.billing-page { padding: 28px 0 70px; }
.billing-layout { max-width: 976px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 24px; }
.billing-main { display: grid; gap: 20px; }
.billing-card, .upgrade-sidebar, .order-summary, .card-entry { border: 1px solid #1b2941; background: #0b111e; border-radius: 14px; padding: 24px; }
.billing-card h2, .upgrade-sidebar h2 { font-size: 16px; display: flex; align-items: center; gap: 10px; margin: 0; }
.billing-card h2 svg, .upgrade-sidebar h2 svg { width: 18px; height: 18px; color: #9b5cff; }
.billing-card header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.billing-card header strong { color: #80a6d2; }
.billing-credit-row { display: flex; justify-content: space-between; color: #80a6d2; margin-bottom: 12px; }
.billing-progress, .mini-progress { height: 11px; background: #182236; border-radius: 999px; overflow: hidden; }
.billing-progress span, .mini-progress span { display: block; height: 100%; background: #9b5cff; border-radius: inherit; }
.billing-card p { color: #80a6d2; margin: 10px 0 0; }
.billing-card.flush { padding: 0; overflow: hidden; }
.billing-card.flush h2 { padding: 22px 24px; border-bottom: 1px solid #1b2941; }
.usage-project-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px; padding: 16px 24px; border-bottom: 1px solid #1b2941; }
.usage-project-row b { color: #9b5cff; }
.usage-project-row span { color: #80a6d2; }
.mini-progress { height: 5px; margin-top: 8px; }
.billing-card footer { display: flex; justify-content: space-between; padding: 16px 24px; color: #80a6d2; font-size: 16px; }
.billing-card footer strong { color: white; }
.empty-state { color: #80a6d2; text-align: center; padding: 30px; }
.empty-state.tall { padding: 48px; }
.payment-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 14px 24px; border-bottom: 1px solid #1b2941; }
.upgrade-sidebar { display: grid; align-content: start; gap: 14px; }
.upgrade-card { border: 1px solid #1b2941; border-radius: 14px; padding: 18px; }
.upgrade-card header { display: flex; justify-content: space-between; align-items: center; }
.upgrade-card strong { font-size: 17px; }
.upgrade-card header span { font-size: 22px; font-weight: 900; }
.upgrade-card small { color: #80a6d2; font-size: 13px; font-weight: 500; }
.upgrade-card p { color: #9b5cff; margin: 6px 0 14px; }
.upgrade-card ul, .order-summary ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; color: #80a6d2; }
.upgrade-card li:before, .order-summary li:before { content: "\\2713"; color: #9b5cff; margin-right: 9px; }
.upgrade-card .btn { width: 100%; }
.profile-page, .checkout-page { width: min(642px, calc(100% - 32px)); margin: 0 auto; padding: 30px 0 72px; }
.back-link { color: #80a6d2; display: inline-flex; margin: 0 0 22px; }
.profile-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.profile-heading h1, .checkout-page h1 { font-size: 28px; margin: 0; }
.profile-heading p { color: #80a6d2; margin: 2px 0 0; }
.profile-heading .status { margin-left: auto; }
.profile-avatar { width: 40px; height: 40px; display: grid; place-items: center; color: #a78bfa; background: rgba(139,92,246,.18); border-radius: 13px; }
.profile-avatar svg { width: 19px; height: 19px; }
.settings-card { border: 1px solid #1b2941; background: #0b111e; border-radius: 12px; padding: 22px; margin-bottom: 18px; }
.settings-card h2 { font-size: 14px; margin: 0 0 14px; }
.settings-card p, .settings-card small { color: #80a6d2; }
.notice { border: 1px solid rgba(34,197,94,.3); background: rgba(34,197,94,.1); color: #bbf7d0; padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; }
.language-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin: 12px 0; }
.language-grid button { min-height: 34px; border: 1px solid #1b2941; border-radius: 9px; background: #0a0f1a; color: white; font-weight: 800; cursor: pointer; }
.language-grid button.active { border-color: #9b5cff; background: rgba(139,92,246,.18); }
.language-grid small { color: white; margin-right: 6px; }
.checkout-page { width: min(890px, calc(100% - 32px)); }
.checkout-grid { display: grid; grid-template-columns: 1fr 425px; gap: 28px; align-items: start; margin-top: 30px; }
.plan-choice-grid, .payment-methods, .two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan-choice { display: grid; gap: 6px; border: 1px solid #1b2941; background: #0b111e; border-radius: 12px; padding: 18px; }
.plan-choice.active, .payment-methods button.active { border-color: #9b5cff; background: rgba(139,92,246,.13); }
.plan-choice b { font-size: 26px; }
.plan-choice small, .plan-choice span { color: #80a6d2; font-size: 13px; }
.checkout-form h2, .order-summary h2 { font-size: 14px; margin: 24px 0 12px; }
.payment-methods button { min-height: 42px; border: 1px solid #1b2941; background: #0b111e; color: white; border-radius: 10px; font-weight: 800; }
.card-entry { margin-top: 20px; }
.card-entry .btn { width: 100%; }
.order-summary { padding: 28px; }
.order-summary header { display: flex; justify-content: space-between; align-items: start; border-bottom: 1px solid #1b2941; padding-bottom: 20px; margin-bottom: 20px; }
.order-summary header b { font-size: 26px; }
.order-summary p { color: #9b5cff; margin: 4px 0 0; }
.secure-note { color: #80a6d2 !important; background: #101827; border-radius: 10px; padding: 12px; }
.admin-users-panel { border: 1px solid #1b2941; background: #0b111e; border-radius: 14px; overflow: hidden; }
.admin-users-panel h2 { font-size: 16px; margin: 0; padding: 18px 22px; border-bottom: 1px solid #1b2941; }
.admin-user-row { display: grid; grid-template-columns: 44px 1fr auto auto; align-items: center; gap: 12px; padding: 16px 22px; }
.user-initial { width: 34px; height: 34px; display: grid; place-items: center; color: #a78bfa; background: rgba(139,92,246,.28); border-radius: 999px; font-weight: 900; }
.admin-user-row p { margin: 2px 0 0; color: #80a6d2; }
.role-pill { color: #9b5cff; background: rgba(139,92,246,.16); border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 900; }
.admin-user-row time { color: #80a6d2; font-size: 13px; }
.admin-template-manager { display: grid; grid-template-columns: minmax(280px, 420px) minmax(0, 1fr); gap: 18px; align-items: start; }
.admin-template-side { display: grid; gap: 18px; }
.admin-template-create, .admin-template-list, .admin-project-template-panel { border: 1px solid #1b2941; background: #0b111e; border-radius: 14px; padding: 18px; }
.admin-template-create h2, .admin-template-list h2 { font-size: 18px; margin: 0 0 16px; }
.admin-template-form { display: grid; gap: 12px; }
.load-template-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.admin-template-form.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.admin-template-form.compact textarea { grid-column: 1 / -1; min-height: 72px; }
.admin-template-form.compact button { justify-self: start; }
.inline-check { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: #80a6d2; }
.inline-check input { width: auto; }
.admin-template-list { display: grid; gap: 12px; }
.admin-template-list article, .admin-project-template-list article { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; border: 1px solid #1b2941; background: #111827; border-radius: 12px; padding: 12px; }
.admin-template-edit-form textarea { min-height: 84px; }
.template-edit-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.template-edit-footer span { color: #a78bfa; font-size: 12px; }
.admin-project-template-list { display: grid; gap: 14px; }
.admin-project-template-list article { grid-template-columns: minmax(0, 1fr) minmax(360px, 1.3fr); }
.admin-project-template-summary p, .admin-template-list p { margin: 4px 0 8px; color: #80a6d2; font-size: 13px; line-height: 1.5; }
.admin-template-list span { color: #a78bfa; font-size: 12px; }
.template-thumb { width: 100%; min-height: 82px; border-radius: 10px; background-size: cover; background-position: center; background-color: #172033; }
.template-type-list { display: grid; gap: 10px; margin-top: 14px; }
.template-type-list article { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; border: 1px solid #1b2941; background: #111827; border-radius: 10px; padding: 10px; }
.template-type-list strong { display: block; }
.template-type-list span, .template-type-list small { color: #80a6d2; font-size: 12px; }
.template-type-list form { margin: 0; }
.template-type-edit { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.template-type-actions { display: flex; justify-content: flex-end; }
.admin-agent-panel { border: 1px solid #1b2941; background: #0b111e; border-radius: 14px; padding: 22px; }
.admin-agent-panel header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; border-bottom: 1px solid #1b2941; padding-bottom: 18px; margin-bottom: 20px; }
.admin-agent-panel h2 { font-size: 18px; margin: 0 0 6px; }
.admin-agent-panel code { color: #60a5fa; background: rgba(139,92,246,.14); padding: 3px 7px; border-radius: 6px; }
.agent-status-stack { display: grid; justify-items: end; gap: 6px; color: #80a6d2; text-align: right; }
.agent-notice { border: 1px solid rgba(52,211,153,.42); background: rgba(16,185,129,.1); color: #d1fae5; border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; }
.agent-notice strong { display: block; margin-bottom: 5px; }
.agent-notice p { margin: 0; color: inherit; }
.agent-notice.danger { border-color: rgba(239,68,68,.42); background: rgba(239,68,68,.08); color: #fecaca; }
.agent-notice.warning { border-color: rgba(250,204,21,.42); background: rgba(250,204,21,.08); color: #fef3c7; }
.agent-error-box { border: 1px solid rgba(239,68,68,.35); background: rgba(239,68,68,.08); color: #fecaca; border-radius: 12px; padding: 14px; margin-bottom: 18px; }
.agent-error-box pre { white-space: pre-wrap; margin: 8px 0 0; color: #fca5a5; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.agent-refresh-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid rgba(139,92,246,.4); background: rgba(139,92,246,.08); border-radius: 12px; padding: 16px; margin-bottom: 18px; }
.agent-refresh-card p { margin: 4px 0 0; max-width: 620px; }
.agent-source-manager { border: 1px solid #1b2941; background: #08111f; border-radius: 12px; padding: 16px; margin-bottom: 18px; display: grid; gap: 14px; }
.agent-source-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.agent-source-heading p { margin: 4px 0 0; }
.agent-source-heading span { color: #a78bfa; background: rgba(139,92,246,.14); border: 1px solid rgba(139,92,246,.35); border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 900; white-space: nowrap; }
.agent-source-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.agent-source-list { display: grid; gap: 10px; }
.agent-source-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; border: 1px solid #1b2941; background: #111827; border-radius: 10px; padding: 12px; }
.agent-source-row p { margin: 4px 0 0; color: #80a6d2; overflow-wrap: anywhere; font-size: 12px; }
.agent-source-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.agent-source-actions form { margin: 0; }
.agent-source-empty { border: 1px dashed #263954; border-radius: 10px; padding: 18px; text-align: center; }
.agent-source-empty p { margin: 4px 0 0; }
.agent-schedule-form { display: grid; gap: 18px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #1b2941; background: #111827; border-radius: 12px; padding: 16px; margin: 0; }
.toggle-row small { display: block; color: #80a6d2; font-weight: 500; margin-top: 4px; }
.toggle-row input { width: auto; transform: scale(1.2); }
.agent-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; }
.time-select-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.agent-schedule-form textarea { min-height: 138px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; }
.workspace-shell { min-height: 100vh; background: #070b13; color: white; overflow: hidden; }
.workspace-top { height: 50px; border-bottom: 1px solid #1b2941; background: #0b111e; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; gap: 14px; }
.workspace-brand, .workspace-actions { display: flex; align-items: center; gap: 12px; min-width: 0; }
.workspace-brand a { color: #8aa7ca; font-weight: 900; }
.workspace-brand strong { white-space: nowrap; }
.workspace-title-button { border: 0; background: transparent; color: white; padding: 0; font: inherit; cursor: pointer; }
.workspace-title-button:hover strong { color: #a78bfa; }
.workspace-brand code, .workspace-brand .icon-only, .workspace-actions button, .workspace-action-link, .workspace-user { border: 1px solid #1b2941; background: #111827; color: #80a6d2; border-radius: 8px; padding: 5px 9px; font: inherit; font-size: 12px; }
.workspace-brand .theme-control-button { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; color: #a78bfa; }
.workspace-brand .theme-control-button svg { width: 15px; height: 15px; }
.build-status { color: #111827; border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 900; background: #facc15; }
.build-status.completed { background: #0f766e; color: #bbf7d0; }
.build-status.draft { background: #334155; color: #cbd5e1; }
.build-status.error { background: #7f1d1d; color: #fecaca; }
.workspace-status-form { margin: 0; }
.build-status-select { border: 0; border-radius: 999px; padding: 5px 24px 5px 10px; color: #111827; background: #facc15; font-size: 11px; font-weight: 900; outline: 0; }
.build-status-select.completed { background: #0f766e; color: #bbf7d0; }
.build-status-select.draft { background: #334155; color: #cbd5e1; }
.build-status-select.error { background: #7f1d1d; color: #fecaca; }
.workspace-presence { display: flex; align-items: center; gap: 8px; position: relative; }
.live-dot { display: inline-flex; align-items: center; gap: 5px; color: #34d399; font-size: 12px; font-weight: 900; }
.live-dot i { width: 6px; height: 6px; border-radius: 999px; background: #34d399; box-shadow: 0 0 0 rgba(52,211,153,.65); animation: livePulse 1.35s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.65); } 70% { box-shadow: 0 0 0 7px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.presence-initials { display: flex; align-items: center; position: relative; outline: 0; }
.presence-initials .workspace-user + .workspace-user { margin-left: -8px; }
.workspace-user { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border-radius: 999px; color: white; background: #2563eb; outline: 2px solid #34d399; font-weight: 900; }
.workspace-user.self { background: #2563eb; }
.presence-popover { position: absolute; top: calc(100% + 12px); right: 0; width: 286px; display: none; z-index: 80; border: 1px solid #1b2941; background: #0b111e; border-radius: 12px; padding: 12px; box-shadow: 0 22px 60px rgba(0,0,0,.45); }
.presence-initials:hover .presence-popover, .presence-initials:focus-within .presence-popover { display: grid; gap: 10px; }
.presence-popover strong { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.presence-popover svg { width: 16px; height: 16px; color: #a78bfa; }
.presence-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) 8px; align-items: center; gap: 9px; }
.mini-initial { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 999px; background: rgba(139,92,246,.25); color: #ddd6fe; font-size: 11px; font-weight: 900; }
.presence-row b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.presence-row em { color: #34d399; font-style: normal; font-size: 11px; }
.presence-row small { color: #80a6d2; font-size: 11px; }
.presence-row i { width: 7px; height: 7px; border-radius: 999px; background: #64748b; }
.presence-row i.online { background: #34d399; }
.layout-toggle { display: inline-flex; align-items: center; gap: 3px; border: 1px solid #1b2941; background: #0b111e; border-radius: 10px; padding: 3px; }
.layout-toggle .icon-only { border: 0; background: transparent; color: #80a6d2; padding: 5px; }
.layout-toggle .icon-only.active { background: #111827; color: white; }
.workspace-actions svg { width: 16px; height: 16px; display: block; }
.workspace-action-link { display: inline-flex; align-items: center; justify-content: center; }
.workspace-actions .btn { padding: 8px 14px; border-radius: 10px; }
.workspace-actions .icon-only { color: white; display: grid; place-items: center; }
.workspace-body { height: calc(100vh - 50px); display: grid; grid-template-columns: 394px minmax(0, 1fr); }
.workspace-shell.fullscreen-mode .workspace-body { grid-template-columns: minmax(0, 1fr); }
.workspace-shell.fullscreen-mode .agent-panel { display: none; }
.modal-open { overflow: hidden; }
.workspace-modal[hidden] { display: none; }
.workspace-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; }
.modal-scrim { position: absolute; inset: 0; border: 0; border-radius: 0; background: rgba(0,0,0,.58); backdrop-filter: blur(5px); cursor: default; }
.workspace-modal-card { position: relative; z-index: 1; width: min(430px, 100%); border: 1px solid #1b2941; background: #0b111e; border-radius: 12px; padding: 26px; box-shadow: 0 28px 80px rgba(0,0,0,.5); }
.workspace-modal-card.settings-card { width: min(520px, 100%); }
.workspace-modal-card.theme-card { width: min(460px, 100%); }
.workspace-modal-card header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.workspace-modal-card h2 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 18px; }
.workspace-modal-card h2 svg { width: 18px; height: 18px; color: #a78bfa; }
.workspace-modal-card header button { border: 0; background: transparent; color: #80a6d2; font-size: 18px; cursor: pointer; }
.modal-form { display: grid; gap: 14px; }
.modal-form label { display: grid; gap: 7px; color: #80a6d2; font-size: 12px; font-weight: 800; }
.modal-form input, .modal-form textarea, .modal-form select { background: #111827; border: 1px solid #1b2941; color: white; border-radius: 10px; min-height: 42px; padding: 10px 12px; font: inherit; }
.modal-form textarea { min-height: 84px; resize: vertical; }
.modal-form h3 { margin: 4px 0 -4px; font-size: 14px; }
.modal-form hr { width: 100%; border: 0; border-top: 1px solid #1b2941; margin: 4px 0; }
.modal-form footer, .settings-danger-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.modal-form footer button, .settings-danger-row button { min-width: 110px; border: 1px solid #1b2941; background: #0b111e; color: white; border-radius: 10px; padding: 11px 16px; font-weight: 900; }
.modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.modal-actions button, .modal-actions a { min-width: 110px; display: inline-flex; justify-content: center; border: 1px solid #1b2941; background: #0b111e; color: white; border-radius: 10px; padding: 11px 16px; font-weight: 900; }
.color-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.color-fields input[type="color"] { padding: 4px; min-height: 44px; }
.settings-danger-row { border-top: 1px solid #1b2941; padding-top: 18px; margin-top: 18px; }
.settings-danger-row form { margin: 0; }
.settings-danger-row > div { display: flex; gap: 10px; }
.inline-check.success { color: #34d399; }
.agent-panel { height: calc(100vh - 50px); min-height: 0; border-right: 1px solid #1b2941; background: #060914; overflow: hidden; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.agent-conversation { min-height: 0; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth; }
.agent-bottom { position: sticky; bottom: 0; display: grid; gap: 10px; padding: 8px 12px 12px; border-top: 1px solid #1b2941; background: linear-gradient(180deg, rgba(6,9,20,.92), #060914 18%); }
.agent-card, .generation-card { border: 1px solid rgba(139,92,246,.35); background: #0d0b1c; border-radius: 10px; padding: 14px; }
.agent-card.compact { margin: -12px -12px 0; border-radius: 0 0 10px 10px; }
.agent-card p, .generation-card p { margin: 4px 0; color: #d7dce5; font-size: 12px; line-height: 1.5; }
.chat-row { display: flex; align-items: flex-start; gap: 9px; }
.chat-row.user { justify-content: flex-end; }
.chat-stack { display: grid; gap: 5px; max-width: 322px; }
.chat-row.user .chat-stack { justify-items: end; }
.chat-avatar { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 999px; font-size: 10px; font-weight: 900; }
.agent-avatar { color: #c4b5fd; background: rgba(139,92,246,.18); border: 1px solid rgba(139,92,246,.35); }
.user-avatar { color: white; background: #2563eb; outline: 2px solid #34d399; }
.chat-bubble { max-width: 100%; background: #8b5cf6; color: white; border-radius: 8px 8px 8px 0; padding: 14px; font-weight: 800; line-height: 1.5; overflow-wrap: anywhere; }
.chat-bubble.user { border-radius: 8px 8px 0 8px; }
.chat-bubble.agent { background: #111827; border: 1px solid #1b2941; color: #d7dce5; font-weight: 700; }
.chat-section { margin-top: 10px; }
.chat-section span, .chat-model-line { display: block; color: #a78bfa; font-size: 11px; font-weight: 900; margin-bottom: 5px; }
.chat-model-line { color: #80a6d2; margin: 6px 0 0; }
.chat-section ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.chat-section li { color: #d7dce5; font-size: 12px; line-height: 1.45; }
.agent-conversation time { color: #7388a7; font-size: 10px; }
.generation-card { background: #08111f; border-color: #1b2941; margin-left: 36px; }
.file-scroll { max-height: 118px; overflow: hidden; display: grid; gap: 4px; color: #60a5fa; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.suggestions { border-top: 3px solid #6d4fc7; padding-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.suggestions-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.suggestions-head span { color: #80a6d2; font-size: 12px; }
.suggestions-head form { margin: 0; }
.suggestions button { border: 0; background: #111827; color: white; border-radius: 9px; padding: 8px 12px; font-weight: 800; font-size: 12px; }
.suggestions-head button { color: #a78bfa; background: transparent; border: 1px solid rgba(139,92,246,.35); padding: 5px 8px; }
.suggestion-chip { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-input { background: #111827; border: 1px solid #1b2941; border-radius: 10px; padding: 12px; }
.agent-input textarea { min-height: 84px; border: 0; padding: 0; background: transparent; resize: none; }
.agent-input textarea::placeholder { color: #80a6d2; }
.agent-attachments { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; color: #80a6d2; font-size: 12px; }
.agent-attachments label { display: inline-flex; align-items: center; gap: 6px; color: #a78bfa; cursor: pointer; font-weight: 800; }
.agent-attachments svg { width: 14px; height: 14px; }
.agent-attachments input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.agent-file-previews { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.agent-file-preview { max-width: 138px; display: grid; grid-template-columns: 28px minmax(0, 1fr) 18px; align-items: center; gap: 6px; border: 1px solid #1b2941; background: #0b111e; border-radius: 9px; padding: 5px; color: #bfdbfe; font-size: 11px; }
.agent-file-preview img, .agent-file-preview b { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; display: grid; place-items: center; background: rgba(139,92,246,.18); color: #c4b5fd; font-size: 9px; font-style: normal; overflow: hidden; }
.agent-file-preview em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; }
.agent-file-preview button { width: 18px; height: 18px; display: grid; place-items: center; border: 0; border-radius: 999px; background: rgba(239,68,68,.18); color: #fecaca; padding: 0; font-size: 12px; }
.chat-row.optimistic { opacity: .82; }
.agent-input footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #80a6d2; font-size: 12px; }
.agent-input button { border: 0; background: #6d4fc7; color: white; border-radius: 999px; padding: 8px 10px; }
.agent-input .agent-wake { background: #111827; color: #a78bfa; border: 1px solid rgba(139,92,246,.45); }
.workspace-main { min-width: 0; display: grid; grid-template-rows: 36px minmax(0, 1fr); background: #080c16; }
.workspace-tabs { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 12px 0 22px; border-bottom: 1px solid #1b2941; background: #0b111e; }
.workspace-tab-links { min-width: 0; display: flex; align-items: center; gap: 16px; overflow-x: auto; scrollbar-width: none; }
.workspace-tab-links::-webkit-scrollbar { display: none; }
.workspace-tabs a { color: #80a6d2; font-size: 12px; padding: 7px 10px; border-radius: 999px; white-space: nowrap; }
.workspace-tabs a.active { color: white; background: #8b5cf6; font-weight: 900; }
.preview-toolbar { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.preview-path-picker { position: relative; }
.preview-path-picker > button, .preview-tool-button, .preview-device-toggle button { min-width: 0; border: 1px solid #1b2941; background: #111827; color: #dbeafe; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.preview-path-picker > button { height: 26px; display: inline-flex; align-items: center; gap: 6px; border-radius: 9px; padding: 0 9px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12px; }
.preview-path-picker > button span { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-path-picker svg, .preview-tool-button svg, .preview-device-toggle svg { width: 14px; height: 14px; display: block; }
.preview-path-picker > button:hover, .preview-tool-button:hover, .preview-device-toggle button:hover { background: #162033; color: white; border-color: rgba(139,92,246,.45); }
.preview-path-menu { position: absolute; top: calc(100% + 7px); right: 0; z-index: 30; min-width: 150px; display: grid; gap: 4px; padding: 6px; border: 1px solid #1b2941; border-radius: 10px; background: #0b111e; box-shadow: 0 18px 44px rgba(0,0,0,.38); }
.preview-path-menu[hidden] { display: none; }
.preview-path-menu button { width: 100%; border: 0; border-radius: 7px; background: transparent; color: #bdd7f8; padding: 7px 9px; text-align: left; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12px; }
.preview-path-menu button:hover, .preview-path-menu button.active { background: rgba(139,92,246,.2); color: white; }
.preview-tool-button { width: 26px; height: 26px; display: inline-grid; place-items: center; border-radius: 9px; padding: 0; }
.preview-device-toggle { display: flex; align-items: center; gap: 2px; border-radius: 9px; background: #111827; padding: 2px; }
.preview-device-toggle button { width: 24px; height: 22px; display: inline-grid; place-items: center; border: 0; border-radius: 7px; padding: 0; color: #80a6d2; }
.preview-device-toggle button.active { background: #0b111e; color: white; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.workspace-content { min-height: 0; overflow: auto; padding: 16px; position: relative; }
.preview-frame { height: 100%; min-height: 520px; border: 1px solid #1b2941; border-radius: 10px; background: #050914; overflow: hidden; }
.preview-frame header { height: 29px; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: #111827; border-bottom: 1px solid #1b2941; }
.preview-frame header span { width: 9px; height: 9px; border-radius: 999px; background: #ef4444; }
.preview-frame header span:nth-child(2) { background: #facc15; }
.preview-frame header span:nth-child(3) { background: #22c55e; }
.preview-frame header code { flex: 1; text-align: center; color: #60a5fa; font-size: 11px; background: #07101d; border-radius: 5px; }
.preview-empty, .empty-workspace-state, .terminal-empty { height: calc(100% - 29px); min-height: 420px; display: grid; place-items: center; align-content: center; text-align: center; color: #80a6d2; }
.preview-empty b { color: #6d4fc7; font-size: 38px; }
.generated-preview { width: 100%; height: calc(100% - 29px); overflow-y: auto; background: #f8fafc; color: #0f172a; font-family: Inter, ui-sans-serif, system-ui, sans-serif; transition: width .2s ease, border-color .2s ease; }
.generated-preview-frame { width: 100%; height: calc(100% - 29px); min-height: 520px; border: 0; display: block; background: white; transition: width .2s ease, box-shadow .2s ease; }
.preview-frame.device-tablet .generated-preview, .preview-frame.device-tablet .generated-preview-frame { width: min(768px, 100%); margin: 0 auto; border-left: 1px solid #1b2941; border-right: 1px solid #1b2941; }
.preview-frame.device-mobile .generated-preview, .preview-frame.device-mobile .generated-preview-frame { width: min(390px, 100%); margin: 0 auto; border-left: 1px solid #1b2941; border-right: 1px solid #1b2941; }
.generated-preview nav { height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 28px; border-bottom: 1px solid #e5e7eb; background: white; }
.generated-preview nav div { display: flex; align-items: center; gap: 22px; }
.generated-preview nav a { color: #334155; font-size: 13px; font-weight: 700; }
.preview-logo { display: flex; align-items: center; gap: 9px; color: #0f172a !important; font-weight: 900 !important; }
.preview-logo span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: #8b5cf6; color: white; }
.preview-cta { display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: #8b5cf6; color: white !important; padding: 10px 18px; font-weight: 900; }
.preview-secondary { display: inline-flex; align-items: center; justify-content: center; border: 1px solid #e5e7eb; border-radius: 10px; color: #0f172a; padding: 10px 18px; font-weight: 900; background: white; }
.preview-hero { min-height: 310px; display: grid; place-items: center; align-content: center; gap: 18px; text-align: center; padding: 40px 20px; }
.preview-hero h1 { margin: 0; font-size: 34px; letter-spacing: 0; }
.preview-hero p { max-width: 660px; margin: 0; color: #64748b; font-size: 16px; line-height: 1.7; }
.preview-hero div { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.preview-badge { border: 1px solid #ddd6fe; background: #f5f3ff; color: #8b5cf6; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 800; }
.preview-feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 760px; margin: 0 auto 44px; padding: 0 20px; }
.preview-feature-grid article { min-height: 98px; display: grid; place-items: center; align-content: center; gap: 8px; border: 1px solid #e5e7eb; background: white; border-radius: 12px; text-align: center; }
.preview-feature-grid b { font-size: 13px; }
.preview-feature-grid span { color: #64748b; font-size: 12px; line-height: 1.5; }
.preview-band { margin: 0 28px 28px; min-height: 140px; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; border-radius: 14px; background: #8b5cf6; color: white; }
.preview-band h2, .preview-band p { margin: 0; }
.preview-band p { opacity: .86; }
.preview-band a { background: white; color: #8b5cf6; border-radius: 9px; padding: 9px 18px; font-weight: 900; }
.workspace-dashboard { height: calc(100vh - 118px); min-height: 0; display: grid; grid-template-columns: 158px minmax(0, 1fr); gap: 22px; max-width: 980px; overflow: hidden; }
.workspace-dashboard aside, .editor-view aside { border-right: 1px solid #1b2941; padding: 12px 0; display: grid; align-content: start; gap: 4px; }
.workspace-dashboard aside { min-height: 0; overflow-y: auto; padding-right: 4px; }
.workspace-dashboard small, .editor-view small { color: #80a6d2; padding: 0 14px 8px; letter-spacing: .08em; }
.workspace-dashboard aside span, .workspace-dashboard aside a, .editor-view aside a { color: #80a6d2; padding: 9px 14px; font-size: 13px; }
.workspace-dashboard aside span.active, .workspace-dashboard aside a.active, .editor-view aside a.active { background: rgba(139,92,246,.22); color: #a78bfa; border-right: 2px solid #8b5cf6; }
.workspace-dashboard article { padding: 24px 0; }
.workspace-dashboard h2 { font-size: 18px; margin-bottom: 26px; }
.workspace-dashboard dl { display: grid; grid-template-columns: 150px minmax(0, 1fr); margin: 0; }
.workspace-dashboard dt, .workspace-dashboard dd { border-bottom: 1px solid #172033; padding: 16px 0; }
.workspace-dashboard dt { color: #80a6d2; }
.workspace-dashboard dd { margin: 0; }
.workspace-dashboard code, .editor-view code { color: #60a5fa; background: rgba(139,92,246,.14); border-radius: 6px; padding: 4px 8px; }
.storage-meter { display: inline-block; width: 290px; height: 9px; background: #172033; border-radius: 999px; overflow: hidden; margin-right: 10px; }
.storage-meter span { display: block; height: 100%; background: #1d4ed8; }
.pill { display: inline-flex; margin-right: 8px; border: 1px solid #1b2941; color: #80a6d2; border-radius: 999px; padding: 8px 14px; font-size: 12px; }
.pill.active { background: #8b5cf6; color: white; border-color: #8b5cf6; }
.dash-panel { height: 100%; max-width: 920px; overflow-y: auto; padding-right: 14px !important; scroll-behavior: smooth; }
.copy-mini, .storage-meta { color: #80a6d2; font-size: 12px; }
.dot { width: 7px; height: 7px; display: inline-block; border-radius: 999px; background: #80a6d2; margin-right: 8px; }
.storage-buy-card { position: relative; width: min(430px, 100%); min-height: 46px; display: grid; grid-template-columns: 1fr 78px auto; align-items: center; gap: 10px; margin-top: 12px; border: 1px solid rgba(139,92,246,.45); background: rgba(139,92,246,.08); border-radius: 12px; padding: 12px; }
.storage-buy-card strong { display: block; }
.storage-buy-card span { display: block; color: #80a6d2; font-size: 12px; }
.storage-buy-card select { height: 34px; padding: 6px 10px; border-radius: 999px; }
.storage-buy-card .btn { height: 34px; padding: 7px 14px; border-radius: 999px; }
.storage-confirm { position: absolute; left: 248px; top: 10px; width: 170px; border: 1px solid rgba(139,92,246,.55); background: #0d111c; border-radius: 10px; padding: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.36); z-index: 2; }
.storage-confirm p { margin: 6px 0 10px; color: #80a6d2; font-size: 11px; }
.storage-confirm a:last-child { margin-left: 8px; color: #80a6d2; font-size: 12px; }
.section-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.section-toolbar h2 { margin: 0; }
.section-toolbar span { display: inline-flex; align-items: center; gap: 8px; }
.section-toolbar button, .section-toolbar select, .section-toolbar a { border: 1px solid #1b2941; background: #111827; color: white; border-radius: 10px; padding: 9px 13px; font-weight: 800; }
.range-pill { background: #111827; border-radius: 10px; padding: 6px 10px; color: #80a6d2; font-size: 12px; }
.range-pill b { color: white; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.metric-grid article { min-height: 88px; border: 1px solid #1b2941; background: #0b111e; border-radius: 12px; padding: 18px; display: grid; align-content: center; gap: 7px; }
.metric-grid span { color: #80a6d2; font-size: 12px; }
.metric-grid b { font-size: 24px; }
.chart-card, .deploy-status, .config-card, .empty-card, .mini-card, .chat-panel, .tenant-list, .localization-card, .auth-provider { border: 1px solid #1b2941; background: #0b111e; border-radius: 12px; padding: 18px; margin-bottom: 18px; }
.chart-card h3, .mini-card h3 { margin: 0 0 14px; font-size: 14px; }
.line-chart { height: 150px; background: linear-gradient(160deg, transparent 45%, rgba(139,92,246,.4) 46%, transparent 52%), repeating-linear-gradient(90deg, transparent, transparent 56px, rgba(128,166,210,.08) 57px), repeating-linear-gradient(0deg, transparent, transparent 35px, rgba(128,166,210,.08) 36px); border-radius: 10px; }
.bar-chart { height: 120px; background: linear-gradient(to top, #3b82f6 0 36%, transparent 36%), linear-gradient(90deg, transparent 0 8%, #3b82f6 8% 12%, transparent 12% 23%, #3b82f6 23% 28%, transparent 28% 40%, #3b82f6 40% 46%, transparent 46% 63%, #3b82f6 63% 70%, transparent 70% 84%, #3b82f6 84% 91%, transparent 91%); opacity: .95; border-radius: 10px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.donut-row { display: flex; align-items: center; justify-content: center; gap: 28px; min-height: 130px; }
.donut { width: 100px; height: 100px; border-radius: 999px; background: conic-gradient(#34d399 0 58%, #8b5cf6 58% 76%, #94a3b8 76% 96%, #ef4444 96%); position: relative; }
.donut:after { content: ""; position: absolute; inset: 22px; background: #0b111e; border-radius: inherit; }
.endpoint-list p { display: grid; grid-template-columns: 1fr 150px 90px; align-items: center; gap: 12px; color: #80a6d2; }
.endpoint-list b { height: 6px; background: #8b5cf6; border-radius: 999px; }
.filters { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: #80a6d2; }
.filters span { border: 1px solid #1b2941; border-radius: 999px; padding: 7px 11px; font-size: 12px; }
.filters span.active { color: white; background: #8b5cf6; border-color: #8b5cf6; }
.timeline-list article, .log-list article { position: relative; width: min(520px, 100%); border: 1px solid rgba(16,185,129,.45); background: rgba(16,185,129,.1); border-radius: 10px; padding: 14px 16px; margin: 0 0 12px 44px; }
.timeline-list article:before { content: ""; position: absolute; left: -32px; top: 16px; width: 18px; height: 18px; border-radius: 999px; background: rgba(16,185,129,.35); border: 1px solid #10b981; }
.timeline-list p, .log-list p { margin: 4px 0; color: #80a6d2; }
.timeline-list time { position: absolute; right: 12px; top: 12px; color: #80a6d2; font-size: 11px; }
.danger-text, .danger-btn { color: #ef4444 !important; }
.deploy-card h3 { display: flex; justify-content: space-between; }
.deploy-card span { border-radius: 999px; padding: 3px 8px; font-size: 11px; background: rgba(16,185,129,.15); color: #34d399; }
.deploy-card.warn { border-color: rgba(250,204,21,.35); }
.deploy-card.warn span { color: #facc15; background: rgba(250,204,21,.15); }
.build-list p, .tenant-list p { display: flex; justify-content: space-between; gap: 12px; border: 1px solid #1b2941; background: #0b111e; border-radius: 10px; padding: 12px 14px; color: #80a6d2; }
.deploy-status span { float: right; color: #80a6d2; font-size: 12px; }
.config-card { display: grid; gap: 12px; }
.config-card label { display: flex; justify-content: space-between; align-items: center; background: #111827; padding: 12px; border-radius: 10px; }
.empty-card.large { min-height: 130px; display: grid; place-items: center; align-content: center; text-align: center; color: #80a6d2; }
.team-grid { display: grid; grid-template-columns: 180px minmax(0, 380px); gap: 14px; }
.chat-panel { min-height: 322px; display: grid; grid-template-rows: auto 1fr auto; }
.chat-panel h3 { display: flex; justify-content: space-between; }
.workspace-user-row { width: min(480px, 100%); border: 1px solid #1b2941; background: #0b111e; border-radius: 12px; margin-bottom: 14px; }
.erd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.erd-grid article { border: 1px solid #1b2941; background: #0b111e; border-radius: 12px; padding: 14px; }
.erd-grid h3 { display: flex; justify-content: space-between; color: white; }
.erd-grid p { display: grid; grid-template-columns: 120px 1fr; color: white; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.erd-grid b { color: #34d399; }
.docs-layout, .settings-layout { display: grid; grid-template-columns: 130px minmax(0,1fr); gap: 24px; }
.docs-layout aside, .settings-layout aside { border-right: 1px solid #1b2941; display: grid; align-content: start; gap: 8px; padding-right: 8px; }
.docs-layout aside a, .settings-layout aside a { color: #80a6d2; padding: 10px 12px; border-radius: 8px; }
.docs-layout aside a.active, .settings-layout aside a.active { color: #a78bfa; background: rgba(139,92,246,.2); }
.docs-layout pre { white-space: pre-wrap; color: white; line-height: 1.7; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.tenant-list p span, .role-pill { color: #22c55e; }
.integration-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.integration-grid article { border: 1px solid #1b2941; background: #0b111e; border-radius: 10px; padding: 12px; display: grid; grid-template-columns: 1fr auto; gap: 4px; }
.integration-grid p { grid-column: 1; color: #80a6d2; margin: 0; font-size: 12px; }
.integration-grid button { grid-column: 2; grid-row: 1 / span 2; align-self: center; border: 1px solid rgba(139,92,246,.45); background: rgba(139,92,246,.15); color: #a78bfa; border-radius: 7px; padding: 6px 9px; }
.wide-input { max-width: 470px; margin-bottom: 10px; }
.log-list article { width: min(680px, 100%); margin-left: 0; border-color: #1b2941; background: #0b111e; }
.log-list time { display: block; color: #80a6d2; margin-top: 8px; font-size: 12px; }
.settings-layout article label { display: grid; gap: 8px; margin-bottom: 14px; }
.settings-layout article input, .settings-layout article textarea { max-width: 410px; }
.settings-layout hr { border: 0; border-top: 1px solid rgba(239,68,68,.35); margin: 20px 0; }
.danger-btn { border: 1px solid rgba(239,68,68,.45); background: rgba(239,68,68,.08); border-radius: 9px; padding: 9px 14px; font-weight: 800; }
.auth-provider, .localization-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-provider span, .localization-card span { color: #80a6d2; }
.localization-card.active { border-color: rgba(139,92,246,.65); }
.files-view { color: #80a6d2; padding: 18px 24px; }
.files-view ul { list-style: none; padding: 12px 0; margin: 0; display: grid; gap: 10px; border-top: 1px solid #1b2941; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.files-view .indent { padding-left: 26px; color: #facc15; }
.files-view .indent-2 { padding-left: 52px; color: #60a5fa; }
.editor-view { height: 100%; display: grid; grid-template-columns: 190px minmax(0, 1fr); }
.editor-view article { min-width: 0; }
.editor-view article header { height: 38px; border-bottom: 1px solid #1b2941; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 14px; }
.editor-view article button, .editor-view article header a { border: 0; background: #211744; color: #c4b5fd; border-radius: 5px; padding: 6px 9px; font-size: 12px; }
.editor-view pre { margin: 0; padding: 18px 42px; min-height: 620px; overflow: auto; color: white; line-height: 1.85; background: #070b13; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; }
.editor-view pre code { background: transparent; color: white; padding: 0; }
.versions-view header, .api-explorer header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px; border-bottom: 1px solid #1b2941; }
.versions-view h2, .api-explorer h2 { font-size: 16px; margin: 0; }
.version-save { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 14px; border-bottom: 1px solid #1b2941; }
.empty-workspace-state b, .terminal-empty b { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 16px; color: #a78bfa; background: rgba(139,92,246,.16); border: 1px solid rgba(139,92,246,.35); border-radius: 14px; font-size: 13px; }
.empty-workspace-state p, .terminal-empty p { margin: 0 0 6px; color: #80a6d2; }
.api-explorer header span { color: #a78bfa; background: rgba(139,92,246,.18); border: 1px solid rgba(139,92,246,.35); border-radius: 4px; padding: 3px 7px; font-size: 11px; font-weight: 900; }
.api-explorer header strong { margin-left: 8px; }
.api-explorer header p { margin: 4px 0 0; color: #80a6d2; }
.api-explorer header div:last-child { display: flex; gap: 8px; align-items: center; }
.api-explorer header input { width: 220px; }
.api-explorer header button { border: 1px solid #1b2941; background: #0b111e; color: white; border-radius: 10px; padding: 10px 14px; font-weight: 800; }
.terminal-empty { min-height: 600px; }
.terminal-panel { height: calc(100vh - 118px); min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; border: 1px solid #1b2941; background: #070b13; border-radius: 12px; overflow: hidden; }
.terminal-panel header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 16px 18px; border-bottom: 1px solid #1b2941; background: #0b111e; }
.terminal-panel h2 { margin: 0 0 6px; font-size: 18px; }
.terminal-panel p { margin: 0; color: #80a6d2; }
.terminal-panel code { color: #93c5fd; background: rgba(96,165,250,.12); border-radius: 6px; padding: 3px 6px; }
.terminal-panel header span { color: #34d399; border: 1px solid rgba(52,211,153,.34); background: rgba(16,185,129,.1); border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 900; white-space: nowrap; }
.terminal-output { min-height: 0; overflow: auto; padding: 14px; display: grid; align-content: start; gap: 12px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.terminal-output article { border: 1px solid #1b2941; background: #0b111e; border-radius: 10px; padding: 12px; }
.terminal-output article.ok { border-color: rgba(52,211,153,.28); }
.terminal-output article.error { border-color: rgba(239,68,68,.35); }
.terminal-output article div { color: white; font-weight: 800; }
.terminal-output article div span, .terminal-command-form span { color: #34d399; }
.terminal-output small { display: block; color: #7388a7; margin: 5px 0 10px; }
.terminal-output pre, .terminal-drawer pre { white-space: pre-wrap; margin: 8px 0 0; color: #bfdbfe; font-size: 12px; line-height: 1.6; }
.terminal-output pre.stderr, .terminal-drawer pre.stderr { color: #fecaca; }
.terminal-help { min-height: 360px; display: grid; place-items: center; align-content: center; text-align: center; color: #80a6d2; }
.terminal-help b { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 16px; color: #a78bfa; background: rgba(139,92,246,.16); border: 1px solid rgba(139,92,246,.35); border-radius: 14px; font-size: 13px; }
.terminal-help span { max-width: 620px; line-height: 1.7; }
.terminal-command-form { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px; border-top: 1px solid #1b2941; background: #0b111e; }
.terminal-command-form input { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.terminal-drawer { position: fixed; left: 0; right: 0; bottom: 0; height: 254px; background: #070b13; border-top: 1px solid #2c3850; z-index: 80; color: #80a6d2; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.terminal-drawer header { height: 36px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #2c3850; padding: 0 14px; color: white; }
.terminal-drawer header span { margin-left: auto; color: #80a6d2; }
.terminal-drawer div, .terminal-drawer p { margin: 14px; font-size: 12px; }
.terminal-drawer footer { position: absolute; left: 14px; right: 14px; bottom: 10px; display: flex; align-items: center; gap: 8px; }
.terminal-drawer footer span { color: #34d399; }
.terminal-drawer input { border: 0; background: transparent; color: #80a6d2; padding: 0; font-family: inherit; }
.terminal-drawer pre { max-height: 92px; overflow: auto; margin: 8px 14px 48px; background: #020617; border: 1px solid #1b2941; border-radius: 8px; padding: 10px; }
.terminal-drawer button { border: 1px solid rgba(139,92,246,.45); background: #6d4fc7; color: white; border-radius: 8px; padding: 6px 12px; font-weight: 900; }
@media (max-width: 900px) {
  .grid.cols-3, .grid.cols-4, .stats, .admin-stats, .admin-section-grid, .admin-shell, .project-stats, .project-card-grid, .plan-details-grid, .usage-limits, .template-grid, .feature-grid-page, .agent-summary-grid, .social-login-row, .billing-layout, .checkout-grid, .language-grid, .admin-user-row, .admin-template-manager, .admin-template-form.compact, .admin-template-list article, .admin-project-template-list article { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-inner { height: auto; min-height: 72px; padding: 12px 0; flex-wrap: wrap; }
  .nav-actions { flex-wrap: wrap; }
  .toolbar { align-items: flex-start; flex-direction: column; }
  .admin-sidebar { position: static; }
  .projects-topbar, .plan-strip { align-items: flex-start; flex-direction: column; }
  .projects-actions { justify-content: flex-start; }
  .search-box { width: 100%; }
  .status-tabs { width: 100%; overflow-x: auto; justify-content: flex-start; }
  .agent-source-heading { flex-direction: column; }
  .agent-source-add, .agent-source-row, .load-template-row, .template-type-edit { grid-template-columns: 1fr; }
  .agent-source-actions { justify-content: flex-start; }
  .template-edit-footer { align-items: flex-start; flex-direction: column; }
  .deleted-projects-card header, .deleted-project-list article { align-items: flex-start; flex-direction: column; }
  .activity-row { grid-template-columns: 22px 1fr; }
  .success-pill { grid-column: 2; width: fit-content; }
  .workspace-body, .workspace-dashboard, .editor-view, .metric-grid, .two-col, .team-grid, .erd-grid, .docs-layout, .settings-layout, .integration-grid { grid-template-columns: 1fr; }
  .agent-panel { display: none; }
  .workspace-actions button:not(.primary), .workspace-brand code { display: none; }
  .workspace-main { grid-template-rows: auto minmax(0, 1fr); }
  .workspace-tabs { align-items: flex-start; flex-direction: column; gap: 6px; overflow: visible; padding: 6px 12px; }
  .workspace-tab-links { width: 100%; }
  .preview-toolbar { width: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: 2px; }
}
