:root {
  --ink: #171817;
  --ink-soft: #30322f;
  --muted: #6f726c;
  --quiet: #969992;
  --line: #e3e5df;
  --line-strong: #d7dad3;
  --canvas: #f5f6f3;
  --sidebar: #f9faf7;
  --surface: #ffffff;
  --surface-soft: #f8f9f6;
  --dark: #1c1e1c;
  --violet: #6857e8;
  --violet-soft: #eeebff;
  --green: #267a53;
  --green-soft: #e9f6ef;
  --amber: #9a6c18;
  --amber-soft: #fff4dc;
  --blue-soft: #eaf2f7;
  --shadow-sm: 0 1px 2px rgba(24, 27, 22, .04), 0 4px 14px rgba(24, 27, 22, .035);
  --shadow-md: 0 16px 44px rgba(24, 27, 22, .07), 0 2px 8px rgba(24, 27, 22, .04);
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

.skip-link { position: fixed; z-index: 200; top: 12px; left: 12px; border-radius: 9px; background: var(--dark); color: #fff; padding: 10px 14px; font-size: 13px; font-weight: 650; text-decoration: none; transform: translateY(-160%); transition: transform .15s ease; }
.skip-link:focus { outline: 3px solid rgba(104,87,232,.3); outline-offset: 2px; transform: translateY(0); }

/* AI Agent Games · Roblox workspace */
.games-workspace-page { min-height:calc(100vh - 72px); background:#f4f5f2; }
.games-workspace-header { display:flex; min-height:83px; align-items:center; justify-content:space-between; gap:24px; border-bottom:1px solid #dfe2dc; padding:0 25px; }
.games-workspace-header>div,.games-project-switch,.studio-session,.studio-session>span { display:flex; align-items:center; }
.games-workspace-header>div:first-child { gap:25px; }
.games-product-label { display:flex; align-items:center; gap:8px; color:#7260d5; font-size:10px; font-weight:760; letter-spacing:.1em; text-transform:uppercase; }
.games-product-label i { width:7px; height:7px; border-radius:50%; background:#705ce0; box-shadow:0 0 0 4px rgba(112,92,224,.1); }
.games-project-switch { gap:10px; border-left:1px solid #dcdfd9; padding-left:25px; }
.roblox-mark { display:grid; width:34px; height:34px; place-items:center; border-radius:10px; background:#252825; color:#fff; font-size:20px; transform:rotate(5deg); }
.games-project-switch small,.games-project-switch b { display:block; }.games-project-switch small { color:#969a93; font-size:9px; }.games-project-switch b { margin-top:3px; font-size:13px; }.games-project-switch button { border:0; background:transparent; color:#90948d; }
.studio-session { gap:13px; }.studio-session>span { gap:8px; border:1px solid #d5e7da; border-radius:11px; background:#f1f8f3; padding:8px 11px; }.studio-session>span>i { width:7px; height:7px; border-radius:50%; background:#42a56a; box-shadow:0 0 0 4px rgba(66,165,106,.1); }.studio-session b,.studio-session small { display:block; }.studio-session b { color:#477157; font-size:11px; }.studio-session small { margin-left:5px; color:#86a08e; font-size:9px; }.studio-session>button { border:1px solid #dce0da; border-radius:10px; background:#fff; color:#666b64; padding:10px 12px; font-size:10px; font-weight:650; }
.games-workspace-grid { display:grid; grid-template-columns:215px minmax(440px,1fr) 275px; min-height:calc(100vh - 155px); }
.game-explorer,.game-inspector { min-width:0; background:#f8f9f6; padding:18px 14px; }.game-explorer { border-right:1px solid #dfe2dc; }.game-inspector { border-left:1px solid #dfe2dc; }
.game-panel-title { display:flex; min-height:30px; align-items:center; justify-content:space-between; padding:0 4px; color:#777c74; font-size:10px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; }.game-panel-title button { border:0; background:transparent; color:#9a9e97; }
.game-tree { display:grid; gap:2px; margin-top:10px; }.game-tree button { display:grid; grid-template-columns:13px 17px minmax(0,1fr); min-height:32px; align-items:center; gap:5px; overflow:hidden; border:0; border-radius:7px; background:transparent; color:#737871; padding:0 6px; text-align:left; }.game-tree button:hover { background:#edefea; }.game-tree button.selected { background:#e9e7f5; color:#4d42a0; }.game-tree button.tree-child { padding-left:17px; }.game-tree button.script { color:#575c56; }.game-tree i { color:#a0a49d; font-size:10px; font-style:normal; }.game-tree span { font-size:12px; }.game-tree b { overflow:hidden; font-size:10px; font-weight:560; text-overflow:ellipsis; white-space:nowrap; }
.game-memory-card { margin-top:22px; border:1px solid #ded9f0; border-radius:13px; background:linear-gradient(145deg,#f7f5fe,#fff); padding:13px; }.game-memory-card>span { color:#7762d9; font-size:8px; font-weight:760; letter-spacing:.09em; }.game-memory-card b,.game-memory-card small { display:block; }.game-memory-card b { margin-top:9px; font-size:11px; }.game-memory-card small { margin-top:5px; color:#90948e; font-size:9px; line-height:1.45; }.game-memory-card button { margin-top:11px; border:0; background:transparent; color:#6551c8; padding:0; font-size:9px; font-weight:650; }
.game-version { display:flex; align-items:center; justify-content:space-between; margin-top:10px; border:1px solid #e1e3de; border-radius:12px; background:#fff; padding:10px; }.game-version>span { display:flex; align-items:center; gap:8px; }.game-version>span>i { display:grid; width:27px; height:27px; place-items:center; border-radius:8px; background:#f0f1ed; color:#747971; font-style:normal; }.game-version b,.game-version small { display:block; }.game-version b { font-size:9px; }.game-version small { margin-top:3px; color:#999d96; font-size:8px; }.game-version>button { border:0; background:transparent; color:#6753c7; font-size:8px; font-weight:650; }
.game-chat { display:flex; min-width:0; flex-direction:column; padding:0 28px 20px; }.game-chat>header { display:flex; min-height:73px; align-items:center; justify-content:space-between; border-bottom:1px solid #e1e3de; }.game-chat>header h1 { margin:5px 0 0; font-size:20px; font-weight:640; letter-spacing:-.035em; }.game-chat-actions { display:flex; gap:5px; }.game-chat-actions button { min-width:31px; height:31px; border:1px solid #e0e2dd; border-radius:8px; background:#fff; color:#81857f; }
.game-chat-thread { display:grid; gap:16px; padding:22px 0; }.game-user-message { display:grid; grid-template-columns:minmax(0,1fr) 30px; align-items:start; gap:9px; }.game-user-message>span { display:grid; grid-column:2; grid-row:1; width:29px; height:29px; place-items:center; border-radius:9px; background:linear-gradient(145deg,#536be5,#6755d9); color:#fff; font-size:8px; font-weight:750; }.game-user-message>div { grid-column:1; grid-row:1; max-width:78%; justify-self:end; text-align:right; }.game-user-message small { color:#a0a49d; font-size:8px; }.game-user-message p { margin:6px 0 0; border-radius:14px 4px 14px 14px; background:linear-gradient(135deg,#5268df,#6554d8); color:#fff; padding:10px 12px; font-size:10px; line-height:1.55; text-align:left; box-shadow:0 8px 20px rgba(75,87,190,.13); }
.game-agent-message { display:grid; grid-template-columns:30px minmax(0,1fr); align-items:start; gap:9px; }.game-z { position:relative; display:grid; width:29px; height:29px; place-items:center; border-radius:9px; background:#242724; }.game-z:before,.game-z:after,.game-z i { position:absolute; width:13px; height:2px; border-radius:5px; background:#fff; content:""; }.game-z:before { transform:translateY(-4px) rotate(-31deg); }.game-z i { transform:translateY(1px) rotate(31deg); }.game-z:after { width:9px; transform:translate(2px,5px) rotate(-31deg); }.game-agent-message>div { max-width:82%; }.game-agent-message header { display:flex; align-items:center; gap:8px; }.game-agent-message header b { font-size:10px; }.game-agent-message header small { border-radius:99px; background:#eceee9; color:#787d75; padding:4px 6px; font-size:8px; }.game-agent-message p { margin:7px 0 0; border:1px solid #e0e2dd; border-radius:4px 14px 14px 14px; background:#fff; padding:10px 12px; color:#424641; font-size:10px; line-height:1.55; }.game-agent-message button { margin-top:7px; border:0; background:transparent; color:#6b59c7; padding:0; font-size:8px; font-weight:650; }.game-agent-message button i { margin-left:4px; font-style:normal; }
.studio-proof-run { margin-left:39px; overflow:hidden; border:1px solid #d9d7e5; border-radius:15px; background:#fff; box-shadow:0 10px 27px rgba(38,35,54,.05); }.studio-proof-run>header { display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid #e8e8e4; background:linear-gradient(135deg,#f7f5ff,#fbfcfa); padding:12px 14px; }.studio-proof-run>header>div { display:flex; align-items:center; gap:11px; }.studio-proof-run>header span { display:flex; align-items:center; gap:6px; color:#6b58c9; font-size:8px; font-weight:760; letter-spacing:.08em; text-transform:uppercase; }.studio-proof-run>header span i { width:6px; height:6px; border-radius:50%; background:#755fe1; box-shadow:0 0 0 4px rgba(117,95,225,.1); }.studio-proof-run>header b { font-size:10px; }.studio-proof-run>header em { color:#7e728f; font-size:8px; font-style:normal; }.studio-proof-progress { height:3px; background:#eceeea; }.studio-proof-progress i { display:block; width:67%; height:100%; background:linear-gradient(90deg,#5f77eb,#8760e1); transition:width .35s ease; }.studio-proof-run ol { margin:0; padding:10px 14px; list-style:none; }.studio-proof-run li { display:grid; grid-template-columns:18px 1fr auto; align-items:center; gap:9px; min-height:40px; border-bottom:1px solid #f0f1ed; color:#90958d; }.studio-proof-run li:last-child { border-bottom:0; }.studio-proof-run li>span { display:grid; width:16px; height:16px; place-items:center; border:1px solid #dcdfd9; border-radius:50%; font-size:7px; }.studio-proof-run li b,.studio-proof-run li small { display:block; }.studio-proof-run li b { font-size:9px; font-weight:610; }.studio-proof-run li small { margin-top:3px; color:#acb0aa; font-size:8px; }.studio-proof-run li em { color:#a2a69f; font-size:8px; font-style:normal; }.studio-proof-run li.done { color:#4d6857; }.studio-proof-run li.done>span { border-color:#cbe3d3; background:#eaf6ee; color:#3f9561; }.studio-proof-run li.active { color:#343834; }.studio-proof-run li.active>span { border:0; background:#725ede; box-shadow:0 0 0 4px rgba(114,94,222,.1); }.studio-proof-run li.active em { color:#6d59cf; }.studio-proof-run>footer { display:flex; align-items:center; justify-content:space-between; gap:10px; border-top:1px solid #e7e9e4; background:#fafbf8; padding:10px 14px; }.studio-proof-run>footer>span { display:flex; align-items:center; gap:6px; color:#7c8179; font-size:8px; }.studio-proof-run>footer>span i { width:5px; height:5px; border-radius:50%; background:#47a96e; }.studio-proof-run>footer button { border:0; border-radius:8px; background:#262926; color:#fff; padding:7px 9px; font-size:8px; font-weight:650; }.studio-proof-run>footer button:disabled { background:#e7f1ea; color:#3f8058; }
.game-composer { margin-top:auto; border:1px solid #d9dcd6; border-radius:15px; background:#fff; padding:10px; box-shadow:0 12px 30px rgba(37,40,35,.06); }.game-composer textarea { width:100%; min-height:42px; resize:none; border:0; outline:0; background:transparent; color:#3d413c; font-size:11px; }.game-composer>div,.game-composer>div>span { display:flex; align-items:center; justify-content:space-between; gap:5px; }.game-composer button { min-width:28px; height:28px; border:0; border-radius:8px; background:#f0f1ed; color:#737870; font-size:9px; }.game-composer .game-model-button { display:flex; align-items:center; gap:6px; padding:0 8px; }.game-model-button i { width:8px; height:8px; border-radius:50%; background:#715dde; box-shadow:0 0 0 3px rgba(113,93,222,.1); }.game-composer .game-send { background:#252825; color:#fff; font-size:13px; }
.game-inspector section { margin-top:12px; border:1px solid #e0e2dd; border-radius:12px; background:#fff; padding:12px; }.game-cost>span,.game-quick-tools>span { color:#969a93; font-size:8px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; }.game-cost>div { display:flex; align-items:center; justify-content:space-between; margin-top:9px; }.game-cost b { font-size:9px; }.game-cost strong { color:#6653c8; font-size:12px; }.game-cost small { display:block; margin-top:5px; color:#a0a49d; font-size:8px; }
.changed-instances header,.proof-evidence header { display:flex; align-items:center; justify-content:space-between; margin-bottom:7px; }.changed-instances header span,.proof-evidence header span { font-size:10px; font-weight:650; }.changed-instances header b { border-radius:99px; background:#edeee9; color:#777c74; padding:3px 6px; font-size:8px; }.changed-instances article { display:grid; grid-template-columns:22px 1fr; align-items:center; gap:8px; min-height:41px; border-bottom:1px solid #eff0ec; }.changed-instances article>i { display:grid; width:19px; height:19px; place-items:center; border-radius:6px; font-size:9px; font-style:normal; }.changed-instances i.created { background:#e9f6ed; color:#3f9561; }.changed-instances i.edited { background:#f2effc; color:#6a56cc; }.changed-instances article b,.changed-instances article small { display:block; }.changed-instances article b { font-size:9px; }.changed-instances article small { margin-top:3px; color:#a3a7a0; font-size:7px; }.changed-instances>button { margin-top:9px; border:0; background:transparent; color:#6552c5; padding:0; font-size:8px; font-weight:650; }
.proof-evidence header b { display:flex; align-items:center; gap:5px; color:#459164; font-size:7px; }.proof-evidence header b:before { width:5px; height:5px; border-radius:50%; background:#48aa6e; content:""; }.proof-evidence>div { display:grid; grid-template-columns:1fr 1fr; gap:6px; }.proof-evidence>div>span { border:1px solid #e7e9e4; border-radius:9px; background:#fafbf8; padding:9px; }.proof-evidence>div i { color:#47a46b; font-size:8px; font-style:normal; }.proof-evidence>div b { margin-left:6px; font-size:13px; }.proof-evidence>div small { display:block; margin-top:6px; color:#979c94; font-size:7px; }.proof-evidence>p { margin:9px 0 0; color:#9a9e97; font-size:8px; line-height:1.45; }
.game-quick-tools { display:grid; gap:5px; }.game-quick-tools>span { margin-bottom:3px; }.game-quick-tools button { display:grid; grid-template-columns:23px 1fr auto; align-items:center; gap:7px; min-height:38px; border:0; border-radius:8px; background:#fafbf8; padding:5px 7px; text-align:left; }.game-quick-tools button>i { color:#705cda; font-style:normal; }.game-quick-tools b,.game-quick-tools small { display:block; }.game-quick-tools b { font-size:8px; }.game-quick-tools small { margin-top:2px; color:#a2a69f; font-size:7px; }.game-quick-tools em { color:#6854c9; font-size:7px; font-style:normal; }
.roblox-logo { background:#242724; color:#fff; }.roblox-logo svg { stroke-width:1.6; }.roblox-integration { border-color:#ddd8ef; background:linear-gradient(145deg,#fff,#f8f6ff); }
.roblox-detail-drawer { position:fixed; z-index:69; top:0; right:0; display:flex; width:min(680px,calc(100% - 28px)); height:100vh; flex-direction:column; overflow:hidden; border-left:1px solid #e2e4df; background:#f7f8f5; opacity:0; transform:translateX(102%); transition:transform .24s ease,opacity .24s ease; }.roblox-detail-drawer.open { opacity:1; transform:translateX(0); }.roblox-detail-content { overflow-y:auto; padding:20px 24px 42px; }.roblox-connect-hero { display:grid; grid-template-columns:75px 1fr; gap:20px; border-radius:18px; background:#202320; color:#fff; padding:24px; }.roblox-hero-mark { display:grid; width:67px; height:67px; place-items:center; border:1px solid #424743; border-radius:18px; background:#2b2f2c; color:#a99af0; }.roblox-hero-mark svg { width:38px; height:38px; }.roblox-connect-hero>div>span { color:#9c8bea; font-size:9px; font-weight:760; letter-spacing:.1em; }.roblox-connect-hero h3 { margin:9px 0; font-size:25px; font-weight:620; letter-spacing:-.045em; line-height:1.05; }.roblox-connect-hero p { margin:0; color:#9aa19b; font-size:11px; line-height:1.55; }
.roblox-connect-flow { display:grid; gap:8px; margin-top:14px; }.roblox-connect-flow article { display:grid; grid-template-columns:32px 1fr auto; align-items:center; gap:11px; border:1px solid #e0e2dd; border-radius:13px; background:#fff; padding:13px; }.roblox-connect-flow article>span { color:#9a9e97; font-family:Georgia,serif; font-size:15px; }.roblox-connect-flow article b,.roblox-connect-flow article small { display:block; }.roblox-connect-flow article b { font-size:11px; }.roblox-connect-flow article small { margin-top:4px; color:#969a93; font-size:9px; }.roblox-connect-flow button { border:1px solid #dcded9; border-radius:8px; background:#f8f9f6; color:#6050b6; padding:8px 10px; font-size:8px; font-weight:650; }.roblox-connect-flow em { color:#a0a49d; font-size:8px; font-style:normal; }.roblox-connect-flow article.complete { border-color:#cfe4d6; background:#f5faf6; }.roblox-connect-flow article.complete button { border-color:#cfe4d6; background:#e9f5ed; color:#3e8058; }
.roblox-permissions,.roblox-session-preview { margin-top:14px; border:1px solid #e0e2dd; border-radius:15px; background:#fff; padding:17px; }.roblox-permissions>header { display:flex; align-items:center; justify-content:space-between; gap:15px; }.roblox-permissions h4 { margin:5px 0 0; font-size:14px; }.roblox-permissions>header>span { border-radius:99px; background:#eef5f0; color:#4d805f; padding:6px 8px; font-size:8px; }.roblox-permissions>div { display:grid; gap:8px; margin-top:15px; }.roblox-permissions article { display:grid; grid-template-columns:24px 1fr; gap:9px; border-top:1px solid #eff0ed; padding-top:10px; }.roblox-permissions article>i { display:grid; width:20px; height:20px; place-items:center; border-radius:6px; background:#edf6f0; color:#449063; font-size:9px; font-style:normal; }.roblox-permissions article:last-child>i { background:#f0f1ed; color:#8d918a; }.roblox-permissions b,.roblox-permissions small { display:block; }.roblox-permissions b { font-size:10px; }.roblox-permissions small { margin-top:3px; color:#9b9f98; font-size:8px; }
.roblox-session-preview>header { display:flex; align-items:center; justify-content:space-between; }.roblox-session-preview>header span { font-size:11px; font-weight:650; }.roblox-session-preview>header b { display:flex; align-items:center; gap:6px; color:#8c9189; font-size:8px; }.roblox-session-preview>header b i { width:5px; height:5px; border-radius:50%; background:#a1a59e; }.roblox-session-preview>div { display:flex; align-items:center; margin-top:18px; }.roblox-session-preview>div span { display:flex; align-items:center; gap:5px; color:#999d96; font-size:8px; }.roblox-session-preview>div span i { display:grid; width:20px; height:20px; place-items:center; border:1px solid #dedfdc; border-radius:50%; font-size:7px; font-style:normal; }.roblox-session-preview>div span.current { color:#5748ad; }.roblox-session-preview>div span.current i { border-color:#d2c9ef; background:#f2effc; }.roblox-session-preview>div>b { height:1px; flex:1; background:#e2e4df; }.roblox-session-preview p { margin:13px 0 0; color:#969a93; font-size:9px; }
@media(max-width:1180px){.games-workspace-grid{grid-template-columns:190px minmax(430px,1fr)}.game-inspector{display:none}}
@media(max-width:850px){.games-workspace-header{padding:12px 18px}.games-product-label{display:none}.games-project-switch{border:0;padding:0}.studio-session>span small{display:none}.games-workspace-grid{grid-template-columns:1fr}.game-explorer{display:none}.game-chat{padding-inline:18px}.game-chat-thread{padding-top:18px}.studio-proof-run{margin-left:0}}
@media(max-width:580px){.studio-session>span{display:none}.game-chat{padding-inline:12px}.game-user-message>div,.game-agent-message>div{max-width:91%}.studio-proof-run li{grid-template-columns:18px 1fr}.studio-proof-run li em{display:none}.studio-proof-run>footer{align-items:flex-start;flex-direction:column}.roblox-connect-hero{grid-template-columns:1fr}.roblox-detail-content{padding-inline:14px}.roblox-connect-flow article{grid-template-columns:28px 1fr}.roblox-connect-flow button,.roblox-connect-flow em{grid-column:2;justify-self:start}}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); }
button, textarea, input, select { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
[hidden] { display: none !important; }

.app-shell { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns .25s ease; }
.sidebar { position: sticky; z-index: 20; top: 0; display: flex; height: 100vh; min-width: 0; flex-direction: column; overflow: hidden; border-right: 1px solid var(--line); background: var(--sidebar); padding: 20px 14px 14px; }
.brand-row { display: flex; min-height: 38px; align-items: center; justify-content: space-between; padding: 0 5px; }
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-symbol { position: relative; display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; overflow: hidden; border-radius: 11px; background: var(--dark); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.brand-symbol::before, .brand-symbol::after, .brand-symbol i { position: absolute; width: 15px; height: 2px; border-radius: 99px; background: #fff; content: ""; transform-origin: center; }
.brand-symbol::before { transform: translateY(-4px) rotate(-31deg); }
.brand-symbol i { transform: translateY(1px) rotate(31deg); }
.brand-symbol::after { width: 11px; transform: translate(2px, 5px) rotate(-31deg); }
.brand-name { font-size: 16px; font-weight: 710; letter-spacing: -.025em; }
.sidebar-collapse { display: grid; width: 30px; height: 30px; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #94978f; }
.sidebar-collapse:hover { background: #eeefeb; color: var(--ink); }
.sidebar-collapse svg { width: 17px; height: 17px; transition: transform .25s ease; }

.new-chat { display: flex; width: 100%; min-height: 44px; align-items: center; gap: 10px; margin: 26px 0 24px; padding: 6px 8px; border: 1px solid #dcdfd8; border-radius: 12px; background: var(--surface); color: #30322f; box-shadow: var(--shadow-sm); font-size: 14px; font-weight: 620; text-align: left; }
.new-chat:hover { border-color: #cfd2cb; background: #fdfdfc; transform: translateY(-1px); }
.new-chat-icon { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 8px; background: #f0f1ed; }
.new-chat-icon svg { width: 16px; height: 16px; }
.new-chat kbd, .command-button kbd { margin-left: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-soft); color: #93968e; padding: 3px 6px; font-family: inherit; font-size: 12px; font-weight: 500; }

.main-nav { display: grid; min-height: 0; gap: 20px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #dfe1dc transparent; }
.nav-group { display: grid; gap: 4px; }
.nav-heading { margin: 0 10px 7px; color: #a0a39b; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.nav-item { display: flex; min-height: 42px; align-items: center; gap: 11px; overflow: hidden; border-radius: 10px; padding: 0 10px; color: #676a64; font-size: 14px; font-weight: 540; text-decoration: none; transition: background .16s ease, color .16s ease; }
.nav-item:hover { background: #f0f1ed; color: #2d2f2c; }
.nav-item.active { background: #e9ebe6; color: #1f211f; font-weight: 650; }
.nav-item > svg { width: 19px; height: 19px; flex: 0 0 19px; }
.nav-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-count, .nav-badge { margin-left: auto; border-radius: 99px; background: #e2e4de; color: #74776f; padding: 3px 7px; font-size: 12px; font-weight: 700; line-height: 1; }
.nav-count-accent { background: var(--violet-soft); color: #5e4bd2; }
.nav-badge { background: var(--green-soft); color: var(--green); font-size: 12px; letter-spacing: .025em; }
.chat-section { min-width: 0; margin: 5px 0 4px 29px; }
.chat-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 5px 5px; color: #9a9d95; }
.chat-section-heading > span { font-size: 12px; font-weight: 620; }
.chat-section-heading > button { border: 0; background: transparent; color: #a1a49c; padding: 0 3px; font-size: 12px; letter-spacing: 1px; }
.chat-history { display: grid; gap: 2px; }
.chat-entry { display: grid; grid-template-columns: 17px minmax(0,1fr) auto; align-items: center; gap: 7px; min-width: 0; min-height: 36px; border: 0; border-radius: 8px; background: transparent; padding: 5px 7px; color: #70736c; text-align: left; }
.chat-entry:hover { background: #eff0ec; color: #333532; }
.chat-entry.active { background: #ebece8; color: #252724; }
.chat-bubble-icon { display: grid; width: 17px; height: 17px; place-items: center; color: #8d9088; }
.chat-bubble-icon svg { width: 14px; height: 14px; }
.chat-entry-copy { display: grid; min-width: 0; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 6px; }
.chat-entry-copy b { overflow: hidden; font-size: 12px; font-weight: 530; text-overflow: ellipsis; white-space: nowrap; }
.chat-entry-copy small { display: none; color: #9da098; font-size: 12px; }
.chat-more { visibility: hidden; color: #989b93; font-size: 12px; letter-spacing: 1px; }
.chat-entry:hover .chat-more, .chat-entry.active:hover .chat-more { visibility: visible; }

.sidebar-bottom { display: grid; gap: 10px; margin-top: auto; }
.resource-card { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.7); padding: 12px; color: inherit; text-align: left; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.resource-card:hover { border-color: #d2ccef; box-shadow: 0 7px 18px rgba(67,52,133,.08); transform: translateY(-1px); }
.resource-card:focus-visible { outline: 2px solid #7964e1; outline-offset: 2px; }
.resource-card > div:first-child { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.resource-card strong { color: var(--ink-soft); font-size: 12px; }
.resource-track, .plan-track { height: 4px; overflow: hidden; border-radius: 99px; background: #e8eae5; }
.resource-track { margin: 10px 0 8px; }
.resource-track i, .plan-track i { display: block; width: 62%; height: 100%; border-radius: inherit; background: var(--violet); }
.resource-card small { color: var(--quiet); font-size: 12px; }
.account { display: flex; width: 100%; min-height: 52px; align-items: center; gap: 10px; overflow: hidden; border: 0; border-radius: 12px; background: transparent; padding: 7px 8px; text-align: left; }
.account:hover { background: #edeee9; }
.account-avatar, .top-avatar, .profile-avatar { display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #b1738a, #76556f); color: #fff; font-size: 12px; font-weight: 750; }
.account-avatar { width: 35px; height: 35px; flex: 0 0 35px; }
.account-copy { min-width: 0; }
.account-copy b, .account-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-copy b { font-size: 13px; font-weight: 650; }
.account-copy small { margin-top: 4px; color: var(--quiet); font-size: 12px; }
.account > svg { width: 17px; height: 17px; flex: 0 0 17px; margin-left: auto; color: #92958e; }

.app-main { display: flex; min-width: 0; min-height: 100vh; flex-direction: column; }
.topbar { position: sticky; z-index: 15; top: 0; display: flex; min-height: 72px; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(224,226,220,.9); background: rgba(245,246,243,.88); padding: 0 32px; backdrop-filter: blur(18px); }
.topbar-left, .topbar-actions, .workspace-context { display: flex; align-items: center; }
.topbar-left { gap: 12px; }
.mobile-menu { display: none; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.workspace-context { gap: 10px; }
.workspace-avatar { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 1px solid #343734; border-radius: 10px; background: var(--dark); color: #fff; font-size: 12px; font-weight: 750; box-shadow: inset 0 0 0 2px rgba(255,255,255,.06); }
.workspace-context b, .workspace-context small { display: block; }
.workspace-context b { font-size: 13px; font-weight: 660; }
.workspace-context small { margin-top: 3px; color: var(--quiet); font-size: 12px; }
.workspace-context > button { display: grid; width: 26px; height: 26px; place-items: center; border: 0; border-radius: 7px; background: transparent; color: #969991; }
.workspace-context > button:hover { background: #ebece8; }
.workspace-context > button svg { width: 16px; height: 16px; }
.topbar-actions { gap: 9px; }
.prototype-badge { display: inline-flex; min-height: 28px; align-items: center; gap: 7px; border: 1px solid #ddd9fb; border-radius: 99px; background: #f4f2ff; color: #5d4fc1; padding: 0 10px; font-size: 10px; font-weight: 730; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.prototype-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.command-button { display: flex; height: 36px; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.8); color: #7c7f78; padding: 0 8px 0 10px; font-size: 12px; }
.command-button:hover { border-color: var(--line-strong); background: #fff; color: var(--ink-soft); }
.command-button svg { width: 16px; height: 16px; }
.command-button kbd { margin-left: 12px; }
.round-button { position: relative; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.8); color: #6f726c; }
.round-button:hover { background: #fff; color: var(--ink); }
.round-button svg { width: 18px; height: 18px; }
.notification-button i { position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; border: 1.5px solid #fff; border-radius: 50%; background: var(--violet); }
.top-avatar { width: 36px; height: 36px; border: 0; margin-left: 2px; }

.view { display: none; }
.view.active { display: block; animation: view-in .24s ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.page-container { width: min(1180px, calc(100% - 64px)); margin: 0 auto; }
.content-page { padding: 54px 0 76px; }
.eyebrow { display: block; color: #8a8d86; font-size: 12px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.page-heading h1 { margin: 7px 0 0; font-size: clamp(32px, 3.2vw, 45px); font-weight: 650; letter-spacing: -.055em; line-height: 1.02; }
.page-heading p { max-width: 680px; margin: 13px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.heading-actions { display: flex; gap: 9px; }
.primary-button, .secondary-button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; border-radius: 11px; padding: 0 15px; font-size: 13px; font-weight: 650; white-space: nowrap; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.primary-button { border: 1px solid var(--dark); background: var(--dark); color: #fff; box-shadow: 0 5px 14px rgba(25,27,25,.12); }
.primary-button:hover { transform: translateY(-1px); background: #292c29; box-shadow: 0 8px 20px rgba(25,27,25,.16); }
.secondary-button { border: 1px solid var(--line-strong); background: var(--surface); color: #4f524d; }
.secondary-button:hover { border-color: #c9cdc5; background: #fcfcfb; }
.primary-button svg, .secondary-button svg { width: 17px; height: 17px; }
.text-action { border: 0; background: transparent; color: #747770; padding: 5px; font-size: 12px; font-weight: 600; }
.text-action:hover { color: var(--ink); }

/* Agent */
.agent-page { width: min(980px, calc(100% - 64px)); padding: 74px 0 82px; }
.conversation-shell { display: none; width: min(820px, 100%); margin: 0 auto; }
.agent-page.chat-active { width: min(980px, calc(100% - 64px)); padding-top: 38px; }
.agent-page.chat-active .conversation-shell { display: block; }
.agent-page.chat-active .agent-hero, .agent-page.chat-active .quick-prompts, .agent-page.chat-active .model-lab, .agent-page.chat-active .agent-dashboard { display: none; }
.agent-page.chat-active .prompt-card { position: sticky; z-index: 8; bottom: 16px; width: min(820px, 100%); margin: 28px auto 0; box-shadow: 0 16px 48px rgba(24,27,22,.11), 0 2px 8px rgba(24,27,22,.05); }
.agent-page.chat-active .prompt-card textarea { min-height: 90px; max-height: 210px; }
.conversation-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding: 3px 0 20px; }
.conversation-header h1 { margin: 7px 0 0; font-size: 27px; font-weight: 650; letter-spacing: -.045em; line-height: 1.1; }
.conversation-header p { display: flex; align-items: center; gap: 8px; margin: 9px 0 0; color: var(--quiet); font-size: 12px; }
.conversation-header p i { width: 3px; height: 3px; border-radius: 50%; background: #b0b3ac; }
.conversation-actions { display: flex; gap: 6px; }
.conversation-actions button { display: grid; min-width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.78); color: #747770; padding: 0 8px; }
.conversation-actions button:hover { border-color: var(--line-strong); background: #fff; color: var(--ink); }
.conversation-actions svg { width: 16px; height: 16px; }
.chat-thread { display: grid; gap: 9px; padding: 20px 0 8px; scroll-margin-bottom: 220px; }
.chat-message { display: grid; grid-template-columns: 36px minmax(0,1fr); align-items: start; gap: 13px; padding: 13px 0; }
.message-avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: #987086; color: #fff; font-size: 12px; font-weight: 730; }
.assistant-message .message-avatar { position: relative; overflow: hidden; background: var(--dark); }
.assistant-message .message-avatar > span, .assistant-message .message-avatar::before, .assistant-message .message-avatar::after { position: absolute; width: 14px; height: 2px; border-radius: 99px; background: #fff; content: ""; }
.assistant-message .message-avatar::before { transform: translateY(-4px) rotate(-31deg); }
.assistant-message .message-avatar > span { transform: translateY(1px) rotate(31deg); }
.assistant-message .message-avatar::after { width: 10px; transform: translate(2px, 5px) rotate(-31deg); }
.message-column { min-width: 0; max-width: 84%; }
.message-column > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 25px; }
.message-column > header > div { display: flex; align-items: center; gap: 8px; }
.message-column > header b { font-size: 13px; font-weight: 670; }
.message-column > header em { border-radius: 99px; background: #eceee9; color: #747770; padding: 4px 7px; font-size: 12px; font-style: normal; }
.message-column > header time { color: #a0a39b; font-size: 12px; }
.message-body { color: #343633; }
.message-body > p { display: inline-block; margin: 8px 0 0; border: 1px solid #e1e3dd; border-radius: 5px 16px 16px 16px; background: #fff; padding: 12px 15px; box-shadow: 0 3px 14px rgba(24,27,22,.035); font-size: 15px; line-height: 1.65; white-space: pre-wrap; }
.user-message { grid-template-columns: minmax(0,1fr) 36px; }
.user-message .message-avatar { grid-column: 2; grid-row: 1; background: linear-gradient(145deg,#536be5,#6755d9); box-shadow: 0 5px 14px rgba(77,91,205,.18); }
.user-message .message-column { grid-column: 1; grid-row: 1; width: fit-content; max-width: 74%; justify-self: end; }
.user-message .message-column > header { justify-content: flex-end; }
.user-message .message-column > header time { order: -1; }
.user-message .message-body { text-align: right; }
.user-message .message-body > p { border: 0; border-radius: 16px 5px 16px 16px; background: linear-gradient(135deg,#5268df,#6554d8); color: #fff; box-shadow: 0 8px 22px rgba(74,86,189,.17); line-height: 1.6; text-align: left; }
.assistant-message .message-column { justify-self: start; }
.message-work { margin-top: 15px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.72); padding: 13px 14px; }
.message-work > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.message-work > div:first-child > span { display: flex; align-items: center; gap: 7px; color: #555851; font-size: 12px; font-weight: 650; }
.message-work > div:first-child > span i { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 4px rgba(104,87,232,.09); }
.message-work b { color: #686b65; font-size: 12px; }
.message-progress { height: 4px; margin: 11px 0 8px; overflow: hidden; border-radius: 99px; background: #e9eae6; }
.message-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6655e5, #8c7af5); }
.message-work small { color: #92958d; font-size: 12px; }
.verification-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.verification-chips span { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #dedaf5; border-radius: 99px; background: #f7f5ff; color: #5a49c4; padding: 6px 8px; font-size: 9px; font-weight: 640; }
.verification-chips span::before { color: var(--green); content: "✓"; }
.message-actions { display: flex; gap: 3px; margin-top: 10px; }
.message-actions button { display: grid; width: 30px; height: 30px; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #969991; }
.message-actions button:hover { background: #ebece8; color: #565953; }
.message-actions svg { width: 15px; height: 15px; }
.agent-hero { position: relative; margin-bottom: 31px; text-align: center; }
.agent-hero::before { position: absolute; z-index: -1; top: -120px; left: 50%; width: 680px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(110,88,232,.07), rgba(110,88,232,0) 68%); content: ""; transform: translateX(-50%); pointer-events: none; }
.availability { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 19px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,255,255,.72); color: #6f726c; padding: 6px 10px; font-size: 12px; font-weight: 630; box-shadow: var(--shadow-sm); }
.availability i, .live-dot, .status-pill > i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #35a06b; }
.agent-hero > p { margin: 0 0 8px; color: #686b65; font-size: 15px; }
.agent-hero h1 { margin: 0; font-size: clamp(39px, 5vw, 56px); font-weight: 625; letter-spacing: -.065em; line-height: 1.03; }
.hero-copy { display: block; max-width: 590px; margin: 15px auto 0; color: #81847d; font-size: 15px; line-height: 1.55; }

.prompt-card { position: relative; overflow: visible; border: 1px solid var(--line-strong); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-md); transition: border .18s ease, box-shadow .18s ease; }
.prompt-card:focus-within { border-color: #c7c2ed; box-shadow: 0 20px 54px rgba(60,53,112,.1), 0 0 0 3px rgba(104,87,232,.06); }
.prompt-context { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #eff0ed; border-radius: 19px 19px 0 0; background: #fbfcf9; padding: 11px 14px; }
.project-context { display: flex; align-items: center; gap: 9px; }
.mini-project-icon { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; background: #284e6e; color: #fff; font-size: 12px; font-weight: 760; }
.project-context small, .project-context b { display: block; }
.project-context small { color: #999c94; font-size: 12px; }
.project-context b { margin-top: 2px; font-size: 12px; font-weight: 640; }
.prompt-context > button { display: flex; align-items: center; gap: 3px; border: 0; background: transparent; color: #858880; font-size: 12px; }
.prompt-context > button:hover { color: var(--ink); }
.prompt-context > button svg { width: 15px; height: 15px; }
.prompt-card textarea { display: block; width: 100%; min-height: 144px; resize: vertical; border: 0; outline: 0; background: transparent; padding: 22px 20px 14px; color: #2c2e2b; font-size: 16px; line-height: 1.58; }
.prompt-card textarea::placeholder { color: #9b9e96; }
.prompt-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px 12px; }
.prompt-tools, .run-settings, .choice-menu { display: flex; align-items: center; }
.prompt-tools { gap: 5px; }
.tools-divider { width: 1px; height: 20px; margin: 0 2px; background: #e4e6e0; }
.agent-tools { position: relative; }
.agent-tools-trigger { display: flex; height: 34px; align-items: center; gap: 7px; border: 0; border-radius: 9px; background: transparent; color: #686b65; padding: 0 8px; font-size: 11px; font-weight: 620; }
.agent-tools-trigger:hover,.agent-tools-trigger[aria-expanded="true"] { background: #f1f2ee; color: #30322f; }
.agent-tools-trigger svg { width: 16px; height: 16px; color: #6252cf; }
.agent-tools-trigger i { display: grid; min-width: 18px; height: 18px; place-items: center; border-radius: 6px; background: var(--violet-soft); color: #5b49c8; font-size: 8px; font-style: normal; }
.capability-menu { position: absolute; z-index: 30; bottom: calc(100% + 11px); left: 0; visibility: hidden; width: 330px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 15px; background: #fff; box-shadow: 0 20px 54px rgba(24,27,22,.16),0 2px 8px rgba(24,27,22,.05); opacity: 0; transform: translateY(7px) scale(.98); transform-origin: bottom left; transition: opacity .16s ease,transform .16s ease,visibility .16s ease; }
.capability-menu.open { visibility: visible; opacity: 1; transform: translateY(0) scale(1); }
.capability-menu > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; border-bottom: 1px solid #eceee9; background: #fafbf8; padding: 14px 15px; }
.capability-menu header b,.capability-menu header small { display: block; }
.capability-menu header b { font-size: 11px; font-weight: 670; }
.capability-menu header small { margin-top: 4px; color: var(--quiet); font-size: 8px; }
.capability-menu header > span { border-radius: 99px; background: #eeefeb; color: #747770; padding: 5px 7px; font-size: 8px; font-weight: 650; white-space: nowrap; }
.capability-list { display: grid; padding: 5px; }
.capability-option { display: grid; grid-template-columns: 36px minmax(0,1fr) 22px; align-items: center; gap: 10px; border: 0; border-radius: 11px; background: transparent; padding: 9px 10px; text-align: left; }
.capability-option:hover { background: #f5f6f3; }
.capability-symbol { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: #eff0ec; color: #676a64; font-size: 14px; }
.capability-option.active .capability-symbol { background: var(--violet-soft); color: #5e4ccf; }
.capability-option b,.capability-option small { display: block; }
.capability-option b { font-size: 11px; font-weight: 640; }
.capability-option small { margin-top: 4px; color: var(--quiet); font-size: 8px; }
.capability-option > i { display: none; width: 19px; height: 19px; place-items: center; border-radius: 50%; background: var(--violet); color: #fff; font-size: 8px; font-style: normal; }
.capability-option.active > i { display: grid; }
.tool-button { display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 9px; background: transparent; color: #6f726c; }
.tool-button:hover { background: #f1f2ee; color: var(--ink); }
.tool-button svg { width: 18px; height: 18px; }
.run-settings { min-width: 0; gap: 8px; }
.choice-menu { gap: 2px; padding: 3px; border-radius: 9px; background: #f2f3ef; }
.choice-menu button { border: 0; border-radius: 7px; background: transparent; color: #777a73; padding: 6px 8px; font-size: 12px; white-space: nowrap; }
.choice-menu button:hover { color: var(--ink); }
.choice-menu button.selected { background: #fff; color: #262825; font-weight: 680; box-shadow: 0 1px 3px rgba(25,28,23,.1); }
.toolbar-divider { width: 1px; height: 22px; background: var(--line); }
.send-button { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border: 0; border-radius: 10px; background: var(--dark); color: #fff; }
.send-button:hover { transform: translateY(-1px); background: #292c29; }
.send-button svg { width: 18px; height: 18px; }

.quick-prompts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.quick-prompts > button { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 10px; min-width: 0; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.62); padding: 10px; color: var(--ink); text-align: left; transition: border .15s ease, background .15s ease, transform .15s ease; }
.quick-prompts > button:hover { border-color: #d1d4cd; background: #fff; transform: translateY(-1px); }
.quick-icon, .activity-symbol, .overview-icon, .vault-summary-icon, .blueprint-icon { display: grid; place-items: center; border-radius: 9px; }
.quick-icon { width: 34px; height: 34px; }
.quick-icon svg { width: 17px; height: 17px; }
.quick-icon.violet, .blueprint-icon.violet { background: var(--violet-soft); color: #6453db; }
.quick-icon.amber, .blueprint-icon.amber { background: var(--amber-soft); color: var(--amber); }
.quick-icon.green, .blueprint-icon.green { background: var(--green-soft); color: var(--green); }
.quick-prompts b, .quick-prompts small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-prompts b { font-size: 12px; font-weight: 650; }
.quick-prompts small { margin-top: 4px; color: var(--quiet); font-size: 12px; }
.quick-prompts > button > i { color: #a2a59d; font-size: 13px; font-style: normal; }

.agent-dashboard { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(310px, .9fr); gap: 14px; margin-top: 52px; }
.active-task-card, .activity-card { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); }
.active-task-card { padding: 20px; transition: box-shadow .2s ease, border .2s ease; }
.active-task-card.task-updated { border-color: #cfc8fa; box-shadow: 0 12px 32px rgba(104,87,232,.09); }
.card-heading, .panel-heading, .section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.card-heading h2, .panel-heading h2, .section-heading h2 { margin: 6px 0 0; font-size: 18px; font-weight: 650; letter-spacing: -.03em; }
.status-pill { display: inline-flex; width: fit-content; align-items: center; gap: 6px; border-radius: 99px; padding: 5px 8px; font-size: 12px; font-weight: 680; white-space: nowrap; }
.status-live, .status-working { background: var(--green-soft); color: var(--green); }
.status-live > i, .status-working > i { background: #36a06b; }
.task-summary { margin: 16px 0 18px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.task-progress, .operation-progress, .project-progress, .metric-progress { overflow: hidden; border-radius: 99px; background: #ebece8; }
.task-progress { height: 5px; }
.task-progress i { display: block; width: 46%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6756e5, #8b7cf5); transition: width .35s ease; }
.task-stages { display: grid; grid-template-columns: repeat(4,1fr); margin: 14px 0 20px; }
.task-stages span { position: relative; display: flex; align-items: center; gap: 5px; color: #9b9e96; font-size: 12px; white-space: nowrap; }
.task-stages span:not(:last-child)::after { position: absolute; right: 7px; width: 17%; height: 1px; background: #e2e4df; content: ""; }
.task-stages i { display: grid; width: 18px; height: 18px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: #fff; font-size: 12px; font-style: normal; }
.task-stages .done, .task-stages .current { color: #4c4f49; }
.task-stages .done i { border-color: #b9dfca; background: var(--green-soft); color: var(--green); }
.task-stages .current i { border-color: var(--violet); background: var(--violet); color: #fff; }
.task-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #eff0ed; padding-top: 14px; color: #8b8e87; font-size: 12px; }
.task-footer b { color: #555852; font-weight: 650; }
.task-footer button { border: 0; background: transparent; color: #5e52bd; padding: 0; font-size: 12px; font-weight: 620; }
.activity-card { overflow: hidden; }
.activity-card > .card-heading { align-items: center; border-bottom: 1px solid #eceee9; padding: 18px; }
.activity-list { display: grid; }
.activity-list > button { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 11px; border: 0; border-bottom: 1px solid #eff0ed; background: transparent; padding: 13px 16px; color: var(--ink); text-align: left; }
.activity-list > button:last-child { border-bottom: 0; }
.activity-list > button:hover { background: #fafbf8; }
.activity-symbol { width: 32px; height: 32px; }
.activity-symbol svg { width: 16px; height: 16px; }
.activity-symbol.success { background: var(--green-soft); color: var(--green); }
.activity-symbol.archive { background: var(--violet-soft); color: #6150d4; }
.activity-symbol.neutral { background: #edf0ec; color: #62665f; }
.activity-list b, .activity-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-list b { font-size: 12px; font-weight: 630; }
.activity-list small { margin-top: 4px; color: var(--quiet); font-size: 12px; }
.activity-list > button > i { color: #a0a39b; font-size: 20px; font-style: normal; }

/* Projects */
.project-overview { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.72); }
.project-overview article { display: flex; align-items: center; gap: 12px; border-right: 1px solid var(--line); padding: 17px 19px; }
.project-overview article:last-child { border-right: 0; }
.overview-icon { width: 36px; height: 36px; background: #f0f1ed; color: #62655f; }
.overview-icon svg { width: 18px; height: 18px; }
.project-overview strong, .project-overview small { display: block; }
.project-overview strong { font-size: 20px; font-weight: 670; letter-spacing: -.04em; }
.project-overview small { margin-top: 3px; color: var(--quiet); font-size: 12px; }
.toolbar-row, .vault-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.search-field { display: flex; width: 260px; height: 40px; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.82); padding: 0 11px; }
.search-field:focus-within { border-color: #c7c2ed; box-shadow: 0 0 0 3px rgba(104,87,232,.05); }
.search-field svg { width: 17px; height: 17px; flex: 0 0 17px; color: #90938b; }
.search-field input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; font-size: 13px; }
.search-field input::placeholder { color: #9a9d95; }
.filter-pills { display: flex; align-items: center; gap: 3px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.7); padding: 3px; }
.filter-pills button { border: 0; border-radius: 8px; background: transparent; color: #777a73; padding: 7px 11px; font-size: 12px; white-space: nowrap; }
.filter-pills button:hover { color: var(--ink); }
.filter-pills button.selected { background: #e9ebe6; color: #2b2d2a; font-weight: 650; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.project-tile { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border .18s ease; }
.project-tile:hover { border-color: #d2d5ce; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.project-visual { position: relative; height: 128px; overflow: hidden; padding: 17px; }
.project-visual.skyblock { background: linear-gradient(145deg, #23445d, #396985); }
.project-visual.vault-raiders { background: linear-gradient(145deg, #3d335f, #7664a9); }
.project-visual.aether { background: linear-gradient(145deg, #7d4c30, #bd8258); }
.project-visual::before { position: absolute; top: -70px; right: -45px; width: 190px; height: 190px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; content: ""; }
.project-visual::after { position: absolute; right: 56px; bottom: -74px; width: 150px; height: 150px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; content: ""; }
.project-monogram { position: relative; z-index: 2; display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 12px; background: rgba(255,255,255,.1); color: #fff; font-size: 14px; font-weight: 750; backdrop-filter: blur(7px); }
.project-state { position: absolute; z-index: 2; top: 17px; right: 17px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.2); border-radius: 99px; background: rgba(18,24,20,.18); color: rgba(255,255,255,.9); padding: 5px 8px; font-size: 12px; font-weight: 620; backdrop-filter: blur(8px); }
.project-state i { width: 5px; height: 5px; border-radius: 50%; background: #72e3a3; }
.project-state.paused { color: rgba(255,255,255,.76); }
.visual-lines { position: absolute; z-index: 1; right: 25px; bottom: 18px; display: grid; width: 45%; gap: 7px; transform: rotate(-7deg); }
.visual-lines i { height: 1px; background: rgba(255,255,255,.2); }
.visual-lines i:nth-child(2) { width: 72%; margin-left: auto; }
.visual-lines i:nth-child(3) { width: 88%; }
.project-content { padding: 17px; }
.project-title-row, .project-progress-row, .project-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project-title-row h2 { margin: 0; font-size: 17px; font-weight: 660; letter-spacing: -.025em; }
.project-title-row p { margin: 5px 0 0; color: var(--quiet); font-size: 12px; }
.project-title-row > button { border: 0; background: transparent; color: #8c8f87; font-size: 15px; letter-spacing: 2px; }
.project-progress-row { margin-top: 20px; color: #898c84; font-size: 12px; }
.project-progress-row b { color: #50534d; font-size: 12px; }
.project-progress { height: 4px; margin-top: 8px; }
.project-progress i { display: block; height: 100%; border-radius: inherit; background: #77716e; }
.project-footer { margin-top: 17px; border-top: 1px solid #eff0ed; padding-top: 13px; }
.project-footer > span { color: var(--quiet); font-size: 12px; }
.project-footer button { border: 0; background: transparent; color: #5045a8; padding: 0; font-size: 12px; font-weight: 650; }
.project-footer button i { margin-left: 3px; font-style: normal; }
.empty-project { display: flex; min-height: 278px; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed #ced1ca; border-radius: 17px; background: rgba(255,255,255,.33); color: var(--ink); }
.empty-project:hover { border-color: #bfc3ba; background: rgba(255,255,255,.66); }
.empty-project > span { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: #6e716a; box-shadow: var(--shadow-sm); }
.empty-project svg { width: 18px; height: 18px; }
.empty-project b { font-size: 14px; font-weight: 640; }
.empty-project small { max-width: 230px; margin-top: 7px; color: var(--quiet); font-size: 12px; line-height: 1.4; }
.project-intelligence { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(190px,.6fr) minmax(190px,.6fr); gap: 10px; margin-bottom: 22px; }
.dna-card { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 14px; overflow: hidden; border-radius: 15px; background: var(--dark); color: #fff; padding: 17px; box-shadow: var(--shadow-md); }
.intelligence-icon { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.055); color: #a99cf7; font-size: 12px; font-weight: 760; }
.dna-card .eyebrow { color: #7f857c; font-size: 8px; }
.dna-card h2 { margin: 5px 0 0; font-size: 14px; font-weight: 620; letter-spacing: -.02em; }
.dna-card p { margin: 5px 0 0; color: #8f958c; font-size: 9px; line-height: 1.4; }
.dna-card button { border: 0; background: transparent; color: #e3e5e0; font-size: 10px; font-weight: 620; white-space: nowrap; }
.dna-card button i { margin-left: 4px; font-style: normal; }
.project-tool-card { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.75); padding: 12px; text-align: left; box-shadow: var(--shadow-sm); }
.project-tool-card:hover { border-color: #d0d3cc; background: #fff; }
.project-tool-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: var(--violet-soft); color: #5c4acb; font-size: 13px; }
.project-tool-card b,.project-tool-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-tool-card b { font-size: 11px; font-weight: 650; }
.project-tool-card small { margin-top: 4px; color: var(--quiet); font-size: 8px; }
.project-tool-card > i { display: grid; min-width: 20px; height: 20px; place-items: center; border-radius: 7px; background: #f0f1ed; color: #777a73; font-size: 9px; font-style: normal; }

/* Games Studio */
.studio-page { padding-bottom: 90px; }
.studio-step { display: flex; align-items: center; gap: 8px; color: #8c8f87; font-size: 12px; font-weight: 700; letter-spacing: .08em; white-space: nowrap; }
.studio-step i { width: 32px; height: 1px; background: #cfd2cb; }
.studio-layout { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(320px,.82fr); gap: 16px; align-items: stretch; }
.studio-form { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); }
.form-section { display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 16px; border-bottom: 1px solid #eceee9; padding: 23px; }
.form-number { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: #f0f1ed; color: #787b74; font-size: 12px; font-weight: 750; }
.form-content { min-width: 0; }
.form-content label, .form-label { display: block; margin: 1px 0 11px; color: #40423e; font-size: 13px; font-weight: 650; }
.form-content > input, .form-content > textarea { display: block; width: 100%; border: 1px solid var(--line-strong); border-radius: 11px; outline: 0; background: #fbfcfa; color: var(--ink); padding: 11px 12px; font-size: 14px; line-height: 1.5; }
.form-content > textarea { min-height: 104px; resize: vertical; }
.form-content > input:focus, .form-content > textarea:focus { border-color: #bdb6ed; background: #fff; box-shadow: 0 0 0 3px rgba(104,87,232,.06); }
.form-content > small { display: block; margin-top: 7px; color: var(--quiet); font-size: 12px; }
.platform-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.platform-cards button { display: grid; grid-template-columns: 36px minmax(0,1fr) 18px; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fafbf8; padding: 12px; color: var(--ink); text-align: left; }
.platform-cards button:hover { border-color: #cfd2ca; }
.platform-cards button.selected { border-color: #bdb6ed; background: #f7f5ff; box-shadow: 0 0 0 2px rgba(104,87,232,.045); }
.platform-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: #eceee9; color: #5b5e58; }
.platform-icon svg { width: 18px; height: 18px; }
.platform-cards b, .platform-cards small { display: block; }
.platform-cards b { font-size: 12px; font-weight: 650; }
.platform-cards small { margin-top: 4px; color: var(--quiet); font-size: 12px; }
.platform-cards button > i { display: none; width: 17px; height: 17px; place-items: center; border-radius: 50%; background: var(--violet); color: #fff; font-size: 12px; font-style: normal; }
.platform-cards button.selected > i { display: grid; }
.genre-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.genre-chips button { border: 1px solid var(--line); border-radius: 99px; background: #fafbf8; color: #73766f; padding: 7px 11px; font-size: 12px; }
.genre-chips button.selected { border-color: #c8c2ed; background: var(--violet-soft); color: #5947c6; font-weight: 650; }
.studio-submit { display: flex; width: calc(100% - 46px); min-height: 58px; align-items: center; justify-content: space-between; margin: 18px 23px 22px; border: 0; border-radius: 13px; background: var(--dark); color: #fff; padding: 0 16px; text-align: left; }
.studio-submit:hover { background: #292c29; transform: translateY(-1px); }
.studio-submit span:first-child small, .studio-submit span:first-child b { display: block; }
.studio-submit small { color: #aeb2aa; font-size: 12px; }
.studio-submit b { margin-top: 3px; font-size: 12px; }
.studio-submit span:last-child { font-size: 12px; font-weight: 650; }
.studio-submit i { margin-left: 5px; font-style: normal; }

.concept-panel { position: relative; overflow: hidden; border-radius: 18px; background: #202320; color: #fff; padding: 22px; box-shadow: var(--shadow-md); }
.concept-panel::after { position: absolute; right: -85px; bottom: -90px; width: 260px; height: 260px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; content: ""; }
.concept-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; }
.concept-kicker { display: flex; align-items: center; gap: 7px; color: #aeb2aa; font-size: 12px; font-weight: 680; letter-spacing: .06em; text-transform: uppercase; }
.concept-kicker i { width: 6px; height: 6px; border-radius: 50%; background: #8c7afa; box-shadow: 0 0 0 4px rgba(140,122,250,.1); }
.concept-top button { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; background: rgba(255,255,255,.04); color: #b7bbb3; }
.concept-top button:hover { background: rgba(255,255,255,.09); color: #fff; }
.concept-top svg { width: 15px; height: 15px; }
.concept-identity { position: relative; z-index: 2; display: flex; align-items: center; gap: 13px; margin-top: 28px; }
.concept-mark { display: grid; width: 50px; height: 50px; place-items: center; border: 1px solid rgba(255,255,255,.13); border-radius: 15px; background: rgba(255,255,255,.06); font-size: 17px; font-weight: 740; }
.concept-identity small { color: #989d94; font-size: 12px; }
.concept-identity h2 { margin: 3px 0 0; font-size: 23px; font-weight: 620; letter-spacing: -.04em; }
.concept-identity p { margin: 4px 0 0; color: #b7bbb3; font-size: 12px; }
.concept-divider { height: 1px; margin: 24px 0 18px; background: rgba(255,255,255,.1); }
.concept-label { color: #92978e; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.release-plan { position: relative; z-index: 2; display: grid; gap: 0; margin: 12px 0 0; padding: 0; list-style: none; }
.release-plan li { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 9px 0; }
.release-plan li:not(:last-child)::before { position: absolute; left: 12px; top: 29px; width: 1px; height: 20px; background: rgba(255,255,255,.1); content: ""; }
.release-plan li > span { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid rgba(255,255,255,.13); border-radius: 8px; color: #aeb2aa; font-size: 12px; }
.release-plan b, .release-plan small { display: block; }
.release-plan b { color: #eef0ec; font-size: 12px; font-weight: 590; }
.release-plan small { margin-top: 4px; color: #8f948b; font-size: 12px; }
.concept-readiness { position: relative; z-index: 2; margin-top: 18px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.04); padding: 12px; }
.concept-readiness > div:first-child { display: flex; align-items: center; justify-content: space-between; color: #aeb2aa; font-size: 12px; }
.concept-readiness b { color: #fff; }
.concept-readiness .resource-track { margin: 9px 0 7px; background: rgba(255,255,255,.1); }
.concept-readiness .resource-track i { background: #8c7afa; }
.concept-readiness > small { color: #888e85; font-size: 12px; }
.blueprints-section { margin-top: 44px; }
.section-heading { align-items: flex-end; margin-bottom: 14px; }
.section-heading h2 { font-size: 21px; }
.blueprint-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.blueprint-card { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; align-items: center; gap: 12px; min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.68); padding: 13px; color: var(--ink); text-align: left; }
.blueprint-card:hover, .blueprint-card.selected { border-color: #cfd2ca; background: #fff; box-shadow: var(--shadow-sm); }
.blueprint-icon { width: 40px; height: 40px; }
.blueprint-icon svg { width: 19px; height: 19px; }
.blueprint-card b, .blueprint-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blueprint-card b { font-size: 12px; font-weight: 650; }
.blueprint-card small { margin-top: 5px; color: var(--quiet); font-size: 12px; }
.blueprint-card > i { color: #9da098; font-size: 14px; font-style: normal; }

/* Astrylo Browser */
.browser-heading { align-items: center; }
.browser-workspace { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(300px,.7fr); gap: 14px; }
.browser-stage { overflow: hidden; border-radius: 18px; background: #1d201d; color: #fff; box-shadow: 0 22px 54px rgba(22,25,21,.14); }
.browser-chrome { display: flex; min-height: 48px; align-items: center; gap: 14px; border-bottom: 1px solid rgba(255,255,255,.07); background: #252825; padding: 0 16px; }
.browser-chrome > div { display: flex; gap: 5px; }
.browser-chrome > div i { width: 7px; height: 7px; border-radius: 50%; background: #555a53; }
.browser-chrome > span { flex: 1; overflow: hidden; border: 1px solid rgba(255,255,255,.07); border-radius: 8px; background: rgba(255,255,255,.035); color: #858b82; padding: 7px 10px; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.browser-chrome > b { display: flex; align-items: center; gap: 6px; color: #82c79f; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.browser-chrome > b i { width: 6px; height: 6px; border-radius: 50%; background: #55bb82; box-shadow: 0 0 0 4px rgba(85,187,130,.09); }
.browser-stage-body { position: relative; overflow: hidden; padding: 28px; }
.browser-stage-body::after { position: absolute; right: -150px; bottom: -250px; width: 440px; height: 440px; border: 1px solid rgba(146,130,246,.13); border-radius: 50%; content: ""; }
.browser-stage-body > header { position: relative; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.eyebrow.light { color: #7f857c; }
.browser-stage-body h2 { max-width: 530px; margin: 8px 0 0; font-size: clamp(25px,3vw,37px); font-weight: 590; letter-spacing: -.05em; line-height: 1.08; }
.mission-status { display: flex; align-items: center; gap: 7px; border: 1px solid rgba(255,255,255,.08); border-radius: 99px; background: rgba(255,255,255,.04); color: #aeb3aa; padding: 7px 10px; font-size: 9px; white-space: nowrap; }
.mission-status i { width: 6px; height: 6px; border-radius: 50%; background: #8d7cf7; animation: mission-pulse 1.8s infinite; }
.mission-progress { position: relative; z-index: 2; max-width: 560px; margin-top: 34px; border: 1px solid rgba(255,255,255,.08); border-radius: 13px; background: rgba(255,255,255,.035); padding: 14px; }
.mission-progress > div:first-child { display: flex; justify-content: space-between; color: #a7aca3; font-size: 9px; }
.mission-progress > div:nth-child(2) { height: 4px; margin: 11px 0 8px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.08); }
.mission-progress > div:nth-child(2) i { display: block; width: 68%; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#6e5be7,#9988fa); }
.mission-progress small { color: #777d74; font-size: 8px; }
.browser-actions { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 14px; }
.browser-actions button { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; grid-template-rows: auto auto; align-items: center; gap: 2px 9px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.03); color: #e6e8e3; padding: 12px; text-align: left; }
.browser-actions button:hover { background: rgba(255,255,255,.07); }
.browser-actions button > span { display: grid; width: 28px; height: 28px; grid-row: 1 / 3; place-items: center; border-radius: 8px; background: rgba(143,126,247,.1); color: #a99bf8; font-size: 12px; }
.browser-actions b { font-size: 9px; font-weight: 620; }
.browser-actions small { color: #777d74; font-size: 7px; }
.browser-actions button > i { grid-row: 1 / 3; grid-column: 3; color: #737970; font-size: 10px; font-style: normal; }
.source-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.source-list article { display: grid; grid-template-columns: 25px minmax(0,1fr) 20px; align-items: center; gap: 9px; border-bottom: 1px solid #eff0ed; padding: 13px 15px; }
.source-list article > span { color: #a0a39b; font-size: 8px; font-weight: 700; }
.source-list b,.source-list small { display: block; }
.source-list b { font-size: 10px; font-weight: 630; }
.source-list small { margin-top: 4px; color: var(--quiet); font-size: 8px; }
.source-list article > i { color: var(--green); font-size: 10px; font-style: normal; }
.source-list article > i.working { color: var(--violet); letter-spacing: 1px; }
.proof-note { display: grid; grid-template-columns: 30px 1fr; gap: 10px; margin: 14px; border-radius: 12px; background: #f4f2ff; padding: 12px; }
.proof-note > span { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 9px; background: #e7e2ff; color: #5e4ccb; }
.proof-note p { margin: 0; }
.proof-note b,.proof-note small { display: block; }
.proof-note b { color: #5142b2; font-size: 9px; }
.proof-note small { margin-top: 4px; color: #858099; font-size: 8px; line-height: 1.4; }
.browser-missions-section { margin-top: 38px; }
.mission-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.mission-grid > button { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.7); padding: 13px; text-align: left; }
.mission-grid > button:hover { border-color: #cfd2ca; background: #fff; box-shadow: var(--shadow-sm); }
.mission-glyph { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 11px; font-size: 11px; font-weight: 740; }
.mission-glyph.violet { background: var(--violet-soft); color: #5d4bcf; }
.mission-glyph.green { background: var(--green-soft); color: var(--green); }
.mission-glyph.amber { background: var(--amber-soft); color: var(--amber); }
.mission-grid b,.mission-grid small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mission-grid b { font-size: 11px; font-weight: 640; }
.mission-grid small { margin-top: 5px; color: var(--quiet); font-size: 8px; }
.mission-grid em { border-radius: 99px; background: var(--violet-soft); color: #5d4bcf; padding: 5px 7px; font-size: 8px; font-style: normal; white-space: nowrap; }
.mission-grid em.ready { background: var(--green-soft); color: var(--green); }
.mission-grid em.waiting { background: var(--amber-soft); color: var(--amber); }
@keyframes mission-pulse { 50% { opacity: .4; transform: scale(.8); } }

/* Business */
.business-heading { align-items: center; }
.metric-grid { display: grid; grid-template-columns: repeat(4,1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); }
.metric-grid article { min-width: 0; border-right: 1px solid var(--line); padding: 18px 19px; }
.metric-grid article:last-child { border-right: 0; }
.metric-grid article > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.metric-grid small { color: #747770; font-size: 12px; }
.metric-trend { border-radius: 99px; background: #f0f1ed; color: #81847c; padding: 4px 6px; font-size: 12px; font-weight: 650; }
.metric-trend.warning { background: var(--amber-soft); color: #8d6316; }
.metric-trend.positive { background: var(--green-soft); color: var(--green); }
.metric-grid strong { display: block; margin-top: 13px; font-size: 29px; font-weight: 650; letter-spacing: -.05em; white-space: nowrap; }
.metric-grid p { margin: 8px 0 0; color: var(--quiet); font-size: 12px; }
.metric-grid .live-dot { margin-right: 6px; }
.metric-progress { height: 3px; margin-top: 9px; }
.metric-progress i { display: block; width: 68%; height: 100%; background: var(--violet); }
.business-grid, .business-bottom { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(310px,.75fr); gap: 14px; margin-top: 14px; }
.surface-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); }
.panel-heading { align-items: center; border-bottom: 1px solid #eceee9; padding: 18px 19px; }
.panel-heading h2 { font-size: 17px; }
.panel-heading h2 b { display: inline-grid; min-width: 20px; height: 20px; place-items: center; margin-left: 5px; border-radius: 7px; background: var(--violet-soft); color: #5e4dd0; font-size: 12px; vertical-align: 2px; }
.operation-list article { display: grid; grid-template-columns: 36px minmax(0,1fr) auto 22px; align-items: start; gap: 13px; border-bottom: 1px solid #eff0ed; padding: 16px 18px; }
.operation-list article:last-child { border-bottom: 0; }
.operation-list article:hover { background: #fafbf8; }
.agent-orb { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; font-size: 12px; font-weight: 760; }
.agent-orb.quasar { background: var(--dark); color: #fff; }
.agent-orb.orbit { background: var(--violet-soft); color: #5d4bd0; }
.agent-orb.comet { background: var(--green-soft); color: var(--green); }
.operation-copy { min-width: 0; }
.operation-copy > div:first-child { display: flex; align-items: center; gap: 8px; }
.operation-copy h3 { overflow: hidden; margin: 0; font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.status-thinking { background: var(--violet-soft); color: #5e4cd0; }
.status-checking { background: var(--amber-soft); color: #8d6316; }
.operation-copy p { margin: 5px 0 9px; color: var(--quiet); font-size: 12px; }
.operation-progress { height: 3px; }
.operation-progress i { display: block; height: 100%; border-radius: inherit; background: var(--violet); }
.operation-copy > small { display: block; overflow: hidden; margin-top: 7px; color: #777a73; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.operation-list time { color: var(--quiet); font-size: 12px; white-space: nowrap; }
.operation-list article > button, .process-list article > button { border: 0; background: transparent; color: #a0a39b; padding: 0; font-size: 21px; line-height: 1; }
.approval-list article { padding: 15px 17px; border-bottom: 1px solid #eff0ed; transition: opacity .2s ease, background .2s ease; }
.decision-signal { margin: 13px 14px 0; border-radius: 11px; background: #f5f3ff; padding: 11px 12px; }
.decision-signal span { color: #5d4bc8; font-size: 8px; font-weight: 720; letter-spacing: .07em; text-transform: uppercase; }
.decision-signal p { margin: 5px 0 0; color: #77728e; font-size: 9px; line-height: 1.45; }
.approval-list article:last-child { border-bottom: 0; }
.approval-list article:hover { background: #fafbf8; }
.approval-list article.approved { opacity: .48; background: #f7f8f5; }
.approval-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.approval-meta span { color: #757870; font-size: 12px; font-weight: 720; letter-spacing: .07em; text-transform: uppercase; }
.approval-meta time { color: #a1a49c; font-size: 12px; }
.approval-list h3 { margin: 7px 0 0; font-size: 13px; font-weight: 650; }
.approval-list p { margin: 5px 0 11px; color: #7f827b; font-size: 12px; line-height: 1.45; }
.approval-actions { display: flex; gap: 7px; }
.approval-actions button { min-height: 30px; border: 0; border-radius: 8px; padding: 0 9px; font-size: 12px; font-weight: 620; }
.review-button { background: #eff0ec; color: #555851; }
.approve-button { background: var(--dark); color: #fff; }
.approve-button:disabled { background: #dfe1dc; color: #747770; }
.process-list article { display: grid; grid-template-columns: 31px minmax(0,1fr) auto 20px; align-items: center; gap: 12px; border-bottom: 1px solid #eff0ed; padding: 14px 18px; }
.process-list article:last-child { border-bottom: 0; }
.process-list article:hover { background: #fafbf8; }
.process-number { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: #eff0ec; color: #777a73; font-size: 12px; font-weight: 700; }
.process-list h3 { margin: 0; font-size: 12px; font-weight: 650; }
.process-list p { margin: 4px 0 0; color: var(--quiet); font-size: 12px; }
.process-list em { color: #777a73; font-size: 12px; font-style: normal; white-space: nowrap; }
.process-list em .live-dot { margin-right: 5px; }
.memory-panel { position: relative; min-height: 260px; overflow: hidden; border-radius: 16px; background: #202320; color: #fff; padding: 21px; box-shadow: var(--shadow-md); }
.memory-panel::before, .memory-panel::after { position: absolute; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; content: ""; }
.memory-panel::before { right: -90px; bottom: -112px; width: 280px; height: 280px; }
.memory-panel::after { right: -30px; bottom: -50px; width: 160px; height: 160px; }
.memory-orbit { position: relative; display: grid; width: 38px; height: 38px; place-items: center; }
.memory-orbit span { position: relative; z-index: 2; display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 9px; background: rgba(255,255,255,.05); font-size: 12px; }
.memory-orbit i { position: absolute; width: 38px; height: 15px; border: 1px solid rgba(158,143,255,.38); border-radius: 50%; transform: rotate(35deg); }
.memory-orbit i:nth-child(2) { transform: rotate(-35deg); }
.memory-label { position: relative; z-index: 2; display: block; margin-top: 24px; color: #989d94; font-size: 12px; font-weight: 720; letter-spacing: .09em; text-transform: uppercase; }
.memory-panel h2 { position: relative; z-index: 2; max-width: 290px; margin: 7px 0 0; font-size: 21px; font-weight: 590; letter-spacing: -.035em; line-height: 1.15; }
.memory-panel p { position: relative; z-index: 2; margin: 13px 0 0; color: #949a91; font-size: 12px; line-height: 1.65; }
.memory-panel button { position: absolute; z-index: 2; bottom: 20px; left: 21px; border: 0; background: transparent; color: #e7e9e4; padding: 0; font-size: 12px; font-weight: 620; }
.memory-panel button i { margin-left: 4px; font-style: normal; }

/* Vault */
.vault-summary { display: grid; grid-template-columns: repeat(3,1fr); overflow: hidden; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow-sm); }
.vault-summary article { display: flex; align-items: center; gap: 12px; border-right: 1px solid var(--line); padding: 17px 19px; }
.vault-summary article:last-child { border-right: 0; }
.vault-summary-icon { width: 36px; height: 36px; background: #eff0ec; color: #5e615a; }
.vault-summary-icon svg { width: 18px; height: 18px; }
.vault-summary strong, .vault-summary small { display: block; }
.vault-summary strong { font-size: 20px; font-weight: 670; letter-spacing: -.04em; }
.vault-summary small { margin-top: 3px; color: var(--quiet); font-size: 12px; }
.vault-toolbar .search-field.compact { width: 210px; }
.vault-table { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow-sm); }
.vault-table-head, .vault-item { display: grid; grid-template-columns: minmax(300px,1.5fr) 130px 125px 75px 170px; align-items: center; gap: 12px; }
.vault-table-head { min-height: 42px; border-bottom: 1px solid var(--line); background: #fafbf8; padding: 0 16px; color: #969991; font-size: 12px; font-weight: 690; letter-spacing: .05em; text-transform: uppercase; }
.vault-item { min-height: 75px; border-bottom: 1px solid #eff0ed; padding: 11px 16px; }
.vault-item:last-of-type { border-bottom: 0; }
.vault-item:hover { background: #fafbf8; }
.artifact-main { display: flex; min-width: 0; align-items: center; gap: 12px; }
.artifact-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 10px; font-size: 12px; font-weight: 780; letter-spacing: .04em; }
.artifact-icon.zip { background: var(--violet-soft); color: #5d4bcf; }
.artifact-icon.report { background: #f9eaea; color: #a54d4d; }
.artifact-icon.code { background: var(--blue-soft); color: #3a6c88; font-size: 12px; }
.artifact-icon.jar { background: var(--amber-soft); color: #8f6519; }
.artifact-main h2, .artifact-main p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.artifact-main h2 { margin: 0; font-size: 12px; font-weight: 650; }
.artifact-main p { margin: 5px 0 0; color: var(--quiet); font-size: 12px; }
.status-ready { background: var(--green-soft); color: var(--green); }
.status-ready > i { background: #34a068; }
.status-review { background: var(--amber-soft); color: #896116; }
.status-review > i { background: #d6a33f; }
.vault-item time, .artifact-size { color: #7f827b; font-size: 12px; }
.artifact-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.artifact-actions > button { border: 0; background: transparent; color: #777a73; }
.artifact-actions > button:last-child { letter-spacing: 2px; }
.download-button { display: inline-flex; min-height: 31px; align-items: center; gap: 5px; border: 1px solid var(--line) !important; border-radius: 8px; background: #fff !important; padding: 0 9px; font-size: 12px; font-weight: 620; }
.download-button:hover { border-color: #cdd0c9 !important; color: var(--ink); }
.download-button svg { width: 14px; height: 14px; }
.vault-empty { display: none; min-height: 170px; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); }
.vault-empty.show { display: flex; }
.vault-empty span { font-size: 14px; font-weight: 630; }
.vault-empty small { margin-top: 6px; color: var(--quiet); font-size: 12px; }

/* Profile */
.drawer-backdrop, .mobile-backdrop { position: fixed; z-index: 40; inset: 0; visibility: hidden; background: rgba(18,20,18,.28); opacity: 0; transition: opacity .22s ease, visibility .22s ease; backdrop-filter: blur(2px); }
.drawer-backdrop.show, .mobile-backdrop.show { visibility: visible; opacity: 1; }
.profile-drawer { position: fixed; z-index: 50; top: 0; right: 0; display: flex; width: min(410px, 100%); height: 100vh; flex-direction: column; overflow: auto; border-left: 1px solid var(--line); background: #fbfcf9; padding: 24px; box-shadow: -24px 0 60px rgba(23,25,22,.12); transform: translateX(105%); transition: transform .26s cubic-bezier(.22,.75,.25,1); }
.profile-drawer.open { transform: translateX(0); }
.drawer-header { display: flex; align-items: flex-start; justify-content: space-between; }
.drawer-header h2 { margin: 6px 0 0; font-size: 28px; font-weight: 650; letter-spacing: -.045em; }
.drawer-header > button { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #747770; }
.drawer-header svg { width: 17px; height: 17px; }
.profile-identity { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 12px; margin-top: 28px; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.profile-avatar { width: 48px; height: 48px; font-size: 13px; }
.profile-identity h3 { margin: 0; font-size: 15px; font-weight: 660; }
.profile-identity p { margin: 5px 0 0; color: var(--quiet); font-size: 12px; }
.profile-identity button { border: 0; background: transparent; color: #5d51b1; font-size: 12px; font-weight: 620; }
.plan-card { margin-top: 20px; border-radius: 16px; background: var(--dark); color: #fff; padding: 18px; }
.plan-card > div:first-child { display: flex; align-items: center; justify-content: space-between; }
.plan-card > div:first-child span { font-size: 12px; font-weight: 670; }
.plan-card > div:first-child b { border-radius: 99px; background: rgba(113,222,159,.12); color: #83d8a7; padding: 4px 7px; font-size: 12px; }
.plan-card h3 { margin: 23px 0 10px; font-size: 24px; font-weight: 620; letter-spacing: -.04em; }
.plan-card h3 small { color: #93988f; font-size: 12px; font-weight: 500; letter-spacing: 0; }
.plan-track { background: rgba(255,255,255,.1); }
.plan-track i { background: #8d7cf8; }
.plan-card p { margin: 8px 0 17px; color: #8f958c; font-size: 12px; }
.plan-card button, .plan-manage-link { border: 0; background: transparent; color: #eef0ec; padding: 0; font-size: 12px; font-weight: 620; text-decoration: none; }
.profile-nav { display: grid; margin-top: 20px; }
.profile-nav > button { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; gap: 11px; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 13px 4px; color: var(--ink); text-align: left; }
.profile-nav > button:hover { background: #f5f6f3; }
.profile-nav > button > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: #eeefeb; color: #62655e; }
.profile-nav svg { width: 17px; height: 17px; }
.profile-nav b, .profile-nav small { display: block; }
.profile-nav b { font-size: 12px; font-weight: 640; }
.profile-nav small { margin-top: 4px; color: var(--quiet); font-size: 12px; }
.profile-nav > button > i { color: #9a9d95; font-size: 20px; font-style: normal; }
.drawer-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; border-top: 1px solid var(--line); padding-top: 18px; }
.drawer-footer button { display: flex; align-items: center; gap: 7px; border: 0; background: transparent; color: #8a5151; padding: 0; font-size: 12px; }
.drawer-footer svg { width: 16px; height: 16px; }
.drawer-footer > span { color: #a1a49c; font-size: 12px; }
.drawer-open { overflow: hidden; }

.toast { position: fixed; z-index: 80; right: 24px; bottom: 24px; visibility: hidden; max-width: min(360px, calc(100% - 32px)); border: 1px solid rgba(255,255,255,.08); border-radius: 11px; background: #222522; color: #fff; padding: 11px 14px; box-shadow: 0 14px 34px rgba(20,22,20,.2); opacity: 0; font-size: 12px; transform: translateY(10px); transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
.toast.show { visibility: visible; opacity: 1; transform: translateY(0); }
.app-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: auto; border-top: 1px solid var(--line); padding: 18px 32px; color: #9a9d95; font-size: 12px; }
.app-footer div { display: flex; align-items: center; gap: 18px; }
.app-footer a { color: #777a73; text-decoration: none; }
.app-footer a:hover { color: var(--ink); }

/* Collapsed sidebar */
.sidebar-collapsed .app-shell { grid-template-columns: 84px minmax(0,1fr); }
.sidebar-collapsed .sidebar { padding-inline: 13px; }
.sidebar-collapsed .brand-row { justify-content: center; padding: 0; }
.sidebar-collapsed .brand-name, .sidebar-collapsed .new-chat .nav-label, .sidebar-collapsed .new-chat kbd, .sidebar-collapsed .nav-heading, .sidebar-collapsed .nav-item .nav-label, .sidebar-collapsed .nav-count, .sidebar-collapsed .nav-badge, .sidebar-collapsed .chat-section, .sidebar-collapsed .resource-card, .sidebar-collapsed .account-copy, .sidebar-collapsed .account > svg { display: none; }
.sidebar-collapsed .sidebar-collapse { position: absolute; top: 24px; right: -11px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.sidebar-collapsed .sidebar-collapse svg { transform: rotate(180deg); }
.sidebar-collapsed .new-chat { justify-content: center; padding: 6px; }
.sidebar-collapsed .nav-item { justify-content: center; padding: 0; }
.sidebar-collapsed .main-nav { gap: 16px; }
.sidebar-collapsed .account { justify-content: center; padding: 7px; }

@media (max-width: 1160px) {
  .page-container { width: min(100% - 48px, 1040px); }
  .agent-page { width: min(900px, calc(100% - 48px)); }
  .quick-prompts { grid-template-columns: 1fr; }
  .quick-prompts > button { grid-template-columns: 34px minmax(0,1fr) auto; }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .metric-grid article:nth-child(2) { border-right: 0; }
  .metric-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .vault-table-head, .vault-item { grid-template-columns: minmax(260px,1.4fr) 120px 110px 150px; }
  .vault-table-head span:nth-child(4), .artifact-size { display: none; }
}

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 236px minmax(0,1fr); }
  .sidebar-collapsed .app-shell { grid-template-columns: 76px minmax(0,1fr); }
  .agent-dashboard { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .project-intelligence { grid-template-columns: 1fr 1fr; }
  .dna-card { grid-column: 1 / -1; }
  .studio-layout { grid-template-columns: 1fr; }
  .browser-workspace { grid-template-columns: 1fr; }
  .mission-grid { grid-template-columns: 1fr; }
  .concept-panel { min-height: 500px; }
  .business-grid, .business-bottom { grid-template-columns: 1fr; }
  .approval-list { display: grid; grid-template-columns: repeat(3,1fr); }
  .approval-list article { border-right: 1px solid #eff0ed; border-bottom: 0; }
  .approval-list article:last-child { border-right: 0; }
  .memory-panel { min-height: 280px; }
  .blueprint-grid { grid-template-columns: 1fr; }
  .vault-table-head, .vault-item { grid-template-columns: minmax(230px,1.4fr) 110px 135px; }
  .vault-table-head span:nth-child(3), .vault-item time { display: none; }
}

@media (max-width: 760px) {
  .app-shell, .sidebar-collapsed .app-shell { display: block; }
  .sidebar { position: fixed; z-index: 60; width: min(286px, calc(100% - 52px)); height: 100vh; border-right: 1px solid var(--line); box-shadow: 18px 0 44px rgba(24,27,22,.12); transform: translateX(-105%); transition: transform .24s ease; }
  .sidebar.mobile-open { transform: translateX(0); }
  .mobile-backdrop { z-index: 55; }
  .sidebar-collapsed .sidebar { padding: 20px 14px 14px; }
  .sidebar-collapsed .brand-row { justify-content: space-between; padding: 0 5px; }
  .sidebar-collapsed .brand-name, .sidebar-collapsed .new-chat .nav-label, .sidebar-collapsed .new-chat kbd, .sidebar-collapsed .nav-heading, .sidebar-collapsed .nav-item .nav-label, .sidebar-collapsed .nav-count, .sidebar-collapsed .nav-badge, .sidebar-collapsed .resource-card, .sidebar-collapsed .account-copy, .sidebar-collapsed .account > svg { display: initial; }
  .sidebar-collapsed .chat-section { display: block; }
  .sidebar-collapsed .new-chat { justify-content: flex-start; padding: 6px 8px; }
  .sidebar-collapsed .nav-item { justify-content: flex-start; padding: 0 10px; }
  .sidebar-collapsed .account { justify-content: flex-start; padding: 7px 8px; }
  .sidebar-collapse, .sidebar-collapsed .sidebar-collapse { display: none; }
  .mobile-menu { display: grid; }
  .topbar { min-height: 64px; padding: 0 16px; }
  .command-button span, .command-button kbd { display: none; }
  .command-button { width: 36px; justify-content: center; padding: 0; }
  .top-avatar { display: none; }
  .prototype-badge { min-height: 26px; padding-inline: 8px; font-size: 9px; }
  .page-container, .agent-page { width: min(100% - 32px, 680px); }
  .content-page { padding: 38px 0 60px; }
  .agent-page { padding: 54px 0 64px; }
  .agent-page.chat-active { width: min(100% - 32px, 680px); padding: 25px 0 48px; }
  .agent-page.chat-active .prompt-card { bottom: 9px; margin-top: 18px; }
  .conversation-header { padding-bottom: 16px; }
  .conversation-header h1 { font-size: 23px; }
  .chat-message { padding: 17px 0; }
  .message-column { max-width: 90%; }
  .user-message .message-column { max-width: 84%; }
  .agent-hero h1 { font-size: 42px; }
  .hero-copy { font-size: 14px; }
  .prompt-toolbar { align-items: flex-start; flex-direction: column; }
  .capability-menu { position: fixed; right: 16px; bottom: 92px; left: 16px; width: auto; transform-origin: bottom center; }
  .run-settings { width: 100%; overflow-x: auto; padding-bottom: 1px; }
  .send-button { margin-left: auto; }
  .quick-prompts { gap: 7px; }
  .agent-dashboard { margin-top: 36px; }
  .task-stages { grid-template-columns: repeat(2,1fr); gap: 9px; }
  .task-stages span::after { display: none; }
  .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 26px; }
  .page-heading h1 { font-size: 36px; }
  .page-heading .primary-button, .page-heading .secondary-button { width: 100%; }
  .heading-actions { width: 100%; }
  .heading-actions > * { flex: 1; }
  .project-overview, .vault-summary { grid-template-columns: 1fr; }
  .project-intelligence { grid-template-columns: 1fr; }
  .dna-card { grid-column: auto; grid-template-columns: 42px minmax(0,1fr); }
  .dna-card button { grid-column: 2; justify-self: start; padding: 3px 0 0; }
  .project-overview article, .vault-summary article { border-right: 0; border-bottom: 1px solid var(--line); }
  .project-overview article:last-child, .vault-summary article:last-child { border-bottom: 0; }
  .toolbar-row, .vault-toolbar { align-items: stretch; flex-direction: column; }
  .search-field, .vault-toolbar .search-field.compact { width: 100%; }
  .filter-pills { width: 100%; overflow-x: auto; }
  .filter-pills button { flex: 1; }
  .platform-cards { grid-template-columns: 1fr; }
  .browser-actions { grid-template-columns: 1fr; }
  .concept-panel { min-height: 520px; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-grid article { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric-grid article:last-child { border-bottom: 0; }
  .approval-list { display: block; }
  .approval-list article { border-right: 0; border-bottom: 1px solid #eff0ed; }
  .operation-list article { grid-template-columns: 36px minmax(0,1fr) 20px; }
  .operation-list time { display: none; }
  .operation-copy > div:first-child { align-items: flex-start; flex-direction: column; }
  .process-list article { grid-template-columns: 31px minmax(0,1fr) 20px; }
  .process-list em { display: none; }
  .vault-table { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .vault-table-head { display: none; }
  .vault-item { grid-template-columns: minmax(0,1fr) auto; gap: 12px; min-height: 0; margin-bottom: 9px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); padding: 13px; box-shadow: var(--shadow-sm); }
  .vault-item .status-pill { justify-self: end; }
  .vault-item time, .artifact-size { display: none; }
  .artifact-actions { grid-column: 1 / -1; justify-content: flex-end; border-top: 1px solid #eff0ed; padding-top: 10px; }
  .app-footer { align-items: flex-start; flex-direction: column; padding: 17px 16px; }
  .app-footer div { flex-wrap: wrap; gap: 12px; }
}

@media (max-width: 520px) {
  .workspace-context small { display: none; }
  .workspace-context b { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .workspace-context > button, .topbar-actions .command-button { display: none; }
  .prototype-badge { width: 26px; justify-content: center; padding: 0; font-size: 0; }
  .agent-page { padding-top: 40px; }
  .conversation-header { align-items: flex-start; }
  .conversation-header p { align-items: flex-start; flex-direction: column; gap: 3px; }
  .conversation-header p i { display: none; }
  .conversation-actions button:first-child { display: none; }
  .chat-message { grid-template-columns: 30px minmax(0,1fr); gap: 10px; }
  .user-message { grid-template-columns: minmax(0,1fr) 30px; }
  .message-column { max-width: 94%; }
  .user-message .message-column { max-width: 90%; }
  .message-avatar { width: 30px; height: 30px; border-radius: 9px; }
  .message-column > header em { display: none; }
  .message-body > p { font-size: 14px; }
  .message-work small { line-height: 1.4; }
  .agent-hero { margin-bottom: 24px; }
  .agent-hero h1 { font-size: 36px; }
  .availability { margin-bottom: 15px; }
  .prompt-card textarea { min-height: 132px; padding: 18px 15px 10px; font-size: 15px; }
  .prompt-context { padding-inline: 11px; }
  .prompt-context > button { font-size: 0; }
  .prompt-context > button svg { width: 17px; height: 17px; }
  .mode-choice { display: none; }
  .agent-tools-trigger > span { display: none; }
  .toolbar-divider { display: none; }
  .quick-prompts > button { grid-template-columns: 32px minmax(0,1fr) auto; }
  .quick-icon { width: 32px; height: 32px; }
  .card-heading { align-items: flex-start; flex-direction: column; }
  .task-footer { align-items: flex-start; flex-direction: column; }
  .project-visual { height: 112px; }
  .browser-stage-body { padding: 21px 17px; }
  .browser-stage-body > header { flex-direction: column; }
  .browser-chrome > b { display: none; }
  .form-section { grid-template-columns: 1fr; padding: 18px; }
  .form-number { width: 29px; height: 29px; }
  .studio-submit { width: calc(100% - 36px); margin: 16px 18px 18px; }
  .studio-submit span:first-child { display: none; }
  .studio-submit { justify-content: center; }
  .heading-actions { flex-direction: column; }
  .operation-list article { padding-inline: 14px; }
  .operation-copy > small { white-space: normal; }
  .process-list p { white-space: normal; }
  .profile-drawer { padding: 20px 17px; }
  .toast { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Model personalities */
.model-lab { margin-top: 54px; }
.model-lab-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 17px; }
.model-lab-header h2 { margin: 6px 0 0; font-size: 22px; font-weight: 650; letter-spacing: -.04em; }
.model-lab-header p { margin: 7px 0 0; color: var(--quiet); font-size: 13px; }
.motion-toggle { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,255,255,.72); color: #777a73; padding: 6px 10px 6px 7px; font-size: 11px; }
.motion-toggle:hover { border-color: var(--line-strong); background: #fff; }
.motion-toggle > span { position: relative; width: 25px; height: 15px; border-radius: 99px; background: #6253dc; transition: background .18s ease; }
.motion-toggle > span::after { position: absolute; top: 3px; left: 13px; width: 9px; height: 9px; border-radius: 50%; background: #fff; content: ""; transition: transform .18s ease; }
.motion-toggle[aria-pressed="true"] > span { background: #c9cbc5; }
.motion-toggle[aria-pressed="true"] > span::after { transform: translateX(-10px); }
.motion-toggle b { font-weight: 620; }
.model-showcase { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.model-card { position: relative; display: flex; min-width: 0; min-height: 258px; overflow: hidden; flex-direction: column; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.7); padding: 17px; color: var(--ink); text-align: left; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.model-card::before { position: absolute; inset: 0; opacity: 0; content: ""; transition: opacity .2s ease; pointer-events: none; }
.comet-card::before { background: radial-gradient(circle at 22% 12%,rgba(58,166,244,.11),transparent 43%); }
.orbit-card::before { background: radial-gradient(circle at 22% 12%,rgba(100,82,225,.12),transparent 45%); }
.quasar-card::before { background: radial-gradient(circle at 22% 12%,rgba(120,63,230,.17),transparent 47%); }
.model-card:hover { z-index: 1; border-color: #d0d2cc; background: #fff; transform: translateY(-3px); box-shadow: 0 16px 34px rgba(26,28,25,.08); }
.model-card:hover::before,.model-card.selected::before { opacity: 1; }
.model-card.selected { border-color: #c9c3f0; background: #fff; box-shadow: 0 12px 30px rgba(74,61,161,.09),inset 0 0 0 1px rgba(105,86,222,.05); }
.model-card-top { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; }
.model-number { color: #b0b3ac; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.model-visual { position: relative; display: block; width: 52px; height: 52px; }
.comet-visual i { position: absolute; top: 24px; left: 5px; width: 36px; height: 3px; border-radius: 99px; background: linear-gradient(90deg,transparent,#42a9f1 55%,#e8f7ff); filter: drop-shadow(0 0 5px rgba(61,169,244,.42)); animation: comet-breathe 1.55s ease-in-out infinite; }
.comet-visual b { position: absolute; top: 19px; right: 5px; width: 12px; height: 12px; border: 3px solid #eaf8ff; border-radius: 50%; background: #42a9f1; box-shadow: 0 0 0 5px rgba(66,169,241,.1),0 0 14px rgba(66,169,241,.46); }
.orbit-visual i { position: absolute; inset: 5px; border: 1px solid rgba(103,83,222,.42); border-radius: 50%; animation: orbit-spin 4.8s linear infinite; }
.orbit-visual i:nth-child(2) { inset: 11px 1px; border-color: rgba(66,151,231,.34); transform: rotate(58deg); animation-duration: 3.8s; animation-direction: reverse; }
.orbit-visual i::after,.orbit-visual i:nth-child(2)::after { position: absolute; top: 3px; right: 3px; width: 5px; height: 5px; border-radius: 50%; background: #6554dc; box-shadow: 0 0 8px rgba(101,84,220,.55); content: ""; }
.orbit-visual i:nth-child(2)::after { background: #46a0eb; }
.orbit-visual b { position: absolute; top: 20px; left: 20px; width: 12px; height: 12px; border-radius: 50%; background: #6756df; box-shadow: 0 0 0 5px rgba(103,86,223,.1),0 0 15px rgba(103,86,223,.36); }
.quasar-visual i { position: absolute; inset: 2px; border: 1px solid rgba(123,67,230,.35); border-radius: 50%; animation: quasar-orbit 5.4s linear infinite; }
.quasar-visual i:nth-child(2) { inset: 8px 0; transform: rotate(62deg); animation-duration: 4.1s; animation-direction: reverse; }
.quasar-visual i:nth-child(3) { inset: 14px -2px; border-color: rgba(230,81,207,.26); transform: rotate(-38deg); animation-duration: 3.2s; }
.quasar-visual i::after { position: absolute; top: 1px; left: 10px; width: 4px; height: 4px; border-radius: 50%; background: #a467ef; box-shadow: 0 0 8px #a467ef; content: ""; }
.quasar-visual b { position: absolute; top: 18px; left: 18px; width: 16px; height: 16px; border: 3px solid #efe3ff; border-radius: 50%; background: linear-gradient(145deg,#ae66f1,#6750df); box-shadow: 0 0 0 6px rgba(129,77,226,.1),0 0 22px rgba(129,77,226,.52); animation: quasar-pulse 1.8s ease-in-out infinite; }
.model-copy { position: relative; z-index: 1; display: block; margin-top: 18px; }
.model-copy strong,.model-copy em,.model-copy small { display: block; }
.model-copy strong { font-size: 20px; font-weight: 690; letter-spacing: -.035em; }
.model-copy em { margin-top: 5px; color: #555851; font-size: 12px; font-style: normal; font-weight: 650; }
.model-copy small { min-height: 38px; margin-top: 8px; color: #8c8f87; font-size: 11px; line-height: 1.55; }
.model-stage-line { position: relative; z-index: 1; display: flex; min-width: 0; gap: 4px; margin-top: 15px; }
.model-stage-line i { min-width: 0; overflow: hidden; border-radius: 99px; background: #edeee9; color: transparent; height: 3px; flex: 1; font-size: 0; font-style: normal; }
.comet-card .model-stage-line i.active { background: #47a9ee; box-shadow: 0 0 8px rgba(71,169,238,.35); }
.orbit-card .model-stage-line i.active { background: #6856df; box-shadow: 0 0 8px rgba(104,86,223,.32); }
.quasar-card .model-stage-line i.active { background: linear-gradient(90deg,#6d51df,#bd63e9); box-shadow: 0 0 9px rgba(130,78,225,.38); }
.model-select-label { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; margin-top: auto; border-top: 1px solid #eceee9; padding-top: 13px; color: #7d8079; font-size: 11px; font-weight: 650; }
.model-select-label i { color: #6251d3; font-style: normal; }
.model-card.selected .model-select-label { color: #5848c1; }

.model-work { position: relative; overflow: hidden; padding: 14px; }
.model-work::before { position: absolute; inset: 0; content: ""; pointer-events: none; }
.model-work-comet::before { background: linear-gradient(105deg,rgba(66,169,241,.055),transparent 45%); }
.model-work-orbit::before { background: radial-gradient(circle at 8% 0,rgba(103,85,222,.09),transparent 38%); }
.model-work-quasar { border-color: #ded6f4; background: linear-gradient(135deg,rgba(252,250,255,.97),rgba(247,246,255,.9)); box-shadow: 0 9px 26px rgba(83,58,150,.07); }
.model-work-quasar::before { background: radial-gradient(circle at 8% 0,rgba(142,70,230,.12),transparent 42%); }
.model-work-heading { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.model-work-heading > div { display: flex; align-items: center; gap: 10px; }
.model-work-heading span small,.model-work-heading span b { display: block; }
.model-work-heading span small { color: #92958d; font-size: 9px; font-weight: 620; letter-spacing: .06em; text-transform: uppercase; }
.model-work-heading span b { margin-top: 3px; color: #444742; font-size: 12px; font-weight: 680; }
.model-work-heading > strong { color: #777a73; font-size: 11px; font-weight: 680; }
.work-motion { position: relative; display: block; width: 34px; height: 34px; flex: 0 0 34px; }
.comet-work i { position: absolute; top: 16px; left: 1px; width: 26px; height: 2px; border-radius: 99px; background: linear-gradient(90deg,transparent,#40a9f1); animation: comet-breathe 1.35s ease-in-out infinite; }
.comet-work b { position: absolute; top: 12px; right: 2px; width: 9px; height: 9px; border-radius: 50%; background: #42a9f1; box-shadow: 0 0 0 4px rgba(66,169,241,.1),0 0 10px rgba(66,169,241,.45); }
.orbit-work i,.quasar-work i { position: absolute; inset: 3px; border: 1px solid rgba(102,83,220,.42); border-radius: 50%; animation: orbit-spin 4s linear infinite; }
.orbit-work i:nth-child(2),.quasar-work i:nth-child(2) { inset: 7px 1px; transform: rotate(55deg); animation-direction: reverse; animation-duration: 3.1s; }
.orbit-work i::after,.quasar-work i::after { position: absolute; top: 1px; left: 5px; width: 4px; height: 4px; border-radius: 50%; background: #6a57df; content: ""; }
.orbit-work b,.quasar-work b { position: absolute; top: 13px; left: 13px; width: 8px; height: 8px; border-radius: 50%; background: #6856df; box-shadow: 0 0 0 4px rgba(104,86,223,.1),0 0 10px rgba(104,86,223,.38); }
.quasar-work i { border-color: rgba(130,74,225,.4); animation-duration: 4.6s; }
.quasar-work i:nth-child(3) { inset: 10px -1px; border-color: rgba(214,85,207,.3); transform: rotate(-38deg); animation-duration: 2.8s; }
.quasar-work b { width: 10px; height: 10px; top: 12px; left: 12px; background: linear-gradient(145deg,#af64ef,#6551dc); box-shadow: 0 0 0 5px rgba(132,78,223,.1),0 0 14px rgba(132,78,223,.5); animation: quasar-pulse 1.6s ease-in-out infinite; }
.model-work .message-progress { position: relative; height: 3px; margin: 12px 0 11px; }
.model-work-comet .message-progress i { background: linear-gradient(90deg,#50b5f4,#3a9ee7); }
.model-work-orbit .message-progress i { background: linear-gradient(90deg,#4d8ee5,#6a56df); }
.model-work-quasar .message-progress i { background: linear-gradient(90deg,#594de0,#9e59e7,#db72cf); box-shadow: 0 0 8px rgba(130,78,225,.28); }
.work-stages { position: relative; display: flex; flex-wrap: wrap; gap: 5px; }
.work-stage { display: inline-flex; align-items: center; gap: 4px; border-radius: 99px; color: #a0a39b; padding: 4px 6px; font-size: 8px; font-weight: 620; }
.work-stage > i { display: grid; width: 14px; height: 14px; place-items: center; border: 1px solid #dcdfd8; border-radius: 50%; font-size: 7px; font-style: normal; }
.work-stage.done { color: #5f7f6c; }
.work-stage.done > i { border-color: #cce3d4; background: #eaf7ef; color: #278654; }
.work-stage.current { background: #f0edff; color: #5b49c6; }
.work-stage.current > i { border-color: #d5cef5; background: #fff; color: #6552d8; }
.quasar-streams { position: relative; display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; margin: 0 0 10px; }
.quasar-streams span { display: flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid rgba(114,86,206,.13); border-radius: 7px; background: rgba(255,255,255,.65); color: #77717f; padding: 6px; font-size: 8px; font-weight: 640; }
.quasar-streams i { width: 4px; height: 4px; border-radius: 50%; background: #8057dd; box-shadow: 0 0 5px rgba(128,87,221,.45); animation: stream-pulse 1.6s ease-in-out infinite; }
.quasar-streams span:nth-child(2) i { animation-delay: .25s; }
.quasar-streams span:nth-child(3) i { animation-delay: .5s; }

@keyframes comet-breathe { 0%,100% { opacity: .55; transform: translateX(-2px) scaleX(.86); } 50% { opacity: 1; transform: translateX(1px) scaleX(1); } }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes quasar-orbit { to { transform: rotate(360deg); } }
@keyframes quasar-pulse { 0%,100% { transform: scale(.88); filter: brightness(.96); } 50% { transform: scale(1.08); filter: brightness(1.14); } }
@keyframes stream-pulse { 0%,100% { opacity: .35; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.15); } }
.reduced-motion .model-visual *,.reduced-motion .work-motion *,.reduced-motion .quasar-streams i { animation: none !important; }

@media (max-width: 980px) {
  .model-showcase { grid-template-columns: 1fr; }
  .model-card { min-height: 210px; }
}
@media (max-width: 760px) {
  .model-lab { margin-top: 38px; }
  .model-lab-header { align-items: flex-start; flex-direction: column; }
  .model-card { min-height: 200px; }
}
@media (max-width: 520px) {
  .motion-toggle b { display: none; }
  .model-card { min-height: 190px; padding: 15px; }
  .work-stages { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .work-stage { padding-inline: 3px; }
  .quasar-streams { grid-template-columns: 1fr; }
}

/* Personal space */
.profile-drawer { width: min(1040px, calc(100% - 28px)); padding: 0; overflow: hidden; background: #f7f8f5; }
.personal-header { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: rgba(251,252,249,.94); padding: 0 26px; }
.personal-header h2 { margin: 5px 0 0; font-size: 25px; font-weight: 660; letter-spacing: -.045em; }
.personal-header-actions { display: flex; align-items: center; gap: 18px; }
.personal-header-actions > span { display: flex; align-items: center; gap: 7px; color: #858880; font-size: 11px; font-weight: 620; }
.personal-header-actions > span i { width: 7px; height: 7px; border-radius: 50%; background: #35a06b; box-shadow: 0 0 0 4px rgba(53,160,107,.09); }
.personal-header-actions > button { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: #747770; }
.personal-header-actions > button:hover { border-color: var(--line-strong); color: var(--ink); }
.personal-header-actions svg { width: 17px; height: 17px; }
.personal-layout { display: grid; min-height: 0; flex: 1; grid-template-columns: 286px minmax(0,1fr); }
.personal-sidebar { display: flex; min-height: 0; overflow-y: auto; flex-direction: column; border-right: 1px solid var(--line); background: #fbfcf9; padding: 22px 17px 17px; }
.personal-sidebar .profile-identity { grid-template-columns: 48px minmax(0,1fr); margin: 0; border: 0; padding: 0 6px 19px; }
.profile-avatar-button { position: relative; overflow: visible; border: 0; padding: 0; box-shadow: 0 7px 18px rgba(102,71,91,.18); }
.profile-avatar-button > span { display: grid; width: 100%; height: 100%; overflow: hidden; place-items: center; border-radius: inherit; }
.profile-avatar-button > span img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-button > i { position: absolute; right: -2px; bottom: -2px; display: grid; width: 17px; height: 17px; place-items: center; border: 2px solid #fbfcf9; border-radius: 50%; background: #6253d8; color: #fff; font-size: 11px; font-style: normal; }
.profile-avatar-button:hover { transform: translateY(-1px); }
.personal-sidebar .profile-nav { gap: 4px; margin: 0; }
.personal-sidebar .profile-nav > button { min-height: 58px; border: 0; border-radius: 13px; padding: 9px 8px; transition: background .16s ease, box-shadow .16s ease; }
.personal-sidebar .profile-nav > button:hover { background: #f1f2ee; }
.personal-sidebar .profile-nav > button.active { background: #f0eefc; box-shadow: inset 0 0 0 1px rgba(101,82,214,.08); }
.personal-sidebar .profile-nav > button.active > span { background: #fff; color: #6150cf; box-shadow: 0 3px 10px rgba(54,46,104,.08); }
.personal-sidebar .profile-nav > button.active > i { color: #6252d2; transform: translateX(2px); }
.personal-sidebar .profile-nav > button > i { transition: transform .16s ease; }
.personal-plan { position: relative; overflow: hidden; margin-top: 20px; border-radius: 16px; background: linear-gradient(145deg,#252925,#1d201e); color: #fff; padding: 16px; box-shadow: 0 12px 28px rgba(26,29,26,.12); }
.personal-plan::before { position: absolute; top: -65px; right: -60px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle,rgba(118,94,239,.3),transparent 67%); content: ""; }
.personal-plan > div:first-child,.personal-plan > p { position: relative; display: flex; align-items: center; justify-content: space-between; }
.personal-plan > div:first-child span { font-size: 12px; font-weight: 680; }
.personal-plan > div:first-child b { border-radius: 99px; background: rgba(105,213,150,.13); color: #8adead; padding: 4px 7px; font-size: 9px; }
.personal-plan > strong { position: relative; display: block; margin: 22px 0 9px; font-size: 23px; font-weight: 660; letter-spacing: -.04em; }
.personal-plan > strong small { color: #969b94; font-size: 10px; font-weight: 540; letter-spacing: 0; }
.personal-plan .plan-track { position: relative; background: rgba(255,255,255,.1); }
.personal-plan .plan-track i { width: 71.7%; background: linear-gradient(90deg,#7361e8,#a487ff); box-shadow: 0 0 10px rgba(143,117,245,.35); }
.personal-plan > p { margin: 8px 0 16px; color: #929790; font-size: 9px; }
.personal-plan > p span { color: #c8cbc6; }
.personal-plan > a,.personal-plan > button { position: relative; display: flex; width: 100%; align-items: center; justify-content: space-between; border: 0; background: transparent; color: #f3f4f1; padding: 0; font-size: 10px; font-weight: 620; text-decoration: none; }
.personal-plan > a i,.personal-plan > button i { color: #9d8bf9; font-style: normal; }
.profile-signout { display: flex; align-items: center; gap: 8px; margin: auto 6px 0; border: 0; background: transparent; color: #946060; padding: 23px 3px 3px; font-size: 11px; }
.profile-signout svg { width: 16px; height: 16px; }
.personal-content { min-height: 0; overflow-y: auto; padding: 30px 34px 42px; background-image: radial-gradient(circle at 100% 0,rgba(104,83,220,.045),transparent 28%); }
.profile-panel { display: none; width: min(680px,100%); margin: 0 auto; animation: profile-panel-in .23s ease both; }
.profile-panel.active { display: block; }
@keyframes profile-panel-in { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }
.profile-panel-heading { display: flex; min-height: 88px; align-items: flex-start; justify-content: space-between; gap: 22px; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.section-kicker { color: #6252cf; font-size: 10px; font-weight: 760; letter-spacing: .11em; text-transform: uppercase; }
.profile-panel-heading h3 { margin: 7px 0 0; font-size: 28px; font-weight: 660; letter-spacing: -.048em; }
.profile-panel-heading p { max-width: 460px; margin: 9px 0 0; color: var(--quiet); font-size: 12px; line-height: 1.55; }
.profile-completeness { display: grid; min-width: 142px; grid-template-columns: 31px 1fr; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.8); padding: 10px; box-shadow: var(--shadow-sm); }
.profile-completeness > i { grid-row: 1 / 3; width: 27px; height: 27px; border: 4px solid #e7e5f6; border-top-color: #6755d9; border-right-color: #6755d9; border-radius: 50%; transform: rotate(24deg); }
.profile-completeness b,.profile-completeness small { display: block; }
.profile-completeness b { color: #52554f; font-size: 9px; font-weight: 680; }
.profile-completeness small { margin-top: 3px; color: #94978f; font-size: 9px; }
.settings-form { display: grid; gap: 22px; margin-top: 26px; }
.field-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.settings-field { display: grid; gap: 8px; min-width: 0; }
.settings-field > span { color: #565953; font-size: 11px; font-weight: 680; }
.settings-field > small { color: #999c94; font-size: 9px; line-height: 1.45; }
.settings-field input,.settings-field select,.settings-field textarea,.payment-history select { width: 100%; border: 1px solid var(--line-strong); border-radius: 11px; outline: 0; background: rgba(255,255,255,.88); color: var(--ink); padding: 11px 12px; font: inherit; font-size: 12px; transition: border .15s ease,box-shadow .15s ease,background .15s ease; }
.settings-field select,.payment-history select { appearance: none; background-image: linear-gradient(45deg,transparent 50%,#90938b 50%),linear-gradient(135deg,#90938b 50%,transparent 50%); background-position: calc(100% - 15px) 50%,calc(100% - 11px) 50%; background-repeat: no-repeat; background-size: 4px 4px,4px 4px; padding-right: 30px; }
.settings-field input:focus,.settings-field select:focus,.settings-field textarea:focus { border-color: #bfb7ea; background-color: #fff; box-shadow: 0 0 0 3px rgba(101,82,214,.07); }
.verified-input,.password-input { position: relative; }
.verified-input input { padding-right: 112px; }
.verified-input b { position: absolute; top: 50%; right: 11px; border-radius: 99px; background: #eaf6ee; color: #328058; padding: 5px 7px; font-size: 8px; transform: translateY(-50%); }
.settings-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); padding-top: 19px; }
.settings-actions > span { color: #999c94; font-size: 9px; }
.save-settings { min-height: 38px; border: 1px solid var(--dark); border-radius: 10px; background: var(--dark); color: #fff; padding: 0 14px; font-size: 11px; font-weight: 650; box-shadow: 0 5px 14px rgba(25,27,25,.12); }
.save-settings:hover { transform: translateY(-1px); background: #2b2e2b; }
.security-score { display: grid; min-width: 176px; grid-template-columns: 41px 1fr; align-items: center; gap: 9px; border: 1px solid #d9e9df; border-radius: 13px; background: #f4fbf6; padding: 9px 11px; }
.security-score > i { display: grid; width: 38px; height: 38px; place-items: center; border: 4px solid #d8eee0; border-top-color: #3aa16d; border-right-color: #3aa16d; border-bottom-color: #3aa16d; border-radius: 50%; color: #277650; font-size: 11px; font-style: normal; font-weight: 760; }
.security-score b,.security-score small { display: block; }
.security-score b { color: #3e6850; font-size: 9px; }
.security-score small { margin-top: 4px; color: #739080; font-size: 8px; }
.security-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(230px,.85fr); gap: 12px; margin-top: 22px; }
.settings-card,.billing-details { border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.78); padding: 17px; box-shadow: var(--shadow-sm); }
.settings-card-title { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.settings-card-icon { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 11px; background: #eff0ec; color: #686b65; }
.settings-card-icon.violet { background: #f0edff; color: #6252d2; }
.settings-card-icon svg { width: 17px; height: 17px; }
.settings-card-title h4,.sessions-heading h4 { margin: 0; font-size: 13px; font-weight: 680; }
.settings-card-title p,.sessions-heading p { margin: 5px 0 0; color: #979a92; font-size: 9px; line-height: 1.45; }
.password-card { display: grid; gap: 14px; }
.password-card .settings-card-title { margin-bottom: 1px; }
.password-card .save-settings { justify-self: end; margin-top: 2px; }
.password-visibility { position: absolute; top: 50%; right: 7px; border: 0; background: transparent; color: #7364cc; font-size: 8px; font-weight: 640; transform: translateY(-50%); }
.password-input input { padding-right: 67px; }
.password-strength { display: grid; grid-template-columns: repeat(4,1fr) auto; align-items: center; gap: 4px; }
.password-strength i { height: 3px; border-radius: 99px; background: #e4e6e0; }
.password-strength[data-score="1"] i:nth-child(1),.password-strength[data-score="2"] i:nth-child(-n+2) { background: #d9905f; }
.password-strength[data-score="3"] i:nth-child(-n+3),.password-strength[data-score="4"] i { background: #4da876; }
.password-strength span { min-width: 90px; margin-left: 4px; color: #999c94; font-size: 8px; text-align: right; }
.protection-card { align-self: start; }
.setting-switch { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; border: 0; border-radius: 11px; background: #f3f4f0; padding: 11px; color: var(--ink); text-align: left; }
.setting-switch:hover { background: #eff0ec; }
.setting-switch span b,.setting-switch span small { display: block; }
.setting-switch span b { font-size: 10px; font-weight: 650; }
.setting-switch span small { margin-top: 4px; color: #999c94; font-size: 8px; line-height: 1.35; }
.setting-switch > i { position: relative; width: 31px; height: 18px; flex: 0 0 31px; border-radius: 99px; background: #cfd2cb; transition: background .18s ease; }
.setting-switch > i::after { position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.14); content: ""; transition: transform .18s ease; }
.setting-switch.active > i,.setting-switch[aria-checked="true"] > i { background: #6655d9; }
.setting-switch.active > i::after,.setting-switch[aria-checked="true"] > i::after { transform: translateX(13px); }
.recovery-note { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.recovery-note span,.recovery-note b { display: block; }
.recovery-note span { color: #777a73; font-size: 9px; font-weight: 650; }
.recovery-note b { margin-top: 4px; color: #a0a39b; font-size: 8px; font-weight: 520; line-height: 1.4; }
.sessions-block,.payment-history { margin-top: 14px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.78); padding: 17px; box-shadow: var(--shadow-sm); }
.sessions-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.sessions-heading > button { border: 0; background: transparent; color: #8b5555; font-size: 9px; font-weight: 640; }
.session-list { display: grid; margin-top: 13px; }
.session-list article { display: grid; min-height: 58px; grid-template-columns: 35px minmax(0,1fr) auto; align-items: center; gap: 11px; border-top: 1px solid #eceee9; }
.device-icon { display: grid; width: 33px; height: 33px; place-items: center; border-radius: 10px; background: #eff0ec; color: #6d7069; }
.device-icon svg { width: 16px; height: 16px; }
.session-list h5 { margin: 0; font-size: 10px; font-weight: 650; }
.session-list h5 b { margin-left: 5px; border-radius: 99px; background: #eaf6ee; color: #34805a; padding: 3px 5px; font-size: 7px; }
.session-list p { margin: 5px 0 0; color: #9a9d95; font-size: 8px; }
.end-session { border: 0; background: transparent; color: #8b5555; font-size: 8px; font-weight: 620; }
.session-live { width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #37a06c; box-shadow: 0 0 0 4px rgba(55,160,108,.09); }
.agent-config-signal { display: flex; align-items: center; gap: 8px; border: 1px solid #ded9f5; border-radius: 99px; background: #f6f4ff; color: #5d4bc4; padding: 7px 10px; font-size: 9px; white-space: nowrap; }
.agent-config-signal i { width: 7px; height: 7px; border-radius: 50%; background: #755ce3; box-shadow: 0 0 0 4px rgba(117,92,227,.09); }
.preference-group { margin: 0; border: 0; padding: 0; }
.preference-group legend { margin-bottom: 10px; color: #565953; font-size: 11px; font-weight: 680; }
.profile-model-picker,.profile-mode-picker { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.profile-model-picker > button { position: relative; display: grid; min-height: 118px; justify-items: start; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.75); padding: 13px; color: var(--ink); text-align: left; transition: transform .15s ease,border .15s ease,box-shadow .15s ease; }
.profile-model-picker > button:hover { transform: translateY(-2px); border-color: #d0d2cc; }
.profile-model-picker > button.selected { border-color: #bfb7ec; background: #fff; box-shadow: 0 9px 24px rgba(83,68,171,.09),inset 0 0 0 1px rgba(101,82,214,.06); }
.profile-model-picker b { margin-top: 12px; font-size: 13px; }
.profile-model-picker small { margin-top: 4px; color: #95988f; font-size: 8px; line-height: 1.4; }
.profile-model-picker em { position: absolute; top: 12px; right: 12px; color: #b0b3ac; font-size: 8px; font-style: normal; }
.mini-model { position: relative; display: block; width: 34px; height: 25px; }
.mini-model.comet::before { position: absolute; top: 11px; left: 1px; width: 24px; height: 2px; border-radius: 99px; background: linear-gradient(90deg,transparent,#43a9ee); content: ""; }
.mini-model.comet i { position: absolute; top: 7px; right: 1px; width: 10px; height: 10px; border-radius: 50%; background: #43a9ee; box-shadow: 0 0 10px rgba(67,169,238,.5); }
.mini-model.orbit i,.mini-model.quasar i { position: absolute; inset: 1px 5px; border: 1px solid #7865df; border-radius: 50%; }
.mini-model.orbit i::after,.mini-model.quasar i::after { position: absolute; top: 2px; right: 1px; width: 5px; height: 5px; border-radius: 50%; background: #715cdc; content: ""; }
.mini-model.quasar i { border-color: #965dde; box-shadow: inset 0 0 8px rgba(139,82,217,.16); }
.mini-model.quasar::after { position: absolute; top: 8px; left: 13px; width: 9px; height: 9px; border-radius: 50%; background: #915de0; box-shadow: 0 0 12px rgba(145,93,224,.55); content: ""; }
.profile-mode-picker > button { border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.68); padding: 11px; color: var(--ink); text-align: left; }
.profile-mode-picker > button.selected { border-color: #c6beee; background: #f7f5ff; box-shadow: inset 0 0 0 1px rgba(101,82,214,.05); }
.profile-mode-picker b,.profile-mode-picker small { display: block; }
.profile-mode-picker b { font-size: 10px; }
.profile-mode-picker small { margin-top: 4px; color: #999c94; font-size: 8px; line-height: 1.35; }
.instruction-field textarea { min-height: 112px; resize: vertical; line-height: 1.55; }
.instruction-field > small { display: flex; justify-content: space-between; }
.instruction-field > small b { color: #7f827b; font-weight: 580; }
.preference-toggles { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.billing-support { color: #6655ce; font-size: 9px; font-weight: 640; text-decoration: none; }
.billing-overview { display: grid; grid-template-columns: 1.15fr .85fr; gap: 12px; margin-top: 22px; }
.billing-plan-card,.payment-method-card { min-height: 166px; border-radius: 16px; padding: 17px; }
.billing-plan-card { background: linear-gradient(145deg,#252925,#1d201e); color: #fff; box-shadow: 0 12px 28px rgba(26,29,26,.12); }
.billing-plan-card > div { display: flex; justify-content: space-between; color: #b3b7b0; font-size: 9px; }
.billing-plan-card > div b { color: #83d8a7; }
.billing-plan-card h4 { margin: 25px 0 4px; font-size: 21px; font-weight: 660; letter-spacing: -.04em; }
.billing-plan-card > p { margin: 0; color: #fff; font-size: 15px; }
.billing-plan-card > p small { color: #8f958c; font-size: 9px; }
.billing-plan-card footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 23px; border-top: 1px solid rgba(255,255,255,.09); padding-top: 12px; }
.billing-plan-card footer span { color: #929790; font-size: 8px; }
.billing-plan-card footer a { color: #b8aafb; font-size: 8px; font-weight: 640; text-decoration: none; }
.payment-method-card { position: relative; overflow: hidden; border: 1px solid #dedaf4; background: linear-gradient(145deg,#faf9ff,#f3f1fc); color: #4f4a61; }
.payment-method-card::after { position: absolute; right: -35px; bottom: -55px; width: 130px; height: 130px; border: 1px solid rgba(113,89,215,.12); border-radius: 50%; content: ""; }
.card-chip { width: 27px; height: 20px; border-radius: 5px; background: linear-gradient(135deg,#d7c99a,#ab9660); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.payment-method-card > span { display: block; margin-top: 17px; color: #8e899f; font-size: 8px; }
.payment-method-card h4 { margin: 5px 0 0; font-size: 13px; }
.payment-method-card p { margin: 5px 0 15px; color: #9994a7; font-size: 8px; }
.payment-method-card button { position: relative; z-index: 1; border: 0; background: transparent; color: #6252c9; padding: 0; font-size: 8px; font-weight: 650; }
.billing-details { display: grid; gap: 16px; margin-top: 12px; }
.billing-details .settings-card-title { margin-bottom: 0; }
.payment-history { margin-top: 12px; }
.payment-history select { width: auto; min-width: 82px; padding-block: 7px; font-size: 9px; }
.payment-table { margin-top: 13px; }
.payment-row { display: grid; min-height: 57px; grid-template-columns: 82px minmax(0,1fr) 70px 68px 55px; align-items: center; gap: 10px; border-top: 1px solid #eceee9; font-size: 9px; }
.payment-row.payment-head { min-height: 31px; border: 0; color: #a0a39b; font-size: 8px; }
.payment-row > span b,.payment-row > span small { display: block; }
.payment-row > span b { font-size: 9px; font-weight: 650; }
.payment-row > span small { margin-top: 3px; color: #9a9d95; font-size: 7px; }
.payment-row strong { font-size: 9px; }
.payment-row em { border-radius: 99px; background: #eaf6ee; color: #34805a; padding: 5px 7px; font-size: 7px; font-style: normal; text-align: center; }
.download-invoice { border: 0; background: transparent; color: #6252cb; padding: 0; font-size: 8px; font-weight: 640; }

@media (max-width: 880px) {
  .profile-drawer { width: min(760px,100%); }
  .personal-layout { grid-template-columns: 230px minmax(0,1fr); }
  .personal-content { padding-inline: 24px; }
  .profile-panel-heading { flex-direction: column; }
  .security-grid,.billing-overview { grid-template-columns: 1fr; }
  .profile-completeness,.security-score { align-self: flex-start; }
  .profile-model-picker,.profile-mode-picker { grid-template-columns: 1fr; }
  .profile-model-picker > button { min-height: 76px; grid-template-columns: 38px 1fr; align-items: center; }
  .profile-model-picker b { margin: 0; }
  .profile-model-picker small { grid-column: 2; margin-top: -17px; }
  .preference-toggles { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .profile-drawer { width: 100%; }
  .personal-header { min-height: 70px; padding-inline: 17px; }
  .personal-header h2 { font-size: 21px; }
  .personal-header-actions > span { display: none; }
  .personal-layout { display: flex; overflow-y: auto; flex-direction: column; }
  .personal-sidebar { flex: 0 0 auto; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); padding: 15px 14px 12px; }
  .personal-sidebar .profile-identity { padding-bottom: 13px; }
  .personal-sidebar .profile-nav { display: flex; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
  .personal-sidebar .profile-nav > button { min-width: 52px; min-height: 45px; grid-template-columns: 34px; padding: 5px 8px; }
  .personal-sidebar .profile-nav > button > div,.personal-sidebar .profile-nav > button > i { display: none; }
  .personal-plan,.profile-signout { display: none; }
  .personal-content { overflow: visible; padding: 23px 16px 40px; }
  .profile-panel-heading h3 { font-size: 25px; }
  .field-row { grid-template-columns: 1fr; }
  .settings-actions { align-items: stretch; flex-direction: column; }
  .save-settings { width: 100%; }
  .payment-row { grid-template-columns: 73px minmax(0,1fr) 55px; }
  .payment-row > :nth-child(4) { display: none; }
  .payment-row > :nth-child(5) { justify-self: end; }
  .payment-head { display: none; }
}

/* Usage center */
.usage-live { display: grid; grid-template-columns: 8px 1fr; align-items: center; gap: 7px; border: 1px solid #dce9e0; border-radius: 11px; background: #f5fbf7; padding: 8px 10px; color: #4d725d; }
.usage-live > i { grid-row: 1 / 3; width: 7px; height: 7px; border-radius: 50%; background: #36a06c; box-shadow: 0 0 0 4px rgba(54,160,108,.09); }
.usage-live b,.usage-live small { display: block; }
.usage-live b { font-size: 9px; }
.usage-live small { margin-top: 2px; color: #7d9687; font-size: 8px; }
.usage-hero { position: relative; display: grid; min-height: 190px; overflow: hidden; grid-template-columns: 142px minmax(0,1fr); align-items: center; gap: 24px; margin-top: 22px; border-radius: 18px; background: linear-gradient(145deg,#262a27,#1d201e); color: #fff; padding: 24px 27px; box-shadow: 0 15px 34px rgba(25,29,25,.14); }
.usage-hero::before { position: absolute; top: -115px; right: -60px; width: 300px; height: 300px; border: 1px solid rgba(137,111,247,.15); border-radius: 50%; box-shadow: 0 0 80px rgba(113,86,233,.13); content: ""; }
.usage-hero::after { position: absolute; right: 85px; bottom: -140px; width: 230px; height: 230px; border: 1px solid rgba(137,111,247,.1); border-radius: 50%; content: ""; }
.usage-ring { position: relative; z-index: 1; display: grid; width: 130px; height: 130px; place-items: center; border-radius: 50%; background: conic-gradient(#8d79f4 0 71.3%,rgba(255,255,255,.09) 71.3% 100%); box-shadow: 0 0 32px rgba(117,91,231,.16); }
.usage-ring::before { position: absolute; inset: 8px; border-radius: 50%; background: #232724; content: ""; }
.usage-ring::after { position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; content: ""; }
.usage-ring > div { position: relative; z-index: 1; text-align: center; }
.usage-ring strong,.usage-ring span { display: block; }
.usage-ring strong { font-size: 28px; font-weight: 650; letter-spacing: -.055em; }
.usage-ring span { margin-top: 4px; color: #8f958f; font-size: 8px; }
.usage-hero-copy { position: relative; z-index: 1; }
.usage-plan-label { color: #a99afa; font-size: 9px; font-weight: 710; letter-spacing: .08em; text-transform: uppercase; }
.usage-hero-copy h4 { margin: 12px 0 5px; }
.usage-hero-copy h4 strong { font-size: 35px; font-weight: 650; letter-spacing: -.055em; }
.usage-hero-copy h4 small { color: #9a9f99; font-size: 11px; font-weight: 520; }
.usage-hero-copy > p { margin: 0; color: #a5aaa4; font-size: 10px; }
.usage-hero-copy > p b { color: #e4e6e2; font-weight: 640; }
.reset-clock { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; border-top: 1px solid rgba(255,255,255,.09); padding-top: 14px; }
.reset-clock > span { display: flex; align-items: center; gap: 10px; }
.reset-clock > span > i { position: relative; width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.1); border-radius: 9px; }
.reset-clock > span > i::before,.reset-clock > span > i::after { position: absolute; content: ""; }
.reset-clock > span > i::before { inset: 7px; border: 1px solid #9582ee; border-radius: 50%; }
.reset-clock > span > i::after { top: 10px; left: 14px; width: 1px; height: 6px; background: #b2a5f1; transform: rotate(-35deg); transform-origin: bottom; }
.reset-clock small,.reset-clock b { display: block; }
.reset-clock small { color: #808680; font-size: 7px; }
.reset-clock b { margin-top: 3px; color: #d8dbd6; font-size: 9px; }
.reset-clock > time { border-radius: 99px; background: rgba(255,255,255,.07); color: #bdb5e7; padding: 6px 9px; font-size: 8px; font-weight: 620; }
.usage-summary-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin-top: 10px; }
.usage-summary-grid article { border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.74); padding: 14px; box-shadow: var(--shadow-sm); }
.usage-summary-grid article > span { color: #91948d; font-size: 8px; }
.usage-summary-grid strong { display: block; margin-top: 9px; font-size: 18px; font-weight: 660; letter-spacing: -.035em; }
.usage-summary-grid strong small { color: #969991; font-size: 8px; font-weight: 550; }
.usage-summary-grid p { margin: 7px 0 0; color: #999c94; font-size: 8px; }
.usage-summary-grid p i { color: #6554cf; font-style: normal; font-weight: 650; }
.usage-summary-grid p i.down { color: #3d8b61; }
.usage-card { border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.76); padding: 17px; box-shadow: var(--shadow-sm); }
.usage-activity-card { margin-top: 10px; }
.usage-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.usage-card-heading h4 { margin: 0; font-size: 12px; font-weight: 680; }
.usage-card-heading p { margin: 5px 0 0; color: #999c94; font-size: 8px; line-height: 1.45; }
.usage-period-tabs { display: flex; gap: 2px; border-radius: 8px; background: #eff0ec; padding: 3px; }
.usage-period-tabs button { border: 0; border-radius: 6px; background: transparent; color: #8b8e87; padding: 5px 8px; font-size: 8px; }
.usage-period-tabs button.active { background: #fff; color: #4e514c; font-weight: 650; box-shadow: 0 1px 4px rgba(25,28,23,.09); }
.usage-chart { display: grid; height: 145px; grid-template-columns: repeat(7,1fr); gap: 9px; margin-top: 20px; }
.usage-chart > div { display: grid; min-width: 0; grid-template-rows: 1fr auto auto; justify-items: center; gap: 5px; }
.usage-chart > div > span { position: relative; width: 100%; overflow: hidden; border-radius: 6px 6px 3px 3px; background: linear-gradient(to top,#f0f1ed,#f7f8f5); }
.usage-chart > div > span i { position: absolute; right: 20%; bottom: 0; left: 20%; height: var(--bar); border-radius: 5px 5px 2px 2px; background: linear-gradient(to top,#7460df,#a694f6); box-shadow: 0 -4px 12px rgba(110,87,221,.12); transition: height .3s ease; }
.usage-chart > div.today > span { background: #f1effd; }
.usage-chart > div.today > span i { background: linear-gradient(to top,#5d4bd0,#947cf2); }
.usage-chart b { color: #777a73; font-size: 7px; font-weight: 650; }
.usage-chart small { color: #a0a39b; font-size: 7px; }
.usage-chart > div.today b { color: #5e4dca; }
.usage-chart-legend { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; border-top: 1px solid #eceee9; padding-top: 11px; }
.usage-chart-legend span { display: flex; align-items: center; gap: 6px; color: #969991; font-size: 8px; }
.usage-chart-legend span i { width: 7px; height: 7px; border-radius: 2px; background: #7964e1; }
.usage-chart-legend strong { color: #5d605a; font-size: 8px; }
.usage-detail-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 10px; margin-top: 10px; }
.model-usage-list { display: grid; margin-top: 12px; }
.model-usage-list article { display: grid; min-height: 55px; grid-template-columns: 26px minmax(0,1fr) auto; align-items: center; gap: 8px; border-top: 1px solid #eceee9; }
.usage-model-dot { position: relative; display: block; width: 24px; height: 24px; border-radius: 8px; background: #edf6fb; }
.usage-model-dot::after { position: absolute; inset: 8px; border-radius: 50%; background: #48a8e8; box-shadow: 0 0 7px rgba(72,168,232,.35); content: ""; }
.usage-model-dot.orbit { background: #f0edff; }
.usage-model-dot.orbit::after { background: #6b58da; box-shadow: 0 0 7px rgba(107,88,218,.35); }
.usage-model-dot.quasar { background: #f6ecfb; }
.usage-model-dot.quasar::after { background: #995edf; box-shadow: 0 0 8px rgba(153,94,223,.42); }
.model-usage-list article > div b,.model-usage-list article > div small { display: block; }
.model-usage-list article > div b { font-size: 9px; }
.model-usage-list article > div small { margin-top: 3px; color: #9ca097; font-size: 7px; }
.model-usage-list article > strong { font-size: 9px; }
.model-usage-list article > strong small { color: #999c94; font-size: 7px; }
.model-usage-list article > i { grid-column: 2 / 4; height: 3px; overflow: hidden; border-radius: 99px; background: #edeee9; margin-top: -10px; }
.model-usage-list article > i b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#6c58d9,#9984ed); }
.forecast-status { border-radius: 99px; background: #eaf6ee; color: #34805a; padding: 5px 7px; font-size: 7px; font-weight: 650; white-space: nowrap; }
.forecast-visual { margin-top: 22px; }
.forecast-visual > span { position: relative; display: block; height: 5px; border-radius: 99px; background: #e9eae6; }
.forecast-visual > span i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#6250d2,#917bec); }
.forecast-visual > span b { position: absolute; top: -3px; left: 100%; width: 1px; height: 11px; background: #c7cac3; }
.forecast-visual > div { display: flex; align-items: baseline; justify-content: space-between; margin-top: 10px; }
.forecast-visual small { color: #999c94; font-size: 7px; }
.forecast-visual strong { font-size: 13px; }
.forecast-visual strong em { color: #999c94; font-size: 8px; font-style: normal; font-weight: 540; }
.forecast-card > p { margin: 20px 0 0; color: #777a73; font-size: 9px; line-height: 1.55; }
.forecast-card > p b { color: #514f5b; }
.forecast-card > button { margin-top: 14px; border: 0; background: transparent; color: #6252c9; padding: 0; font-size: 8px; font-weight: 650; }
.recent-usage { margin-top: 10px; }
.recent-usage .usage-card-heading > button { border: 0; background: transparent; color: #6252cb; padding: 0; font-size: 8px; font-weight: 650; }
.usage-transaction-list { display: grid; margin-top: 12px; }
.usage-transaction-list article { display: grid; min-height: 55px; grid-template-columns: 32px minmax(0,1fr) 55px 18px; align-items: center; gap: 9px; border-top: 1px solid #eceee9; }
.usage-task-icon { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 9px; background: #f0edff; color: #6552cf; font-size: 8px; font-weight: 740; }
.usage-task-icon.comet { background: #edf7fc; color: #348fc9; }
.usage-task-icon.quasar { background: #f6edfb; color: #9158cc; }
.usage-transaction-list article > div b,.usage-transaction-list article > div small { display: block; }
.usage-transaction-list article > div b { font-size: 9px; }
.usage-transaction-list article > div small { margin-top: 4px; color: #9b9e96; font-size: 7px; }
.usage-transaction-list article > strong { font-size: 9px; text-align: right; }
.usage-transaction-list article > button { border: 0; background: transparent; color: #a0a39b; font-size: 16px; }
.usage-explanation { display: none; margin-top: 8px; border-radius: 11px; background: #f4f3fb; padding: 13px; }
.usage-explanation.open { display: block; animation: profile-panel-in .18s ease both; }
.usage-explanation > b { font-size: 9px; }
.usage-explanation > p { margin: 6px 0 9px; color: #787580; font-size: 8px; line-height: 1.5; }
.usage-explanation > span { display: flex; align-items: center; gap: 6px; color: #4d755d; font-size: 8px; }
.usage-explanation > span i { display: grid; width: 15px; height: 15px; place-items: center; border-radius: 50%; background: #e3f3e9; color: #328059; font-style: normal; }
.usage-alerts { margin-top: 10px; }
.compact-switch { width: 35px; min-width: 35px; background: transparent; padding: 0; }
.compact-switch:hover { background: transparent; }
.usage-threshold { display: grid; grid-template-columns: repeat(3,58px) minmax(0,1fr); align-items: center; gap: 6px; margin-top: 15px; }
.usage-threshold button { min-height: 30px; border: 1px solid var(--line); border-radius: 8px; background: #f6f7f4; color: #797c75; font-size: 8px; }
.usage-threshold button.active { border-color: #c7bfed; background: #f1effc; color: #5d4ac6; font-weight: 680; }
.usage-threshold > span { color: #969991; font-size: 8px; text-align: right; }

@media (max-width: 880px) {
  .usage-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .usage-hero { grid-template-columns: 96px minmax(0,1fr); gap: 15px; padding: 20px 16px; }
  .usage-ring { width: 92px; height: 92px; }
  .usage-ring::before { inset: 6px; }
  .usage-ring strong { font-size: 22px; }
  .usage-hero-copy h4 strong { font-size: 28px; }
  .reset-clock { align-items: flex-start; flex-direction: column; }
  .usage-summary-grid { grid-template-columns: 1fr; }
  .usage-chart { gap: 4px; }
  .usage-chart > div > span i { right: 14%; left: 14%; }
  .usage-threshold { grid-template-columns: repeat(3,1fr); }
  .usage-threshold > span { grid-column: 1 / -1; text-align: left; }
}

/* Refined usage center */
.usage-panel-v2 { max-width: 780px; }
.usage-heading-v2 { align-items: center; }
.usage-heading-v2 .section-kicker { font-size: 12px; }
.usage-heading-v2 h3 { margin-top: 7px; font-size: 30px; }
.usage-heading-v2 p { max-width: 520px; margin-top: 8px; font-size: 15px; line-height: 1.55; }
.usage-panel-v2 .usage-live { display: flex; min-width: 176px; grid-template-columns: none; gap: 10px; border: 0; border-radius: 12px; background: #edf7f0; padding: 10px 13px; }
.usage-panel-v2 .usage-live > i { grid-row: auto; flex: 0 0 auto; }
.usage-panel-v2 .usage-live > span { min-width: 0; }
.usage-panel-v2 .usage-live b { font-size: 13px; }
.usage-panel-v2 .usage-live small { margin-top: 3px; font-size: 12px; }

.usage-overview-v2 { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(230px,.8fr); gap: 14px; margin-top: 27px; }
.limit-primary-v2,.reset-primary-v2,.usage-activity-v2,.usage-models-v2,.usage-controls-v2 { border: 1px solid #e3e5df; border-radius: 20px; background: rgba(255,255,255,.86); box-shadow: 0 10px 28px rgba(34,37,31,.045); }
.limit-primary-v2 { padding: 25px 27px 23px; }
.limit-primary-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #747970; font-size: 14px; }
.limit-primary-top b { border-radius: 999px; background: #f0edff; color: #6550d2; padding: 7px 10px; font-size: 13px; }
.limit-number-v2 { display: flex; align-items: baseline; gap: 11px; margin-top: 17px; }
.limit-number-v2 strong { color: #252824; font-size: 48px; font-weight: 650; letter-spacing: -.065em; line-height: .95; }
.limit-number-v2 span { color: #868b82; font-size: 15px; }
.limit-progress-v2 { height: 9px; overflow: hidden; margin-top: 23px; border-radius: 999px; background: #eceee9; }
.limit-progress-v2 i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#6551d2,#9b86ee); box-shadow: 0 0 16px rgba(106,82,218,.25); }
.limit-scale-v2 { display: flex; justify-content: space-between; margin-top: 8px; color: #a1a59d; font-size: 12px; }
.limit-primary-v2 > p { margin: 19px 0 0; color: #777c73; font-size: 14px; line-height: 1.55; }
.limit-primary-v2 > p b { color: #42463f; font-weight: 650; }

.reset-primary-v2 { position: relative; overflow: hidden; background: linear-gradient(145deg,#292d29,#202320); color: #fff; padding: 24px; }
.reset-primary-v2::after { position: absolute; right: -52px; bottom: -62px; width: 150px; height: 150px; border: 1px solid rgba(153,132,238,.16); border-radius: 50%; box-shadow: 0 0 45px rgba(116,88,227,.12); content: ""; }
.reset-icon-v2 { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; background: rgba(255,255,255,.055); color: #ad9cf4; }
.reset-icon-v2 svg { width: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.reset-label-v2 { display: block; margin-top: 22px; color: #9ea39c; font-size: 13px; }
.reset-primary-v2 > strong { position: relative; z-index: 1; display: block; margin-top: 7px; font-size: 21px; font-weight: 610; letter-spacing: -.025em; }
.reset-primary-v2 > time { position: relative; z-index: 1; display: inline-block; margin-top: 14px; border-radius: 999px; background: rgba(143,121,239,.13); color: #c2b7f5; padding: 7px 10px; font-size: 13px; font-weight: 620; }
.reset-primary-v2 > p { position: relative; z-index: 1; margin: 17px 0 0; color: #989d97; font-size: 13px; line-height: 1.5; }

.usage-key-metrics-v2 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; margin-top: 12px; }
.usage-key-metrics-v2 article { min-height: 125px; border: 1px solid #e5e7e1; border-radius: 17px; background: rgba(255,255,255,.68); padding: 19px 20px; }
.usage-key-metrics-v2 article > span { color: #858a81; font-size: 13px; }
.usage-key-metrics-v2 strong { display: block; margin-top: 12px; color: #2e312d; font-size: 25px; font-weight: 650; letter-spacing: -.035em; }
.usage-key-metrics-v2 strong small { color: #8f948b; font-size: 13px; font-weight: 540; letter-spacing: 0; }
.usage-key-metrics-v2 p { margin: 9px 0 0; color: #92978e; font-size: 12px; }
.usage-key-metrics-v2 p i { color: #4f8b68; font-style: normal; font-weight: 640; }
.usage-key-metrics-v2 p i.safe { display: inline-block; border-radius: 999px; background: #edf7f0; padding: 5px 8px; }

.usage-activity-v2,.usage-models-v2,.usage-controls-v2 { margin-top: 12px; padding: 22px 24px; }
.usage-card-heading-v2 { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.usage-card-heading-v2 h4,.usage-alert-row-v2 h4 { margin: 0; color: #30332f; font-size: 17px; font-weight: 660; letter-spacing: -.018em; }
.usage-card-heading-v2 p,.usage-alert-row-v2 p { margin: 6px 0 0; color: #8b9087; font-size: 13px; line-height: 1.5; }
.usage-card-heading-v2 > button { border: 0; background: transparent; color: #6653cb; padding: 3px 0; font-size: 13px; font-weight: 650; white-space: nowrap; }
.usage-panel-v2 .usage-period-tabs { gap: 3px; border-radius: 10px; padding: 4px; }
.usage-panel-v2 .usage-period-tabs button { min-height: 32px; border-radius: 8px; padding: 6px 12px; font-size: 13px; }
.usage-panel-v2 .usage-chart { height: 205px; grid-template-rows: none; gap: 12px; margin-top: 25px; }
.usage-panel-v2 .usage-chart > div { grid-template-rows: 22px 1fr 22px; gap: 7px; }
.usage-panel-v2 .usage-chart > div > span { border-radius: 8px; background: linear-gradient(to top,#f0f1ed,#f7f8f5); }
.usage-panel-v2 .usage-chart > div > span i { right: 17%; left: 17%; border-radius: 7px 7px 3px 3px; background: linear-gradient(to top,#7964df,#aa98ef); }
.usage-panel-v2 .usage-chart > div.today > span { background: #f0eefc; box-shadow: inset 0 0 0 1px rgba(104,82,211,.05); }
.usage-panel-v2 .usage-chart b { align-self: center; color: #747970; font-size: 13px; }
.usage-panel-v2 .usage-chart small { align-self: end; color: #848980; font-size: 12px; font-weight: 620; }
.usage-panel-v2 .usage-chart > div.today b,.usage-panel-v2 .usage-chart > div.today small { color: #6551ce; }
.usage-panel-v2 .usage-chart-legend { margin-top: 17px; padding-top: 15px; }
.usage-panel-v2 .usage-chart-legend span,.usage-panel-v2 .usage-chart-legend strong { font-size: 13px; }
.usage-panel-v2 .usage-chart-legend span i { width: 9px; height: 9px; border-radius: 3px; }

.model-share-v2 { display: flex; height: 11px; overflow: hidden; gap: 3px; margin-top: 24px; border-radius: 999px; background: #eceeea; }
.model-share-v2 i { display: block; height: 100%; }
.model-share-v2 .comet { background: #66b8e7; }
.model-share-v2 .orbit { background: #7762dc; }
.model-share-v2 .quasar { background: #a266d1; }
.model-share-list-v2 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 15px; }
.model-share-list-v2 article { display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: center; gap: 10px; border-right: 1px solid #e7e9e3; padding-right: 12px; }
.model-share-list-v2 article:last-child { border-right: 0; }
.model-share-list-v2 .usage-model-dot { grid-row: 1 / 3; width: 32px; height: 32px; border-radius: 10px; }
.model-share-list-v2 .usage-model-dot::after { inset: 10px; }
.model-share-list-v2 article > div b { display: block; font-size: 14px; }
.model-share-list-v2 article > div small { display: block; margin-top: 3px; color: #969b92; font-size: 12px; }
.model-share-list-v2 article > strong { grid-column: 2; margin-top: 5px; color: #555a52; font-size: 13px; }

.usage-alert-row-v2 { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.usage-panel-v2 .compact-switch { width: 42px; min-width: 42px; }
.usage-panel-v2 .usage-threshold { grid-template-columns: repeat(3,72px) minmax(0,1fr); gap: 8px; margin-top: 18px; }
.usage-panel-v2 .usage-threshold button { min-height: 38px; border-radius: 10px; font-size: 13px; }
.usage-panel-v2 .usage-threshold > span { font-size: 13px; }
.usage-details-trigger-v2 { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; border: 0; border-top: 1px solid #e8eae4; background: transparent; padding: 18px 0 0; text-align: left; }
.usage-details-trigger-v2 span b,.usage-details-trigger-v2 span small { display: block; }
.usage-details-trigger-v2 span b { color: #424640; font-size: 14px; }
.usage-details-trigger-v2 span small { margin-top: 4px; color: #92978e; font-size: 12px; }
.usage-details-trigger-v2 > i { color: #777c74; font-size: 19px; font-style: normal; transition: transform .18s ease; }
.usage-details-trigger-v2.open > i { transform: rotate(180deg); }
.usage-panel-v2 .usage-explanation { margin-top: 16px; border-radius: 14px; background: #f7f7f4; padding: 0 17px 17px; }
.usage-panel-v2 .usage-transaction-list { margin-top: 0; }
.usage-panel-v2 .usage-transaction-list article { min-height: 67px; grid-template-columns: 39px minmax(0,1fr) 70px; gap: 12px; }
.usage-panel-v2 .usage-task-icon { width: 38px; height: 38px; border-radius: 11px; font-size: 12px; }
.usage-panel-v2 .usage-transaction-list article > div b { font-size: 13px; }
.usage-panel-v2 .usage-transaction-list article > div small { margin-top: 4px; font-size: 12px; }
.usage-panel-v2 .usage-transaction-list article > strong { font-size: 13px; }
.usage-rule-v2 { display: flex; align-items: flex-start; gap: 10px; margin-top: 8px; border-radius: 12px; background: #eaf5ed; padding: 13px 14px; }
.usage-rule-v2 > span { display: grid; flex: 0 0 auto; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: #d7eddf; color: #347d56; font-size: 12px; }
.usage-rule-v2 p { margin: 1px 0 0; color: #5e7465; font-size: 13px; line-height: 1.45; }

@media (max-width: 880px) {
  .usage-overview-v2 { grid-template-columns: 1fr; }
  .reset-primary-v2 { min-height: 210px; }
}

@media (max-width: 680px) {
  .usage-heading-v2 h3 { font-size: 27px; }
  .usage-heading-v2 p { font-size: 14px; }
  .usage-panel-v2 .usage-live { align-self: stretch; }
  .limit-primary-v2,.reset-primary-v2,.usage-activity-v2,.usage-models-v2,.usage-controls-v2 { border-radius: 17px; }
  .limit-primary-v2,.usage-activity-v2,.usage-models-v2,.usage-controls-v2 { padding: 19px; }
  .limit-number-v2 strong { font-size: 42px; }
  .usage-key-metrics-v2 { grid-template-columns: 1fr; }
  .usage-key-metrics-v2 article { min-height: 0; }
  .usage-card-heading-v2 { align-items: stretch; flex-direction: column; }
  .usage-card-heading-v2 .usage-period-tabs { align-self: flex-start; }
  .usage-panel-v2 .usage-chart { height: 190px; gap: 5px; }
  .usage-panel-v2 .usage-chart > div > span i { right: 12%; left: 12%; }
  .usage-panel-v2 .usage-chart-legend { align-items: flex-start; flex-direction: column; }
  .model-share-list-v2 { grid-template-columns: 1fr; }
  .model-share-list-v2 article { border-right: 0; border-bottom: 1px solid #e7e9e3; padding: 9px 0 12px; }
  .model-share-list-v2 article:last-child { border-bottom: 0; }
  .usage-panel-v2 .usage-threshold { grid-template-columns: repeat(3,1fr); }
  .usage-panel-v2 .usage-threshold > span { grid-column: 1 / -1; text-align: left; }
}

/* Connections */
.connections-panel { max-width: 780px; }
.connections-heading { align-items: center; }
.connections-heading h3 { margin-top: 7px; font-size: 30px; }
.connections-heading p { max-width: 520px; margin-top: 8px; font-size: 15px; line-height: 1.55; }
.connections-summary { display: flex; min-width: 178px; align-items: center; gap: 10px; border-radius: 12px; background: #edf7f0; color: #4d725d; padding: 10px 13px; }
.connections-summary > i { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: #36a06c; box-shadow: 0 0 0 4px rgba(54,160,108,.09); }
.connections-summary b,.connections-summary small { display: block; }
.connections-summary b { font-size: 13px; }
.connections-summary small { margin-top: 3px; color: #799080; font-size: 12px; }

.github-connection-card { position: relative; display: grid; overflow: hidden; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 20px; margin-top: 27px; border-radius: 21px; background: linear-gradient(145deg,#292c29,#202320); color: #fff; padding: 25px 26px 0; box-shadow: 0 16px 36px rgba(28,31,27,.12); }
.github-connection-card::after { position: absolute; right: 110px; bottom: -95px; width: 220px; height: 220px; border: 1px solid rgba(166,146,245,.12); border-radius: 50%; box-shadow: 0 0 55px rgba(121,94,229,.08); content: ""; pointer-events: none; }
.github-connection-card.disconnected { padding-bottom: 25px; background: linear-gradient(145deg,#303330,#272a27); }
.github-card-main { position: relative; z-index: 1; display: flex; min-width: 0; align-items: center; gap: 16px; }
.github-mark { display: grid; flex: 0 0 auto; width: 54px; height: 54px; place-items: center; border: 1px solid rgba(255,255,255,.11); border-radius: 16px; background: rgba(255,255,255,.065); }
.github-mark svg { width: 30px; fill: #fff; }
.github-card-copy { min-width: 0; }
.connection-eyebrow { color: #a99bf0; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.github-card-copy h4 { margin: 4px 0 0; font-size: 25px; font-weight: 640; letter-spacing: -.035em; }
.github-card-copy p { margin: 6px 0 0; color: #a6aba5; font-size: 13px; }
.github-card-copy p b { color: #e3e5e1; font-weight: 620; }
.github-card-state { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.connection-status { display: flex; align-items: center; gap: 7px; color: #a8d5b8; font-size: 13px; font-weight: 630; }
.connection-status > i { width: 7px; height: 7px; border-radius: 50%; background: #56bf7f; box-shadow: 0 0 0 4px rgba(86,191,127,.1); }
.connection-status.offline { color: #aaaFAA; }
.connection-status.offline > i { background: #777d77; box-shadow: none; }
.github-card-state > button { min-height: 38px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: rgba(255,255,255,.055); color: #c7cbc6; padding: 8px 12px; font-size: 12px; }
.github-card-state > button:hover { background: rgba(255,255,255,.1); color: #fff; }
.github-card-state > button.confirm-disconnect { border-color: rgba(235,126,126,.24); background: rgba(211,86,86,.13); color: #efb2b2; }
.github-connection-meta { position: relative; z-index: 1; display: grid; grid-column: 1 / -1; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 2px; border-top: 1px solid rgba(255,255,255,.085); }
.github-connection-meta > span { min-width: 0; padding: 17px 15px 18px 0; }
.github-connection-meta > span + span { border-left: 1px solid rgba(255,255,255,.075); padding-left: 20px; }
.github-connection-meta small,.github-connection-meta b { display: block; }
.github-connection-meta small { color: #818780; font-size: 12px; }
.github-connection-meta b { margin-top: 5px; color: #d9dcd7; font-size: 13px; font-weight: 610; }

.github-disconnected { display: flex; align-items: center; gap: 17px; margin-top: 13px; border: 1px dashed #d8d9d4; border-radius: 17px; background: rgba(255,255,255,.55); padding: 20px; }
.github-disconnected > span { display: grid; flex: 0 0 auto; width: 44px; height: 44px; place-items: center; border-radius: 13px; background: #efedf9; color: #6c59cf; }
.github-disconnected svg { width: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.6; }
.github-disconnected h4 { margin: 0; font-size: 16px; }
.github-disconnected p { margin: 5px 0 0; color: #858a81; font-size: 13px; line-height: 1.5; }

.connection-card { margin-top: 13px; border: 1px solid #e3e5df; border-radius: 19px; background: rgba(255,255,255,.84); padding: 22px 24px; box-shadow: 0 10px 28px rgba(34,37,31,.04); }
.connection-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.connection-card-heading h4 { margin: 0; color: #30332f; font-size: 17px; font-weight: 660; letter-spacing: -.018em; }
.connection-card-heading p { margin: 6px 0 0; color: #8b9087; font-size: 13px; line-height: 1.5; }
.connection-card-heading > span { border-radius: 999px; background: #f1f2ee; color: #777c74; padding: 7px 10px; font-size: 12px; white-space: nowrap; }
.connection-card-heading > .recommended-label { background: #efedfb; color: #6754cc; font-weight: 640; }
.repository-access-list { margin-top: 17px; }
.repository-access-list article { display: grid; min-height: 72px; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 13px; border-top: 1px solid #e9ebe6; }
.repository-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; background: #f0eefb; color: #6754cf; font-size: 13px; font-weight: 750; }
.repository-icon.private { background: #eef3f6; color: #50748a; }
.repository-access-list article > div b,.repository-access-list article > div small { display: block; }
.repository-access-list article > div b { color: #3c403a; font-size: 14px; }
.repository-access-list article > div small { margin-top: 5px; color: #969b92; font-size: 12px; }
.repository-access-list article > div small i { color: #777d75; font-style: normal; font-weight: 620; }
.repository-toggle { width: 42px; min-width: 42px; padding: 0; }
.repository-manage-button { display: flex; width: 100%; min-height: 45px; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; border: 1px dashed #d8dad4; border-radius: 12px; background: #fafbf8; color: #696e66; font-size: 13px; font-weight: 620; }
.repository-manage-button:hover { border-color: #c7c0e8; background: #f5f3fc; color: #604ec6; }
.repository-manage-button span { color: #7661dc; font-size: 17px; font-weight: 400; }

.github-policy-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 18px; }
.github-policy-options > button { position: relative; display: grid; min-height: 108px; grid-template-columns: 22px minmax(0,1fr); align-content: start; gap: 10px; border: 1px solid #e2e4de; border-radius: 15px; background: #fafbf8; padding: 16px; text-align: left; }
.github-policy-options > button.selected { border-color: #bdb3e9; background: #f5f3fc; box-shadow: inset 0 0 0 1px rgba(107,85,207,.06); }
.github-policy-options > button > span { display: grid; width: 20px; height: 20px; place-items: center; border: 1px solid #cfd2cb; border-radius: 50%; background: #fff; }
.github-policy-options > button > span i { width: 8px; height: 8px; border-radius: 50%; }
.github-policy-options > button.selected > span { border-color: #6d58d2; }
.github-policy-options > button.selected > span i { background: #6d58d2; }
.github-policy-options b,.github-policy-options small { display: block; }
.github-policy-options b { color: #3d403b; font-size: 14px; }
.github-policy-options small { margin-top: 6px; color: #8e938a; font-size: 12px; line-height: 1.45; }
.github-policy-options em { position: absolute; top: 12px; right: 12px; border-radius: 999px; background: #e8f4ec; color: #3b8059; padding: 4px 7px; font-size: 10px; font-style: normal; font-weight: 670; }
.github-guardrails { margin-top: 16px; border-top: 1px solid #e7e9e3; }
.github-guardrails > div,.github-guardrails > button { display: grid; width: 100%; min-height: 66px; grid-template-columns: 40px minmax(0,1fr) auto; align-items: center; gap: 12px; border: 0; border-bottom: 1px solid #e9ebe6; background: transparent; padding: 8px 0; text-align: left; }
.guardrail-lock { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: #edf7f0; color: #438162; }
.guardrail-lock svg { width: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.github-guardrails b,.github-guardrails small { display: block; }
.github-guardrails b { color: #424640; font-size: 13px; }
.github-guardrails small { margin-top: 4px; color: #92978e; font-size: 12px; }
.github-guardrails > div > i { border-radius: 999px; background: #edf7f0; color: #44805f; padding: 5px 8px; font-size: 11px; font-style: normal; font-weight: 650; }
.github-guardrails .connection-setting { grid-template-columns: minmax(0,1fr) 42px; }
.github-guardrails .connection-setting > span { grid-column: 1; }
.github-guardrails .connection-setting > i { grid-column: 2; }
.connection-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; }
.connection-actions > span { display: flex; align-items: center; gap: 8px; color: #7c8178; font-size: 12px; }
.connection-actions > span i { width: 7px; height: 7px; border-radius: 50%; background: #6552cf; box-shadow: 0 0 0 4px rgba(101,82,207,.08); }
.connection-actions .save-settings { width: auto; min-width: 164px; }

.github-capabilities-note { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; align-items: center; gap: 13px; margin-top: 13px; border-radius: 16px; background: #eeeffb; padding: 16px 18px; }
.github-capabilities-note > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: #fff; color: #6754cf; }
.github-capabilities-note svg { width: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.github-capabilities-note b { color: #454252; font-size: 13px; }
.github-capabilities-note p { margin: 4px 0 0; color: #7e7a8b; font-size: 12px; line-height: 1.45; }
.github-capabilities-note button { border: 0; background: transparent; color: #6653ca; padding: 7px; font-size: 12px; font-weight: 650; }

@media (max-width: 880px) {
  .github-connection-card { grid-template-columns: 1fr; }
  .github-card-state { justify-content: space-between; }
  .github-policy-options { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .connections-heading h3 { font-size: 27px; }
  .connections-heading p { font-size: 14px; }
  .connections-summary { align-self: stretch; }
  .github-connection-card { border-radius: 17px; padding: 20px 19px 0; }
  .github-connection-card.disconnected { padding-bottom: 20px; }
  .github-card-main { align-items: flex-start; }
  .github-mark { width: 46px; height: 46px; border-radius: 14px; }
  .github-card-state { align-items: stretch; flex-direction: column; }
  .github-card-state > button { width: 100%; }
  .github-connection-meta { grid-template-columns: 1fr; }
  .github-connection-meta > span { padding: 14px 0; }
  .github-connection-meta > span + span { border-top: 1px solid rgba(255,255,255,.075); border-left: 0; padding-left: 0; }
  .connection-card { border-radius: 17px; padding: 19px; }
  .connection-card-heading { align-items: stretch; flex-direction: column; }
  .connection-card-heading > span { align-self: flex-start; }
  .repository-access-list article { min-height: 82px; grid-template-columns: 40px minmax(0,1fr) auto; }
  .repository-access-list article > div small { line-height: 1.45; }
  .connection-actions { align-items: stretch; flex-direction: column; }
  .connection-actions .save-settings { width: 100%; }
  .github-capabilities-note { grid-template-columns: 38px minmax(0,1fr); }
  .github-capabilities-note button { grid-column: 2; justify-self: start; padding-left: 0; }
}

/* Integrations hub */
.connection-nav-dot { width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: #54ae77; box-shadow: 0 0 0 4px rgba(84,174,119,.1); }
.connection-nav-dot.offline { background: #aaaDA7; box-shadow: none; }
.integrations-page { max-width: 1180px; }
.integrations-page-heading { align-items: center; }
.integrations-page-heading h1 { letter-spacing: -.045em; }
.integrations-page-heading p { max-width: 620px; font-size: 15px; line-height: 1.55; }
.integration-health { display: flex; min-width: 210px; align-items: center; gap: 11px; border: 1px solid #dce9e0; border-radius: 14px; background: #f4faf6; color: #4c755c; padding: 11px 14px; }
.integration-health > i { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: #40a26b; box-shadow: 0 0 0 4px rgba(64,162,107,.1); }
.integration-health b,.integration-health small { display: block; }
.integration-health b { font-size: 13px; }
.integration-health small { margin-top: 3px; color: #799181; font-size: 12px; }
.integration-health.offline { border-color: #e2e4df; background: #f6f7f4; color: #777c74; }
.integration-health.offline > i { background: #a5aaa2; box-shadow: none; }

.integration-overview { display: grid; grid-template-columns: repeat(3,minmax(120px,.55fr)) minmax(280px,1.45fr); overflow: hidden; margin-top: 28px; border: 1px solid #e1e3dd; border-radius: 19px; background: rgba(255,255,255,.76); box-shadow: 0 12px 30px rgba(32,35,30,.045); }
.integration-overview > article { min-height: 114px; border-right: 1px solid #e8eae5; padding: 20px; }
.integration-overview > article > span { display: block; color: #8b9087; font-size: 12px; }
.integration-overview > article > strong { display: block; margin-top: 8px; color: #30332f; font-size: 28px; font-weight: 650; letter-spacing: -.045em; }
.integration-overview > article > small { display: block; margin-top: 5px; color: #979c93; font-size: 12px; }
.integration-overview > div { display: flex; min-width: 0; align-items: center; gap: 18px; background: linear-gradient(135deg,#f3f1fc,#f7f7f4); padding: 20px 23px; }
.integration-overview > div p { margin: 0; }
.integration-overview > div p b,.integration-overview > div p small { display: block; }
.integration-overview > div p b { color: #484550; font-size: 14px; }
.integration-overview > div p small { margin-top: 5px; color: #85818e; font-size: 12px; line-height: 1.45; }
.integration-orbit { position: relative; display: grid; flex: 0 0 auto; width: 56px; height: 56px; place-items: center; }
.integration-orbit::before,.integration-orbit::after { position: absolute; border: 1px solid rgba(105,82,210,.25); border-radius: 50%; content: ""; }
.integration-orbit::before { inset: 3px 10px; transform: rotate(35deg); }
.integration-orbit::after { inset: 10px 3px; transform: rotate(-35deg); }
.integration-orbit > i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #7964dc; box-shadow: 0 0 8px rgba(121,100,220,.4); }
.integration-orbit > i:first-child { top: 9px; right: 11px; }
.integration-orbit > i:nth-child(2) { bottom: 9px; left: 11px; }
.integration-orbit > b { display: grid; z-index: 1; width: 27px; height: 27px; place-items: center; border-radius: 9px; background: #fff; color: #6551cb; box-shadow: 0 5px 14px rgba(83,63,170,.12); font-size: 11px; }

.integrations-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 27px; }
.integration-filters { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; }
.integration-filters button { min-height: 39px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: #777c74; padding: 8px 13px; font-size: 13px; font-weight: 590; white-space: nowrap; }
.integration-filters button:hover { background: #f1f2ee; }
.integration-filters button.selected { border-color: #dfdddF; background: #fff; color: #3f433e; box-shadow: 0 4px 12px rgba(35,38,32,.05); }
.integration-search { width: min(260px,100%); min-width: 210px; background: rgba(255,255,255,.72); }
.integration-search input { font-size: 13px; }

.integration-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; margin-top: 15px; }
.integration-card { position: relative; display: flex; min-height: 212px; overflow: hidden; flex-direction: column; justify-content: space-between; border: 1px solid #e2e4de; border-radius: 19px; background: rgba(255,255,255,.78); padding: 20px; color: inherit; text-align: left; box-shadow: 0 9px 24px rgba(34,37,31,.035); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.integration-card:hover { border-color: #cac4e5; box-shadow: 0 15px 32px rgba(60,48,119,.08); transform: translateY(-2px); }
.integration-card:focus-visible { outline: 2px solid #7561d8; outline-offset: 2px; }
.integration-card.connected { border-color: #d0caec; background: linear-gradient(145deg,#fff,#f7f5fd); }
.integration-card.connected::after { position: absolute; top: -75px; right: -75px; width: 175px; height: 175px; border: 1px solid rgba(114,91,218,.1); border-radius: 50%; box-shadow: 0 0 45px rgba(114,91,218,.06); content: ""; pointer-events: none; }
.integration-card.soon { background: rgba(249,250,247,.68); }
.integration-card-top,.integration-card-footer { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.integration-logo { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid #e3e5df; border-radius: 14px; background: #fff; color: #343734; box-shadow: 0 6px 14px rgba(36,39,34,.05); font-size: 19px; font-weight: 720; }
.integration-logo svg { width: 27px; }
.github-logo svg,.vercel-logo svg { fill: currentColor; }
.gitlab-logo { color: #e16a3b; background: #fff7f2; }
.gitlab-logo svg { fill: none; stroke: currentColor; stroke-linejoin: round; stroke-width: 1.7; }
.drive-logo { color: #408b67; background: #f3faf5; }
.drive-logo svg { fill: none; stroke: currentColor; stroke-linejoin: round; stroke-width: 1.6; }
.notion-logo { color: #333; font-family: Georgia,serif; }
.vercel-logo { color: #393c39; }
.slack-logo { position: relative; grid-template-columns: repeat(2,8px); grid-template-rows: repeat(2,8px); gap: 3px; }
.slack-logo i { width: 8px; height: 8px; border-radius: 3px; }
.slack-logo i:nth-child(1) { background: #36c5f0; }.slack-logo i:nth-child(2) { background: #2eb67d; }.slack-logo i:nth-child(3) { background: #e01e5a; }.slack-logo i:nth-child(4) { background: #ecb22e; }
.integration-state { position: relative; z-index: 1; border-radius: 999px; background: #f0f1ed; color: #7b8078; padding: 6px 9px; font-size: 11px; font-weight: 650; }
.integration-state.connected { display: flex; align-items: center; gap: 6px; background: #e9f6ed; color: #397c55; }
.integration-state.connected i { width: 6px; height: 6px; border-radius: 50%; background: #45a86b; }
.integration-state.soon { background: #f2effb; color: #7866c8; }
.integration-card-copy { position: relative; z-index: 1; display: block; margin: 26px 0 22px; }
.integration-card-copy b,.integration-card-copy small { display: block; }
.integration-card-copy b { color: #30332f; font-size: 19px; font-weight: 650; letter-spacing: -.025em; }
.integration-card-copy small { margin-top: 7px; color: #888d84; font-size: 13px; line-height: 1.45; }
.integration-card-footer { border-top: 1px solid #e8eae5; padding-top: 14px; color: #969b92; font-size: 12px; }
.integration-card-footer i { color: #6552c9; font-style: normal; font-weight: 650; }
.integration-card.soon .integration-card-footer i { color: #969b92; }
.integrations-empty { display: none; margin-top: 15px; border: 1px dashed #d9dBD5; border-radius: 17px; padding: 42px; text-align: center; }
.integrations-empty.show { display: block; }
.integrations-empty span,.integrations-empty small { display: block; }
.integrations-empty span { color: #4d514b; font-size: 15px; font-weight: 650; }
.integrations-empty small { margin-top: 6px; color: #92978e; font-size: 13px; }

.integration-detail-backdrop { position: fixed; z-index: 68; inset: 0; visibility: hidden; background: rgba(26,28,25,.22); opacity: 0; backdrop-filter: blur(3px); transition: opacity .22s ease, visibility .22s ease; }
.integration-detail-backdrop.show { visibility: visible; opacity: 1; }
.integration-detail-drawer { position: fixed; z-index: 69; top: 0; right: 0; display: flex; width: min(760px,calc(100% - 28px)); height: 100vh; flex-direction: column; overflow: hidden; border-left: 1px solid #e2e4df; background: #f7f8f5; box-shadow: -26px 0 65px rgba(25,28,24,.14); transform: translateX(105%); transition: transform .26s cubic-bezier(.22,.75,.25,1); }
.integration-detail-drawer.open { transform: translateX(0); }
body.integration-detail-open { overflow: hidden; }
.integration-detail-header { display: flex; min-height: 82px; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #e3e5df; background: rgba(251,252,249,.9); padding: 0 28px; }
.integration-detail-header h2 { margin: 5px 0 0; font-size: 24px; font-weight: 650; letter-spacing: -.035em; }
.integration-detail-header button { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #dfe1dc; border-radius: 11px; background: #fff; color: #747971; }
.integration-detail-header button:hover { color: #333733; }
.integration-detail-header svg { width: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }
.integration-detail-content { overflow-y: auto; padding: 24px 28px 40px; }
.integration-detail-content .github-connection-card { margin-top: 0; }
.integration-detail-content .connection-card { background: rgba(255,255,255,.88); }

@media (max-width: 980px) {
  .integration-overview { grid-template-columns: repeat(3,1fr); }
  .integration-overview > div { grid-column: 1 / -1; border-top: 1px solid #e8eae5; }
  .integration-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 680px) {
  .integrations-page-heading { align-items: stretch; }
  .integration-health { min-width: 0; }
  .integration-overview { grid-template-columns: repeat(3,1fr); }
  .integration-overview > article { min-height: 100px; padding: 16px 12px; }
  .integration-overview > article > strong { font-size: 24px; }
  .integration-overview > article > small { line-height: 1.35; }
  .integration-overview > div { padding: 18px; }
  .integrations-toolbar { align-items: stretch; flex-direction: column; }
  .integration-search { width: 100%; min-width: 0; }
  .integration-grid { grid-template-columns: 1fr; }
  .integration-card { min-height: 195px; }
  .integration-detail-drawer { width: 100%; }
  .integration-detail-header { min-height: 72px; padding-inline: 18px; }
  .integration-detail-content { padding: 18px 16px 34px; }
}


/* Chat states, model clarity and keyboard-accessible controls */
.conversation-state{display:inline-flex;align-items:center;gap:6px;margin-left:2px;border-radius:999px;padding:5px 8px;font-size:11px;font-weight:680;white-space:nowrap}.conversation-state>i,.chat-state-dot{display:block;width:6px;height:6px;flex:0 0 6px;border-radius:50%}.state-analyzing.conversation-state{background:#f2effd;color:#6251bf}.state-analyzing.conversation-state>i,.chat-state-dot.state-analyzing{background:#7662dc;box-shadow:0 0 0 3px rgba(118,98,220,.11)}.state-executing.conversation-state{background:#eef3fb;color:#46668e}.state-executing.conversation-state>i,.chat-state-dot.state-executing{background:#5980b1}.state-ready.conversation-state{background:#e9f6ed;color:#397c55}.state-ready.conversation-state>i,.chat-state-dot.state-ready{background:#45a86b}.state-error.conversation-state{background:#fff0ed;color:#a44d40}.state-error.conversation-state>i,.chat-state-dot.state-error{background:#cc6454}.chat-state-dot.state-empty{background:#adb1aa}.chat-entry{grid-template-columns:17px minmax(0,1fr) 6px auto}.chat-state-dot{align-self:center}
.choice-cluster{display:grid;gap:4px}.choice-cluster>span{padding-left:4px;color:#92968e;font-size:9px;font-weight:660;letter-spacing:.04em;text-transform:uppercase}.choice-menu button{min-height:30px}.choice-menu button[aria-checked="true"]{background:#fff;color:#262825;font-weight:680;box-shadow:0 1px 3px rgba(25,28,23,.1)}
.message-work>footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;border-top:1px solid #eceee9;padding-top:11px;color:#858981;font-size:11px;line-height:1.4}.message-work.state-error{border-color:#efc9c2;background:#fffafa}.message-work.state-error .message-progress i{background:#c96556}.work-retry{flex:0 0 auto;min-height:31px;border:1px solid #e4b8b0;border-radius:8px;background:#fff;color:#9b4539;padding:6px 9px;font-size:11px;font-weight:650}.work-ready{flex:0 0 auto;color:#397c55;font-weight:680}.state-analyzing .message-progress i{background:linear-gradient(90deg,#7662dc,#a495ef)}.state-ready .message-progress i{background:linear-gradient(90deg,#3e9a67,#70bd8d)}.state-analyzing .work-motion,.state-executing .work-motion{animation:chat-state-pulse 1.4s ease-in-out infinite}@keyframes chat-state-pulse{50%{opacity:.55;transform:scale(.96)}}button:focus-visible,textarea:focus-visible,[role="radio"]:focus-visible{outline:2px solid #6b57d7;outline-offset:2px}
@media(max-width:760px){.agent-page.chat-active .prompt-card{position:relative;bottom:auto}.run-settings{display:grid;grid-template-columns:1fr;gap:8px;overflow:visible}.choice-cluster{width:100%}.choice-menu{display:grid;width:100%;grid-template-columns:repeat(3,minmax(0,1fr))}.choice-menu button{overflow:hidden;padding-inline:5px;text-overflow:ellipsis}.run-settings>.toolbar-divider{display:none}.send-button{position:absolute;right:12px;bottom:12px}.prompt-card{padding-bottom:50px}.prompt-toolbar{padding-bottom:0}.message-work>footer{align-items:flex-start;flex-direction:column}}@media(max-width:520px){.mode-choice{display:grid}.conversation-state{margin-top:4px;margin-left:0}.chat-thread{gap:4px}.chat-message{gap:8px}.user-message .message-column{max-width:calc(100% - 8px)}.assistant-message .message-column{max-width:100%}.message-body>p{padding:11px 12px}.capability-menu{bottom:16px;max-height:calc(100dvh - 32px);overflow-y:auto}}@media(prefers-reduced-motion:reduce){.state-analyzing .work-motion,.state-executing .work-motion{animation:none}}


/* Roblox Workspace · interactive prototype states */
.workspace-demo-label{border:1px solid #ddd7f2!important;background:#f4f1fd!important;color:#6653c7!important;font-size:8px!important;font-weight:720;letter-spacing:.04em;text-transform:uppercase}.studio-state-pill{transition:border-color .18s ease,background .18s ease}.studio-state-pill.state-offline{border-color:#e0e2dd;background:#f3f4f1}.studio-state-pill.state-offline>i{background:#9da19a;box-shadow:none}.studio-state-pill.state-offline b{color:#6e736b}.studio-state-pill.state-connecting{border-color:#e8ddc7;background:#fff9ee}.studio-state-pill.state-connecting>i{background:#d79a32;box-shadow:0 0 0 4px rgba(215,154,50,.1)}.studio-state-pill.state-connecting b{color:#946b28}.studio-state-pill.state-live{border-color:#d5e7da;background:#f1f8f3}.studio-state-pill.state-live>i{background:#42a56a}.studio-state-pill.state-testing{border-color:#dcd6f1;background:#f5f2fd}.studio-state-pill.state-testing>i{background:#705ce0;box-shadow:0 0 0 4px rgba(112,92,224,.1)}.studio-state-pill.state-testing b{color:#5f4fba}.studio-statebar{display:flex;min-height:58px;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid #e0e2dd;background:#fafbf8;padding:8px 25px}.studio-statebar>div:first-child b,.studio-statebar>div:first-child small{display:block}.studio-statebar>div:first-child b{font-size:10px}.studio-statebar>div:first-child small{margin-top:3px;color:#999d96;font-size:8px}.studio-state-options{display:flex;gap:4px;border:1px solid #e1e3de;border-radius:10px;background:#f1f2ee;padding:3px}.studio-state-options button{display:flex;min-height:29px;align-items:center;gap:6px;border:0;border-radius:7px;background:transparent;color:#7b8078;padding:0 9px;font-size:8px}.studio-state-options button i{width:5px;height:5px;border-radius:50%;background:#a5a9a2}.studio-state-options button.selected{background:#fff;color:#343834;font-weight:680;box-shadow:0 1px 4px rgba(28,31,27,.09)}.studio-state-options [data-studio-state="connecting"] i{background:#d79a32}.studio-state-options [data-studio-state="live"] i{background:#43a66b}.studio-state-options [data-studio-state="testing"] i{background:#705ce0}.games-workspace-grid{min-height:calc(100vh - 213px)}.game-mobile-tabs{display:none}
.game-plan-card{margin-left:39px;overflow:hidden;border:1px solid #dedfe9;border-radius:15px;background:#fff}.game-plan-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;border-bottom:1px solid #eceee9;background:#fafbf8;padding:12px 14px}.game-plan-card>header span{color:#7561d6;font-size:8px;font-weight:760;letter-spacing:.08em;text-transform:uppercase}.game-plan-card h2{margin:5px 0 0;font-size:11px;font-weight:650}.game-plan-card>header>b{border-radius:99px;background:#e9f6ed;color:#3d865a;padding:5px 7px;font-size:7px}.game-plan-card.editing>header>b{background:#fff2dd;color:#96651f}.game-plan-card ol{display:grid;margin:0;padding:7px 14px;list-style:none}.game-plan-card li{display:grid;grid-template-columns:23px 1fr;align-items:center;gap:8px;min-height:42px;border-bottom:1px solid #f0f1ed}.game-plan-card li:last-child{border-bottom:0}.game-plan-card li>span{display:grid;width:20px;height:20px;place-items:center;border:1px solid #ddd9ee;border-radius:7px;color:#6956c9;font-size:7px}.game-plan-card li b,.game-plan-card li small{display:block}.game-plan-card li b{font-size:9px}.game-plan-card li small{margin-top:3px;color:#a0a49d;font-size:8px}.game-plan-card>footer{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e9ebe6;background:#fafbf8;padding:9px 14px;color:#8d918a;font-size:8px}.game-plan-card>footer b{color:#6351bf}.game-plan-card>footer button{border:1px solid #dcded9;border-radius:8px;background:#fff;color:#6250bd;padding:7px 9px;font-size:8px;font-weight:650}
.studio-proof-run.state-offline,.studio-proof-run.state-connecting{opacity:.78}.studio-proof-run.state-error{border-color:#edc6bf}.studio-proof-run.state-error>header{background:#fff6f3}.studio-proof-run.state-error>header span,.studio-proof-run.state-error>header em{color:#a64f42}.studio-proof-run.state-error .studio-proof-progress i{background:#ca6555}.studio-proof-run li.error{color:#9a493d}.studio-proof-run li.error>span{border:0;background:#c95e4f;color:#fff;box-shadow:0 0 0 4px rgba(201,94,79,.1)}.studio-proof-run.state-verified{border-color:#c9e0d1}.studio-proof-run.state-verified>header{background:#f3faf5}.studio-proof-run.state-verified>header span,.studio-proof-run.state-verified>header em{color:#3d865a}.studio-proof-run.state-verified .studio-proof-progress i{background:#46a46c}.studio-error-card{display:grid;grid-template-columns:27px 1fr;gap:10px;margin:0 14px 12px;border:1px solid #efcbc4;border-radius:10px;background:#fff7f5;padding:10px}.studio-error-card>span{display:grid;width:24px;height:24px;place-items:center;border-radius:7px;background:#f8dfda;color:#a94c3f;font-size:10px;font-weight:800}.studio-error-card b,.studio-error-card small{display:block}.studio-error-card b{color:#854238;font-size:9px}.studio-error-card small{margin-top:4px;color:#a6756d;font-size:8px;line-height:1.4}.studio-proof-run>footer>div{display:flex;gap:5px}.studio-proof-run>footer .proof-error-button{border:1px solid #e4d6d2;background:#fff;color:#8f5d55}.studio-proof-run>footer button:disabled{cursor:not-allowed;opacity:.55}
.game-run-controls,.game-run-controls label{display:flex;align-items:center;gap:5px}.game-run-controls label{height:30px;border:1px solid #e1e3de;border-radius:8px;background:#f8f9f6;padding:0 6px}.game-run-controls label>span{color:#9a9e97;font-size:7px}.game-run-controls select{border:0;outline:0;background:transparent;color:#555a53;font-size:8px;font-weight:650}.game-quick-tools button.active{background:#f2effc}.game-quick-tools button.active em{color:#4a865e}.studio-state-options button:focus-visible,.game-plan-card button:focus-visible,.game-composer button:focus-visible,.game-composer select:focus-visible,.game-mobile-tabs button:focus-visible{outline:2px solid #705ce0;outline-offset:2px}
@media(max-width:1180px){.game-mobile-tabs{display:flex;gap:4px;border-bottom:1px solid #dfe2dc;background:#f5f6f3;padding:8px 14px}.game-mobile-tabs button{flex:1;min-height:34px;border:0;border-radius:8px;background:transparent;color:#7e837b;font-size:9px;font-weight:650}.game-mobile-tabs button.selected{background:#fff;color:#5546ae;box-shadow:0 1px 4px rgba(27,30,26,.08)}.games-workspace-grid{grid-template-columns:1fr}.games-workspace-grid>[data-workspace-pane]{display:none}.games-workspace-grid>[data-workspace-pane].pane-selected{display:flex}.game-explorer.pane-selected,.game-inspector.pane-selected{min-height:calc(100vh - 305px);flex-direction:column;border:0}.game-inspector.pane-selected{display:block;max-width:620px;width:100%;margin:0 auto}.game-chat.pane-selected{display:flex}}@media(max-width:850px){.studio-statebar{align-items:stretch;flex-direction:column;padding:10px 18px}.studio-state-options{display:grid;grid-template-columns:repeat(4,1fr)}.studio-state-options button{justify-content:center}.games-workspace-grid{min-height:calc(100vh - 310px)}}@media(max-width:650px){.games-workspace-header{align-items:flex-start;flex-direction:column;gap:9px}.studio-session{width:100%;justify-content:space-between}.workspace-demo-label{display:flex!important}.studio-session .studio-state-pill{display:flex}.studio-session>button{margin-left:auto}.game-plan-card{margin-left:0}.game-composer>div{align-items:flex-end}.game-run-controls{display:grid!important;grid-template-columns:1fr 1fr 32px}.game-run-controls label{display:grid;height:auto;gap:2px;padding:5px 7px}.game-run-controls select{width:100%}.studio-proof-run>footer>div{width:100%}.studio-proof-run>footer button{flex:1}.game-chat-thread{padding-bottom:14px}}@media(max-width:430px){.studio-state-options{grid-template-columns:1fr 1fr}.studio-state-options button{min-height:32px}.game-plan-card>header,.game-plan-card>footer{align-items:flex-start;flex-direction:column}.studio-proof-run>footer>div{flex-direction:column}.game-user-message>div,.game-agent-message>div{max-width:96%}.game-composer{position:sticky;bottom:8px;z-index:3}}

/* AI Agent Games · final product audit */
.games-product-label{text-decoration:none}.games-product-label:focus-visible{border-radius:6px;outline:2px solid #70756d;outline-offset:4px}.workspace-demo-label{font-size:10px!important;letter-spacing:.055em}.studio-statebar>div:first-child b{font-size:12px}.studio-statebar>div:first-child small{font-size:11px;line-height:1.4}.studio-state-options button{min-height:36px;padding-inline:11px;font-size:11px}.game-chat-actions{align-items:center}.game-chat-actions>span,.game-panel-title>em{border-radius:999px;background:#eceee9;color:#767b73;padding:6px 8px;font-size:10px;font-style:normal;font-weight:650;letter-spacing:0;text-transform:none}.game-plan-note{display:inline-flex;margin-top:8px;border-radius:999px;background:#f1eff9;color:#6251b8;padding:6px 9px;font-size:10px;font-weight:650}.game-plan-card h2{font-size:13px;line-height:1.35}.game-plan-card>header span{font-size:10px}.game-plan-card>header>b{font-size:10px}.game-plan-card li b{font-size:12px}.game-plan-card li small{font-size:10px;line-height:1.45}.game-plan-card>footer,.game-plan-card>footer button{font-size:10px}.game-composer .game-composer-tools button:disabled{cursor:not-allowed;opacity:.42}.game-composer .game-composer-tools button:disabled:hover{background:transparent;color:#6d716a}.changed-instances>p{margin:9px 0 0;color:#8d9289;font-size:10px;line-height:1.4}.proof-evidence header b{max-width:170px;justify-content:flex-end;text-align:right;font-size:9px;line-height:1.25}.proof-evidence>p{font-size:10px}.game-panel-title{font-size:11px}.roblox-detail-drawer{height:100dvh}.roblox-connect-hero>div>span{font-size:10px}.roblox-connect-hero p{font-size:13px}.roblox-connect-flow article b{font-size:13px}.roblox-connect-flow article small{font-size:11px;line-height:1.4}.roblox-connect-flow button{min-height:38px;font-size:11px}.roblox-connect-flow em{font-size:10px;line-height:1.35;text-align:right}.roblox-plugin-note{margin-top:10px;border:1px solid #dfdbef;border-radius:13px;background:#f7f5fd;padding:13px 15px}.roblox-plugin-note b{color:#4f438c;font-size:12px}.roblox-plugin-note p{margin:5px 0 0;color:#777286;font-size:11px;line-height:1.5}.roblox-permissions b{font-size:12px}.roblox-permissions small{font-size:10px;line-height:1.4}.roblox-permissions>header>span{font-size:10px}.roblox-session-preview>header span{font-size:12px}.roblox-session-preview>header b{font-size:10px}.roblox-session-preview>div span{font-size:10px}.roblox-session-preview p{font-size:11px;line-height:1.5}.roblox-demo-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:14px;border-top:1px solid #dde0da;padding:14px 2px 0}.roblox-demo-footer>span{color:#777c74;font-size:11px}.roblox-demo-footer>button{min-height:40px;border:0;border-radius:10px;background:#292c29;color:#fff;padding:0 13px;font-size:11px;font-weight:650}.roblox-demo-footer>button:focus-visible,.roblox-connect-flow button:focus-visible{outline:2px solid #70756d;outline-offset:2px}
@media(max-width:1180px){.game-mobile-tabs button{min-height:44px;font-size:12px}.game-explorer.pane-selected,.game-inspector.pane-selected{min-height:calc(100dvh - 305px)}}
@media(max-width:650px){.studio-statebar{padding:12px 14px}.studio-state-options button{min-height:42px}.studio-session{align-items:stretch;flex-wrap:wrap}.studio-session>button{min-height:42px}.game-plan-card>header,.game-plan-card>footer{padding:13px}.roblox-demo-footer{align-items:stretch;flex-direction:column}.roblox-demo-footer>button{width:100%}.roblox-session-preview>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}.roblox-session-preview>div>b{display:none}.roblox-session-preview>div span{min-height:34px}.proof-evidence header{align-items:flex-start;gap:10px}.proof-evidence header b{max-width:190px}}

