/* ═══════════════════════════════════════════════════════════
   GREENLIGHT DEMO STYLES
   ═══════════════════════════════════════════════════════════ */

/* ── Base ────────────────────────────────────────────────── */
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.55; overflow-x: hidden; min-height: 100vh; }

nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px,4vw,48px); height: 60px;
  background: rgba(10,11,15,0.88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-brand { display: flex; align-items: center; gap: 9px; }
.nav-brand img { height: 18px; filter: brightness(0) invert(1); opacity: 0.9; }
.nav-name { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; }
.nav-by { font-family: var(--mono); font-size: 10px; color: var(--text3); letter-spacing: 0.06em; }
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 18px; border-radius: var(--r); font-size: 13.5px; font-weight: 600; cursor: pointer; border: none; transition: all .15s; text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #2f5ee0; }
.btn-ghost { background: transparent; color: var(--text2); border: 1px solid var(--border2); }
.btn-ghost:hover { color: var(--text); border-color: var(--border3); }

/* ── Intro screen ────────────────────────────────────────── */
#demo-intro {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: calc(100vh - 60px); text-align: center; padding: 60px 24px;
  position: relative;
}
#demo-intro::before {
  content: ''; position: absolute; top: 10%; left: 50%; transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse at center, rgba(59,110,245,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.intro-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(59,110,245,0.08); border: 1px solid rgba(59,110,245,0.22);
  border-radius: 999px; padding: 4px 14px 4px 8px;
  font-family: var(--mono); font-size: 11px; color: var(--blue2); margin-bottom: 28px;
}
.intro-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue2);
  box-shadow: 0 0 0 4px rgba(59,110,245,0.15); flex-shrink: 0; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{box-shadow:0 0 0 4px rgba(59,110,245,0.15)} 50%{box-shadow:0 0 0 6px rgba(59,110,245,0.05)} }
#demo-intro h1 { font-size: clamp(38px,5vw,62px); font-weight: 800; letter-spacing: -2px; line-height: 1.05; margin-bottom: 20px; }
#demo-intro h1 em { font-style: normal; color: var(--blue2); }
#demo-intro p { font-size: 17px; color: var(--text2); max-width: 580px; margin-bottom: 40px; line-height: 1.65; }
.start-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--blue); color: #fff; border: none; border-radius: 8px;
  padding: 14px 32px; font-size: 15px; font-weight: 700; cursor: pointer;
  box-shadow: 0 0 40px rgba(59,110,245,0.35); transition: all .2s;
}
.start-btn:hover { background: #2f5ee0; box-shadow: 0 0 60px rgba(59,110,245,0.45); transform: translateY(-1px); }
.start-btn svg { width: 18px; height: 18px; }
.intro-steps { display: flex; gap: 28px; margin-top: 56px; flex-wrap: wrap; justify-content: center; max-width: 720px; }
.intro-step { display: flex; align-items: center; gap: 10px; color: var(--text3); font-size: 13px; }
.intro-step .num { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11px; color: var(--text2); flex-shrink: 0; }

/* ── Stage layout ────────────────────────────────────────── */
#demo-stage { display: none; position: relative; flex-direction: column; height: calc(100vh - 60px); overflow: hidden; }
#demo-stage.active { display: flex; }

.progress-bar-wrap { height: 2px; background: var(--bg2); flex-shrink: 0; position: relative; overflow: hidden; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--blue), var(--blue2)); width: 0%; transition: width 0.6s var(--ease); }

.phase-indicator {
  display: flex; align-items: center; gap: 0;
  padding: 0 clamp(20px,3vw,40px); background: var(--bg1); border-bottom: 1px solid var(--border); flex-shrink: 0; overflow-x: auto;
  scrollbar-width: none;
}
.phase-indicator::-webkit-scrollbar { display: none; }
.phase-step { display: flex; align-items: center; flex-shrink: 0; }
.phase-step-label {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 12px; font-size: 11.5px; color: var(--text3); font-weight: 500; white-space: nowrap;
  transition: color .3s;
  cursor: pointer; border-radius: 8px;
}
.phase-step-label:hover { background: rgba(255,255,255,0.04); color: var(--text2); }
.phase-step-label .ps-num {
  width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10px; flex-shrink: 0; transition: all .3s;
}
.phase-step.active .phase-step-label { color: var(--text); }
.phase-step.active .ps-num { background: var(--blue); border-color: var(--blue); color: #fff; }

.demo-audio-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 16px;
  border: 2px solid rgba(146,176,255,0.95); border-radius: 999px;
  background: #3b6ef5; color: #fff;
  font-size: 13px; font-weight: 900; cursor: pointer;
  box-shadow: 0 0 0 4px rgba(59,110,245,0.22), 0 12px 38px rgba(59,110,245,0.48);
  transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.demo-audio-btn:hover { background: #2f5ee0; border-color: #fff; transform: translateY(-1px); }
.demo-audio-btn .audio-icon { width: 20px; height: 20px; flex-shrink: 0; }
.demo-audio-btn .audio-icon-on { display: none; }
.demo-audio-btn.on { background: rgba(34,197,94,0.22); border-color: rgba(74,222,128,0.88); box-shadow: 0 0 0 1px rgba(34,197,94,0.18), 0 8px 28px rgba(34,197,94,0.18); }
.demo-audio-btn.on .audio-icon-muted { display: none; }
.demo-audio-btn.on .audio-icon-on { display: block; }
.demo-audio-btn.muted {
  animation: audio-callout 1.15s ease-in-out infinite;
}
@keyframes audio-callout {
  0%, 100% { box-shadow: 0 0 0 4px rgba(59,110,245,0.22), 0 12px 38px rgba(59,110,245,0.48); transform: scale(1); }
  50% { box-shadow: 0 0 0 13px rgba(59,110,245,0.2), 0 18px 52px rgba(59,110,245,0.62); transform: scale(1.04); }
}
.phase-step.done .phase-step-label { color: var(--green); }
.phase-step.done .ps-num { background: rgba(34,197,94,0.15); border-color: rgba(34,197,94,0.3); color: var(--green); }
.phase-sep { color: var(--border2); font-size: 12px; padding: 0 2px; }

.mobile-pane-switcher { display: none; }

.stage-header { display: none; }
.restart-btn { display: flex; align-items: center; gap: 6px; background: transparent; border: 1px solid var(--border2); color: var(--text3); border-radius: 4px; padding: 4px 10px; font-size: 12px; cursor: pointer; font-family: var(--mono); transition: all .15s; }
.restart-btn:hover { color: var(--text); border-color: var(--border3); }

.split-pane {
  position: relative;
  display: grid; grid-template-columns: 1fr 8px 1fr;
  flex: 1; min-height: 0; overflow: hidden;
}
@media(max-width:900px){ .split-pane{ grid-template-columns:1fr; } }

.demo-playback-controls {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  z-index: 998; display: flex; align-items: center; gap: 8px;
  padding: 7px; border-radius: 999px;
  background: rgba(17,24,39,0.86); border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 16px 40px rgba(0,0,0,0.28); backdrop-filter: blur(10px);
}
.demo-playback-btn {
  border: 0; border-radius: 999px; padding: 6px 13px;
  background: #fff; color: #111827; font-size: 11.5px; font-weight: 800;
  cursor: pointer;
}
.demo-playback-btn.secondary {
  background: rgba(255,255,255,0.08); color: #dbe4f0; border: 1px solid rgba(255,255,255,0.1);
}
.demo-playback-label {
  color: #9ca3af; font-family: var(--mono); font-size: 10px; padding-right: 7px;
  text-transform: uppercase; letter-spacing: .04em;
}

/* macOS-style resize divider between the two panes */
.pane-divider {
  background: #0b0b0b;
  border-left: 1px solid #000; border-right: 1px solid #1e1e1e;
  display: flex; align-items: center; justify-content: center;
  cursor: col-resize; flex-shrink: 0; z-index: 10;
}
.pane-divider-grip {
  width: 3px; height: 36px; border-radius: 2px;
  background: rgba(255,255,255,0.1);
}

/* ═══════════════════════════════════════════════════════════
   CLAUDE PANE (left)
   ═══════════════════════════════════════════════════════════ */
.claude-pane {
  display: flex; flex-direction: column; overflow: hidden;
  background: #1f1e1d;
}

/* Title bar */
.claude-titlebar {
  height: 40px; flex-shrink: 0;
  background: #161412;
  display: flex; align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
}
.claude-titlebar-name {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; color: #5a5450;
  pointer-events: none; white-space: nowrap;
}
.claude-pane-body { display: flex; flex: 1; overflow: hidden; min-height: 0; }

/* Collapsed icon-only sidebar */
.claude-sidebar {
  width: 52px; flex-shrink: 0;
  background: #181715; border-right: 1px solid rgba(255,255,255,0.04);
  display: flex; flex-direction: column; align-items: center;
  padding: 10px 6px; gap: 4px;
}
.claude-sidebar-top { display: none; }
.claude-sidebar-icon-btn {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  color: #8a8278; cursor: pointer; border-radius: 7px; flex-shrink: 0;
}
.claude-sidebar-icon-btn:hover { background: rgba(255,255,255,0.06); }
.claude-sidebar-sep {
  width: 28px; height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 4px 0; flex-shrink: 0;
}
.claude-sidebar-section { display: none; }
.sidebar-convo {
  width: 34px; height: 34px; border-radius: 7px; cursor: default;
  display: flex; align-items: center; justify-content: center;
  color: #6b6560; flex-shrink: 0;
}
.sidebar-convo.active { background: rgba(255,255,255,0.08); color: #c8c1b9; }

/* Main chat */
.claude-chat { position: relative; flex: 1; display: flex; flex-direction: column; overflow: hidden; background: #1f1e1d; min-width: 0; }

/* MCP installed toast */
.claude-toast {
  position: absolute; top: 50px; left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.3);
  color: #4ade80; padding: 7px 16px; border-radius: 8px;
  font-size: 12px; font-family: var(--mono); white-space: nowrap;
  opacity: 0; transition: opacity .35s, transform .35s; z-index: 50;
  pointer-events: none;
}
.claude-toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.claude-chat-header {
  padding: 10px 20px; border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
  height: 44px;
}
.chat-project-pill {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: #c8c1b9; font-weight: 500;
}
.chat-project-pill svg { width: 14px; height: 14px; opacity: 0.6; }
.chat-share-btn {
  font-size: 12px; padding: 5px 12px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12); color: #c8c1b9;
  background: transparent; cursor: pointer;
}

.claude-messages {
  flex: 1; overflow-y: auto; padding: 24px 28px 12px;
  display: flex; flex-direction: column; gap: 18px;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.claude-messages::-webkit-scrollbar { width: 4px; }
.claude-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

/* User message */
.msg-user { display: flex; justify-content: flex-end; animation: msgFadeIn .3s ease; }
.user-bubble {
  background: #3a2c1c;
  color: #e8d8c4;
  border-radius: 18px;
  padding: 11px 16px; font-size: 14px; line-height: 1.55;
  max-width: 78%;
}
@keyframes msgFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Claude message */
.msg-claude { display: flex; gap: 12px; align-items: flex-start; animation: msgFadeIn .3s ease; }
.claude-icon {
  width: 26px; height: 26px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.claude-icon img { width: 22px; height: 22px; }
.claude-text { flex: 1; font-size: 14px; line-height: 1.65; color: #d4cfc9; min-width: 0; padding-top: 2px; }
.claude-text p { margin-bottom: 6px; }
.claude-text p:last-child { margin-bottom: 0; }
.claude-cursor {
  display: inline-block; width: 3px; height: 14px;
  background: #d4cfc9; vertical-align: text-bottom; margin-left: 1px;
  animation: blink .85s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* MCP tool call card inside claude message */
.mcp-call {
  margin: 8px 0; padding: 10px 12px;
  background: #161514; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px; font-size: 12.5px;
  display: flex; align-items: center; gap: 10px;
}
.mcp-call-icon { width: 20px; height: 20px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.mcp-call-icon img { width: 16px; height: 16px; filter: brightness(0) invert(1); opacity: 0.8; }
.mcp-call-label { color: #a8a098; font-family: var(--mono); font-size: 11.5px; flex: 1; }
.mcp-call-label .mcp-method { color: #d4cfc9; }
.mcp-call-status { font-family: var(--mono); font-size: 10.5px; }
.mcp-call.pending .mcp-call-status { color: #f59e0b; }
.mcp-call.ok .mcp-call-status { color: #4ade80; }
.mcp-call.err .mcp-call-status { color: #f87171; }
.mcp-call.pending .mcp-call-icon img { animation: pulseO 1.2s ease-in-out infinite; }
@keyframes pulseO { 0%,100%{opacity:0.4} 50%{opacity:1} }

/* Code block in claude message */
.claude-code {
  background: #141312; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px; padding: 10px 12px; margin: 8px 0;
  font-family: var(--mono); font-size: 11.5px; color: #b8bcd0;
  line-height: 1.7; overflow-x: auto;
}
.claude-code .add { color: #4ade80; display: block; }
.claude-code .del { color: #f87171; display: block; }
.claude-code .dim { color: #5e6378; display: block; }
.claude-code .ln  { display: block; color: #b8bcd0; }

/* Status line */
.claude-status-line {
  display: flex; align-items: center; gap: 6px; margin: 4px 0;
  font-family: var(--mono); font-size: 12px;
}
.cs-ok { color: #4ade80; }
.cs-err { color: #f87171; }
.cs-info { color: #6490ff; }
.cs-dim { color: #6b6560; }

/* Input box */
.claude-input-wrap {
  padding: 14px 28px 20px; flex-shrink: 0;
  background: #1f1e1d;
}
.claude-input-box {
  background: #2a2826; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; padding: 14px 14px 10px;
}
.claude-input-text {
  font-size: 14px; color: rgba(255,255,255,0.88); min-height: 22px; padding: 2px 4px;
}
.claude-input-actions {
  display: flex; align-items: center; justify-content: space-between; margin-top: 6px;
}
.claude-input-left { display: flex; align-items: center; gap: 6px; }
.claude-btn-circle {
  width: 28px; height: 28px; border-radius: 50%;
  background: transparent; border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: #8a8278; font-size: 16px; cursor: pointer;
}
.claude-input-right { display: flex; align-items: center; gap: 10px; }
.claude-model-chip {
  font-size: 12px; color: #8a8278;
  display: flex; align-items: center; gap: 4px; padding: 4px 6px;
}
.claude-model-chip .adaptive { color: #6b6560; }
.claude-mic-btn { color: #8a8278; padding: 4px; }

/* ═══════════════════════════════════════════════════════════
   GREENLIGHT BROWSER (right)
   ═══════════════════════════════════════════════════════════ */
.browser-pane {
  display: flex; flex-direction: column; overflow: hidden;
  background: #1a1a1a;
}

.browser-chrome { background: #2a2a2a; flex-shrink: 0; }
.browser-tab-bar {
  display: flex; align-items: center; padding: 8px 12px 0; gap: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.browser-traffic { display: flex; gap: 6px; margin-right: 8px; }
.browser-traffic .tl { width: 12px; height: 12px; border-radius: 50%; }
.tl-red { background: #ff5f57; } .tl-amb { background: #febc2e; } .tl-grn { background: #28c840; }
.browser-tab {
  background: rgba(0,0,0,0.3); border-radius: 8px 8px 0 0;
  padding: 6px 12px 6px 10px; font-size: 12px; color: #9a9a9a;
  display: flex; align-items: center; gap: 6px;
  border: 1px solid rgba(255,255,255,0.05); border-bottom: none;
  max-width: 200px; min-width: 120px;
}
.browser-tab.active { background: #1a1a1a; color: #e8e1d9; }
.browser-tab img { width: 13px; height: 13px; flex-shrink: 0; }
.browser-tab-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser-tab-close { color: #6b6560; cursor: pointer; margin-left: 2px; }

.browser-toolbar {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px;
  background: #2a2a2a;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.browser-nav-btns { display: flex; gap: 2px; }
.browser-btn {
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: #8a8278; cursor: pointer;
}
.browser-btn:hover { background: rgba(255,255,255,0.06); color: #e8e1d9; }
.browser-url-bar {
  flex: 1; background: #1a1a1a; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px; padding: 6px 12px; font-size: 12.5px;
  color: #c8c1b9; display: flex; align-items: center; gap: 8px;
  font-family: var(--font);
}
.url-lock { color: #6b6560; font-size: 11px; }
.url-text { font-family: var(--mono); font-size: 11.5px; }
.url-host { color: #c8c1b9; }
.url-path { color: #8a8278; }
.browser-ext-btns { display: flex; gap: 2px; }

/* Browser viewport */
.browser-viewport {
  flex: 1; overflow-y: auto; background: #fafaf7;
  scrollbar-width: thin; scrollbar-color: rgba(0,0,0,0.15) transparent;
  position: relative;
}
.browser-viewport::-webkit-scrollbar { width: 6px; }
.browser-viewport::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }

/* ── Greenlight app shell (inside browser) ──────────────── */
.gl-app {
  min-height: 100%; display: flex;
  background: #fafaf7; color: #1a1d27;
  font-family: var(--font);
}

.gl-sidebar {
  width: 188px; flex-shrink: 0;
  background: #fff; border-right: 1px solid #e8e6e0;
  padding: 12px 8px; display: flex; flex-direction: column;
}
.gl-brand { display: flex; align-items: center; gap: 9px; padding: 6px 10px 18px; }
.gl-brand img { height: 18px; }
.gl-brand-name { font-size: 17px; font-weight: 800; letter-spacing: -0.4px; color: #1a1d27; }
.gl-brand-by { font-family: var(--mono); font-size: 9px; color: #8a8a8a; letter-spacing: .06em; }
.gl-nav-section {
  font-size: 10px; font-weight: 600; color: #8a8a8a;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 12px 10px 4px;
}
.gl-nav-section-admin { margin-top: 8px; border-top: 1px solid #f0eee8; padding-top: 14px; }
.gl-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 6px; cursor: default;
  font-size: 12.5px; color: #4a4f5e;
  margin-bottom: 1px;
}
.gl-nav-item.active { background: rgba(59,110,245,0.08); color: #3b6ef5; font-weight: 600; }
.gl-nav-icon { width: 16px; height: 16px; opacity: 0.75; display: flex; align-items: center; justify-content: center; }
.gl-nav-item.active .gl-nav-icon { opacity: 1; }

.gl-main { flex: 1; padding: 24px 32px; min-width: 0; overflow-y: auto; -webkit-font-smoothing: antialiased; font-family: 'Inter', -apple-system, sans-serif; }
.gl-page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.gl-page-title { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; }
.gl-page-sub { font-size: 13px; color: #6b6f7d; margin-top: 2px; }
.gl-toggle-wrap { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #e0ddd5; border-radius: 8px; padding: 3px; }
.gl-toggle-btn {
  font-size: 12px; padding: 5px 12px; border-radius: 5px;
  cursor: pointer; color: #6b6f7d; font-weight: 500;
  display: flex; align-items: center; gap: 5px;
}
.gl-toggle-btn.active { background: #1a1d27; color: #fff; }

/* ── Setup / MCP install page ───────────────────────────── */
.gl-setup-hero {
  background: linear-gradient(135deg, #f0f5ff 0%, #fff 100%);
  border: 1px solid #e0e8f5; border-radius: 12px;
  padding: 28px; margin-bottom: 24px;
}
.gl-setup-hero h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.5px; }
.gl-setup-hero p { font-size: 13.5px; color: #5a5e6c; line-height: 1.55; max-width: 560px; }

.bundle-card {
  background: #fff; border: 1px solid #e0ddd5; border-radius: 12px;
  padding: 20px; display: flex; align-items: center; gap: 18px;
}
.bundle-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: #fff; border: 1px solid #dde3f0;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.bundle-icon img { width: 28px; height: 28px; }
.bundle-icon .chevron-blue { width: 28px; height: 28px; filter: invert(33%) sepia(98%) saturate(1400%) hue-rotate(213deg) brightness(105%) contrast(95%); }
.bundle-cards { display: flex; flex-direction: column; gap: 10px; }
.bundle-card { margin-bottom: 0; }
.bundle-info { flex: 1; }
.bundle-name { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.bundle-desc { font-size: 12.5px; color: #6b6f7d; line-height: 1.5; margin-bottom: 8px; }
.bundle-meta { display: flex; gap: 14px; font-size: 11px; color: #8a8a8a; font-family: var(--mono); }
.bundle-install-btn {
  background: #1a1d27; color: #fff;
  padding: 10px 22px; border-radius: 8px; border: none;
  font-size: 13px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; gap: 7px;
  transition: background .15s;
}
.bundle-install-btn:hover { background: #2a2d37; }
.bundle-install-btn.installing { background: #3b6ef5; pointer-events: none; }
.bundle-install-btn.installed { background: #22c55e; }

/* ── My Apps page ───────────────────────────────────────── */
.gl-apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.gl-my-apps-grid { grid-template-columns: minmax(0, 1fr); }
.gl-app-card {
  background: #fff; border: 1px solid #e0ddd5; border-radius: 10px;
  padding: 16px; transition: border-color .2s, transform .3s, opacity .3s;
  opacity: 0; transform: translateY(6px);
}
.gl-app-card.visible { opacity: 1; transform: none; }
.gl-app-card:hover { border-color: #c0bdb5; }
.gl-app-card.new { border-color: #3b6ef5; box-shadow: 0 0 0 3px rgba(59,110,245,0.08); }
.gl-my-app-card { width: 100%; }
.gl-app-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.gl-app-icon-sm {
  width: 38px; height: 38px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.gl-app-icon-sm.blue { background: linear-gradient(135deg, #3b6ef5, #6490ff); color: #fff; }
.gl-app-icon-sm.purple { background: linear-gradient(135deg, #a78bfa, #c084fc); color: #fff; }
.gl-app-icon-sm.green { background: linear-gradient(135deg, #22c55e, #4ade80); color: #fff; }
.gl-app-icon-sm.amber { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #fff; }
.gl-app-icon-sm.pink { background: linear-gradient(135deg, #ec4899, #f472b6); color: #fff; }
.gl-app-name { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.gl-app-author { font-size: 11.5px; color: #8a8a8a; }
.gl-app-desc { font-size: 12px; color: #5a5e6c; line-height: 1.5; margin-bottom: 12px; min-height: 32px; }
.gl-app-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.gl-app-tag {
  font-size: 10px; font-family: var(--mono);
  background: #f4f4f1; color: #6b6f7d; border: 1px solid #e8e6e0;
  border-radius: 4px; padding: 2px 6px;
}
.gl-app-tag.new { background: rgba(59,110,245,0.1); color: #3b6ef5; border-color: rgba(59,110,245,0.2); }
.gl-repo-link {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px;
  margin-top: 9px; padding: 6px 8px; border-radius: 7px;
  background: #f8fafc; border: 1px solid #e5e7eb;
  color: #475569; font-family: var(--mono); font-size: 10px;
}
.gl-repo-icon {
  width: 18px; height: 18px; border-radius: 5px; background: #fff; color: #111827;
  border: 1px solid #e5e7eb;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 800; letter-spacing: -0.04em;
}
.gl-repo-icon img { width: 13px; height: 13px; display: block; }
.gl-repo-main { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #1f2937; }
.gl-repo-meta { color: #94a3b8; white-space: nowrap; }
.gl-app-status-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid #f0eee8;
  font-size: 11px;
}
.gl-app-pill { font-family: var(--mono); padding: 2px 7px; border-radius: 4px; font-size: 10px; }
.gl-app-pill.live { background: rgba(34,197,94,0.1); color: #16a34a; }
.gl-app-pill.building { background: rgba(245,158,11,0.1); color: #b45309; }

/* App detail card permissions */
.gl-perm-card {
  background: #fff; border: 1px solid #e0ddd5; border-radius: 10px;
  padding: 16px; margin-top: 14px; opacity: 0; transition: opacity .4s, max-height .5s;
  max-height: 0; overflow: hidden;
}
.gl-perm-card.visible { opacity: 1; max-height: 400px; padding: 16px; }
.gl-perm-title { font-size: 12px; font-weight: 700; margin-bottom: 12px; color: #4a4f5e; text-transform: uppercase; letter-spacing: .04em; }
.gl-perm-row {
  display: flex; align-items: center; gap: 12px; padding: 8px 0;
  border-bottom: 1px solid #f0eee8; font-size: 13px;
}
.gl-perm-row:last-child { border-bottom: none; }
.gl-perm-icon { width: 24px; height: 24px; flex-shrink: 0; }
.gl-perm-icon img { width: 24px; height: 24px; }
.gl-perm-name { flex: 1; font-weight: 500; color: #1a1d27; }
.gl-perm-status { font-family: var(--mono); font-size: 10.5px; padding: 3px 8px; border-radius: 4px; }
.gl-perm-status.granted { background: rgba(34,197,94,0.1); color: #16a34a; }
.gl-perm-status.pending { background: rgba(245,158,11,0.1); color: #b45309; }
.gl-perm-status.denied { background: rgba(239,68,68,0.1); color: #b91c1c; }

/* ── Pipeline page ──────────────────────────────────────── */
.gl-pipeline-card {
  background: #fff; border: 1px solid #e0ddd5; border-radius: 10px;
  padding: 20px;
}
.pipeline-header { margin-bottom: 16px; }
.pipeline-app { font-size: 16px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 3px; }
.pipeline-meta { font-size: 12px; color: #6b6f7d; }
.pipeline-run-label { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: #8a8a8a; margin-bottom: 12px; margin-top: 8px; }

.check-list { display: flex; flex-direction: column; gap: 8px; }
.check-item {
  display: flex; align-items: flex-start; gap: 12px;
  min-width: 0;
  padding: 12px 14px; border-radius: 8px;
  border: 1px solid #e8e6e0;
  background: #fafaf7; opacity: 0; transform: translateY(6px);
  transition: opacity .3s, transform .3s, border-color .3s, background .3s;
}
.check-item.visible { opacity: 1; transform: none; }
.check-item.running { border-color: #b8d0ff; background: #eff5ff; }
.check-item.passed { border-color: #c4e9d3; background: #f0faf3; }
.check-item.failed { border-color: #f5c4c4; background: #fdf0f0; }
.check-item.skipped { opacity: 0.5; }
.check-icon { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.check-icon.idle { background: #ececec; }
.check-icon.spinning { background: rgba(59,110,245,0.15); }
.check-icon.spinning svg { animation: spin .8s linear infinite; }
.check-icon.ok { background: rgba(34,197,94,0.18); }
.check-icon.fail { background: rgba(239,68,68,0.18); }
@keyframes spin { to { transform: rotate(360deg); } }
.check-content { flex: 1; min-width: 0; overflow: hidden; }
.check-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; color: #1a1d27; }
.check-detail { font-size: 11.5px; color: #6b6f7d; font-family: var(--mono); line-height: 1.5; overflow-wrap: anywhere; }
.check-detail.err { color: #b91c1c; }
.check-detail.ok { color: #16a34a; }
.check-time { font-family: var(--mono); font-size: 10px; color: #8a8a8a; flex-shrink: 0; margin-top: 2px; }

.pipeline-result {
  margin-top: 16px; padding: 12px 14px; border-radius: 8px;
  border: 1px solid #e8e6e0; background: #fff;
  opacity: 0; transition: opacity .4s; font-size: 13px;
  overflow-wrap: anywhere;
}
.pipeline-result.visible { opacity: 1; }
.pipeline-result.fail { border-color: #f5c4c4; background: #fdf0f0; color: #b91c1c; }
.pipeline-result.pass { border-color: #c4e9d3; background: #f0faf3; color: #16a34a; }
.result-icon { font-size: 15px; margin-right: 6px; }

/* ── Provisioning ───────────────────────────────────────── */
.gl-provisioning {
  background: #fff; border: 1px solid #e0ddd5; border-radius: 10px;
  padding: 20px; margin-top: 14px;
}
.prov-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.prov-sub { font-size: 11.5px; color: #8a8a8a; margin-bottom: 16px; font-family: var(--mono); }
.prov-resources { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.prov-resource {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid #e8e6e0; border-radius: 8px; background: #fafaf7;
  font-size: 12px; opacity: 0; transform: translateY(4px); transition: all .4s;
}
.prov-resource.active { opacity: 1; transform: none; border-color: #c4e9d3; background: #f0faf3; }
.prov-resource-icon { width: 28px; height: 28px; border-radius: 6px; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.prov-resource-icon img { width: 18px; height: 18px; }
.prov-resource-name { font-weight: 600; color: #1a1d27; font-size: 12.5px; }
.prov-resource-detail { color: #8a8a8a; font-family: var(--mono); font-size: 10px; }
.prov-status { margin-left: auto; font-size: 10px; font-family: var(--mono); }
.prov-status.provisioning { color: #b45309; }
.prov-status.ready { color: #16a34a; }
.prov-status.queued { color: #aaa; }

/* ── Org Apps view ──────────────────────────────────────── */
.gl-orgapps-toggle { display: flex; gap: 0; }

/* IT view variants for app cards */
.gl-app-card.it-mode .gl-app-it { display: block; }
.gl-app-it { display: none; margin-top: 12px; padding-top: 12px; border-top: 1px solid #f0eee8; }
.gl-app-it-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; font-size: 11.5px; padding: 4px 0; color: #6b6f7d;
}
.gl-app-it-label { font-family: var(--mono); font-size: 10px; color: #8a8a8a; text-transform: uppercase; letter-spacing: .04em; }
.gl-app-it-val { color: #1a1d27; font-weight: 500; text-align: right; }
.gl-app-risk { font-family: var(--mono); padding: 2px 6px; border-radius: 4px; font-size: 9px; }
.gl-risk-low { background: rgba(34,197,94,0.1); color: #16a34a; }
.gl-risk-med { background: rgba(245,158,11,0.1); color: #b45309; }
.gl-risk-high { background: rgba(239,68,68,0.1); color: #b91c1c; }
.gl-team-stack { display: flex; flex-direction: column; gap: 18px; }
.gl-team-section {
  background: rgba(255,255,255,0.55); border: 1px solid #ebe8df;
  border-radius: 14px; padding: 14px;
}
.gl-team-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #f0eee8;
}
.gl-team-title { font-size: 14px; font-weight: 800; color: #1a1d27; letter-spacing: -0.2px; }
.gl-team-sub { font-size: 11px; color: #8a8a8a; margin-top: 1px; }
.gl-team-policy {
  font-family: var(--mono); font-size: 10px; color: #64748b; background: #f8fafc;
  border: 1px solid #e2e8f0; border-radius: 999px; padding: 3px 8px;
}
.gl-team-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.gl-catalog-card .gl-app-card-top > div:last-child { min-width: 0; }
.gl-catalog-card .gl-app-author { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 210px; }
.gl-it-summary {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px;
}
.gl-it-summary div {
  background: #111827; color: #fff; border-radius: 12px; padding: 12px;
  box-shadow: 0 10px 24px rgba(17,24,39,0.12);
}
.gl-it-summary strong { display: block; font-size: 19px; letter-spacing: -0.6px; }
.gl-it-summary span { display: block; color: rgba(255,255,255,0.62); font-size: 10.5px; margin-top: 1px; }
.gl-it-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.gl-it-status {
  font-family: var(--mono); font-size: 9px; text-transform: uppercase;
  color: #475569; background: #f1f5f9; border-radius: 999px; padding: 2px 7px;
}
.gl-it-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px;
}
.gl-it-metrics div {
  background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 7px; padding: 6px;
}
.gl-it-metrics span { display: block; font-family: var(--mono); font-size: 8.5px; color: #94a3b8; text-transform: uppercase; }
.gl-it-metrics strong { display: block; margin-top: 2px; color: #111827; font-size: 10.5px; }
@media(max-width:700px){ .gl-it-summary{ grid-template-columns:1fr 1fr; } }

/* ── Data Sources IT access matrix ─────────────────────── */
.gl-data-mode {
  font-family: var(--mono); font-size: 10px; color: #475569;
  background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 999px; padding: 5px 10px; text-transform: uppercase;
}
.gl-data-summary {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px;
}
.gl-data-summary div {
  background: #fff; border: 1px solid #e8e6e0; border-radius: 12px; padding: 12px;
}
.gl-data-summary strong { display: block; font-size: 20px; color: #111827; letter-spacing: -0.7px; }
.gl-data-summary span { display: block; margin-top: 1px; color: #64748b; font-size: 10.5px; }
.gl-data-panel {
  background: #fff; border: 1px solid #e0ddd5; border-radius: 14px;
  overflow: hidden; box-shadow: 0 10px 28px rgba(17,24,39,0.06);
}
.gl-data-panel-head {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 14px 16px; border-bottom: 1px solid #f0eee8;
  background: linear-gradient(180deg, #fff, #fbfaf7);
}
.gl-data-title { font-size: 14px; font-weight: 800; color: #111827; }
.gl-data-sub { font-size: 11.5px; color: #64748b; margin-top: 2px; }
.gl-data-action {
  border: 1px solid #d8dde8; background: #111827; color: #fff;
  border-radius: 7px; padding: 6px 10px; font-size: 11px; font-weight: 700;
}
.gl-data-table-wrap { overflow-x: auto; }
.gl-data-table { width: 100%; border-collapse: collapse; min-width: 860px; font-size: 11.5px; }
.gl-data-table th {
  text-align: left; padding: 9px 10px; color: #64748b; background: #f8fafc;
  font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 1px solid #e8e6e0;
}
.gl-data-table td { padding: 10px; color: #334155; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.gl-data-table tr:last-child td { border-bottom: 0; }
.gl-data-table code {
  font-family: var(--mono); font-size: 10px; color: #475569;
  background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 5px; padding: 2px 5px;
}
.gl-source-cell { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: #111827; }
.gl-source-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.gl-source-dot.risk-low { background: #22c55e; }
.gl-source-dot.risk-med { background: #f59e0b; }
.gl-source-dot.risk-high { background: #ef4444; }
.gl-data-status {
  display: inline-flex; border-radius: 999px; padding: 2px 7px;
  font-family: var(--mono); font-size: 9.5px; text-transform: uppercase;
}
.gl-data-status.ok { background: rgba(34,197,94,0.1); color: #16a34a; }
.gl-data-status.pending { background: rgba(245,158,11,0.12); color: #b45309; }
.gl-data-status.restricted { background: rgba(239,68,68,0.1); color: #b91c1c; }
.gl-data-repo { font-family: var(--mono); font-size: 10px; color: #475569; white-space: nowrap; }
.gl-data-table .gl-repo-link { margin-top: 0; min-width: 210px; }
.gl-data-callouts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px;
}
.gl-data-callouts div {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px;
}
.gl-data-callouts strong { display: block; color: #111827; font-size: 12px; margin-bottom: 3px; }
.gl-data-callouts span { display: block; color: #64748b; font-size: 11px; line-height: 1.45; }
.gl-integration-stack { display: flex; flex-direction: column; gap: 10px; }
.gl-integration-group {
  background: #fff; border: 1px solid #e0ddd5; border-radius: 13px;
  overflow: hidden; box-shadow: 0 8px 24px rgba(17,24,39,0.045);
}
.gl-integration-header {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 12px; background: #fbfaf7; border-bottom: 1px solid #f0eee8;
}
.gl-integration-title { display: flex; align-items: center; gap: 11px; min-width: 0; }
.gl-integration-icon {
  position: relative; width: 42px; height: 34px; border-radius: 9px; background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #e5e7eb; flex: 0 0 42px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.05);
}
.gl-integration-icon img {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: block; max-width: 28px; max-height: 22px; width: auto; height: auto;
  object-fit: contain; object-position: center;
}
.gl-integration-icon.wide img { max-width: 36px; max-height: 18px; }
.gl-integration-title strong { display: block; color: #111827; font-size: 13px; }
.gl-integration-title span { display: block; color: #64748b; font-size: 10.5px; margin-top: 1px; }
.gl-integration-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: flex-end; color: #64748b; font-size: 10px; }
.gl-integration-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.gl-integration-table th {
  text-align: left; padding: 7px 10px; background: #f8fafc; color: #64748b;
  font-family: var(--mono); font-size: 8.5px; text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 1px solid #eef2f7;
}
.gl-integration-table td { padding: 7px 10px; border-bottom: 1px solid #f1f5f9; color: #334155; }
.gl-integration-table tr:last-child td { border-bottom: 0; }
.gl-integration-table code {
  font-family: var(--mono); font-size: 9.5px; color: #475569;
  background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 5px; padding: 2px 5px;
}
@media(max-width:700px){
  .gl-data-summary, .gl-data-callouts { grid-template-columns:1fr; }
  .gl-data-panel-head { align-items:flex-start; flex-direction:column; }
  .gl-integration-header { align-items:flex-start; flex-direction:column; }
  .gl-integration-meta { justify-content:flex-start; }
}

/* ── Administration views ──────────────────────────────── */
.gl-admin-kpis {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px;
}
.gl-admin-kpis div {
  background: #111827; color: #fff; border-radius: 12px; padding: 12px;
  box-shadow: 0 10px 24px rgba(17,24,39,0.12);
}
.gl-admin-kpis strong { display: block; font-size: 19px; letter-spacing: -0.6px; }
.gl-admin-kpis span { display: block; color: rgba(255,255,255,0.64); font-size: 10.5px; margin-top: 1px; }
.gl-muted { color: #64748b; font-size: 10.5px; margin-top: 2px; }
.gl-role-chip-row { display: flex; gap: 5px; flex-wrap: wrap; }
.gl-role-chip {
  display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 7px;
  background: #eef2ff; color: #3343a5; border: 1px solid #dbe3ff;
  font-family: var(--mono); font-size: 9.5px; white-space: nowrap;
}
.gl-rbac-table { min-width: 940px; }
.gl-rbac-panel, .gl-security-panel { overflow-x: auto; }
.gl-cost-hero {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px;
}
.gl-cost-hero div {
  position: relative; overflow: hidden; min-height: 92px; border-radius: 16px; padding: 16px;
  color: #fff; background:
    radial-gradient(circle at 88% 18%, rgba(96,165,250,0.45), transparent 32%),
    linear-gradient(135deg, #101827, #243044);
  box-shadow: 0 14px 32px rgba(15,23,42,0.16);
}
.gl-cost-hero span, .gl-cost-hero em { display: block; color: rgba(255,255,255,0.68); font-size: 11px; font-style: normal; }
.gl-cost-hero strong { display: block; font-size: 30px; letter-spacing: -1px; margin: 5px 0 2px; }
.gl-cost-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr); gap: 14px; }
.gl-cost-trend { padding: 12px 16px 14px; }
.gl-cost-trend svg { display: block; width: 100%; height: 128px; overflow: visible; }
.gl-trend-grid { fill: none; stroke: #e8eef6; stroke-width: 1; }
.gl-trend-today { stroke: #cbd5e1; stroke-width: 1; stroke-dasharray: 3 4; }
.gl-trend-line { fill: none; stroke-width: 2.7; stroke-linecap: round; stroke-linejoin: round; }
.gl-trend-line.prev { stroke: #94a3b8; stroke-width: 2.2; opacity: .75; }
.gl-trend-line.actual { stroke: #3b6ef5; }
.gl-trend-line.forecast { stroke: #22c55e; stroke-dasharray: 6 5; }
.gl-trend-dot { fill: #fff; stroke-width: 2; }
.gl-trend-dot.actual { stroke: #3b6ef5; }
.gl-cost-axis { display: grid; grid-template-columns: repeat(6, 1fr); color: #94a3b8; font-family: var(--mono); font-size: 9px; }
.gl-cost-axis span { text-align: center; }
.gl-cost-legend {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 10px; color: #64748b; font-family: var(--mono); font-size: 9.5px;
}
.gl-cost-legend span { display: inline-flex; align-items: center; gap: 5px; }
.gl-cost-legend i { width: 18px; height: 0; border-top: 2px solid #94a3b8; display: inline-block; }
.gl-cost-legend i.actual { border-color: #3b6ef5; border-top-width: 3px; }
.gl-cost-legend i.forecast { border-color: #22c55e; border-top-style: dashed; border-top-width: 3px; }
.gl-cost-bars { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 13px; }
.gl-cost-bar-row { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 12px; align-items: center; }
.gl-cost-bar-row strong { display: block; font-size: 12px; color: #111827; }
.gl-cost-bar-row span { display: block; color: #64748b; font-size: 10.5px; margin-top: 2px; }
.gl-cost-bar { height: 14px; background: #edf1f7; border-radius: 999px; overflow: hidden; border: 1px solid #e2e8f0; }
.gl-cost-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3b6ef5, #22c55e); }
.gl-util-list { padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.gl-util-row {
  display: grid; grid-template-columns: 165px minmax(0, 1fr) 42px; align-items: center; gap: 10px;
  background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 10px; padding: 9px 10px;
}
.gl-util-row strong { display: block; color: #111827; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl-util-row span { display: block; color: #64748b; font-size: 10px; margin-top: 1px; }
.gl-util-row b { color: #0f172a; font-family: var(--mono); font-size: 10px; text-align: right; }
.gl-util-meter { height: 9px; border-radius: 999px; background: #e8eef6; overflow: hidden; }
.gl-util-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f59e0b, #22c55e); }
.gl-cost-recs { width: 100%; border-collapse: collapse; font-size: 11px; }
.gl-cost-recs th {
  text-align: left; padding: 8px 10px; background: #f8fafc; color: #64748b;
  font-family: var(--mono); font-size: 8.5px; text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 1px solid #eef2f7;
}
.gl-cost-recs td { padding: 8px 10px; color: #334155; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.gl-cost-recs tr:last-child td { border-bottom: 0; }
.gl-cost-recs td span {
  display: inline-flex; padding: 2px 7px; border-radius: 999px;
  background: #eef2ff; color: #3343a5; font-family: var(--mono); font-size: 9px; white-space: nowrap;
}
.gl-cost-actions { padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.gl-cost-action-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px;
}
.gl-cost-action-row strong { display: block; color: #111827; font-size: 12px; }
.gl-cost-action-row span { display: block; color: #64748b; font-size: 10.5px; margin-top: 2px; line-height: 1.35; }
.gl-cost-action-row button {
  border: 1px solid #cbd5e1; background: #fff; color: #0f172a;
  border-radius: 7px; padding: 6px 9px; font-size: 10.5px; font-weight: 700; white-space: nowrap;
}
.gl-observe-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gl-log-card {
  background: #08111f; border: 1px solid #1e293b; border-radius: 14px; padding: 12px;
  box-shadow: 0 12px 28px rgba(15,23,42,0.16);
}
.gl-log-card.warn { border-color: rgba(245,158,11,0.5); }
.gl-log-card.error { border-color: rgba(239,68,68,0.55); }
.gl-log-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.gl-log-head strong { color: #e5edf8; font-size: 12px; }
.gl-log-head span {
  display: inline-flex; align-items: center; gap: 5px;
  color: #94a3b8; font-family: var(--mono); text-transform: uppercase; font-size: 9.5px;
}
.gl-live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,0.12), 0 0 14px rgba(34,197,94,0.7);
  animation: livePulse 1.1s ease-in-out infinite;
}
.gl-log-terminal {
  height: 122px; overflow: hidden; color: #b7c7d9;
  font: 10.5px/1.55 var(--mono); background: rgba(15,23,42,0.72);
  border: 1px solid rgba(148,163,184,0.14); border-radius: 9px; padding: 8px 10px;
}
.gl-log-line {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  animation: logLineIn .22s ease-out;
}
.gl-log-line.cmd { color: #e5edf8; }
.gl-log-line.info { color: #b7c7d9; }
.gl-log-line.debug { color: #7dd3fc; opacity: .82; }
.gl-log-line.warn { color: #fbbf24; }
.gl-log-line.error {
  color: #fecaca; background: linear-gradient(90deg, rgba(239,68,68,0.2), transparent 78%);
  margin: 1px -5px; padding: 0 5px; border-left: 2px solid #ef4444;
}
.gl-log-time { color: #64748b; }
.gl-log-level {
  display: inline-flex; min-width: 36px; justify-content: center; margin: 0 4px;
  border-radius: 4px; padding: 0 4px; color: #08111f; font-weight: 900; text-transform: uppercase;
}
.gl-log-level.info { background: #93c5fd; }
.gl-log-level.debug { background: #67e8f9; }
.gl-log-level.warn { background: #fbbf24; }
.gl-log-level.error { background: #ef4444; color: #fff; }
.gl-log-meta { color: #64748b; }
@keyframes logLineIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}
@keyframes livePulse {
  0%, 100% { transform: scale(1); opacity: .9; }
  50% { transform: scale(1.35); opacity: 1; }
}
.gl-security-band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px;
}
.gl-security-band div {
  border-radius: 14px; padding: 14px; background: #fff; border: 1px solid #e5e7eb;
  box-shadow: 0 10px 26px rgba(15,23,42,0.06);
}
.gl-security-band span { display: block; font-family: var(--mono); color: #64748b; font-size: 10px; text-transform: uppercase; }
.gl-security-band strong { display: block; font-size: 28px; color: #111827; margin-top: 2px; letter-spacing: -1px; }
.gl-security-table { min-width: 900px; }
.gl-sev {
  display: inline-flex; min-width: 28px; justify-content: center; border-radius: 7px;
  padding: 3px 7px; font-family: var(--mono); font-size: 10px; font-weight: 800;
}
.gl-sev.critical { background: #7f1d1d; color: #fff; }
.gl-sev.high { background: rgba(239,68,68,0.12); color: #b91c1c; }
.gl-sev.med { background: rgba(245,158,11,0.13); color: #b45309; }
.gl-sev.low { background: rgba(100,116,139,0.12); color: #475569; }
@media(max-width:900px){
  .gl-admin-kpis, .gl-cost-hero, .gl-security-band { grid-template-columns: 1fr 1fr; }
  .gl-cost-grid, .gl-observe-grid { grid-template-columns: 1fr; }
}

/* Hide normal content in IT mode */
.gl-app-card.it-mode .gl-app-desc { display: none; }
.gl-app-card.it-mode .gl-app-tags { display: none; }
.gl-app-card.it-mode .gl-app-status-row { display: none; }

/* ── Inside-app view (Q2 dashboard) ─────────────────────── */
.gl-generated-app {
  padding: 0; overflow: hidden; background: #080b12;
  display: flex; flex-direction: column;
}
.dark-app-shell {
  min-height: 100%; padding: 18px; color: #e5edf8;
  background:
    radial-gradient(circle at top left, rgba(59,110,245,0.24), transparent 34%),
    radial-gradient(circle at 85% 12%, rgba(34,197,94,0.14), transparent 28%),
    #080b12;
}
.dark-app-hero {
  display: flex; justify-content: space-between; gap: 16px; align-items: flex-start;
  margin-bottom: 14px;
}
.dark-eyebrow {
  font-family: var(--mono); font-size: 9.5px; color: #8ea4c7;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px;
}
.dark-title { font-size: 22px; font-weight: 850; letter-spacing: -0.8px; color: #fff; }
.dark-subtitle { font-size: 11.5px; color: #8ea4c7; max-width: 430px; line-height: 1.45; margin-top: 4px; }
.dark-user-pill {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  color: #b9c8dd; font-size: 11px; background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.11); border-radius: 999px; padding: 5px 9px;
}
.dark-user-pill span {
  width: 22px; height: 22px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; background: #3b6ef5; color: #fff;
  font-size: 9px; font-weight: 800;
}
.dark-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 10px; }
.dark-stat-card {
  background: rgba(15,23,42,0.78); border: 1px solid rgba(148,163,184,0.16);
  border-radius: 12px; padding: 10px 11px;
}
.dark-stat-card.accent { background: linear-gradient(135deg, rgba(59,110,245,0.45), rgba(15,23,42,0.82)); border-color: rgba(96,165,250,0.38); }
.dark-stat-card span { display: block; font-family: var(--mono); font-size: 9px; color: #8ea4c7; text-transform: uppercase; letter-spacing: .06em; }
.dark-stat-card strong { display: block; margin-top: 3px; font-size: 20px; color: #fff; letter-spacing: -0.7px; }
.dark-stat-card em { display: block; margin-top: 2px; font-style: normal; font-size: 10px; color: #4ade80; }
.dark-stat-card em.warn { color: #fbbf24; }
.dark-content-grid { display: grid; grid-template-columns: 1.5fr 0.9fr; gap: 10px; margin-bottom: 10px; }
.dark-panel {
  background: rgba(15,23,42,0.72); border: 1px solid rgba(148,163,184,0.14);
  border-radius: 14px; padding: 12px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.dark-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: #cbd5e1; margin-bottom: 10px;
}
.dark-panel-head span { font-weight: 700; }
.dark-panel-head b { font-family: var(--mono); font-size: 9.5px; color: #8ea4c7; font-weight: 500; }
.bar-row { display: grid; grid-template-columns: 78px 1fr 48px; gap: 8px; align-items: center; margin: 8px 0; }
.bar-row span, .bar-row b { font-size: 10.5px; color: #b9c8dd; font-weight: 500; }
.bar-row b { text-align: right; color: #fff; }
.bar-row div { height: 8px; background: rgba(148,163,184,0.14); border-radius: 999px; overflow: hidden; }
.bar-row i { display: block; height: 100%; background: linear-gradient(90deg, #3b82f6, #22c55e); border-radius: inherit; }
.signal-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; border-bottom: 1px solid rgba(148,163,184,0.12);
  font-size: 11.5px; color: #cbd5e1;
}
.signal-row:last-child { border-bottom: 0; }
.signal-row strong { font-family: var(--mono); font-size: 10px; font-weight: 500; }
.signal-row.ok strong { color: #4ade80; }
.signal-row.wait strong { color: #fbbf24; }
.dark-table-panel { padding-bottom: 8px; }
.dark-lead-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.dark-lead-table th {
  text-align: left; font-family: var(--mono); font-size: 9px; color: #64748b;
  text-transform: uppercase; letter-spacing: .07em; padding: 7px 8px; border-bottom: 1px solid rgba(148,163,184,0.14);
}
.dark-lead-table td { padding: 8px; color: #cbd5e1; border-bottom: 1px solid rgba(148,163,184,0.08); vertical-align: top; }
.dark-lead-table td:first-child { color: #fff; font-weight: 700; }
.dark-stage { border-radius: 999px; padding: 2px 7px; font-family: var(--mono); font-size: 9.5px; }
.dark-stage.green { background: rgba(34,197,94,0.14); color: #4ade80; }
.dark-stage.amber { background: rgba(245,158,11,0.14); color: #fbbf24; }
.dark-stage.blue { background: rgba(59,130,246,0.16); color: #93c5fd; }
.dark-attach-link {
  display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: #93c5fd;
  background: rgba(59,130,246,0.12); border: 1px solid rgba(96,165,250,0.18);
  padding: 2px 7px; border-radius: 5px; max-width: max-content;
}
.dark-attach-link img { width: 11px; height: 11px; }
@media(max-width:700px){
  .dark-stat-grid{ grid-template-columns:1fr 1fr; }
  .dark-content-grid{ grid-template-columns:1fr; }
}
.gl-inapp { padding: 24px 28px; background: #fff; min-height: 100%; }
.gl-inapp-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid #f0eee8; }
.gl-inapp-title h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; color: #1a1d27; }
.gl-inapp-title p { font-size: 12px; color: #8a8a8a; margin-top: 2px; }
.gl-inapp-user { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #6b6f7d; }
.gl-inapp-user .avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #6490ff, #a78bfa); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.stat-row-light { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
@media(max-width:700px){ .stat-row-light{ grid-template-columns:1fr 1fr; } }
.stat-card-light { background: #fafaf7; border: 1px solid #e8e6e0; border-radius: 10px; padding: 14px; }
.stat-label-light { font-size: 11px; color: #8a8a8a; margin-bottom: 4px; font-family: var(--mono); }
.stat-val-light { font-size: 22px; font-weight: 800; color: #1a1d27; letter-spacing: -1px; }
.stat-change-light { font-size: 11px; margin-top: 3px; color: #16a34a; }
.stat-change-light.down { color: #b91c1c; }

.lead-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.lead-table th { text-align: left; padding: 8px 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: #8a8a8a; border-bottom: 1px solid #e8e6e0; font-weight: 500; }
.lead-table td { padding: 11px 10px; border-bottom: 1px solid #f0eee8; color: #4a4f5e; vertical-align: top; }
.lead-table tr:last-child td { border-bottom: none; }
.lead-table .company { color: #1a1d27; font-weight: 600; }
.stage-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-family: var(--mono); }
.stage-q { background: rgba(59,110,245,0.12); color: #3b6ef5; }
.stage-p { background: rgba(245,158,11,0.12); color: #b45309; }
.stage-n { background: rgba(34,197,94,0.12); color: #16a34a; }
.attach-row { display: flex; flex-direction: column; gap: 3px; }
.attach-link {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: #3b6ef5;
  background: rgba(59,110,245,0.06); padding: 2px 7px; border-radius: 4px; max-width: max-content;
}
.attach-link img { width: 11px; height: 11px; }

/* ── Fake user cursor ───────────────────────────────────── */
.fake-cursor {
  position: absolute; width: 22px; height: 22px;
  pointer-events: none; z-index: 999;
  transition: top 0.8s cubic-bezier(0.4, 0.1, 0.4, 1), left 0.8s cubic-bezier(0.4, 0.1, 0.4, 1);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  opacity: 0;
}
.fake-cursor.visible { opacity: 1; }
.fake-cursor.click {
  animation: cursorClick .35s ease;
}
@keyframes cursorClick {
  0% { transform: scale(1); }
  50% { transform: scale(0.85); }
  100% { transform: scale(1); }
}
.click-ripple {
  position: absolute; pointer-events: none; z-index: 998;
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid #3b6ef5;
  animation: rippleOut .5s ease-out forwards;
}
@keyframes rippleOut {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}
.cursor-caption {
  position: absolute; z-index: 997; max-width: 225px;
  background: rgba(17,24,39,0.94); color: #fff;
  border: 1px solid rgba(255,255,255,0.16); border-radius: 10px;
  padding: 10px 12px; font-size: 12px; line-height: 1.45;
  box-shadow: 0 14px 36px rgba(0,0,0,0.28);
  animation: captionIn .18s ease-out;
}
.cursor-caption::before {
  content: ''; position: absolute; left: -6px; top: 18px;
  width: 10px; height: 10px; background: rgba(17,24,39,0.94);
  border-left: 1px solid rgba(255,255,255,0.16);
  border-bottom: 1px solid rgba(255,255,255,0.16);
  transform: rotate(45deg);
}
.cursor-caption.left::before {
  left: auto; right: -6px;
  border-left: 0; border-bottom: 0;
  border-right: 1px solid rgba(255,255,255,0.16);
  border-top: 1px solid rgba(255,255,255,0.16);
}
@keyframes captionIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* ── Two-column card sections split ─────────────────────── */
.gl-card-sections-split {
  display: none; grid-template-columns: minmax(190px, 0.85fr) minmax(0, 1.55fr); gap: 0 14px;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid #f0eee8;
}
.gl-card-sections-split.has-sections { display: grid; }
.gl-card-col-left, .gl-card-col-right { min-width: 0; overflow: hidden; }
.gl-card-col-left .gl-card-section,
.gl-card-col-right .gl-card-section { margin-top: 0; padding-top: 0; border-top: none; }
.gl-card-col-left .gl-card-section + .gl-card-section { margin-top: 10px; padding-top: 10px; border-top: 1px solid #f0eee8; }
@media(max-width:700px){ .gl-card-sections-split.has-sections{ grid-template-columns:1fr; gap: 10px; } }

/* ── My Apps empty state ─────────────────────────────────── */
.gl-empty-state {
  grid-column: 1 / -1; padding: 8px 0; text-align: center;
  color: #8a8a8a; font-size: 13px;
}
.gl-empty-drop {
  border: 1.5px dashed #cbd5e1; border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(59,110,245,0.06), rgba(34,197,94,0.04)),
    #fff;
  padding: 30px 22px; min-height: 145px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.gl-empty-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #3b6ef5; background: rgba(59,110,245,0.09);
  border: 1px solid rgba(59,110,245,0.16); margin-bottom: 10px;
}
.gl-empty-title { color: #1a1d27; font-weight: 800; font-size: 14px; letter-spacing: -0.2px; }
.gl-empty-sub { color: #64748b; font-size: 11.5px; margin-top: 4px; }

/* ── Inside card section (pipeline / perms / provisioning) ── */
.gl-card-section {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid #f0eee8;
}
/* Compact overrides for check-items inside card sections */
.gl-card-section .check-list { gap: 4px; }
.gl-card-section .check-item { padding: 7px 10px; gap: 8px; min-width: 0; }
.gl-card-section .check-icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 0; }
.gl-card-section .check-name { font-size: 11.5px; margin-bottom: 1px; }
.gl-card-section .check-detail { font-size: 10px; overflow-wrap: anywhere; }
.gl-card-section .check-time { font-size: 9.5px; margin-left: auto; }
.gl-card-section .pipeline-result { margin-top: 8px; padding: 7px 10px; font-size: 11.5px; }
.gl-card-section .pipeline-run-label { margin-bottom: 8px; margin-top: 4px; }
@media(max-width:1050px){
  .gl-card-section .check-item { flex-wrap: wrap; }
  .gl-card-section .check-content { flex: 1 1 calc(100% - 28px); }
  .gl-card-section .check-time { flex-basis: 100%; margin-left: 26px; margin-top: -2px; }
}

/* Compact perms badges */
.gl-perm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.gl-perm-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 500;
}
.gl-perm-chip.granted { background: rgba(34,197,94,0.1); color: #16a34a; }
.gl-perm-chip.pending { background: rgba(245,158,11,0.1); color: #b45309; }
.gl-perm-chip-icon { width: 13px; height: 13px; }

.prov-resources-compact { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.prov-resources-compact .prov-resource { padding: 6px 8px; font-size: 11px; }
.prov-resources-compact .prov-resource-icon { width: 20px; height: 20px; border-radius: 4px; }
.prov-resources-compact .prov-resource-name { font-size: 11px; }
.prov-resources-compact .prov-resource-detail { font-size: 9px; }

/* ── Demo complete overlay ──────────────────────────────── */
.demo-complete-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .5s;
}
.demo-complete-overlay.active { opacity: 1; pointer-events: all; }
.demo-complete-modal {
  background: var(--bg1); border: 1px solid var(--border2);
  border-radius: 16px; padding: 44px 52px;
  text-align: center; max-width: 440px; width: 90%;
  transform: translateY(16px); transition: transform .5s;
}
.demo-complete-overlay.active .demo-complete-modal { transform: none; }
.demo-complete-icon { font-size: 36px; margin-bottom: 12px; }
.demo-complete-modal h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 10px; }
.demo-complete-modal p { color: var(--text2); font-size: 15px; line-height: 1.6; margin-bottom: 28px; }
.demo-complete-actions { display: flex; gap: 12px; justify-content: center; }

/* ── Embed mode (iframe context) ────────────────────────── */
body.embedded nav { display: none; }
body.embedded #demo-stage { height: 100vh; }
body.embedded #demo-intro { min-height: 100vh; }

@media(max-width:720px) {
  body { min-height: 100svh; }
  nav { height: 54px; padding: 0 14px; }
  nav .btn-primary { display: none; }
  .nav-name { font-size: 16px; }
  .nav-by { font-size: 9px; }

  #demo-intro {
    min-height: calc(100svh - 54px);
    padding: 34px 18px;
  }
  #demo-intro::before { width: 100vw; height: 360px; }
  #demo-intro h1 {
    font-size: clamp(34px, 12vw, 46px);
    letter-spacing: -1.4px;
  }
  #demo-intro p { font-size: 15px; margin-bottom: 28px; }
  .intro-steps { display: none; }

  #demo-stage { height: calc(100svh - 54px); }
  body.embedded #demo-stage { height: 100svh; }
  body.embedded #demo-intro { min-height: 100svh; }

  .phase-indicator {
    padding: 0 8px;
    min-height: 30px;
  }
  .phase-step-label {
    padding: 6px 7px;
    font-size: 0;
    gap: 0;
  }
  .phase-step-label .ps-num {
    width: 18px;
    height: 18px;
    font-size: 9px;
  }
  .phase-step.active .phase-step-label,
  .phase-step.done .phase-step-label {
    font-size: 0;
  }
  .phase-sep { padding: 0; }

  .mobile-pane-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    padding: 5px 9px;
    background: #111827;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
  }
  .mobile-pane-btn {
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    color: #b9c8dd;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 10px;
    cursor: pointer;
  }
  .mobile-pane-btn.active {
    background: #fff;
    border-color: #fff;
    color: #111827;
  }

  .split-pane {
    display: block;
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }
  .claude-pane,
  .browser-pane {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: opacity .22s ease, transform .22s ease;
  }
  body[data-mobile-focus="browser"] .claude-pane,
  body[data-mobile-focus="claude"] .browser-pane {
    opacity: 0;
    pointer-events: none;
    transform: translateX(12px);
  }
  body[data-mobile-focus="browser"] .browser-pane,
  body[data-mobile-focus="claude"] .claude-pane {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .pane-divider { display: none; }

  .claude-titlebar,
  .browser-tab-bar { height: 30px; }
  .claude-titlebar { padding: 0 10px; }
  .claude-sidebar { width: 36px; padding: 6px 3px; }
  .claude-sidebar-icon-btn,
  .sidebar-convo {
    width: 28px;
    height: 28px;
  }
  .claude-chat-header {
    height: 34px;
    padding: 7px 10px;
  }
  .claude-messages {
    padding: 12px 12px 94px;
    gap: 10px;
  }
  .msg-claude { gap: 9px; }
  .claude-icon { width: 22px; height: 22px; }
  .claude-icon img { width: 20px; height: 20px; }
  .claude-text,
  .user-bubble,
  .claude-input-text {
    font-size: 14px;
  }
  .user-bubble { max-width: 88%; }
  .claude-input-wrap { padding: 8px 10px 64px; }
  .claude-input-box { border-radius: 14px; padding: 9px; }
  .claude-model-chip .adaptive { display: none; }

  .browser-tab-bar { display: none; }
  .browser-traffic .tl {
    width: 10px;
    height: 10px;
  }
  .browser-tab {
    min-width: 0;
    max-width: 170px;
    padding: 5px 9px 5px 8px;
  }
  .browser-toolbar {
    gap: 6px;
    padding: 6px 8px;
  }
  .browser-nav-btns,
  .browser-ext-btns {
    display: none;
  }
  .browser-url-bar {
    padding: 6px 9px;
    font-size: 12px;
  }
  .url-text { font-size: 10.5px; }
  .browser-viewport { padding-bottom: 62px; }

  .gl-sidebar {
    width: 38px;
    padding: 7px 4px;
    align-items: center;
  }
  .gl-brand {
    padding: 3px 0 9px;
    justify-content: center;
  }
  .gl-brand img { height: 15px; }
  .gl-brand > div,
  .gl-nav-section,
  .gl-nav-item span:not(.gl-nav-icon) {
    display: none;
  }
  .gl-nav-item {
    width: 30px;
    height: 30px;
    justify-content: center;
    padding: 0;
    margin-bottom: 2px;
    gap: 0;
    font-size: 0;
  }
  .gl-nav-icon {
    width: 15px;
    height: 15px;
    font-size: 11px;
  }
  .gl-nav-section-admin {
    margin-top: 6px;
    border-top: 1px solid #f0eee8;
    padding-top: 8px;
  }
  .gl-main { padding: 10px 10px 74px; }
  .gl-page-header,
  .gl-team-header,
  .dark-app-hero,
  .gl-inapp-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 9px;
  }
  .gl-page-title,
  .dark-title,
  .gl-inapp-title h1 {
    font-size: 18px;
  }
  .gl-page-sub,
  .gl-setup-hero p,
  .gl-app-desc,
  .pipeline-meta,
  .gl-data-sub {
    font-size: 11.5px;
  }
  .bundle-card {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 72px;
    align-items: center;
    gap: 8px;
    padding: 9px;
  }
  .bundle-install-btn {
    width: auto;
    justify-content: center;
  }
  .gl-setup-hero {
    padding: 13px;
    margin-bottom: 10px;
  }
  .gl-setup-hero h2 { font-size: 19px; }
  .bundle-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
  .bundle-icon img,
  .bundle-icon .chevron-blue {
    width: 20px;
    height: 20px;
  }
  .bundle-info { min-width: 0; }
  .bundle-name {
    font-size: 12.5px;
    margin-bottom: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .bundle-desc {
    font-size: 10.5px;
    line-height: 1.25;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .bundle-meta { display: none; }
  .bundle-install-btn {
    padding: 7px 8px;
    font-size: 11px;
  }
  .gl-apps-grid,
  .gl-team-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .gl-it-summary,
  .gl-data-summary,
  .gl-admin-kpis,
  .gl-cost-hero,
  .gl-security-band,
  .dark-stat-grid,
  .stat-row-light {
    grid-template-columns: 1fr 1fr;
  }
  .gl-cost-grid,
  .gl-observe-grid,
  .dark-content-grid,
  .gl-data-callouts {
    grid-template-columns: 1fr;
  }
  .prov-resources,
  .gl-card-sections-split.has-sections {
    grid-template-columns: 1fr;
  }
  .gl-card-sections-split.has-sections { gap: 8px; }
  .gl-data-table,
  .gl-rbac-table,
  .gl-security-table {
    min-width: 760px;
  }
  .gl-cost-bar-row,
  .gl-util-row {
    grid-template-columns: 1fr;
  }
  .gl-util-row b { text-align: left; }
  .lead-table,
  .dark-lead-table,
  .gl-integration-table,
  .gl-cost-recs {
    font-size: 11.5px;
  }
  .dark-app-shell,
  .gl-inapp {
    padding: 10px 10px 74px;
  }

  .gl-empty-drop {
    min-height: 98px;
    padding: 18px 14px;
  }
  .gl-empty-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 7px;
  }
  .gl-empty-title { font-size: 13px; }
  .gl-empty-sub { font-size: 10.5px; }

  .gl-my-app-card {
    padding: 10px;
  }
  .gl-app-card-top {
    gap: 8px;
    margin-bottom: 6px;
  }
  .gl-app-icon-sm {
    width: 30px;
    height: 30px;
    border-radius: 7px;
  }
  .gl-app-name { font-size: 13px; }
  .gl-app-author { font-size: 10px; }
  .gl-my-app-card .gl-app-desc,
  .gl-my-app-card .gl-app-tags,
  .gl-my-app-card .gl-repo-link {
    display: none;
  }
  .gl-app-pill {
    font-size: 8.5px;
    padding: 2px 5px;
  }
  .gl-card-sections-split.has-sections {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    margin-top: 7px;
    padding-top: 7px;
    gap: 0 7px;
  }
  .gl-card-section {
    margin-top: 7px;
    padding-top: 7px;
  }
  .gl-card-col-left .gl-card-section + .gl-card-section {
    margin-top: 7px;
    padding-top: 7px;
  }
  .gl-perm-title,
  .pipeline-run-label {
    font-size: 8.5px;
    margin: 0 0 5px;
  }
  .gl-perm-chips {
    gap: 4px;
    margin-top: 4px;
  }
  .gl-perm-chip {
    padding: 2px 5px;
    font-size: 9px;
    gap: 3px;
  }
  .gl-perm-chip.pending {
    font-size: 0;
  }
  .gl-perm-chip.pending::after {
    content: "Outlook review";
    font-size: 9px;
  }
  .prov-resources-compact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .prov-resources-compact .prov-resource {
    padding: 4px 5px;
    gap: 5px;
    min-width: 0;
  }
  .prov-resources-compact .prov-resource-icon {
    width: 16px;
    height: 16px;
  }
  .prov-resources-compact .prov-resource-icon img {
    width: 12px;
    height: 12px;
  }
  .prov-resources-compact .prov-resource-name {
    font-size: 9.5px;
  }
  .prov-resources-compact .prov-resource-detail,
  .prov-resources-compact .prov-status {
    display: none;
  }
  .gl-card-section .check-list { gap: 3px; }
  .gl-card-section .check-item {
    padding: 4px 5px;
    gap: 5px;
    flex-wrap: nowrap;
  }
  .gl-card-section .check-icon {
    width: 15px;
    height: 15px;
  }
  .gl-card-section .check-name {
    font-size: 9.8px;
    margin-bottom: 0;
  }
  .gl-card-section .check-detail,
  .gl-card-section .check-time {
    display: none;
  }
  .gl-card-section .check-item.failed .check-detail {
    display: block;
    font-size: 8.8px;
    line-height: 1.25;
  }
  .gl-card-section .pipeline-result {
    margin-top: 5px;
    padding: 5px 6px;
    font-size: 9.5px;
  }

  .fake-cursor {
    width: 20px;
    height: 20px;
  }
  .fake-cursor img {
    width: 20px;
    height: 20px;
  }
  .cursor-caption {
    max-width: min(260px, calc(100vw - 40px));
    font-size: 12px;
  }

  .demo-playback-controls {
    left: 10px;
    right: 10px;
    bottom: 8px;
    transform: none;
    justify-content: center;
    flex-wrap: wrap;
    border-radius: 16px;
    padding: 6px;
  }
  .demo-audio-btn {
    height: 34px;
    padding: 0 10px;
    font-size: 11.5px;
  }
  .demo-audio-btn .audio-icon {
    width: 16px;
    height: 16px;
  }
  .demo-playback-btn {
    padding: 6px 11px;
    font-size: 10.5px;
  }
  .demo-audio-btn,
  .demo-playback-btn {
    min-height: 32px;
  }
  .demo-playback-label { display: none; }
  .demo-complete-modal { padding: 30px 22px; }
  .demo-complete-actions { flex-direction: column; }
  .demo-complete-actions .btn { justify-content: center; }
}

/* Confetti */
.confetti-particle {
  position: fixed; width: 8px; height: 8px; border-radius: 2px; pointer-events: none; z-index: 9999;
  animation: confetti-fall 2.5s ease-out forwards;
}
@keyframes confetti-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(400px) rotate(720deg); opacity: 0; }
}
