:root {
  --ink: #e8edf8;
  --muted: #9aa7be;
  --surface: rgba(18, 29, 50, 0.78);
  --surface-deep: #0e1729;
  --line: rgba(160, 182, 226, 0.17);
  --cyan: #67e8f9;
  --violet: #a78bfa;
  --mint: #79f2c0;
  --warning: #fcd68a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #080f1d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% -5%, rgba(61, 93, 177, 0.38), transparent 33rem),
    radial-gradient(circle at 90% 15%, rgba(102, 65, 155, 0.25), transparent 31rem),
    #080f1d;
}

button, textarea { font: inherit; }
button { cursor: pointer; }

.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding-bottom: 72px; }
.topbar { display: flex; justify-content: space-between; align-items: center; min-height: 90px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-size: 1rem; letter-spacing: -0.02em; }
.brand strong { color: var(--cyan); font-weight: 600; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; color: #09111e; background: linear-gradient(135deg, var(--cyan), var(--violet)); font-size: .68rem; font-weight: 900; letter-spacing: -.08em; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.connection-pill, .success-pill, .plan-status, .human-tag, .agent-tag { border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.connection-pill.ready { color: var(--mint); border-color: rgba(121, 242, 192, .28); background: rgba(121, 242, 192, .08); }
.connection-pill.preview { color: var(--warning); border-color: rgba(252, 214, 138, .26); background: rgba(252, 214, 138, .07); }

.hero { display: flex; justify-content: space-between; gap: 32px; align-items: center; padding: 76px 4px 46px; }
.eyebrow, .section-kicker { margin: 0 0 10px; color: var(--cyan); font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 730px; margin-bottom: 20px; font-size: clamp(2.65rem, 6vw, 5.7rem); line-height: .99; letter-spacing: -.07em; }
h1 em { color: var(--violet); font-family: Georgia, serif; font-weight: 400; }
.hero-copy { max-width: 585px; color: var(--muted); font-size: 1.05rem; line-height: 1.65; }
.hero-orbit { position: relative; flex: 0 0 205px; width: 205px; height: 205px; border: 1px solid rgba(103, 232, 249, .25); border-radius: 50%; background: radial-gradient(circle, rgba(80, 70, 145, .35), transparent 67%); }
.hero-orbit::before { content: ""; position: absolute; inset: 25px; border: 1px dashed rgba(167, 139, 250, .4); border-radius: 50%; }
.orbit-core { position: absolute; inset: 58px; display: grid; place-items: center; border: 1px solid rgba(103, 232, 249, .5); border-radius: 50%; background: #111c33; color: var(--cyan); text-align: center; font-size: .76rem; font-weight: 800; line-height: 1.18; }
.orbit-label { position: absolute; color: var(--muted); font-size: .66rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.label-one { top: 11px; left: 82px; }.label-two { left: -4px; bottom: 30px; }.label-three { right: -13px; bottom: 30px; }

.workflow-progress { display: flex; align-items: center; margin-bottom: 26px; color: #65738d; font-size: .75rem; font-weight: 700; }
.progress-step { display: inline-flex; gap: 7px; align-items: center; white-space: nowrap; }.progress-step span { display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid #4b5a75; border-radius: 50%; font-size: .65rem; }.progress-step.active { color: var(--cyan); }.progress-step.active span { border-color: var(--cyan); background: rgba(103, 232, 249, .11); }.progress-step.done { color: var(--mint); }.progress-step.done span { border-color: var(--mint); background: rgba(121, 242, 192, .1); }.progress-line { flex: 1; height: 1px; margin: 0 10px; background: var(--line); }

.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .8fr); gap: 18px; }
.panel, .plan-card, .generated-card { border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, rgba(27, 43, 73, .72), rgba(11, 20, 37, .92)); box-shadow: 0 20px 50px rgba(0, 0, 0, .13); }
.panel { padding: 27px; }.panel-heading, .section-title-row, .output-heading { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }.panel h2, .section-title-row h2, .output-heading h2, .tool-section h2 { margin-bottom: 0; font-size: 1.28rem; letter-spacing: -.03em; }.human-tag { color: var(--violet); border-color: rgba(167, 139, 250, .25); }.agent-tag { color: var(--mint); border-color: rgba(121, 242, 192, .22); }
.brief-panel label { display: block; margin: 25px 0 9px; color: var(--muted); font-size: .83rem; }.brief-panel textarea { width: 100%; resize: vertical; min-height: 132px; padding: 15px; border: 1px solid rgba(160, 182, 226, .19); border-radius: 12px; outline: none; color: var(--ink); background: rgba(4, 10, 21, .43); line-height: 1.55; }.brief-panel textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(103, 232, 249, .09); }.brief-footer { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-top: 16px; }.brief-footer span { color: #72819a; font-size: .76rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 10px 14px; color: var(--ink); font-size: .8rem; font-weight: 750; transition: transform .16s ease, background .16s ease, border-color .16s ease; }.button:hover { transform: translateY(-1px); }.button:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.button.busy { cursor: wait; opacity: .85; }
.spinner { display: inline-block; width: 12px; height: 12px; border: 2px solid rgba(255,255,255,.35); border-top-color: currentColor; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -1px; }
@keyframes spin { to { transform: rotate(360deg); } }.button-primary { color: #08111e; background: linear-gradient(100deg, var(--cyan), #9db7ff); }.button-ghost { border-color: rgba(160, 182, 226, .2); background: rgba(255, 255, 255, .025); }.button-ghost:hover { border-color: rgba(103, 232, 249, .5); background: rgba(103, 232, 249, .07); }
.guardrail-list { display: grid; gap: 11px; margin: 25px 0 16px; padding: 0; list-style: none; }.guardrail-list li { display: flex; gap: 10px; align-items: flex-start; color: #c0cbde; font-size: .8rem; line-height: 1.4; }.guardrail-list li::before { content: "✓"; display: grid; place-items: center; flex: 0 0 17px; height: 17px; margin-top: 1px; border-radius: 50%; color: #07131a; background: var(--mint); font-size: .64rem; font-weight: 900; }.agent-note { display: flex; gap: 9px; margin-top: 19px; padding: 13px; border-left: 2px solid var(--violet); border-radius: 0 10px 10px 0; background: rgba(167, 139, 250, .07); }.note-icon { color: var(--violet); }.agent-note p { margin: 0; color: #aeb9ce; font-size: .73rem; line-height: 1.5; }

.plan-section, .output-section, .tool-section { margin-top: 52px; }.plan-status { color: #72819a; }.plan-status.ready { color: var(--cyan); border-color: rgba(103, 232, 249, .28); }.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-top: 20px; }.plan-card { position: relative; min-height: 244px; padding: 21px; overflow: hidden; }.plan-card::after { content: ""; position: absolute; bottom: -40px; right: -30px; width: 112px; height: 112px; border-radius: 50%; background: radial-gradient(circle, rgba(103, 232, 249, .12), transparent 69%); }.card-number { display: block; margin-bottom: 25px; color: var(--violet); font-size: .7rem; font-weight: 900; letter-spacing: .1em; }.plan-card h3 { margin-bottom: 9px; font-size: 1rem; letter-spacing: -.03em; }.plan-card p { min-height: 58px; margin-bottom: 15px; color: var(--muted); font-size: .77rem; line-height: 1.5; }.plan-card ul { margin: 0; padding-left: 16px; color: #bdc8dc; font-size: .72rem; line-height: 1.65; }
.empty-plan { display: grid; place-items: center; min-height: 210px; border: 1px dashed rgba(160, 182, 226, .22); border-radius: 18px; color: #72819a; text-align: center; font-size: .9rem; }
.review-strip { display: flex; justify-content: space-between; align-items: center; gap: 28px; margin-top: 18px; padding: 23px 26px; border: 1px solid rgba(167, 139, 250, .25); border-radius: 16px; background: linear-gradient(105deg, rgba(73, 52, 120, .22), rgba(13, 27, 47, .71)); }.review-strip h2 { margin-bottom: 5px; font-size: 1.15rem; letter-spacing: -.03em; }.review-strip p:not(.section-kicker) { margin-bottom: 0; color: var(--muted); font-size: .81rem; }.review-actions { display: flex; flex: 0 0 auto; gap: 9px; }
.output-section { padding: 28px; border: 1px solid rgba(121, 242, 192, .25); border-radius: 20px; background: linear-gradient(125deg, rgba(13, 49, 48, .43), rgba(15, 27, 48, .85)); }.success-pill { color: var(--mint); border-color: rgba(121, 242, 192, .32); background: rgba(121, 242, 192, .07); }.output-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; margin-top: 22px; }.generated-card { padding: 20px; background: rgba(4, 12, 23, .55); }.file-label { margin-bottom: 13px; color: var(--cyan); font-size: .67rem; font-weight: 900; letter-spacing: .12em; }.generated-card pre { margin: 0; overflow: auto; color: #c9d8f2; font-family: "Cascadia Code", Consolas, monospace; font-size: .78rem; line-height: 1.62; }.validation-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }.validation-list li { display: flex; align-items: center; gap: 10px; color: #c5d0e2; font-size: .78rem; }.validation-list li::before { content: "PASS"; border-radius: 5px; padding: 3px 5px; color: #062017; background: var(--mint); font-size: .56rem; font-weight: 900; letter-spacing: .06em; }.output-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }.output-footer p { max-width: 630px; margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.tool-section { padding-top: 43px; border-top: 1px solid var(--line); }.tool-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin-top: 20px; }.tool-item { min-height: 116px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: rgba(17, 29, 50, .46); }.tool-item strong { display: block; margin-bottom: 8px; color: var(--cyan); font-family: "Cascadia Code", Consolas, monospace; font-size: .73rem; }.tool-item span { color: var(--muted); font-size: .72rem; line-height: 1.45; }

.preset-row { display: flex; gap: 8px; align-items: center; margin-top: 12px; flex-wrap: wrap; color: var(--muted); font-size: .76rem; }
.preset-row button { border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; background: rgba(103,232,249,.07); color: var(--cyan); font-size: .73rem; font-weight: 700; }
.preset-row button:hover { border-color: var(--cyan); }
.ai-row { display: flex; gap: 8px; align-items: center; margin-top: 12px; color: var(--muted); font-size: .76rem; cursor: pointer; }
.ai-row input { accent-color: var(--cyan); }
.ai-row span { color: var(--cyan); font-weight: 700; }
.file-explorer { margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(4,12,23,.55); }
.file-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.file-tab { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; background: rgba(255,255,255,.03); color: var(--muted); font-family: monospace; font-size: .7rem; }
.file-tab.active { border-color: var(--cyan); color: var(--cyan); background: rgba(103,232,249,.1); }
.file-viewer { max-height: 380px; overflow: auto; margin: 0; padding: 16px; border-radius: 10px; background: #060c16; color: #c9d8f2; font-family: "Cascadia Code", Consolas, monospace; font-size: .75rem; line-height: 1.6; white-space: pre-wrap; }
.output-actions { display: flex; gap: 9px; }
.activity-section { margin-top: 42px; padding-top: 30px; border-top: 1px solid var(--line); }
.activity-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.activity-list li { border: 1px solid var(--line); border-radius: 10px; padding: 10px 13px; background: rgba(17,29,50,.46); color: #bdc8dc; font-size: .78rem; }
.activity-list strong { color: var(--mint); }
.version-label { color: var(--muted); font-size: .72rem; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.version-label select { background: #111c33; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; }
.file-actions { margin-top: 10px; display: flex; gap: 8px; }
.hero-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.hero-badges span { border: 1px solid rgba(121,242,192,.3); color: var(--mint); border-radius: 999px; padding: 6px 11px; font-size: .7rem; font-weight: 800; letter-spacing: .05em; }
.tradeoff-box { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: rgba(103,232,249,.07); border: 1px solid rgba(103,232,249,.25); color: #c9d8f2; font-size: .78rem; line-height: 1.6; }
.review-strip { flex-wrap: wrap; }
.prompt-box { display: flex; gap: 10px; align-items: center; margin: 14px 0 6px; padding: 12px 14px; border: 1px dashed rgba(160,182,226,.3); border-radius: 12px; background: rgba(4,12,23,.5); }
.prompt-box code { flex: 1; color: #c9d8f2; font-size: .75rem; }
.tool-copy { color: var(--muted); font-size: .8rem; margin: 8px 0 0; }
.more-actions { flex-basis: 100%; margin-top: 10px; }
.more-actions summary { cursor: pointer; color: var(--muted); font-size: .76rem; font-weight: 700; }
.more-buttons { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 10px; }
.section-summary { cursor: pointer; list-style: none; }
.section-summary .section-title { display: block; font-size: 1.28rem; letter-spacing: -.03em; font-weight: 700; margin-top: 4px; }
.tool-details { margin-top: 14px; }
.tool-details summary { cursor: pointer; color: var(--cyan); font-size: .8rem; font-weight: 700; }
.deploy-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 10px 0 18px; color: #c9d8f2; font-size: .76rem; }
.deploy-row code { padding: 6px 10px; border-radius: 8px; background: #060c16; border: 1px solid var(--line); font-size: .72rem; }

@media (max-width: 820px) { .hero { padding-top: 49px; }.hero-orbit { display: none; }.workspace-grid, .output-grid { grid-template-columns: 1fr; }.plan-grid, .tool-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }.review-strip { align-items: flex-start; flex-direction: column; }.workflow-progress { overflow-x: auto; padding-bottom: 5px; }.progress-line { min-width: 22px; }.topbar-actions .connection-pill { display: none; } }
@media (max-width: 520px) { .shell { width: min(100% - 25px, 1180px); }.topbar { min-height: 72px; }.topbar-actions { gap: 6px; }.hero { padding: 45px 2px 33px; }.panel { padding: 20px; }.brief-footer, .output-footer { align-items: stretch; flex-direction: column; }.brief-footer .button, .review-actions .button { width: 100%; }.plan-grid, .tool-list { grid-template-columns: 1fr; }.review-actions { width: 100%; flex-direction: column; }.output-section { padding: 20px; } }
