:root {
  color-scheme: dark;
  --bg: #090b13;
  --panel: rgba(18, 22, 35, .78);
  --panel-strong: rgba(21, 26, 42, .92);
  --line: rgba(179, 190, 226, .12);
  --line-bright: rgba(173, 162, 255, .27);
  --text: #f2f3fc;
  --muted: #9298ae;
  --faint: #626a82;
  --violet: #a78bfa;
  --blue: #79a9ff;
  --cyan: #78dbe4;
  --green: #68d7a0;
  --red: #ff858f;
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--bg); }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--text); background: radial-gradient(ellipse at 46% -18%, rgba(90, 86, 165, .24), transparent 46%), linear-gradient(145deg, #0a0d17 0%, #0b0e18 53%, #0b1020 100%); overflow-x: hidden; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid #a995ff; outline-offset: 3px; }
.ambient { position: fixed; z-index: 0; pointer-events: none; border-radius: 50%; filter: blur(2px); opacity: .35; }
.ambient-one { width: 520px; height: 520px; right: -250px; top: 4%; background: radial-gradient(circle, rgba(77, 110, 204, .18), transparent 68%); }
.ambient-two { width: 460px; height: 460px; left: 19%; bottom: -340px; background: radial-gradient(circle, rgba(127, 79, 202, .2), transparent 70%); }
.app-shell { position: relative; z-index: 1; display: flex; min-height: 100vh; }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; display: flex; flex-direction: column; width: 252px; padding: 27px 17px 17px; border-right: 1px solid rgba(175, 184, 221, .1); background: rgba(9, 12, 21, .82); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px); }
.brand { display: flex; align-items: center; gap: 12px; margin: 0 0 30px 5px; }
.brand-mark { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 2px; width: 35px; height: 35px; border: 1px solid rgba(174, 157, 255, .3); border-radius: 12px; background: linear-gradient(145deg, rgba(147, 116, 255, .23), rgba(95, 164, 235, .08)); box-shadow: inset 0 1px rgba(255,255,255,.12), 0 6px 26px rgba(109, 92, 220, .2); transform: rotate(-5deg); }
.brand-mark span { display: block; width: 4px; border-radius: 8px; background: linear-gradient(180deg, #d6c7ff, #7c9dff); transform: skew(-17deg); }
.brand-mark span:nth-child(1) { height: 11px; opacity: .65; }
.brand-mark span:nth-child(2) { height: 20px; }
.brand-mark span:nth-child(3) { height: 14px; opacity: .8; }
.brand-copy { display: flex; flex-direction: column; gap: 3px; letter-spacing: .16em; }
.brand-copy strong { font-size: 13px; font-weight: 800; }
.brand-copy small { color: #78809a; font-size: 8px; letter-spacing: .2em; }
.workspace-switcher { display: flex; align-items: center; gap: 10px; padding: 10px 10px; margin-bottom: 26px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); }
.workspace-avatar, .profile-avatar, .topbar-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 10px; font-size: 10px; font-weight: 750; color: #ddd7ff; background: linear-gradient(145deg, rgba(148, 119, 242, .42), rgba(77, 134, 192, .28)); border: 1px solid rgba(183, 168, 255, .22); }
.workspace-label, .profile-copy { display: flex; flex-direction: column; min-width: 0; gap: 3px; }
.workspace-label strong, .profile-copy strong { font-size: 10px; font-weight: 650; }
.workspace-label small, .profile-copy small { color: var(--muted); font-size: 9px; }
.chevron { margin-left: auto; color: var(--faint); font-size: 17px; }
.nav-caption { margin: 0 0 9px 10px; color: #656d83; font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.nav-caption-spaced { margin-top: 30px; }
.side-nav { display: flex; flex-direction: column; gap: 5px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 42px; padding: 0 11px; border: 1px solid transparent; border-radius: 11px; color: #9ba2b8; background: transparent; cursor: pointer; text-align: left; font-size: 11px; transition: background .18s ease, color .18s ease, border .18s ease; }
.nav-item:hover { color: #e6e5f7; background: rgba(255,255,255,.035); }
.nav-item.active { color: #eeeaff; border-color: rgba(164, 143, 255, .18); background: linear-gradient(100deg, rgba(137, 111, 236, .19), rgba(101, 124, 202, .08)); box-shadow: inset 2px 0 #aa94ff; }
.nav-icon { display: grid; place-items: center; width: 18px; color: #a99af0; font-size: 17px; }
.nav-item kbd { margin-left: auto; color: #686f87; font-size: 9px; font-family: inherit; }
.nav-count { margin-left: auto; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; color: #c9bdff; background: rgba(147, 120, 236, .17); font-size: 9px; }
.sidebar-bottom { margin-top: auto; }
.cloud-card { padding: 13px 13px 12px; margin-bottom: 15px; border: 1px solid rgba(128, 157, 217, .15); border-radius: 14px; background: linear-gradient(145deg, rgba(61, 86, 140, .16), rgba(86, 71, 140, .08)); }
.cloud-card-top { display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 650; }
.tiny-live { margin-left: auto; color: #78d8af; font-size: 8px; letter-spacing: .12em; }
.cloud-card p { margin: 9px 0 12px; color: #929cb2; font-size: 9px; line-height: 1.6; }
.cloud-card small { display: block; margin-top: 8px; color: #737c94; font-size: 8px; }
.cloud-track { height: 3px; overflow: hidden; border-radius: 4px; background: rgba(255,255,255,.07); }
.cloud-track span { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8e83ef, #66cdd9); opacity: .8; }
.pulse-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(104, 215, 160, .6); flex: 0 0 auto; }
.profile-row { display: flex; align-items: center; gap: 9px; padding: 13px 2px 2px; border-top: 1px solid var(--line); }
.profile-avatar { width: 31px; height: 31px; border-radius: 50%; }
.profile-menu { margin-left: auto; }
.main-content { width: calc(100% - 252px); min-height: 100vh; margin-left: 252px; }
.topbar { display: flex; align-items: center; justify-content: space-between; height: 72px; padding: 0 clamp(22px, 3vw, 48px); border-bottom: 1px solid rgba(175, 184, 221, .09); background: rgba(10, 13, 22, .35); backdrop-filter: blur(20px); }
.topbar-left, .topbar-right, .breadcrumb { display: flex; align-items: center; }
.breadcrumb { gap: 11px; color: #798199; font-size: 10px; }
.breadcrumb strong { color: #e1e3ef; font-weight: 600; }
.crumb-separator { color: #4e566d; }
.topbar-right { gap: 21px; }
.connection-pill { display: flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid rgba(104, 215, 160, .15); border-radius: 20px; color: #9dd7ba; background: rgba(65, 150, 115, .075); font-size: 9px; }
.topbar-link { color: #a1a9c0; font-size: 10px; }
.topbar-link:hover { color: white; }
.topbar-avatar { width: 29px; height: 29px; border-radius: 50%; }
.icon-button { display: grid; place-items: center; width: 31px; height: 31px; padding: 0; border: 1px solid transparent; border-radius: 9px; color: #8790a8; background: transparent; cursor: pointer; font-size: 15px; }
.icon-button:hover { border-color: var(--line); color: white; background: rgba(255,255,255,.04); }
.mobile-menu { display: none; margin-right: 10px; }
.page-wrap { max-width: 1580px; padding: 42px clamp(22px, 3vw, 48px) 36px; margin: 0 auto; }
.welcome-row { display: flex; align-items: center; justify-content: space-between; min-height: 154px; margin-bottom: 28px; }
.eyebrow, .section-kicker { display: flex; align-items: center; gap: 8px; color: #8d86c4; font-size: 8px; font-weight: 750; letter-spacing: .17em; }
.eyebrow-line { display: inline-block; width: 18px; height: 1px; background: linear-gradient(90deg, #9885fa, transparent); }
h1 { margin: 13px 0 9px; color: #f4f3fb; font-size: clamp(27px, 3vw, 39px); line-height: 1.15; letter-spacing: -.045em; font-weight: 670; }
.gradient-text { color: #b2a0ff; background: linear-gradient(95deg, #c4b5fd 0%, #9eabff 55%, #8bd7e0 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.welcome-copy { max-width: 650px; margin: 0; color: #969db2; font-size: 12px; line-height: 1.8; }
.welcome-orbit { position: relative; width: 140px; height: 140px; margin-right: 7%; flex: 0 0 auto; }
.orbit-ring { position: absolute; inset: 17px; border: 1px solid rgba(167, 150, 255, .25); border-radius: 50%; box-shadow: 0 0 32px rgba(116, 105, 221, .07); }
.ring-a { transform: rotateX(64deg) rotateZ(-25deg); }
.ring-b { inset: 4px 29px; transform: rotateZ(45deg) rotateX(67deg); border-color: rgba(113, 192, 220, .2); }
.orbit-core { position: absolute; inset: 43px; display: grid; place-items: center; border: 1px solid rgba(198, 183, 255, .35); border-radius: 23px; background: radial-gradient(circle at 35% 25%, rgba(188, 166, 255, .55), rgba(102, 112, 191, .22) 48%, rgba(57, 75, 122, .12)); box-shadow: 0 0 42px rgba(132, 112, 235, .22), inset 0 1px rgba(255,255,255,.22); transform: rotate(45deg); }
.orbit-core span { width: 17px; height: 30px; border-left: 4px solid #ded5ff; border-right: 4px solid #8dd9e3; transform: skew(-15deg); filter: drop-shadow(0 0 8px rgba(174, 161, 255, .9)); }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 282px; gap: 18px; align-items: start; }
.primary-column, .inspector-column { display: flex; flex-direction: column; gap: 17px; min-width: 0; }
.glass-card { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(25, 30, 47, .82), rgba(15, 19, 31, .83)); box-shadow: 0 18px 50px rgba(0,0,0,.13), inset 0 1px rgba(255,255,255,.035); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.composer { padding: 22px 23px 16px; border-color: rgba(165, 150, 246, .2); background: linear-gradient(145deg, rgba(28, 31, 52, .91), rgba(16, 21, 35, .9)); box-shadow: 0 20px 60px rgba(3, 5, 15, .24), 0 0 48px rgba(118, 100, 217, .055), inset 0 1px rgba(255,255,255,.06); }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.card-heading h2 { margin: 5px 0 0; font-size: 16px; font-weight: 650; letter-spacing: -.02em; }
.section-kicker { color: #858ba8; font-size: 8px; }
.mode-pill { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid rgba(117, 196, 208, .14); border-radius: 20px; color: #9fcbd2; background: rgba(69, 152, 165, .075); font-size: 9px; white-space: nowrap; }
.mode-icon { color: #b7a6ff; }
#task-input { display: block; width: 100%; min-height: 126px; resize: vertical; padding: 15px 16px; border: 1px solid rgba(169, 176, 216, .14); border-radius: 14px; outline: none; color: #ececf7; background: rgba(8, 11, 20, .43); font-size: 11px; line-height: 1.75; transition: border .18s, box-shadow .18s; }
#task-input::placeholder { color: #737d96; opacity: 1; }
#task-input:focus { border-color: rgba(169, 149, 255, .55); box-shadow: 0 0 0 3px rgba(153, 127, 249, .09); }
.prompt-tools { display: flex; justify-content: space-between; gap: 12px; margin: 8px 2px 12px; color: #727c94; font-size: 9px; }
.prompt-hint { display: flex; align-items: center; gap: 6px; }
.sparkle { color: #b49dff; font-size: 13px; }
.char-count { flex: 0 0 auto; }
.quick-prompts { display: flex; flex-wrap: wrap; gap: 7px; }
.prompt-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid rgba(171, 182, 220, .12); border-radius: 20px; color: #aab1c6; background: rgba(255,255,255,.025); cursor: pointer; font-size: 9px; transition: color .18s, border .18s, background .18s; }
.prompt-chip span { color: #b4a3ff; font-size: 12px; }
.prompt-chip:hover { color: #f0edff; border-color: rgba(169, 149, 255, .34); background: rgba(145, 120, 236, .08); }
.form-divider { height: 1px; margin: 19px 0 16px; background: var(--line); }
.task-config { display: grid; grid-template-columns: 1.4fr .8fr .72fr; gap: 10px; }
.field-group { min-width: 0; }
.field-group label { display: block; margin-bottom: 7px; color: #7a839d; font-size: 8px; font-weight: 750; letter-spacing: .1em; }
.field-shell { display: flex; align-items: center; gap: 8px; min-width: 0; height: 37px; padding: 0 10px; border: 1px solid rgba(168, 177, 215, .12); border-radius: 10px; background: rgba(8, 11, 20, .37); }
.field-symbol { color: #a59af0; font-size: 12px; }
.field-shell input, .field-shell select { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; color: #cdd2e4; background: transparent; font-size: 9px; }
.field-shell select { cursor: pointer; }
.field-shell select option { color: #e7e8f4; background: #151a29; }
.composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; }
.model-chip { display: flex; align-items: center; gap: 9px; }
.model-icon { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid rgba(165, 146, 255, .2); border-radius: 9px; color: #b8a8ff; background: rgba(143, 116, 233, .12); font-size: 17px; }
.model-chip strong, .model-chip small { display: block; }
.model-chip strong { color: #cbd0e4; font-size: 9px; font-weight: 650; }
.model-chip small { margin-top: 3px; color: #77819a; font-size: 8px; }
.model-chevron { margin-left: 4px; color: #6d7690; font-size: 15px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 17px; min-height: 39px; padding: 0 15px; border: 1px solid rgba(200, 184, 255, .35); border-radius: 11px; color: #fff; background: linear-gradient(105deg, #8166d9 0%, #677bd1 54%, #528fab 100%); box-shadow: 0 7px 24px rgba(106, 94, 205, .22), inset 0 1px rgba(255,255,255,.22); cursor: pointer; font-size: 10px; font-weight: 700; transition: transform .18s, filter .18s, box-shadow .18s; }
.primary-button:hover { transform: translateY(-1px); filter: brightness(1.1); box-shadow: 0 9px 28px rgba(106, 94, 205, .31), inset 0 1px rgba(255,255,255,.22); }
.primary-button:active { transform: translateY(0); }
.button-arrow { font-size: 15px; }
.privacy-note { display: flex; align-items: center; gap: 7px; margin-top: 15px; padding-top: 13px; border-top: 1px solid rgba(167, 176, 212, .08); color: #79839a; font-size: 8px; }
.lock-icon { color: #9e9ce0; font-size: 14px; }
.lower-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 17px; }
.activity-card, .project-card { min-width: 0; padding: 18px 17px 14px; }
.compact-heading { margin-bottom: 13px; }
.compact-heading h2 { font-size: 13px; }
.text-button { padding: 5px 0; border: 0; color: #a99cf2; background: transparent; cursor: pointer; font-size: 9px; }
.text-button:hover { color: white; }
.run-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid rgba(169, 177, 214, .08); }
.run-row:first-of-type { border-top: 0; }
.run-status { display: grid; place-items: center; flex: 0 0 auto; width: 25px; height: 25px; border-radius: 9px; font-size: 12px; font-weight: 800; }
.status-failed { color: var(--red); background: rgba(226, 99, 115, .12); }
.status-passed { color: var(--green); background: rgba(88, 189, 142, .12); }
.run-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.run-info strong { overflow: hidden; color: #dce0ef; font-size: 9px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.run-info small { overflow: hidden; color: #7e879f; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.run-info .run-detail { color: #a17d83; }
.run-row:nth-of-type(2) .run-detail { color: #719f8c; }
.run-result { margin-left: auto; flex: 0 0 auto; color: #e48b94; font-size: 8px; white-space: nowrap; }
.run-result span { margin-left: 3px; color: #9a8296; }
.success-result { color: #79c9a0; }
.repo-symbol { color: #a99af4; font-size: 20px; }
.repo-title { display: flex; align-items: center; gap: 10px; margin: 3px 0 14px; }
.repo-avatar { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(174, 158, 255, .24); border-radius: 10px; color: #e3dcff; background: linear-gradient(145deg, rgba(151, 120, 246, .32), rgba(94, 138, 203, .18)); font-size: 13px; font-weight: 750; }
.repo-title strong, .repo-title small { display: block; }
.repo-title strong { color: #e1e3f1; font-size: 10px; }
.repo-title small { margin-top: 3px; color: #78829a; font-size: 8px; }
.repo-stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 11px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.repo-stats strong, .repo-stats small { display: block; }
.repo-stats strong { color: #d0d4e6; font-size: 9px; font-weight: 650; }
.repo-stats small { margin-top: 4px; color: #7b849a; font-size: 7px; }
.subtle-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 35px; padding: 0 12px; border: 1px solid rgba(170, 180, 218, .14); border-radius: 10px; color: #bbc2d7; background: rgba(255,255,255,.025); cursor: pointer; font-size: 9px; transition: .18s; }
.subtle-button:hover { border-color: rgba(170, 151, 255, .35); color: white; background: rgba(145, 120, 236, .08); }
.full-button { width: 100%; margin-top: 12px; }
.inspector-card, .incident-card, .safeguards-card { padding: 17px 16px; }
.inspector-heading { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.ready-label { display: inline-flex; align-items: center; gap: 6px; color: #91c9a9; font-size: 8px; }
.agent-identity { display: flex; align-items: center; gap: 11px; margin: 20px 0 19px; }
.agent-emblem { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(178, 161, 255, .33); border-radius: 15px; background: radial-gradient(circle at 30% 22%, rgba(195, 173, 255, .27), rgba(86, 93, 172, .12) 60%); box-shadow: 0 0 25px rgba(125, 109, 222, .13), inset 0 1px rgba(255,255,255,.13); }
.agent-emblem span { width: 10px; height: 26px; border-left: 3px solid #ded4ff; border-right: 3px solid #83d5e0; transform: skew(-17deg); filter: drop-shadow(0 0 7px rgba(160, 148, 255, .7)); }
.agent-emblem i { position: absolute; width: 27px; height: 27px; border: 1px solid rgba(170, 157, 255, .23); border-radius: 50%; transform: rotateX(65deg) rotate(-20deg); }
.agent-identity h2 { margin: 0; color: #eae9f7; font-size: 13px; font-weight: 650; }
.agent-identity p { margin: 4px 0 0; color: #7f899f; font-size: 8px; }
.status-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 0; border-top: 1px solid rgba(167, 176, 212, .08); color: #858da3; font-size: 9px; }
.status-line strong { color: #c6ccdf; font-size: 8px; font-weight: 600; text-align: right; }
.status-line .status-good { color: #83cfa8; }
.status-line .status-muted { color: #7e899f; }
.incident-card { border-color: rgba(241, 133, 144, .16); background: linear-gradient(145deg, rgba(65, 34, 49, .24), rgba(22, 22, 34, .85)); }
.incident-icon { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; color: #ff9ca4; background: rgba(233, 109, 122, .14); font-size: 10px; font-weight: 800; }
.incident-card h3 { margin: 13px 0 7px; color: #eadde4; font-size: 11px; line-height: 1.5; font-weight: 650; }
.incident-card p { margin: 0; color: #a895a1; font-size: 8px; line-height: 1.65; }
.incident-card code, .add-project-card code { color: #e2c1db; font-size: .95em; }
.incident-meta { display: flex; justify-content: space-between; margin: 13px 0 11px; padding: 9px 0; border-top: 1px solid rgba(230, 140, 156, .11); border-bottom: 1px solid rgba(230, 140, 156, .11); color: #c38f9c; font-size: 8px; }
.incident-link { display: flex; align-items: center; justify-content: space-between; color: #e2a5ad; font-size: 8px; }
.incident-link:hover { color: white; }
.safeguards-card { background: linear-gradient(145deg, rgba(36, 48, 69, .45), rgba(16, 22, 34, .84)); }
.safeguard-icon { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid rgba(117, 194, 205, .18); border-radius: 9px; color: #91d0d5; background: rgba(91, 170, 180, .1); font-size: 16px; }
.safeguards-card h3 { margin: 12px 0 6px; font-size: 11px; font-weight: 650; }
.safeguards-card p { margin: 0; color: #929db2; font-size: 8px; line-height: 1.65; }
.safeguard-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.safeguard-tags span { padding: 5px 7px; border: 1px solid rgba(150, 174, 210, .12); border-radius: 6px; color: #9cabc0; background: rgba(255,255,255,.025); font-size: 7px; }
.prototype-footnote { display: flex; align-items: center; gap: 8px; margin: 21px 2px 0; color: #747f97; font-size: 8px; }
.prototype-footnote .pulse-dot { width: 5px; height: 5px; background: #b09aff; box-shadow: 0 0 8px rgba(176, 154, 255, .5); }
.view-panel[hidden] { display: none !important; }
.subpage-header { margin: 8px 0 28px; }
.subpage-header h1 { margin-top: 13px; }
.subpage-header p { margin: 0; color: #929bb0; font-size: 12px; line-height: 1.7; }
.project-grid, .settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 1050px; }
.project-detail-card, .add-project-card, .settings-card { padding: 22px; }
.project-detail-top { display: flex; align-items: center; justify-content: space-between; }
.large-repo-avatar { width: 42px; height: 42px; font-size: 17px; }
.private-pill { padding: 5px 8px; border: 1px solid rgba(169, 176, 211, .16); border-radius: 20px; color: #a6aec2; font-size: 7px; letter-spacing: .12em; }
.project-detail-card h2, .add-project-card h2, .settings-card h2 { margin: 17px 0 5px; font-size: 15px; }
.project-detail-card p, .add-project-card p, .settings-card p { margin: 0; color: #8d96ad; font-size: 10px; line-height: 1.7; }
.project-metadata { display: grid; gap: 0; margin-top: 20px; border-top: 1px solid var(--line); }
.project-metadata span, .setting-row { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(169, 177, 214, .08); color: #8992a8; font-size: 9px; }
.project-metadata strong, .setting-row strong { color: #cbd0e2; font-size: 8px; font-weight: 600; text-align: right; }
.add-project-card { display: flex; flex-direction: column; justify-content: center; min-height: 220px; border-style: dashed; background: rgba(20, 25, 40, .42); }
.add-project-icon { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid rgba(169, 151, 255, .24); border-radius: 12px; color: #bcaaff; background: rgba(133, 112, 221, .1); font-size: 22px; }
.add-project-card h2 { margin-top: 14px; }
.info-banner { max-width: 1050px; padding: 17px 20px; margin-top: 16px; border-color: rgba(117, 195, 204, .2); }
.info-banner strong { font-size: 11px; }
.info-banner p { margin: 7px 0 0; color: #9da8bb; font-size: 9px; line-height: 1.7; }
.run-list-card { max-width: 1080px; padding: 8px 22px; }
.run-list-card .run-row { padding: 19px 0; }
.run-list-card .run-info strong { font-size: 11px; }
.run-list-card .run-info small { font-size: 9px; white-space: normal; }
.run-list-card .run-result { font-size: 9px; }
.run-list-footer { padding: 15px 0 10px; border-top: 1px solid var(--line); color: #737f97; font-size: 8px; }
.empty-state-card { display: flex; align-items: center; flex-direction: column; max-width: 680px; padding: 42px 30px; text-align: center; }
.empty-orbit { display: grid; place-items: center; width: 62px; height: 62px; border: 1px solid rgba(168, 151, 255, .25); border-radius: 21px; color: #bcaaff; background: radial-gradient(circle, rgba(141, 119, 232, .18), rgba(45, 54, 84, .08)); font-size: 24px; box-shadow: 0 0 35px rgba(129, 106, 224, .12); }
.empty-state-card h2 { margin: 19px 0 7px; font-size: 15px; }
.empty-state-card p { max-width: 470px; margin: 0 0 19px; color: #929bb0; font-size: 10px; line-height: 1.8; }
.settings-card { max-width: 520px; }
.settings-card h2 { margin-top: 12px; }
.settings-card > p:first-of-type { margin-bottom: 17px; }
.settings-footnote { margin-top: 14px !important; color: #79849b !important; font-size: 8px !important; }
.dispatch-dialog { position: fixed; width: min(500px, calc(100% - 30px)); max-height: min(88vh, 760px); padding: 25px; overflow-y: auto; border: 1px solid rgba(173, 157, 255, .25); border-radius: 22px; color: var(--text); background: linear-gradient(145deg, #1c2034, #101522 75%); box-shadow: 0 25px 100px rgba(0,0,0,.6), inset 0 1px rgba(255,255,255,.08); }
.dispatch-dialog::backdrop { background: rgba(3, 5, 12, .72); backdrop-filter: blur(8px); }
.dialog-glow { position: absolute; z-index: -1; top: -120px; right: -90px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(142, 116, 236, .19), transparent 68%); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.dialog-mark { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(177, 160, 255, .28); border-radius: 12px; color: #c8baff; background: rgba(143, 120, 229, .13); }
.dispatch-dialog h2 { margin: 10px 0 8px; font-size: 21px; letter-spacing: -.03em; }
.dialog-description { margin: 0; color: #9aa3ba; font-size: 10px; line-height: 1.75; }
.handoff-summary { display: grid; grid-template-columns: 1.5fr 1fr .7fr; gap: 8px; padding: 12px; margin: 18px 0; border: 1px solid var(--line); border-radius: 12px; background: rgba(7, 10, 18, .32); }
.handoff-summary span, .handoff-summary strong { display: block; overflow-wrap: anywhere; }
.handoff-summary span { margin-bottom: 5px; color: #777f98; font-size: 7px; letter-spacing: .1em; }
.handoff-summary strong { color: #d4d8e9; font-size: 8px; font-weight: 600; }
.dialog-task-label { margin-bottom: 7px; color: #858da6; font-size: 8px; font-weight: 750; letter-spacing: .12em; }
.dialog-task { max-height: 145px; padding: 12px; overflow: auto; border: 1px solid rgba(174, 182, 218, .1); border-radius: 10px; color: #b9c0d5; background: rgba(7, 10, 18, .42); font-size: 9px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 17px; }
.dialog-footnote { margin: 13px 0 0; color: #7c879f; font-size: 8px; line-height: 1.7; }
.toast { position: fixed; z-index: 40; left: 50%; bottom: 25px; max-width: calc(100% - 30px); padding: 11px 16px; border: 1px solid rgba(170, 153, 255, .25); border-radius: 12px; color: #e8e6f7; background: rgba(26, 29, 48, .96); box-shadow: 0 12px 35px rgba(0,0,0,.35); opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .2s, transform .2s; font-size: 9px; text-align: center; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1180px) {
  .workspace-grid { grid-template-columns: minmax(0, 1fr) 255px; gap: 13px; }
  .page-wrap { padding-right: 22px; padding-left: 22px; }
  .lower-grid { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .sidebar { width: 224px; }
  .main-content { width: calc(100% - 224px); margin-left: 224px; }
  .workspace-grid { grid-template-columns: 1fr; }
  .inspector-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .safeguards-card { grid-column: 1 / -1; }
  .welcome-orbit { width: 104px; height: 104px; margin-right: 2%; transform: scale(.83); }
}
@media (max-width: 700px) {
  .sidebar { width: 252px; transform: translateX(-102%); transition: transform .22s ease; box-shadow: 20px 0 60px rgba(0,0,0,.3); }
  .sidebar.open { transform: translateX(0); }
  .main-content { width: 100%; margin-left: 0; }
  .mobile-menu { display: grid; }
  .topbar { height: 61px; padding: 0 16px; }
  .topbar-right { gap: 10px; }
  .connection-pill { padding: 6px 8px; font-size: 8px; }
  .topbar-link { display: none; }
  .page-wrap { padding: 26px 15px 28px; }
  .welcome-row { min-height: auto; margin-bottom: 22px; }
  .welcome-orbit { display: none; }
  h1 { max-width: 480px; font-size: clamp(27px, 8vw, 34px); }
  .welcome-copy { font-size: 11px; }
  .composer { padding: 17px 14px 14px; border-radius: 18px; }
  .task-config { grid-template-columns: 1fr 1fr; }
  .field-repo { grid-column: 1 / -1; }
  .field-steps { grid-column: auto; }
  .lower-grid { grid-template-columns: 1fr; }
  .inspector-column { grid-template-columns: 1fr; }
  .safeguards-card { grid-column: auto; }
  .project-grid, .settings-grid { grid-template-columns: 1fr; }
  .handoff-summary { grid-template-columns: 1fr 1fr; }
  .handoff-summary div:first-child { grid-column: 1 / -1; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions button { width: 100%; }
}
@media (max-width: 390px) {
  .mode-pill { display: none; }
  .composer-footer { align-items: flex-start; flex-direction: column; }
  .composer-footer .primary-button { width: 100%; }
  .prompt-tools { align-items: flex-start; flex-direction: column; gap: 3px; }
  .task-config { grid-template-columns: 1fr; }
  .field-repo, .field-steps { grid-column: auto; }
  .run-result { font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* Mobile workspace: a dedicated touch-first navigation and composer layout. */
.mobile-tabbar { display: none; }
.char-count { transition: color .18s ease; }
.char-count.near-limit { color: #f0be85; }
@media (max-width: 700px) {
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .sidebar { display: none; }
  .main-content { min-height: 100dvh; }
  .topbar { position: sticky; top: 0; z-index: 15; height: 58px; padding-inline: 14px; background: rgba(10, 13, 22, .82); }
  .mobile-menu { display: none; }
  .topbar-left { min-width: 0; }
  .breadcrumb { gap: 7px; font-size: 9px; }
  .topbar-right { margin-left: auto; }
  .connection-pill { white-space: nowrap; }
  .topbar-avatar { width: 27px; height: 27px; }
  .page-wrap { padding: 23px 13px calc(30px + env(safe-area-inset-bottom)); }
  .welcome-row { align-items: flex-start; }
  .eyebrow { font-size: 7px; }
  h1 { font-size: clamp(27px, 8.4vw, 35px); line-height: 1.12; }
  .welcome-copy { max-width: 42rem; font-size: 11px; line-height: 1.7; }
  .composer { padding: 17px 13px 13px; border-radius: 19px; }
  .card-heading { align-items: flex-start; }
  .card-heading h2 { font-size: 17px; }
  #task-input { min-height: 190px; padding: 14px; font-size: 13px; line-height: 1.65; border-radius: 13px; }
  .prompt-tools { align-items: flex-start; font-size: 9px; }
  .prompt-hint { max-width: 80%; line-height: 1.5; }
  .quick-prompts { gap: 7px; }
  .prompt-chip { min-height: 35px; padding: 8px 11px; font-size: 10px; }
  .task-config { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .field-repo { grid-column: 1 / -1; }
  .field-group label { font-size: 8px; }
  .field-shell { height: 42px; }
  .field-shell input, .field-shell select { font-size: 11px; }
  .composer-footer { align-items: center; }
  .primary-button { min-height: 44px; padding-inline: 16px; font-size: 11px; }
  .model-chip strong { font-size: 10px; }
  .model-chip small { font-size: 8px; }
  .privacy-note { align-items: flex-start; font-size: 9px; line-height: 1.5; }
  .glass-card { border-radius: 17px; }
  .activity-card, .project-card { padding: 16px 14px; }
  .run-row { gap: 8px; }
  .run-info small { white-space: normal; line-height: 1.4; }
  .run-result { font-size: 8px; }
  .inspector-column { display: flex; }
  .inspector-card, .incident-card, .safeguards-card { padding: 16px 14px; }
  .status-line { font-size: 10px; }
  .status-line strong { font-size: 9px; }
  .prototype-footnote { align-items: flex-start; font-size: 9px; line-height: 1.5; }
  .mobile-tabbar {
    position: fixed; z-index: 50; inset: auto 0 0; display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px; padding: 8px 7px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(174, 183, 220, .14);
    background: rgba(10, 13, 23, .88);
    box-shadow: 0 -14px 40px rgba(0,0,0,.24);
    backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  }
  .mobile-tab {
    display: flex; align-items: center; justify-content: center; flex-direction: column;
    gap: 4px; min-width: 0; min-height: 47px; padding: 4px 2px;
    border: 1px solid transparent; border-radius: 12px;
    color: #7f899f; background: transparent; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-tab span { font-size: 17px; line-height: 1; }
  .mobile-tab small { font-size: 8px; font-weight: 650; letter-spacing: .01em; }
  .mobile-tab.active { color: #dcd4ff; border-color: rgba(164, 143, 255, .16); background: linear-gradient(145deg, rgba(137, 111, 236, .2), rgba(101, 124, 202, .08)); }
  .mobile-tab.active span { color: #bcaaff; filter: drop-shadow(0 0 8px rgba(178, 160, 255, .42)); }
  .dispatch-dialog { width: calc(100% - 20px); max-height: calc(90dvh - env(safe-area-inset-bottom)); padding: 19px; border-radius: 19px; }
  .dialog-task { max-height: 26dvh; font-size: 10px; }
  .handoff-summary { gap: 7px; padding: 10px; }
  .dialog-actions { gap: 8px; }
  .toast { bottom: calc(78px + env(safe-area-inset-bottom)); font-size: 10px; }
}
@media (max-width: 390px) {
  .topbar { padding-inline: 11px; }
  .connection-pill { gap: 5px; padding: 5px 7px; font-size: 7px; }
  .page-wrap { padding-inline: 11px; }
  .mode-pill { display: none; }
  .composer-footer { align-items: stretch; flex-direction: column; }
  .composer-footer .primary-button { width: 100%; }
  .task-config { grid-template-columns: minmax(0, 1fr); }
  .field-repo { grid-column: auto; }
  .mobile-tabbar { padding-inline: 5px; }
}


/* Verified live state */
.verified-card .incident-icon { color: #8de0b2; background: rgba(88, 189, 142, .14); }
.verified-card h3 { color: #d9f1e4; }
.verified-card p { color: #9cbcac; }
.verified-card .incident-meta { border-color: rgba(88, 189, 142, .16); color: #9bcbb0; }
.verified-card .incident-link { color: #9cdbb5; }


/* Authenticated workspace and live execution */
.auth-gate {
  position: relative; z-index: 5; display: grid; place-items: center;
  min-height: 100dvh; padding: 28px 16px; overflow: hidden;
}
.auth-gate[hidden] { display: none; }
.auth-glow {
  position: absolute; top: 12%; left: 50%; width: min(720px, 95vw); height: 520px;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse, rgba(116, 102, 220, .17), rgba(48, 73, 111, .08) 42%, transparent 72%);
}
.auth-card {
  position: relative; width: min(460px, 100%); padding: 34px 32px 27px;
  border-radius: 25px; text-align: center; backdrop-filter: blur(28px);
}
.auth-mark {
  display: grid; place-items: center; position: relative; width: 58px; height: 58px;
  margin: 0 auto 24px; border: 1px solid rgba(181, 166, 255, .3);
  border-radius: 19px; background: linear-gradient(145deg, rgba(161, 139, 255, .22), rgba(92, 125, 185, .08));
  box-shadow: 0 0 45px rgba(130, 111, 230, .17), inset 0 1px rgba(255,255,255,.1);
}
.auth-mark span, .auth-mark i {
  position: absolute; display: block; width: 23px; height: 23px;
  border: 1px solid #c3b6ff; border-radius: 8px; transform: rotate(45deg);
}
.auth-mark i { width: 10px; height: 10px; border-color: #90d5d7; transform: rotate(45deg) translate(7px, 7px); }
.auth-card h1 { margin: 13px 0 10px; font-size: clamp(30px, 8vw, 42px); }
.auth-copy { max-width: 360px; margin: 0 auto 22px; color: #a0abc1; font-size: 11px; line-height: 1.8; }
.auth-button { width: 100%; min-height: 48px; justify-content: space-between; padding-inline: 19px; }
.auth-status { min-height: 20px; margin: 14px 0 0; color: #94a2b9; font-size: 9px; line-height: 1.6; }
.auth-status.auth-error { color: #ffafb8; }
.auth-config-note { padding: 13px; margin-top: 15px; border: 1px solid rgba(236, 176, 122, .19); border-radius: 12px; background: rgba(173, 115, 54, .07); text-align: left; }
.auth-config-note strong { color: #e8c49d; font-size: 10px; }
.auth-config-note p { margin: 6px 0 0; color: #b0a394; font-size: 9px; line-height: 1.65; }
.auth-footnote { display: block; margin-top: 18px; color: #717e96; font-size: 8px; line-height: 1.6; }
.loading-state, .empty-inline { padding: 22px 12px; color: #8794ad; font-size: 9px; line-height: 1.7; text-align: center; }
.live-run-row { min-width: 0; }
.run-status.status-pending { color: #d4b77e; background: rgba(208, 163, 94, .13); }
.run-status.status-running { color: #9bc7f4; background: rgba(89, 157, 219, .15); box-shadow: 0 0 12px rgba(99, 162, 222, .12); }
.run-status.status-failed { color: #ff9ca4; background: rgba(233, 109, 122, .14); }
.run-list-card .run-row + .run-row, .pull-list-card .run-row + .run-row { border-top: 1px solid rgba(169, 177, 214, .08); }
.pull-list-card { max-width: 1080px; padding: 8px 22px; }
.pull-list-card .run-row { padding: 18px 0; }
.launch-error { padding: 11px 12px; margin-top: 14px; border: 1px solid rgba(233,109,122,.24); border-radius: 10px; color: #ffb5bb; background: rgba(150,48,61,.12); font-size: 9px; line-height: 1.6; }
.launch-error[hidden] { display: none; }
.primary-button:disabled, .auth-button:disabled { opacity: .55; cursor: progress; }
.primary-button.loading { opacity: .75; }
@media (max-width: 700px) {
  .auth-card { padding: 27px 20px 22px; border-radius: 21px; }
  .auth-copy { font-size: 10px; }
  .auth-button { min-height: 48px; }
  .pull-list-card { padding: 8px 14px; }
}


/* Auri auth refresh: clear, truthful, responsive owner entry */
[hidden] { display: none !important; }
.auth-gate { min-height: 100dvh; padding: clamp(24px, 5vw, 64px); }
.auth-layout {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  align-items: center; gap: clamp(36px, 7vw, 100px); width: min(1080px, 100%); margin: auto;
}
.auth-story { max-width: 570px; text-align: left; }
.auth-brand-lockup { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(44px, 7vw, 78px); }
.auth-brand-lockup .auth-mark { flex: 0 0 auto; margin: 0; }
.auth-brand-lockup > div:last-child { display: grid; gap: 4px; letter-spacing: .16em; }
.auth-brand-lockup strong { font-size: 13px; letter-spacing: .22em; }
.auth-brand-lockup small { color: #77829d; font-size: 8px; letter-spacing: .2em; }
.auth-story h1 { margin: 17px 0 18px; font-size: clamp(38px, 5.4vw, 66px); line-height: 1.06; letter-spacing: -.045em; }
.auth-story-copy { max-width: 510px; margin: 0; color: #a5aec4; font-size: 13px; line-height: 1.9; }
.auth-points { display: grid; gap: 19px; padding: 0; margin: 34px 0 26px; list-style: none; }
.auth-points li { display: flex; align-items: center; gap: 14px; }
.auth-point-index { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid rgba(173,157,255,.22); border-radius: 11px; color: #c6baff; background: rgba(136,112,225,.09); font-size: 9px; letter-spacing: .08em; }
.auth-points li > span:last-child { display: grid; gap: 4px; }
.auth-points strong { color: #e8e8f5; font-size: 11px; font-weight: 650; }
.auth-points small { color: #818ba4; font-size: 10px; line-height: 1.5; }
.auth-story-foot { color: #68738c; font-size: 9px; letter-spacing: .035em; }
.auth-card { width: 100%; padding: 32px; border: 1px solid rgba(174,165,232,.17); background: linear-gradient(150deg, rgba(27,31,49,.88), rgba(14,18,30,.88)); box-shadow: 0 24px 90px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.055); }
.auth-card-kicker { display: flex; align-items: center; gap: 8px; color: #9da8c0; font-size: 8px; font-weight: 700; letter-spacing: .16em; }
.auth-card h2 { margin: 25px 0 8px; font-size: 25px; letter-spacing: -.025em; }
.auth-copy { margin: 0 0 25px; text-align: left; font-size: 11px; }
.auth-button { min-height: 52px; border-radius: 13px; font-size: 11px; }
.auth-status { min-height: 28px; margin-top: 16px; text-align: left; font-size: 10px; }
.auth-status.auth-error { color: #ffb4bc; }
.auth-config-note { border-color: rgba(236,176,122,.24); background: rgba(173,115,54,.1); }
.auth-config-note strong { font-size: 10px; }
.auth-config-note p { font-size: 10px; line-height: 1.7; overflow-wrap: anywhere; }
.auth-divider { display: flex; align-items: center; gap: 11px; margin: 25px 0 14px; }
.auth-divider span { height: 1px; flex: 1; background: rgba(179,190,226,.12); }
.auth-divider small { color: #66718b; font-size: 7px; font-weight: 700; letter-spacing: .17em; }
.auth-security-copy { margin: 0; color: #7f8aa3; font-size: 9px; line-height: 1.8; text-align: left; }
@media (max-width: 820px) {
  .auth-gate { padding: 28px 18px; }
  .auth-layout { grid-template-columns: 1fr; gap: 28px; max-width: 510px; }
  .auth-brand-lockup { margin-bottom: 32px; }
  .auth-story { text-align: center; }
  .auth-story h1 { font-size: clamp(36px, 9vw, 54px); }
  .auth-story-copy { margin-inline: auto; }
  .auth-points { max-width: 410px; margin: 25px auto 18px; text-align: left; }
  .auth-story-foot { margin-bottom: 4px; }
  .auth-card { padding: 27px 23px; }
}
@media (max-width: 390px) {
  .auth-card { padding: 24px 18px; }
  .auth-points small { font-size: 9px; }
}


/* Private companion archive intake */
.archive-uploader { padding: 14px; margin: 14px 0 3px; border: 1px solid rgba(157, 152, 217, .16); border-radius: 14px; background: linear-gradient(145deg, rgba(31, 31, 51, .34), rgba(13, 18, 31, .23)); }
.archive-uploader-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:11px; }
.archive-uploader-head > div { display:grid; gap:4px; }
.archive-uploader-head strong { color:#dfe0f2; font-size:10px; font-weight:650; }
.archive-limit { padding:5px 7px; border:1px solid rgba(139, 173, 222, .17); border-radius:7px; color:#93a9cd; font-size:7px; font-weight:750; letter-spacing:.1em; }
.archive-dropzone { display:flex; align-items:center; gap:12px; min-height:58px; padding:10px 12px; border:1px dashed rgba(161, 151, 222, .35); border-radius:11px; background:rgba(138, 121, 209, .045); cursor:pointer; transition:border .18s ease, background .18s ease; }
.archive-dropzone:hover { border-color:rgba(166, 153, 255, .65); background:rgba(138, 121, 209, .09); }
.archive-icon { display:grid; place-items:center; width:32px; height:32px; border-radius:10px; color:#c7baff; background:rgba(155, 131, 233, .14); font-size:17px; }
.archive-label { display:grid; gap:4px; min-width:0; }
.archive-label strong { color:#e1dff5; font-size:9px; font-weight:650; }
.archive-label small { color:#7f8aa5; font-size:8px; line-height:1.5; }
.archive-browse { margin-left:auto; padding:7px 9px; border:1px solid rgba(172, 160, 240, .2); border-radius:8px; color:#c3b7ff; font-size:8px; font-weight:650; }
.archive-file-input { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; clip-path:inset(50%); }
.archive-file-input:focus-visible + .archive-selected { outline:2px solid #a995ff; outline-offset:3px; }
.archive-selected { display:flex; align-items:center; gap:10px; padding:9px 10px; margin-top:9px; border:1px solid rgba(104, 215, 160, .16); border-radius:10px; background:rgba(65, 150, 115, .055); }
.archive-file-icon { display:grid; place-items:center; width:30px; height:30px; border-radius:8px; color:#a7dcc1; background:rgba(91, 174, 134, .13); font-size:8px; font-weight:800; letter-spacing:.08em; }
.archive-file-copy { display:grid; gap:4px; min-width:0; flex:1; }
.archive-file-copy strong { overflow:hidden; color:#dfe9e4; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.archive-file-copy small { color:#819a8d; font-size:8px; }
.archive-remove { flex:0 0 auto; font-size:17px; }
.archive-progress { margin-top:10px; }
.archive-progress-track { height:4px; overflow:hidden; border-radius:10px; background:rgba(255,255,255,.08); }
.archive-progress-track span { display:block; width:0; height:100%; border-radius:inherit; background:linear-gradient(90deg,#9385e9,#79cfc3); transition:width .16s ease; }
.archive-progress small { display:block; margin-top:6px; color:#9aa7c1; font-size:8px; }
#summary-archive[hidden] { display:none !important; }
@media (max-width: 700px) {
 .archive-uploader { padding:12px; }
 .archive-label small { max-width:230px; }
}



/* Auri workspace visual refresh */
:root{--bg:#090d18;--panel:#101827;--panel-2:#141e30;--line:rgba(166,185,222,.13);--text:#edf2ff;--muted:#9aa8c2;--faint:#73819c;--violet:#9b8cff;--cyan:#70d9e7;--green:#72d6ad}
body{background:radial-gradient(ellipse at 72% 0%,rgba(88,89,180,.13),transparent 38%),#090d18;color:var(--text)}
.sidebar{background:rgba(8,12,22,.96);border-right:1px solid var(--line);backdrop-filter:blur(22px)}
.topbar{height:64px;background:rgba(9,13,24,.8);border-bottom:1px solid var(--line);backdrop-filter:blur(20px)}
.page-wrap{max-width:1440px;padding:34px 42px 56px}
.welcome-row{margin:10px 0 28px;align-items:flex-end}
.welcome-row h1{font-size:clamp(32px,3.2vw,46px);letter-spacing:-.045em;line-height:1.08}
.welcome-copy{max-width:620px;font-size:14px;line-height:1.75;color:#9caac4}
.welcome-orbit{transform:scale(.78);opacity:.7}
.workspace-grid{grid-template-columns:minmax(0,1fr) 300px;gap:18px}
.glass-card,.composer{background:linear-gradient(155deg,rgba(21,31,49,.96),rgba(13,20,34,.96));border:1px solid rgba(160,178,216,.15);border-radius:20px;box-shadow:0 18px 50px rgba(0,0,0,.18);backdrop-filter:blur(18px)}
.composer{padding:28px}
#task-input{min-height:210px;background:#0b1220;border:1px solid rgba(157,146,255,.3);border-radius:15px;padding:20px;font-size:15px;line-height:1.7;color:#eef2ff;resize:vertical}
#task-input:focus{outline:none;border-color:#9b8cff;box-shadow:0 0 0 3px rgba(155,140,255,.13)}
.archive-uploader{margin-top:22px;padding:18px;border:1px solid var(--line);border-radius:16px;background:rgba(8,14,26,.5)}
.archive-dropzone{min-height:94px;border:1px dashed rgba(151,164,205,.34);border-radius:14px;background:rgba(119,111,210,.045);padding:18px;display:flex;align-items:center;gap:14px}
.archive-dropzone:hover{border-color:#a99bff;background:rgba(119,111,210,.1)}
.archive-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:rgba(155,140,255,.14);color:#b8adff;font-size:22px;flex:none}
.archive-label{display:grid;gap:5px;min-width:0}.archive-label strong{font-size:14px}.archive-label small{color:#91a0ba;line-height:1.45}
.archive-browse{margin-left:auto;border:1px solid var(--line);border-radius:10px;padding:9px 13px;background:#172238;color:#e7ebff;font-size:12px;white-space:nowrap}
.archive-file-input{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}
.archive-selected{margin-top:12px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:rgba(7,13,24,.68)}
.archive-file-icon{width:38px;height:38px;display:grid;place-items:center;background:rgba(112,217,231,.1);color:#8fe4ed;border-radius:10px;font-size:10px;font-weight:800}
.quick-prompts{gap:8px;flex-wrap:wrap}.prompt-chip{border:1px solid var(--line);background:rgba(255,255,255,.025);border-radius:999px;padding:9px 13px;font-size:12px}
.field-shell{background:#0c1422;border:1px solid var(--line);border-radius:11px}
.primary-button{background:linear-gradient(110deg,#8b7cf4,#6b9ce8);border:0;border-radius:12px;box-shadow:0 8px 24px rgba(116,107,231,.22);font-weight:700}
.inspector-column{gap:14px}.inspector-card,.incident-card,.safeguards-card{padding:20px}
.status-line{padding:12px 0;border-bottom:1px solid var(--line)}
.nav-item{border-radius:11px}.nav-item.active{background:rgba(142,126,255,.12);border:1px solid rgba(155,140,255,.24)}
.run-row{border-bottom:1px solid var(--line);padding:15px}
.mobile-tabbar{backdrop-filter:blur(18px);background:rgba(8,12,22,.94)}
[hidden]{display:none!important}
@media(max-width:1050px){.workspace-grid{grid-template-columns:1fr}.inspector-column{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.page-wrap{padding:26px 24px 44px}}
@media(max-width:680px){.page-wrap{padding:20px 14px 90px}.welcome-row{margin:8px 0 20px}.welcome-orbit{display:none}.composer{padding:17px}.inspector-column{grid-template-columns:1fr}.archive-dropzone{align-items:flex-start}.task-config{grid-template-columns:1fr}.composer-footer{gap:14px;align-items:stretch;flex-direction:column}.composer-footer .primary-button{width:100%;justify-content:center}}

/* Persistent conversation workspace */
.conversation-view{min-height:calc(100vh - 112px)}
.conversation-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:8px 0 24px}
.conversation-heading h1{font-size:clamp(30px,3vw,42px);letter-spacing:-.045em;margin:8px 0}
.conversation-heading p{max-width:650px;color:var(--muted);font-size:13px;line-height:1.65;margin:0}
.conversation-shell{display:grid;grid-template-columns:270px minmax(0,1fr);gap:16px;min-height:min(690px,calc(100vh - 230px))}
.conversation-rail{padding:14px;min-height:560px;display:flex;flex-direction:column;overflow:hidden}
.conversation-rail-head{display:flex;align-items:center;justify-content:space-between;padding:7px 7px 14px;border-bottom:1px solid var(--line);font-size:12px}
.conversation-rail-head span{font-size:10px;color:var(--green);letter-spacing:.06em;text-transform:uppercase}
.conversation-list{display:flex;flex-direction:column;gap:5px;overflow:auto;padding-top:10px}
.conversation-list-item{width:100%;display:flex;flex-direction:column;gap:5px;text-align:left;padding:12px;border:1px solid transparent;border-radius:12px;background:transparent;color:var(--text);cursor:pointer;transition:background .16s,border-color .16s}
.conversation-list-item:hover{background:rgba(154,143,255,.07);border-color:var(--line)}
.conversation-list-item.active{background:rgba(151,135,255,.12);border-color:rgba(157,143,255,.27)}
.conversation-list-item strong{font-size:12px;font-weight:650;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.conversation-list-item small{font-size:10px;color:var(--faint)}
.conversation-main{display:flex;flex-direction:column;min-width:0;min-height:560px;overflow:hidden}
.conversation-thread-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 22px;border-bottom:1px solid var(--line)}
.conversation-thread-title{display:flex;align-items:center;gap:12px;min-width:0}
.conversation-thread-title>div{display:grid;gap:4px;min-width:0}
.conversation-thread-title strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.conversation-thread-title small{font-size:10px;color:var(--muted)}
.conversation-thread-mark{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:rgba(155,140,255,.14);color:#c4baff}
.thread-repo-pill{max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:#a8b5cf;background:rgba(255,255,255,.035);border:1px solid var(--line);padding:8px 10px;border-radius:999px}
.conversation-notice{display:flex;align-items:flex-start;gap:10px;margin:16px 20px 0;padding:11px 13px;border-radius:12px;background:rgba(120,145,197,.07);border:1px solid rgba(148,171,211,.12);color:#8fa3c3}
.conversation-notice>span{color:#9d90ff;font-size:14px}
.conversation-notice p{font-size:10px;line-height:1.55;margin:0}
.conversation-messages{display:flex;flex:1;flex-direction:column;gap:17px;overflow:auto;padding:22px;min-height:260px}
.conversation-empty{margin:auto;text-align:center;max-width:360px;padding:36px 15px;color:var(--muted)}
.conversation-empty-mark{width:52px;height:52px;margin:0 auto 18px;display:grid;place-items:center;border-radius:17px;background:linear-gradient(140deg,rgba(155,140,255,.18),rgba(112,217,231,.1));border:1px solid var(--line-bright);color:#c5baff;font-size:23px}
.conversation-empty h2{color:var(--text);font-size:19px;margin:0 0 9px;letter-spacing:-.025em}
.conversation-empty p{font-size:12px;line-height:1.7;margin:0}
.chat-message{display:flex;gap:12px;align-items:flex-start;max-width:850px;width:100%}
.chat-avatar{flex:none;width:30px;height:30px;display:grid;place-items:center;border-radius:10px;background:rgba(155,140,255,.15);border:1px solid var(--line);color:#c2b9ff;font-size:11px;font-weight:700}
.chat-message-body{min-width:0;flex:1}
.chat-message-meta{display:flex;align-items:center;gap:9px;margin-bottom:7px;color:var(--muted);font-size:10px}
.chat-message-meta strong{color:#e9edfb;font-size:11px}
.chat-message-content{white-space:pre-wrap;overflow-wrap:anywhere;color:#dce4f7;font-size:13px;line-height:1.75;background:rgba(8,14,25,.58);border:1px solid var(--line);border-radius:4px 14px 14px 14px;padding:13px 15px}
.chat-task-card{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px;padding:11px 13px;border:1px solid var(--line);border-radius:11px;background:rgba(138,133,213,.055)}
.chat-task-copy{display:grid;gap:4px;min-width:0}.chat-task-copy strong{font-size:11px}.chat-task-copy small{font-size:10px;color:var(--muted)}
.chat-task-link{flex:none;font-size:10px;color:#b9afff;text-decoration:none;border:1px solid rgba(155,140,255,.22);border-radius:9px;padding:7px 9px}
.chat-task-link:hover{background:rgba(155,140,255,.11)}
.chat-status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#d5b56e;margin-right:6px}.chat-status-dot.success{background:var(--green)}.chat-status-dot.failed{background:#ff858f}
.conversation-composer{padding:14px 16px 15px;border-top:1px solid var(--line);background:rgba(8,13,24,.45)}
#conversation-input{display:block;width:100%;min-height:78px;max-height:220px;resize:vertical;background:rgba(8,14,25,.78);color:var(--text);border:1px solid rgba(157,146,255,.23);border-radius:13px;padding:13px 15px;font:inherit;font-size:13px;line-height:1.6;outline:none}
#conversation-input:focus{border-color:#9b8cff;box-shadow:0 0 0 3px rgba(155,140,255,.1)}
.conversation-composer-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}
.conversation-composer-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.attach-files-button{display:inline-flex;align-items:center;gap:6px;padding:8px 11px;border-radius:9px;border:1px solid var(--line);background:rgba(255,255,255,.025);font-size:11px;color:#c8c9ed;cursor:pointer}
.attach-files-button:hover{background:rgba(155,140,255,.1);border-color:var(--line-bright)}
.visually-hidden-file{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.conversation-limit{font-size:10px;color:var(--faint)}
.conversation-send{min-width:132px;justify-content:center;padding:11px 15px}
.conversation-send:disabled{opacity:.55;cursor:wait}
.conversation-attachments{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}
.conversation-file-chip{display:flex;align-items:center;gap:7px;padding:6px 9px;border:1px solid var(--line);border-radius:8px;background:rgba(112,217,231,.055);font-size:10px;color:#cbd7eb;max-width:100%}
.conversation-file-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.conversation-file-chip button{border:0;background:transparent;color:#a4afc4;cursor:pointer;font-size:14px;padding:0 2px}
.conversation-send-status{min-height:14px;margin:8px 0 0;color:var(--muted);font-size:10px}
.conversation-send-status.error{color:#ff9aa3}
@media(max-width:1000px){.conversation-shell{grid-template-columns:220px minmax(0,1fr)}.conversation-heading{align-items:flex-start}}
@media(max-width:720px){.conversation-heading{flex-direction:column;align-items:stretch;gap:15px;margin:6px 0 18px}.conversation-heading .primary-button{align-self:flex-start}.conversation-shell{grid-template-columns:1fr;min-height:0}.conversation-rail{min-height:0;max-height:170px}.conversation-list{flex-direction:row;overflow-x:auto;overflow-y:hidden}.conversation-list-item{min-width:190px;max-width:220px}.conversation-main{min-height:calc(100vh - 390px)}.conversation-thread-head{padding:13px 14px}.conversation-notice{margin:12px 13px 0}.conversation-messages{padding:16px 13px}.conversation-composer{padding:12px}.thread-repo-pill{display:none}.conversation-composer-footer{align-items:flex-end}.conversation-send{min-width:112px}}


.chat-target-row{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(150px,1fr);gap:12px;margin:0 0 14px}
.chat-target-row label{display:grid;gap:6px;color:var(--muted,#9aa2b7);font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.chat-target-row select{width:100%;min-width:0;border:1px solid var(--line,rgba(255,255,255,.12));border-radius:12px;padding:11px 13px;background:rgba(9,12,24,.82);color:var(--text,#f5f5fb);font:inherit;font-size:13px;letter-spacing:normal;text-transform:none}
.conversation-send-actions{display:flex;align-items:center;gap:9px}
.conversation-send-actions button{min-height:42px}
.chat-message.assistant-message .chat-avatar{background:linear-gradient(135deg,#7465d9,#58bdd0);color:#fff}
.chat-message.assistant-message .chat-message-content{background:rgba(126,111,220,.09);border-color:rgba(150,132,240,.2)}
.chat-message.user-message .chat-message-content{background:rgba(255,255,255,.035)}
@media(max-width:600px){.chat-target-row{grid-template-columns:1fr 1fr;gap:8px}.conversation-send-actions{width:100%}.conversation-send-actions button{flex:1}}
