:root {
  color-scheme: dark;
  --ink: #edf3fa;
  --ink-soft: #c7d1dd;
  --muted: #8f9fb2;
  --dim: #5f7085;
  --void: #040910;
  --night: #070e18;
  --night-2: #0a1321;
  --navy: #0c1727;
  --navy-2: #101e32;
  --panel: rgba(15, 28, 47, .94);
  --panel-2: rgba(19, 36, 59, .92);
  --panel-deep: rgba(7, 15, 26, .94);
  --line: #24364d;
  --line-bright: #35506d;
  --line-soft: rgba(137, 163, 195, .14);
  --gold: #a855f7;
  --gold-bright: #c084fc;
  --gold-pale: #e9d5ff;
  --gold-deep: #5b21b6;
  --blue: #75a9e8;
  --green: #5acb98;
  --red: #e17782;
  --purple: #ac94e8;
  --shadow: 0 22px 70px rgba(0, 0, 0, .36);
  --shadow-soft: 0 12px 38px rgba(0, 0, 0, .2);
  --radius: 18px;
  --radius-sm: 11px;
  --sidebar: 282px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
html { background: var(--void); }
body {
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% -12%, rgba(54, 84, 125, .22), transparent 34%),
    radial-gradient(circle at 14% 118%, rgba(168, 85, 247, .08), transparent 34%),
    var(--night);
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .055;
  background-image: url('/assets/onimind-pattern.svg');
  background-size: 620px auto;
  background-position: right top;
  z-index: -1;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { max-width: 100%; }
::selection { color: var(--ink); background: rgba(168, 85, 247, .3); }

.boot {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}
.boot img { width: 82px; filter: drop-shadow(0 12px 36px rgba(168, 85, 247, .2)); animation: breathe 1.7s ease-in-out infinite; }
.boot strong { color: var(--ink); font-size: 18px; }
.boot span { max-width: 560px; line-height: 1.5; }
.boot small { color: var(--gold); letter-spacing: .12em; text-transform: uppercase; }
@keyframes breathe { 50% { transform: translateY(-5px) scale(.985); opacity: .78; } }

/* Authentication */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(390px, .72fr); }
.auth-visual {
  position: relative;
  overflow: hidden;
  padding: clamp(42px, 6vw, 96px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line-soft);
  background:
    linear-gradient(125deg, rgba(13, 27, 46, .97), rgba(4, 10, 18, .96)),
    radial-gradient(circle at 35% 32%, rgba(168, 85, 247, .17), transparent 38%);
}
.auth-visual::before {
  content: '';
  position: absolute;
  width: min(72vw, 980px);
  aspect-ratio: 1;
  right: -32%;
  top: 12%;
  opacity: .11;
  background: url('/assets/onimind-mark.png') center/contain no-repeat;
  filter: grayscale(1);
}
.auth-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .11;
  background-image:
    linear-gradient(rgba(113, 146, 183, .14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(113, 146, 183, .14) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to right, black, transparent 82%);
}
.brand-lockup { position: relative; z-index: 2; display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand-lockup img { width: 60px; filter: drop-shadow(0 10px 22px rgba(168, 85, 247, .13)); }
.brand-title { font-weight: 850; font-size: 25px; letter-spacing: -.035em; }
.brand-sub { color: var(--gold); font-size: 10px; letter-spacing: .25em; text-transform: uppercase; margin-top: 2px; font-weight: 800; }
.brand-lockup-large img { width: 68px; }
.brand-lockup-large .brand-title { font-size: 31px; }
.brand-lockup-large .brand-sub { font-size: 11px; }
.hero-copy { position: relative; z-index: 2; max-width: 760px; margin: auto 0; }
.hero-kicker, .eyebrow { color: var(--gold); letter-spacing: .17em; text-transform: uppercase; font-size: 10px; font-weight: 850; }
.hero-copy h1 { margin: 18px 0 25px; font-size: clamp(52px, 7vw, 104px); line-height: .82; letter-spacing: -.074em; }
.hero-copy p { max-width: 670px; margin: 0; color: #aab8c9; font-size: clamp(16px, 1.55vw, 21px); line-height: 1.72; }
.auth-module-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.auth-module-row span { padding: 7px 10px; border: 1px solid rgba(168, 85, 247, .18); border-radius: 999px; color: #b8c4d1; background: rgba(168, 85, 247, .045); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.creator-credit { position: relative; z-index: 2; display: flex; align-items: baseline; gap: 10px; }
.creator-credit span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; }
.creator-credit strong { color: var(--gold-bright); letter-spacing: .09em; }
.auth-panel { display: grid; place-items: center; padding: clamp(24px, 5vw, 64px); background: rgba(5, 11, 20, .88); }
.auth-card { position: relative; width: min(480px, 100%); padding: clamp(29px, 4vw, 46px); overflow: hidden; background: linear-gradient(180deg, rgba(19, 36, 59, .98), rgba(9, 19, 33, .98)); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.auth-card::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 100% 0, rgba(168, 85, 247, .12), transparent 34%); }
.auth-card-mark { display: none; }
.auth-card .eyebrow { position: relative; }
.auth-card h2 { position: relative; margin: 7px 0 8px; font-size: 33px; letter-spacing: -.05em; }
.auth-card > p { position: relative; color: var(--muted); line-height: 1.65; margin: 0 0 29px; }
.auth-card-credit { margin-top: 23px; padding-top: 18px; border-top: 1px solid var(--line-soft); color: var(--dim); font-size: 10px; text-align: center; letter-spacing: .08em; text-transform: uppercase; }

/* Application shell */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.app-scrim { display: none; }
.sidebar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px 15px;
  overflow-y: auto;
  background: rgba(5, 12, 22, .97);
  border-right: 1px solid var(--line-soft);
  backdrop-filter: blur(24px);
}
.sidebar::before { content: ''; position: absolute; inset: 0 0 auto; height: 220px; pointer-events: none; background: radial-gradient(circle at 50% -30%, rgba(168, 85, 247, .12), transparent 66%); }
.sidebar-brand { padding: 4px 10px 18px; }
.sidebar-brand img { width: 44px; }
.sidebar-brand .brand-title { font-size: 19px; }
.sidebar-brand .brand-sub { font-size: 8px; }
.system-pulse { position: relative; display: flex; align-items: center; gap: 10px; margin: 2px 7px 12px; padding: 10px 11px; background: rgba(18, 35, 57, .65); border: 1px solid var(--line-soft); border-radius: 11px; }
.system-pulse > span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(90, 203, 152, .08), 0 0 18px rgba(90, 203, 152, .42); }
.system-pulse div { display: grid; gap: 2px; }
.system-pulse strong { font-size: 11px; }
.system-pulse small { color: var(--dim); font-size: 9px; }
.nav-section { margin: 12px 0; }
.nav-label { color: #526276; padding: 0 12px 7px; font-size: 9px; font-weight: 850; letter-spacing: .19em; text-transform: uppercase; }
.nav-link { position: relative; width: 100%; min-height: 42px; display: flex; align-items: center; gap: 11px; margin: 2px 0; padding: 10px 12px; overflow: hidden; color: #9fadc0; background: transparent; border: 1px solid transparent; border-radius: 11px; text-decoration: none; font-size: 13px; transition: .17s ease; }
.nav-link svg { width: 18px; height: 18px; opacity: .72; flex: 0 0 auto; }
.nav-link i { width: 4px; height: 4px; border-radius: 50%; margin-left: auto; background: transparent; }
.nav-link:hover { color: var(--ink); background: rgba(255, 255, 255, .025); border-color: rgba(255, 255, 255, .025); }
.nav-link.active { color: var(--gold-pale); background: linear-gradient(90deg, rgba(168, 85, 247, .14), rgba(168, 85, 247, .025)); border-color: rgba(168, 85, 247, .11); box-shadow: inset 2px 0 var(--gold); }
.nav-link.active svg { opacity: 1; color: var(--gold); }
.nav-link.active i { background: var(--gold); box-shadow: 0 0 10px rgba(168, 85, 247, .5); }
.sidebar-foot { margin-top: auto; padding: 13px 7px 0; border-top: 1px solid var(--line-soft); }
.creator-mini { display: flex; align-items: baseline; gap: 5px; margin: 0 4px 11px; color: var(--dim); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.creator-mini strong { color: var(--gold); font-size: 9px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px; background: rgba(255, 255, 255, .018); border-radius: 11px; }
.avatar { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; color: #12100a; background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep)); font-size: 11px; font-weight: 900; }
.user-copy { min-width: 0; flex: 1; }
.user-name { overflow: hidden; color: var(--ink); font-size: 12px; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }
.user-role { margin-top: 2px; color: var(--dim); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 30; height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 clamp(20px, 3.5vw, 52px); background: rgba(6, 13, 23, .82); border-bottom: 1px solid var(--line-soft); backdrop-filter: blur(23px); }
.topbar-left { display: flex; align-items: center; gap: 13px; }
.mobile-menu { display: none !important; }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 12px; }
.breadcrumb span { color: var(--gold); font-weight: 750; }
.breadcrumb b { font-weight: 400; }
.breadcrumb strong { color: var(--ink-soft); }
.topbar-caption { margin-top: 3px; color: #48586b; font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.live-dot { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.live-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(90, 203, 152, .075); }
.content { width: 100%; max-width: 1780px; margin: 0 auto; padding: clamp(25px, 3.6vw, 52px); }
.page-footer { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 42px; padding-top: 25px; color: #4f6074; border-top: 1px solid rgba(137, 163, 195, .08); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.page-footer img { width: 20px; opacity: .7; }
.page-footer b { color: #74643b; }

/* Shared type and layout */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-head h1 { margin: 5px 0 8px; font-size: clamp(30px, 4vw, 46px); line-height: 1.02; letter-spacing: -.052em; }
.page-head p { max-width: 820px; margin: 0; color: var(--muted); line-height: 1.65; }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 34px 0 16px; }
.section-head h2 { margin: 5px 0 0; font-size: 24px; letter-spacing: -.035em; }
.text-link { color: var(--gold); font-size: 11px; text-decoration: none; }
.text-link:hover { color: var(--gold-bright); }
.grid { display: grid; gap: 18px; }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stack { display: grid; gap: 14px; }
.split { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.spacer { height: 18px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.muted { color: var(--muted); }
.small-text { font-size: 11px; }

/* Hero and module surfaces */
.command-hero { position: relative; min-height: 360px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); align-items: center; gap: 34px; padding: clamp(30px, 5vw, 58px); overflow: hidden; background: linear-gradient(118deg, rgba(18, 35, 57, .97), rgba(6, 14, 25, .97)); border: 1px solid var(--line); border-radius: 25px; box-shadow: var(--shadow); }
.command-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(168, 85, 247, .045)), url('/assets/onimind-pattern.svg') right center/720px auto no-repeat; opacity: .62; }
.command-hero-copy { position: relative; z-index: 2; }
.command-hero-copy h1 { margin: 9px 0 15px; font-size: clamp(40px, 5.8vw, 78px); line-height: .95; letter-spacing: -.065em; }
.command-hero-copy p { max-width: 760px; color: #a8b6c6; font-size: 16px; line-height: 1.72; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-signature { margin-top: 30px; color: var(--dim); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.hero-signature strong { color: var(--gold); }
.command-hero-mark { position: relative; z-index: 2; display: grid; place-items: center; min-height: 270px; }
.command-hero-mark > img { width: min(230px, 68%); filter: drop-shadow(0 24px 52px rgba(0, 0, 0, .52)); z-index: 3; }
.orbit { position: absolute; border: 1px solid rgba(168, 85, 247, .18); border-radius: 50%; }
.orbit-one { width: 270px; height: 270px; animation: orbit 20s linear infinite; }
.orbit-two { width: 330px; height: 330px; border-style: dashed; opacity: .45; animation: orbit 29s linear infinite reverse; }
.orbit::after { content: ''; position: absolute; width: 7px; height: 7px; top: 15%; left: 12%; background: var(--gold); border-radius: 50%; box-shadow: 0 0 18px rgba(168, 85, 247, .7); }
@keyframes orbit { to { transform: rotate(360deg); } }
.core-state { position: absolute; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 8px 11px; color: #b8c5d4; background: rgba(4, 10, 18, .78); border: 1px solid var(--line-soft); border-radius: 999px; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.core-state span { width: 6px; height: 6px; background: var(--green); border-radius: 50%; box-shadow: 0 0 10px rgba(90, 203, 152, .65); }
.stat-grid { margin-top: 18px; }
.stat-card, .card { position: relative; background: linear-gradient(180deg, var(--panel), rgba(10, 21, 36, .95)); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.stat-card { min-height: 128px; padding: 21px; overflow: hidden; }
.stat-card::after { content: ''; position: absolute; width: 110px; height: 110px; right: -47px; top: -48px; border: 1px solid rgba(168, 85, 247, .11); border-radius: 50%; }
.stat-card::before { content: ''; position: absolute; width: 5px; height: 31px; left: 0; top: 24px; background: linear-gradient(var(--gold), transparent); border-radius: 0 5px 5px 0; }
.stat-label { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.stat-value { margin-top: 20px; font-size: 36px; font-weight: 850; letter-spacing: -.045em; }
.stat-value.compact-value { font-size: 23px; margin-top: 25px; }
.stat-note { margin-top: 4px; color: var(--dim); font-size: 10px; }
.module-grid { gap: 14px; }
.module-card { position: relative; min-height: 190px; display: flex; flex-direction: column; padding: 19px; overflow: hidden; color: inherit; background: linear-gradient(160deg, rgba(18, 34, 56, .95), rgba(9, 19, 32, .96)); border: 1px solid var(--line-soft); border-radius: 16px; text-decoration: none; transition: .18s ease; }
.module-card::after { content: ''; position: absolute; width: 140px; height: 140px; right: -65px; bottom: -65px; border-radius: 50%; background: radial-gradient(circle, rgba(168, 85, 247, .09), transparent 69%); }
.module-card:hover { transform: translateY(-3px); border-color: rgba(168, 85, 247, .28); box-shadow: 0 20px 48px rgba(0, 0, 0, .25); }
.module-mark { width: 43px; height: 43px; display: grid; place-items: center; color: var(--gold-bright); background: linear-gradient(145deg, rgba(168, 85, 247, .16), rgba(168, 85, 247, .035)); border: 1px solid rgba(168, 85, 247, .23); border-radius: 12px; font-family: ui-monospace, monospace; font-size: 11px; font-weight: 900; letter-spacing: .06em; }
.module-card-copy { margin-top: auto; padding-top: 19px; }
.module-card-copy > span { color: var(--dim); font-size: 8px; text-transform: uppercase; letter-spacing: .14em; }
.module-card h3 { margin: 5px 0 7px; font-size: 18px; letter-spacing: -.03em; }
.module-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.module-arrow { position: absolute; top: 19px; right: 19px; color: #52647a; transition: .18s ease; }
.module-card:hover .module-arrow { color: var(--gold); transform: translate(2px, -2px); }
.dashboard-grid { margin-top: 18px; }
.activity-card { margin-top: 18px; }

/* Cards, buttons, fields, tables */
.card { padding: 22px; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.card-head.padded { padding: 21px 22px 0; }
.padded-bottom { padding: 0 22px 22px; }
.card-head h2, .card-head h3 { margin: 4px 0 0; letter-spacing: -.03em; }
.card-head h2 { font-size: 20px; }
.card-head h3 { font-size: 16px; }
.card-head > span, .card-head > div > span { color: var(--muted); font-size: 11px; }
.btn { min-height: 41px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 15px; color: var(--ink); background: #14253b; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-size: 12px; font-weight: 780; transition: .15s ease; }
.btn svg { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-1px); background: #192d47; border-color: var(--line-bright); }
.btn.primary { color: #171309; background: linear-gradient(180deg, var(--gold-bright), var(--gold)); border-color: var(--gold); box-shadow: 0 10px 28px rgba(168, 85, 247, .15); }
.btn.primary:hover { background: var(--gold-pale); border-color: var(--gold-pale); }
.btn.ghost { background: transparent; }
.btn.danger { color: #ffd9dc; background: rgba(225, 119, 130, .08); border-color: rgba(225, 119, 130, .3); }
.btn.small { min-height: 33px; padding: 6px 10px; border-radius: 8px; font-size: 10px; }
.btn.full { width: 100%; }
.btn:disabled { opacity: .42; pointer-events: none; }
.icon-btn { width: 40px; padding: 0; flex: 0 0 auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 8px; }
.field.span-2 { grid-column: 1 / -1; }
.field label { color: #b8c3d0; font-size: 11px; font-weight: 750; }
.field-hint { color: var(--dim); font-size: 10px; line-height: 1.5; }
.input, .select, .textarea { width: 100%; color: var(--ink); background: rgba(5, 14, 25, .88); border: 1px solid #263a52; border-radius: 10px; outline: none; padding: 11px 13px; transition: .15s ease; }
.input, .select { min-height: 43px; }
.input.compact { max-width: 290px; }
.textarea { min-height: 145px; line-height: 1.58; resize: vertical; }
.textarea.prompt-area { min-height: 220px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(168, 85, 247, .075); }
.checkbox { display: flex; align-items: flex-start; gap: 10px; color: #b8c4d0; font-size: 12px; line-height: 1.5; }
.checkbox input { margin-top: 3px; accent-color: var(--gold); }
.protected-check { padding: 14px; background: rgba(168, 85, 247, .045); border: 1px solid rgba(168, 85, 247, .13); border-radius: 12px; }
.protected-check span { display: grid; gap: 3px; }
.protected-check small { color: var(--muted); }
.dropzone { padding: 31px; text-align: center; color: var(--muted); background: rgba(4, 12, 22, .46); border: 1px dashed #3a506c; border-radius: 14px; transition: .16s ease; }
.dropzone.drag { background: rgba(168, 85, 247, .07); border-color: var(--gold); }
.dropzone .drop-icon { width: 42px; height: 42px; display: grid; place-items: center; margin: 0 auto 12px; color: var(--gold); background: rgba(168, 85, 247, .08); border: 1px solid rgba(168, 85, 247, .13); border-radius: 12px; }
.dropzone .drop-icon svg { width: 20px; }
.dropzone strong { display: block; color: var(--ink); margin-bottom: 5px; }
.dropzone span { display: block; font-size: 10px; }
.dropzone input { margin-top: 16px; max-width: 100%; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 12px 15px; color: var(--dim); border-bottom: 1px solid var(--line-soft); text-align: left; white-space: nowrap; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
td { padding: 14px 15px; border-bottom: 1px solid rgba(137, 163, 195, .08); vertical-align: middle; font-size: 12px; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: rgba(255, 255, 255, .018); }
.row-title { color: var(--ink); font-weight: 760; }
.row-sub { margin-top: 3px; color: var(--muted); font-size: 10px; }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; color: #bac4ce; background: rgba(143, 159, 178, .07); border: 1px solid rgba(143, 159, 178, .13); border-radius: 999px; white-space: nowrap; font-size: 9px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.ready, .status.completed, .status.inspected { color: var(--green); background: rgba(90, 203, 152, .075); border-color: rgba(90, 203, 152, .18); }
.status.working, .status.running { color: var(--blue); background: rgba(117, 169, 232, .075); border-color: rgba(117, 169, 232, .18); }
.status.queued, .status.draft { color: var(--gold); background: rgba(168, 85, 247, .075); border-color: rgba(168, 85, 247, .18); }
.status.failed, .status.cancelled, .status.error { color: var(--red); background: rgba(225, 119, 130, .075); border-color: rgba(225, 119, 130, .18); }

/* Forge and creation */
.forge-banner { min-height: 250px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); align-items: center; gap: 30px; padding: clamp(27px, 4vw, 46px); overflow: hidden; background: linear-gradient(120deg, rgba(17, 33, 54, .98), rgba(6, 14, 25, .97)); border: 1px solid var(--line); border-radius: 21px; }
.forge-banner h2 { margin: 8px 0 12px; font-size: clamp(30px, 4vw, 52px); line-height: 1; letter-spacing: -.055em; }
.forge-banner p { max-width: 720px; margin: 0; color: var(--muted); line-height: 1.68; }
.forge-banner img { width: 100%; max-width: 410px; justify-self: end; opacity: .92; }
.forge-actions { margin-top: 18px; }
.pipeline-card { margin-top: 18px; }
.pipeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.pipeline-step { position: relative; padding: 17px 17px 17px 0; display: grid; grid-template-columns: 34px 1fr; gap: 11px; }
.pipeline-step:not(:last-child)::after { content: ''; position: absolute; top: 31px; right: 4px; width: 14px; border-top: 1px solid rgba(168, 85, 247, .24); }
.pipeline-step > b { width: 30px; height: 30px; display: grid; place-items: center; color: var(--gold); background: rgba(168, 85, 247, .07); border: 1px solid rgba(168, 85, 247, .18); border-radius: 9px; font-size: 9px; }
.pipeline-step h3 { margin: 2px 0 5px; font-size: 13px; }
.pipeline-step p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.capability-grid { margin-top: 18px; }
.capability-grid .card { min-height: 200px; }
.card-icon { width: 42px; height: 42px; display: grid; place-items: center; color: var(--gold); background: rgba(168, 85, 247, .07); border: 1px solid rgba(168, 85, 247, .14); border-radius: 12px; }
.card-icon svg { width: 20px; }
.capability-grid h3 { margin: 18px 0 8px; font-size: 17px; }
.capability-grid p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.62; }
.creation-card { padding: clamp(23px, 3vw, 36px); }
.creation-intro { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; padding-bottom: 23px; border-bottom: 1px solid var(--line-soft); }
.creation-number { width: 54px; height: 54px; display: grid; place-items: center; flex: 0 0 auto; color: var(--gold-bright); background: linear-gradient(145deg, rgba(168, 85, 247, .16), rgba(168, 85, 247, .035)); border: 1px solid rgba(168, 85, 247, .24); border-radius: 15px; font-size: 26px; font-weight: 300; }
.creation-intro h2 { margin: 0 0 5px; letter-spacing: -.035em; }
.creation-intro p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.form-submit-row { display: flex !important; grid-template-columns: 1fr auto; align-items: center; justify-content: space-between; gap: 18px; padding-top: 4px; }
.creator-stamp { color: var(--dim); font-size: 9px; letter-spacing: .09em; text-transform: uppercase; }

/* Project workspace */
.project-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, .7fr); gap: 18px; align-items: start; }
.project-aside { position: sticky; top: 93px; }
.project-summary h3 { margin: 4px 0 0; }
.summary-list { margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line-soft); }
.compact-banner { margin: 18px 0 0 !important; }
.tabs { display: flex; gap: 4px; overflow-x: auto; padding: 0 7px; border-bottom: 1px solid var(--line-soft); }
.tab { padding: 14px 12px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; text-decoration: none; font-size: 11px; font-weight: 780; }
.tab.active { color: var(--gold-bright); border-bottom-color: var(--gold); }
.conversation { display: grid; gap: 14px; max-height: 690px; overflow-y: auto; padding-right: 3px; }
.message { padding: 15px 16px; color: #cdd5df; background: rgba(5, 14, 25, .46); border: 1px solid var(--line-soft); border-radius: 13px; }
.message.user { border-left: 2px solid var(--gold); }
.message.assistant { border-left: 2px solid var(--blue); background: linear-gradient(90deg, rgba(117, 169, 232, .035), rgba(5, 14, 25, .46)); }
.message-meta { margin-bottom: 8px; color: var(--dim); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.message-content { overflow-wrap: anywhere; white-space: pre-wrap; color: #c9d2dd; font-size: 12px; line-height: 1.68; }
.timeline { display: grid; gap: 0; }
.timeline-item { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; padding-bottom: 18px; }
.timeline-rail { display: flex; flex-direction: column; align-items: center; }
.timeline-dot { width: 9px; height: 9px; margin-top: 5px; background: var(--blue); border-radius: 50%; box-shadow: 0 0 0 4px rgba(117, 169, 232, .075); }
.timeline-line { width: 1px; flex: 1; margin-top: 7px; background: var(--line); }
.timeline-item:last-child .timeline-line { display: none; }
.timeline-title { font-size: 11px; font-weight: 760; text-transform: capitalize; }
.timeline-copy { margin-top: 3px; overflow-wrap: anywhere; color: var(--muted); font-size: 11px; line-height: 1.52; }
.timeline-time { margin-top: 5px; color: var(--dim); font-size: 9px; }
.progress { height: 5px; overflow: hidden; background: #07111e; border-radius: 999px; }
.progress > span { display: block; width: 45%; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright)); border-radius: inherit; animation: glide 1.4s ease-in-out infinite alternate; }
@keyframes glide { from { transform: translateX(-45%); } to { transform: translateX(165%); } }
.artifact { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 8px 0; padding: 12px; background: rgba(4, 12, 21, .29); border: 1px solid var(--line-soft); border-radius: 11px; }
.artifact-copy { min-width: 0; }
.artifact-name { overflow-wrap: anywhere; font-size: 11px; font-weight: 760; }
.artifact-meta { margin-top: 4px; color: var(--dim); font-size: 9px; text-transform: uppercase; }
.artifact-actions { display: flex; align-items: center; gap: 7px; }
.live-list-tools,
.artifact-card-tools { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.live-list-tools > span,
.artifact-card-tools > span { color: var(--dim); font-size: 10px; }
.live-list-tools > small { max-width: 360px; color: var(--dim); font-size: 9px; line-height: 1.45; text-align: right; }
.artifact-card-tools .text-link { font-size: 9px; }
.live-region { transition: border-color .28s ease, background-color .28s ease, box-shadow .28s ease; }
.live-region-updated { animation: liveRegionPulse .65s ease; }
.live-operation-card { scroll-margin-top: 90px; }
.live-operation-card .timeline { max-height: 430px; overflow-y: auto; padding-right: 4px; overscroll-behavior: contain; }
@keyframes liveRegionPulse {
  0% { box-shadow: 0 0 0 0 rgba(168,85,247,0); }
  35% { box-shadow: 0 0 0 2px rgba(168,85,247,.18), 0 0 24px rgba(168,85,247,.08); }
  100% { box-shadow: 0 0 0 0 rgba(168,85,247,0); }
}
@media (prefers-reduced-motion: reduce) {
  .live-region-updated { animation: none; }
}
.file-workspace { align-items: start; }
.file-list { max-height: 580px; overflow: auto; padding-right: 3px; }
.file-row { display: flex; justify-content: space-between; gap: 15px; padding: 9px 8px; border-bottom: 1px solid rgba(137, 163, 195, .07); font-family: ui-monospace, monospace; font-size: 10px; }
.file-row button { padding: 0; overflow-wrap: anywhere; color: #b9c8d8; background: none; border: 0; text-align: left; }
.file-row span { color: var(--dim); white-space: nowrap; }
.code-view { max-height: 640px; padding: 18px; overflow: auto; color: #bec9d5; background: #05101c; border: 1px solid var(--line-soft); border-radius: 11px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10px; line-height: 1.62; white-space: pre; tab-size: 2; }
.model-preview { padding: 16px; overflow: hidden; background: rgba(3, 8, 16, .42); border: 1px solid var(--line); border-radius: 14px; }
.model-preview[hidden] { display: none; }
.canvas-wrap { overflow: auto; background: rgba(2, 6, 12, .5); border: 1px solid rgba(168, 85, 247, .15); border-radius: 11px; }
.canvas-wrap canvas { display: block; max-width: 100%; margin: auto; }
.finding { padding: 14px; background: rgba(255, 255, 255, .018); border: 1px solid var(--line); border-radius: 12px; }
.finding.error { background: rgba(225, 119, 130, .055); border-color: rgba(225, 119, 130, .4); }
.finding.warning { background: rgba(168, 85, 247, .055); border-color: rgba(168, 85, 247, .4); }
.finding-copy { margin-top: 8px; }
.finding .artifact-meta { margin-top: 8px; }

/* Vault, users, settings */
.vault-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; padding: 22px; background: linear-gradient(110deg, rgba(19, 36, 59, .96), rgba(8, 18, 31, .95)); border: 1px solid var(--line-soft); border-radius: 16px; }
.vault-hero > div { display: flex; align-items: center; gap: 15px; }
.vault-hero h2 { margin: 0 0 4px; letter-spacing: -.035em; }
.vault-hero p { margin: 0; color: var(--muted); font-size: 11px; }
.vault-hero > span { color: var(--gold); font-size: 11px; }
.knowledge-card .knowledge-preview { max-height: 190px; overflow: hidden; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag-row span { padding: 4px 7px; color: #94a8bf; background: rgba(117, 169, 232, .06); border: 1px solid rgba(117, 169, 232, .1); border-radius: 7px; font-size: 9px; }
.knowledge-actions { display: flex; gap: 7px; margin-top: 14px; }
.sticky-card { position: sticky; top: 93px; align-self: start; }
.team-layout, .settings-layout { align-items: start; }

/* Core systems */
.system-stats { margin-bottom: 18px; }
.system-grid, .system-bottom { margin-top: 18px; align-items: start; }
.core-card { overflow: hidden; }
.core-card::before { content: ''; position: absolute; width: 300px; height: 300px; right: -160px; top: -180px; border: 1px solid rgba(168, 85, 247, .14); border-radius: 50%; }
.core-card-head { position: relative; display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; align-items: center; gap: 15px; }
.core-emblem { width: 58px; height: 58px; display: grid; place-items: center; background: rgba(168, 85, 247, .055); border: 1px solid rgba(168, 85, 247, .14); border-radius: 15px; }
.core-emblem img { width: 45px; }
.core-card-head h2 { margin: 4px 0 3px; font-size: 23px; }
.core-card-head p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.core-profile { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.core-profile > div, .runtime-grid > div { display: grid; gap: 4px; padding: 12px; background: rgba(5, 14, 25, .45); border: 1px solid var(--line-soft); border-radius: 10px; }
.core-profile span, .runtime-grid span { color: var(--dim); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.core-profile strong, .runtime-grid strong { overflow-wrap: anywhere; font-size: 11px; }
.core-link-guide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 18px; }
.guide-step { display: flex; align-items: center; gap: 8px; padding: 10px; background: rgba(168, 85, 247, .035); border: 1px solid rgba(168, 85, 247, .1); border-radius: 10px; }
.guide-step b { width: 23px; height: 23px; display: grid; place-items: center; flex: 0 0 auto; color: var(--gold); background: rgba(168, 85, 247, .08); border-radius: 7px; font-size: 9px; }
.guide-step span { color: var(--muted); font-size: 9px; line-height: 1.4; }
.device-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; padding: 17px; background: linear-gradient(90deg, rgba(168, 85, 247, .09), rgba(117, 169, 232, .035)); border: 1px solid rgba(168, 85, 247, .2); border-radius: 13px; }
.device-panel h3 { margin: 5px 0 3px; color: var(--gold-pale); font-family: ui-monospace, monospace; font-size: 27px; letter-spacing: .08em; }
.device-panel p { margin: 0; color: var(--muted); font-size: 9px; }
.device-actions, .core-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.core-actions { margin-top: 18px; }
.core-messages { display: grid; gap: 4px; margin-top: 15px; padding: 11px; background: rgba(5, 14, 25, .5); border: 1px solid var(--line-soft); border-radius: 10px; }
.core-messages span { color: var(--muted); font-size: 9px; line-height: 1.45; }
.relay-brand-preview { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; padding: 13px; background: rgba(5, 14, 25, .48); border: 1px solid var(--line-soft); border-radius: 12px; }
.relay-brand-preview img { width: 54px; height: 54px; border-radius: 14px; }
.relay-brand-preview div { display: grid; gap: 2px; }
.relay-brand-preview strong { font-size: 16px; }
.relay-brand-preview span { color: var(--muted); font-size: 10px; }
.relay-brand-preview small { color: var(--gold); font-size: 8px; text-transform: uppercase; letter-spacing: .09em; }
.module-status-list { display: grid; }
.module-status-list > div { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(137, 163, 195, .08); }
.module-status-list > div:last-child { border-bottom: 0; }
.module-light { width: 7px; height: 7px; background: var(--red); border-radius: 50%; }
.module-light.online { background: var(--green); box-shadow: 0 0 10px rgba(90, 203, 152, .4); }
.module-status-list strong { display: block; font-size: 11px; }
.module-status-list small { display: block; margin-top: 2px; color: var(--dim); font-size: 9px; }
.module-status-list b { color: var(--muted); font-size: 9px; }
.runtime-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.system-signature { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line-soft); }
.system-signature img { width: 180px; opacity: .85; }
.system-signature span { color: var(--gold); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }

/* Feedback and utility */
.empty { display: grid; place-items: center; padding: 37px 20px; color: var(--muted); text-align: center; border: 1px dashed var(--line); border-radius: 13px; }
.empty img { width: 38px; margin-bottom: 11px; opacity: .45; }
.empty strong { display: block; color: var(--ink); font-size: 14px; }
.empty span { margin-top: 5px; font-size: 10px; line-height: 1.5; }
.banner { margin-bottom: 18px; padding: 14px 16px; color: #c9d2dc; background: linear-gradient(90deg, rgba(168, 85, 247, .085), rgba(117, 169, 232, .035)); border: 1px solid rgba(168, 85, 247, .19); border-radius: 13px; font-size: 11px; line-height: 1.56; }
.banner.error { background: rgba(225, 119, 130, .065); border-color: rgba(225, 119, 130, .28); }
#toast-root { position: fixed; right: 18px; bottom: 18px; z-index: 100; width: min(390px, calc(100vw - 36px)); display: grid; gap: 9px; }
.toast { padding: 13px 15px; color: var(--ink-soft); background: #15273f; border: 1px solid #304761; border-radius: 11px; box-shadow: var(--shadow); font-size: 11px; line-height: 1.45; animation: toast-in .2s ease; }
.toast.error { border-color: rgba(225, 119, 130, .45); }
.toast.success { border-color: rgba(90, 203, 152, .4); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.loading { min-height: 310px; display: grid; place-items: center; gap: 14px; color: var(--muted); }
.loading::before { content: ''; width: 30px; height: 30px; border: 2px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
.loading span { font-size: 10px; text-transform: uppercase; letter-spacing: .11em; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 1320px) {
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pipeline-step:not(:last-child)::after { display: none; }
}
@media (max-width: 1120px) {
  :root { --sidebar: 250px; }
  .command-hero { grid-template-columns: 1fr 270px; }
  .project-layout { grid-template-columns: 1fr; }
  .project-aside { position: static; }
  .core-card-head { grid-template-columns: 52px minmax(0, 1fr); }
  .core-card-head > .status { grid-column: 1 / -1; width: fit-content; }
}
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-panel { min-height: 100vh; background: linear-gradient(180deg, rgba(9, 20, 34, .94), rgba(4, 10, 18, .96)); }
  .auth-card-mark { width: 68px; height: 68px; display: grid; place-items: center; margin: 0 auto 22px; }
  .auth-card-mark img { width: 62px; }
  .auth-card .eyebrow, .auth-card h2, .auth-card > p { text-align: center; }
  .app-shell { grid-template-columns: 1fr; }
  .app-scrim { position: fixed; inset: 0; z-index: 39; display: block; pointer-events: none; opacity: 0; background: rgba(1, 5, 10, .7); backdrop-filter: blur(3px); transition: opacity .2s ease; }
  .app-scrim.open { pointer-events: auto; opacity: 1; }
  .sidebar { position: fixed; left: 0; width: 278px; transform: translateX(-105%); box-shadow: var(--shadow); transition: transform .22s ease; }
  .sidebar.open { transform: translateX(0); }
  .mobile-menu { display: inline-flex !important; }
  .topbar { padding: 0 15px; }
  .content { padding: 22px 15px 40px; }
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; }
  .command-hero { grid-template-columns: 1fr; }
  .command-hero-mark { display: none; }
  .forge-banner { grid-template-columns: 1fr; }
  .forge-banner img { justify-self: start; max-width: 340px; }
  .system-grid, .system-bottom { grid-template-columns: 1fr; }
  .sticky-card { position: static; }
}
@media (max-width: 650px) {
  .topbar { height: 66px; }
  .topbar-caption { display: none; }
  .breadcrumb span, .breadcrumb b { display: none; }
  .top-actions .live-dot { display: none; }
  .page-head { margin-bottom: 22px; }
  .page-head h1 { font-size: 34px; }
  .page-actions, .page-actions .btn { width: 100%; }
  .command-hero { min-height: 0; padding: 25px 20px; border-radius: 18px; }
  .command-hero-copy h1 { font-size: 43px; }
  .command-hero-copy p { font-size: 13px; }
  .hero-actions, .hero-actions .btn { width: 100%; }
  .grid.cols-4, .module-grid.cols-4 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr !important; gap: 10px; }
  .stat-card { min-height: 108px; padding: 15px; }
  .stat-value { margin-top: 15px; font-size: 28px; }
  .stat-value.compact-value { margin-top: 18px; font-size: 18px; }
  .module-card { min-height: 160px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.span-2 { grid-column: auto; }
  .card { padding: 16px; }
  .card-head.padded { padding: 16px 16px 0; }
  .padded-bottom { padding: 0 16px 16px; }
  .form-submit-row { display: grid !important; }
  .form-submit-row .btn { width: 100%; }
  .creation-intro { align-items: flex-start; }
  .creation-number { width: 45px; height: 45px; font-size: 20px; }
  .pipeline { grid-template-columns: 1fr; }
  .pipeline-step { padding: 10px 0; }
  .core-profile, .core-link-guide { grid-template-columns: 1fr; }
  .device-panel { align-items: stretch; flex-direction: column; }
  .device-actions, .device-actions .btn { width: 100%; }
  .runtime-grid { grid-template-columns: 1fr; }
  .system-signature { align-items: flex-start; flex-direction: column; }
  .vault-hero { align-items: flex-start; flex-direction: column; }
  .vault-hero > div { align-items: flex-start; }
  .file-workspace { grid-template-columns: 1fr !important; }
}
@media (max-width: 410px) {
  .stat-grid { grid-template-columns: 1fr !important; }
  .top-actions .btn { font-size: 0; width: 40px; padding: 0; }
  .top-actions .btn svg { margin: 0; }
}

/* ========================================================================
   OniMind Foundry 1.2 interface
   Visual target: compact midnight command dashboard with violet OniMind glow
   ======================================================================== */
:root {
  --ink: #f5f3ff;
  --ink-soft: #d8d5e6;
  --muted: #9792aa;
  --dim: #666174;
  --void: #05070b;
  --night: #070a10;
  --night-2: #0a0e16;
  --navy: #0d111b;
  --navy-2: #121725;
  --panel: rgba(13, 17, 26, .97);
  --panel-2: rgba(17, 22, 34, .96);
  --panel-deep: rgba(6, 9, 15, .98);
  --line: #252b37;
  --line-bright: #383f4f;
  --line-soft: rgba(149, 141, 174, .14);
  --gold: #a855f7;
  --gold-bright: #c084fc;
  --gold-pale: #e9d5ff;
  --gold-deep: #5b21b6;
  --purple: #a855f7;
  --violet: #7c3aed;
  --violet-deep: #351060;
  --violet-soft: rgba(168, 85, 247, .13);
  --blue: #4ca3ff;
  --green: #16d981;
  --red: #fb5367;
  --amber: #eab84f;
  --shadow: 0 24px 74px rgba(0, 0, 0, .48);
  --shadow-soft: 0 11px 28px rgba(0, 0, 0, .25);
  --radius: 13px;
  --radius-sm: 9px;
  --sidebar: 222px;
}

html { background: #05070b; }
body {
  color: var(--ink);
  background:
    radial-gradient(circle at 72% -18%, rgba(112, 37, 180, .10), transparent 36%),
    radial-gradient(circle at 0 100%, rgba(76, 29, 149, .07), transparent 31%),
    #070a10;
}
body::before {
  opacity: .025;
  background-image:
    linear-gradient(rgba(168, 85, 247, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, .12) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 80% 10%, black, transparent 72%);
}
::selection { color: white; background: rgba(168, 85, 247, .42); }

/* Reframe shared surfaces around the concept art. */
.card,
.stat-card,
.dashboard-panel {
  background: linear-gradient(180deg, rgba(15, 19, 29, .98), rgba(10, 13, 21, .98));
  border-color: #252b36;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .20);
}
.card:hover { border-color: #303746; }
.eyebrow,
.hero-kicker { color: #b66cff; }
.text-link { color: #b86cff; }
.text-link:hover { color: #d9b1ff; }
.btn {
  border-color: #303645;
  background: linear-gradient(180deg, #171c28, #10141e);
  color: #e8e5ef;
}
.btn:hover { border-color: #4b3b60; background: #181d2a; }
.btn.primary {
  color: #fff;
  border-color: #6d2dad;
  background: linear-gradient(180deg, #572084, #361151);
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 8px 20px rgba(73, 20, 120, .20);
}
.btn.primary:hover { border-color: #9d4edd; background: linear-gradient(180deg, #6c299f, #431664); }
.input,
.select,
.textarea {
  color: #eeeaf6;
  border-color: #2d3340;
  background: #0b0f17;
}
.input:focus,
.select:focus,
.textarea:focus { border-color: #8746bd; box-shadow: 0 0 0 3px rgba(168, 85, 247, .10); }
.status.completed,
.status.ready { color: #4df0a7; background: rgba(22, 217, 129, .12); border-color: rgba(22, 217, 129, .22); }
.status.working,
.status.running,
.status.in_progress { color: #55adff; background: rgba(76, 163, 255, .11); border-color: rgba(76, 163, 255, .22); }
.status.draft,
.status.review { color: #ffd36e; background: rgba(234, 184, 79, .12); border-color: rgba(234, 184, 79, .20); }
.status.queued { color: #c2c8d3; background: rgba(132, 142, 158, .10); border-color: rgba(132, 142, 158, .18); }
.status.failed,
.status.error { color: #ff7787; background: rgba(251, 83, 103, .11); border-color: rgba(251, 83, 103, .22); }

/* Shell */
.app-shell { grid-template-columns: var(--sidebar) minmax(0, 1fr); background: #070a10; }
.sidebar {
  padding: 0;
  background:
    radial-gradient(circle at 20% 0, rgba(131, 40, 206, .09), transparent 25%),
    linear-gradient(180deg, rgba(7, 10, 16, .99), rgba(6, 9, 14, .99));
  border-right: 1px solid #242a35;
  backdrop-filter: blur(22px);
}
.sidebar::before { display: none; }
.sidebar-brand {
  min-height: 91px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  color: inherit;
  border-bottom: 1px solid #202631;
  text-decoration: none;
}
.sidebar-brand img {
  width: 49px;
  height: 58px;
  flex: 0 0 auto;
  object-fit: cover;
  object-position: center;
  border-radius: 9px;
  filter: drop-shadow(0 0 13px rgba(168, 85, 247, .30));
}
.sidebar-brand .brand-title {
  color: #faf8ff;
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .055em;
}
.brand-credit {
  margin-top: 8px;
  color: #8f899a;
  font-size: 8px;
  white-space: nowrap;
}
.sidebar-nav { flex: 1; padding: 8px 9px 10px; }
.nav-section { margin: 0; }
.nav-section.nav-control { margin-top: 7px; padding-top: 7px; border-top: 1px solid rgba(121, 129, 149, .10); }
.nav-link {
  min-height: 45px;
  gap: 10px;
  margin: 2px 0;
  padding: 7px 10px;
  border-radius: 7px;
  color: #d4d0db;
  font-size: 12px;
}
.nav-icon {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  color: #ded9e7;
  flex: 0 0 auto;
}
.nav-link svg { width: 17px; height: 17px; opacity: .92; }
.nav-copy { min-width: 0; display: grid; gap: 1px; flex: 1; }
.nav-copy strong { overflow: hidden; font-size: 11.5px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.nav-copy small { color: #777184; font-size: 8.3px; line-height: 1.2; }
.nav-chevron { color: #6f687a; font-size: 20px; line-height: 1; transform: translateY(-1px); }
.nav-link:hover { color: white; border-color: rgba(168, 85, 247, .08); background: rgba(168, 85, 247, .055); }
.nav-link.active {
  color: white;
  border-color: rgba(168, 85, 247, .09);
  background: linear-gradient(90deg, rgba(101, 39, 159, .48), rgba(55, 19, 90, .24));
  box-shadow: inset 0 0 24px rgba(168, 85, 247, .06);
}
.nav-link.active .nav-icon { color: #d4a6ff; }
.nav-link.active .nav-copy small { color: #a897b7; }
.nav-link.active .nav-chevron { color: #bd70ff; }
.sidebar-foot {
  margin-top: auto;
  padding: 10px 7px 8px;
  border-top: 1px solid #242a35;
  background: rgba(7, 10, 16, .92);
}
.user-chip {
  min-height: 70px;
  padding: 9px;
  border: 1px solid #282e39;
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(17, 21, 31, .96), rgba(10, 13, 20, .96));
}
.user-avatar-image {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 1px solid rgba(168, 85, 247, .42);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(168, 85, 247, .16);
}
.user-name { color: #fff; font-size: 10px; }
.user-role { color: #a29bad; font-size: 8px; text-transform: capitalize; letter-spacing: 0; }
.user-online { margin-top: 2px; color: #26e391; font-size: 8px; }
.user-chip .icon-btn { width: 27px; height: 27px; padding: 5px; opacity: .55; }
.user-chip .icon-btn:hover { opacity: 1; }

.main { min-width: 0; background: #080b11; }
.topbar {
  height: 77px;
  padding: 0 22px 0 26px;
  background: rgba(7, 10, 16, .94);
  border-bottom: 1px solid #242a35;
  backdrop-filter: blur(20px);
}
.topbar-left { gap: 13px; }
.topbar-brand { display: grid; gap: 4px; }
.topbar-brand > strong { color: #fff; font-size: 22px; line-height: 1; letter-spacing: -.03em; }
.topbar-brand > span { color: #b6afbe; font-size: 9px; }
.topbar-brand b { color: #b15cff; font-weight: 500; }
.top-actions { gap: 12px; }
.version-pill {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  color: #bbb5c4;
  background: linear-gradient(180deg, #121720, #0d1118);
  border: 1px solid #252b35;
  border-radius: 8px;
  font-size: 10px;
}
.top-icon-button {
  position: relative;
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #e5e1e9;
  background: #0b0f16;
  border: 1px solid #242a34;
  border-radius: 50%;
}
.top-icon-button svg { width: 18px; }
.top-icon-button i { position: absolute; width: 7px; height: 7px; right: 4px; top: 3px; background: #ff4f65; border: 2px solid #090c12; border-radius: 50%; }
.top-divider { width: 1px; height: 37px; background: #252b35; }
.top-avatar { position: relative; width: 44px; height: 44px; display: block; }
.top-avatar img { width: 44px; height: 44px; object-fit: cover; border: 1px solid rgba(168, 85, 247, .46); border-radius: 50%; }
.top-avatar i { position: absolute; width: 9px; height: 9px; right: -1px; bottom: 2px; background: #1cdf91; border: 2px solid #080b11; border-radius: 50%; }
.content { max-width: none; padding: 17px 18px 28px; }
.content[data-page="dashboard"] { padding-top: 12px; }
.content[data-page="dashboard"] .page-footer { display: none; }
.page-footer { border-color: rgba(168, 85, 247, .08); }
.page-footer img { border-radius: 50%; }
.page-footer b { color: #8b4db7; }
.mobile-menu { color: #e7e1ec; }

/* Dashboard composition */
.dashboard-top-grid {
  display: grid;
  grid-template-columns: minmax(515px, 2.45fr) minmax(225px, .91fr) minmax(245px, 1.08fr);
  gap: 12px;
}
.dashboard-panel {
  min-width: 0;
  border: 1px solid #262c37;
  border-radius: 13px;
  overflow: hidden;
}
.welcome-panel {
  min-height: 237px;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 16px;
  padding: 17px 16px 14px;
}
.welcome-mark {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  background: radial-gradient(circle, rgba(95, 32, 154, .17), transparent 68%);
}
.welcome-mark::after {
  content: '';
  position: absolute;
  width: 172px;
  height: 172px;
  border: 1px solid rgba(168, 85, 247, .18);
  border-radius: 50%;
  box-shadow: 0 0 0 20px rgba(168,85,247,.018), 0 0 0 42px rgba(168,85,247,.012);
}
.welcome-mark img {
  position: relative;
  z-index: 2;
  width: 194px;
  height: 194px;
  object-fit: cover;
  border-radius: 50%;
  mix-blend-mode: screen;
  filter: saturate(1.16) drop-shadow(0 0 17px rgba(166, 74, 240, .30));
}
.welcome-copy { min-width: 0; display: flex; flex-direction: column; padding: 6px 0 0; }
.welcome-copy h1 { margin: 0; color: #fff; font-size: clamp(24px, 2vw, 31px); letter-spacing: -.035em; }
.welcome-copy h1 span { color: #a950ea; }
.welcome-copy p { margin: 11px 0 14px; color: #c1bdc9; font-size: 10.5px; line-height: 1.65; }
.welcome-stats {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1.25fr .75fr .85fr .75fr;
  border: 1px solid #292f3a;
  border-radius: 8px;
  background: rgba(18, 22, 32, .87);
}
.welcome-stats > div { min-width: 0; display: grid; align-content: center; gap: 4px; min-height: 58px; padding: 8px 12px; border-right: 1px solid #2a303b; }
.welcome-stats > div:last-child { border-right: 0; }
.welcome-stats span { color: #d2ced8; font-size: 8px; }
.welcome-stats strong { color: #fff; font-size: 17px; font-weight: 600; }
.welcome-stats .operational { width: max-content; display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; color: #3be799; background: rgba(22, 217, 129, .10); border-radius: 4px; font-size: 9px; }
.welcome-stats .operational i { width: 5px; height: 5px; background: #27dc8e; border-radius: 50%; box-shadow: 0 0 8px #27dc8e; }
.system-overview-panel,
.core-overview-panel { min-height: 237px; padding: 17px 13px 12px; }
.dash-panel-title { min-height: 25px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dash-panel-title h2 { margin: 0; color: #fff; font-size: 12px; font-weight: 550; letter-spacing: -.01em; }
.dash-panel-title a { padding: 5px 9px; color: #d7d2dc; background: #151922; border: 1px solid #2b303b; border-radius: 5px; font-size: 8px; text-decoration: none; }
.metric-row { margin-top: 11px; }
.metric-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #d0ccd6; font-size: 8px; }
.metric-label strong { color: #fff; font-size: 8px; font-weight: 500; }
.metric-track { height: 5px; margin-top: 7px; overflow: hidden; background: #292e38; border-radius: 5px; }
.metric-track i { display: block; height: 100%; background: linear-gradient(90deg, #9a3fd8, #c462f1); border-radius: inherit; box-shadow: 0 0 8px rgba(168, 85, 247, .32); }
.network-row { margin-top: 12px; }
.network-spark { width: 100%; height: 29px; margin-top: 4px; overflow: visible; }
.network-spark polyline { fill: none; stroke: #a855f7; stroke-width: 1.2; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 2px rgba(168,85,247,.28)); }
.core-overview-panel { display: flex; flex-direction: column; align-items: stretch; }
.core-rings { position: relative; width: 153px; height: 153px; display: grid; place-items: center; margin: 2px auto 0; }
.core-rings > span { position: absolute; border: 1px solid rgba(168, 85, 247, .30); border-radius: 50%; box-shadow: inset 0 0 14px rgba(168,85,247,.08), 0 0 14px rgba(168,85,247,.06); }
.core-rings > span:nth-child(1) { inset: 8px; border-width: 2px; }
.core-rings > span:nth-child(2) { inset: 26px; border-color: rgba(197, 110, 255, .55); box-shadow: 0 0 10px rgba(168, 85, 247, .38); }
.core-rings > span:nth-child(3) { inset: 42px; border-color: rgba(168, 85, 247, .78); }
.core-rings img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; mix-blend-mode: screen; filter: drop-shadow(0 0 12px rgba(168,85,247,.44)); }
.core-overview-panel p { margin: auto 0 0; color: #d2ced8; font-size: 8.5px; text-align: center; }

.dashboard-action-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.dashboard-action-card {
  min-height: 141px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 0 10px;
  padding: 14px 13px 12px;
  background: linear-gradient(180deg, rgba(15, 19, 29, .98), rgba(11, 14, 22, .98));
  border: 1px solid #262c37;
  border-radius: 11px;
}
.action-card-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  grid-row: 1;
  color: #c27aff;
  background: linear-gradient(145deg, rgba(104, 39, 161, .45), rgba(52, 18, 84, .50));
  border: 1px solid rgba(168, 85, 247, .24);
  border-radius: 8px;
}
.action-card-icon svg { width: 27px; height: 27px; }
.action-card-copy { min-width: 0; }
.action-card-copy h3 { margin: 1px 0 7px; color: #fff; font-size: 12px; font-weight: 550; }
.action-card-copy p { margin: 0; color: #b8b3c0; font-size: 8.5px; line-height: 1.52; }
.dashboard-action-card > a {
  grid-column: 2;
  min-height: 31px;
  display: grid;
  place-items: center;
  margin-top: 7px;
  color: #f6eeff;
  background: linear-gradient(180deg, #54207d, #36104f);
  border: 1px solid #6b2d9d;
  border-radius: 5px;
  font-size: 9px;
  text-decoration: none;
}
.dashboard-action-card > a:hover { background: linear-gradient(180deg, #6d2a9f, #451565); border-color: #9b4bd1; }

.dashboard-lower-grid { display: grid; grid-template-columns: 1.05fr 1.42fr 1.42fr; gap: 12px; margin-top: 12px; }
.list-panel { min-height: 226px; padding: 11px 12px 9px; }
.dash-list { margin-top: 6px; }
.dash-project-row,
.dash-activity-row {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 3px;
  color: inherit;
  border-top: 1px solid #242a34;
  text-decoration: none;
}
.dash-list > :first-child { border-top: 0; }
.dash-file-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #c06cff;
  background: rgba(101, 36, 156, .35);
  border: 1px solid rgba(168, 85, 247, .18);
  border-radius: 6px;
}
.dash-file-icon svg { width: 15px; height: 15px; }
.dash-row-copy { min-width: 0; display: grid; gap: 3px; flex: 1; }
.dash-row-copy strong { overflow: hidden; color: #f5f1f8; font-size: 9px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.dash-row-copy small { overflow: hidden; color: #8b8495; font-size: 7.5px; white-space: nowrap; text-overflow: ellipsis; }
.dash-project-row .status { padding: 4px 7px; font-size: 7px; text-transform: capitalize; }
.dash-job-row { display: block; padding: 7px 3px 9px; color: inherit; border-top: 1px solid #242a34; text-decoration: none; }
.dash-job-row:first-child { border-top: 0; }
.dash-job-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dash-job-head span { min-width: 0; overflow: hidden; color: #f2eef6; font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.dash-job-head b { margin-right: 8px; font-family: ui-monospace, monospace; font-weight: 500; }
.dash-job-head > strong { color: #fff; font-size: 9px; font-weight: 500; }
.dash-job-row > small { display: block; margin-top: 5px; color: #898393; font-size: 7.5px; }
.job-progress { height: 4px; margin-top: 7px; overflow: hidden; background: #292e38; border-radius: 4px; }
.job-progress i { display: block; height: 100%; background: linear-gradient(90deg, #7c2dbb, #c05cf0); border-radius: inherit; box-shadow: 0 0 7px rgba(168,85,247,.28); }
.job-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; padding: 8px 3px 0; color: #928b9c; border-top: 1px solid #242a34; font-size: 7.5px; }
.activity-symbol {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.activity-symbol svg { width: 11px; height: 11px; }
.activity-symbol.success { color: #19db87; }
.activity-symbol.user { color: #3ea6ff; }
.activity-symbol.work { color: #e0b347; }
.activity-symbol.error { color: #fa5b6d; }
.dash-activity-row time { color: #7d7787; font-size: 7px; white-space: nowrap; }

/* Secondary module pages introduced in 1.2 */
.studio-command-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.studio-command-card { display: flex; align-items: flex-start; gap: 15px; min-height: 126px; padding: 20px; color: inherit; background: linear-gradient(160deg, #111621, #0b0f17); border: 1px solid #282e39; border-radius: 13px; text-decoration: none; }
.studio-command-card > span { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 auto; color: #c174ff; background: rgba(91, 33, 182, .23); border: 1px solid rgba(168,85,247,.24); border-radius: 9px; }
.studio-command-card svg { width: 23px; }
.studio-command-card h3 { margin: 1px 0 7px; }
.studio-command-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.project-tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; padding: 0 18px 18px; }
.project-tile { display: flex; align-items: center; gap: 11px; min-height: 67px; padding: 10px; color: inherit; background: #0d1119; border: 1px solid #272d38; border-radius: 9px; text-decoration: none; }
.project-tile-mark { width: 38px; height: 38px; display: grid; place-items: center; color: #bd6dff; background: rgba(91,33,182,.20); border-radius: 7px; }
.project-tile-mark svg { width: 19px; }
.project-tile > div:nth-child(2) { min-width:0; flex:1; display:grid; gap:4px; }
.project-tile strong { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.project-tile small { color:var(--muted); }
.sentinel-summary-grid,
.nexus-summary-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-bottom:18px; }
.nexus-summary-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.sentinel-summary { min-height:100px; display:flex; align-items:center; gap:16px; padding:18px; }
.sentinel-summary > span { width:44px; height:44px; display:grid; place-items:center; color:#c879ff; background:rgba(91,33,182,.22); border-radius:9px; }
.sentinel-summary svg { width:22px; }
.sentinel-summary div { display:grid; gap:3px; }
.sentinel-summary strong { font-size:26px; }
.sentinel-summary small { color:var(--muted); }
.relay-hero-panel { display:grid; grid-template-columns:190px minmax(0,1fr); gap:28px; align-items:center; min-height:250px; padding:25px; margin-bottom:18px; background:radial-gradient(circle at 12% 50%,rgba(109,40,170,.24),transparent 28%),linear-gradient(120deg,#111621,#090d14); border:1px solid #282e39; border-radius:15px; }
.relay-hero-panel > img { width:180px; height:180px; object-fit:cover; border:2px solid rgba(168,85,247,.42); border-radius:50%; box-shadow:0 0 38px rgba(168,85,247,.18); }
.relay-hero-panel h2 { margin:8px 0 10px; font-size:34px; letter-spacing:-.04em; }
.relay-hero-panel p { max-width:760px; color:var(--muted); line-height:1.65; }
.relay-status-line { display:flex; align-items:center; gap:9px; margin-top:18px; }
.command-chip-grid { display:flex; flex-wrap:wrap; gap:9px; }
.command-chip-grid span { padding:8px 11px; color:#dcbaff; background:rgba(91,33,182,.16); border:1px solid rgba(168,85,247,.18); border-radius:7px; font-family:ui-monospace,monospace; font-size:11px; }
.nexus-stat { min-height:100px; display:grid; align-content:center; gap:8px; padding:18px; }
.nexus-stat span { color:var(--muted); font-size:10px; text-transform:uppercase; letter-spacing:.1em; }
.nexus-stat strong { font-size:31px; }
.nexus-job-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.nexus-job-card { padding:16px; background:#0b0f17; border:1px solid #282e39; border-radius:10px; }
.nexus-job-card h3 { margin:4px 0 0; }
.nexus-job-card p { color:var(--muted); }

/* Existing application pages inherit the violet system. */
.command-hero,
.forge-banner,
.vault-hero { background: linear-gradient(120deg, rgba(20, 18, 31, .98), rgba(8, 11, 18, .98)); }
.command-hero::before { background: radial-gradient(circle at 82% 50%, rgba(168,85,247,.11), transparent 34%); }
.command-hero-mark > img,
.core-emblem img,
.empty img { border-radius: 50%; }
.orbit { border-color: rgba(168, 85, 247, .22); }
.orbit::after { background: #c57cff; box-shadow: 0 0 18px rgba(168,85,247,.7); }
.module-card,
.pipeline-card,
.capability-grid .card,
.creation-card { border-color: #282e39; }
.module-mark,
.card-icon,
.drop-icon,
.creation-number { color: #c879ff; background: rgba(91, 33, 182, .20); border-color: rgba(168,85,247,.20); }
.table-wrap table tbody tr:hover { background: rgba(168,85,247,.025); }
table th { color: #857e8e; }
table td { border-color: #252b35; }
.tabs { border-color: #292f3a; }
.tab.active { color: #d7a8ff; border-color: #8541bb; background: rgba(91,33,182,.13); }
.progress span { background: linear-gradient(90deg, #7430ae, #c05df0); }

/* Auth uses the same purple identity. */
.auth-visual { background: linear-gradient(125deg, rgba(14, 15, 25, .98), rgba(5, 7, 12, .98)), radial-gradient(circle at 35% 32%, rgba(168,85,247,.18), transparent 38%); }
.auth-visual::before { opacity: .18; filter: none; }
.brand-lockup img { border-radius: 50%; filter: drop-shadow(0 0 24px rgba(168,85,247,.28)); }
.brand-sub,
.creator-credit strong,
.auth-card-credit { color: #b45fff; }
.auth-card { background: linear-gradient(180deg, rgba(19, 20, 31, .98), rgba(9, 11, 18, .98)); border-color: #2d3340; }
.auth-card::before { background: radial-gradient(circle at 100% 0, rgba(168,85,247,.12), transparent 34%); }

@media (max-width: 1380px) {
  :root { --sidebar: 214px; }
  .dashboard-top-grid { grid-template-columns: minmax(470px, 2fr) minmax(215px, .9fr) minmax(220px, .95fr); }
  .welcome-panel { grid-template-columns: 180px minmax(0,1fr); }
  .welcome-mark img { width: 170px; height: 170px; }
  .dashboard-action-card { grid-template-columns: 47px minmax(0,1fr); padding-left:10px; padding-right:10px; }
  .action-card-icon { width:47px; height:47px; }
}

@media (max-width: 1180px) {
  .dashboard-top-grid { grid-template-columns: 1.8fr 1fr; }
  .core-overview-panel { grid-column: 1 / -1; min-height:190px; display:grid; grid-template-columns:1fr 180px 1fr; align-items:center; gap:16px; }
  .core-overview-panel .dash-panel-title { align-self:start; }
  .core-overview-panel p { margin:0; text-align:left; }
  .dashboard-action-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .dashboard-lower-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-lower-grid > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position:fixed; inset:0 auto 0 0; width:min(86vw,270px); transform:translateX(-105%); transition:transform .22s ease; box-shadow:24px 0 70px rgba(0,0,0,.52); }
  .sidebar.open { transform:translateX(0); }
  .app-scrim.open { display:block; position:fixed; inset:0; z-index:35; background:rgba(0,0,0,.62); backdrop-filter:blur(3px); }
  .mobile-menu { display:grid !important; }
  .topbar { padding:0 15px; }
  .dashboard-top-grid { grid-template-columns: 1fr 1fr; }
  .welcome-panel { grid-column:1 / -1; }
  .core-overview-panel { grid-column:auto; min-height:237px; display:flex; }
  .core-overview-panel p { margin:auto 0 0; text-align:center; }
  .dashboard-action-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .dashboard-lower-grid { grid-template-columns:1fr; }
  .dashboard-lower-grid > :last-child { grid-column:auto; }
  .studio-command-grid,
  .sentinel-summary-grid { grid-template-columns:1fr; }
  .project-tile-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .nexus-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 680px) {
  .topbar { height:66px; }
  .topbar-brand > strong { font-size:18px; }
  .topbar-brand > span { font-size:7.5px; }
  .version-pill,
  .top-divider { display:none; }
  .top-actions { gap:8px; }
  .top-icon-button { width:34px; height:34px; }
  .top-avatar,
  .top-avatar img { width:38px; height:38px; }
  .content { padding:12px 10px 24px; }
  .dashboard-top-grid { grid-template-columns:1fr; gap:10px; }
  .welcome-panel { grid-column:auto; min-height:0; grid-template-columns:1fr; padding:14px; }
  .welcome-mark { height:165px; }
  .welcome-mark img { width:160px; height:160px; }
  .welcome-copy { padding-top:2px; }
  .welcome-copy h1 { font-size:25px; }
  .welcome-copy p { font-size:9.5px; }
  .welcome-stats { grid-template-columns:1fr 1fr; }
  .welcome-stats > div:nth-child(2) { border-right:0; }
  .welcome-stats > div:nth-child(-n+2) { border-bottom:1px solid #2a303b; }
  .system-overview-panel,
  .core-overview-panel { min-height:220px; }
  .dashboard-action-grid { grid-template-columns:1fr; gap:10px; }
  .dashboard-action-card { min-height:124px; grid-template-columns:54px minmax(0,1fr); }
  .dashboard-action-card > a { grid-column:2; }
  .dashboard-lower-grid { gap:10px; }
  .list-panel { min-height:0; }
  .live-list-tools,
  .artifact-card-tools { width:100%; align-items:flex-start; justify-content:flex-start; }
  .live-list-tools > small { max-width:none; text-align:left; }
  .artifact { align-items:flex-start; }
  .artifact-actions { flex-wrap:wrap; justify-content:flex-end; }
  .page-head { flex-direction:column; }
  .page-head h1 { font-size:31px; }
  .studio-command-grid,
  .project-tile-grid,
  .nexus-summary-grid,
  .nexus-job-grid { grid-template-columns:1fr; }
  .relay-hero-panel { grid-template-columns:1fr; text-align:center; }
  .relay-hero-panel > img { margin:auto; }
  .relay-status-line { justify-content:center; }
}

/* OniMind Vault 2.0 · Living knowledge system */
.vault-stat-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.vault-stat { min-height:108px; display:grid; align-content:center; gap:7px; padding:17px 18px; }
.vault-stat > span { color:var(--muted); font-size:10px; letter-spacing:.08em; text-transform:uppercase; }
.vault-stat > strong { color:#fff; font-size:28px; line-height:1; letter-spacing:-.04em; }
.vault-stat > strong small { color:var(--dim); font-size:15px; font-weight:650; }
.vault-stat > em { color:var(--gold-bright); font-size:9px; font-style:normal; }
.vault-version-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:12px 0 18px; }
.vault-version-card { min-width:0; display:grid; gap:7px; padding:14px 16px; background:linear-gradient(155deg,rgba(17,22,33,.96),rgba(8,12,19,.98)); border:1px solid #282f3b; border-radius:11px; }
.vault-version-card > span { color:#a79db3; font-size:9px; letter-spacing:.09em; text-transform:uppercase; }
.vault-version-card > strong { overflow:hidden; color:#f7f2fb; font-size:15px; white-space:nowrap; text-overflow:ellipsis; }
.vault-version-card > small { color:#716a7b; font-size:8px; }
.vault-control-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-bottom:18px; }
.vault-control-card { display:flex; flex-direction:column; min-height:100%; }
.vault-control-card > p { min-height:48px; font-size:10px; line-height:1.55; }
.vault-control-card > .btn:last-child,
.vault-control-card > .stack { margin-top:auto; }
.compact-grid { gap:10px !important; }
.vault-checkbox { align-self:end; min-height:43px; padding:9px 10px; background:#0b1018; border:1px solid #272d38; border-radius:8px; }
.vault-dropzone { min-height:150px; margin:6px 0 13px; }
.vault-search-card { margin-bottom:18px; }
.vault-search-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(180px,.32fr) auto; gap:10px; }
.vault-search-results { display:grid; gap:10px; margin-top:14px; max-height:760px; overflow:auto; padding-right:3px; }
.vault-search-loading { min-height:76px; display:flex; align-items:center; justify-content:center; gap:10px; color:var(--muted); font-size:10px; }
.vault-search-loading > span { width:14px; height:14px; border:2px solid rgba(192,132,252,.22); border-top-color:var(--gold-bright); border-radius:50%; animation:vaultSpin .7s linear infinite; }
@keyframes vaultSpin { to { transform:rotate(360deg); } }
.vault-evidence-card { display:grid; grid-template-columns:32px minmax(0,1fr); gap:12px; padding:13px; background:#0a0f17; border:1px solid #282f3a; border-radius:10px; }
.vault-evidence-rank { width:30px; height:30px; display:grid; place-items:center; color:#d8a5ff; background:rgba(117,38,174,.28); border:1px solid rgba(192,132,252,.25); border-radius:8px; font:700 10px ui-monospace,monospace; }
.vault-evidence-copy { min-width:0; }
.vault-evidence-title { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.vault-evidence-title h3 { min-width:0; overflow:hidden; margin:0; color:#f4eff8; font-size:12px; white-space:nowrap; text-overflow:ellipsis; }
.vault-evidence-title > span { flex:0 0 auto; color:#b46cff; font-size:8px; }
.vault-evidence-meta { display:flex; flex-wrap:wrap; gap:5px; margin:7px 0 9px; }
.vault-evidence-meta span { max-width:100%; overflow:hidden; padding:3px 6px; color:#978fa1; background:#111721; border:1px solid #252c37; border-radius:5px; font:7.5px ui-monospace,monospace; white-space:nowrap; text-overflow:ellipsis; }
.vault-evidence-card pre { max-height:190px; overflow:auto; margin:0 0 8px; padding:10px; color:#c4bdca; background:#060a10; border:1px solid #202631; border-radius:7px; font:9px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace; white-space:pre-wrap; overflow-wrap:anywhere; }
.vault-evidence-card .text-link { display:inline-flex; align-items:center; gap:5px; font-size:8px; }
.vault-evidence-card .text-link svg { width:11px; }
.vault-main-grid { display:grid; grid-template-columns:minmax(0,1.9fr) minmax(280px,.72fr); gap:14px; margin-bottom:18px; align-items:start; }
.vault-source-library,
.vault-sync-history { min-width:0; }
.vault-source-list { display:grid; gap:9px; }
.vault-source-card { display:grid; grid-template-columns:minmax(0,1fr) minmax(135px,.28fr); gap:12px 16px; padding:13px; background:linear-gradient(150deg,#0d121b,#090d14); border:1px solid #292f3a; border-radius:10px; transition:opacity .18s,border-color .18s,transform .18s; }
.vault-source-card:hover { border-color:#49305d; transform:translateY(-1px); }
.vault-source-card.disabled { opacity:.55; }
.vault-source-main { min-width:0; display:flex; align-items:flex-start; gap:11px; }
.vault-source-icon { width:37px; height:37px; display:grid; place-items:center; flex:0 0 auto; color:#c36eff; background:rgba(97,34,145,.27); border:1px solid rgba(192,132,252,.18); border-radius:8px; }
.vault-source-icon svg { width:18px; height:18px; }
.vault-source-copy { min-width:0; }
.vault-source-title { display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
.vault-source-title h3 { max-width:100%; overflow:hidden; margin:0; color:#f5f1f8; font-size:11px; white-space:nowrap; text-overflow:ellipsis; }
.vault-source-copy > p { max-width:100%; overflow:hidden; margin:5px 0 7px; color:#81798a; font-size:8px; white-space:nowrap; text-overflow:ellipsis; }
.source-badge { padding:3px 6px; color:#bfb6c8; background:#171c25; border:1px solid #303744; border-radius:999px; font-size:6.8px; font-weight:750; letter-spacing:.04em; text-transform:uppercase; }
.source-badge.builtin { color:#d6a9ff; background:rgba(101,38,149,.21); border-color:rgba(192,132,252,.26); }
.source-badge.stable,
.source-badge.official { color:#72e3b1; background:rgba(31,139,95,.12); border-color:rgba(90,203,152,.23); }
.source-badge.preview { color:#f5bd6d; background:rgba(156,94,24,.14); border-color:rgba(235,164,70,.23); }
.source-badge.owner { color:#d6a9ff; }
.source-badge.development { color:#8ebdff; background:rgba(42,92,158,.14); border-color:rgba(117,169,232,.24); }
.vault-source-meta { display:flex; flex-wrap:wrap; gap:5px 9px; color:#716b78; font-size:7px; }
.vault-source-meta span { max-width:240px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.vault-source-state { display:grid; align-content:start; justify-items:end; gap:6px; min-width:0; text-align:right; }
.vault-source-state > small { color:#7f7787; font-size:7px; }
.source-error { max-width:220px; overflow:hidden; color:#e8808d; font-size:7px; white-space:nowrap; text-overflow:ellipsis; }
.vault-source-actions { grid-column:1 / -1; display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; padding-top:9px; border-top:1px solid #232a34; }
.vault-source-actions .btn svg { width:11px; }
.vault-run-list { display:grid; gap:7px; max-height:760px; overflow:auto; padding-right:3px; }
.vault-run { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:5px 8px; padding:10px; background:#0b1018; border:1px solid #252c36; border-radius:8px; }
.vault-run > div { min-width:0; display:grid; gap:3px; }
.vault-run strong { overflow:hidden; color:#eee8f2; font-size:9px; white-space:nowrap; text-overflow:ellipsis; }
.vault-run span:not(.status) { color:#777080; font-size:7px; }
.vault-run > small { grid-column:1 / -1; color:#827a8a; font-size:7.5px; }
.vault-document-panel { margin-bottom:18px; scroll-margin-top:78px; }
.vault-document-panel[hidden] { display:none; }
.vault-document-panel .table-wrap { max-height:560px; overflow:auto; }
.vault-document-panel .row-sub { max-width:760px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.vault-manual-head { display:flex; align-items:end; justify-content:space-between; gap:14px; margin:22px 0 12px; }
.vault-manual-head h2 { margin:3px 0 0; }
.vault-grid { align-items:start; }

@media (max-width:1180px) {
  .vault-stat-grid,
  .vault-version-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .vault-control-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .vault-control-grid > :last-child { grid-column:1 / -1; }
  .vault-main-grid { grid-template-columns:1fr; }
  .vault-run-list { max-height:360px; }
}
@media (max-width:760px) {
  .vault-stat-grid,
  .vault-version-grid,
  .vault-control-grid { grid-template-columns:1fr; }
  .vault-control-grid > :last-child { grid-column:auto; }
  .vault-search-row { grid-template-columns:1fr; }
  .vault-source-card { grid-template-columns:1fr; }
  .vault-source-state { justify-items:start; text-align:left; }
  .vault-source-actions { justify-content:flex-start; }
  .vault-evidence-card { grid-template-columns:26px minmax(0,1fr); }
  .vault-evidence-rank { width:25px; height:25px; }
  .vault-evidence-title { align-items:flex-start; flex-direction:column; gap:4px; }
  .vault-manual-head { align-items:flex-start; flex-direction:column; }
}

/* OniMind 1.4 · Universal Source Control */
.source-control,
.source-overview { gap:14px; }
.source-hero,
.source-command-hero { position:relative; overflow:hidden; background:radial-gradient(circle at 88% 18%,rgba(136,57,205,.22),transparent 34%),linear-gradient(145deg,#131020,#090d15 70%); border-color:#3d2752; }
.source-hero::after,
.source-command-hero::after { content:""; position:absolute; width:260px; height:260px; right:-120px; bottom:-175px; border:1px solid rgba(192,132,252,.16); border-radius:50%; box-shadow:0 0 60px rgba(128,53,194,.12); pointer-events:none; }
.source-hero { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:22px; }
.source-hero h2 { margin:4px 0; color:#fff; font-size:25px; }
.source-hero p { margin:0; color:#8c8398; }
.source-head-status { display:grid; justify-items:end; gap:8px; }
.source-head-status .mono { color:#d6a9ff; }
.source-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:12px 14px; background:linear-gradient(90deg,rgba(20,24,35,.94),rgba(12,16,24,.94)); border:1px solid #2b3240; border-radius:11px; }
.source-actions .btn svg,
.source-repository-actions .btn svg { width:12px; }
.source-stat-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.source-stat { min-height:104px; display:grid; align-content:center; gap:6px; padding:16px; }
.source-stat > span,
.source-overview-stat > span { color:#8d8497; font-size:9px; letter-spacing:.08em; text-transform:uppercase; }
.source-stat > strong,
.source-overview-stat > strong { color:#fff; font-size:27px; line-height:1; }
.source-stat > small,
.source-overview-stat > small { color:#716a7b; font-size:8px; }
.source-grid { align-items:start; }
.source-file-list,
.commit-list,
.workflow-list,
.push-request-list,
.remote-record-list,
.source-event-list { display:grid; gap:7px; max-height:440px; overflow:auto; padding-right:3px; }
.source-file,
.commit-row,
.workflow-row,
.push-request,
.remote-record,
.source-event { min-width:0; display:flex; align-items:center; gap:10px; padding:10px; color:inherit; background:#0b1018; border:1px solid #252d39; border-radius:8px; text-decoration:none; transition:border-color .18s,background .18s,transform .18s; }
.workflow-row:hover,
.remote-record:hover { border-color:#4b3161; background:#101621; transform:translateY(-1px); }
.source-file > div,
.commit-row > div,
.workflow-row > div,
.push-request > div,
.remote-record > div,
.source-event > div { min-width:0; flex:1; display:grid; gap:3px; }
.source-file strong,
.commit-row strong,
.workflow-row strong,
.push-request strong,
.remote-record strong,
.source-event strong { overflow:hidden; color:#eee9f2; font-size:9px; white-space:nowrap; text-overflow:ellipsis; }
.source-file small,
.commit-row small,
.workflow-row small,
.push-request small,
.remote-record small,
.source-event small { color:#777180; font-size:7px; }
.source-file-state,
.source-event-mark { width:28px; height:28px; display:grid; place-items:center; flex:0 0 auto; color:#d8a5ff; background:rgba(112,43,161,.28); border:1px solid rgba(192,132,252,.22); border-radius:7px; font:700 9px ui-monospace,monospace; }
.commit-row > .mono { width:58px; flex:0 0 auto; color:#b77df0; font-size:8px; }
.workflow-light { width:9px; height:9px; flex:0 0 auto; background:#677080; border-radius:50%; box-shadow:0 0 0 4px rgba(103,112,128,.09); }
.workflow-light.success,
.workflow-light.completed { background:#4fd39a; box-shadow:0 0 0 4px rgba(79,211,154,.1); }
.workflow-light.failure,
.workflow-light.failed,
.workflow-light.cancelled,
.workflow-light.timed_out { background:#e66c7d; box-shadow:0 0 0 4px rgba(230,108,125,.1); }
.workflow-light.in_progress,
.workflow-light.queued,
.workflow-light.pending { background:#d59954; box-shadow:0 0 0 4px rgba(213,153,84,.1); }
.source-commit-form { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:9px; align-items:end; margin-top:12px; padding-top:12px; border-top:1px solid #272e39; }
.source-commit-form .field { margin:0; }
.compact-code { max-height:240px; margin-top:10px; font-size:8px; }
.push-request { align-items:flex-start; justify-content:space-between; }
.push-request p,
.source-event p { margin:3px 0 0; color:#938a9c; font-size:8px; line-height:1.45; }
.branch-workbench-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.branch-control { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:9px; align-items:end; padding:12px; background:#0b1018; border:1px solid #282f3b; border-radius:9px; }
.branch-control .field { margin:0; }
.source-setup-grid { align-items:stretch; }
.source-setup-card h3 { margin:4px 0 13px; }
.source-danger-zone { padding:0; overflow:hidden; border-color:#56303a; }
.source-danger-zone summary { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 18px; cursor:pointer; list-style:none; }
.source-danger-zone summary::-webkit-details-marker { display:none; }
.source-danger-zone summary span { display:grid; gap:4px; }
.source-danger-zone summary strong { color:#f2e7ec; }
.source-danger-zone summary small { color:#8d7880; font-size:8px; }
.source-danger-zone summary b { color:#e18491; font-size:8px; text-transform:uppercase; }
.source-import-form { padding:0 18px 18px; border-top:1px solid #39242a; }
.source-import-form .form-grid { margin:15px 0; }
.remote-activity-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.remote-record { justify-content:space-between; }
.remote-record .status { flex:0 0 auto; }
.source-command-hero { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:24px; border:1px solid #3d2752; border-radius:14px; }
.source-command-hero > div:first-child { min-width:0; display:flex; align-items:flex-start; gap:15px; }
.source-command-hero .module-mark { width:48px; height:48px; flex:0 0 auto; }
.source-command-hero h2 { max-width:820px; margin:4px 0 7px; color:#fff; font-size:25px; line-height:1.15; }
.source-command-hero p { max-width:920px; margin:0; color:#8d8597; font-size:10px; line-height:1.55; }
.source-connection-state { min-width:190px; display:grid; grid-template-columns:auto 1fr; gap:3px 9px; align-items:center; padding:13px; background:rgba(8,12,19,.8); border:1px solid #313947; border-radius:10px; }
.source-connection-state .module-light { grid-row:1 / 3; }
.source-connection-state strong { color:#ece7f1; font-size:9px; }
.source-connection-state small { color:#756e7e; font-size:7px; }
.source-overview-stats { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:10px; }
.source-overview-stat { min-height:93px; display:grid; align-content:center; gap:6px; padding:14px; }
.source-overview-stat > strong { font-size:24px; }
.source-repository-list { display:grid; gap:9px; }
.source-repository-card { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(210px,.55fr) minmax(145px,.38fr) auto; gap:12px; align-items:center; padding:13px; background:linear-gradient(150deg,#0d121b,#090d14); border:1px solid #292f3a; border-radius:10px; }
.source-repository-main { min-width:0; display:flex; align-items:center; gap:11px; }
.source-repository-icon { width:38px; height:38px; display:grid; place-items:center; flex:0 0 auto; color:#c36eff; background:rgba(97,34,145,.27); border:1px solid rgba(192,132,252,.18); border-radius:8px; }
.source-repository-icon svg { width:18px; }
.source-repository-main > div { min-width:0; display:grid; gap:3px; }
.source-repository-main a { overflow:hidden; color:#f5f1f8; font-size:11px; font-weight:760; white-space:nowrap; text-overflow:ellipsis; }
.source-repository-main small { overflow:hidden; color:#827a8b; font-size:7.5px; white-space:nowrap; text-overflow:ellipsis; }
.source-repository-main .mono { color:#9d70c9; font-size:7px; }
.source-repository-metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:5px; }
.source-repository-metrics span { padding:6px; color:#9c94a4; background:#111721; border:1px solid #272e39; border-radius:6px; font-size:7px; text-align:center; }
.source-repository-state { display:flex; flex-wrap:wrap; gap:5px; align-items:center; }
.source-repository-state small { width:100%; color:#706978; font-size:7px; }
.source-repository-actions { display:flex; gap:6px; justify-content:flex-end; }
.source-event { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:start; }
.source-event > .mono { color:#80619a; font-size:7px; }
.github-system-card .github-account img { object-fit:cover; }

@media (max-width:1260px) {
  .source-overview-stats { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .source-repository-card { grid-template-columns:minmax(0,1fr) minmax(200px,.55fr) auto; }
  .source-repository-state { grid-column:2; }
  .source-repository-actions { grid-row:1 / 3; grid-column:3; flex-direction:column; }
}
@media (max-width:980px) {
  .source-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .remote-activity-grid { grid-template-columns:1fr; }
  .source-command-hero { align-items:flex-start; flex-direction:column; }
  .source-connection-state { width:100%; }
  .source-overview-stats { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .source-repository-card { grid-template-columns:1fr auto; }
  .source-repository-metrics { grid-column:1 / -1; }
  .source-repository-state { grid-column:1; }
  .source-repository-actions { grid-column:2; grid-row:1; }
}
@media (max-width:680px) {
  .source-hero { align-items:flex-start; flex-direction:column; }
  .source-head-status { justify-items:start; }
  .source-stat-grid,
  .source-overview-stats,
  .branch-workbench-grid { grid-template-columns:1fr; }
  .source-commit-form,
  .branch-control { grid-template-columns:1fr; }
  .source-command-hero { padding:16px; }
  .source-command-hero > div:first-child { flex-direction:column; }
  .source-command-hero h2 { font-size:21px; }
  .source-repository-card { grid-template-columns:1fr; }
  .source-repository-actions,
  .source-repository-state,
  .source-repository-metrics { grid-column:auto; grid-row:auto; }
  .source-repository-actions { justify-content:flex-start; flex-wrap:wrap; }
  .push-request { flex-direction:column; }
}

/* OniMind 1.5 custom account access */
.privacy-shield { position:relative; display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:16px; align-items:center; padding:18px 20px; overflow:hidden; background:linear-gradient(135deg,rgba(55,24,78,.72),rgba(10,15,24,.95) 58%,rgba(23,16,35,.94)); border:1px solid rgba(192,132,252,.28); border-radius:13px; box-shadow:inset 0 1px 0 rgba(255,255,255,.025); }
.privacy-shield::after { content:""; position:absolute; width:220px; height:220px; right:-80px; top:-120px; pointer-events:none; background:radial-gradient(circle,rgba(168,85,247,.15),transparent 66%); }
.privacy-shield-icon { width:52px; height:52px; display:grid; place-items:center; color:#d5a3ff; background:rgba(109,40,157,.28); border:1px solid rgba(210,153,255,.24); border-radius:12px; }
.privacy-shield-icon svg { width:23px; height:23px; }
.privacy-shield h2,.privacy-shield h3 { margin:3px 0 5px; color:#f7f2fa; }
.privacy-shield p { max-width:990px; margin:0; color:#a59bac; font-size:9px; line-height:1.55; }
.team-privacy-shield { margin-bottom:16px; }
.access-badge { display:inline-flex; align-items:center; justify-content:center; width:max-content; padding:4px 7px; color:#a9b1bf; background:#131923; border:1px solid #303846; border-radius:999px; font-size:7px; font-weight:750; letter-spacing:.04em; text-transform:uppercase; }
.access-badge.custom { color:#d7adfa; background:rgba(111,46,154,.24); border-color:rgba(192,132,252,.3); }
.access-summary { display:grid; gap:3px; }
.access-summary > strong { color:#ece7f0; font-size:9px; }
.access-summary > small { color:#797180; font-size:7px; text-transform:capitalize; }
.access-summary .access-badge { margin-top:2px; }
.access-editor { margin-top:16px; padding:0; overflow:hidden; border-color:#3b2d48; }
.access-editor > .card-head { margin:0; padding:18px 20px; background:linear-gradient(135deg,#111721,#0b1017); border-bottom:1px solid #2c3340; }
.access-editor > .card-head span { color:#807789; font-size:8px; }
.access-privacy { margin:16px 18px 0; grid-template-columns:auto minmax(0,1fr); }
.access-editor-toolbar { display:grid; grid-template-columns:minmax(190px,.8fr) auto minmax(190px,.8fr) minmax(210px,1fr); gap:10px; align-items:end; padding:16px 18px 0; }
.access-editor-toolbar .field { margin:0; }
.access-account-grid { padding:14px 18px; border-bottom:1px solid #272e39; }
.access-account-grid .field { margin:0; }
.access-active { min-height:58px; margin:0; padding:10px 12px; align-self:end; background:#0b1018; border:1px solid #292f3b; border-radius:9px; }
.access-active span { display:grid; gap:3px; }
.access-active strong { color:#ece8ef; font-size:9px; }
.access-active small { color:#7e7685; font-size:7px; line-height:1.4; }
.permission-matrix { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:16px 18px; background:rgba(5,8,13,.34); border-bottom:1px solid #272e39; }
.permission-group { min-width:0; overflow:hidden; background:#0b1018; border:1px solid #292f3b; border-radius:10px; }
.permission-group-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 13px; background:#101620; border-bottom:1px solid #282f3a; }
.permission-group-head h3 { margin:0; color:#eee9f2; font-size:9px; }
.permission-group-head span { color:#8c7a9c; font-size:7px; }
.permission-group-list { display:grid; }
.permission-row { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:10px; align-items:start; padding:10px 12px; cursor:pointer; border-bottom:1px solid rgba(42,49,61,.72); }
.permission-row:last-child { border-bottom:0; }
.permission-row:hover { background:rgba(137,68,187,.07); }
.permission-row input { width:15px; height:15px; margin:1px 0 0; accent-color:#a855f7; }
.permission-copy { min-width:0; display:grid; gap:3px; }
.permission-copy strong { color:#dcd6e1; font-size:8px; }
.permission-copy small { color:#756f7b; font-size:7px; line-height:1.45; }
.permission-row > b { align-self:center; color:#b181d3; font-size:6.5px; text-transform:uppercase; white-space:nowrap; }
.permission-row.owner-locked { cursor:not-allowed; opacity:.66; background:rgba(116,74,145,.04); }
.assignment-grid { padding:16px 18px; border-bottom:1px solid #272e39; }
.assignment-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:11px; }
.assignment-head h3 { margin:3px 0 0; color:#eee9f2; font-size:11px; }
.assignment-head > span { max-width:340px; color:#7c7482; font-size:7px; text-align:right; line-height:1.5; }
.assignment-list { display:grid; gap:7px; }
.assignment-row { display:grid; grid-template-columns:minmax(0,1fr) 180px auto; gap:10px; align-items:center; padding:10px 12px; background:#0b1018; border:1px solid #292f3b; border-radius:8px; }
.assignment-row > div { min-width:0; display:grid; gap:3px; }
.assignment-row strong { overflow:hidden; color:#e6e1e9; font-size:8.5px; white-space:nowrap; text-overflow:ellipsis; }
.assignment-row small { color:#756d7c; font-size:7px; }
.assignment-row .select.compact { min-height:34px; padding:7px 28px 7px 9px; font-size:8px; }
.access-editor-footer { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 18px; background:#0c1119; }
.access-editor-footer > div { display:grid; gap:3px; }
.access-editor-footer strong { color:#e7d8f1; font-size:9px; }
.access-editor-footer span { color:#776f7d; font-size:7px; }
.read-only-project { padding:13px 15px; color:#aaa2b0; background:rgba(76,57,87,.15); border:1px solid #3b3041; border-radius:9px; font-size:8px; line-height:1.5; }

@media (max-width:980px) {
  .access-editor-toolbar { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .permission-matrix { grid-template-columns:1fr; }
  .access-account-grid { grid-template-columns:1fr; }
}
@media (max-width:680px) {
  .privacy-shield { grid-template-columns:auto minmax(0,1fr); padding:15px; }
  .privacy-shield > .access-badge { grid-column:2; }
  .access-editor-toolbar { grid-template-columns:1fr; }
  .access-editor-toolbar .btn { width:100%; }
  .assignment-head,.access-editor-footer { align-items:flex-start; flex-direction:column; }
  .assignment-head > span { max-width:none; text-align:left; }
  .assignment-row { grid-template-columns:1fr; }
  .assignment-row .select.compact { width:100%; }
  .access-editor-footer .btn { width:100%; }
}

/* OniMind 1.7 Foundry Grounds Remaster */
.live-foundry-card {
  position:relative;
  overflow:hidden;
  padding:0;
  border-color:rgba(192,132,252,.25);
  background:
    radial-gradient(circle at 50% -22%,rgba(168,85,247,.15),transparent 39%),
    linear-gradient(180deg,rgba(14,19,30,.99),rgba(6,9,16,.995));
  box-shadow:0 28px 78px rgba(0,0,0,.36),inset 0 1px 0 rgba(255,255,255,.025);
}
.live-foundry-card::before {
  content:'';
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  opacity:.1;
  background-image:linear-gradient(rgba(192,132,252,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(192,132,252,.07) 1px,transparent 1px);
  background-size:42px 42px;
  mask-image:linear-gradient(to bottom,black,transparent 72%);
}
.live-foundry-card-head {
  position:relative;
  z-index:3;
  margin:0;
  padding:18px 20px 16px;
  border-bottom:1px solid rgba(192,132,252,.14);
  background:linear-gradient(90deg,rgba(13,18,28,.97),rgba(21,13,30,.95));
}
.live-foundry-card-head h2 { margin:3px 0 5px; }
.live-foundry-card-head p { max-width:800px;margin:0;color:#918899;font-size:8px;line-height:1.55; }
.live-foundry-card-state { min-width:126px;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:3px 8px;text-align:left; }
.live-foundry-card-state .module-light { grid-row:1 / 3; }
.live-foundry-card-state .module-light.attention { background:var(--red);box-shadow:0 0 0 5px rgba(225,119,130,.1),0 0 20px rgba(225,119,130,.28); }
.live-foundry-card-state strong { color:#e9e1ef;font-size:9px; }
.live-foundry-card-state small { color:#776f80;font-size:7px; }
.live-foundry-host { position:relative;z-index:2;min-height:430px;background:#050812; }
.live-foundry-card.compact .live-foundry-host { min-height:365px; }
.live-foundry-canvas-shell { position:relative;min-height:inherit;overflow:hidden;background:#050812;isolation:isolate; }
.live-foundry-canvas-shell::before {
  content:'';
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
  opacity:.24;
  background:linear-gradient(112deg,transparent 0 44%,rgba(210,169,255,.035) 48%,transparent 53% 100%);
  mix-blend-mode:screen;
}
.live-foundry-canvas-shell::after {
  content:'';
  position:absolute;
  inset:0;
  z-index:3;
  pointer-events:none;
  box-shadow:inset 0 0 90px rgba(0,0,0,.48),inset 0 -72px 90px rgba(2,4,9,.5),inset 0 1px rgba(255,255,255,.025);
}
.live-foundry-canvas { position:relative;z-index:1;display:block;width:100%;max-width:none;cursor:default;touch-action:manipulation;image-rendering:auto; }
.live-foundry-host.editing .live-foundry-canvas { cursor:grab;touch-action:none; }
.live-foundry-host.editing .live-foundry-canvas:active { cursor:grabbing; }
.live-foundry-scene-title {
  position:absolute;
  z-index:5;
  top:52px;
  left:18px;
  display:grid;
  gap:1px;
  padding:9px 11px 8px;
  pointer-events:none;
  color:#eee6f4;
  background:linear-gradient(135deg,rgba(7,10,17,.82),rgba(29,15,40,.72));
  border:1px solid rgba(208,166,241,.18);
  border-radius:8px;
  box-shadow:0 12px 34px rgba(0,0,0,.28);
  backdrop-filter:blur(13px);
}
.live-foundry-scene-title span,.live-foundry-scene-title small { color:#a982c1;font-size:6px;font-weight:850;letter-spacing:.13em; }
.live-foundry-scene-title strong { font-size:10px;letter-spacing:.055em; }
.live-foundry-scene-title small { color:#6fcdbb; }
.live-foundry-hud { position:absolute;z-index:6;left:14px;right:14px;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;pointer-events:none; }
.live-foundry-hud-top { top:12px; }
.live-foundry-live,.live-foundry-controls { display:flex;align-items:center;gap:7px; }
.live-foundry-live {
  display:grid;
  grid-template-columns:auto auto;
  gap:1px 7px;
  max-width:min(390px,54vw);
  padding:7px 10px;
  color:#d2c9d8;
  background:rgba(6,9,15,.81);
  border:1px solid rgba(192,132,252,.2);
  border-radius:9px;
  box-shadow:0 12px 32px rgba(0,0,0,.31);
  backdrop-filter:blur(13px);
  font-size:7px;
  font-weight:780;
  letter-spacing:.045em;
  text-transform:uppercase;
}
.live-foundry-live i { grid-row:1 / 3;align-self:center;width:7px;height:7px;background:#60d69f;border-radius:50%;box-shadow:0 0 0 4px rgba(96,214,159,.08),0 0 15px rgba(96,214,159,.46);animation:foundry-live-pulse 1.7s ease-in-out infinite; }
.live-foundry-live b { overflow:hidden;max-width:330px;color:#7e7685;font-size:6.3px;font-weight:650;letter-spacing:.025em;text-overflow:ellipsis;text-transform:none;white-space:nowrap; }
@keyframes foundry-live-pulse { 50% { opacity:.55;transform:scale(.82); } }
.live-foundry-controls { pointer-events:auto;flex-wrap:wrap;justify-content:flex-end; }
.live-foundry-controls button,.live-foundry-editbar button {
  min-height:29px;
  padding:6px 9px;
  color:#c2b8c9;
  background:rgba(6,9,15,.84);
  border:1px solid rgba(192,132,252,.19);
  border-radius:7px;
  font-size:7px;
  font-weight:760;
  letter-spacing:.025em;
  transition:color .18s,border-color .18s,background .18s,transform .18s;
  backdrop-filter:blur(12px);
}
.live-foundry-controls button:hover,.live-foundry-editbar button:hover { color:#f4eafa;border-color:rgba(216,180,254,.46);background:rgba(65,30,91,.63);transform:translateY(-1px); }
.live-foundry-editbar {
  position:absolute;
  z-index:8;
  top:58px;
  left:50%;
  width:min(690px,calc(100% - 28px));
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  gap:7px;
  padding:8px;
  color:#cdc3d2;
  background:rgba(12,11,19,.96);
  border:1px solid rgba(216,180,254,.32);
  border-radius:9px;
  box-shadow:0 18px 48px rgba(0,0,0,.42);
}
.live-foundry-editbar[hidden] { display:none; }
.live-foundry-editbar span { min-width:0;flex:1;font-size:7px; }
.live-foundry-editbar button.primary { color:#fff;background:#7e22ce;border-color:#a855f7; }
.live-foundry-detail {
  position:absolute;
  z-index:6;
  left:14px;
  bottom:13px;
  width:min(500px,calc(100% - 28px));
  min-height:69px;
  padding:11px 13px;
  color:#ebe4ef;
  background:linear-gradient(135deg,rgba(7,10,17,.94),rgba(25,13,34,.92));
  border:1px solid rgba(192,132,252,.23);
  border-radius:10px;
  box-shadow:0 15px 40px rgba(0,0,0,.38);
  backdrop-filter:blur(16px);
}
.live-foundry-detail > div:first-child { display:flex;align-items:baseline;justify-content:space-between;gap:12px; }
.live-foundry-detail > div:first-child span { color:#ba8bd9;font-size:6.5px;font-weight:820;letter-spacing:.075em;text-transform:uppercase; }
.live-foundry-detail > div:first-child strong { overflow:hidden;font-size:9px;text-overflow:ellipsis;white-space:nowrap; }
.live-foundry-detail p { margin:6px 0 0;color:#9a91a1;font-size:7px;line-height:1.5; }
.live-foundry-detail-foot { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:7px;padding-top:6px;border-top:1px solid rgba(192,132,252,.11); }
.live-foundry-detail-foot span { color:#756d7d;font-size:6.5px; }
.live-foundry-detail-foot b { color:#d6adf2;font-size:8px; }
.live-foundry-map-key {
  position:absolute;
  z-index:6;
  right:14px;
  bottom:14px;
  display:flex;
  gap:10px;
  padding:8px 10px;
  color:#928a99;
  background:rgba(6,9,15,.76);
  border:1px solid rgba(160,127,181,.16);
  border-radius:8px;
  backdrop-filter:blur(12px);
  font-size:6.5px;
  font-weight:720;
}
.live-foundry-map-key span { display:flex;align-items:center;gap:5px; }
.live-foundry-map-key i { width:6px;height:6px;border-radius:50%; }
.live-foundry-map-key i.running { background:#b56be2;box-shadow:0 0 9px rgba(181,107,226,.65); }
.live-foundry-map-key i.queued { background:#d3aa5e;box-shadow:0 0 9px rgba(211,170,94,.5); }
.live-foundry-map-key i.complete { background:#6dd4a2;box-shadow:0 0 9px rgba(109,212,162,.5); }
.live-foundry-card:fullscreen { width:100vw;height:100vh;border:0;border-radius:0;background:#05080e; }
.live-foundry-card:fullscreen .live-foundry-card-head { display:none; }
.live-foundry-card:fullscreen .live-foundry-host,.live-foundry-card:fullscreen .live-foundry-canvas-shell { height:100vh;min-height:100vh; }
.live-foundry-card:fullscreen .live-foundry-canvas { height:100vh !important;object-fit:cover; }
.live-foundry-stats { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px; }
.live-foundry-stat { position:relative;overflow:hidden;display:grid;align-content:center;min-height:94px;gap:4px;padding:15px;background:linear-gradient(145deg,rgba(14,20,31,.97),rgba(8,12,19,.97));border:1px solid #293242;border-radius:11px; }
.live-foundry-stat::after { content:'';position:absolute;width:80px;height:80px;right:-25px;bottom:-34px;background:radial-gradient(circle,rgba(168,85,247,.13),transparent 69%); }
.live-foundry-stat span { color:#8d8395;font-size:7px;font-weight:780;letter-spacing:.08em;text-transform:uppercase; }
.live-foundry-stat strong { color:#fff;font-size:25px;line-height:1; }
.live-foundry-stat small { color:#696273;font-size:6.5px; }
.foundry-ground-grid { display:grid;grid-template-columns:minmax(0,1.12fr) minmax(340px,.88fr);gap:14px;align-items:start; }
.foundry-job-list,.foundry-activity-list { display:grid;gap:8px;max-height:620px;overflow:auto;padding-right:3px; }
.foundry-job-card { display:grid;gap:8px;padding:12px;color:inherit;text-decoration:none;background:linear-gradient(135deg,#0d131d,#090d14);border:1px solid #29313e;border-radius:9px;transition:border-color .18s,background .18s,transform .18s; }
.foundry-job-card:hover { border-color:#653c7e;background:linear-gradient(135deg,#121925,#110d18);transform:translateY(-1px); }
.foundry-job-card.failed { border-color:rgba(225,119,130,.36); }
.foundry-job-card-head,.foundry-job-meta { display:flex;align-items:center;justify-content:space-between;gap:12px; }
.foundry-job-card-head > div { min-width:0; }
.foundry-job-card-head .mono { color:#a878c7;font-size:6.5px; }
.foundry-job-card h3 { overflow:hidden;margin:2px 0 0;color:#ece7ef;font-size:10px;text-overflow:ellipsis;white-space:nowrap; }
.foundry-job-card p { display:-webkit-box;margin:0;overflow:hidden;color:#8a8290;font-size:7px;line-height:1.5;-webkit-box-orient:vertical;-webkit-line-clamp:2; }
.foundry-job-meta span { color:#9c75b7;font-size:7px; }
.foundry-job-meta strong { color:#d3c7da;font-size:7px; }
.foundry-activity-row { display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:9px;align-items:start;padding:9px 10px;background:#0b1018;border:1px solid #252d39;border-radius:8px; }
.foundry-activity-mark { width:7px;height:7px;margin-top:4px;background:#8f65aa;border-radius:50%;box-shadow:0 0 0 4px rgba(143,101,170,.08); }
.foundry-activity-mark.error { background:var(--red);box-shadow:0 0 0 4px rgba(225,119,130,.08); }
.foundry-activity-mark.warning { background:#dca15c;box-shadow:0 0 0 4px rgba(220,161,92,.08); }
.foundry-activity-row > div { min-width:0;display:grid;gap:3px; }
.foundry-activity-row strong { color:#d9d2de;font-size:7.5px;text-transform:capitalize; }
.foundry-activity-row small { overflow:hidden;color:#77707e;font-size:6.5px;line-height:1.45;text-overflow:ellipsis;white-space:nowrap; }
.foundry-activity-row time { color:#635d69;font-size:6px;white-space:nowrap; }
.onimind-about-card { display:flex;align-items:center;justify-content:space-between;gap:18px; }
.onimind-about-card > div { display:flex;align-items:center;gap:14px; }
.onimind-about-card img { width:48px;filter:drop-shadow(0 8px 20px rgba(168,85,247,.18)); }
.onimind-about-card h2 { margin:2px 0 4px; }
.onimind-about-card p { margin:0;color:#827a8a;font-size:7px; }

@media (max-width:1100px) { .foundry-ground-grid { grid-template-columns:1fr; } }
@media (max-width:820px) {
  .live-foundry-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .live-foundry-card-head { align-items:flex-start; }
  .live-foundry-card-state { min-width:0; }
  .live-foundry-map-key { display:none; }
}
@media (max-width:680px) {
  .live-foundry-card-head { display:grid;grid-template-columns:1fr;gap:10px;padding:15px; }
  .live-foundry-card-state { grid-template-columns:auto minmax(0,1fr); }
  .live-foundry-host,.live-foundry-card.compact .live-foundry-host { min-height:380px; }
  .live-foundry-hud { left:9px;right:9px;align-items:flex-start; }
  .live-foundry-live { max-width:152px; }
  .live-foundry-live b { max-width:120px; }
  .live-foundry-controls { max-width:190px; }
  .live-foundry-controls button { min-height:27px;padding:5px 7px; }
  .live-foundry-controls button[data-foundry-control="quality"] { display:none; }
  .live-foundry-scene-title { top:79px;left:9px;padding:7px 9px; }
  .live-foundry-detail { left:9px;bottom:9px;width:calc(100% - 18px); }
  .live-foundry-detail > div:first-child { align-items:flex-start;flex-direction:column;gap:3px; }
  .live-foundry-editbar { top:108px;align-items:stretch;flex-wrap:wrap; }
  .live-foundry-editbar span { flex-basis:100%; }
  .live-foundry-editbar button { flex:1; }
  .live-foundry-stats { grid-template-columns:1fr 1fr; }
  .live-foundry-stat { min-height:84px; }
  .foundry-job-list,.foundry-activity-list { max-height:none; }
  .foundry-activity-row small { white-space:normal; }
  .onimind-about-card { align-items:flex-start;flex-direction:column; }
  .onimind-about-card .btn { width:100%; }
}
@media (max-width:430px) {
  .live-foundry-scene-title { display:none; }
  .live-foundry-live { max-width:130px; }
  .live-foundry-controls { gap:4px; }
  .live-foundry-controls button { font-size:6.4px; }
}
@media (prefers-reduced-motion:reduce) {
  .live-foundry-live i { animation:none; }
  .live-foundry-card *,.foundry-job-card { scroll-behavior:auto !important;transition-duration:.01ms !important; }
}

/* OniMind 1.8 tenant workspaces, personal GitHub, and mutual hidden Vault memory */
.personal-github-card {
  position:relative;
  overflow:hidden;
  margin-top:14px;
  background:
    radial-gradient(circle at 100% 0,rgba(168,85,247,.13),transparent 38%),
    linear-gradient(145deg,rgba(15,20,31,.98),rgba(8,12,19,.98));
  border-color:rgba(168,85,247,.28);
}
.personal-github-card::before {
  content:'';
  position:absolute;
  inset:0 auto 0 0;
  width:3px;
  background:linear-gradient(180deg,#d8b4fe,#9333ea 58%,transparent);
  box-shadow:0 0 18px rgba(168,85,247,.42);
}
.personal-account {
  display:flex;
  align-items:center;
  gap:13px;
  margin:14px 0 17px;
  padding:12px;
  background:rgba(5,9,15,.54);
  border:1px solid rgba(183,128,221,.17);
  border-radius:10px;
}
.personal-account img {
  width:46px;
  height:46px;
  flex:0 0 46px;
  object-fit:cover;
  border:1px solid rgba(216,180,254,.35);
  border-radius:10px;
  box-shadow:0 7px 22px rgba(0,0,0,.35);
}
.personal-account > div { display:grid;gap:2px;min-width:0; }
.personal-account strong { overflow:hidden;color:#f3edf7;font-size:10px;text-overflow:ellipsis;white-space:nowrap; }
.personal-account span { color:#b99acb;font-size:7.5px; }
.personal-account small { color:#746d7b;font-size:6.5px; }
.personal-vault-state {
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:11px;
  align-items:center;
  padding:11px 12px;
  background:linear-gradient(135deg,rgba(69,35,91,.18),rgba(7,12,19,.55));
  border:1px solid rgba(192,132,252,.18);
  border-radius:9px;
}
.personal-vault-state > div { display:grid;gap:3px; }
.personal-vault-state strong { color:#e7d8ef;font-size:8px; }
.personal-vault-state small { color:#817589;font-size:6.5px; }
.tenant-vault-hero {
  border-color:rgba(192,132,252,.25);
  background:
    radial-gradient(circle at 88% 20%,rgba(168,85,247,.17),transparent 30%),
    linear-gradient(135deg,#111722,#0b1019 58%,#130d19);
}
.tenant-memory-shield {
  margin:12px 0 14px;
  border-color:rgba(141,211,174,.22);
  background:linear-gradient(135deg,rgba(29,77,59,.15),rgba(8,13,20,.92));
}
.tenant-memory-shield .privacy-shield-icon {
  color:#93e0b8;
  background:rgba(42,124,88,.13);
  border-color:rgba(94,211,153,.2);
}
.source-badge.visibility-private {
  color:#f4c8d0;
  background:rgba(165,69,88,.16);
  border-color:rgba(225,119,130,.28);
}
.source-badge.visibility-shared_hidden {
  color:#d8b4fe;
  background:rgba(126,34,206,.17);
  border-color:rgba(192,132,252,.28);
}
.source-badge.visibility-shared_visible {
  color:#b8e8cc;
  background:rgba(35,123,79,.17);
  border-color:rgba(109,212,162,.27);
}
.source-badge.visibility-system {
  color:#b8c8e5;
  background:rgba(67,93,137,.18);
  border-color:rgba(122,151,201,.25);
}
.source-badge.shared {
  color:#e5c987;
  background:rgba(163,116,35,.15);
  border-color:rgba(221,177,86,.26);
}
.source-repository-card.shared-repository {
  border-color:rgba(221,177,86,.22);
  background:
    radial-gradient(circle at 100% 0,rgba(218,173,82,.08),transparent 34%),
    linear-gradient(145deg,#0d131c,#090d14);
}
.source-repository-card.personal-repository {
  border-color:rgba(192,132,252,.23);
  background:
    radial-gradient(circle at 100% 0,rgba(168,85,247,.1),transparent 34%),
    linear-gradient(145deg,#0d131c,#0d0a13);
}
.vault-source-card[data-vault-source-id^="vault-user-github-"] {
  border-color:rgba(192,132,252,.24);
}
.vault-source-card[data-vault-source-id^="vault-user-github-"] .vault-source-icon {
  color:#d8b4fe;
  background:rgba(126,34,206,.15);
  border-color:rgba(192,132,252,.22);
}

@media (max-width:680px) {
  .personal-account { align-items:flex-start; }
  .personal-github-card .artifact-actions { display:grid;grid-template-columns:1fr; }
  .personal-github-card .artifact-actions .btn { width:100%; }
  .personal-vault-state { grid-template-columns:1fr; }
  .tenant-memory-shield { align-items:flex-start; }
}
