:root {
  color-scheme: dark;
  --bg: #050505;
  --surface: #0b0b0c;
  --surface-raised: #151516;
  --surface-soft: #101011;
  --line: #29292b;
  --line-strong: #414145;
  --text: #f7f7f7;
  --text-soft: #d0d0d2;
  --muted: #8f8f94;
  --muted-strong: #b1b1b5;
  --brand: #f4f4f4;
  --brand-strong: #d5d5d7;
  --brand-ink: #080808;
  --amber: #d8c59e;
  --blue: #c8c8cc;
  --red: #ff8493;
  --green: #aee6c1;
  --focus: #ffffff;
  --sidebar-width: 276px;
  --radius-sm: 9px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { min-height: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% -25%, rgba(255, 255, 255, .07), transparent 36%),
    var(--bg);
  color: var(--text);
  font: 400 15px/1.5 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

button, textarea, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }

button:focus-visible,
a:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

.app-shell { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100vh; }

.auth-gate {
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 42px;
  padding: 34px clamp(22px, 6vw, 94px) 50px;
  overflow-y: auto;
  background:
    linear-gradient(120deg, rgba(101,230,209,.055), transparent 43%),
    radial-gradient(circle at 82% 23%, rgba(130,173,255,.08), transparent 32%);
}
.auth-brand { position: absolute; top: 28px; left: clamp(22px, 6vw, 94px); display: flex; align-items: center; gap: 12px; font-size: 21px; letter-spacing: -.7px; }
.auth-layout { width: min(1120px, 100%); display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(390px, .72fr); align-items: center; gap: clamp(44px, 8vw, 110px); margin: 36px auto 0; }
.auth-copy h1 { margin: 20px 0 17px; font-size: clamp(40px, 5.8vw, 76px); line-height: .99; letter-spacing: clamp(-3.8px, -.06em, -1.8px); }
.auth-copy h1 em { color: var(--brand); font-style: normal; }
.auth-copy > p { max-width: 620px; margin: 0; color: var(--text-soft); font-size: clamp(15px, 1.5vw, 19px); line-height: 1.75; }
.auth-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin-top: 30px; color: var(--muted); font: 700 10px var(--font-mono); letter-spacing: .5px; text-transform: uppercase; }
.auth-flow span { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: rgba(255,255,255,.02); }
.auth-flow i { color: var(--brand); font-style: normal; }
.login-card { border: 1px solid #2d3743; border-radius: 24px; padding: clamp(23px, 3.6vw, 38px); background: rgba(14,18,24,.88); box-shadow: 0 35px 100px rgba(0,0,0,.33); backdrop-filter: blur(18px); }
.login-icon { width: 50px; height: 50px; display: block; object-fit: cover; margin-bottom: 19px; border: 1px solid #303a46; border-radius: 15px; background: #000; box-shadow: 0 12px 34px rgba(0,0,0,.35); }
.login-card h2 { margin: 6px 0 8px; font-size: 25px; line-height: 1.16; letter-spacing: -.8px; }
.login-card > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.roblox-login-button { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 21px 0 18px; border: 1px solid var(--brand); border-radius: 12px; padding: 0 17px; background: var(--brand); color: var(--brand-ink); font-weight: 900; text-decoration: none; }
.roblox-login-button:hover { background: #83efdd; }
.auth-error { margin: -8px 0 17px; border: 1px solid rgba(255,132,147,.28); border-radius: 9px; padding: 9px 10px; background: rgba(255,132,147,.06); color: #ffbac4; font-size: 11px; }
.permission-heading { display: flex; justify-content: space-between; gap: 16px; margin: 20px 0 8px; color: var(--muted-strong); font-size: 10px; }
.permission-heading span { color: var(--green); font: 700 9px var(--font-mono); text-transform: uppercase; }
.permission-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.permission-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: rgba(255,255,255,.018); }
.permission-check { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: rgba(107,227,166,.09); color: var(--green); font-weight: 900; }
.permission-list div { display: grid; gap: 1px; }
.permission-list strong { font-size: 10px; }
.permission-list small { color: var(--muted); font-size: 9px; }
.permission-list b { color: var(--green); font: 700 8px var(--font-mono); text-transform: uppercase; }
.login-card .auth-promise { display: flex; gap: 8px; margin-top: 13px; color: #9eabb8; font-size: 9px; }
.auth-promise span { color: var(--brand); }
.login-card .legal-copy { margin-top: 16px; color: #66717e; font-size: 9px; text-align: center; }
.legal-copy a { color: #a7b4c1; }

.account-button { min-height: 42px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 11px; padding: 4px 9px 4px 5px; background: var(--surface-soft); text-align: left; cursor: default; }
.account-avatar { width: 31px; height: 31px; display: grid; place-items: center; overflow: hidden; border-radius: 9px; background: #26313c center/cover; color: var(--brand); font-weight: 850; }
.account-button > span:last-child { display: grid; line-height: 1.18; }
.account-button strong { max-width: 110px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.account-button small { color: var(--muted); font-size: 8px; }
.logout-button { min-height: 40px; border: 0; background: transparent; color: var(--muted); font-size: 10px; cursor: pointer; }
.logout-button:hover { color: var(--text); }
.delete-account-button { margin: 8px 7px 0; border: 0; background: transparent; color: #6e7884; font-size: 9px; text-align: left; text-decoration: underline; cursor: pointer; }
.delete-account-button:hover { color: var(--red); }

.legal-page { overflow: auto; background: var(--bg); }
.legal-page main { width: min(760px, calc(100% - 36px)); margin: 0 auto; padding: 50px 0 80px; }
.legal-brand { display: inline-flex; align-items: center; gap: 11px; margin-bottom: 70px; font-size: 19px; font-weight: 900; text-decoration: none; }
.legal-page h1 { max-width: 700px; margin: 10px 0 12px; font-size: clamp(34px, 6vw, 60px); line-height: 1.04; letter-spacing: -2.4px; }
.legal-page h2 { margin: 38px 0 8px; font-size: 18px; }
.legal-page p { color: var(--text-soft); line-height: 1.8; }
.legal-page code { color: var(--brand); }
.legal-page p a { color: var(--brand); }

.sidebar {
  z-index: 20;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px 16px 16px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: rgba(11, 14, 19, .96);
}

.sidebar-top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 5px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark, .rovex-avatar {
  display: block;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid #303944;
  background: #000;
  box-shadow: 0 7px 24px rgba(0,0,0,.28);
}
.brand-mark { width: 38px; height: 38px; border-radius: 11px; }
.brand-copy { display: grid; gap: 0; }
.brand-copy strong { font-size: 19px; letter-spacing: -.6px; }
.brand-copy small { color: var(--muted); font-size: 10px; letter-spacing: .25px; }

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  cursor: pointer;
}
.icon-button:hover { border-color: var(--line-strong); background: var(--surface-raised); }
.mobile-close, .mobile-menu { display: none; }

.new-chat-button {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 27px 0 14px;
  padding: 0 12px;
  border: 1px solid #2f3946;
  border-radius: 11px;
  background: #171d25;
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.new-chat-button:hover { border-color: rgba(101,230,209,.45); background: #192129; }
.new-chat-button > span { color: var(--brand); font-size: 19px; }
.new-chat-button kbd { margin-left: auto; }

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  min-height: 20px;
  padding: 0 5px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #10151b;
  color: var(--muted);
  font: 500 10px var(--font-mono);
}

.primary-nav { display: grid; gap: 4px; }
.nav-item {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 9px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted-strong);
  font-weight: 650;
  font-size: 13px;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}
.nav-item > span { width: 20px; color: var(--muted); font-size: 17px; text-align: center; }
.nav-item:hover { background: rgba(255,255,255,.04); color: var(--text); }
.nav-item.active { background: rgba(101,230,209,.09); color: #d9fff8; }
.nav-item.active > span { color: var(--brand); }
.nav-credits { min-height: 54px; margin-top: 6px; border: 1px solid #3a3a3e; background: linear-gradient(120deg, rgba(255,255,255,.085), rgba(255,255,255,.025)); color: #f1f1f2; }
.nav-credits:hover, .nav-credits:focus-visible { border-color: #626268; background: linear-gradient(120deg, rgba(255,255,255,.12), rgba(255,255,255,.045)); }
.nav-item > .nav-credits-icon { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; background: #f1f1f2; color: #09090a; font-size: 10px; font-weight: 950; }
.nav-item > .nav-credits-copy { width: auto; min-width: 0; flex: 1; display: grid; gap: 2px; text-align: left; }
.nav-credits-copy strong { overflow: hidden; color: #f1f1f2; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.nav-credits-copy small { color: #8d8d92; font-size: 8px; font-weight: 600; }
.nav-credits-copy b { color: #d9d9dc; }
.nav-item > .nav-credits-arrow { width: 22px; height: 22px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.09); color: #e9e9ea; font-size: 13px; }

.recent-section { min-height: 100px; margin-top: 27px; }
.sidebar-label-row { display: flex; align-items: center; justify-content: space-between; padding: 0 10px 9px; }
.sidebar-label-row h2 { margin: 0; color: var(--muted); font-size: 10px; letter-spacing: .8px; text-transform: uppercase; }
.sidebar-label-row span { color: #687482; font-size: 9px; }
.recent-list { display: grid; gap: 3px; }
.empty-recent { margin: 0; padding: 8px 10px; color: #6e7885; font-size: 11px; line-height: 1.55; }
.recent-entry { position: relative; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 30px; align-items: center; border-radius: 8px; }
.recent-entry:hover, .recent-entry:focus-within { background: rgba(255,255,255,.035); }
.recent-item {
  width: 100%;
  min-height: 38px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  padding: 7px 10px;
  background: transparent;
  color: #8793a1;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}
.recent-item:hover { background: rgba(255,255,255,.035); color: var(--text-soft); }
.recent-item.active { background: rgba(101,230,209,.075); color: #d9fff8; }
.recent-item strong, .recent-item span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-item strong { font-size: 11px; font-weight: 650; }
.recent-item span { margin-top: 2px; color: #667481; font-size: 8px; }
.recent-item.active span { color: #82a9a3; }
.conversation-menu-button { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 7px; padding: 0 0 5px; background: transparent; color: #85858b; font-size: 13px; font-weight: 900; letter-spacing: -1px; opacity: 0; cursor: pointer; }
.recent-entry:hover .conversation-menu-button, .recent-entry:focus-within .conversation-menu-button, .recent-item.active + .conversation-menu-button { opacity: 1; }
.conversation-menu-button:hover, .conversation-menu-button[aria-expanded="true"] { background: rgba(255,255,255,.09); color: #fff; }
.conversation-menu { position: absolute; z-index: 40; top: calc(100% - 2px); right: 0; width: 190px; display: grid; gap: 2px; border: 1px solid #38383b; border-radius: 11px; padding: 5px; background: rgba(12,12,13,.98); box-shadow: 0 18px 48px rgba(0,0,0,.55); backdrop-filter: blur(16px); animation: account-menu-in .15s ease-out; }
.conversation-menu > button { width: 100%; min-height: 38px; display: flex; align-items: center; gap: 9px; border: 0; border-radius: 7px; padding: 0 9px; background: transparent; color: #b8b8bc; font-size: 10px; text-align: left; cursor: pointer; }
.conversation-menu > button span { width: 17px; color: #85858a; font-size: 14px; text-align: center; }
.conversation-menu > button:hover, .conversation-menu > button:focus-visible { background: rgba(255,255,255,.075); color: #fff; }
.conversation-menu > .delete-conversation-option:hover, .conversation-menu > .delete-conversation-option:focus-visible { background: rgba(255,132,147,.09); color: #ffadb8; }

.studio-card {
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #131922, #0e1319);
}
.studio-card-header { display: flex; align-items: center; gap: 10px; }
.studio-logo {
  width: 35px;
  height: 35px;
  display: block;
  object-fit: cover;
  border: 1px solid #303944;
  border-radius: 8px;
  background: #000;
}
.studio-card h2 { margin: 0; font-size: 12px; }
.studio-card p { max-width: 160px; margin: 2px 0 0; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.connection-state { display: flex; align-items: center; gap: 8px; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted-strong); font-size: 10px; }
.status-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #69727e; }
.status-dot.online { background: var(--green); box-shadow: 0 0 0 3px rgba(107,227,166,.11), 0 0 12px rgba(107,227,166,.3); }
.status-dot.offline { background: var(--amber); }
.status-dot.searching { background: var(--blue); animation: pulse 1.25s ease-in-out infinite; }
.studio-action {
  width: 100%;
  min-height: 38px;
  margin-top: 12px;
  border: 1px solid #33404c;
  border-radius: 8px;
  background: #171e26;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.studio-action:hover { border-color: rgba(101,230,209,.45); color: var(--text); }

.security-card { width: 100%; display: flex; align-items: center; gap: 9px; margin-top: 10px; border: 0; border-radius: 10px; padding: 11px 10px; background: transparent; text-align: left; cursor: pointer; }
.security-card:hover { background: rgba(255,255,255,.035); }
.security-icon { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(107,227,166,.11); color: var(--green); font-size: 11px; font-weight: 900; }
.security-card div { display: grid; }
.security-card strong { color: #acb7c3; font-size: 10px; }
.security-card div span { color: #66717e; font-size: 9px; }

.workspace { height: 100vh; min-width: 0; display: flex; flex-direction: column; }
.workspace-view { min-height: 0; flex: 1; }
.agent-view { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.topbar { position: relative; z-index: 10; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; overflow: visible; padding: 0 28px; border-bottom: 1px solid var(--line); background: rgba(8,11,16,.78); backdrop-filter: blur(16px); }
.topbar-leading { min-width: 0; display: flex; align-items: center; gap: 12px; }
.eyebrow { color: #71808d; font: 600 9px var(--font-mono); letter-spacing: 1.1px; }
.project-line { min-width: 0; display: flex; align-items: center; gap: 10px; margin-top: 3px; }
.project-line h1 { max-width: min(45vw, 480px); margin: 0; overflow: hidden; font-size: 14px; letter-spacing: -.2px; text-overflow: ellipsis; white-space: nowrap; }
.mode-label { flex: 0 0 auto; border: 1px solid #33404b; border-radius: 999px; padding: 3px 7px; color: #9ba8b5; font-size: 9px; }
.mode-label.connected { border-color: rgba(107,227,166,.25); background: rgba(107,227,166,.07); color: #a9efca; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.backend-status { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.credits-button { min-height: 42px; display: flex; align-items: center; gap: 9px; border: 1px solid #4b4b50; border-radius: 11px; padding: 5px 6px 5px 7px; background: linear-gradient(120deg, rgba(255,255,255,.09), rgba(255,255,255,.035)); color: #eeeef0; cursor: pointer; }
.credits-button:hover, .credits-button:focus-visible { border-color: #77777d; background: linear-gradient(120deg, rgba(255,255,255,.13), rgba(255,255,255,.06)); }
.credits-symbol { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: #f1f1f2; color: #09090a; font-size: 11px; font-weight: 950; }
.credits-button-copy { display: grid; gap: 1px; text-align: left; line-height: 1.05; }
.credits-button-copy strong { font-size: 10px; white-space: nowrap; }
.credits-button-copy strong b { font-size: 12px; }
.credits-button-copy small { color: #929297; font: 650 7px var(--font-mono); letter-spacing: .4px; text-transform: uppercase; }
.credits-buy-label { min-height: 30px; display: inline-flex; align-items: center; gap: 5px; border-radius: 8px; padding: 0 8px; background: #efeff0; color: #09090a; font-size: 9px; font-weight: 850; }
.credits-buy-label b { font-size: 13px; }
.credits-mobile-label { display: none; }

.secondary-button, .primary-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9px;
  padding: 0 14px;
  font-weight: 750;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}
.secondary-button { border: 1px solid var(--line-strong); background: #151b23; color: var(--text-soft); }
.secondary-button:hover { border-color: #4b5969; background: #19212a; color: var(--text); }
.primary-button { border: 1px solid var(--brand); background: var(--brand); color: var(--brand-ink); }
.primary-button:hover { border-color: #8df1e1; background: #78ead8; }

.connection-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 14px 28px 0;
  padding: 11px 12px;
  border: 1px solid rgba(130,173,255,.2);
  border-radius: 11px;
  background: rgba(130,173,255,.055);
}
.connection-banner.connected { border-color: rgba(107,227,166,.2); background: rgba(107,227,166,.055); }
.banner-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; background: rgba(130,173,255,.1); color: var(--blue); font-weight: 800; }
.connection-banner.connected .banner-icon { background: rgba(107,227,166,.1); color: var(--green); }
.connection-banner div:nth-child(2) { display: grid; gap: 1px; }
.connection-banner strong { font-size: 11px; }
.connection-banner span { color: var(--muted); font-size: 10px; }
.connection-banner button { min-height: 36px; border: 0; border-radius: 8px; padding: 0 11px; background: transparent; color: #a9c4f8; font-size: 10px; font-weight: 750; cursor: pointer; }
.connection-banner button:hover { background: rgba(130,173,255,.09); color: #d7e4ff; }
.connection-banner.connected button { display: none; }

.chat { min-height: 0; overflow-y: auto; padding: 35px max(24px, calc((100% - 860px) / 2)) 28px; scroll-behavior: smooth; }
.welcome { max-width: 820px; margin: clamp(14px, 4vh, 46px) auto 0; text-align: center; }
.welcome[hidden] { display: none; }
.welcome-mark { position: relative; width: 70px; height: 70px; display: grid; place-items: center; margin: 0 auto 17px; }
.welcome-mark > img { position: relative; z-index: 2; width: 50px; height: 50px; display: block; object-fit: cover; border: 1px solid #303944; border-radius: 15px; background: #000; box-shadow: 0 0 0 7px rgba(255,255,255,.035), 0 18px 45px rgba(0,0,0,.32); }
.welcome-mark i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--brand); opacity: .55; }
.welcome-mark i:nth-child(2) { top: 2px; right: 7px; }
.welcome-mark i:nth-child(3) { left: 2px; bottom: 14px; width: 3px; height: 3px; }
.welcome-mark i:nth-child(4) { right: 0; bottom: 4px; width: 2px; height: 2px; }
.availability-pill { width: fit-content; display: flex; align-items: center; gap: 7px; margin: 0 auto 12px; border: 1px solid rgba(107,227,166,.17); border-radius: 999px; padding: 5px 9px; background: rgba(107,227,166,.05); color: #a6dfc1; font-size: 9px; font-weight: 700; }
.availability-pill > span { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.welcome h2 { margin: 0; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.08; letter-spacing: -2.2px; }
.welcome > p { max-width: 630px; margin: 14px auto 0; color: var(--muted-strong); font-size: 14px; line-height: 1.72; }

.prompt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 740px; margin: 30px auto 0; }
.prompt-grid button { min-height: 76px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 13px; padding: 12px 13px; background: rgba(16,21,28,.78); color: var(--text); text-align: left; cursor: pointer; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.prompt-grid button:hover { transform: translateY(-2px); border-color: #3a4755; background: #141a22; }
.prompt-grid button:active { transform: translateY(0); }
.prompt-grid button > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.prompt-grid strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.prompt-grid small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.prompt-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; font-size: 14px; }
.prompt-icon.pets { background: rgba(255,189,117,.10); color: var(--amber); }
.prompt-icon.coins { background: rgba(255,224,117,.10); color: #ffe075; }
.prompt-icon.part { background: rgba(101,230,209,.10); color: var(--brand); }
.prompt-icon.ui { background: rgba(130,173,255,.10); color: var(--blue); }
.arrow { color: #66727f; }
.prompt-grid button:hover .arrow { color: var(--brand); }

.how-it-works { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 25px auto 0; color: #6f7a87; font-size: 9px; }
.how-it-works span { display: inline-flex; align-items: center; gap: 5px; }
.how-it-works b { width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid #303a46; border-radius: 50%; color: #9aa6b3; font: 600 8px var(--font-mono); }
.how-it-works i { width: 20px; height: 1px; background: #29313b; }

.timeline { max-width: 820px; display: grid; gap: 28px; margin: 0 auto; }
.message { max-width: 100%; }
.message-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.message-meta strong { font-size: 11px; }
.message-meta time { color: #66717d; font: 500 9px var(--font-mono); }
.user-avatar, .rovex-avatar { width: 27px; height: 27px; border-radius: 8px; font-size: 11px; }
.user-avatar { display: grid; place-items: center; background: #252e3a; color: var(--text-soft); font-weight: 800; }
.user-message { max-width: 690px; justify-self: end; }
.user-message .message-meta { justify-content: flex-end; }
.user-message p { margin: 0; border: 1px solid #303947; border-radius: 15px 5px 15px 15px; padding: 13px 15px; background: #18202a; color: #e3e9ef; font-size: 13px; line-height: 1.65; }

.assistant-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; background: rgba(15,20,27,.88); box-shadow: 0 18px 55px rgba(0,0,0,.14); }
.assistant-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.assistant-heading > div { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.assistant-heading h3 { margin: 0; font-size: 16px; letter-spacing: -.35px; }
.fit-badge { border-radius: 999px; padding: 4px 7px; font: 700 8px var(--font-mono); letter-spacing: .4px; }
.fit-badge.ready { background: rgba(107,227,166,.1); color: #9beabd; }
.fit-badge.partial { background: rgba(130,173,255,.1); color: #a9c7ff; }
.fit-badge.future { background: rgba(255,189,117,.1); color: #ffd09d; }
.assistant-answer { margin: 13px 0 0; color: var(--text-soft); font-size: 13px; line-height: 1.72; }
.plan-list { display: grid; gap: 0; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: plan; border: 1px solid #222b35; border-radius: 12px; overflow: hidden; }
.plan-list li { counter-increment: plan; display: grid; grid-template-columns: 29px minmax(0, 1fr); gap: 10px; padding: 11px 12px; border-bottom: 1px solid #222b35; }
.plan-list li:last-child { border-bottom: 0; }
.plan-list li::before { content: counter(plan); width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #34404c; border-radius: 7px; color: var(--brand); font: 700 9px var(--font-mono); }
.plan-list div { display: grid; gap: 2px; }
.plan-list strong { font-size: 11px; }
.plan-list span { color: var(--muted); font-size: 10px; line-height: 1.55; }
.execution-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 13px; border-radius: 10px; padding: 10px 11px; background: rgba(255,255,255,.025); color: var(--muted); }
.execution-note > span { color: var(--brand); }
.execution-note p { margin: 0; font-size: 10px; line-height: 1.55; }
.inline-connect-button { min-height: 40px; margin-top: 13px; border: 1px solid rgba(101,230,209,.3); border-radius: 9px; padding: 0 12px; background: rgba(101,230,209,.07); color: #b6f3e9; font-size: 11px; font-weight: 750; cursor: pointer; }
.inline-connect-button:hover { background: rgba(101,230,209,.12); }

.questionnaire-card { overflow: hidden; border: 1px solid #343d48; border-radius: 16px; padding: 19px; background: linear-gradient(145deg, rgba(25,31,39,.98), rgba(12,16,22,.98)); box-shadow: 0 22px 65px rgba(0,0,0,.24); }
.questionnaire-eyebrow { color: var(--brand); font: 750 8px var(--font-mono); letter-spacing: .9px; }
.questionnaire-card > h3 { margin: 8px 0 6px; font-size: 18px; letter-spacing: -.4px; }
.questionnaire-intro { max-width: 680px; margin: 0 0 18px; color: var(--muted-strong); font-size: 11px; line-height: 1.65; }
.questionnaire-fieldset { min-width: 0; margin: 0; border: 0; border-top: 1px solid #29313a; padding: 15px 0; }
.questionnaire-fieldset legend { width: 100%; padding: 0 0 10px; color: #e1e7ed; font-size: 11px; font-weight: 750; }
.questionnaire-options { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.questionnaire-option { position: relative; min-width: 0; display: block; cursor: pointer; }
.questionnaire-option input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.questionnaire-option > span { min-height: 76px; display: grid; align-content: start; gap: 5px; border: 1px solid #303945; border-radius: 11px; padding: 11px; background: rgba(255,255,255,.02); transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.questionnaire-option:hover > span { border-color: #52606e; transform: translateY(-1px); }
.questionnaire-option input:checked + span { border-color: rgba(101,230,209,.58); background: rgba(101,230,209,.075); box-shadow: inset 0 0 0 1px rgba(101,230,209,.11); }
.questionnaire-option input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.questionnaire-option strong { color: #edf2f6; font-size: 10px; }
.questionnaire-option small { color: #7f8b97; font-size: 9px; line-height: 1.45; }
.questionnaire-submit { width: 100%; min-height: 43px; margin-top: 4px; justify-content: center; }

.run-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.run-card > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.run-card > header > div { display: flex; align-items: center; gap: 9px; }
.run-card header strong { font-size: 11px; }
.run-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(101,230,209,.08); animation: pulse 1.2s ease-in-out infinite; }
.run-state { border-radius: 999px; padding: 4px 7px; background: rgba(130,173,255,.09); color: #a9c4f7; font: 700 8px var(--font-mono); }
.run-card.complete .run-pulse { animation: none; background: var(--green); }
.run-card.complete .run-state { background: rgba(107,227,166,.09); color: #a4ecc5; }
.run-card.partial .run-pulse { animation: none; background: #e0b968; }
.run-card.partial .run-state { background: rgba(224,185,104,.09); color: #e8c985; }
.run-card.failed .run-pulse { animation: none; background: var(--red); }
.run-card.failed .run-state { background: rgba(255,132,147,.09); color: #ffadb8; }
.progress-list { padding: 7px 15px 10px; }
.progress-item { min-height: 37px; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 9px; border-bottom: 1px solid rgba(255,255,255,.045); color: var(--muted-strong); font-size: 11px; }
.progress-item:last-child { border-bottom: 0; }
.progress-icon { text-align: center; color: #6e7884; font: 700 10px var(--font-mono); }
.progress-item.success .progress-icon { color: var(--green); }
.progress-item.warning { color: #e8c985; }
.progress-item.warning .progress-icon { color: #e0b968; }
.progress-item.error { color: #ffacb7; }
.progress-item.error .progress-icon { color: var(--red); }
.progress-item.working .progress-icon { width: 12px; height: 12px; border: 2px solid #3c4653; border-top-color: var(--brand); border-radius: 50%; animation: spin .75s linear infinite; font-size: 0; }
.progress-time { color: #5f6975; font: 500 8px var(--font-mono); }

.composer-area { width: min(880px, calc(100% - 48px)); margin: 0 auto; padding: 0 0 17px; }
.composer { border: 1px solid var(--line-strong); border-radius: 16px; padding: 12px 12px 10px 15px; background: rgba(18,24,32,.96); box-shadow: 0 16px 55px rgba(0,0,0,.28); transition: border-color .16s ease, box-shadow .16s ease; }
.composer:focus-within { border-color: rgba(101,230,209,.62); box-shadow: 0 16px 55px rgba(0,0,0,.3), 0 0 0 3px rgba(101,230,209,.07); }
.composer > label { display: block; margin: 0 0 5px 2px; color: #798694; font-size: 9px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.composer textarea { width: 100%; max-height: 150px; display: block; resize: none; border: 0; outline: 0; padding: 2px 2px 11px; background: transparent; color: var(--text); font-size: 13px; line-height: 1.58; }
.composer textarea::placeholder { color: #6f7b88; opacity: 1; }
.composer textarea:disabled { opacity: .62; cursor: wait; }
.composer-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.composer-context { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: #778391; font-size: 9px; }
.safe-badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 6px; padding: 5px 7px; background: rgba(107,227,166,.06); color: #97d9b6; }
.send-button { min-width: 94px; min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--brand); border-radius: 10px; padding: 0 13px; background: var(--brand); color: var(--brand-ink); font-size: 11px; font-weight: 850; cursor: pointer; }
.send-button:hover { background: #7cebd9; }
.send-button:disabled { border-color: #34404b; background: #252e38; color: #74808c; cursor: wait; }
.send-button span:last-child { font-size: 17px; line-height: 1; }
.composer-help { margin: 8px 0 0; color: #626d79; font-size: 9px; text-align: center; }
.composer-help kbd { min-width: 0; min-height: 0; border: 0; background: transparent; padding: 0; color: #7d8995; }

.setup-dialog { width: min(760px, calc(100% - 30px)); max-height: min(900px, calc(100vh - 30px)); overflow: hidden; border: 1px solid #303a46; border-radius: 20px; padding: 0; background: #0e1319; color: var(--text); box-shadow: 0 32px 100px rgba(0,0,0,.55); }
.setup-dialog::backdrop { background: rgba(3,5,8,.76); backdrop-filter: blur(8px); }
.dialog-shell { max-height: calc(100vh - 32px); overflow-y: auto; }
.dialog-header { position: sticky; z-index: 2; top: 0; display: flex; justify-content: space-between; gap: 20px; padding: 21px 23px 17px; border-bottom: 1px solid var(--line); background: rgba(14,19,25,.96); backdrop-filter: blur(14px); }
.dialog-header h2 { margin: 5px 0 0; font-size: 22px; letter-spacing: -.7px; }
.dialog-header p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.dialog-close { flex: 0 0 auto; }
.setup-status { display: flex; align-items: center; gap: 11px; margin: 17px 23px 0; border: 1px solid rgba(107,227,166,.17); border-radius: 11px; padding: 11px 12px; background: rgba(107,227,166,.05); }
.setup-status.error { border-color: rgba(255,132,147,.2); background: rgba(255,132,147,.05); }
.setup-status > div { display: grid; }
.setup-status strong { font-size: 11px; }
.setup-status span:not(.status-dot) { color: var(--muted); font-size: 10px; }
.setup-steps { display: grid; gap: 0; margin: 5px 23px 0; padding: 0; list-style: none; counter-reset: none; }
.setup-steps > li { display: grid; grid-template-columns: 35px minmax(0, 1fr); gap: 13px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.step-number { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #384552; border-radius: 9px; color: var(--brand); font: 750 11px var(--font-mono); }
.step-content h3 { margin: 2px 0 0; font-size: 13px; }
.step-content > p { margin: 6px 0 0; color: var(--muted-strong); font-size: 11px; line-height: 1.65; }
.step-content strong { color: var(--text-soft); }
.step-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.connection-values { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; margin-top: 11px; }
.connection-values > div { min-width: 0; display: grid; gap: 3px; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; background: #11171e; }
.connection-values > div span { color: #6f7b87; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.connection-values code { overflow-x: auto; color: #b7c3cf; font: 500 10px var(--font-mono); white-space: nowrap; }
.connection-values button { min-width: 62px; border: 1px solid #34404c; border-radius: 8px; background: #171e26; color: #abb6c1; font-size: 10px; font-weight: 700; cursor: pointer; }
.connection-values button:hover { border-color: rgba(101,230,209,.45); color: var(--text); }
.verified-value { min-width: 62px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: rgba(255,255,255,.045); color: var(--green); font-weight: 900; }
.permission-note { display: flex; gap: 7px; }
.permission-note > span { width: 17px; height: 17px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #37434f; border-radius: 50%; color: var(--blue); font: 700 9px var(--font-mono); }
.dialog-footer { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 9px; padding: 14px 23px; border-top: 1px solid var(--line); background: rgba(14,19,25,.97); backdrop-filter: blur(14px); }

.info-view {
  overflow-y: auto;
  padding: 48px max(24px, calc((100% - 1020px) / 2)) 76px;
  scroll-behavior: smooth;
}
.info-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid #2d3844;
  border-radius: 24px;
  padding: clamp(26px, 5vw, 52px);
  background:
    radial-gradient(circle at 92% 10%, rgba(101,230,209,.15), transparent 34%),
    linear-gradient(145deg, #131a22, #0d1218);
}
.info-hero::after { content: "R"; position: absolute; right: 6%; bottom: -46px; color: rgba(101,230,209,.045); font-size: 220px; font-weight: 950; line-height: 1; transform: rotate(-8deg); pointer-events: none; }
.info-hero h2 { position: relative; z-index: 1; max-width: 720px; margin: 9px 0 12px; font-size: clamp(31px, 5vw, 54px); line-height: 1.04; letter-spacing: -2.2px; }
.info-hero > p { position: relative; z-index: 1; max-width: 670px; margin: 0; color: var(--muted-strong); font-size: 14px; line-height: 1.75; }
.hero-actions, .trust-row { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 9px; margin-top: 23px; }
.trust-row span { border: 1px solid rgba(107,227,166,.16); border-radius: 999px; padding: 7px 10px; background: rgba(107,227,166,.055); color: #a8e5c4; font-size: 10px; }

.info-status { margin: 18px 0 0; }
.official-plugin-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  max-width: 820px;
  margin-top: 24px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: 17px;
  background: rgba(4,4,5,.58);
  box-shadow: 0 18px 48px rgba(0,0,0,.2);
  backdrop-filter: blur(12px);
}
.official-plugin-identity { min-width: 0; display: flex; align-items: center; gap: 14px; }
.official-plugin-identity > img { width: 58px; height: 58px; flex: 0 0 auto; border: 1px solid #3a3a3d; border-radius: 14px; padding: 9px; background: #050505; object-fit: contain; }
.official-plugin-identity h3 { margin: 6px 0 2px; font-size: 17px; letter-spacing: -.35px; }
.official-plugin-identity p { margin: 0; color: var(--muted); font-size: 10px; }
.official-plugin-identity p strong { color: var(--text-soft); }
.official-plugin-badge { display: inline-flex; align-items: center; gap: 5px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; padding: 4px 7px; background: rgba(255,255,255,.055); color: #dddde0; font: 750 8px var(--font-mono); letter-spacing: .35px; text-transform: uppercase; }
.plugin-facts { display: flex; align-items: stretch; gap: 8px; margin: 0; }
.plugin-facts > div { min-width: 128px; display: grid; align-content: center; gap: 4px; border-left: 1px solid var(--line); padding-left: 14px; }
.plugin-facts dt { color: #77777c; font: 700 8px var(--font-mono); text-transform: uppercase; }
.plugin-facts dd { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--text-soft); font-size: 10px; font-weight: 750; }
.plugin-facts code { color: #d8d8da; font: 600 9px var(--font-mono); }
.plugin-facts button { min-height: 27px; border: 1px solid #3b3b3f; border-radius: 7px; padding: 0 8px; background: #181819; color: #c3c3c6; font-size: 8px; font-weight: 750; cursor: pointer; }
.plugin-facts button:hover { border-color: #707075; color: #fff; }

.install-methods, .install-steps-section { margin-top: 26px; }
.install-method-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.install-method { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; padding: 21px; background: rgba(13,13,14,.88); }
.install-method.recommended-method { border-color: #444448; background: linear-gradient(145deg, rgba(255,255,255,.065), rgba(13,13,14,.9) 55%); }
.method-label { position: absolute; top: 18px; right: 18px; color: #8b8b90; font: 750 8px var(--font-mono); letter-spacing: .55px; }
.method-icon, .care-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #39393d; border-radius: 10px; background: rgba(255,255,255,.055); color: #e2e2e4; font-size: 16px; }
.install-method h4 { margin: 16px 0 7px; font-size: 14px; }
.install-method p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.install-method p strong { color: var(--text-soft); }
.install-method > .secondary-button { width: max-content; margin-top: 15px; }
.method-tip { display: flex; align-items: flex-start; gap: 7px; margin-top: 14px !important; border-top: 1px solid var(--line); padding-top: 12px; }
.method-tip > span { width: 17px; height: 17px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #39393d; border-radius: 50%; color: #c7c7ca; font: 700 8px var(--font-mono); }
.install-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.install-grid li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 13px; border: 1px solid var(--line); border-radius: 16px; padding: 19px; background: rgba(15,20,27,.78); }
.install-grid h3 { margin: 2px 0 6px; font-size: 13px; }
.install-grid p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.install-grid strong { color: var(--text-soft); }

.plugin-care-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.plugin-care-grid article { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px; border: 1px solid var(--line); border-radius: 16px; padding: 17px; background: rgba(13,13,14,.88); }
.plugin-care-grid h3 { margin: 2px 0 6px; font-size: 12px; }
.plugin-care-grid p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.plugin-care-grid strong { color: var(--text-soft); }
.care-icon { width: 31px; height: 31px; border-radius: 8px; font-size: 13px; }

.pairing-panel, .faq-section, .permission-table, .data-panel, .policy-panel {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  background: rgba(14,19,25,.8);
}
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.section-heading h3 { margin: 4px 0 0; font-size: 18px; letter-spacing: -.45px; }
.wide-values { margin-top: 17px; }
.pairing-panel > .secondary-button { margin-top: 13px; }
.faq-section details { border-top: 1px solid var(--line); }
.faq-section details:first-of-type { margin-top: 16px; }
.faq-section summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--text-soft); font-size: 12px; font-weight: 700; cursor: pointer; }
.faq-section summary::after { content: "+"; color: var(--brand); font-size: 18px; }
.faq-section details[open] summary::after { content: "−"; }
.faq-section details p { margin: -2px 0 16px; color: var(--muted); font-size: 11px; line-height: 1.7; }

.security-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.security-grid article { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: rgba(15,20,27,.78); }
.feature-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: rgba(101,230,209,.085); color: var(--brand); font-size: 17px; }
.security-grid h3 { margin: 15px 0 7px; font-size: 13px; }
.security-grid p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.security-grid strong { color: var(--text-soft); }
.permission-row { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); }
.permission-row:first-of-type { margin-top: 15px; }
.permission-row > div { display: grid; gap: 3px; }
.permission-row strong { font-size: 12px; }
.permission-row span { color: var(--muted); font-size: 10px; }
.permission-row b { flex: 0 0 auto; border-radius: 999px; padding: 5px 8px; background: rgba(107,227,166,.08); color: var(--green); font: 700 8px var(--font-mono); text-transform: uppercase; }
.permission-row.locked b { background: rgba(255,132,147,.08); color: var(--red); }
.data-panel { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.policy-panel { display: flex; align-items: center; justify-content: space-between; gap: 36px; border-color: rgba(130,173,255,.2); background: linear-gradient(130deg, rgba(130,173,255,.055), rgba(14,19,25,.8) 58%); }
.data-panel h3 { margin: 5px 0 7px; font-size: 18px; }
.policy-panel h3 { margin: 5px 0 7px; font-size: 18px; }
.data-panel p, .policy-panel p { max-width: 650px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.data-actions { flex: 0 0 auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.danger-button { min-height: 42px; border: 1px solid rgba(255,132,147,.28); border-radius: 9px; padding: 0 14px; background: rgba(255,132,147,.055); color: #ffb4be; font-weight: 750; font-size: 11px; cursor: pointer; }
.danger-button:hover { background: rgba(255,132,147,.11); }

.toast-region { position: fixed; z-index: 100; right: 18px; bottom: 18px; display: grid; gap: 8px; pointer-events: none; }
.toast { max-width: 340px; border: 1px solid #34404c; border-radius: 10px; padding: 11px 13px; background: #17202a; color: var(--text-soft); box-shadow: 0 15px 45px rgba(0,0,0,.34); font-size: 11px; animation: toast-in .2s ease-out; }
.toast.error { border-color: rgba(255,132,147,.3); color: #ffc0c8; }
.noscript { position: fixed; z-index: 999; inset: 0; display: grid; place-items: center; padding: 30px; background: var(--bg); color: var(--text); text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }

/* Rovex monochrome identity */
.auth-gate {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: initial;
  gap: 30px;
  padding: 24px clamp(20px, 4.5vw, 72px) 22px;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 16% 23%, rgba(255,255,255,.08), transparent 27%),
    radial-gradient(circle at 80% 66%, rgba(255,255,255,.045), transparent 30%),
    #050505;
}
.auth-gate::before {
  content: "";
  position: fixed;
  z-index: -2;
  inset: 0;
  opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 84%);
}
.auth-gate::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 520px;
  height: 520px;
  right: -260px;
  top: -260px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(255,255,255,.012), 0 0 0 160px rgba(255,255,255,.008);
}
.auth-brand {
  position: relative;
  z-index: 5;
  top: auto;
  left: auto;
  width: min(1420px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}
.auth-brand a { display: inline-flex; align-items: center; gap: 12px; font-size: 22px; letter-spacing: -.8px; text-decoration: none; }
.auth-brand .brand-mark { width: 40px; height: 40px; border-color: #343434; }
.auth-brand > span { border: 1px solid #2c2c2e; border-radius: 999px; padding: 7px 10px; background: rgba(255,255,255,.025); color: #8b8b90; font: 700 9px var(--font-mono); letter-spacing: .75px; }
.auth-layout {
  width: min(1540px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(360px, .58fr);
  align-items: center;
  gap: clamp(34px, 4vw, 62px);
  margin: 0 auto;
}
.auth-copy { min-width: 0; }
.auth-copy > .availability-pill { margin: 0 0 14px; border-color: #343436; background: rgba(255,255,255,.035); color: #c7c7ca; }
.auth-copy > .availability-pill > span { background: #f4f4f4; box-shadow: 0 0 0 4px rgba(255,255,255,.08); }
.auth-copy h1 { margin: 0 0 16px; font-size: clamp(44px, 5.35vw, 76px); line-height: .96; letter-spacing: clamp(-4.4px, -.06em, -2px); }
.auth-copy h1 em { color: #9c9ca1; }
.auth-copy > p { max-width: 790px; color: #b5b5b9; font-size: clamp(14px, 1.35vw, 18px); line-height: 1.65; }
.auth-showcase {
  position: relative;
  min-height: clamp(400px, 37vw, 580px);
  aspect-ratio: 1.66 / 1;
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid #343436;
  border-radius: 22px;
  background: #0b0b0c;
  box-shadow: 0 34px 90px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.025);
  padding: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
  --pointer-x: 0px;
  --pointer-y: 0px;
}
.auth-showcase:focus-visible { outline-offset: 5px; }
.showcase-frame { position: absolute; inset: -2%; width: 104%; height: 104%; display: block; object-fit: cover; filter: grayscale(1) contrast(1.04); transform: translate3d(var(--pointer-x), var(--pointer-y), 0) scale(1.01); transition: opacity .48s ease, transform .8s cubic-bezier(.2,.75,.2,1); }
.showcase-frame-idle { opacity: 1; }
.showcase-frame-thinking { opacity: 0; }
.auth-showcase:is(:hover, :focus-visible, .is-thinking) .showcase-frame-idle { opacity: 0; transform: translate3d(var(--pointer-x), var(--pointer-y), 0) scale(1.045); }
.auth-showcase:is(:hover, :focus-visible, .is-thinking) .showcase-frame-thinking { opacity: 1; transform: translate3d(var(--pointer-x), var(--pointer-y), 0) scale(1.025); }
.showcase-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.24), transparent 42%, rgba(0,0,0,.25)), linear-gradient(0deg, rgba(0,0,0,.64), transparent 43%); }
.showcase-toolbar { position: absolute; top: 13px; left: 14px; right: 14px; min-height: 36px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 9px; padding: 0 11px; background: rgba(4,4,4,.72); backdrop-filter: blur(13px); }
.showcase-toolbar > span { display: flex; gap: 5px; }
.showcase-toolbar i { width: 6px; height: 6px; display: block; border-radius: 50%; background: #6d6d72; }
.showcase-toolbar i:first-child { background: #e8e8e8; }
.showcase-toolbar strong, .showcase-toolbar b { font: 750 8px var(--font-mono); letter-spacing: .8px; }
.showcase-toolbar strong { color: #d8d8da; }
.showcase-toolbar b { justify-self: end; color: #f1f1f1; }
.build-progress-card { position: absolute; left: 50%; bottom: 18px; width: min(390px, calc(100% - 36px)); min-height: 59px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; transform: translateX(-50%); border: 1px solid rgba(255,255,255,.17); border-radius: 13px; padding: 10px 13px; background: rgba(5,5,5,.84); box-shadow: 0 18px 40px rgba(0,0,0,.42); backdrop-filter: blur(18px); }
.build-pulse { width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(255,255,255,.09); animation: pulse 1.35s ease-in-out infinite; }
.build-progress-card div { display: grid; gap: 2px; }
.build-progress-card small, .object-card small { color: #88888d; font: 700 7px var(--font-mono); letter-spacing: .8px; }
.build-progress-card strong, .object-card strong { overflow: hidden; color: #ededee; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.build-progress-card > b { color: #fff; font: 800 11px var(--font-mono); }
.object-card { position: absolute; min-width: 178px; display: flex; align-items: center; gap: 9px; border: 1px solid rgba(255,255,255,.15); border-radius: 11px; padding: 9px 11px; background: rgba(7,7,7,.75); box-shadow: 0 14px 36px rgba(0,0,0,.4); backdrop-filter: blur(14px); }
.object-card > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; background: #efefef; color: #090909; font-weight: 900; }
.object-card > div { min-width: 0; display: grid; gap: 1px; }
.object-card-one { top: 72px; left: 16px; animation: float-card-a 5.4s ease-in-out infinite; }
.object-card-two { right: 17px; bottom: 93px; animation: float-card-b 6.2s ease-in-out infinite; }
.thinking-spark { position: absolute; z-index: 3; top: 49%; right: 29.5%; color: #fff; font-size: 19px; opacity: 0; transform: scale(.3) rotate(-25deg); text-shadow: 0 0 18px #fff; transition: opacity .2s ease, transform .45s cubic-bezier(.2,1.7,.3,1); }
.thought-bubbles { position: absolute; z-index: 3; top: 22%; right: 19%; width: 82px; height: 82px; opacity: 0; transform: translateY(12px) scale(.75); transition: opacity .25s ease .12s, transform .5s cubic-bezier(.2,1.5,.3,1) .08s; }
.thought-bubbles i, .thought-bubbles b { position: absolute; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: rgba(8,8,8,.72); box-shadow: 0 8px 20px rgba(0,0,0,.38); backdrop-filter: blur(8px); }
.thought-bubbles i:first-child { width: 9px; height: 9px; left: 2px; bottom: 3px; }
.thought-bubbles i:nth-child(2) { width: 15px; height: 15px; left: 13px; bottom: 17px; }
.thought-bubbles b { width: 47px; height: 47px; top: 0; right: 0; color: #f4f4f4; font: 850 20px var(--font-mono); }
.showcase-hint { position: absolute; z-index: 5; top: 61px; right: 16px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 7px 10px; background: rgba(5,5,5,.68); color: #c7c7ca; font: 700 8px var(--font-mono); letter-spacing: .25px; backdrop-filter: blur(12px); transition: background .2s ease, color .2s ease; }
.showcase-hint i { font-style: normal; }
.auth-showcase:is(:hover, :focus-visible, .is-thinking) .thinking-spark { opacity: 1; transform: scale(1) rotate(8deg); animation: thinking-spark 1.15s ease-in-out infinite .42s; }
.auth-showcase:is(:hover, :focus-visible, .is-thinking) .thought-bubbles { opacity: 1; transform: translateY(0) scale(1); }
.auth-showcase:is(:hover, :focus-visible, .is-thinking) .showcase-hint { background: rgba(245,245,245,.9); color: #090909; }
.auth-showcase:is(:hover, :focus-visible, .is-thinking) .object-card-one { transform: translateY(-5px); }
.auth-flow { margin-top: 19px; gap: 9px; }
.auth-flow span { display: inline-flex; align-items: center; gap: 7px; border-color: #2e2e30; background: rgba(255,255,255,.022); }
.auth-flow span b { color: #f1f1f1; font: 800 9px var(--font-mono); }
.auth-flow i { color: #69696e; }
.login-card { border-color: #38383b; padding: clamp(23px, 3vw, 34px); background: linear-gradient(145deg, rgba(24,24,25,.95), rgba(10,10,11,.97)); box-shadow: 0 38px 110px rgba(0,0,0,.55), inset 0 1px rgba(255,255,255,.035); }
.login-card-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.login-icon { width: 48px; height: 48px; margin: 0; border-color: #38383b; }
.oauth-badge { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #333336; border-radius: 999px; padding: 6px 8px; color: #aaaab0; font: 700 8px var(--font-mono); letter-spacing: .4px; }
.oauth-badge i { color: #fff; font-size: 13px; font-style: normal; }
.login-card h2 { margin: 7px 0 10px; font-size: clamp(24px, 2vw, 29px); }
.login-card > p { color: #9d9da2; }
.roblox-login-button { border-color: #f4f4f4; background: #f4f4f4; color: #070707; transition: transform .18s ease, background .18s ease; }
.roblox-login-button > span { display: inline-flex; align-items: center; gap: 10px; }
.roblox-login-button i { font-size: 19px; font-style: normal; transform: rotate(45deg); }
.roblox-login-button:hover { transform: translateY(-2px); background: #d9d9dc; }
.auth-error, .auth-notice { margin: -8px 0 17px; border-radius: 9px; padding: 10px 11px; font-size: 11px; }
.auth-notice { border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.055); color: #d5d5d8; }
.permission-heading span { color: #bcbcc0; }
.permission-list li { border-color: #2f2f31; background: rgba(255,255,255,.02); }
.permission-check { background: rgba(255,255,255,.07); color: #ededee; }
.permission-list b { border: 1px solid #38383a; border-radius: 999px; padding: 3px 5px; color: #bdbdc1; }
.login-trust-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; margin-top: 12px; }
.login-trust-grid span { display: flex; align-items: center; gap: 7px; border: 1px solid #2d2d2f; border-radius: 8px; padding: 8px; color: #9c9ca1; font-size: 9px; }
.login-trust-grid b { color: #efeff0; font-size: 13px; }
.login-card .auth-promise { color: #9a9a9e; }
.auth-promise span { color: #efeff0; }
.auth-footer { width: min(1420px, 100%); display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 auto; border-top: 1px solid #242426; padding-top: 17px; color: #67676c; }
.auth-footer span { font: 750 8px var(--font-mono); letter-spacing: 1px; }
.auth-footer p { margin: 0; font-size: 9px; }
.auth-brand-actions { display: flex; align-items: center; gap: 10px; }
.auth-brand-actions > span { border: 1px solid #2c2c2e; border-radius: 999px; padding: 7px 10px; background: rgba(255,255,255,.025); color: #8b8b90; font: 700 9px var(--font-mono); letter-spacing: .75px; }
.language-switch { display: inline-flex; align-items: center; gap: 2px; border: 1px solid #343437; border-radius: 999px; padding: 3px; background: #0d0d0e; }
.language-switch button { min-width: 35px; min-height: 29px; border: 0; border-radius: 999px; padding: 0 8px; background: transparent; color: #85858a; font: 800 9px var(--font-mono); letter-spacing: .35px; cursor: pointer; transition: background .16s ease, color .16s ease; }
.language-switch button:hover { color: #fff; }
.language-switch button.active { background: #f0f0f1; color: #080808; }
.language-switch.compact button { min-width: 31px; min-height: 27px; padding: 0 6px; }

.sidebar { background: rgba(8,8,9,.97); }
.workspace { background: radial-gradient(circle at 50% -20%, rgba(255,255,255,.035), transparent 38%), #070708; }
.topbar { min-height: 68px; background: rgba(7,7,8,.82); }
.new-chat-button, .studio-action, .secondary-button { border-color: #343437; background: #151516; }
.new-chat-button:hover, .studio-action:hover, .secondary-button:hover { border-color: #57575c; background: #1b1b1d; }
.nav-item.active, .recent-item.active { background: rgba(255,255,255,.09); color: #f3f3f4; }
.recent-item.active span { color: #9d9da2; }
.studio-card { background: linear-gradient(145deg, #151516, #0b0b0c); }
.mode-label.connected, .availability-pill, .setup-status { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.045); color: #d4d4d7; }
.connection-banner, .connection-banner.connected { border-color: #303033; background: rgba(255,255,255,.035); }
.banner-icon, .connection-banner.connected .banner-icon { background: rgba(255,255,255,.075); color: #e8e8ea; }
.connection-banner button { color: #c7c7ca; }
.connection-banner button:hover { background: rgba(255,255,255,.07); color: #fff; }
.prompt-grid button { background: rgba(15,15,16,.88); }
.prompt-grid button:hover { border-color: #4c4c50; background: #181819; }
.prompt-icon.pets, .prompt-icon.coins, .prompt-icon.part, .prompt-icon.ui, .feature-icon { background: rgba(255,255,255,.075); color: #e2e2e4; }
.assistant-card, .install-grid li, .security-grid article, .pairing-panel, .faq-section, .permission-table, .data-panel, .policy-panel { background: rgba(13,13,14,.88); }
.user-message p { border-color: #37373a; background: #181819; color: #e6e6e8; }
.inline-connect-button { border-color: #444448; background: rgba(255,255,255,.055); color: #e2e2e4; }
.inline-connect-button:hover { background: rgba(255,255,255,.1); }
.run-pulse { box-shadow: 0 0 0 4px rgba(255,255,255,.08); }
.run-state, .fit-badge.partial { background: rgba(255,255,255,.075); color: #ceced1; }
.composer { border-color: #3c3c40; background: rgba(16,16,17,.97); }
.composer:focus-within { border-color: #8c8c91; box-shadow: 0 16px 55px rgba(0,0,0,.35), 0 0 0 3px rgba(255,255,255,.06); }
.send-button:hover, .primary-button:hover { border-color: #d4d4d6; background: #d4d4d6; }
.safe-badge, .trust-row span { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.045); color: #c8c8cb; }
.setup-dialog { border-color: #38383b; background: #0c0c0d; }
.dialog-header, .dialog-footer { background: rgba(12,12,13,.97); }
.connection-values > div { background: #101011; }
.connection-values button { border-color: #39393d; background: #171718; }
.info-hero { border-color: #343437; background: radial-gradient(circle at 92% 10%, rgba(255,255,255,.1), transparent 34%), linear-gradient(145deg, #161617, #0b0b0c); }
.info-hero::after { color: rgba(255,255,255,.045); }
.policy-panel { border-color: #303033; background: linear-gradient(130deg, rgba(255,255,255,.045), rgba(13,13,14,.88) 58%); }
.toast { border-color: #3e3e42; background: #171718; }

.account-menu-wrap { position: relative; }
.account-button { cursor: pointer; transition: border-color .16s ease, background .16s ease; }
.account-button:hover, .account-button[aria-expanded="true"] { border-color: #4c4c50; background: #171718; }
.account-avatar { background-color: #242426; color: #f0f0f1; }
.account-copy { display: grid; line-height: 1.18; }
.account-chevron { color: #77777c; transition: transform .16s ease; }
.account-button[aria-expanded="true"] .account-chevron { transform: rotate(180deg); }
.account-menu { position: absolute; z-index: 80; top: calc(100% + 10px); right: 0; width: 272px; overflow: hidden; border: 1px solid #38383b; border-radius: 14px; padding: 7px; background: rgba(12,12,13,.98); box-shadow: 0 24px 70px rgba(0,0,0,.6); backdrop-filter: blur(18px); animation: account-menu-in .16s ease-out; }
.account-menu header { display: flex; align-items: center; gap: 10px; margin: -7px -7px 7px; border-bottom: 1px solid #29292b; padding: 13px; background: rgba(255,255,255,.025); }
.account-menu header > div { min-width: 0; display: grid; }
.account-menu header strong, .account-menu header small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu header strong { font-size: 12px; }
.account-menu header small { color: var(--muted); font-size: 9px; }
.account-menu-avatar { width: 38px; height: 38px; border-radius: 10px; }
.account-menu > a, .account-menu > button { width: 100%; min-height: 41px; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 8px; padding: 0 10px; background: transparent; color: #b8b8bc; font-size: 11px; text-align: left; text-decoration: none; cursor: pointer; }
.account-menu > a span, .account-menu > button span { width: 18px; color: #7f7f84; font-size: 15px; text-align: center; }
.account-menu > a:hover, .account-menu > a:focus-visible, .account-menu > button:hover, .account-menu > button:focus-visible { background: rgba(255,255,255,.07); color: #fff; }
.account-menu #logout-button:hover { background: rgba(255,132,147,.08); color: #ffadb8; }

.logout-dialog { width: min(430px, calc(100% - 30px)); border: 1px solid #3b3b3f; border-radius: 20px; padding: 27px; background: linear-gradient(145deg, #171718, #0b0b0c); color: var(--text); box-shadow: 0 34px 110px rgba(0,0,0,.68); }
.logout-dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(9px); }
.logout-dialog-icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 18px; border: 1px solid #3a3a3d; border-radius: 13px; background: rgba(255,255,255,.055); color: #f4f4f4; font-size: 22px; }
.logout-dialog h2 { margin: 7px 0 9px; font-size: 25px; letter-spacing: -.8px; }
.logout-dialog > p { margin: 0; color: #9d9da2; font-size: 12px; line-height: 1.7; }
.logout-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 24px; }
.logout-dialog button:disabled { opacity: .58; cursor: wait; }
.conversation-dialog { width: min(450px, calc(100% - 30px)); border: 1px solid #3b3b3f; border-radius: 20px; padding: 0; background: linear-gradient(145deg, #171718, #0b0b0c); color: var(--text); box-shadow: 0 34px 110px rgba(0,0,0,.68); }
.conversation-dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(9px); }
.conversation-dialog form { padding: 27px; }
.conversation-dialog-icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 18px; border: 1px solid #3a3a3d; border-radius: 13px; background: rgba(255,255,255,.055); color: #f4f4f4; font-size: 20px; }
.conversation-dialog h2 { margin: 7px 0 8px; font-size: 25px; letter-spacing: -.8px; }
.conversation-dialog form > p { margin: 0; color: #9d9da2; font-size: 12px; line-height: 1.65; }
.conversation-dialog-target { display: block; margin-top: 14px; overflow: hidden; color: #d7d7da; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.conversation-title-field { display: grid; gap: 7px; margin-top: 18px; }
.conversation-title-field > span { color: #bcbcc0; font-size: 10px; font-weight: 750; }
.conversation-title-field input { width: 100%; min-height: 45px; border: 1px solid #3c3c40; border-radius: 9px; padding: 0 12px; outline: 0; background: #101011; color: #f4f4f5; }
.conversation-title-field input:focus { border-color: #8c8c91; box-shadow: 0 0 0 3px rgba(255,255,255,.06); }
.conversation-title-field small { color: #77777c; font-size: 9px; text-align: right; }
.conversation-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 24px; }
.conversation-dialog-actions .danger-button { min-height: 42px; }
.conversation-dialog-actions button:disabled { opacity: .58; cursor: wait; }
.credits-dialog { width: min(850px, calc(100% - 30px)); max-height: min(820px, calc(100vh - 28px)); overflow: hidden; border: 1px solid #3b3b3f; border-radius: 22px; padding: 0; background: #0c0c0d; color: var(--text); box-shadow: 0 38px 120px rgba(0,0,0,.72); }
.credits-dialog::backdrop { background: rgba(0,0,0,.8); backdrop-filter: blur(10px); }
.credits-dialog-shell { max-height: calc(100vh - 30px); overflow-y: auto; }
.credits-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 25px 27px 20px; border-bottom: 1px solid #2d2d30; }
.credits-dialog-header h2 { margin: 7px 0 7px; font-size: 27px; letter-spacing: -.9px; }
.credits-dialog-header p { max-width: 630px; margin: 0; color: #99999e; font-size: 11px; line-height: 1.65; }
.credits-current { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 13px; margin: 20px 27px 0; border: 1px solid #3b3b3f; border-radius: 14px; padding: 14px 16px; background: linear-gradient(110deg, rgba(255,255,255,.07), rgba(255,255,255,.025)); }
.credits-current-mark { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 11px; background: #f2f2f3; color: #080809; font-size: 15px; font-weight: 950; }
.credits-current > div { display: grid; gap: 3px; }
.credits-current small { color: #838388; font: 650 8px var(--font-mono); letter-spacing: .7px; }
.credits-current strong { font-size: 14px; }
.credits-current strong b { font-size: 20px; }
.credits-current > span:last-child { color: #8d8d92; font-size: 9px; }
.discord-reward { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 15px; margin: 14px 27px 0; border: 1px solid #434348; border-radius: 15px; padding: 16px; background: radial-gradient(circle at 92% 0, rgba(255,255,255,.08), transparent 38%), #141415; }
.discord-reward-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 13px; background: #f0f0f2; color: #09090a; font-size: 16px; font-weight: 950; }
.discord-reward-copy { min-width: 0; }
.discord-reward-copy h3 { margin: 5px 0 4px; font-size: 15px; }
.discord-reward-copy p { max-width: 510px; margin: 0; color: #96969b; font-size: 10px; line-height: 1.55; }
.discord-reward-status { display: block; margin-top: 7px; color: #bdbdc1; font: 650 8px var(--font-mono); }
.discord-reward-status.success { color: var(--green); }
.discord-reward-status.error { color: #ffadb8; }
.discord-reward-actions { display: grid; gap: 8px; min-width: 190px; }
.discord-reward-actions a, .discord-reward-actions button { width: 100%; min-height: 38px; justify-content: center; font-size: 9px; text-decoration: none; }
.discord-reward-actions button:disabled { opacity: .5; cursor: not-allowed; }
.credit-packs-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 20px 27px 0; }
.credit-packs-heading h3 { margin: 5px 0 0; font-size: 17px; letter-spacing: -.35px; }
.credit-packs-heading > span { color: #88888d; font-size: 9px; }
.credit-packs { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; padding: 13px 27px 16px; }
.credit-pack { min-width: 0; display: flex; flex-direction: column; border: 1px solid #333337; border-radius: 15px; padding: 17px; background: #121213; }
.credit-pack.featured { border-color: #707075; background: linear-gradient(155deg, #202022, #111112); box-shadow: 0 12px 35px rgba(0,0,0,.24); }
.pack-label { min-height: 17px; color: #85858a; font: 650 8px var(--font-mono); letter-spacing: .75px; }
.credit-pack.featured .pack-label { color: #e2e2e4; }
.credit-pack h3 { margin: 9px 0 5px; font-size: 19px; }
.credit-pack p { min-height: 43px; margin: 0 0 15px; color: #8c8c91; font-size: 10px; line-height: 1.55; }
.pack-price { margin: auto 0 13px; font-size: 25px; letter-spacing: -.8px; }
.credit-pack button { width: 100%; }
.credit-pack button:disabled { opacity: .48; cursor: not-allowed; }
.payments-notice { display: flex; align-items: center; gap: 11px; margin: 0 27px 20px; border: 1px solid #333337; border-radius: 12px; padding: 12px 14px; background: rgba(255,255,255,.035); }
.payments-notice > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.07); }
.payments-notice > div { display: grid; gap: 3px; }
.payments-notice strong { font-size: 10px; }
.payments-notice small { color: #88888d; font-size: 9px; line-height: 1.5; }
.credits-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 27px; border-top: 1px solid #2d2d30; background: #101011; }
.credits-dialog-footer > span { color: #838388; font-size: 9px; }
.admin-page { min-height: 100vh; overflow: auto; background: #070708; }
.admin-topbar { position: sticky; z-index: 20; top: 0; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #29292c; padding: 0 max(24px, calc((100vw - 1220px) / 2)); background: rgba(7,7,8,.9); backdrop-filter: blur(18px); }
.admin-topbar .legal-brand { margin: 0; }
.admin-top-actions { display: flex; align-items: center; gap: 9px; }
.admin-main { width: min(1220px, calc(100% - 40px)); margin: 0 auto; padding: 40px 0 80px; }
.admin-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; border: 1px solid #343438; border-radius: 22px; padding: 31px; background: radial-gradient(circle at 90% 0, rgba(255,255,255,.08), transparent 35%), #111112; }
.admin-hero h1 { max-width: 690px; margin: 9px 0; font-size: clamp(30px, 4vw, 48px); letter-spacing: -1.7px; line-height: 1.06; }
.admin-hero p { max-width: 700px; margin: 0; color: #99999e; font-size: 12px; line-height: 1.7; }
.admin-identity { flex: 0 0 auto; display: flex; align-items: center; gap: 11px; border: 1px solid #414146; border-radius: 13px; padding: 11px 13px; background: rgba(255,255,255,.045); }
.admin-identity > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #efeff0; color: #09090a; font-weight: 900; }
.admin-identity > div { display: grid; gap: 3px; }
.admin-identity small { color: #7e7e83; font: 650 8px var(--font-mono); letter-spacing: .6px; }
.admin-identity strong { font-size: 10px; }
.admin-metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin: 16px 0; }
.admin-metrics article { display: grid; gap: 6px; border: 1px solid #313135; border-radius: 15px; padding: 18px; background: #101011; }
.admin-metrics span { color: #a2a2a7; font-size: 10px; font-weight: 750; }
.admin-metrics strong { font-size: 30px; letter-spacing: -1px; }
.admin-metrics small { color: #737378; font-size: 9px; }
.admin-section { margin-top: 16px; border: 1px solid #313135; border-radius: 18px; padding: 23px; background: #0e0e0f; }
.admin-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.admin-section-heading h2 { margin: 5px 0 0; font-size: 20px; letter-spacing: -.5px; }
.admin-state { flex: 0 0 auto; border: 1px solid #3a3a3f; border-radius: 999px; padding: 5px 8px; color: #85858a; font: 650 8px var(--font-mono); }
.admin-state.waiting { color: #c2c2c6; }
.admin-state.ready { border-color: rgba(174,230,193,.35); color: var(--green); }
.reward-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
.reward-admin-grid article { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: start; gap: 13px; border: 1px solid #303034; border-radius: 14px; padding: 16px; background: #121213; }
.reward-admin-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: #eeeef0; color: #09090a; font-size: 14px; font-weight: 900; }
.reward-admin-grid h3 { margin: 1px 0 5px; font-size: 13px; }
.reward-admin-grid p { margin: 0 0 8px; color: #8b8b90; font-size: 10px; line-height: 1.6; }
.reward-admin-grid small { color: #69696e; font-size: 8px; }
.admin-security-note { display: flex; align-items: center; gap: 10px; margin: 13px 0 0; color: #818186; font-size: 9px; line-height: 1.55; }
.admin-security-note span { flex: 0 0 auto; width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid #3a3a3f; border-radius: 50%; font-weight: 800; }
.admin-table-wrap { overflow-x: auto; border: 1px solid #2f2f33; border-radius: 13px; }
.admin-table { width: 100%; min-width: 760px; border-collapse: collapse; background: #111112; }
.admin-table th, .admin-table td { border-bottom: 1px solid #2a2a2e; padding: 12px 14px; color: #a0a0a5; font-size: 10px; text-align: left; }
.admin-table th { background: #151516; color: #747479; font: 650 8px var(--font-mono); letter-spacing: .55px; text-transform: uppercase; }
.admin-table tr:last-child td { border-bottom: 0; }
.reward-review-heading { margin-top: 24px; }
.reward-review-table { min-width: 940px; }
.admin-review-button { min-height: 32px; padding: 7px 11px; font-size: 8px; }
.admin-user { display: flex; align-items: center; gap: 10px; }
.admin-user-avatar { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #3b3b3f; border-radius: 9px; background: #242427 center/cover; color: #f4f4f5; font-weight: 850; }
.admin-user > span:last-child { display: grid; gap: 2px; }
.admin-user strong { color: #e2e2e4; font-size: 10px; }
.admin-user small { color: #78787d; font-size: 8px; }
.admin-role-badge { width: fit-content; margin-top: 3px; border: 1px solid #3c3c41; border-radius: 999px; padding: 2px 6px; color: #a8a8ad; font: 650 7px var(--font-mono); letter-spacing: .35px; text-transform: uppercase; }
.admin-role-badge.owner { border-color: rgba(174,230,193,.3); color: var(--green); }
.admin-balance { color: #ededee; }
.admin-grant-button { min-height: 34px; padding: 0 10px; font-size: 9px; }
.admin-row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; min-width: 170px; }
.admin-access-button { min-height: 34px; padding: 0 10px; font-size: 9px; }
.admin-access-button.danger-button { min-height: 34px; }
.admin-access-dialog-content { padding: 27px; }
.admin-access-dialog h2 { margin: 7px 0 8px; font-size: 25px; letter-spacing: -.8px; }
.admin-access-dialog p { margin: 0; color: #9d9da2; font-size: 12px; line-height: 1.65; }
.compact-table td:nth-child(3) { max-width: 420px; }
.positive-credit { color: #b8f1d3 !important; font-weight: 800; }
.negative-credit { color: #ffb2bc !important; font-weight: 800; }
.admin-grant-dialog .conversation-title-field { margin-top: 13px; }
.legal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 70px; }
.legal-toolbar .legal-brand { margin-bottom: 0; }

.dashboard-view {
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 30px max(24px, calc((100% - 1160px) / 2)) 72px;
  background:
    radial-gradient(circle at 78% 4%, rgba(255,255,255,.055), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,.012), transparent 28%);
  scrollbar-gutter: stable;
}
.dashboard-view::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  opacity: .12;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 46%);
}
.dashboard-view > * { position: relative; z-index: 1; width: min(1160px, 100%); margin-inline: auto; }
.dashboard-hero {
  min-height: 276px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  align-items: center;
  gap: 34px;
  overflow: hidden;
  border: 1px solid #38383c;
  border-radius: 24px;
  padding: clamp(28px, 4vw, 48px);
  background:
    radial-gradient(circle at 86% 18%, rgba(255,255,255,.16), transparent 24%),
    linear-gradient(132deg, #1b1b1d, #0d0d0e 62%);
  box-shadow: 0 28px 80px rgba(0,0,0,.3), inset 0 1px rgba(255,255,255,.045);
}
.dashboard-hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -150px;
  bottom: -230px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 50%;
  box-shadow: 0 0 0 58px rgba(255,255,255,.013), 0 0 0 116px rgba(255,255,255,.008);
}
.dashboard-hero-copy { position: relative; z-index: 2; }
.dashboard-hero h2 { margin: 10px 0 13px; font-size: clamp(32px, 4vw, 52px); line-height: 1.02; letter-spacing: clamp(-2.4px, -.05em, -1.2px); }
.dashboard-hero h2 em { color: #a2a2a7; font-style: normal; font-weight: 650; }
.dashboard-hero p { max-width: 650px; margin: 0; color: #a7a7ac; font-size: 13px; line-height: 1.7; }
.dashboard-hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 23px; }
.dashboard-hero-actions button { min-height: 44px; }
.dashboard-hero-mark { position: relative; z-index: 2; min-height: 184px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; background: rgba(0,0,0,.22); box-shadow: inset 0 1px rgba(255,255,255,.035); }
.dashboard-hero-mark img { width: 104px; height: 104px; object-fit: contain; filter: drop-shadow(0 16px 28px rgba(0,0,0,.55)); }
.dashboard-hero-mark span { margin-top: 3px; font-size: 15px; font-weight: 900; letter-spacing: 4px; }
.dashboard-hero-mark small { margin-top: 3px; color: #77777c; font: 700 7px var(--font-mono); letter-spacing: 1.4px; }

.dashboard-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 13px; }
.dashboard-stat-card { min-width: 0; min-height: 108px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 13px; border: 1px solid #313135; border-radius: 16px; padding: 17px; background: rgba(15,15,16,.92); color: inherit; text-align: left; box-shadow: inset 0 1px rgba(255,255,255,.025); }
button.dashboard-stat-card { cursor: pointer; transition: border-color .17s ease, background .17s ease, transform .17s ease; }
button.dashboard-stat-card:hover { border-color: #55555a; background: #171719; transform: translateY(-2px); }
.dashboard-stat-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #3d3d41; border-radius: 12px; background: rgba(255,255,255,.055); color: #f2f2f3; font-weight: 900; }
.dashboard-stat-icon .status-dot { width: 11px; height: 11px; }
.dashboard-stat-card > div { min-width: 0; display: grid; gap: 3px; }
.dashboard-stat-card small { color: #737378; font: 700 8px var(--font-mono); letter-spacing: .65px; }
.dashboard-stat-card strong, .dashboard-stat-card span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-stat-card strong { color: #e8e8ea; font-size: 12px; }
.dashboard-stat-card strong b { font-size: 18px; }
.dashboard-stat-card > div > span { color: #85858a; font-size: 9px; }
.dashboard-stat-card > i { color: #747479; font-size: 17px; font-style: normal; }
.dashboard-stat-card .dashboard-live-mark { color: var(--green); font-size: 9px; text-shadow: 0 0 11px rgba(174,230,193,.45); }

.dashboard-columns { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(310px, .7fr); align-items: stretch; gap: 13px; margin-top: 13px; }
.dashboard-panel { min-width: 0; border: 1px solid #303034; border-radius: 18px; padding: 22px; background: rgba(13,13,14,.9); box-shadow: inset 0 1px rgba(255,255,255,.02); }
.dashboard-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.dashboard-panel-heading h3 { margin: 5px 0 0; font-size: 18px; letter-spacing: -.45px; }
.dashboard-panel-heading button { border: 0; padding: 6px 0; background: transparent; color: #a5a5aa; font-size: 9px; font-weight: 750; cursor: pointer; }
.dashboard-panel-heading button:hover { color: #fff; }
.dashboard-recent-list { display: grid; gap: 7px; }
.dashboard-recent-item { width: 100%; min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #2e2e32; border-radius: 12px; padding: 11px 13px; background: #111112; color: inherit; text-align: left; cursor: pointer; transition: border-color .16s ease, background .16s ease; }
.dashboard-recent-item:hover { border-color: #4b4b50; background: #181819; }
.dashboard-recent-item > span { min-width: 0; display: grid; gap: 4px; }
.dashboard-recent-item strong { overflow: hidden; color: #dedee0; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-recent-item small { color: #747479; font-size: 8px; }
.dashboard-recent-item i { color: #747479; font-style: normal; }
.dashboard-empty { min-height: 218px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-content: center; align-items: center; gap: 14px; border: 1px dashed #353539; border-radius: 13px; padding: 22px; background: rgba(255,255,255,.012); }
.dashboard-empty > span { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #3a3a3e; border-radius: 12px; color: #bcbcc0; }
.dashboard-empty strong { font-size: 11px; }
.dashboard-empty p { margin: 4px 0 0; color: #7d7d82; font-size: 9px; line-height: 1.55; }
.dashboard-empty button { min-height: 36px; border: 1px solid #3c3c40; border-radius: 9px; padding: 0 11px; background: #181819; color: #d2d2d5; font-size: 9px; font-weight: 750; cursor: pointer; }
.dashboard-empty button:hover { border-color: #606066; background: #202022; }

.dashboard-setup-count { flex: 0 0 auto; border: 1px solid #39393d; border-radius: 999px; padding: 5px 8px; color: #b7b7bb; font: 750 8px var(--font-mono); }
.dashboard-progress { height: 4px; overflow: hidden; margin-bottom: 18px; border-radius: 999px; background: #242427; }
.dashboard-progress span { width: 25%; height: 100%; display: block; border-radius: inherit; background: #eeeef0; transition: width .35s ease; }
.dashboard-checklist { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.dashboard-checklist li { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 11px; min-height: 55px; border-radius: 10px; padding: 8px; }
.dashboard-checklist li.current { background: rgba(255,255,255,.04); }
.dashboard-checklist li > span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #3b3b3f; border-radius: 50%; color: #828287; font: 800 9px var(--font-mono); }
.dashboard-checklist li.completed > span { border-color: rgba(174,230,193,.35); background: rgba(174,230,193,.07); color: var(--green); }
.dashboard-checklist li > div { min-width: 0; display: grid; gap: 2px; }
.dashboard-checklist strong { color: #cfcfd2; font-size: 10px; }
.dashboard-checklist small { color: #77777c; font-size: 8px; line-height: 1.45; }
.dashboard-checklist li.completed strong { color: #85858a; }
.dashboard-setup-action { width: 100%; justify-content: space-between; margin-top: 15px; }

.dashboard-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 13px; }
.dashboard-shortcuts > button { min-width: 0; min-height: 82px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; border: 1px solid #303034; border-radius: 14px; padding: 14px; background: rgba(13,13,14,.9); color: inherit; text-align: left; cursor: pointer; transition: border-color .16s ease, background .16s ease; }
.dashboard-shortcuts > button:hover { border-color: #4c4c51; background: #171718; }
.dashboard-shortcuts > button > span { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #39393d; border-radius: 10px; background: rgba(255,255,255,.035); color: #d9d9dc; }
.dashboard-shortcuts > button > div { min-width: 0; display: grid; gap: 3px; }
.dashboard-shortcuts strong, .dashboard-shortcuts small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-shortcuts strong { color: #d8d8da; font-size: 10px; }
.dashboard-shortcuts small { color: #77777c; font-size: 8px; }
.dashboard-shortcuts i { color: #747479; font-style: normal; }

@media (max-width: 1040px) {
  .dashboard-hero { grid-template-columns: minmax(0,1fr) 210px; }
  .dashboard-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dashboard-stats > :last-child { grid-column: 1 / -1; }
  .dashboard-columns { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .dashboard-view { min-height: calc(100vh - 64px); padding: 18px 14px 58px; }
  .dashboard-hero { min-height: 0; grid-template-columns: 1fr; padding: 26px 22px; }
  .dashboard-hero-mark { display: none; }
  .dashboard-stats { grid-template-columns: 1fr; }
  .dashboard-stats > :last-child { grid-column: auto; }
  .dashboard-shortcuts { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .dashboard-hero { border-radius: 18px; padding: 23px 18px; }
  .dashboard-hero h2 { font-size: clamp(31px, 10vw, 42px); }
  .dashboard-hero-actions { display: grid; grid-template-columns: 1fr; }
  .dashboard-hero-actions button { width: 100%; }
  .dashboard-panel { padding: 17px; }
  .dashboard-panel-heading { gap: 10px; }
  .dashboard-panel-heading h3 { font-size: 16px; }
  .dashboard-empty { grid-template-columns: auto minmax(0,1fr); padding: 17px; }
  .dashboard-empty button { grid-column: 1 / -1; }
}

@keyframes showcase-breathe { from { transform: scale(1.01); } to { transform: scale(1.055); } }
@keyframes float-card-a { 50% { transform: translate3d(0,-7px,0); } }
@keyframes float-card-b { 50% { transform: translate3d(0,6px,0); } }
@keyframes account-menu-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
@keyframes thinking-spark { 50% { opacity: .45; transform: scale(.72) rotate(-10deg); } }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .38; transform: scale(.8); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 980px) {
  :root { --sidebar-width: 248px; }
  .backend-status { display: none; }
  .credits-button-copy { display: none; }
  .how-it-works i { width: 9px; }
}

@media (max-width: 760px) {
  .credit-packs { grid-template-columns: 1fr; }
  .credit-pack p { min-height: 0; }
  .credits-current { grid-template-columns: auto 1fr; }
  .credits-current > span:last-child { grid-column: 1 / -1; }
  .discord-reward { grid-template-columns: auto minmax(0,1fr); }
  .discord-reward-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .admin-main { width: min(100% - 24px, 1220px); padding-top: 22px; }
  .admin-hero { align-items: flex-start; flex-direction: column; padding: 23px; }
  .admin-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .reward-admin-grid { grid-template-columns: 1fr; }
  .admin-topbar { padding: 0 12px; }
  .admin-top-actions .language-switch, .admin-top-actions #admin-logout { display: none; }
  .admin-section { padding: 17px; }
}

@media (max-width: 520px) {
  .credits-buy-label { padding: 0 7px; justify-content: center; }
  .credits-buy-action { display: none; }
  .credits-mobile-label { display: inline; }
  .credits-buy-label b { font-size: 13px; }
  .credit-packs-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .discord-reward { grid-template-columns: 1fr; }
  .discord-reward-actions { grid-column: auto; grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  body { overflow: auto; }
  .app-shell { display: block; min-height: 100vh; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(86vw, 310px); transform: translateX(-105%); box-shadow: 20px 0 70px rgba(0,0,0,.42); transition: transform .2s ease; }
  .sidebar.open { transform: translateX(0); }
  .mobile-scrim { position: fixed; z-index: 15; inset: 0; background: rgba(3,5,8,.68); }
  .mobile-scrim:not([hidden]) { display: block; }
  .mobile-close, .mobile-menu { display: grid; }
  .workspace { min-height: 100vh; height: auto; }
  .agent-view { min-height: calc(100vh - 64px); grid-template-rows: auto minmax(560px, 1fr) auto; }
  .topbar { padding: 0 14px; }
  .top-actions .secondary-button { min-width: 42px; width: 42px; padding: 0; font-size: 0; }
  .top-actions .secondary-button span { font-size: 17px; }
  .account-button > span:last-child, .logout-button { display: none; }
  .account-button { padding-right: 5px; }
  .project-line h1 { max-width: 42vw; }
  .mode-label { display: none; }
  .connection-banner { grid-template-columns: auto minmax(0, 1fr); margin: 10px 13px 0; }
  .connection-banner button { grid-column: 2; justify-self: start; padding-left: 0; }
  .chat { padding: 26px 14px 22px; }
  .prompt-grid { grid-template-columns: 1fr; }
  .how-it-works { flex-wrap: wrap; }
  .how-it-works i { display: none; }
  .composer-area { position: sticky; z-index: 10; bottom: 0; width: 100%; padding: 9px 12px 12px; background: linear-gradient(transparent, var(--bg) 18%); }
  .composer-help { display: none; }
  .setup-dialog { width: calc(100% - 16px); max-height: calc(100vh - 16px); }
  .dialog-header, .dialog-footer { padding-left: 16px; padding-right: 16px; }
  .setup-status, .setup-steps { margin-left: 16px; margin-right: 16px; }
  .info-status { margin: 18px 0 0; }
  .info-view { min-height: calc(100vh - 64px); padding: 24px 14px 58px; }
  .install-grid, .install-method-grid, .security-grid, .plugin-care-grid { grid-template-columns: 1fr; }
  .data-panel, .policy-panel { align-items: flex-start; flex-direction: column; gap: 20px; }
  .data-actions { justify-content: flex-start; }
}

@media (max-width: 860px) {
  .auth-gate { align-content: start; padding-top: 105px; }
  .auth-layout { grid-template-columns: 1fr; gap: 42px; margin-top: 0; }
  .auth-copy { text-align: center; }
  .auth-copy > p { margin-inline: auto; }
  .auth-flow { justify-content: center; }
  .login-card { width: min(520px, 100%); margin-inline: auto; }
}

@media (max-width: 520px) {
  .connection-banner .banner-icon { display: none; }
  .connection-banner { grid-template-columns: 1fr; }
  .connection-banner button { grid-column: 1; }
  .welcome h2 { letter-spacing: -1.4px; }
  .welcome > p { font-size: 12px; }
  .how-it-works { display: none; }
  .user-message { max-width: 92%; }
  .assistant-card { padding: 14px; }
  .composer-context > span:last-child { display: none; }
  .send-button { min-width: 46px; width: 46px; padding: 0; }
  .send-button span:first-child { display: none; }
  .dialog-footer { flex-direction: column-reverse; }
  .dialog-footer button { width: 100%; }
  .connection-values { grid-template-columns: 1fr; }
  .connection-values button { min-height: 38px; }
  .info-hero { padding: 24px 20px; }
  .info-hero::after { font-size: 150px; }
  .official-plugin-card { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
  .official-plugin-identity > img { width: 52px; height: 52px; }
  .plugin-facts { display: grid; grid-template-columns: 1fr; }
  .plugin-facts > div { border-top: 1px solid var(--line); border-left: 0; padding: 11px 0 0; }
  .plugin-facts dd { justify-content: space-between; }
  .install-method > .secondary-button { width: 100%; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .section-heading > button { width: 100%; }
  .pairing-panel, .faq-section, .permission-table, .data-panel { padding: 17px; }
  .permission-row { align-items: flex-start; flex-direction: column; gap: 9px; padding: 14px 0; }
  .data-actions, .data-actions > * { width: 100%; }
}

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

@media (prefers-contrast: more) {
  :root { --line: #4b4b50; --line-strong: #6b6b72; --muted: #b6b6bb; }
  .connection-banner, .assistant-card, .composer, .studio-card { border-width: 2px; }
}

@media (max-width: 1180px) {
  .auth-layout { grid-template-columns: minmax(0, 1.2fr) minmax(350px, .72fr); gap: 36px; }
  .object-card-two { display: none; }
}

@media (max-width: 920px) {
  .auth-gate { align-content: initial; padding-top: 22px; }
  .auth-layout { grid-template-columns: 1fr; align-items: start; gap: 34px; margin-top: 8px; }
  .auth-copy { text-align: left; }
  .auth-copy > p { margin-inline: 0; }
  .auth-flow { justify-content: flex-start; }
  .auth-showcase { min-height: clamp(360px, 64vw, 560px); aspect-ratio: 1.58 / 1; }
  .login-card { width: min(620px, 100%); margin-inline: auto; }
}

@media (max-width: 780px) {
  .account-copy { display: none; }
  .account-button { padding-right: 5px; }
  .account-menu { position: fixed; top: 72px; right: 12px; width: min(290px, calc(100vw - 24px)); }
}

@media (max-width: 560px) {
  .auth-gate { gap: 24px; padding: 18px 15px 20px; }
  .auth-brand-actions > span { display: none; }
  .auth-copy h1 { font-size: clamp(39px, 12vw, 54px); }
  .auth-copy > p { font-size: 14px; }
  .auth-showcase { min-height: 330px; aspect-ratio: auto; border-radius: 17px; }
  .object-card { display: none; }
  .showcase-hint { top: 60px; right: 12px; }
  .showcase-hint span { display: none; }
  .thought-bubbles { top: 24%; right: 10%; transform: scale(.7); }
  .thinking-spark { top: 51%; right: 25%; }
  .showcase-toolbar { grid-template-columns: 1fr auto; }
  .showcase-toolbar > span { display: none; }
  .showcase-toolbar strong { justify-self: start; }
  .auth-flow { display: grid; grid-template-columns: 1fr; }
  .auth-flow i { display: none; }
  .auth-flow span { justify-content: flex-start; }
  .login-card { border-radius: 18px; padding: 22px 18px; }
  .oauth-badge { font-size: 7px; }
  .permission-list li { grid-template-columns: auto minmax(0,1fr); }
  .permission-list li > b { display: none; }
  .login-trust-grid { grid-template-columns: 1fr; }
  .auth-footer { align-items: flex-start; flex-direction: column; gap: 7px; }
  .auth-footer p { line-height: 1.5; }
  .logout-dialog { padding: 22px 18px; }
  .logout-dialog-actions { flex-direction: column-reverse; }
  .logout-dialog-actions button { width: 100%; }
  .conversation-dialog form { padding: 22px 18px; }
  .conversation-dialog-actions { flex-direction: column-reverse; }
  .conversation-dialog-actions button { width: 100%; }
  .legal-toolbar { margin-bottom: 48px; }
}

@media (max-width: 600px) {
  body { overscroll-behavior-y: none; }
  .sidebar { height: 100dvh; overflow-y: auto; overscroll-behavior: contain; }
  .workspace { min-height: 100dvh; }
  .topbar { position: sticky; top: 0; min-height: 60px; gap: 8px; padding: 0 10px; }
  .topbar-leading { min-width: 0; gap: 8px; }
  .topbar-leading > div { min-width: 0; }
  .topbar-leading > div > .eyebrow { display: none; }
  .project-line { margin: 0; }
  .project-line h1 { max-width: min(31vw, 126px); font-size: 12px; }
  .top-actions { flex: 0 0 auto; gap: 6px; margin-left: auto; }
  .top-actions .language-switch, .top-actions #open-setup-top, .top-actions .backend-status { display: none; }
  .credits-button { width: 42px; min-width: 42px; min-height: 42px; justify-content: center; padding: 5px; }
  .credits-button-copy, .credits-buy-label { display: none; }
  .account-button { width: 42px; min-width: 42px; justify-content: center; padding: 4px; }
  .account-chevron { display: none; }
  .account-menu { top: 66px; right: 8px; width: min(300px, calc(100vw - 16px)); }

  .auth-gate { min-height: 100dvh; gap: 22px; padding: 16px 14px 24px; }
  .auth-brand a { gap: 9px; font-size: 19px; }
  .auth-brand .brand-mark { width: 36px; height: 36px; }
  .auth-copy h1 { margin-bottom: 13px; }
  .auth-showcase { min-height: clamp(290px, 76vw, 350px); margin-top: 18px; border-radius: 17px; box-shadow: 0 22px 55px rgba(0,0,0,.45); }
  .showcase-frame { inset: 0; width: 100%; height: 100%; filter: none; transform: translate3d(0,0,0) scale(1.015); transition-duration: .32s; }
  .auth-showcase:is(:hover, :focus-visible, .is-thinking) .showcase-frame-idle { transform: translate3d(0,0,0) scale(1.035); }
  .auth-showcase:is(:hover, :focus-visible, .is-thinking) .showcase-frame-thinking { transform: translate3d(0,0,0) scale(1.02); }
  .object-card { display: none; }
  .build-progress-card { bottom: 12px; width: calc(100% - 24px); }
  .showcase-toolbar { top: 10px; left: 10px; right: 10px; }
  .showcase-hint { top: 54px; right: 10px; }
  .auth-flow { margin-top: 14px; }
  .login-card { padding: 21px 17px; }

  .dashboard-view { min-height: calc(100dvh - 60px); padding: 14px 10px 42px; scrollbar-gutter: auto; }
  .dashboard-hero { gap: 18px; border-radius: 17px; padding: 22px 17px; }
  .dashboard-hero h2 { font-size: clamp(29px, 9.5vw, 40px); }
  .dashboard-hero p { font-size: 11px; }
  .dashboard-stat-card { min-height: 94px; padding: 14px; }
  .dashboard-columns, .dashboard-stats, .dashboard-shortcuts { gap: 9px; margin-top: 9px; }
  .dashboard-panel { border-radius: 15px; padding: 15px; }
  .dashboard-empty { min-height: 170px; }
  .dashboard-checklist li { min-height: 52px; padding-inline: 4px; }

  .agent-view { height: calc(100dvh - 60px); min-height: 520px; grid-template-rows: auto minmax(0,1fr) auto; }
  .connection-banner { margin: 8px 9px 0; padding: 9px 10px; }
  .connection-banner div span { font-size: 9px; }
  .chat { padding: 22px 11px 18px; }
  .welcome { padding-top: 18px; }
  .prompt-grid { gap: 8px; }
  .prompt-grid button { min-height: 70px; padding: 10px 11px; }
  .questionnaire-card { border-radius: 14px; padding: 15px; }
  .questionnaire-options { grid-template-columns: 1fr; }
  .questionnaire-option > span { min-height: 0; }
  .composer-area { padding: 8px 9px max(10px, env(safe-area-inset-bottom)); }
  .composer { border-radius: 14px; padding: 11px; }
  .composer-help { display: none; }

  .info-view { min-height: calc(100dvh - 60px); padding: 15px 10px 42px; }
  .info-hero { border-radius: 17px; padding: 21px 17px; }
  .info-hero h2 { font-size: clamp(29px, 9vw, 40px); }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions > * { width: 100%; }
  .official-plugin-card { grid-template-columns: 1fr; gap: 14px; }
  .plugin-facts > div { min-width: 0; }
  .install-grid { gap: 8px; }
  .install-grid li, .install-method, .security-grid article, .plugin-care-grid article { padding: 16px; }
  .pairing-panel, .faq-section, .permission-table, .data-panel, .policy-panel { border-radius: 15px; padding: 15px; }

  .credits-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); border-radius: 17px; }
  .credits-dialog-shell { max-height: calc(100dvh - 18px); }
  .credits-dialog-header { padding: 19px 17px 16px; }
  .credits-current, .discord-reward { margin-inline: 17px; }
  .credit-packs-heading { padding-inline: 17px; }
  .credit-packs { padding-inline: 17px; }
  .payments-notice { margin-inline: 17px; }
  .credits-dialog-footer { align-items: stretch; flex-direction: column; padding: 13px 17px; }
  .credits-dialog-footer button { width: 100%; }

  .admin-topbar { min-height: 60px; }
  .admin-main { width: calc(100% - 18px); padding-top: 14px; }
  .admin-hero, .admin-section { border-radius: 15px; padding: 16px; }
  .admin-metrics { gap: 8px; }
  .admin-metrics article { padding: 14px; }
}

@media (max-width: 380px) {
  .project-line h1 { max-width: 26vw; }
  .dashboard-hero-actions { gap: 7px; }
  .dashboard-stat-icon { width: 38px; height: 38px; }
  .admin-metrics { grid-template-columns: 1fr; }
}

@media (hover: none) {
  .conversation-menu-button { opacity: 1; }
}

/* Rovex product system v22 -------------------------------------------------
   A single, restrained visual layer shared by the public site and product. */
:root {
  --bg: #090a0d;
  --surface: #0f1115;
  --surface-soft: #13161b;
  --surface-raised: #181b21;
  --line: #252932;
  --line-strong: #383e49;
  --text: #f4f6f8;
  --text-soft: #c7ccd4;
  --muted: #89919d;
  --muted-strong: #aab1bb;
  --brand: #f4f6f8;
  --brand-strong: #dfe3e8;
  --brand-ink: #090a0d;
  --blue: #7aa2ff;
  --green: #72d6a0;
  --amber: #e0b968;
  --red: #ff7e8a;
  --focus: #9fbcff;
  --sidebar-width: 248px;
  --radius-sm: 8px;
  --radius-md: 11px;
  --radius-lg: 14px;
}

html { background: var(--bg); }

body {
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}

button,
a,
input,
textarea,
summary { transition: color .16s ease, background-color .16s ease, border-color .16s ease, opacity .16s ease; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

button:disabled,
[aria-disabled="true"] { opacity: .52; cursor: not-allowed; }

.eyebrow {
  color: var(--muted);
  font: 700 10px/1.2 var(--font-mono);
  letter-spacing: .08em;
}

.brand-mark,
.rovex-avatar,
.login-icon,
.official-plugin-identity > img,
.welcome-mark > img {
  border-color: var(--line-strong);
  border-radius: 50%;
  box-shadow: none;
}

.primary-button,
.secondary-button,
.danger-button,
.send-button,
.roblox-login-button {
  min-height: 42px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
}

.primary-button,
.send-button,
.roblox-login-button { border-color: var(--text); background: var(--text); color: var(--brand-ink); }
.primary-button:hover,
.send-button:hover,
.roblox-login-button:hover { border-color: #d9dde2; background: #d9dde2; }
.secondary-button { border-color: var(--line-strong); background: var(--surface-soft); color: var(--text-soft); }
.secondary-button:hover { border-color: #505764; background: var(--surface-raised); color: var(--text); }
.danger-button { border-color: rgba(255,126,138,.32); background: rgba(255,126,138,.07); color: #ffadb5; }
.danger-button:hover { border-color: rgba(255,126,138,.5); background: rgba(255,126,138,.12); }

/* Public landing */
.auth-gate {
  min-height: 100dvh;
  grid-template-rows: auto 1fr auto;
  gap: 26px;
  padding: 22px clamp(24px, 4vw, 64px) 20px;
  background: var(--bg);
}

.auth-gate::before,
.auth-gate::after { display: none; }

.auth-brand {
  position: relative;
  top: auto;
  left: auto;
  width: min(1240px, 100%);
  min-height: 44px;
  justify-self: center;
}

.auth-brand > a { gap: 10px; font-size: 18px; letter-spacing: -.03em; }
.auth-brand .brand-mark { width: 36px; height: 36px; }
.auth-brand-actions > span { border-color: var(--line); background: transparent; color: var(--muted); }

.language-switch {
  border-color: var(--line);
  border-radius: 9px;
  background: var(--surface);
}
.language-switch button { min-width: 34px; min-height: 30px; border-radius: 6px; }
.language-switch button.active { background: #2a2e36; color: var(--text); }

.auth-layout {
  width: min(1240px, 100%);
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr);
  align-items: start;
  gap: clamp(34px, 5vw, 70px);
  margin: clamp(24px, 5vh, 56px) auto 0;
}

.availability-pill {
  min-height: 28px;
  border-color: var(--line);
  border-radius: 7px;
  padding: 0 9px;
  background: var(--surface);
  color: var(--muted-strong);
  font-size: 9px;
}
.availability-pill > span { background: var(--green); box-shadow: none; }

.auth-copy h1 {
  max-width: 760px;
  margin: 20px 0 18px;
  font-size: clamp(48px, 5.3vw, 76px);
  line-height: 1;
  letter-spacing: -.055em;
}
.auth-copy h1 em { color: #aab1ba; }
.auth-copy > p { max-width: 660px; color: var(--muted-strong); font-size: clamp(15px, 1.3vw, 18px); line-height: 1.65; }

.auth-showcase {
  display: block;
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  margin-top: 30px;
  border-color: var(--line-strong);
  border-radius: 13px;
  background: #050506;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.showcase-frame { filter: grayscale(.86) contrast(1.03); }
.showcase-shade { background: linear-gradient(0deg, rgba(4,5,7,.64), transparent 44%); }
.showcase-toolbar,
.build-progress-card,
.object-card,
.showcase-hint {
  border-color: rgba(255,255,255,.18);
  background: rgba(8,9,11,.9);
  box-shadow: none;
  backdrop-filter: none;
}
.showcase-toolbar { border-radius: 7px; }
.build-progress-card { border-radius: 9px; }
.object-card { border-radius: 8px; }
.auth-showcase:is(:hover, :focus-visible, .is-thinking) .showcase-hint { background: var(--text); color: var(--brand-ink); }

.auth-flow { gap: 8px; margin-top: 16px; }
.auth-flow span { border: 0; padding: 6px 0; background: transparent; color: var(--muted); }
.auth-flow span b { color: var(--text-soft); }
.auth-flow i { color: #5d6570; }

.login-card {
  position: sticky;
  top: 24px;
  margin-top: 52px;
  border-color: var(--line-strong);
  border-radius: 14px;
  padding: 24px;
  background: var(--surface);
  box-shadow: 0 24px 64px rgba(0,0,0,.28);
  backdrop-filter: none;
}
.login-card-top { margin-bottom: 20px; }
.login-icon { width: 42px; height: 42px; margin: 0; }
.oauth-badge { border-color: var(--line); border-radius: 7px; padding: 6px 8px; background: var(--surface-soft); }
.login-card h2 { margin: 7px 0 8px; font-size: 23px; letter-spacing: -.035em; }
.login-card > p { color: var(--muted); font-size: 12px; line-height: 1.55; }
.roblox-login-button { margin: 20px 0 18px; padding: 0 14px; }
.permission-heading { margin: 17px 0 7px; }
.permission-heading strong { font-size: 11px; }
.permission-heading span { color: var(--muted); }
.permission-list { gap: 0; border-block: 1px solid var(--line); }
.permission-list li {
  min-height: 58px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 9px 0;
  background: transparent;
}
.permission-list li:last-child { border-bottom: 0; }
.permission-check { width: 25px; height: 25px; border-radius: 50%; background: rgba(114,214,160,.1); color: var(--green); }
.permission-list strong { font-size: 11px; }
.permission-list small { font-size: 10px; }
.permission-list b { border: 0; padding: 0; color: var(--green); }
.login-trust-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 13px; }
.login-trust-grid span { border: 0; padding: 0; background: transparent; color: var(--muted); font-size: 9px; }
.login-trust-grid b { font-size: 11px; }
.login-card .auth-promise { margin-top: 11px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.login-card .legal-copy { margin-top: 13px; color: #707884; font-size: 9px; }
.auth-error,
.auth-notice { margin: -7px 0 14px; border-radius: 8px; padding: 10px 11px; font-size: 11px; }
.auth-error { border-color: rgba(255,126,138,.32); background: rgba(255,126,138,.08); color: #ffb3ba; }
.auth-notice { border: 1px solid rgba(114,214,160,.28); background: rgba(114,214,160,.08); color: #a7e7c3; }
.auth-footer { width: min(1240px, 100%); border-color: var(--line); color: #707884; }
.auth-footer p { font-size: 10px; }

/* Product shell and navigation */
.app-shell { background: var(--bg); }
.sidebar {
  padding: 16px 12px 12px;
  border-color: var(--line);
  background: #0b0d10;
}
.sidebar-top { padding-inline: 5px; }
.brand-mark { width: 34px; height: 34px; }
.brand-copy strong { font-size: 17px; }
.brand-copy small { color: var(--muted); font-size: 10px; }
.new-chat-button {
  min-height: 42px;
  margin: 22px 0 12px;
  border-color: var(--line-strong);
  border-radius: 9px;
  background: var(--surface-soft);
  font-size: 12px;
}
.new-chat-button:hover { border-color: #525966; background: var(--surface-raised); }
kbd { border-color: var(--line-strong); background: #0d0f12; color: var(--muted); }
.primary-nav { gap: 2px; }
.nav-item { min-height: 40px; border-radius: 8px; color: var(--muted-strong); font-size: 12px; }
.nav-item:hover { background: #14171c; }
.nav-item.active { background: #1b1e24; color: var(--text); }
.nav-item.active > span { color: var(--text); }
.nav-item.nav-credits { min-height: 54px; margin-top: 8px; border: 1px solid var(--line); background: #101216; }
.nav-item.nav-credits:hover { border-color: var(--line-strong); background: #15181d; }
.recent-section { min-height: 110px; flex: 1; margin-top: 22px; overflow-y: auto; }
.sidebar-label-row h2,
.sidebar-label-row span { color: #777f8b; font-size: 9px; }
.recent-entry { border-radius: 7px; }
.recent-entry:hover,
.recent-entry:focus-within { background: #14171b; }
.recent-item { min-height: 42px; border-radius: 7px; }
.recent-item.active { background: #1a1d22; color: var(--text); }
.recent-item strong { font-size: 11px; }
.studio-card { margin-top: 12px; border-color: var(--line); border-radius: 11px; background: var(--surface); box-shadow: none; }
.studio-logo { border-radius: 50%; }
.studio-card p { font-size: 9px; }
.connection-state { color: var(--muted-strong); }
.studio-action { border-color: var(--line-strong); border-radius: 8px; background: var(--surface-soft); }
.security-card { border: 1px solid transparent; }
.security-card:hover { border-color: var(--line); background: var(--surface); }
.delete-account-button { color: #6f7681; }

.workspace { background: var(--bg); }
.topbar {
  min-height: 64px;
  padding: 0 22px;
  border-color: var(--line);
  background: rgba(9,10,13,.96);
  backdrop-filter: none;
}
.project-line h1 { font-size: 14px; }
.mode-label { border-color: var(--line); border-radius: 6px; background: var(--surface); color: var(--muted); }
.top-actions { gap: 8px; }
.backend-status { color: var(--muted); }
.credits-button { border-color: var(--line-strong); border-radius: 9px; background: var(--surface); }
.credits-button:hover,
.credits-button:focus-visible { border-color: #525966; background: var(--surface-soft); }
.credits-symbol,
.credits-buy-label { border-radius: 7px; }
.account-button { border-color: var(--line); border-radius: 9px; background: var(--surface); }
.account-button:hover,
.account-button[aria-expanded="true"] { border-color: var(--line-strong); background: var(--surface-soft); }
.account-avatar { border-radius: 50%; background-color: #242830; }
.account-menu {
  width: 270px;
  border-color: var(--line-strong);
  border-radius: 11px;
  background: #111318;
  box-shadow: 0 20px 56px rgba(0,0,0,.5);
  backdrop-filter: none;
}
.account-menu header { background: #15181d; }

/* Dashboard */
.dashboard-view {
  padding: 28px clamp(20px, 3vw, 42px) 60px;
  background: var(--bg);
}
.dashboard-view::before,
.dashboard-hero::after { display: none; }
.dashboard-view > * { width: min(1160px, 100%); }
.dashboard-hero {
  min-height: 250px;
  grid-template-columns: minmax(0,1fr) 176px;
  gap: 30px;
  border-color: var(--line-strong);
  border-radius: 14px;
  padding: clamp(26px, 4vw, 42px);
  background: var(--surface);
  box-shadow: none;
}
.dashboard-hero h2 { margin: 9px 0 13px; font-size: clamp(34px, 4vw, 50px); letter-spacing: -.05em; }
.dashboard-hero h2 em { color: var(--muted-strong); }
.dashboard-hero p { color: var(--muted-strong); font-size: 13px; }
.dashboard-hero-mark { min-height: 160px; border-color: var(--line); border-radius: 11px; background: #0b0d10; box-shadow: none; }
.dashboard-hero-mark img { width: 88px; height: 88px; border-radius: 50%; }
.dashboard-stats,
.dashboard-columns,
.dashboard-shortcuts { gap: 10px; margin-top: 10px; }
.dashboard-stat-card,
.dashboard-panel,
.dashboard-shortcuts > button {
  border-color: var(--line);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: none;
}
.dashboard-stat-card { min-height: 100px; padding: 16px; }
.dashboard-stat-card:hover,
.dashboard-shortcuts > button:hover,
.dashboard-recent-item:hover { border-color: var(--line-strong); background: var(--surface-soft); }
.dashboard-stat-icon { border-color: var(--line); border-radius: 9px; background: var(--surface-soft); }
.dashboard-stat-card small { color: var(--muted); font-size: 8px; }
.dashboard-stat-card strong { font-size: 13px; }
.dashboard-stat-card > div > span { color: var(--muted); font-size: 10px; }
.dashboard-panel { padding: 20px; }
.dashboard-panel-heading h3 { font-size: 17px; }
.dashboard-panel-heading button { color: var(--muted-strong); font-size: 10px; }
.dashboard-recent-item { border-color: var(--line); border-radius: 9px; background: #0c0e11; }
.dashboard-recent-item strong { font-size: 12px; }
.dashboard-recent-item small { color: var(--muted); font-size: 9px; }
.dashboard-empty { min-height: 195px; border-color: var(--line-strong); border-radius: 10px; background: #0c0e11; }
.dashboard-empty strong { font-size: 12px; }
.dashboard-empty p { color: var(--muted); font-size: 10px; }
.dashboard-progress { background: #242831; }
.dashboard-progress span { background: var(--text); }
.dashboard-checklist li.current { background: var(--surface-soft); }
.dashboard-checklist strong { font-size: 11px; }
.dashboard-checklist small { color: var(--muted); font-size: 9px; }
.dashboard-shortcuts > button { min-height: 78px; }
.dashboard-shortcuts strong { font-size: 11px; }
.dashboard-shortcuts small { color: var(--muted); font-size: 9px; }

/* Agent and generated-work states */
.agent-view { background: var(--bg); }
.connection-banner {
  margin: 12px 20px 0;
  border-color: var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.connection-banner.connected { border-color: rgba(114,214,160,.28); background: rgba(114,214,160,.06); }
.banner-icon { border-radius: 8px; background: var(--surface-raised); color: var(--text-soft); }
.connection-banner strong { font-size: 12px; }
.connection-banner span { font-size: 10px; }
.connection-banner button { color: var(--text-soft); }
.connection-banner button:hover { background: var(--surface-raised); }
.chat { padding: 34px max(22px, calc((100% - 820px) / 2)) 26px; }
.welcome { max-width: 760px; margin-top: clamp(16px, 4vh, 42px); text-align: left; }
.welcome-mark { width: 54px; height: 54px; margin: 0 0 17px; }
.welcome-mark > img { width: 46px; height: 46px; }
.welcome-mark i { display: none; }
.welcome h2 { font-size: clamp(32px, 4vw, 46px); letter-spacing: -.05em; }
.welcome > p { max-width: 650px; margin: 12px 0 0; color: var(--muted-strong); font-size: 14px; }
.prompt-grid { max-width: none; margin-top: 26px; }
.prompt-grid button {
  min-height: 74px;
  border-color: var(--line);
  border-radius: 10px;
  background: var(--surface);
  transform: none;
}
.prompt-grid button:hover { transform: none; border-color: var(--line-strong); background: var(--surface-soft); }
.prompt-icon,
.prompt-icon.pets,
.prompt-icon.coins,
.prompt-icon.part,
.prompt-icon.ui { border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); color: var(--text-soft); }
.prompt-grid strong { font-size: 12px; }
.prompt-grid small { color: var(--muted); font-size: 10px; }
.how-it-works { justify-content: flex-start; color: var(--muted); }
.how-it-works b { border-color: var(--line-strong); }
.how-it-works i { background: var(--line); }
.timeline { max-width: 820px; gap: 24px; }
.message-meta strong { font-size: 12px; }
.message-meta time { color: var(--muted); }
.user-avatar { border-radius: 50%; background: #2a2e36; }
.user-message p { border-color: var(--line-strong); border-radius: 12px 4px 12px 12px; background: var(--surface-raised); color: var(--text); }
.assistant-card,
.questionnaire-card,
.run-card {
  border-color: var(--line);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: none;
}
.assistant-heading h3 { font-size: 16px; }
.assistant-answer { color: var(--text-soft); }
.fit-badge { border: 1px solid var(--line); border-radius: 6px; background: var(--surface-soft); }
.fit-badge.ready { border-color: rgba(114,214,160,.25); background: rgba(114,214,160,.07); color: #9ae2bb; }
.fit-badge.partial { border-color: rgba(122,162,255,.26); background: rgba(122,162,255,.07); color: #adc4ff; }
.fit-badge.future { border-color: rgba(224,185,104,.26); background: rgba(224,185,104,.07); color: #e8c985; }
.plan-list { border-color: var(--line); border-radius: 9px; }
.plan-list li { border-color: var(--line); }
.plan-list li::before { border-color: var(--line-strong); border-radius: 6px; color: var(--text-soft); }
.execution-note { background: var(--surface-soft); }
.inline-connect-button { border-color: var(--line-strong); background: var(--surface-soft); color: var(--text-soft); }
.inline-connect-button:hover { background: var(--surface-raised); }
.questionnaire-card { background: var(--surface); }
.questionnaire-fieldset { border-color: var(--line); }
.questionnaire-option > span { border-color: var(--line); border-radius: 9px; background: #0c0e11; }
.questionnaire-option:hover > span { border-color: var(--line-strong); transform: none; }
.questionnaire-option input:checked + span { border-color: var(--blue); background: rgba(122,162,255,.08); box-shadow: none; }
.run-card > header,
.progress-item { border-color: var(--line); }
.run-pulse { background: var(--blue); box-shadow: none; }
.run-state { border: 1px solid rgba(122,162,255,.25); border-radius: 6px; background: rgba(122,162,255,.07); color: #adc4ff; }
.composer-area { width: min(840px, calc(100% - 44px)); padding-bottom: 16px; }
.composer {
  border-color: var(--line-strong);
  border-radius: 12px;
  background: #111318;
  box-shadow: 0 16px 42px rgba(0,0,0,.28);
}
.composer:focus-within { border-color: #737c8a; box-shadow: 0 16px 42px rgba(0,0,0,.32), 0 0 0 3px rgba(159,188,255,.08); }
.composer > label { color: var(--muted); }
.composer textarea { font-size: 14px; }
.composer textarea::placeholder { color: #6f7782; }
.composer-context { color: var(--muted); }
.safe-badge { border-radius: 6px; color: var(--muted-strong); }
.send-button { min-width: 86px; }

/* Installation, security and information views */
.info-view { padding: 34px max(22px, calc((100% - 1080px) / 2)) 70px; background: var(--bg); }
.info-hero {
  border-color: var(--line-strong);
  border-radius: 14px;
  padding: clamp(26px, 4vw, 42px);
  background: var(--surface);
}
.info-hero::after { display: none; }
.info-hero h2 { font-size: clamp(34px, 4.6vw, 50px); letter-spacing: -.05em; }
.info-hero > p { color: var(--muted-strong); font-size: 13px; }
.trust-row span,
.safe-badge { border-color: var(--line); background: var(--surface-soft); color: var(--muted-strong); }
.official-plugin-card {
  border-color: var(--line-strong);
  border-radius: 11px;
  background: #0b0d10;
  box-shadow: none;
  backdrop-filter: none;
}
.official-plugin-identity > img { border-radius: 50%; }
.official-plugin-identity p { font-size: 11px; }
.official-plugin-badge { border-radius: 6px; background: var(--surface-soft); }
.official-plugin-badge.review,
.review-badge {
  border-color: rgba(224,185,104,.3);
  background: rgba(224,185,104,.08);
  color: #e8c985;
}
.review-state { color: #e8c985 !important; }
.store-status-button {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 800;
}
.disabled-store-button,
.store-status-button {
  border: 1px solid var(--line-strong);
  background: var(--surface-soft);
  color: var(--muted-strong);
  cursor: not-allowed;
  pointer-events: none;
}
.store-status-button { width: max-content; margin-top: 15px; padding: 0 12px; }
.plugin-facts > div { border-color: var(--line); }
.plugin-facts dt { color: var(--muted); }
.plugin-facts button { border-color: var(--line-strong); background: var(--surface-soft); }
.setup-status,
.install-method,
.install-grid li,
.plugin-care-grid article,
.pairing-panel,
.faq-section,
.security-grid article,
.permission-table,
.data-panel,
.policy-panel {
  border-color: var(--line);
  border-radius: 11px;
  background: var(--surface);
}
.setup-status { background: rgba(114,214,160,.06); }
.setup-status.error { background: rgba(255,126,138,.07); }
.install-method.recommended-method { border-color: var(--line-strong); background: var(--surface-soft); }
.method-icon,
.care-icon,
.feature-icon { border-color: var(--line); border-radius: 8px; background: var(--surface-soft); color: var(--text-soft); }
.install-method p,
.install-grid p,
.plugin-care-grid p,
.security-grid p,
.data-panel p,
.policy-panel p,
.faq-section details p { color: var(--muted); font-size: 11px; }
.section-heading h3 { font-size: 17px; }
.connection-values > div { border-color: var(--line); background: #0c0e11; }
.connection-values button,
.verified-value { border-color: var(--line-strong); background: var(--surface-soft); }
.permission-note > span { border-color: var(--line-strong); color: var(--muted-strong); }
.faq-section details,
.permission-row { border-color: var(--line); }
.permission-row span { color: var(--muted); }
.permission-row b { border: 1px solid rgba(114,214,160,.25); border-radius: 6px; background: rgba(114,214,160,.07); color: #9ae2bb; }
.permission-row.locked b { border-color: rgba(255,126,138,.25); background: rgba(255,126,138,.07); color: #ffadb5; }
.policy-panel { border-color: var(--line); background: var(--surface); }

/* Dialogs, feedback and empty/error states */
.conversation-dialog,
.logout-dialog,
.credits-dialog,
.setup-dialog {
  border-color: var(--line-strong);
  border-radius: 14px;
  background: #111318;
  box-shadow: 0 28px 84px rgba(0,0,0,.62);
}
.conversation-dialog::backdrop,
.logout-dialog::backdrop,
.credits-dialog::backdrop,
.setup-dialog::backdrop { background: rgba(2,3,5,.78); backdrop-filter: none; }
.conversation-dialog-icon,
.logout-dialog-icon { border-color: var(--line); border-radius: 9px; background: var(--surface-raised); }
.conversation-title-field input { min-height: 44px; border-color: var(--line-strong); border-radius: 8px; background: #0b0d10; }
.conversation-title-field input:focus { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(159,188,255,.08); }
.credits-dialog-header,
.credits-dialog-footer { border-color: var(--line); background: #111318; }
.credits-current,
.discord-reward,
.credit-pack { border-color: var(--line); border-radius: 10px; background: #0d0f13; }
.credit-pack.featured { border-color: #555c68; background: var(--surface-raised); box-shadow: none; }
.credits-current-mark,
.discord-reward-icon { border-radius: 8px; }
.payments-notice { border-color: var(--line); border-radius: 9px; background: var(--surface-soft); }
.toast-region { right: 16px; bottom: 16px; }
.toast { max-width: 360px; border-color: var(--line-strong); border-radius: 9px; background: #181b21; color: var(--text-soft); box-shadow: 0 16px 42px rgba(0,0,0,.42); font-size: 12px; }
.toast.error { border-color: rgba(255,126,138,.35); background: #211417; color: #ffb1b8; }
.status-dot { box-shadow: none; }
.status-dot.connected { background: var(--green); }
.status-dot.searching { background: var(--amber); }
.status-dot.error { background: var(--red); }

/* Admin and legal surfaces */
.admin-page,
.legal-page { background: var(--bg); }
.admin-topbar { min-height: 64px; border-color: var(--line); background: rgba(9,10,13,.96); backdrop-filter: none; }
.admin-main { padding-top: 30px; }
.admin-hero,
.admin-metrics article,
.admin-section { border-color: var(--line); border-radius: 11px; background: var(--surface); }
.admin-hero { padding: 28px; }
.admin-hero h1 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -.05em; }
.admin-hero p { color: var(--muted-strong); }
.admin-identity { border-color: var(--line-strong); border-radius: 9px; background: var(--surface-soft); }
.admin-metrics article { padding: 17px; }
.admin-section { padding: 21px; }
.admin-table-wrap { border-color: var(--line); border-radius: 9px; }
.admin-table { background: #0d0f12; }
.admin-table th { background: #15181d; }
.admin-table th,
.admin-table td { border-color: var(--line); }
.legal-page main { width: min(760px, calc(100% - 40px)); padding-top: 34px; }
.legal-toolbar { margin-bottom: 60px; }
.legal-page h1 { letter-spacing: -.05em; }
.legal-page h2 { margin-top: 34px; }
.legal-page p { color: var(--muted-strong); }

@media (max-width: 1100px) {
  .auth-layout { grid-template-columns: minmax(0,1fr) minmax(330px,.72fr); gap: 30px; }
  .auth-copy h1 { font-size: clamp(46px, 6.3vw, 66px); }
  .dashboard-columns { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  .auth-gate { padding-top: 18px; }
  .auth-layout { grid-template-columns: 1fr; gap: 28px; margin-top: 18px; }
  .auth-copy { text-align: left; }
  .auth-copy > p { margin-inline: 0; }
  .auth-flow { justify-content: flex-start; }
  .login-card { position: static; width: min(620px,100%); margin: 0; }
  .dashboard-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 780px) {
  body { overflow: auto; }
  .app-shell { min-height: 100dvh; }
  .sidebar { width: min(88vw,320px); height: 100dvh; box-shadow: 18px 0 52px rgba(0,0,0,.56); }
  .mobile-scrim { background: rgba(2,3,5,.74); }
  .workspace { min-height: 100dvh; }
  .topbar { min-height: 58px; padding: 0 10px; }
  .top-actions .secondary-button { min-width: 42px; }
  .account-menu { top: 64px; right: 8px; }
  .dashboard-view { min-height: calc(100dvh - 58px); padding: 14px 10px 42px; }
  .dashboard-hero { grid-template-columns: 1fr; min-height: 0; padding: 24px 20px; }
  .dashboard-hero-mark { display: none; }
  .dashboard-stats,
  .dashboard-shortcuts { grid-template-columns: 1fr; }
  .dashboard-stats > :last-child { grid-column: auto; }
  .agent-view {
    flex: 0 0 calc(100dvh - 58px);
    height: calc(100dvh - 58px);
    min-height: 0;
    overflow: hidden;
    grid-template-rows: auto minmax(0,1fr) auto;
  }
  .connection-banner { margin: 8px 9px 0; }
  .chat { padding: 24px 12px 20px; }
  .composer-area { width: 100%; padding: 8px 9px max(10px,env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 18%); }
  .info-view { min-height: calc(100dvh - 58px); padding: 15px 10px 42px; }
  .install-method-grid,
  .install-grid,
  .security-grid,
  .plugin-care-grid { grid-template-columns: 1fr; }
  .data-panel,
  .policy-panel { align-items: flex-start; flex-direction: column; }
  .data-actions { justify-content: flex-start; }
  .admin-main { width: calc(100% - 20px); padding-top: 14px; }
}

@media (max-width: 600px) {
  .auth-gate { gap: 20px; padding: 14px 14px 22px; }
  .auth-brand { min-height: 40px; }
  .auth-brand-actions > span { display: none; }
  .auth-layout { gap: 22px; margin-top: 10px; }
  .auth-copy h1 { margin-top: 16px; font-size: clamp(39px, 12.5vw, 52px); }
  .auth-copy > p { font-size: 14px; }
  .auth-showcase { min-height: 0; aspect-ratio: 4 / 3; margin-top: 22px; border-radius: 11px; box-shadow: 0 18px 44px rgba(0,0,0,.38); }
  .showcase-frame { width: 100%; height: 100%; inset: 0; }
  .showcase-toolbar { top: 8px; left: 8px; right: 8px; }
  .showcase-hint { top: 50px; right: 8px; }
  .build-progress-card { bottom: 8px; width: calc(100% - 16px); min-height: 52px; }
  .auth-flow { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 12px; }
  .auth-flow span { min-width: 0; display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 9px; }
  .auth-flow i { display: none; }
  .login-card { border-radius: 12px; padding: 20px 17px; }
  .login-trust-grid { gap: 8px 14px; }
  .auth-footer { gap: 6px; }

  .project-line h1 { max-width: 30vw; font-size: 12px; }
  .dashboard-hero { border-radius: 11px; padding: 22px 18px; }
  .dashboard-hero h2 { font-size: clamp(30px,10vw,40px); }
  .dashboard-stat-card { min-height: 90px; }
  .dashboard-panel { border-radius: 11px; padding: 16px; }
  .dashboard-empty { grid-template-columns: auto minmax(0,1fr); min-height: 160px; }
  .dashboard-empty button { grid-column: 1/-1; }
  .dashboard-shortcuts > button { min-height: 72px; }

  .connection-banner { grid-template-columns: 1fr; padding: 10px 11px; }
  .connection-banner .banner-icon { display: none; }
  .connection-banner button { grid-column: 1; justify-self: start; padding-left: 0; }
  .welcome { padding-top: 10px; }
  .welcome h2 { font-size: clamp(30px,10vw,40px); }
  .prompt-grid { grid-template-columns: 1fr; gap: 8px; margin-top: 22px; }
  .prompt-grid button { min-height: 68px; }
  .how-it-works { display: none; }
  .user-message { max-width: 94%; }
  .assistant-card { padding: 15px; }
  .composer { border-radius: 11px; padding: 10px; }
  .composer-help { display: none; }
  .send-button { min-width: 44px; width: 44px; }
  .send-button span:first-child { display: none; }

  .info-hero { border-radius: 11px; padding: 22px 18px; }
  .info-hero h2 { font-size: clamp(30px,9.5vw,40px); }
  .official-plugin-card,
  .pairing-panel,
  .faq-section,
  .permission-table,
  .data-panel,
  .policy-panel { border-radius: 11px; padding: 16px; }
  .official-plugin-card { grid-template-columns: 1fr; }
  .plugin-facts { display: grid; grid-template-columns: 1fr; }
  .plugin-facts > div { border-top: 1px solid var(--line); border-left: 0; padding: 10px 0 0; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-heading > button { width: 100%; }
  .permission-row { align-items: flex-start; flex-direction: column; gap: 8px; padding: 13px 0; }
  .data-actions,
  .data-actions > * { width: 100%; }

  .conversation-dialog,
  .logout-dialog,
  .credits-dialog,
  .setup-dialog {
    width: 100%;
    max-width: none;
    max-height: 92dvh;
    margin: auto 0 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 16px 16px 0 0;
  }
  .conversation-dialog form,
  .logout-dialog { padding: 22px 18px max(22px,env(safe-area-inset-bottom)); }
  .conversation-dialog-actions,
  .logout-dialog-actions { flex-direction: column-reverse; }
  .conversation-dialog-actions button,
  .logout-dialog-actions button { width: 100%; }
  .credits-dialog-shell,
  .dialog-shell { max-height: 92dvh; }
  .credits-dialog-header { padding: 20px 17px 16px; }
  .credits-current,
  .discord-reward,
  .payments-notice { margin-inline: 17px; }
  .discord-reward { grid-template-columns: 1fr; }
  .discord-reward-actions { grid-column: auto; grid-template-columns: 1fr; }
  .credit-packs { grid-template-columns: 1fr; padding-inline: 17px; }
  .credit-pack p { min-height: 0; }
  .credits-dialog-footer { align-items: stretch; flex-direction: column; padding: 13px 17px max(13px,env(safe-area-inset-bottom)); }
  .credits-dialog-footer button { width: 100%; }
  .toast-region { right: 10px; bottom: max(10px,env(safe-area-inset-bottom)); left: 10px; }
  .toast { width: 100%; max-width: none; }

  .admin-hero,
  .admin-section { border-radius: 11px; }
  .admin-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .legal-page main { width: calc(100% - 30px); padding-top: 24px; }
  .legal-toolbar { margin-bottom: 44px; }
}

@media (max-width: 380px) {
  .auth-flow { grid-template-columns: 1fr; }
  .auth-flow span { grid-template-columns: 24px 1fr; }
  .admin-metrics { grid-template-columns: 1fr; }
}

/* Rovex product system v23
   Plain, technical and intentionally free of decorative AI-tool styling. */
:root {
  --bg: #08090b;
  --surface: #0d0f12;
  --surface-soft: #121419;
  --surface-raised: #171a20;
  --line: #242830;
  --line-strong: #3a404b;
  --text: #f3f4f6;
  --text-soft: #c8cdd5;
  --muted: #858d99;
  --muted-strong: #aab1bb;
  --brand: #f3f4f6;
  --brand-strong: #d7dbe1;
  --brand-ink: #08090b;
  --blue: #8da9e8;
  --green: #83c79e;
  --amber: #d2ad6f;
  --red: #eb8790;
  --focus: #a9c1f5;
  --sidebar-width: 244px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
}

html,
body { background: var(--bg); }

body {
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}

h1,
h2,
h3,
h4,
strong,
.brand-copy strong,
.auth-brand > a { letter-spacing: 0; }

button,
a,
input,
textarea,
summary { transition: border-color .14s ease, background-color .14s ease, color .14s ease, opacity .14s ease; }

.eyebrow,
.availability-pill,
.oauth-badge,
.mode-label,
.run-state,
.fit-badge,
.method-label,
.pack-label,
.admin-state {
  letter-spacing: .06em;
}

.brand-mark,
.rovex-avatar,
.login-icon,
.studio-logo,
.official-plugin-identity > img,
.welcome-mark > img {
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #000;
  box-shadow: none;
}

.primary-button,
.secondary-button,
.danger-button,
.send-button,
.roblox-login-button,
.icon-button,
.studio-action {
  min-height: 40px;
  border-radius: 6px;
  box-shadow: none;
}

.primary-button,
.send-button,
.roblox-login-button {
  border: 1px solid var(--text);
  background: var(--text);
  color: var(--brand-ink);
}

.primary-button:hover,
.send-button:hover,
.roblox-login-button:hover {
  border-color: #d8dbe0;
  background: #d8dbe0;
}

.secondary-button,
.studio-action {
  border: 1px solid var(--line-strong);
  background: var(--surface-soft);
  color: var(--text-soft);
}

.secondary-button:hover,
.studio-action:hover {
  border-color: #545b68;
  background: var(--surface-raised);
  color: var(--text);
}

/* Landing */
.auth-gate {
  min-height: 100dvh;
  grid-template-rows: auto 1fr auto;
  align-content: initial;
  gap: 26px;
  padding: 20px clamp(20px, 4vw, 56px) 18px;
  background: var(--bg);
}

.auth-gate::before,
.auth-gate::after { display: none; }

.auth-brand {
  position: relative;
  top: auto;
  left: auto;
  width: min(1160px, 100%);
  min-height: 42px;
  justify-self: center;
}

.auth-brand > a { gap: 10px; font-size: 18px; text-decoration: none; }
.auth-brand .brand-mark { width: 34px; height: 34px; }
.auth-brand-actions > span { border: 0; padding: 0; background: transparent; color: var(--muted); }

.language-switch {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.language-switch button { min-width: 32px; min-height: 28px; border-radius: 4px; }
.language-switch button.active { background: var(--surface-raised); color: var(--text); }

.auth-layout {
  width: min(1160px, 100%);
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: clamp(44px, 6vw, 88px);
  margin: clamp(20px, 5vh, 58px) auto 0;
}

.auth-copy { min-width: 0; }
.auth-copy > .availability-pill {
  margin: 0 0 18px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
}
.auth-copy > .availability-pill > span { width: 7px; height: 7px; background: var(--green); box-shadow: none; }

.auth-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(46px, 5.6vw, 74px);
  line-height: 1.02;
  letter-spacing: 0;
}

.auth-copy h1 em { color: var(--muted-strong); font-style: normal; font-weight: 500; }
.auth-copy > p { max-width: 660px; margin: 20px 0 0; color: var(--muted-strong); font-size: clamp(15px, 1.25vw, 18px); line-height: 1.65; }

.auth-primary-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 26px; }
.auth-primary-actions .primary-button { padding-inline: 16px; }
.text-link { color: var(--text-soft); font-size: 12px; font-weight: 700; text-underline-offset: 4px; }
.text-link:hover { color: var(--text); }

.product-proof {
  margin-top: 36px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
}

.product-proof > header {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 10px 14px;
}

.product-proof > header > div { display: flex; align-items: center; gap: 10px; }
.product-proof > header img { width: 30px; height: 30px; border-radius: 50%; }
.product-proof > header span span,
.product-proof > header > div > span { display: grid; gap: 1px; }
.product-proof > header strong { font-size: 12px; }
.product-proof > header small { color: var(--muted); font: 700 8px/1.3 var(--font-mono); letter-spacing: .06em; }
.proof-state { display: flex !important; grid-auto-flow: column; align-items: center; gap: 7px !important; color: var(--muted-strong); font-size: 10px; }
.proof-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

.proof-request { display: grid; gap: 6px; border-bottom: 1px solid var(--line); padding: 15px 16px; background: #0a0c0f; }
.proof-request > span { color: var(--muted); font: 700 8px var(--font-mono); letter-spacing: .06em; }
.proof-request p { margin: 0; color: var(--text-soft); font: 500 12px/1.55 var(--font-mono); }
.proof-steps { margin: 0; padding: 0; list-style: none; }
.proof-steps li { min-height: 64px; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 10px 16px; }
.proof-steps li > b { color: #666e7a; font: 700 9px var(--font-mono); }
.proof-steps li > span { display: grid; gap: 2px; }
.proof-steps strong { color: var(--text-soft); font-size: 11px; }
.proof-steps small { color: var(--muted); font-size: 10px; }
.proof-steps em { color: #737c89; font: 700 8px var(--font-mono); font-style: normal; letter-spacing: .06em; }
.product-proof > footer { display: flex; flex-wrap: wrap; gap: 7px; padding: 11px 14px; }
.product-proof > footer span { border-left: 1px solid var(--line-strong); padding-left: 7px; color: #717986; font: 600 8px var(--font-mono); }

.login-card {
  position: sticky;
  top: 20px;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 22px;
  background: var(--surface);
  box-shadow: none;
  backdrop-filter: none;
}

.login-card-top { margin-bottom: 18px; }
.login-icon { width: 40px; height: 40px; margin: 0; }
.oauth-badge { border: 1px solid var(--line); border-radius: 4px; padding: 5px 7px; background: transparent; color: var(--muted); }
.login-card h2 { margin: 7px 0 8px; font-size: 22px; letter-spacing: 0; }
.login-card > p { color: var(--muted); font-size: 12px; }
.roblox-login-button { margin: 18px 0 16px; padding: 0 13px; }
.permission-heading { margin: 16px 0 7px; }
.permission-list { gap: 0; border-block: 1px solid var(--line); }
.permission-list li { min-height: 56px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 0; background: transparent; }
.permission-list li:last-child { border-bottom: 0; }
.permission-check { width: 24px; height: 24px; border-radius: 50%; background: rgba(131,199,158,.09); color: var(--green); }
.permission-list strong { font-size: 11px; }
.permission-list small { font-size: 9px; }
.permission-list b { color: var(--green); }
.login-trust-grid { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 12px; }
.login-trust-grid span { border: 0; padding: 0; background: transparent; color: var(--muted); font-size: 9px; }
.login-card .auth-promise { color: var(--muted); }
.auth-footer { width: min(1160px, 100%); border-color: var(--line); color: #707783; }

/* Application shell */
.app-shell { background: var(--bg); }
.sidebar { padding: 15px 11px 12px; border-color: var(--line); background: #0a0c0f; }
.brand-mark { width: 32px; height: 32px; }
.brand-copy strong { font-size: 16px; }
.brand-copy small { color: var(--muted); font-size: 9px; }
.new-chat-button { min-height: 40px; margin: 20px 0 11px; border-color: var(--line-strong); border-radius: 6px; background: var(--surface-soft); font-size: 12px; }
.new-chat-button:hover { border-color: #525966; background: var(--surface-raised); }
.nav-item { min-height: 38px; border-radius: 5px; color: var(--muted-strong); font-size: 12px; }
.nav-item:hover { background: var(--surface-soft); }
.nav-item.active { background: var(--surface-raised); color: var(--text); }
.nav-item.active > span { color: var(--text); }
.nav-item.nav-credits { min-height: 52px; border: 1px solid var(--line); border-radius: 6px; background: transparent; }
.nav-item.nav-credits:hover { border-color: var(--line-strong); background: var(--surface-soft); }
.nav-item > .nav-credits-icon,
.nav-item > .nav-credits-arrow { border-radius: 5px; }
.recent-section { flex: 1; min-height: 110px; margin-top: 20px; overflow-y: auto; }
.recent-entry,
.recent-item { border-radius: 5px; }
.recent-entry:hover,
.recent-entry:focus-within,
.recent-item.active { background: var(--surface-soft); }
.conversation-menu { border-color: var(--line-strong); border-radius: 6px; background: #111318; backdrop-filter: none; }
.conversation-menu > button { border-radius: 4px; }
.studio-card { margin-top: 10px; border-color: var(--line); border-radius: 6px; background: var(--surface); box-shadow: none; }
.studio-logo { border-radius: 50%; }
.security-card { border: 1px solid transparent; border-radius: 6px; }
.security-card:hover { border-color: var(--line); background: var(--surface); }

.workspace { background: var(--bg); }
.topbar { min-height: 62px; padding: 0 20px; border-color: var(--line); background: var(--bg); backdrop-filter: none; }
.project-line h1 { font-size: 13px; }
.mode-label { border-color: var(--line); border-radius: 4px; background: transparent; color: var(--muted); }
.credits-button,
.account-button { border-color: var(--line); border-radius: 6px; background: var(--surface); }
.credits-button:hover,
.account-button:hover,
.account-button[aria-expanded="true"] { border-color: var(--line-strong); background: var(--surface-soft); }
.credits-symbol,
.credits-buy-label { border-radius: 4px; }
.account-avatar { border-radius: 50%; }
.account-menu { border-color: var(--line-strong); border-radius: 6px; background: #111318; box-shadow: 0 16px 44px rgba(0,0,0,.48); backdrop-filter: none; }
.account-menu header { background: var(--surface-soft); }

/* Dashboard: hierarchy first, cards only where they carry real data. */
.dashboard-view { padding: 30px clamp(20px, 3vw, 40px) 56px; background: var(--bg); }
.dashboard-view::before,
.dashboard-hero::after { display: none; }
.dashboard-view > * { width: min(1120px, 100%); }
.dashboard-hero { min-height: 0; display: block; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 12px 0 30px; background: transparent; box-shadow: none; }
.dashboard-hero h2 { margin: 9px 0 12px; font-size: clamp(34px, 4vw, 50px); line-height: 1.08; letter-spacing: 0; }
.dashboard-hero h2 em { color: var(--muted-strong); font-style: normal; font-weight: 500; }
.dashboard-hero p { color: var(--muted-strong); font-size: 13px; }
.dashboard-hero-actions { margin-top: 20px; }
.dashboard-hero-mark { display: none; }
.dashboard-stats { gap: 0; margin-top: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; }
.dashboard-stat-card { min-height: 90px; border: 0; border-right: 1px solid var(--line); border-radius: 0; padding: 14px 16px; background: var(--surface); box-shadow: none; }
.dashboard-stat-card:last-child { border-right: 0; }
.dashboard-stat-card:hover { border-color: var(--line); background: var(--surface-soft); }
.dashboard-stat-icon { width: 36px; height: 36px; border-color: var(--line); border-radius: 5px; background: transparent; }
.dashboard-stat-card small { color: var(--muted); }
.dashboard-stat-card > div > span { color: var(--muted); }
.dashboard-columns { gap: 12px; margin-top: 12px; }
.dashboard-panel { border-color: var(--line); border-radius: 8px; padding: 20px; background: var(--surface); box-shadow: none; }
.dashboard-panel-heading h3 { font-size: 17px; letter-spacing: 0; }
.dashboard-recent-item { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.dashboard-recent-item:last-child { border-bottom: 1px solid var(--line); }
.dashboard-recent-item:hover { border-color: var(--line); background: var(--surface-soft); }
.dashboard-empty { min-height: 180px; border-color: var(--line-strong); border-radius: 6px; background: #0b0d10; }
.dashboard-checklist li { border-radius: 5px; }
.dashboard-checklist li.current { background: var(--surface-soft); }
.dashboard-progress { border-radius: 0; background: #242831; }
.dashboard-progress span { border-radius: 0; background: var(--text); }
.dashboard-shortcuts { gap: 0; margin-top: 18px; border-block: 1px solid var(--line); }
.dashboard-shortcuts > button { min-height: 72px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.dashboard-shortcuts > button:last-child { border-right: 0; }
.dashboard-shortcuts > button:hover { border-color: var(--line); background: var(--surface-soft); }
.dashboard-shortcuts > button > span { border-color: var(--line); border-radius: 5px; background: transparent; }

/* Agent */
.agent-view { background: var(--bg); }
.connection-banner { margin: 10px 18px 0; border-color: var(--line); border-radius: 6px; background: var(--surface); }
.connection-banner.connected { border-color: rgba(131,199,158,.28); background: rgba(131,199,158,.05); }
.banner-icon { border-radius: 4px; background: var(--surface-raised); color: var(--text-soft); }
.connection-banner button:hover { background: var(--surface-raised); }
.chat { padding: 32px max(22px, calc((100% - 800px) / 2)) 24px; }
.welcome { max-width: 740px; margin-top: clamp(12px, 4vh, 40px); text-align: left; }
.welcome-mark { display: none; }
.welcome > .availability-pill { margin: 0 0 13px; border: 0; padding: 0; background: transparent; color: var(--muted); }
.welcome h2 { font-size: clamp(32px, 4vw, 46px); line-height: 1.1; letter-spacing: 0; }
.welcome > p { max-width: 650px; margin: 12px 0 0; color: var(--muted-strong); }
.prompt-grid { grid-template-columns: 1fr 1fr; gap: 0 20px; max-width: none; margin-top: 24px; }
.prompt-grid button { min-height: 72px; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 11px 4px; background: transparent; transform: none; }
.prompt-grid button:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
.prompt-grid button:hover { border-color: var(--line); background: var(--surface-soft); transform: none; }
.prompt-icon,
.prompt-icon.pets,
.prompt-icon.coins,
.prompt-icon.part,
.prompt-icon.ui { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--text-soft); }
.how-it-works { justify-content: flex-start; }
.how-it-works b { border-color: var(--line-strong); border-radius: 4px; }
.timeline { max-width: 800px; gap: 22px; }
.user-avatar { border-radius: 50%; }
.user-message p { border-color: var(--line-strong); border-radius: 8px 2px 8px 8px; background: var(--surface-raised); }
.assistant-card,
.questionnaire-card,
.run-card { border-color: var(--line); border-radius: 8px; background: var(--surface); box-shadow: none; }
.plan-list { border-color: var(--line); border-radius: 6px; }
.plan-list li,
.progress-item,
.run-card > header { border-color: var(--line); }
.plan-list li::before { border-color: var(--line-strong); border-radius: 4px; }
.execution-note { border-radius: 4px; background: var(--surface-soft); }
.fit-badge,
.run-state { border-radius: 4px; }
.questionnaire-fieldset { border-color: var(--line); }
.questionnaire-option > span { border-color: var(--line); border-radius: 6px; background: #0b0d10; }
.questionnaire-option:hover > span { border-color: var(--line-strong); transform: none; }
.composer-area { width: min(820px, calc(100% - 40px)); padding-bottom: 14px; }
.composer { border-color: var(--line-strong); border-radius: 8px; background: #111318; box-shadow: none; }
.composer:focus-within { border-color: #6d7581; box-shadow: 0 0 0 3px rgba(169,193,245,.07); }
.send-button { min-width: 84px; }

/* Installation and security */
.info-view { padding: 34px max(22px, calc((100% - 1040px) / 2)) 68px; background: var(--bg); }
.info-hero { overflow: visible; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 0 30px; background: transparent; }
.info-hero::after { display: none; }
.info-hero h2 { font-size: clamp(34px, 4.6vw, 50px); line-height: 1.08; letter-spacing: 0; }
.info-hero > p { color: var(--muted-strong); }
.trust-row span,
.safe-badge { border-color: var(--line); border-radius: 4px; background: transparent; color: var(--muted-strong); }
.official-plugin-card { max-width: none; border-color: var(--line); border-radius: 8px; background: var(--surface); box-shadow: none; backdrop-filter: none; }
.official-plugin-badge { border-radius: 4px; background: transparent; }
.plugin-facts > div { border-color: var(--line); }
.setup-status,
.install-method,
.install-grid li,
.plugin-care-grid article,
.pairing-panel,
.faq-section,
.security-grid article,
.permission-table,
.data-panel,
.policy-panel { border-color: var(--line); border-radius: 8px; background: var(--surface); box-shadow: none; }
.install-method-grid { gap: 12px; }
.install-method.recommended-method { border-color: var(--line-strong); background: var(--surface); }
.method-icon,
.care-icon,
.feature-icon { border-color: var(--line); border-radius: 5px; background: transparent; color: var(--text-soft); }
.install-grid { gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.install-grid li { border: 0; border-radius: 0; }
.install-grid li:nth-child(odd) { border-right: 1px solid var(--line); }
.install-grid li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.step-number { border-color: var(--line-strong); border-radius: 4px; }
.plugin-care-grid { gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.plugin-care-grid article { border: 0; border-right: 1px solid var(--line); border-radius: 0; }
.plugin-care-grid article:last-child { border-right: 0; }
.section-heading h3,
.data-panel h3,
.policy-panel h3 { letter-spacing: 0; }
.connection-values > div { border-color: var(--line); border-radius: 5px; background: #0b0d10; }
.connection-values button,
.verified-value { border-color: var(--line-strong); border-radius: 5px; background: var(--surface-soft); }
.faq-section details,
.permission-row { border-color: var(--line); }
.permission-row b { border-radius: 4px; }
.policy-panel { border-color: var(--line); background: var(--surface); }

/* Dialogs and transient states */
.conversation-dialog,
.logout-dialog,
.credits-dialog,
.setup-dialog { border-color: var(--line-strong); border-radius: 8px; background: #111318; box-shadow: 0 24px 70px rgba(0,0,0,.62); }
.conversation-dialog::backdrop,
.logout-dialog::backdrop,
.credits-dialog::backdrop,
.setup-dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: none; }
.conversation-dialog-icon,
.logout-dialog-icon { border-color: var(--line); border-radius: 5px; background: var(--surface-raised); }
.conversation-title-field input { border-color: var(--line-strong); border-radius: 5px; background: #0b0d10; }
.credits-dialog-header,
.credits-dialog-footer { border-color: var(--line); background: #111318; }
.credits-current,
.discord-reward,
.credit-pack,
.payments-notice { border-color: var(--line); border-radius: 6px; background: #0c0e11; box-shadow: none; }
.credit-pack.featured { border-color: var(--line-strong); background: var(--surface-soft); box-shadow: none; }
.credits-current-mark,
.discord-reward-icon { border-radius: 4px; }
.toast { border-color: var(--line-strong); border-radius: 6px; background: #181b21; box-shadow: 0 14px 36px rgba(0,0,0,.42); }

/* Admin and legal */
.admin-page,
.legal-page { background: var(--bg); }
.admin-topbar { min-height: 62px; border-color: var(--line); background: var(--bg); backdrop-filter: none; }
.admin-main { padding-top: 30px; }
.admin-hero { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 0 28px; background: transparent; }
.admin-hero h1 { letter-spacing: 0; }
.admin-identity { border-color: var(--line-strong); border-radius: 6px; background: var(--surface); }
.admin-metrics { gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; }
.admin-metrics article { border: 0; border-right: 1px solid var(--line); border-radius: 0; background: var(--surface); }
.admin-metrics article:last-child { border-right: 0; }
.admin-section { border-color: var(--line); border-radius: 8px; background: var(--surface); }
.admin-table-wrap { border-color: var(--line); border-radius: 6px; }
.admin-table { background: #0c0e11; }
.admin-table th { background: var(--surface-soft); }
.admin-table th,
.admin-table td { border-color: var(--line); }
.admin-user-avatar { border-radius: 50%; }
.admin-role-badge,
.admin-state { border-radius: 4px; }
.legal-page h1 { letter-spacing: 0; }

@media (max-width: 1040px) {
  .auth-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }
  .dashboard-columns { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .auth-layout { grid-template-columns: 1fr; margin-top: 18px; }
  .login-card { position: static; width: min(620px, 100%); }
  .dashboard-stats { grid-template-columns: 1fr 1fr; }
  .dashboard-stat-card:nth-child(2) { border-right: 0; }
  .dashboard-stat-card:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); }
}

@media (max-width: 780px) {
  body { overflow: auto; }
  .topbar { min-height: 58px; padding: 0 10px; }
  .sidebar { width: min(88vw, 310px); height: 100dvh; box-shadow: 16px 0 46px rgba(0,0,0,.55); }
  .mobile-scrim { background: rgba(0,0,0,.72); }
  .dashboard-view { min-height: calc(100dvh - 58px); padding: 16px 12px 42px; }
  .dashboard-shortcuts { grid-template-columns: 1fr; }
  .dashboard-shortcuts > button { border-right: 0; border-bottom: 1px solid var(--line); }
  .dashboard-shortcuts > button:last-child { border-bottom: 0; }
  .agent-view { flex: 0 0 calc(100dvh - 58px); height: calc(100dvh - 58px); min-height: 0; overflow: hidden; grid-template-rows: auto minmax(0,1fr) auto; }
  .connection-banner { margin: 8px 9px 0; }
  .chat { padding: 24px 12px 20px; }
  .composer-area { width: 100%; padding: 8px 9px max(10px, env(safe-area-inset-bottom)); background: var(--bg); }
  .info-view { min-height: calc(100dvh - 58px); padding: 18px 12px 42px; }
  .install-method-grid,
  .security-grid { grid-template-columns: 1fr; }
  .install-grid { grid-template-columns: 1fr; }
  .install-grid li:nth-child(odd) { border-right: 0; }
  .install-grid li { border-bottom: 1px solid var(--line); }
  .install-grid li:last-child { border-bottom: 0; }
  .plugin-care-grid { grid-template-columns: 1fr; }
  .plugin-care-grid article { border-right: 0; border-bottom: 1px solid var(--line); }
  .plugin-care-grid article:last-child { border-bottom: 0; }
  .data-panel,
  .policy-panel { align-items: flex-start; flex-direction: column; }
  .admin-main { width: calc(100% - 24px); padding-top: 18px; }
}

@media (max-width: 600px) {
  .auth-gate { gap: 18px; padding: 14px 14px 20px; }
  .auth-brand-actions > span { display: none; }
  .auth-layout { gap: 24px; margin-top: 10px; }
  .auth-copy h1 { font-size: clamp(38px, 12vw, 50px); }
  .auth-copy > p { font-size: 14px; }
  .auth-primary-actions { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 22px; }
  .auth-primary-actions .primary-button { width: 100%; }
  .auth-primary-actions .text-link { width: max-content; }
  .product-proof { margin-top: 26px; }
  .product-proof > header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .proof-steps li { grid-template-columns: 24px minmax(0,1fr); }
  .proof-steps em { grid-column: 2; }
  .product-proof > footer { display: grid; grid-template-columns: 1fr 1fr; }
  .login-card { border-radius: 8px; padding: 19px 17px; }
  .auth-footer { align-items: flex-start; flex-direction: column; gap: 5px; }

  .project-line h1 { max-width: 30vw; font-size: 12px; }
  .dashboard-hero { padding-top: 8px; }
  .dashboard-hero h2 { font-size: clamp(30px, 10vw, 40px); }
  .dashboard-stats { grid-template-columns: 1fr; }
  .dashboard-stat-card,
  .dashboard-stat-card:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .dashboard-stat-card:last-child { grid-column: auto; border-top: 0; border-bottom: 0; }
  .dashboard-panel { padding: 16px; }
  .dashboard-empty { grid-template-columns: auto minmax(0,1fr); }
  .dashboard-empty button { grid-column: 1 / -1; }

  .connection-banner { grid-template-columns: 1fr; padding: 10px 11px; }
  .connection-banner .banner-icon { display: none; }
  .connection-banner button { grid-column: 1; justify-self: start; padding-left: 0; }
  .welcome h2 { font-size: clamp(30px, 10vw, 40px); }
  .prompt-grid { grid-template-columns: 1fr; margin-top: 20px; }
  .prompt-grid button:nth-last-child(-n+2) { border-bottom: 0; }
  .prompt-grid button:last-child { border-bottom: 1px solid var(--line); }
  .how-it-works { display: none; }
  .composer-help { display: none; }
  .send-button { width: 42px; min-width: 42px; }
  .send-button span:first-child { display: none; }

  .info-hero { padding: 6px 0 24px; }
  .info-hero h2 { font-size: clamp(30px, 9.5vw, 40px); }
  .official-plugin-card { grid-template-columns: 1fr; }
  .plugin-facts { display: grid; grid-template-columns: 1fr; }
  .plugin-facts > div { border-top: 1px solid var(--line); border-left: 0; padding: 10px 0 0; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-heading > button { width: 100%; }
  .permission-row { align-items: flex-start; flex-direction: column; gap: 8px; }
  .data-actions,
  .data-actions > * { width: 100%; }

  .conversation-dialog,
  .logout-dialog,
  .credits-dialog,
  .setup-dialog { width: 100%; max-width: none; max-height: 92dvh; margin: auto 0 0; border-right: 0; border-bottom: 0; border-left: 0; border-radius: 8px 8px 0 0; }
  .conversation-dialog-actions,
  .logout-dialog-actions { flex-direction: column-reverse; }
  .conversation-dialog-actions button,
  .logout-dialog-actions button { width: 100%; }
  .credit-packs { grid-template-columns: 1fr; }
  .credits-dialog-footer { align-items: stretch; flex-direction: column; }
  .credits-dialog-footer button { width: 100%; }
  .admin-hero { align-items: flex-start; flex-direction: column; }
  .admin-metrics { grid-template-columns: 1fr 1fr; }
  .admin-metrics article:nth-child(2) { border-right: 0; }
  .admin-metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 380px) {
  .product-proof > footer,
  .admin-metrics { grid-template-columns: 1fr; }
  .admin-metrics article { border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-metrics article:last-child { border-bottom: 0; }
}

/* v24 — human landing */
.human-landing {
  --landing-bg: #0a0a09;
  --landing-panel: #11110f;
  --landing-panel-strong: #171714;
  --landing-line: #2d2c28;
  --landing-line-soft: #211f1c;
  --landing-text: #f2f0e9;
  --landing-muted: #aaa69d;
  --landing-dim: #77736c;
  --landing-success: #9bd7ad;
  display: block;
  height: 100dvh;
  min-height: 100dvh;
  padding: 0 clamp(20px, 4vw, 58px) 24px;
  overflow-y: auto;
  scroll-behavior: smooth;
  background: var(--landing-bg);
  color: var(--landing-text);
}

.human-landing .auth-brand {
  position: relative;
  inset: auto;
  width: min(1180px, 100%);
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin: 0 auto;
  border-bottom: 1px solid var(--landing-line-soft);
}

.human-landing .auth-brand > a { width: max-content; }
.human-landing .auth-brand .brand-mark { width: 32px; height: 32px; }
.human-landing .auth-brand > a strong { font-size: 18px; font-weight: 760; }
.landing-nav { display: flex; align-items: center; gap: 28px; }
.landing-nav a,
.header-login-link { color: var(--landing-muted); font-size: 12px; font-weight: 600; text-decoration: none; }
.landing-nav a:hover,
.header-login-link:hover { color: var(--landing-text); }
.human-landing .auth-brand-actions { justify-self: end; }
.human-landing .language-switch { border-color: var(--landing-line); background: transparent; }
.header-login-link { border-bottom: 1px solid #68645d; padding-block: 3px; color: var(--landing-text); }

.human-hero {
  width: min(1180px, 100%);
  min-height: 670px;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(500px, 1.12fr);
  align-items: center;
  gap: clamp(48px, 6vw, 92px);
  margin: 0 auto;
  padding: 76px 0 88px;
}

.human-hero-copy { align-self: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 9px; color: var(--landing-muted); font-size: 12px; font-weight: 650; }
.hero-kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--landing-success); }
.human-hero h1 { max-width: 620px; margin: 24px 0 20px; font-size: clamp(48px, 5.25vw, 72px); font-weight: 720; line-height: 1.035; letter-spacing: -.035em; }
.human-hero h1 span { color: #b9b5ac; font-weight: 530; }
.human-hero-copy > p:not(.hero-reassurance) { max-width: 590px; margin: 0; color: var(--landing-muted); font-size: clamp(15px, 1.25vw, 18px); line-height: 1.7; }
.human-landing .auth-primary-actions { gap: 20px; margin-top: 28px; }
.human-landing .auth-primary-actions .primary-button { min-height: 46px; border-radius: 7px; padding-inline: 18px; }
.human-landing .text-link { color: var(--landing-muted); font-size: 12px; text-decoration: none; }
.human-landing .text-link::after { content: " ↓"; color: var(--landing-dim); }
.human-landing .text-link:hover { color: var(--landing-text); }
.hero-reassurance { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; color: var(--landing-dim); font-size: 10px; }
.hero-reassurance span { position: relative; }
.hero-reassurance span + span::before { content: "·"; position: absolute; left: -11px; color: #4e4b45; }

.build-session {
  overflow: hidden;
  border: 1px solid #34332f;
  border-radius: 14px;
  background: var(--landing-panel);
  box-shadow: 0 28px 70px rgba(0,0,0,.32);
}
.build-session-bar { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--landing-line); padding: 11px 14px; }
.build-session-bar > div { display: flex; align-items: center; gap: 10px; }
.build-session-bar > div > span:last-child { display: grid; gap: 1px; }
.project-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: #d4b881; color: #1a1711; font-size: 12px; font-weight: 850; }
.build-session-bar strong { font-size: 12px; font-weight: 700; }
.build-session-bar small { color: var(--landing-dim); font-size: 9px; }
.build-connected { display: flex; align-items: center; gap: 7px; color: var(--landing-muted); font-size: 10px; }
.build-connected i { width: 7px; height: 7px; border-radius: 50%; background: var(--landing-success); }

.build-conversation { display: grid; gap: 18px; padding: 23px 20px 18px; }
.build-message { display: grid; grid-template-columns: 30px minmax(0,1fr); align-items: start; gap: 11px; }
.build-message > img,
.message-avatar { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #393832; border-radius: 50%; object-fit: cover; background: #0a0a09; color: #ddd9d0; font-size: 10px; font-weight: 750; }
.creator-message .message-avatar { border-color: #4d4537; background: #292319; color: #dfcda9; }
.build-message > div { min-width: 0; }
.build-message strong { display: block; margin: 1px 0 5px; color: #d8d5ce; font-size: 10px; font-weight: 700; }
.build-message p { margin: 0; color: var(--landing-muted); font-size: 12px; line-height: 1.65; }
.creator-message p { color: #e7e4dd; }
.build-message code { border: 1px solid #35342f; border-radius: 4px; padding: 1px 4px; background: #0c0c0b; color: #d7d2c8; font: 500 10px var(--font-mono); }

.studio-result { margin: 0 10px 10px; overflow: hidden; border: 1px solid #35342f; border-radius: 9px; background: #0b0b0a; }
.studio-result > header { min-height: 45px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--landing-line-soft); padding: 9px 12px; }
.studio-result > header span { display: flex; align-items: center; gap: 8px; color: #ddd9d0; font-size: 10px; font-weight: 700; }
.studio-result > header i { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: rgba(155,215,173,.11); color: var(--landing-success); font-size: 10px; font-style: normal; }
.studio-result > header small { color: var(--landing-success); font-size: 9px; }
.studio-result ul { margin: 0; padding: 0; list-style: none; }
.studio-result li { min-height: 39px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--landing-line-soft); padding: 8px 12px; }
.studio-result li span { color: #c8c4bb; font: 550 10px var(--font-mono); }
.studio-result li small { color: var(--landing-dim); font-size: 9px; text-align: right; }
.studio-result > footer { min-height: 39px; display: flex; align-items: center; justify-content: space-between; padding: 7px 12px; color: var(--landing-dim); font-size: 9px; }
.studio-result .result-undo { color: #bbb6ad; text-decoration: underline; text-underline-offset: 3px; }

.creator-note { width: min(1180px, 100%); margin: 0 auto; border-block: 1px solid var(--landing-line-soft); padding: 22px 0; color: #d0ccc3; font-size: clamp(16px, 1.9vw, 22px); font-weight: 520; text-align: center; }

.human-story { width: min(1100px, 100%); display: grid; grid-template-columns: minmax(0,.85fr) minmax(440px,1.15fr); gap: clamp(58px, 9vw, 130px); margin: 0 auto; padding: 112px 0; }
.story-intro > span,
.human-safety > div > span,
.human-login-copy > span { color: #c8a96e; font-size: 11px; font-weight: 650; }
.story-intro h2,
.human-safety h2,
.human-login-copy h2 { margin: 13px 0 17px; font-size: clamp(32px, 4vw, 50px); font-weight: 620; line-height: 1.1; letter-spacing: -.025em; }
.story-intro p,
.human-safety > div > p,
.human-login-copy p { margin: 0; color: var(--landing-muted); font-size: 14px; line-height: 1.75; }
.creator-capabilities { border-top: 1px solid var(--landing-line); }
.creator-capabilities article { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 15px; border-bottom: 1px solid var(--landing-line); padding: 22px 0; }
.creator-capabilities article > span { padding-top: 3px; color: #6f6b64; font: 600 9px var(--font-mono); }
.creator-capabilities h3 { margin: 0 0 6px; color: #dedbd4; font-size: 14px; font-weight: 680; }
.creator-capabilities p { margin: 0; color: var(--landing-muted); font-size: 12px; line-height: 1.65; }

.human-safety { width: min(1180px, 100%); display: grid; grid-template-columns: minmax(0,1fr) minmax(380px,.78fr); gap: clamp(50px, 8vw, 112px); margin: 0 auto; border-block: 1px solid var(--landing-line); padding: 82px clamp(0px, 3vw, 34px); scroll-margin-top: 30px; }
.human-safety h2 { max-width: 650px; font-size: clamp(30px, 3.6vw, 46px); }
.human-safety ul { display: grid; align-content: center; gap: 0; margin: 0; padding: 0; list-style: none; }
.human-safety li { display: grid; grid-template-columns: 26px minmax(0,1fr); gap: 11px; border-bottom: 1px solid var(--landing-line-soft); padding: 15px 0; }
.human-safety li:last-child { border-bottom: 0; }
.human-safety li i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(155,215,173,.1); color: var(--landing-success); font-size: 10px; font-style: normal; }
.human-safety li span { display: grid; gap: 3px; }
.human-safety li strong { color: #dedbd4; font-size: 12px; }
.human-safety li small { color: var(--landing-dim); font-size: 10px; }

.human-login { width: min(1100px, 100%); display: grid; grid-template-columns: minmax(0,1fr) 390px; align-items: center; gap: clamp(56px, 10vw, 150px); margin: 0 auto; padding: 118px 0; scroll-margin-top: 24px; }
.human-login-copy h2 { max-width: 610px; }
.human-login .login-card { position: static; margin: 0; border: 1px solid #37352f; border-radius: 12px; padding: 22px; background: var(--landing-panel); box-shadow: 0 24px 64px rgba(0,0,0,.24); }
.human-login .login-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 19px; }
.human-login .login-icon { width: 36px; height: 36px; margin: 0; }
.human-login .login-card-top > span { color: #dedbd4; font-size: 13px; font-weight: 700; }
.human-login .login-card h3 { margin: 0 0 7px; font-size: 23px; font-weight: 650; }
.human-login .login-card > p { margin: 0; color: var(--landing-dim); font-size: 11px; }
.human-login .roblox-login-button { min-height: 48px; margin: 18px 0 15px; border-radius: 7px; }
.compact-permissions { display: grid; margin: 0; border-block: 1px solid var(--landing-line); padding: 5px 0; list-style: none; }
.compact-permissions li { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 9px 0; }
.compact-permissions li span { color: #c9c5bc; font-size: 10px; font-weight: 650; }
.compact-permissions li small { color: var(--landing-dim); font-size: 9px; text-align: right; }
.human-login .auth-promise { display: flex; gap: 7px; margin-top: 12px !important; color: var(--landing-dim) !important; }
.human-login .legal-copy { margin-top: 14px !important; }

.human-landing .auth-footer { width: min(1180px, 100%); min-height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; margin: 0 auto; border-top: 1px solid var(--landing-line-soft); padding: 16px 0 0; color: var(--landing-dim); }
.human-landing .auth-footer > a { color: #d8d4cb; font-size: 13px; font-weight: 750; text-decoration: none; }
.human-landing .auth-footer div { display: flex; gap: 20px; }
.human-landing .auth-footer div a { color: var(--landing-dim); font-size: 9px; text-decoration: none; }
.human-landing .auth-footer div a:hover { color: var(--landing-text); }
.human-landing .auth-footer p { justify-self: end; margin: 0; font-size: 8px; text-align: right; }

@media (max-width: 980px) {
  .human-landing .auth-brand { grid-template-columns: 1fr auto; }
  .landing-nav { display: none; }
  .human-hero { min-height: 0; grid-template-columns: 1fr; gap: 52px; padding: 68px 0 76px; }
  .human-hero-copy { max-width: 710px; }
  .build-session { width: min(680px,100%); justify-self: center; }
  .human-story { grid-template-columns: 1fr; gap: 50px; padding: 88px 0; }
  .story-intro { max-width: 680px; }
  .human-safety { grid-template-columns: 1fr; gap: 40px; padding-block: 72px; }
  .human-login { grid-template-columns: minmax(0,1fr) 360px; gap: 54px; }
}

@media (max-width: 700px) {
  .human-landing { padding-inline: 15px; }
  .human-landing .auth-brand { min-height: 62px; }
  .human-landing .auth-brand-actions { gap: 8px; }
  .header-login-link { display: none; }
  .human-hero { gap: 38px; padding: 52px 0 58px; }
  .hero-kicker { font-size: 11px; }
  .human-hero h1 { margin-top: 19px; font-size: clamp(39px, 11.8vw, 54px); line-height: 1.06; }
  .human-hero-copy > p:not(.hero-reassurance) { font-size: 14px; }
  .human-landing .auth-primary-actions { display: grid; grid-template-columns: 1fr; gap: 13px; }
  .human-landing .auth-primary-actions .primary-button { width: 100%; }
  .hero-reassurance { gap: 7px 15px; font-size: 9px; }
  .hero-reassurance span + span::before { left: -9px; }
  .build-session { border-radius: 10px; }
  .build-session-bar { align-items: flex-start; flex-direction: column; gap: 9px; padding: 12px; }
  .build-conversation { gap: 16px; padding: 19px 13px 15px; }
  .build-message { grid-template-columns: 27px minmax(0,1fr); gap: 9px; }
  .build-message > img,
  .message-avatar { width: 27px; height: 27px; }
  .build-message p { font-size: 11px; }
  .studio-result { margin: 0 7px 7px; }
  .studio-result > header { align-items: flex-start; flex-direction: column; gap: 4px; }
  .studio-result li { align-items: flex-start; flex-direction: column; gap: 2px; }
  .studio-result li small { text-align: left; }
  .creator-note { padding: 20px 12px; font-size: 16px; text-align: left; }
  .human-story { gap: 40px; padding: 72px 0; }
  .story-intro h2,
  .human-safety h2,
  .human-login-copy h2 { font-size: clamp(30px, 9vw, 40px); }
  .human-safety { gap: 30px; padding: 62px 0; }
  .human-login { grid-template-columns: 1fr; gap: 40px; padding: 78px 0; }
  .human-login .login-card { border-radius: 10px; padding: 19px 16px; }
  .human-landing .auth-footer { grid-template-columns: 1fr auto; }
  .human-landing .auth-footer p { grid-column: 1 / -1; justify-self: start; text-align: left; }
}

/* v28 — image-aware builder composer */
.composer { position: relative; overflow: visible; }
.composer-drop-state { position: absolute; z-index: 8; inset: 7px; display: grid; place-items: center; border: 1px dashed rgba(124,156,255,.7); border-radius: 9px; background: rgba(12,15,22,.94); color: #dbe3ff; font-size: 12px; font-weight: 750; opacity: 0; pointer-events: none; transition: opacity 120ms ease; }
.composer.dragging-files .composer-drop-state { opacity: 1; }
.attachment-tray { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 9px; padding: 1px 1px 4px; scrollbar-width: thin; }
.attachment-preview { min-width: 184px; max-width: 220px; display: grid; grid-template-columns: 40px minmax(0,1fr) 26px; align-items: center; gap: 8px; border: 1px solid #303642; border-radius: 8px; padding: 6px; background: #0d1015; animation: attachment-in 160ms ease both; }
.attachment-preview.uploading { opacity: .7; }
.attachment-preview img { width: 40px; height: 40px; border-radius: 5px; object-fit: cover; background: #07090c; }
.attachment-preview > span { min-width: 0; display: grid; gap: 2px; }
.attachment-preview strong { overflow: hidden; color: #d9dee7; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.attachment-preview small { color: #737c89; font-size: 8px; }
.attachment-preview button { width: 25px; height: 25px; border: 0; border-radius: 5px; background: transparent; color: #8992a0; font-size: 17px; cursor: pointer; }
.attachment-preview button:hover { background: #252a33; color: #fff; }
.attach-button { min-height: 30px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid #343b46; border-radius: 7px; padding: 0 9px; color: #aeb6c2; font-size: 9px; font-weight: 700; cursor: pointer; transition: border-color 120ms ease, background 120ms ease, color 120ms ease; }
.attach-button:hover { border-color: #596578; background: #1b2028; color: #f1f3f7; }
.attach-button span:first-child { font-size: 15px; line-height: 1; }
.message-attachments { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); justify-content: end; gap: 7px; margin-bottom: 7px; }
.message-attachment { overflow: hidden; margin: 0; border: 1px solid #343a44; border-radius: 9px; background: #0b0d11; }
.message-attachment img { width: 100%; aspect-ratio: 16 / 10; display: block; object-fit: cover; }
.message-attachment figcaption { overflow: hidden; padding: 6px 8px; color: #858e9b; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
@keyframes attachment-in { from { opacity: 0; transform: translateY(4px) scale(.98); } }

@media (max-width: 700px) {
  .attach-button { width: 34px; min-width: 34px; justify-content: center; padding: 0; }
  .attach-button span:last-child { display: none; }
  .safe-badge { display: none; }
  .attachment-preview { min-width: 164px; }
  .message-attachments { grid-template-columns: minmax(0, 1fr); }
}

/* v26 — purposeful product-wide color */
:root {
  --accent-blue: #7c9cff;
  --accent-blue-strong: #91adff;
  --accent-blue-soft: rgba(124,156,255,.11);
  --accent-gold: #d2a75f;
  --accent-coral: #ed776d;
}

.primary-button,
.send-button,
.roblox-login-button {
  border-color: var(--accent-blue);
  background: var(--accent-blue);
  color: #090d17;
}
.primary-button:hover,
.send-button:hover,
.roblox-login-button:hover {
  border-color: var(--accent-blue-strong);
  background: var(--accent-blue-strong);
  color: #070b13;
}
.primary-button:focus-visible,
.send-button:focus-visible,
.roblox-login-button:focus-visible { outline-color: #c8d5ff; }

.human-landing {
  --landing-accent: var(--accent-blue);
  --landing-accent-soft: var(--accent-blue-soft);
}
.human-landing .language-switch button.active { background: var(--landing-accent-soft); color: #c7d4ff; }
.human-landing .header-login-link { border-color: rgba(124,156,255,.6); color: #cbd7ff; }
.human-landing .hero-kicker { color: #b9c8f8; }
.human-landing .hero-kicker i { background: var(--landing-accent); }
.human-landing .text-link:hover { color: #cbd7ff; }
.human-landing .build-session { border-color: #39425b; box-shadow: 0 28px 70px rgba(0,0,0,.32), 0 0 0 1px rgba(124,156,255,.035); }
.human-landing .creator-note { border-color: rgba(124,156,255,.22); }
.story-intro > span,
.human-safety > div > span,
.human-login-copy > span { color: var(--accent-gold); }

/* Product-wide color semantics */
.nav-item.active {
  background: var(--accent-blue-soft);
  color: #dbe3ff;
  box-shadow: inset 2px 0 var(--accent-blue);
}
.nav-item.active > span { color: var(--accent-blue-strong); }
.new-chat-button:hover,
.secondary-button:hover,
.studio-action:hover { border-color: rgba(124,156,255,.52); }
.mode-label,
.run-state { border-color: rgba(124,156,255,.3); background: rgba(124,156,255,.08); color: #afc1ff; }
.connection-banner:not(.connected) { border-color: rgba(124,156,255,.2); background: rgba(124,156,255,.045); }
.connection-banner:not(.connected) .banner-icon { background: rgba(124,156,255,.1); color: #abc0ff; }
.connection-banner button { color: #afc1ff; }
.connection-banner button:hover { background: rgba(124,156,255,.09); color: #d8e1ff; }
.status-dot.searching { background: var(--accent-blue); }
.status-dot.online,
.status-dot.connected { background: var(--green); }
.status-dot.offline { background: var(--accent-gold); }
.status-dot.error { background: var(--accent-coral); }
.credits-symbol,
.nav-item > .nav-credits-icon { background: var(--accent-gold); color: #171108; }
.dashboard-stat-card:first-child .dashboard-stat-icon { color: var(--accent-gold); }
.composer:focus-within { border-color: rgba(124,156,255,.62); }
.prompt-grid button:hover,
.dashboard-shortcuts > button:hover { background: rgba(124,156,255,.045); }

/* v27 — conversational controls */
.user-message-content { display: grid; justify-items: end; }
.message-actions { min-height: 26px; display: flex; justify-content: flex-end; padding-top: 5px; opacity: 0; transform: translateY(-2px); transition: opacity 140ms ease, transform 140ms ease; }
.user-message:hover .message-actions,
.user-message:focus-within .message-actions { opacity: 1; transform: none; }
.edit-message-button { min-height: 25px; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 6px; padding: 3px 7px; background: transparent; color: #8f98a4; font-size: 10px; font-weight: 650; cursor: pointer; }
.edit-message-button:hover { background: rgba(255,255,255,.055); color: #e3e7ed; }
.edit-message-button:disabled { opacity: .35; cursor: not-allowed; }
.edit-message-button span:first-child { font-size: 13px; }

.message-editor { width: min(690px, 100%); border: 1px solid rgba(124,156,255,.52); border-radius: 12px 4px 12px 12px; padding: 10px; background: #12151b; box-shadow: 0 0 0 3px rgba(124,156,255,.07); }
.message-editor textarea { width: 100%; min-height: 74px; max-height: 220px; resize: none; border: 0; outline: 0; padding: 3px 4px 8px; background: transparent; color: var(--text); font: inherit; font-size: 13px; line-height: 1.6; }
.message-editor > div { display: flex; justify-content: flex-end; gap: 8px; }
.message-edit-cancel,
.message-edit-submit { min-height: 34px; border-radius: 7px; padding: 0 11px; font-size: 10px; font-weight: 750; cursor: pointer; }
.message-edit-cancel { border: 1px solid var(--line-strong); background: transparent; color: var(--muted); }
.message-edit-cancel:hover { color: var(--text); }
.message-edit-submit { border: 1px solid var(--accent-blue); background: var(--accent-blue); color: #090d17; }
.message-edit-submit:hover { background: var(--accent-blue-strong); }

.stop-button { min-width: 94px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid #4a4f59; border-radius: 10px; padding: 0 13px; background: #181b21; color: #eef0f4; font-size: 11px; font-weight: 800; cursor: pointer; }
.stop-button:hover { border-color: #6d7380; background: #20242b; }
.stop-button:disabled { opacity: .58; cursor: wait; }
.stop-icon { width: 10px; height: 10px; border-radius: 2px; background: #f1f2f5; }
.run-card.cancelled { border-color: #4b505a; }
.run-card.cancelled .run-pulse { animation: none; background: #8d96a4; box-shadow: none; }
.run-card.cancelled .run-state { border-color: #4b505a; background: #20242b; color: #aeb5c0; }

@media (max-width: 700px) {
  .message-actions { min-height: 30px; opacity: 1; transform: none; }
  .edit-message-button { min-height: 30px; padding-inline: 9px; }
  .message-editor { width: 100%; }
  .stop-button { width: 44px; min-width: 44px; padding: 0; }
  .stop-button #stop-run-label { display: none; }
}

/* v29 — live builder responses and verified build results */
.markdown-message { animation: message-enter 150ms ease both; }
.markdown-card { min-width: 0; border-left: 2px solid #2f3540; padding: 2px 0 2px 17px; }
.markdown-message.streaming .markdown-card { border-left-color: rgba(124,156,255,.72); }
.markdown-message.stopped .markdown-card { border-left-color: #666e7a; }
.markdown-message.failed .markdown-card { border-left-color: var(--accent-coral); }
.generation-label { display: inline-flex; align-items: center; gap: 6px; color: #8d98aa; font: 650 9px var(--font-mono); }
.markdown-message.streaming .generation-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-blue); animation: pulse 1.2s ease-in-out infinite; }
.markdown-content { max-width: 780px; color: #c8ced8; font-size: 13px; line-height: 1.72; overflow-wrap: anywhere; }
.markdown-content > :first-child { margin-top: 0; }
.markdown-content > :last-child { margin-bottom: 0; }
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5 { margin: 24px 0 8px; color: #f0f2f6; font-weight: 720; line-height: 1.28; letter-spacing: -.015em; }
.markdown-content h2 { font-size: 19px; }
.markdown-content h3 { font-size: 16px; }
.markdown-content h4,
.markdown-content h5 { font-size: 14px; }
.markdown-content p { margin: 10px 0; }
.markdown-content ul,
.markdown-content ol { display: grid; gap: 6px; margin: 10px 0; padding-left: 22px; }
.markdown-content li::marker { color: #738ccf; }
.markdown-content a { color: #aabfff; text-underline-offset: 3px; }
.markdown-content code:not(.ide-code-block code) { border: 1px solid #303642; border-radius: 4px; padding: 1px 5px; background: #101319; color: #d8deea; font: 500 11px var(--font-mono); }
.markdown-content blockquote { margin: 13px 0; border-left: 2px solid #4d586d; padding: 5px 0 5px 13px; color: #aab3c1; }
.markdown-table-wrap { max-width: 100%; overflow-x: auto; margin: 14px 0; border: 1px solid #2b3039; border-radius: 7px; }
.markdown-content table { width: 100%; border-collapse: collapse; min-width: 440px; font-size: 11px; }
.markdown-content th,
.markdown-content td { border-bottom: 1px solid #292e36; padding: 9px 11px; text-align: left; vertical-align: top; }
.markdown-content th { background: #11141a; color: #e3e7ef; font-weight: 700; }
.markdown-content tr:last-child td { border-bottom: 0; }
.ide-code-block { overflow: hidden; margin: 14px 0; border: 1px solid #303641; border-radius: 8px; background: #090b0f; }
.ide-code-block > header { min-height: 38px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #262b33; padding: 0 10px 0 13px; background: #11141a; }
.ide-code-block > header span { color: #9099a7; font: 650 9px var(--font-mono); text-transform: uppercase; letter-spacing: .05em; }
.ide-code-block > header button { min-height: 27px; border: 0; border-radius: 5px; padding: 0 8px; background: transparent; color: #a3acb9; font-size: 9px; font-weight: 700; cursor: pointer; }
.ide-code-block > header button:hover { background: #242932; color: #fff; }
.ide-code-block pre { max-height: 480px; overflow: auto; margin: 0; padding: 15px; tab-size: 2; }
.ide-code-block code { color: #d0d6e0; font: 500 11px/1.65 var(--font-mono); white-space: pre; }
.tok-comment { color: #657080; }
.tok-string { color: #b8d58f; }
.tok-number { color: #e0b67b; }
.tok-keyword { color: #9eb6ff; }
.assistant-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px; }
.assistant-actions button,
.run-result-actions button { min-height: 31px; border: 1px solid #303640; border-radius: 6px; padding: 0 9px; background: transparent; color: #929caa; font-size: 9px; font-weight: 700; cursor: pointer; }
.assistant-actions button:hover,
.run-result-actions button:hover { border-color: #505a68; background: #181c23; color: #edf0f5; }
.builder-plan { border-top: 1px solid var(--line); padding: 13px 15px 10px; }
.builder-plan > strong { display: block; margin-bottom: 9px; color: #9fa9b8; font: 750 9px var(--font-mono); letter-spacing: .07em; }
.builder-plan-group + .builder-plan-group { margin-top: 12px; }
.builder-plan-group > span { display: block; margin-bottom: 5px; color: #6f7885; font: 700 8px var(--font-mono); }
.builder-plan-item { min-height: 29px; display: grid; grid-template-columns: 18px minmax(0,1fr); align-items: center; gap: 7px; color: #8d96a3; font-size: 10px; }
.builder-plan-item i { width: 14px; height: 14px; display: grid; place-items: center; border: 1px solid #39404a; border-radius: 50%; color: #5f6874; font: normal 700 8px var(--font-mono); }
.builder-plan-item.done { color: #b8d8c5; }
.builder-plan-item.done i { border-color: rgba(114,214,160,.35); color: #82d6a8; }
.builder-plan-item.current { color: #c7d4ff; }
.builder-plan-item.current i { border-color: var(--accent-blue); background: var(--accent-blue); color: #0a0e17; }
.run-result-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); padding: 12px 15px; }
.run-result-actions > div:last-child { display: flex; gap: 6px; }
.run-summary { display: grid; gap: 2px; color: #a6afbc; font-size: 10px; }
.run-summary strong { color: #e5e8ed; font-size: 11px; }
.run-changes { display: grid; gap: 5px; margin-top: 9px; }
.run-change { display: grid; grid-template-columns: 76px minmax(0,1fr); gap: 8px; color: #848e9b; font-size: 9px; }
.run-change code { overflow: hidden; color: #c6ccd6; font: 500 9px var(--font-mono); text-overflow: ellipsis; white-space: nowrap; }
@keyframes message-enter { from { opacity: 0; transform: translateY(5px); } }

@media (prefers-reduced-motion: reduce) {
  .markdown-message,
  .attachment-preview { animation: none; }
  .markdown-message.streaming .generation-label::before { animation: none; }
}

@media (max-width: 700px) {
  .markdown-card { padding-left: 12px; }
  .markdown-content { font-size: 12px; }
  .ide-code-block { margin-inline: -4px; }
  .ide-code-block pre { max-height: 360px; padding: 12px; }
  .run-result-actions { align-items: stretch; flex-direction: column; }
  .run-result-actions > div:last-child { width: 100%; }
  .run-result-actions button { flex: 1; }
}

/* v30 — project-aware workspace and inspectable visual context */
.agent-view { grid-template-rows: auto auto minmax(0,1fr) auto; }
.project-context { margin: 7px 18px 0; border: 1px solid #292f39; border-radius: 7px; background: #101319; }
.project-context-summary { min-height: 43px; display: grid; grid-template-columns: auto minmax(140px,auto) minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 7px 9px; }
.project-context-icon { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid #343b47; border-radius: 5px; background: #171b22; color: #9eb6ff; font: 700 11px var(--font-mono); }
.project-context-summary > div:nth-child(2) { min-width: 0; display: grid; gap: 1px; }
.project-context-summary strong { overflow: hidden; color: #d8dde6; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.project-context-summary > div:nth-child(2) > span { color: #737d8a; font-size: 8px; }
.project-context-chips { min-width: 0; display: flex; justify-content: flex-end; gap: 5px; overflow: hidden; }
.project-context-chips span { max-width: 130px; overflow: hidden; border: 1px solid #303744; border-radius: 4px; padding: 4px 6px; background: #151922; color: #919cab; font: 600 8px var(--font-mono); text-overflow: ellipsis; white-space: nowrap; }
.project-context-summary > button { min-height: 28px; border: 1px solid #363d49; border-radius: 5px; padding: 0 8px; background: transparent; color: #9aa5b3; font-size: 8px; font-weight: 700; cursor: pointer; }
.project-context-summary > button:hover { border-color: #566174; background: #1a1f27; color: #e5e8ee; }
.project-context-details { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; border-top: 1px solid #272d36; padding: 12px; }
.project-context-details > div { min-width: 0; }
.project-context-details > div > small { display: block; margin-bottom: 7px; color: #697482; font: 700 8px var(--font-mono); letter-spacing: .06em; }
#project-system-list,
#project-root-list { display: grid; gap: 3px; }
#project-system-list > div,
#project-root-list > div { min-height: 31px; display: flex; align-items: center; justify-content: space-between; gap: 9px; border: 1px solid #292f39; border-radius: 5px; padding: 5px 7px; background: #0c0f14; }
#project-system-list > div > span { min-width: 0; display: grid; gap: 1px; }
#project-system-list strong { font-size: 9px; }
#project-system-list small { overflow: hidden; color: #66717f; font: 500 7px var(--font-mono); text-overflow: ellipsis; white-space: nowrap; }
#project-system-list i { color: #8397d1; font: normal 650 7px var(--font-mono); text-transform: uppercase; }
#project-system-list p, #project-root-list p { margin: 0; color: #737d89; font-size: 9px; line-height: 1.5; }
#project-root-list span { overflow: hidden; color: #aab2bd; font: 600 8px var(--font-mono); text-overflow: ellipsis; white-space: nowrap; }
#project-root-list b { color: #7e8a9a; font: 700 8px var(--font-mono); }

.message-attachment { display: block; width: 100%; padding: 0; color: inherit; text-align: left; cursor: zoom-in; }
.message-attachment:hover { border-color: #586275; }
.message-attachment-caption { display: block; overflow: hidden; padding: 6px 8px; color: #858e9b; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.image-viewer { width: min(980px,calc(100% - 30px)); max-height: calc(100dvh - 30px); overflow: hidden; border: 1px solid #3a414d; border-radius: 8px; padding: 0; background: #080a0e; color: #e9ecf1; box-shadow: 0 30px 100px rgba(0,0,0,.72); }
.image-viewer::backdrop { background: rgba(0,0,0,.86); }
.image-viewer header { min-height: 45px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid #292f38; padding: 0 9px 0 14px; background: #11141a; }
.image-viewer header strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.image-viewer header button { width: 31px; height: 31px; border: 0; border-radius: 5px; background: transparent; color: #9ba4b1; font-size: 21px; cursor: pointer; }
.image-viewer header button:hover { background: #252a33; color: #fff; }
.image-viewer > img { width: 100%; max-height: calc(100dvh - 76px); display: block; object-fit: contain; background: #050608; }
.ide-code-actions { display: flex; align-items: center; gap: 2px; }
.ide-code-block.collapsed pre { max-height: 300px; }
.ide-code-block.collapsed { position: relative; }
.ide-code-block.collapsed::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 50px; background: linear-gradient(transparent,#090b0f); pointer-events: none; }

@media (max-width: 700px) {
  .agent-view { grid-template-rows: auto auto minmax(0,1fr) auto; }
  .project-context { margin: 6px 9px 0; }
  .project-context-summary { grid-template-columns: auto minmax(0,1fr) auto; }
  .project-context-chips { grid-column: 2 / -1; justify-content: flex-start; overflow-x: auto; }
  .project-context-chips span { flex: 0 0 auto; }
  .project-context-details { grid-template-columns: 1fr; max-height: 38dvh; overflow-y: auto; }
  .image-viewer { width: 100%; max-height: 92dvh; margin: auto 0 0; border-right: 0; border-bottom: 0; border-left: 0; border-radius: 8px 8px 0 0; }
  .image-viewer > img { max-height: calc(92dvh - 45px); }
}

/* v31 — conversation-first Rovex workbench */
:root {
  --bg: #090a0d;
  --surface: #0d0f13;
  --surface-soft: #12151a;
  --surface-raised: #171a20;
  --line: #242830;
  --line-strong: #363c47;
  --text: #f4f5f7;
  --text-soft: #c9cdd4;
  --muted: #858c97;
  --muted-strong: #a9afb8;
  --accent-blue: #7c9cff;
  --accent-blue-strong: #9ab0ff;
  --green: #82d6a2;
  --red: #ff7f8e;
  --sidebar-width: 304px;
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 10px;
}

body { background: var(--bg); }
.app-shell { grid-template-columns: var(--sidebar-width) minmax(0, 1fr); background: var(--bg); }

.sidebar {
  width: var(--sidebar-width);
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  padding: 0;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: #0a0b0e;
}
.sidebar-rail { min-width: 0; display: flex; flex-direction: column; align-items: center; border-right: 1px solid var(--line); padding: 17px 0 14px; background: #08090c; }
.rail-brand { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #353a43; border-radius: 50%; background: #050608; }
.rail-brand img { width: 30px; height: 30px; display: block; border-radius: 50%; object-fit: cover; }
.sidebar-rail .primary-nav { width: 100%; display: grid; justify-items: center; gap: 9px; margin-top: 28px; }
.sidebar-rail .nav-item { position: relative; width: 40px; min-height: 40px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 7px; padding: 0; color: #7d8490; }
.sidebar-rail .nav-item i { font-size: 19px; }
.sidebar-rail .nav-item:hover { border-color: var(--line); background: var(--surface-soft); color: var(--text); }
.sidebar-rail .nav-item.active { border-color: #38425d; background: rgba(124,156,255,.11); color: #a9bdff; box-shadow: inset 2px 0 #7c9cff; }
.sidebar-rail .nav-label { position: fixed; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.rail-help { width: 40px; height: 40px; display: grid; place-items: center; margin-top: auto; border: 0; border-radius: 7px; background: transparent; color: #747b86; cursor: pointer; }
.rail-help:hover { background: var(--surface-soft); color: var(--text); }
.rail-help i { font-size: 19px; }

.sidebar-panel { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 17px 12px 12px; overflow: hidden; }
.sidebar-top { min-height: 40px; padding: 0 5px; }
.sidebar .brand-copy { gap: 0; }
.sidebar .brand-copy strong { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.sidebar .brand-copy small { color: #767e89; font-size: 11px; }
.new-chat-button { min-height: 42px; margin: 15px 0 18px; border-color: #343945; border-radius: 6px; padding: 0 10px; background: #101217; font-size: 13px; }
.new-chat-button:hover { border-color: #4b5362; background: #151820; }
.new-chat-button > i { color: var(--text); font-size: 16px; }
.new-chat-button > span { min-width: 0; overflow: hidden; color: var(--text); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.new-chat-button kbd { margin-left: auto; border-radius: 4px; background: #0b0d11; font-size: 9px; }

.recent-section { min-height: 0; flex: 1; margin: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2a2e36 transparent; }
.sidebar-label-row { padding: 0 8px 9px; }
.sidebar-label-row h2 { color: #858c96; font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.sidebar-label-row span { color: #69717c; font-size: 10px; }
.recent-list { display: block; }
.conversation-group-label { margin: 13px 8px 5px; color: #737a85; font-size: 11px; }
.conversation-group-label:first-child { margin-top: 0; }
.recent-entry { grid-template-columns: minmax(0, 1fr) 27px; border-left: 2px solid transparent; border-radius: 0; }
.recent-entry:hover, .recent-entry:focus-within { background: #101217; }
.recent-entry:has(.recent-item.active) { border-left-color: var(--accent-blue); background: rgba(124,156,255,.1); }
.recent-item { min-height: 42px; border-radius: 0; padding: 7px 8px; color: #9ca3ad; }
.recent-item:hover, .recent-item.active { background: transparent; color: #eef0f4; }
.recent-item strong { font-size: 13px; font-weight: 600; }
.recent-item span { display: block; margin-top: 2px; color: #737b86; font-size: 11px; }
.conversation-menu-button { width: 27px; height: 32px; border-radius: 5px; color: #717985; }
.conversation-menu-button:hover { background: #20242b; color: #fff; }
.conversation-menu-button i { font-size: 18px; }
.conversation-menu { right: 2px; border-color: var(--line-strong); border-radius: 7px; background: #15181e; box-shadow: 0 16px 42px rgba(0,0,0,.45); }
.conversation-menu button { gap: 8px; }
.empty-recent { padding: 10px 8px; font-size: 10px; }

.sidebar-footer { display: grid; gap: 8px; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.nav-credits { width: 100%; min-height: 48px; display: grid; grid-template-columns: 30px minmax(0,1fr) 24px; align-items: center; gap: 8px; border: 0; border-radius: 6px; padding: 7px; background: transparent; color: var(--text-soft); text-align: left; cursor: pointer; }
.nav-credits:hover { background: var(--surface-soft); }
.nav-credits > i:first-child { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 6px; color: #c4c9d2; }
.nav-credits > i:last-child { color: #747c88; }
.nav-credits-copy { min-width: 0; display: grid; gap: 1px; }
.nav-credits-copy strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.nav-credits-copy small { color: #707783; font-size: 10px; }
.studio-card { margin: 0; border-color: var(--line); border-radius: 7px; padding: 10px; background: #0d0f13; box-shadow: none; }
.studio-card-header { gap: 9px; }
.studio-logo-wrap { position: relative; width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 6px; color: #aeb5c0; }
.studio-logo-wrap .status-dot { position: absolute; top: -3px; right: -3px; border: 2px solid #0d0f13; }
.studio-card h2 { font-size: 12px; }
.studio-card p { font-size: 10px; }
.connection-state { margin-top: 8px; padding-top: 7px; color: #747b86; font-size: 10px; }
.studio-action { min-height: 32px; margin-top: 8px; border-radius: 5px; font-size: 10px; }
.delete-account-button { margin: 1px 6px 0; color: #68707b; font-size: 10px; }

.workspace { min-width: 0; background: var(--bg); }
.topbar { min-height: 64px; padding: 0 18px 0 24px; border-color: var(--line); background: rgba(9,10,13,.96); backdrop-filter: none; }
.topbar-leading > div { min-width: 0; }
.project-line { display: flex; align-items: center; gap: 8px; }
.project-line > i { color: #4f5661; font-size: 11px; }
.topbar-product { color: #808792; font-size: 12px; font-weight: 600; }
.project-line h1 { color: #eef0f4; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.mode-label { display: none !important; }
.mode-label::before { width: 5px; height: 5px; }
.top-actions { gap: 8px; }
.language-switch.compact { border-color: var(--line); border-radius: 5px; background: transparent; }
.credits-button { min-height: 38px; border-color: var(--line); border-radius: 6px; padding: 3px 6px; background: transparent; }
.credits-button:hover { border-color: var(--line-strong); background: var(--surface-soft); }
.credits-symbol { width: 27px; height: 27px; border-radius: 5px; background: #c9ad70; color: #111; }
.credits-button-copy small { display: none; }
.credits-button-copy strong { font-size: 11px; }
.credits-buy-label { display: none; }
.backend-status { min-height: 34px; border: 0; padding: 0 4px; background: transparent; }
#open-setup-top { min-height: 36px; border-color: var(--line); border-radius: 6px; background: transparent; font-size: 11px; }
#open-setup-top:hover { background: var(--surface-soft); }
.account-button { min-height: 38px; border-color: var(--line); border-radius: 6px; background: transparent; }
.account-button:hover { background: var(--surface-soft); }
.account-avatar { width: 28px; height: 28px; border-radius: 50%; }
.account-chevron { color: #69717d; font-size: 10px; }
.account-menu { border-color: var(--line-strong); border-radius: 8px; background: #15181e; }

.agent-view { min-height: 0; display: flex; flex-direction: column; background: var(--bg); }
.agent-toolbar { flex: 0 0 auto; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 7px 16px; }
.connection-banner { min-width: 0; min-height: 32px; display: flex; grid-template-columns: none; gap: 8px; margin: 0; border: 0; border-radius: 0; padding: 0; background: transparent; }
.connection-banner.connected { border: 0; background: transparent; }
.connection-banner .banner-icon { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: #7d8591; font-size: 14px; }
.connection-banner.connected .banner-icon { border-color: rgba(130,214,162,.25); background: rgba(130,214,162,.05); color: var(--green); }
.connection-banner div:nth-child(2) { line-height: 1.25; }
.connection-banner strong { font-size: 12px; font-weight: 600; }
.connection-banner span { color: #858d98; font-size: 11px; }
.connection-banner button { min-height: 29px; border-radius: 5px; padding: 0 9px; color: #a9bbf8; font-size: 11px; }

.project-context { min-width: 0; flex: 1; margin: 0; border: 0; border-radius: 0; background: transparent; }
.project-context-summary { min-height: 32px; display: flex; justify-content: flex-end; gap: 7px; padding: 0; }
.project-context-label { color: #7f8792; font-size: 11px; }
.project-context-copy { order: -1; min-width: 0; display: none; }
.project-context-copy strong, .project-context-copy small { display: block; }
.project-context-copy strong { font-size: 11px; }
.project-context-copy small { color: var(--muted); font-size: 10px; }
.project-context-chips { flex: 0 1 auto; justify-content: flex-end; gap: 4px; }
.project-context-chips span { max-width: 120px; border-color: var(--line); border-radius: 4px; padding: 4px 7px; background: #101217; color: #b8bec7; font: 500 11px var(--font-sans); }
.project-context-summary > button { min-height: 30px; display: inline-flex; align-items: center; gap: 5px; border-color: var(--line); border-radius: 5px; color: #9aa2ad; font-size: 11px; }
.project-context-summary > button:hover { border-color: var(--line-strong); background: var(--surface-soft); }

.agent-body { min-height: 0; flex: 1; display: grid; grid-template-columns: minmax(0,1fr) auto; }
.conversation-column { min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(0,1fr) auto; }
.chat { min-height: 0; padding: 38px max(32px, calc((100% - 820px) / 2)) 24px; }
.welcome { max-width: 820px; margin: clamp(20px, 7vh, 70px) auto 0; text-align: left; }
.welcome h2 { max-width: 660px; font-size: clamp(30px, 3.2vw, 40px); font-weight: 650; line-height: 1.15; letter-spacing: -.025em; }
.welcome > p { max-width: 680px; margin: 12px 0 0; color: #a3aab4; font-size: 15px; line-height: 1.6; }
.prompt-grid { grid-template-columns: 1fr 1fr; gap: 0 24px; max-width: none; margin-top: 28px; }
.prompt-grid button { min-height: 66px; grid-template-columns: 32px minmax(0,1fr) 24px; gap: 10px; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 10px 3px; background: transparent; box-shadow: none; }
.prompt-grid button:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
.prompt-grid button:hover { border-color: var(--line); background: #0e1014; transform: none; }
.prompt-grid button > i:first-child { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 5px; color: #a5adb8; font-size: 15px; }
.prompt-grid strong { color: #e2e5e9; font-size: 14px; font-weight: 600; }
.prompt-grid small { color: #7b838e; font-size: 12px; }
.prompt-grid .arrow { color: #59616d; font-size: 14px; }

.timeline { max-width: 820px; gap: 28px; }
.message { width: 100%; }
.message-meta { gap: 10px; margin-bottom: 5px; }
.message-meta strong { color: #e8eaee; font-size: 13px; font-weight: 600; }
.message-meta time { margin-left: auto; color: #69717c; font-size: 11px; }
.user-avatar, .rovex-avatar { width: 31px; height: 31px; border-color: #323741; border-radius: 50%; box-shadow: none; }
.user-message { max-width: 100%; justify-self: stretch; }
.user-message .message-meta { justify-content: flex-start; }
.user-message-content { justify-items: start; padding-left: 41px; }
.user-message p { border: 0; border-radius: 0; padding: 0; background: transparent; color: #e1e4e8; font-size: 14px; line-height: 1.6; }
.message-actions { justify-content: flex-start; }
.message-editor { width: 100%; border-radius: 7px; }
.message-attachments { justify-content: start; }
.assistant-card, .markdown-card { border: 0; border-left: 0; border-radius: 0; padding: 1px 0 1px 41px; background: transparent; box-shadow: none; }
.assistant-heading h3 { font-size: 14px; }
.assistant-answer, .markdown-content { max-width: 760px; color: #cbd0d7; font-size: 14px; line-height: 1.68; }
.markdown-message.streaming .markdown-card, .markdown-message.stopped .markdown-card, .markdown-message.failed .markdown-card { border-left: 0; }
.assistant-actions { gap: 3px; margin-top: 10px; }
.assistant-actions button { min-height: 28px; border-color: transparent; padding: 0 7px; color: #777f8b; }
.assistant-actions button:hover { border-color: var(--line); background: var(--surface-soft); }

/* Chat direction: creator messages belong to the right, Rovex work stays on the left. */
.user-message {
  width: min(76%, 680px);
  justify-self: end;
}
.user-message .message-meta { justify-content: flex-end; }
.user-message .message-meta time { margin-left: 0; }
.user-message-content { justify-items: end; padding-left: 0; }
.user-message p {
  width: fit-content;
  max-width: 100%;
  border: 1px solid #303743;
  border-radius: 8px 2px 8px 8px;
  padding: 10px 12px;
  background: #171b22;
}
.user-message .message-actions,
.user-message .message-attachments { justify-content: flex-end; }
.assistant-message { justify-self: start; }

.run-card { margin-left: 41px; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.run-card > header { min-height: 36px; border: 0; padding: 0 0 6px; }
.run-progress-toggle { width: 100%; min-height: 36px; display: grid; grid-template-columns: minmax(0,1fr) auto 22px; align-items: center; gap: 9px; border: 0; border-radius: 5px; padding: 0 2px; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.run-progress-toggle:hover { background: #0e1014; }
.run-progress-toggle:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 2px; }
.run-progress-toggle > i { color: #69717d; font-size: 13px; }
.run-heading { min-width: 0; display: flex; align-items: center; gap: 9px; }
.run-heading strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run-card header strong { color: #9bb1f8; font-size: 13px; font-weight: 600; }
.run-pulse { width: 7px; height: 7px; background: var(--accent-blue); box-shadow: none; }
.run-state { border: 0; border-radius: 0; padding: 0; background: transparent; color: #7a838f; font: 500 10px var(--font-sans); letter-spacing: 0; text-transform: none; }
.progress-list { position: relative; padding: 3px 0 8px; }
.run-progress-content[hidden] { display: none; }
.run-card.progress-collapsed > header { border-bottom: 1px solid var(--line); padding-bottom: 7px; }
.progress-item { position: relative; min-height: 49px; grid-template-columns: 24px minmax(0,1fr) auto; gap: 11px; border: 0; color: #aeb4be; font-size: 13px; }
.progress-item:not(:last-child)::after { content: ""; position: absolute; top: 31px; bottom: -11px; left: 11px; width: 1px; background: #2d333d; }
.progress-icon { width: 24px; height: 24px; display: grid; place-items: center; color: #656e7a; font-size: 17px; }
.progress-item.working .progress-icon { width: 24px; height: 24px; border: 0; animation: none; font-size: 17px; }
.progress-item.working .progress-icon i { color: var(--accent-blue); animation: spin .8s linear infinite; }
.progress-item.settled .progress-icon { color: #59626e; }
.progress-item.settled .progress-icon i { animation: none; }
.progress-item.success .progress-icon { color: var(--green); }
.progress-time { color: #69717c; font-size: 10px; }
.builder-plan { border-top: 1px solid var(--line); padding: 13px 0 9px; }
.builder-plan-item i { border: 0; border-radius: 0; font-size: 14px; }
.run-result-actions { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 13px 0; }
.run-summary strong { font-size: 13px; }
.run-result-actions button { min-height: 34px; border-color: var(--line-strong); border-radius: 5px; }
.run-change { grid-template-columns: 100px minmax(0,1fr); }

.composer-area { width: min(820px, calc(100% - 48px)); padding: 0 0 12px; }
.composer { min-height: 126px; border-color: #3b424f; border-radius: 8px; padding: 12px; background: #101217; box-shadow: none; }
.composer:focus-within { border-color: rgba(124,156,255,.82); box-shadow: 0 0 0 2px rgba(124,156,255,.09); }
.composer textarea { min-height: 58px; max-height: 180px; padding: 2px 3px 12px; color: #eef0f4; font-size: 15px; line-height: 1.5; }
.composer textarea::placeholder { color: #747c88; }
.composer-footer { align-items: center; }
.composer-context { gap: 7px; }
.attach-button, .composer-auto, .composer-studio { min-height: 34px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-strong); border-radius: 5px; padding: 0 10px; background: transparent; color: #a9b0ba; font-size: 12px; font-weight: 600; }
.attach-button:hover { border-color: #505866; background: #181b21; color: #fff; }
.composer-auto { cursor: default; }
.composer-studio { color: #7f8792; }
.send-button, .stop-button { min-height: 36px; border-radius: 5px; padding: 0 13px; }
.send-button { border-color: #7899ff; background: var(--accent-blue); color: #0a0d14; }
.send-button:hover { background: var(--accent-blue-strong); }
.stop-button { border-color: #4b515d; background: #1a1d23; color: #e7e9ed; }
.composer-help { margin-top: 7px; color: #6f7782; font-size: 11px; }
.attachment-tray { justify-content: flex-start; margin-bottom: 10px; }
.attachment-preview { width: 196px; min-width: 0; max-width: 100%; grid-template-columns: 54px minmax(0,1fr) 24px; border-radius: 6px; }
.attachment-preview img { width: 54px; height: 54px; }
.composer-drop-state { inset: 6px; align-content: center; gap: 5px; border-color: rgba(124,156,255,.65); border-radius: 6px; background: rgba(13,15,20,.97); color: #d8dff5; }
.composer-drop-state i { font-size: 23px; }
.composer-drop-state strong { font-size: 11px; }
.composer-drop-state span { color: #8e97a4; font-size: 11px; }

.build-inspector { width: 330px; min-width: 330px; min-height: 0; overflow-y: auto; border-left: 1px solid var(--line); background: #0b0d11; }
.build-inspector > header { min-height: 48px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 0 12px 0 15px; }
.build-inspector > header strong { font-size: 13px; }
.build-inspector > header button { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 5px; background: transparent; color: #727a86; cursor: pointer; }
.build-inspector > header button:hover { background: var(--surface-soft); color: #fff; }
.inspector-tabs { min-height: 42px; display: grid; grid-template-columns: repeat(4,1fr); border-bottom: 1px solid var(--line); padding: 0 8px; }
.inspector-tabs button { position: relative; border: 0; background: transparent; color: #838b96; font-size: 11px; cursor: pointer; }
.inspector-tabs button[aria-selected="true"] { color: #a9bcff; }
.inspector-tabs button[aria-selected="true"]::after { content: ""; position: absolute; right: 7px; bottom: -1px; left: 7px; height: 2px; background: var(--accent-blue); }
.inspector-panel { padding: 12px; }
.inspector-empty { min-height: 170px; display: grid; place-items: center; align-content: center; gap: 9px; color: #555d68; text-align: center; }
.inspector-empty i { font-size: 24px; }
.inspector-empty p { max-width: 220px; margin: 0; font-size: 12px; line-height: 1.5; }
#inspector-plan-list, #inspector-activity-list, #inspector-files-list { display: grid; }
.inspector-plan-row { min-height: 50px; display: grid; grid-template-columns: 20px minmax(0,1fr) auto; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); color: #77808c; }
.inspector-plan-row > i { color: #555e69; font-size: 15px; }
.inspector-plan-row.done > i { color: var(--green); }
.inspector-plan-row.active { margin-inline: -5px; border: 1px solid rgba(124,156,255,.65); border-radius: 5px; padding-inline: 5px; background: rgba(124,156,255,.06); }
.inspector-plan-row.active > i { color: var(--accent-blue); animation: spin .85s linear infinite; }
.inspector-plan-row > span, .inspector-file-row > span { min-width: 0; display: grid; gap: 2px; }
.inspector-plan-row strong, .inspector-file-row strong { overflow: hidden; color: #cbd0d7; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.inspector-plan-row small, .inspector-file-row small { overflow: hidden; color: #737b87; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.inspector-plan-row > b { color: #747c87; font-size: 10px; font-weight: 500; }
.inspector-plan-row.done > b { color: #83b896; }
.inspector-plan-row.active > b { color: #9eb4ff; }
.inspector-activity-row { min-height: 44px; display: grid; grid-template-columns: 18px minmax(0,1fr) auto; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); color: #aeb5be; font-size: 11px; }
.inspector-activity-row i { color: var(--accent-blue); }
.inspector-activity-row.success i { color: var(--green); }
.inspector-activity-row.error i { color: var(--red); }
.inspector-activity-row time { color: #69717c; font: 500 10px var(--font-sans); }
.inspector-file-row { min-height: 51px; display: grid; grid-template-columns: 20px minmax(0,1fr) auto; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.inspector-file-row > i { color: #7e8794; }
.inspector-file-row > b { max-width: 82px; overflow: hidden; color: #8da6ef; font: 600 10px var(--font-sans); text-overflow: ellipsis; white-space: nowrap; }
.inspector-section + .inspector-section { margin-top: 20px; }
.inspector-section > small { display: block; margin-bottom: 8px; color: #7b838e; font: 600 11px var(--font-sans); letter-spacing: 0; }
#project-system-list, #project-root-list { gap: 0; }
#project-system-list > div, #project-root-list > div { min-height: 42px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 6px 1px; background: transparent; }
#project-system-list strong { font-size: 11px; }
#project-system-list small { font-size: 10px; }

.dashboard-view, .info-view { background: var(--bg); }
.dashboard-hero, .dashboard-stats, .dashboard-panel, .dashboard-shortcuts, .info-hero, .official-plugin-card, .install-method, .pairing-panel, .security-grid article, .permission-table, .policy-panel, .data-panel, .faq-section { box-shadow: none !important; }
.dashboard-stat-card, .dashboard-panel, .dashboard-shortcuts > button, .official-plugin-card, .install-method, .pairing-panel, .security-grid article, .permission-table, .policy-panel, .data-panel, .faq-section { border-radius: 7px; }
dialog, .credits-dialog-shell { border-radius: 9px !important; box-shadow: 0 24px 70px rgba(0,0,0,.6) !important; }

@media (max-width: 1180px) {
  .build-inspector { position: fixed; z-index: 70; top: 64px; right: 0; bottom: 0; box-shadow: -20px 0 50px rgba(0,0,0,.4); }
  body.inspector-open::after { content: ""; position: fixed; z-index: 69; inset: 64px 0 0 var(--sidebar-width); background: rgba(0,0,0,.34); pointer-events: none; }
}

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 100; top: 0; bottom: 0; left: 0; width: min(304px, calc(100vw - 28px)); transform: translateX(-102%); transition: transform .18s ease; box-shadow: 22px 0 60px rgba(0,0,0,.5); }
  .sidebar.open { transform: translateX(0); }
  .mobile-close, .mobile-menu { display: grid; }
  .mobile-close { width: 32px; height: 32px; border-radius: 5px; }
  .topbar { min-height: 58px; padding-inline: 10px; }
  .build-inspector { top: 58px; }
  body.inspector-open::after { inset: 58px 0 0 0; }
  .chat { padding-inline: max(22px, calc((100% - 760px) / 2)); }
}

@media (max-width: 700px) {
  .topbar-product, .project-line > i, .mode-label, .backend-status, .credits-button-copy, .language-switch.compact { display: none; }
  .topbar { gap: 8px; }
  .top-actions { gap: 5px; }
  .credits-button { width: 36px; padding: 3px; }
  #open-setup-top { width: 36px; padding: 0; font-size: 0; }
  #open-setup-top i { font-size: 16px; }
  .account-button { padding-right: 5px; }
  .account-copy, .account-chevron { display: none; }
  .agent-toolbar { min-height: 44px; padding: 6px 9px; }
  .connection-banner { flex: 0 1 auto; }
  .connection-banner div:nth-child(2) span { display: none; }
  .connection-banner button { display: none; }
  .project-context-summary { justify-content: flex-end; }
  .project-context-label { display: none; }
  .project-context-chips { max-width: 150px; overflow-x: auto; }
  .project-context-chips span { flex: 0 0 auto; }
  .project-context-summary > button span { display: none; }
  .build-inspector { width: min(340px, 100vw); min-width: 0; }
  .chat { padding: 24px 16px 18px; }
  .welcome { margin-top: 20px; }
  .welcome h2 { font-size: 29px; }
  .welcome > p { font-size: 12px; }
  .prompt-grid { grid-template-columns: 1fr; gap: 0; margin-top: 20px; }
  .prompt-grid button { min-height: 60px; }
  .prompt-grid button:nth-last-child(-n+2) { border-bottom: 0; }
  .prompt-grid button:last-child { border-bottom: 1px solid var(--line); }
  .timeline { gap: 22px; }
  .message-meta time { display: none; }
  .user-message { width: 88%; max-width: 88%; }
  .user-message-content, .assistant-card, .markdown-card, .run-card { margin-left: 0; padding-left: 0; }
  .composer-area { width: 100%; padding: 0 9px 9px; }
  .composer { min-height: 116px; padding: 10px; }
  .composer-context { flex: 1; flex-wrap: nowrap; overflow-x: auto; }
  .composer-auto { display: none; }
  .composer-studio { max-width: 150px; }
  .composer-studio > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .composer-help { display: none; }
  .send-button, .stop-button { flex: 0 0 auto; }
  .run-result-actions { align-items: stretch; }
}

@media (max-width: 420px) {
  .sidebar { grid-template-columns: 56px minmax(0,1fr); }
  .sidebar-panel { padding-inline: 9px; }
  .rail-brand, .sidebar-rail .nav-item, .rail-help { width: 36px; height: 36px; }
  .project-context-chips { display: none; }
  .connection-banner strong { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .composer-studio { display: none; }
  .attach-button { padding-inline: 9px; }
  .send-button span:first-child { display: none; }
  .send-button { width: 38px; padding: 0; }
}
