:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17211d;
  background: #f5f7f4;
  --ink: #17211d;
  --muted: #68746e;
  --line: #dce3dd;
  --soft: #eef2ee;
  --paper: #ffffff;
  --navy: #12221d;
  --green: #adff2f;
  --green-dark: #548c00;
  --violet: #7058e8;
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(31, 48, 40, .09);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #f5f7f4; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #8878ff; outline-offset: 3px; }
.hidden { display: none !important; }
.eyebrow { margin: 0 0 8px; color: var(--green-dark); font-size: 11px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow-light { color: var(--green); }
.muted { color: var(--muted); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 830; letter-spacing: -.02em; text-decoration: none; }
.brand-mark { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; color: var(--navy); background: var(--green); font-size: 15px; font-weight: 950; }
.brand-light { color: white; }

.auth-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(430px, 1.12fr) minmax(420px, .88fr); }
.auth-story { position: relative; display: flex; min-height: 100vh; flex-direction: column; justify-content: space-between; overflow: hidden; padding: clamp(28px, 5vw, 64px); color: white; background: var(--navy); }
.auth-story::before { content: ""; position: absolute; right: -18%; bottom: 8%; width: 520px; height: 520px; border: 1px solid rgba(173,255,47,.18); border-radius: 50%; box-shadow: 0 0 0 80px rgba(173,255,47,.025), 0 0 0 160px rgba(173,255,47,.02); }
.auth-story::after { content: ""; position: absolute; top: 22%; right: 13%; width: 13px; height: 13px; border-radius: 50%; background: var(--green); box-shadow: 118px 116px 0 -3px #7058e8, -225px 260px 0 -4px #fff; }
.story-copy { position: relative; z-index: 1; max-width: 680px; }
.story-copy h1 { max-width: 650px; margin: 0 0 22px; font-size: clamp(42px, 6vw, 78px); line-height: .99; letter-spacing: -.06em; }
.story-copy > p:not(.eyebrow) { max-width: 590px; margin: 0; color: #bfcbc5; font-size: clamp(16px, 2vw, 20px); line-height: 1.65; }
.story-flow { display: flex; align-items: center; gap: 11px; margin-top: 48px; color: #dce6e1; font-size: 11px; font-weight: 780; letter-spacing: .07em; text-transform: uppercase; }
.story-flow i { width: 25px; height: 1px; background: #52615a; }
.story-note { position: relative; z-index: 1; margin: 0; color: #829089; font-size: 12px; }
.auth-panel { display: grid; min-height: 100vh; place-items: center; padding: 32px; background: #f7f9f6; }
.auth-card { width: min(440px, 100%); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 54px; padding: 5px; border-radius: 13px; background: #e8ece8; }
.auth-tab { border: 0; border-radius: 9px; padding: 10px; color: #6a756f; background: transparent; font-weight: 750; }
.auth-tab.active { color: var(--ink); background: white; box-shadow: 0 2px 10px rgba(20,35,28,.08); }
.auth-heading h2 { margin: 0 0 9px; font-size: 34px; letter-spacing: -.045em; }
.auth-heading > p:last-child { margin: 0 0 30px; color: var(--muted); line-height: 1.5; }
.stack-form { display: grid; gap: 17px; }
label { display: grid; gap: 7px; color: #36423c; font-size: 12px; font-weight: 760; }
input, select, textarea { width: 100%; border: 1px solid #ccd5cf; border-radius: 10px; outline: none; background: white; color: var(--ink); padding: 12px 13px; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { border-color: #719b35; box-shadow: 0 0 0 3px rgba(173,255,47,.22); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #8878ff; outline-offset: 3px; }
.button { display: inline-flex; min-height: 43px; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 10px 16px; font-weight: 790; }
.button:disabled { cursor: not-allowed; opacity: .55; }
.button-primary { color: white; background: var(--navy); }
.button-green { color: var(--navy); background: var(--green); }
.button-soft { color: var(--ink); background: var(--soft); }
.button-danger { color: var(--danger); background: #fff0ee; }
.button-wide { width: 100%; margin-top: 7px; }
.form-error { margin: 0; border-radius: 9px; padding: 10px 12px; color: var(--danger); background: #fff0ee; font-size: 12px; line-height: 1.5; }

.app-shell { display: grid; min-height: 100vh; grid-template-columns: 248px minmax(0, 1fr); }
.app-sidebar { position: sticky; top: 0; display: flex; height: 100vh; flex-direction: column; padding: 22px 16px 16px; color: #dbe4df; background: var(--navy); }
.sidebar-brand { border: 0; padding: 0 8px 23px; color: white; background: transparent; }
.sidebar-nav { display: flex; min-height: 0; flex: 1; flex-direction: column; gap: 4px; overflow-y: auto; }
.nav-item, .project-link { display: flex; width: 100%; align-items: center; gap: 10px; border: 0; border-radius: 9px; padding: 10px 11px; color: #aebbb4; background: transparent; text-align: left; font-size: 13px; font-weight: 680; }
.nav-item:hover, .project-link:hover, .nav-item.active, .project-link.active { color: white; background: rgba(255,255,255,.075); }
.nav-icon { color: var(--green); font-size: 16px; }
.nav-section-heading { display: flex; align-items: center; justify-content: space-between; margin: 24px 9px 9px; color: #697870; font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.nav-section-heading button { display: grid; width: 22px; height: 22px; place-items: center; border: 0; border-radius: 6px; color: #aebbb4; background: rgba(255,255,255,.06); }
.project-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #7058e8; }
.nav-empty { padding: 0 10px; font-size: 10px; }
.sidebar-foot { display: grid; gap: 10px; border-top: 1px solid rgba(255,255,255,.09); padding-top: 13px; }
.provider-status { display: flex; align-items: center; gap: 7px; padding: 0 9px; color: #819088; font-size: 10px; }
.status-light { width: 7px; height: 7px; border-radius: 50%; background: #e09b3d; }
.status-light.online { background: var(--green); }
.account-chip { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; border: 0; border-radius: 10px; padding: 8px; color: white; background: rgba(255,255,255,.06); text-align: left; }
.avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: var(--navy); background: #e6f4d2; font-weight: 850; }
.account-chip strong, .account-chip small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-chip strong { font-size: 12px; }.account-chip small { margin-top: 2px; color: #8f9e96; font-size: 9px; }
.logout-button { border: 0; color: #7f8e86; background: transparent; font-size: 11px; text-align: left; padding: 2px 10px; }
.app-main { min-width: 0; }
.mobile-bar { display: none; }
.content { width: min(1240px, 100%); margin: 0 auto; padding: 42px clamp(24px, 4vw, 58px) 70px; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.page-head h1 { margin: 0 0 8px; font-size: clamp(32px, 4vw, 48px); letter-spacing: -.055em; }
.page-head p:last-child { max-width: 700px; margin: 0; color: var(--muted); line-height: 1.55; }
.head-actions { display: flex; gap: 9px; flex: 0 0 auto; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 34px; }
.metric { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: white; }
.metric small { display: block; margin-bottom: 11px; color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.metric strong { font-size: 30px; letter-spacing: -.04em; }.metric span { margin-left: 7px; color: var(--muted); font-size: 11px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 26px 0 14px; }
.section-heading h2 { margin: 0; font-size: 19px; letter-spacing: -.025em; }.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.section-heading.compact-heading { margin-top: 0; }
.section-heading h2.subheading { font-size: 15px; }
.project-grid, .agent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.project-card, .agent-card { display: flex; min-height: 190px; flex-direction: column; border: 1px solid var(--line); border-radius: 15px; padding: 20px; background: white; box-shadow: 0 1px 0 rgba(20,35,28,.02); transition: transform .15s, box-shadow .15s; }
.project-card:hover, .agent-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.project-icon, .agent-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: #efeefe; color: var(--violet); font-weight: 900; }
.agent-icon { color: #467500; background: #effbdc; }
.card-status, .status-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 8px; color: #68746e; background: var(--soft); font-size: 9px; font-weight: 830; letter-spacing: .06em; text-transform: uppercase; }
.status-pill.published { color: #3a6900; background: #e8f8d2; }.status-pill.changes { color: #76510b; background: #fff1cf; }
.project-card h3, .agent-card h3 { margin: 19px 0 7px; font-size: 18px; letter-spacing: -.03em; }
.project-card p, .agent-card p { flex: 1; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding-top: 13px; border-top: 1px solid #edf0ed; color: #7a857f; font-size: 10px; }
.card-link { border: 0; padding: 0; color: var(--ink); background: transparent; font-weight: 800; }
.empty-state { display: grid; min-height: 270px; place-items: center; border: 1px dashed #cbd5ce; border-radius: 16px; padding: 35px; background: rgba(255,255,255,.6); text-align: center; }
.empty-state-icon { display: grid; width: 50px; height: 50px; place-items: center; margin: 0 auto 16px; border-radius: 15px; color: var(--violet); background: #efedff; font-size: 22px; }.empty-state h3 { margin: 0 0 7px; }.empty-state p { max-width: 440px; margin: 0 auto 19px; color: var(--muted); font-size: 12px; line-height: 1.55; }

.breadcrumb { display: flex; gap: 7px; align-items: center; margin-bottom: 18px; color: var(--muted); font-size: 11px; }.breadcrumb button { border: 0; padding: 0; color: var(--muted); background: transparent; }.breadcrumb strong { color: var(--ink); }
.project-summary { display: grid; grid-template-columns: 1fr 330px; gap: 16px; margin-bottom: 30px; }
.summary-panel, .key-panel { border: 1px solid var(--line); border-radius: 15px; padding: 21px; background: white; }
.summary-panel h3, .key-panel h3 { margin: 0 0 9px; font-size: 15px; }.summary-panel p, .key-panel p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.summary-stats { display: flex; gap: 26px; margin-top: 20px; }.summary-stats strong { display: block; font-size: 21px; }.summary-stats small { color: var(--muted); font-size: 10px; }
.key-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-top: 12px; border-top: 1px solid #edf0ed; padding-top: 12px; font-size: 10px; }.key-row code { color: #49554f; }
.no-keys { margin-top: 14px !important; }
.docs-link { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; border: 1px solid #31473d; border-radius: 9px; padding: 9px 10px; color: #d8e3dd; font-size: 10px; font-weight: 750; text-decoration: none; }
.account-details { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 20px; }.avatar.large { width: 48px; height: 48px; font-size: 16px; }.account-details strong { display: block; }.account-details p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }.account-actions { padding-top: 18px; }.account-actions p { margin: 14px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.secret-box { margin-top: 14px; border: 1px solid #b9d48e; border-radius: 10px; padding: 11px; background: #f2fbe6; }.secret-box code { display: block; overflow-wrap: anywhere; font-size: 10px; line-height: 1.5; }.secret-box p { margin-top: 7px; font-size: 10px; }

.studio-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }.studio-title { display: flex; align-items: center; gap: 14px; }.studio-title h1 { margin: 0 0 4px; font-size: 30px; letter-spacing: -.045em; }.studio-title p { margin: 0; color: var(--muted); font-size: 11px; }.studio-tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 18px; border-bottom: 1px solid var(--line); }.studio-tab { flex: 0 0 auto; border: 0; border-bottom: 2px solid transparent; padding: 12px 14px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 780; }.studio-tab.active { border-bottom-color: var(--green-dark); color: var(--ink); }
.studio-layout { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 16px; }.studio-panel { border: 1px solid var(--line); border-radius: 15px; background: white; }.panel-pad { padding: 24px; }.studio-panel h2 { margin: 0 0 7px; font-size: 20px; letter-spacing: -.03em; }.panel-intro { margin: 0 0 25px; color: var(--muted); font-size: 12px; line-height: 1.55; }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }.full { grid-column: 1 / -1; }.field-hint { color: #89938e; font-size: 10px; font-weight: 500; line-height: 1.45; }.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; border-top: 1px solid #edf0ed; padding-top: 18px; }
.guide-card { border: 1px solid var(--line); border-radius: 15px; padding: 18px; background: #f0f3ef; }.guide-card h3 { margin: 0 0 12px; font-size: 13px; }.guide-list { display: grid; gap: 11px; }.guide-item { display: grid; grid-template-columns: 22px 1fr; gap: 9px; color: var(--muted); font-size: 10px; line-height: 1.45; }.guide-number { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 7px; color: #385b06; background: #dff5be; font-weight: 850; }
.knowledge-list, .field-list { display: grid; gap: 12px; }.knowledge-card, .lead-field-row { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fafbfa; }.knowledge-card-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }.knowledge-card-head input { flex: 1; }.mini-button { flex: 0 0 auto; border: 0; border-radius: 8px; padding: 8px 10px; color: var(--danger); background: #fff0ee; font-size: 10px; font-weight: 760; }.add-dashed { width: 100%; border: 1px dashed #bfcac2; border-radius: 11px; padding: 13px; color: #58734a; background: #f7faf5; font-size: 11px; font-weight: 750; }
.knowledge-summary { display: flex; align-items: center; gap: 10px; margin: -10px 0 18px; border: 1px solid #dce8cd; border-radius: 10px; padding: 10px 12px; color: #4d6254; background: #f4faed; }.knowledge-summary strong { font-size: 20px; }.knowledge-summary span { font-size: 10px; line-height: 1.4; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #dce8cd; border-radius: 12px; padding: 15px; background: #f4faed; }.toggle-row h3 { margin: 0 0 4px; font-size: 13px; }.toggle-row p { margin: 0; color: var(--muted); font-size: 10px; }.switch { position: relative; width: 43px; height: 24px; flex: 0 0 auto; }.switch input { position: absolute; opacity: 0; }.switch span { position: absolute; inset: 0; border-radius: 999px; background: #bdc7c0; transition: .2s; }.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: white; transition: .2s; }.switch input:checked + span { background: #639907; }.switch input:checked + span::after { transform: translateX(19px); }.lead-field-row { display: grid; grid-template-columns: 1.1fr .9fr .75fr auto; gap: 9px; align-items: end; }.required-check { display: flex; gap: 6px; align-items: center; padding-bottom: 11px; color: var(--muted); font-size: 10px; }.required-check input { width: auto; }
.handoff-stack { display: grid; gap: 14px; }.handoff-instructions { display: grid; gap: 7px; margin-top: 16px; }.webhook-form { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 9px; align-items: end; }.webhook-form label { display: grid; gap: 6px; }.endpoint-meta { display: block; margin-top: 10px; }.empty-inline { border: 1px dashed #cbd5ce; border-radius: 11px; padding: 25px; color: var(--muted); background: #fafbfa; font-size: 11px; text-align: center; }.handoff-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }.handoff-list article { border: 1px solid var(--line); border-radius: 12px; padding: 15px; background: #fafbfa; }.handoff-list h3 { margin: 11px 0 6px; font-size: 14px; }.handoff-list p { margin: 0 0 10px; color: var(--muted); font-size: 10px; line-height: 1.5; }.handoff-list small { color: #7b8981; font-size: 8px; overflow-wrap: anywhere; }.handoff-head, .handoff-actions { display: flex; align-items: center; gap: 7px; }.handoff-head { justify-content: space-between; }.handoff-actions { margin-top: 13px; }.priority { border-radius: 999px; padding: 4px 8px; color: #53605a; background: #e9eeeb; font-size: 8px; font-weight: 820; text-transform: uppercase; }.priority.high, .priority.urgent { color: #842f2f; background: #fde0df; }.priority.low { color: #31560b; background: #dff1c5; }.eval-status.in_progress { color: #33577c; background: #dcecf9; }.eval-status.resolved, .eval-status.closed { color: #31560b; background: #dff1c5; }
.chat-test { display: flex; min-height: 530px; flex-direction: column; }.test-messages { flex: 1; min-height: 360px; max-height: 540px; overflow-y: auto; padding: 20px; background: #f7f9f6; }.test-message { display: flex; margin-bottom: 12px; }.test-message.user { justify-content: flex-end; }.test-bubble { max-width: 78%; border-radius: 13px; padding: 11px 13px; background: white; font-size: 12px; line-height: 1.55; white-space: pre-wrap; box-shadow: 0 1px 5px rgba(20,35,28,.06); }.test-message.user .test-bubble { color: white; background: var(--navy); }.test-composer { display: grid; grid-template-columns: 1fr auto; gap: 9px; border-top: 1px solid var(--line); padding: 13px; }.test-composer textarea { min-height: 48px; max-height: 120px; }.test-composer button { align-self: end; }
.message-actions { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-size: 10px; opacity: .72; }.message-actions button { appearance: none; border: 0; padding: 0; color: inherit; background: transparent; text-decoration: underline; cursor: pointer; font: inherit; }
.message-citations { display: grid; gap: 6px; margin-top: 11px; border-top: 1px solid #e4e9e5; padding-top: 9px; white-space: normal; }.message-citations > strong { color: var(--muted); font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }.message-citations details { border-radius: 7px; padding: 6px 8px; background: #f3f6f2; }.message-citations summary { cursor: pointer; color: #44544b; font-size: 10px; font-weight: 720; }.message-citations summary span { color: #527a13; }.message-citations p { margin: 7px 0 1px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.publish-hero { border-radius: 15px; padding: 28px; color: white; background: var(--navy); }.publish-hero h2 { margin: 0 0 10px; font-size: 25px; }.publish-hero p { max-width: 680px; margin: 0 0 22px; color: #b8c5be; font-size: 12px; line-height: 1.6; }.publish-meta { display: flex; gap: 25px; margin-bottom: 22px; }.publish-meta strong { display: block; font-size: 18px; }.publish-meta small { color: #85948c; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }.code-block { position: relative; margin-top: 16px; border-radius: 12px; padding: 16px; overflow-x: auto; color: #dce8e1; background: #0b1512; font: 11px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; }.code-title { margin-top: 25px; font-size: 13px; }.notice { border: 1px solid #ead7a8; border-radius: 11px; padding: 12px; color: #75591d; background: #fff7e5; font-size: 11px; line-height: 1.5; }
.publish-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 18px; }.publish-check { display: grid; grid-template-columns: 24px 1fr; gap: 8px; align-items: center; border: 1px solid #4a5c53; border-radius: 9px; padding: 9px; color: #d8c28f; background: rgba(255,255,255,.04); }.publish-check > span { display: grid; width: 21px; height: 21px; place-items: center; border-radius: 50%; color: #3f2f08; background: #f0d487; font-size: 11px; font-weight: 900; }.publish-check.pass { color: #d3e8b3; }.publish-check.pass > span { color: #294604; background: #baf163; }.publish-check strong, .publish-check small { display: block; }.publish-check strong { font-size: 10px; }.publish-check small { margin-top: 2px; color: #91a097; font-size: 8px; text-transform: uppercase; letter-spacing: .07em; }.publish-blocked { margin: 9px 0 0 !important; color: #d8c28f !important; font-size: 10px !important; }
.notice-after-code { margin-top: 12px; }.notice-after-publish { margin-top: 16px; }
.test-stack { display: grid; gap: 14px; }.evaluation-panel { display: grid; gap: 16px; }.evaluation-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }.evaluation-metrics article { border: 1px solid var(--line); border-radius: 11px; padding: 13px; background: #f8faf8; }.evaluation-metrics small, .evaluation-metrics strong, .evaluation-metrics span { display: block; }.evaluation-metrics small { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }.evaluation-metrics strong { margin: 5px 0 2px; font-size: 18px; }.evaluation-metrics span { color: var(--muted); font-size: 9px; }.evaluation-form { display: grid; grid-template-columns: 1fr 2fr 1.4fr auto; gap: 9px; align-items: end; }.evaluation-form label { display: grid; gap: 5px; font-size: 10px; font-weight: 700; }.evaluation-form input, .evaluation-form textarea { width: 100%; }.evaluation-form .button { margin-bottom: 1px; }.evaluation-cases { display: grid; gap: 7px; }.evaluation-cases article { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }.evaluation-cases strong, .evaluation-cases p, .evaluation-cases small { display: block; }.evaluation-cases p { margin: 4px 0; color: var(--muted); font-size: 10px; }.evaluation-cases small { color: var(--muted); font-size: 9px; }.evaluation-result { display: grid; justify-items: end; gap: 5px; }.eval-status { border-radius: 999px; padding: 4px 8px; color: #65551d; background: #f6eab5; font-size: 8px; font-weight: 800; text-transform: uppercase; }.eval-status.passed { color: #31560b; background: #dff1c5; }.eval-status.failed, .eval-status.error { color: #842f2f; background: #fde0df; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }.data-table { width: 100%; border-collapse: collapse; background: white; font-size: 11px; }.data-table th, .data-table td { padding: 11px 12px; border-bottom: 1px solid #edf0ed; text-align: left; white-space: nowrap; }.data-table th { color: #647069; background: #f5f7f5; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }.data-table tr:last-child td { border-bottom: 0; }.data-table td.empty { padding: 34px; color: var(--muted); text-align: center; }

.modal { width: min(520px, calc(100% - 24px)); border: 0; border-radius: 17px; padding: 0; box-shadow: 0 30px 90px rgba(12,24,19,.25); }.modal::backdrop { background: rgba(12,24,19,.55); backdrop-filter: blur(3px); }.modal-card { margin: 0; padding: 24px; }.modal-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; }.modal-head h2 { margin: 0; font-size: 23px; letter-spacing: -.035em; }.icon-button { display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 9px; color: var(--ink); background: var(--soft); }.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }.toast-region { position: fixed; z-index: 20; right: 20px; bottom: 20px; display: grid; gap: 8px; }.toast { max-width: 360px; border-radius: 11px; padding: 12px 15px; color: white; background: var(--navy); box-shadow: var(--shadow); font-size: 11px; line-height: 1.5; }.toast.error { background: #8f241c; }
.loading { display: grid; min-height: 50vh; place-items: center; color: var(--muted); font-size: 12px; }.spinner { width: 24px; height: 24px; margin: 0 auto 10px; border: 2px solid #d7dfd9; border-top-color: #629405; border-radius: 50%; animation: spin .7s linear infinite; }@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1050px) {
  .project-grid, .agent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-summary, .studio-layout { grid-template-columns: 1fr; }
  .studio-layout .guide-card { display: none; }
}
@media (max-width: 820px) {
  .auth-screen { grid-template-columns: 1fr; }.auth-story { min-height: 46vh; padding: 28px; }.story-copy h1 { font-size: 43px; }.story-flow, .story-note { display: none; }.auth-panel { min-height: 54vh; padding: 30px 22px; }.auth-tabs { margin-bottom: 28px; }
  .app-shell { grid-template-columns: 1fr; }.app-sidebar { position: fixed; z-index: 7; top: 51px; width: 248px; height: calc(100vh - 51px); transform: translateX(-100%); transition: transform .2s; box-shadow: 18px 0 40px rgba(9, 20, 16, .18); }.app-shell.menu-open .app-sidebar { transform: translateX(0); }.mobile-bar { position: sticky; z-index: 8; top: 0; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 10px 16px; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); }.content { padding: 28px 18px 60px; }.page-head { align-items: flex-start; flex-direction: column; }.head-actions { width: 100%; }.head-actions .button { flex: 1; }
}
@media (max-width: 620px) {
  .metric-grid, .project-grid, .agent-grid, .form-grid, .evaluation-metrics, .evaluation-form, .handoff-list, .webhook-form { grid-template-columns: 1fr; }.full { grid-column: auto; }.metric-grid { gap: 8px; }.metric { padding: 14px; }.project-card, .agent-card { min-height: 170px; }.lead-field-row { grid-template-columns: 1fr 1fr; }.lead-field-row .mini-button { align-self: end; }.studio-head { align-items: flex-start; flex-direction: column; }.studio-tabs { flex-wrap: wrap; overflow-x: visible; }.studio-tab { flex: 1 1 30%; padding: 10px 7px; }.test-composer { grid-template-columns: 1fr; }.test-bubble { max-width: 90%; }.publish-meta { flex-wrap: wrap; }.publish-checklist { grid-template-columns: 1fr; }.evaluation-cases article { grid-template-columns: 1fr; }.evaluation-result { justify-items: start; }
}
.team-panel { margin-top: 28px; }.role-badge { display: inline-flex; border-radius: 999px; padding: 5px 9px; color: #31560b; background: #e3f3ce; font-size: 9px; font-weight: 820; text-transform: uppercase; }.team-form { display: grid; grid-template-columns: minmax(0, 1fr) 150px auto; gap: 9px; align-items: end; margin: 18px 0; }.member-list { display: grid; gap: 8px; }.member-list article { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; background: #fafbfa; }.member-list strong, .member-list small { display: block; }.member-list small { margin-top: 3px; color: var(--muted); font-size: 9px; }.read-only-banner { margin-bottom: 12px; border: 1px solid #d2d9d4; border-radius: 10px; padding: 10px 12px; color: #5e6a63; background: #f4f6f4; font-size: 10px; font-weight: 720; }
.connector-grid { display: grid; gap: 10px; }.connector-card { display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: start; border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fafbfa; cursor: pointer; }.connector-card:has(input:checked) { border-color: #a8c678; background: #f3fae9; }.connector-card input { width: auto; margin-top: 3px; }.connector-card strong, .connector-card small { display: block; }.connector-card strong { text-transform: capitalize; }.connector-card small { margin-top: 3px; color: #6c796f; font-size: 9px; text-transform: uppercase; }.connector-card p { margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.release-panel { margin: 14px 0; }.environment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 17px 0; }.environment-grid article { border: 1px solid #dce8cd; border-radius: 11px; padding: 14px; background: #f5faef; }.environment-grid small, .environment-grid strong, .environment-grid span { display: block; }.environment-grid small { color: var(--muted); font-size: 9px; text-transform: uppercase; }.environment-grid strong { margin: 4px 0; font-size: 20px; }.environment-grid span { color: var(--muted); font-size: 9px; }.mini-button.neutral { color: #3f5f1a; background: #edf6e1; }.release-history { display: block; margin-top: 12px; }
@media (max-width: 620px) { .team-form, .environment-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
.preset-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }.preset-grid.gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 26px; }.preset-card { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; border: 1px solid var(--line); border-radius: 13px; padding: 16px; background: white; text-align: left; cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; }.preset-card.static { cursor: default; }.preset-card:hover { transform: translateY(-2px); border-color: #a8c678; box-shadow: var(--shadow); }.preset-card.static:hover { transform: none; }.preset-icon { display: grid; width: 32px; height: 32px; place-items: center; margin-bottom: 8px; border-radius: 10px; color: #31560b; background: #e3f3ce; font-size: 15px; }.preset-category { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }.preset-card strong { font-size: 14px; letter-spacing: -.02em; }.preset-card p { flex: 1; margin: 5px 0 9px; color: var(--muted); font-size: 11px; line-height: 1.5; }.preset-card small { color: #7b8981; font-size: 9px; }.preset-card.blank { align-items: center; justify-content: center; border-style: dashed; text-align: center; }.preset-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin-top: 11px; }
.preset-preview { display: grid; gap: 4px; }.preset-preview h3 { margin: 14px 0 4px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }.preset-preview p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }.preset-preview ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 11px; line-height: 1.7; }.sample-questions li { color: var(--ink); }.preset-prompt { max-height: 220px; overflow: auto; margin: 0; border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #f7f9f7; font-size: 10px; line-height: 1.6; white-space: pre-wrap; }
.wizard-steps { display: flex; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }.wizard-steps li { display: flex; flex: 1; align-items: center; gap: 7px; border-top: 2px solid var(--line); padding-top: 9px; color: var(--muted); font-size: 10px; font-weight: 720; }.wizard-steps li.active { border-top-color: #639907; color: var(--ink); }.wizard-steps li.done { border-top-color: #b5d68a; }.wizard-steps li span { display: grid; width: 18px; height: 18px; flex: 0 0 auto; place-items: center; border-radius: 6px; background: var(--soft); font-size: 9px; }.wizard-steps li.active span { color: #31560b; background: #dff1c5; }.wizard-intro { margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.55; }.wizard-preset-note { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; border: 1px solid #dce8cd; border-radius: 11px; padding: 12px; background: #f5faef; }.wizard-preset-note strong { flex: 0 0 auto; font-size: 12px; }.wizard-preset-note span { flex: 1; color: var(--muted); font-size: 10px; line-height: 1.45; }.wizard-summary { border: 1px solid var(--line); border-radius: 11px; padding: 13px; background: #fafbfa; }.wizard-summary strong { font-size: 11px; }.wizard-summary ul { margin: 7px 0 0; padding-left: 17px; color: var(--muted); font-size: 10px; line-height: 1.65; }
.modal:has(.wizard-steps) { width: min(760px, calc(100% - 24px)); }
@media (max-width: 1050px) { .preset-grid.gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .preset-grid, .preset-grid.gallery { grid-template-columns: 1fr; }.wizard-steps li { font-size: 0; }.wizard-steps li span { font-size: 9px; } }
.style-badge { display: inline-flex; margin: 6px 0 2px; border-radius: 999px; padding: 3px 8px; color: #4a5750; background: #eaefeb; font-size: 8px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }.style-badge.agent-led { color: #6b3d05; background: #fdeacb; }.preview-style { display: flex; align-items: center; gap: 9px; margin: 10px 0 4px; }.preview-style span { color: var(--muted); font-size: 11px; line-height: 1.5; }.preset-opening { margin: 0; border-left: 3px solid #b5d68a; padding: 9px 12px; background: #f7faf4; color: var(--ink); font-size: 12px; font-style: italic; line-height: 1.55; }.required-tag { border-radius: 999px; padding: 2px 6px; color: #842f2f; background: #fde0df; font-size: 8px; font-weight: 850; text-transform: uppercase; }
