:root {
  --campus-frame-width: 1280px;
  --campus-gutter: clamp(32px, 7vw, 96px);
  --campus-chrome-height: 96px;
  --campus-bottom-chrome-height: 0px;
  --launcher-boot-background-color: #0b0b0d;
  --launcher-boot-background-image: none;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #171719;
  background: var(--launcher-boot-background-color);
  overscroll-behavior-y: none;
  font-synthesis: none;
}

/* App routes choose their native theme synchronously in index.html. Keep the
   first document-owned paint in that theme too; an authenticated launcher
   wallpaper cache must never turn a light app's cold-start loader black. */
:root[data-campus-initial-theme="light"] {
  --launcher-boot-background-color: #fff;
  color-scheme: light;
  background: #fff;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; overscroll-behavior-y: none; background: var(--launcher-boot-background-color); }
.campus-client-shell { min-height: 100vh; min-height: 100dvh; }

.simulation-environment-banner {
  position: fixed;
  z-index: 1000;
  top: max(8px, env(safe-area-inset-top));
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 24px);
  padding: 7px 11px;
  border: 1px solid rgba(255, 177, 45, .72);
  border-radius: 999px;
  background: rgba(43, 27, 5, .92);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .28);
  color: #ffd48a;
  font: 650 11px/1.1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .08em;
  pointer-events: none;
  transform: translateX(-50%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.simulation-environment-banner span::before { content: "· "; opacity: .68; }
.simulation-environment-banner code {
  overflow: hidden;
  max-width: 34vw;
  color: inherit;
  font: inherit;
  letter-spacing: .02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.simulation-environment-banner code::before { content: "· "; opacity: .68; }
/* The signed-out page is an ordinary browser document, not an installed app
   surface. Let iOS own its edge elasticity while keeping authenticated app
   frames protected from browser-native pull-to-refresh. */
html:has(.auth-shell),
body:has(.auth-shell) {
  overscroll-behavior-y: auto;
}
body:has(.auth-shell) { overflow-x: hidden; }
#launcher-boot-curtain {
  position: fixed;
  z-index: 2147483647;
  inset: 0;
  background-color: var(--launcher-boot-background-color);
  background-image: var(--launcher-boot-background-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
  isolation: isolate;
}
#launcher-boot-curtain .launcher-boot-stage {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: none;
  background: transparent;
  pointer-events: none;
}
:root[data-launcher-boot-cached="true"] #launcher-boot-curtain .launcher-boot-stage {
  display: grid;
}
#launcher-boot-curtain .launcher-boot-search-trigger { pointer-events: none; }
.launcher-boot-indicator {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid rgba(255,255,255,.38);
  border-top-color: rgba(255,255,255,.96);
  border-radius: 50%;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.24));
  animation: button-spinner-spin 760ms linear infinite;
}
:root[data-campus-initial-theme="light"] #launcher-boot-curtain {
  background-color: #fff !important;
  background-image: none !important;
}
:root[data-campus-initial-theme="light"] #launcher-boot-curtain .launcher-boot-stage,
:root[data-campus-initial-theme="light"] #launcher-boot-curtain .launcher-boot-atmosphere,
:root[data-campus-initial-theme="light"] #launcher-boot-curtain .launcher-boot-grid {
  display: none !important;
}
:root[data-campus-initial-theme="light"] #launcher-boot-curtain .launcher-boot-indicator {
  border-color: rgba(15,20,25,.18);
  border-top-color: rgba(15,20,25,.82);
  filter: none;
}
.launcher-boot-atmosphere,
.launcher-boot-grid {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: none;
  pointer-events: none;
}
:root[data-launcher-wallpaper="clean"] .launcher-boot-atmosphere,
:root[data-launcher-wallpaper="clean-light"] .launcher-boot-atmosphere,
:root[data-launcher-wallpaper="neon-grid"] .launcher-boot-atmosphere,
:root[data-launcher-wallpaper="white-cyberpunk"] .launcher-boot-atmosphere,
:root[data-launcher-wallpaper="cyber-city-live"] .launcher-boot-atmosphere,
:root[data-launcher-wallpaper="cyber-city-live-light"] .launcher-boot-atmosphere {
  display: block;
}
.launcher-boot-atmosphere::before,
.launcher-boot-atmosphere::after {
  content: "";
  position: absolute;
  width: 38vw;
  height: 38vw;
  border-radius: 50%;
  filter: blur(80px);
  mix-blend-mode: screen;
}
.launcher-boot-atmosphere::before { top: -14vw; right: -7vw; background: rgba(43,168,255,.18); }
.launcher-boot-atmosphere::after { bottom: -19vw; left: -11vw; background: rgba(236,38,190,.16); }
:root[data-launcher-wallpaper="clean"] .launcher-boot-grid,
:root[data-launcher-wallpaper="clean-light"] .launcher-boot-grid,
:root[data-launcher-wallpaper="neon-grid"] .launcher-boot-grid,
:root[data-launcher-wallpaper="white-cyberpunk"] .launcher-boot-grid,
:root[data-launcher-wallpaper="cyber-city-live"] .launcher-boot-grid,
:root[data-launcher-wallpaper="cyber-city-live-light"] .launcher-boot-grid {
  display: block;
  top: auto;
  right: -28%;
  bottom: 0;
  left: -28%;
  height: 78%;
  background-image:
    linear-gradient(rgba(45,197,255,.46) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226,52,201,.4) 1px, transparent 1px);
  background-position: center 0;
  background-size: 68px 54px;
  opacity: .64;
  transform: perspective(430px) rotateX(61deg);
  transform-origin: center bottom;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 34%, #000 88%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 34%, #000 88%, transparent);
}
:root[data-launcher-wallpaper="cyber-city-live"] .launcher-boot-grid {
  opacity: .26;
  mix-blend-mode: screen;
}
:root[data-launcher-wallpaper="white-cyberpunk"] .launcher-boot-atmosphere::before,
:root[data-launcher-wallpaper="cyber-city-live-light"] .launcher-boot-atmosphere::before {
  background: rgba(0,154,230,.14);
  filter: blur(105px);
  mix-blend-mode: multiply;
}
:root[data-launcher-wallpaper="white-cyberpunk"] .launcher-boot-atmosphere::after,
:root[data-launcher-wallpaper="cyber-city-live-light"] .launcher-boot-atmosphere::after {
  background: rgba(238,36,159,.1);
  filter: blur(110px);
  mix-blend-mode: multiply;
}
:root[data-launcher-wallpaper="white-cyberpunk"] .launcher-boot-grid,
:root[data-launcher-wallpaper="cyber-city-live-light"] .launcher-boot-grid {
  background-image:
    linear-gradient(rgba(0,126,190,.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(206,0,143,.2) 1px, transparent 1px);
  opacity: .46;
  mix-blend-mode: multiply;
}
:root[data-launcher-wallpaper="clean"] .launcher-boot-atmosphere::before {
  top: -27vw;
  right: -7vw;
  width: 48vw;
  height: 48vw;
  background: rgba(119,75,231,.22);
  filter: blur(110px);
}
:root[data-launcher-wallpaper="clean-light"] .launcher-boot-atmosphere::before {
  top: -27vw;
  right: -7vw;
  width: 48vw;
  height: 48vw;
  background: rgba(119,75,231,.12);
  filter: blur(110px);
  mix-blend-mode: multiply;
}
:root[data-launcher-wallpaper="clean"] .launcher-boot-atmosphere::after {
  bottom: -24vw;
  left: -9vw;
  width: 40vw;
  height: 40vw;
  background: rgba(38,185,211,.2);
  filter: blur(110px);
}
:root[data-launcher-wallpaper="clean-light"] .launcher-boot-atmosphere::after {
  bottom: -24vw;
  left: -9vw;
  width: 40vw;
  height: 40vw;
  background: rgba(38,185,211,.1);
  filter: blur(110px);
  mix-blend-mode: multiply;
}
:root[data-launcher-wallpaper="clean"] .launcher-boot-grid {
  top: -46vw;
  right: -34vw;
  bottom: auto;
  left: auto;
  width: 88vw;
  height: 88vw;
  border: 1px solid rgba(194,187,255,.07);
  border-radius: 50%;
  background: none;
  opacity: 1;
  transform: none;
  -webkit-mask-image: none;
  mask-image: none;
}
:root[data-launcher-wallpaper="clean-light"] .launcher-boot-grid {
  top: -46vw;
  right: -34vw;
  bottom: auto;
  left: auto;
  width: 88vw;
  height: 88vw;
  border: 1px solid rgba(88,74,164,.1);
  border-radius: 50%;
  background: none;
  opacity: 1;
  transform: none;
  -webkit-mask-image: none;
  mask-image: none;
}
#app:empty {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--launcher-boot-background-color);
  background-image: var(--launcher-boot-background-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
button { font: inherit; }

.auth-shell {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 17%, rgba(111,74,255,.14), transparent 31%),
    radial-gradient(circle at 13% 91%, rgba(32,189,219,.1), transparent 34%),
    #0b0b0d;
  color: #f8f9ff;
  color-scheme: dark;
  isolation: isolate;
}
.auth-atmosphere { position: absolute; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
.auth-aura { position: absolute; display: block; border-radius: 50%; filter: blur(110px); opacity: .4; }
.auth-aura-cyan { bottom: -24%; left: -9%; width: 40vw; height: 40vw; background: rgba(38,185,211,.2); }
.auth-aura-violet { top: -27%; right: -7%; width: 48vw; height: 48vw; background: rgba(119,75,231,.22); }
.auth-arc { position: absolute; top: -46vw; right: -34vw; width: 88vw; height: 88vw; border: 1px solid rgba(194,187,255,.07); border-radius: 50%; }
.auth-floor { position: absolute; right: 0; bottom: 0; left: 0; height: 32%; background: linear-gradient(180deg,transparent,rgba(4,6,13,.5)); }
.auth-visual-stage {
  position: relative;
  z-index: 2;
  width: min(420px,100%);
  height: clamp(450px,68vh,620px);
  justify-self: end;
}
.auth-visual {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(460px,41vw,590px);
  aspect-ratio: 560 / 620;
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.auth-visual-halo {
  position: absolute;
  top: 24%;
  left: 24%;
  width: 52%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle,rgba(93,81,220,.11),rgba(42,158,196,.035) 46%,transparent 73%);
  filter: blur(58px);
  animation: auth-halo-breathe 8s ease-in-out infinite;
}
.auth-space-object {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  animation: auth-object-float 12s ease-in-out infinite;
}
.auth-system-routes,
.auth-system-traffic,
.auth-system-fabric-trace,
.auth-system-fabric-port {
  fill: none;
  vector-effect: non-scaling-stroke;
}
.auth-system-routes {
  stroke: rgba(142,174,230,.24);
  stroke-width: 1;
}
.auth-system-routes path { stroke-linecap: round; stroke-linejoin: round; }
.auth-system-route {
  animation: auth-system-route-breathe 7.4s ease-in-out infinite;
}
.auth-system-route:nth-child(2) { animation-delay: -2.6s; }
.auth-system-route:nth-child(3) { animation-delay: -4.8s; }
.auth-system-route:nth-child(4) { animation-delay: -1.3s; }
.auth-system-route:nth-child(5) { animation-delay: -5.9s; }
.auth-system-route:nth-child(6) { animation-delay: -3.7s; }
.auth-system-route:nth-child(7) { animation-delay: -1.8s; }
.auth-system-route:nth-child(8) { animation-delay: -4.4s; }
.auth-system-route:nth-child(9) { animation-delay: -6.6s; }
.auth-system-route:nth-child(10) { animation-delay: -.8s; }
.auth-system-route-peer { stroke-opacity: .6; }
.auth-system-route-mesh { stroke-opacity: .4; }
.auth-system-traffic path {
  stroke: url(#auth-system-signal);
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 10 210;
  filter: url(#auth-system-glow);
  animation: auth-system-flow 4.4s linear infinite;
}
.auth-system-traffic-b,
.auth-system-traffic-d,
.auth-system-traffic-f,
.auth-system-traffic-h,
.auth-system-traffic-j { animation-direction: reverse !important; }
.auth-system-traffic-c { animation-duration: 5.6s !important; }
.auth-system-traffic-e { animation-duration: 3.6s !important; }
.auth-system-traffic-g { animation-duration: 5.8s !important; }
.auth-system-traffic-h { animation-duration: 6.4s !important; }
.auth-system-traffic-i { animation-duration: 7.2s !important; }
.auth-system-traffic-j { animation-duration: 6.8s !important; }
.auth-system-traffic-peer { stroke-width: 1.1 !important; stroke-opacity: .62; }
.auth-system-traffic-mesh { stroke-opacity: .42; }
.auth-system-node {
  transform-box: fill-box;
  transform-origin: center;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
.auth-system-node-one { animation-name: auth-system-node-one-travel; animation-duration: 8.8s; }
.auth-system-node-two { animation-name: auth-system-node-two-travel; animation-duration: 10.2s; animation-delay: -2.1s; }
.auth-system-node-three { animation-name: auth-system-node-three-travel; animation-duration: 9.6s; animation-delay: -4.3s; }
.auth-system-node-four { animation-name: auth-system-node-four-travel; animation-duration: 8.1s; animation-delay: -6.2s; }
.auth-system-node-shadow,
.auth-system-fabric-shadow { fill: rgba(0,0,9,.5); filter: blur(7px); }
.auth-system-node-top,
.auth-system-node-left,
.auth-system-node-right,
.auth-system-fabric-top,
.auth-system-fabric-left,
.auth-system-fabric-right {
  stroke: rgba(174,196,238,.2);
  stroke-width: .8;
  vector-effect: non-scaling-stroke;
}
.auth-system-node-top,
.auth-system-fabric-top { fill: #060914; }
.auth-system-node-left,
.auth-system-fabric-left { fill: url(#auth-system-left); }
.auth-system-node-right,
.auth-system-fabric-right { fill: url(#auth-system-right); }
.auth-system-node-inset {
  fill: #070A15;
  stroke: rgba(177,209,249,.45);
  stroke-width: .8;
}
.auth-system-capability-apps { color: #64a4ff; }
.auth-system-capability-files { color: #ab6cff; }
.auth-system-capability-bitcoin { color: #ffb84f; }
.auth-system-capability-vpn { color: #4fe3ce; }
.auth-system-capability-ai { color: #e287ff; }
.auth-system-capability-layer {
  opacity: 0;
  animation-name: auth-system-capability-cycle;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
.auth-system-capability-slot-1 .auth-system-capability-layer { animation-duration: 18s; }
.auth-system-capability-slot-1 .auth-system-capability-phase-1 { animation-delay: -3.6s; }
.auth-system-capability-slot-1 .auth-system-capability-phase-2 { animation-delay: -7.2s; }
.auth-system-capability-slot-1 .auth-system-capability-phase-3 { animation-delay: -10.8s; }
.auth-system-capability-slot-1 .auth-system-capability-phase-4 { animation-delay: -14.4s; }
.auth-system-capability-slot-2 .auth-system-capability-layer { animation-duration: 20s; }
.auth-system-capability-slot-2 .auth-system-capability-phase-1 { animation-delay: -4s; }
.auth-system-capability-slot-2 .auth-system-capability-phase-2 { animation-delay: -8s; }
.auth-system-capability-slot-2 .auth-system-capability-phase-3 { animation-delay: -12s; }
.auth-system-capability-slot-2 .auth-system-capability-phase-4 { animation-delay: -16s; }
.auth-system-capability-slot-3 .auth-system-capability-layer { animation-duration: 17s; }
.auth-system-capability-slot-3 .auth-system-capability-phase-1 { animation-delay: -3.4s; }
.auth-system-capability-slot-3 .auth-system-capability-phase-2 { animation-delay: -6.8s; }
.auth-system-capability-slot-3 .auth-system-capability-phase-3 { animation-delay: -10.2s; }
.auth-system-capability-slot-3 .auth-system-capability-phase-4 { animation-delay: -13.6s; }
.auth-system-capability-slot-4 .auth-system-capability-layer { animation-duration: 21s; }
.auth-system-capability-slot-4 .auth-system-capability-phase-1 { animation-delay: -4.2s; }
.auth-system-capability-slot-4 .auth-system-capability-phase-2 { animation-delay: -8.4s; }
.auth-system-capability-slot-4 .auth-system-capability-phase-3 { animation-delay: -12.6s; }
.auth-system-capability-slot-4 .auth-system-capability-phase-4 { animation-delay: -16.8s; }
.auth-system-capability-aura {
  fill: currentColor;
  fill-opacity: .045;
  stroke: currentColor;
  stroke-opacity: .16;
  stroke-width: 1;
}
.auth-system-capability-mark {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: url(#auth-system-glow);
}
.auth-system-bitcoin-disc {
  fill: #f7931a;
  filter: url(#auth-system-glow);
}
.auth-system-bitcoin-glyph {
  fill: #fff;
  font-family: "Arial Unicode MS", "Noto Sans Symbols 2", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 760;
}
.auth-system-capability-accent { opacity: .5; }
.auth-system-node-door { opacity: .82; filter: url(#auth-system-glow); }
.auth-system-node-door-cyan { fill: #4DE5EC; }
.auth-system-node-door-violet { fill: #A365F4; }
.auth-system-node-detail,
.auth-system-node-seam {
  fill: none;
  stroke: rgba(112,220,239,.42);
  stroke-width: .8;
  vector-effect: non-scaling-stroke;
}
.auth-system-node-seam { stroke: rgba(169,135,246,.3); }
.auth-system-fabric {
  transform-box: fill-box;
  transform-origin: center;
  animation: auth-system-fabric-float 9s ease-in-out infinite;
}
.auth-system-fabric-top,
.auth-system-fabric-left,
.auth-system-fabric-right { stroke: rgba(182,206,245,.27); }
.auth-system-fabric-top { fill: #060914; }
.auth-system-fabric-identity {
  animation: auth-system-orchestrator-pulse 3.8s ease-in-out infinite;
}
.auth-system-fabric-mark {
  opacity: .9;
  filter: drop-shadow(0 0 2px rgba(159,192,255,.34));
}
.auth-system-fabric-trace { stroke: rgba(83,222,236,.58); stroke-width: 1; stroke-dasharray: 5 7; animation: auth-system-trace 7s linear infinite; }
.auth-system-fabric-port { stroke: rgba(139,111,247,.5); stroke-width: 2; }
.auth-space-particles { fill: rgba(203,242,255,.72); }
.auth-space-particles circle { animation: auth-particle-pulse 5.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.auth-space-particles circle:nth-child(2n) { animation-delay: -2s; }
.auth-space-particles circle:nth-child(3n) { animation-delay: -4s; }
.auth-visual-stage .login-concept-note {
  position: absolute;
  z-index: 4;
  width: min(290px,84%);
  padding: 15px 17px;
  border: 1px solid rgba(199,218,255,.13);
  border-left-color: rgba(242,159,69,.55);
  border-radius: 0 12px 12px 0;
  background: rgba(8,11,23,.68);
  box-shadow: 0 18px 50px rgba(0,0,10,.28);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.auth-visual-stage .login-concept-note-virtual {
  top: 49%;
  left: calc(50% + 58px);
}
.auth-visual-stage .login-concept-note-intelligent {
  top: 13%;
  right: calc(100% - 14px);
  width: 250px;
}
@keyframes auth-object-float {
  0%,100% { transform: translate3d(-2px,-5px,0) rotate(-.25deg); }
  50% { transform: translate3d(4px,6px,0) rotate(.35deg); }
}
@keyframes auth-halo-breathe { 0%,100% { opacity: .38; transform: scale(.9); } 50% { opacity: .72; transform: scale(1.08); } }
@keyframes auth-system-route-breathe { 0%,100% { opacity: .25; } 46%,64% { opacity: .62; } }
@keyframes auth-system-flow {
  0% { stroke-dasharray: 7 210; stroke-dashoffset: 0; opacity: .34; }
  48% { stroke-dasharray: 46 210; opacity: .92; }
  100% { stroke-dasharray: 7 210; stroke-dashoffset: -270; opacity: .34; }
}
@keyframes auth-system-node-one-travel { 0%,100% { transform: translate(-2px,-2px); } 50% { transform: translate(10px,7px); } }
@keyframes auth-system-node-two-travel { 0%,100% { transform: translate(2px,-2px); } 50% { transform: translate(-10px,8px); } }
@keyframes auth-system-node-three-travel { 0%,100% { transform: translate(-2px,2px); } 50% { transform: translate(10px,-9px); } }
@keyframes auth-system-node-four-travel { 0%,100% { transform: translate(2px,2px); } 50% { transform: translate(-10px,-9px); } }
@keyframes auth-system-capability-cycle {
  0%,14% { opacity: 1; }
  20%,95% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes auth-system-fabric-float { 0%,100% { transform: translateY(2px); } 50% { transform: translateY(-3px); } }
@keyframes auth-system-orchestrator-pulse { 0%,100% { opacity: .78; } 50% { opacity: 1; } }
@keyframes auth-system-trace { to { stroke-dashoffset: -48; } }
@keyframes auth-particle-pulse { 0%,100% { opacity: .18; transform: scale(.65); } 50% { opacity: .8; transform: scale(1.15); } }
.login-layout {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1320px, 100%);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  grid-template-rows: 96px minmax(0, 1fr);
  padding: 0 var(--campus-gutter);
}
.login-chrome { position: relative; z-index: 8; display: flex; align-items: center; }
.auth-brand { display: flex; align-items: center; gap: 10px; color: rgba(250,251,255,.88); font-size: 17px; font-weight: 580; letter-spacing: -.025em; text-decoration: none; }
.login-chrome .brand-mark { width: 31px; height: 31px; flex-basis: 31px; background-image: url("/brand/campus-mark.svg"); }
.login-hero {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 680px) minmax(300px, 400px);
  align-items: center;
  gap: clamp(34px, 6vw, 96px);
  padding: 38px 0 100px;
}
.login-pane {
  position: relative;
  z-index: 3;
  display: grid;
  align-content: center;
  width: min(700px, 100%);
  gap: 32px;
}
.contact-invite-prompt {
  max-width: 620px;
  display: grid;
  gap: 5px;
  padding: 15px 17px;
  border: 1px solid rgba(113,224,201,.22);
  border-radius: 15px;
  background: rgba(45,147,133,.1);
  color: rgba(228,247,244,.72);
}
.contact-invite-prompt span,
.signup-contact-invite span { color: #7fe0cc; font-size: 9px; font-weight: 760; letter-spacing: .14em; }
.contact-invite-prompt strong { color: rgba(249,255,254,.96); font-size: 15px; font-weight: 580; }
.contact-invite-prompt p { margin: 0; font-size: 12px; line-height: 1.5; }
.login-headline { max-width: 700px; margin: 0; color: rgba(252,252,255,.94); font-size: clamp(48px,5vw,68px); font-weight: 380; line-height: 1.04; letter-spacing: -.046em; text-wrap: balance; }
.login-concept-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(205,215,242,.34);
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: inherit;
  transition: border-color .16s ease, color .16s ease;
}
.login-concept-link:hover { border-color: rgba(235,241,255,.8); color: #fff; }
.login-concept-link[aria-expanded="true"] { border-color: rgba(242,159,69,.85); color: #f29f45; }
.login-concept-link:focus-visible { outline: 1px solid rgba(242,159,69,.65); outline-offset: 5px; border-radius: 3px; }
.login-concept-note {
  max-width: 330px;
  padding: 2px 0 2px 24px;
  border-left: 1px solid rgba(211,219,242,.2);
  color: rgba(218,223,237,.68);
  animation: auth-concept-in .2s ease both;
}
.login-concept-note strong { display: block; margin-bottom: 9px; color: rgba(249,250,255,.92); font-size: 12px; font-weight: 560; letter-spacing: -.01em; }
.login-concept-note p { margin: 0; font-size: 14px; line-height: 1.65; }
@keyframes auth-concept-in { from { opacity: 0; transform: translateX(-5px); } }
.login-actions { display: flex; align-items: stretch; flex-wrap: wrap; gap: 11px; }
.auth-shell .button { border-radius: 999px; font-size: 13px; font-weight: 540; transition: border-color .18s ease, background .18s ease, color .18s ease; }
.auth-shell .button.primary { border-color: rgba(246,247,252,.94); background: rgba(246,247,252,.94); color: #11131b; box-shadow: none; }
.auth-shell .button.primary:hover { border-color: #fff; background: #fff; }
.passkey-button { min-width: 148px; min-height: 48px; padding-inline: 21px; flex: 0 0 auto !important; }
.passkey-button[aria-busy="true"], .signup-button[aria-busy="true"] { cursor: wait; }
.login-action-error { margin: -8px 0 0; color: #ef9caa; font-size: 12px; font-weight: 450; }
.button-loading { display: inline-flex; align-items: center; gap: 9px; }
.button-spinner {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: button-spinner-spin 700ms linear infinite;
}
@keyframes button-spinner-spin { to { transform: rotate(360deg); } }
.setup-disclosure { position: relative; color: #e7ebfa; }
.setup-disclosure summary { min-height: 48px; display: flex; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid rgba(225,229,242,.18); border-radius: 999px; background: rgba(255,255,255,.035); color: rgba(234,237,247,.75); cursor: pointer; font-size: 13px; font-weight: 500; list-style: none; transition: border-color .18s ease, background .18s ease, color .18s ease; }
.setup-disclosure summary::-webkit-details-marker { display: none; }
.setup-disclosure summary:hover, .setup-disclosure[open] summary { border-color: rgba(230,233,245,.3); background: rgba(255,255,255,.07); color: rgba(250,251,255,.92); }
.setup-panel {
  position: fixed;
  z-index: 20;
  top: 50%;
  right: max(var(--campus-gutter),calc((100vw - 1320px)/2 + var(--campus-gutter)));
  width: min(390px, calc(100vw - 48px));
  transform: translateY(-50%);
}
.signup-card { border: 1px solid rgba(225,229,242,.14); border-radius: 18px; background: rgba(17,19,29,.94); padding: 23px; box-shadow: 0 24px 70px rgba(0,0,8,.4); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.signup-contact-invite { display: grid; gap: 5px; margin: -2px 0 18px; padding-bottom: 17px; border-bottom: 1px solid rgba(225,229,242,.11); }
.signup-contact-invite strong { color: rgba(249,250,255,.94); font-size: 13px; font-weight: 570; }
.signup-contact-invite p { margin: 0; color: rgba(225,229,241,.55); font-size: 10px; line-height: 1.45; }
.signup-name { display: grid; gap: 7px; color: rgba(225,229,241,.62); font-size: 11px; font-weight: 500; }
.signup-name-field { width: 100%; min-height: 46px; display: flex; align-items: center; border: 1px solid rgba(225,229,242,.14); border-radius: 12px; background: rgba(255,255,255,.045); color: rgba(215,226,251,.5); transition: border-color .16s ease, background .16s ease; }
.signup-name-field input { width: 100%; min-width: 0; min-height: 45px; padding: 0 13px; border: 0; background: transparent; color: #fff; outline: none; font: inherit; font-size: 16px; font-weight: 550; }
.signup-name-field input::placeholder { color: rgba(215,226,251,.34); }
.signup-name-field:focus-within { border-color: rgba(225,229,242,.35); background: rgba(255,255,255,.065); }
.signup-button { min-height: 46px; width: 100%; margin-top: 17px; }
.auth-notice { position: fixed; z-index: 40; top: 74px; right: clamp(24px,7vw,96px); left: clamp(24px,7vw,96px); display: flex; gap: 10px; padding: 12px 14px; border: 1px solid rgba(255,164,119,.25); border-radius: 11px; background: rgba(73,30,24,.92); color: #ffc2a6; box-shadow: 0 18px 50px rgba(0,0,0,.3); font-size: 13px; backdrop-filter: blur(20px); }
.boot-screen {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background-color: var(--launcher-boot-background-color);
  background-image: var(--launcher-boot-background-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #8a8a91;
}

.app-opening-overlay {
  position: fixed;
  z-index: 80;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background-color: #f7f8fb;
  background-image:
    radial-gradient(circle at 22% 15%, rgba(109,154,222,.16), transparent 30%),
    radial-gradient(circle at 78% 78%, rgba(204,132,194,.12), transparent 34%),
    linear-gradient(145deg, #fbfcfe, #f2f4f8);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  isolation: isolate;
}
.app-opening-overlay.has-wallpaper {
  background-color: #08111f;
}
.app-opening-overlay.within-shell {
  z-index: 60;
  top: var(--chrome-height);
  bottom: var(--campus-bottom-chrome-height);
  background: var(--campus-app-surface-background);
  color: var(--campus-app-loading-foreground, #252529);
}
.app-stage.app-theme-dark {
  --campus-app-loading-foreground: #eceef2;
}
.app-opening-overlay.within-shell .app-opening-indicator { gap: 22px; }
.app-opening-label { font-size: 16px; font-weight: 600; }
.app-opening-overlay.within-shell .app-opening-panel { color: inherit; }
.app-opening-overlay.within-shell .app-opening-copy { color: inherit; opacity: .65; }
.app-stage .app-opening-overlay.within-shell .app-opening-failure-mark {
  background: rgba(127,127,127,.12);
  border-color: rgba(127,127,127,.2);
  color: inherit;
}
.app-opening-overlay.within-shell .app-opening-diagnostic,
.app-opening-overlay.within-shell .app-opening-revisions dt,
.app-opening-overlay.within-shell .app-opening-revisions dd { color: inherit; }
.app-opening-overlay.launcher-opening {
  background-color: var(--launcher-boot-background-color);
  background-image: var(--launcher-boot-background-image) !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.app-opening-overlay.launcher-opening .launcher-boot-indicator { position: relative; top: auto; left: auto; margin: 0; }
.app-opening-overlay.launcher-opening.is-leaving {
  animation: none;
}
.app-opening-overlay.is-leaving {
  pointer-events: none;
  animation: app-opening-out .18s ease both;
}
.app-opening-overlay.has-failure {
  z-index: 65;
  top: var(--chrome-height);
  bottom: var(--campus-bottom-chrome-height);
}
.app-opening-panel {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 360px;
  flex-direction: column;
  align-items: center;
  color: #252529;
  text-align: center;
  animation: app-opening-in .22s cubic-bezier(.2,.8,.2,1) both;
}
.app-opening-overlay.has-wallpaper .app-opening-panel {
  padding: 30px 38px 28px;
  border: 1px solid rgba(255,255,255,.54);
  border-radius: 28px;
  background: rgba(249,250,253,.78);
  box-shadow: 0 30px 90px rgba(2,7,18,.3), inset 0 1px rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  backdrop-filter: blur(28px) saturate(160%);
}
.app-opening-indicator { position: relative; z-index: 1; display: grid; place-items: center; }
.app-opening-icon { width: 82px; height: 82px; display: grid; place-items: center; border-radius: 30px; corner-shape: squircle; box-shadow: 0 14px 34px rgba(30,30,35,.16); animation: app-icon-opening 1.05s ease-in-out infinite; will-change: opacity, transform; }
.app-opening-glyph { color: #fff; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Symbol", sans-serif; font-size: 31px; font-weight: 650; line-height: 1; }
.app-opening-panel strong { font-size: 19px; letter-spacing: -.025em; }
.app-opening-copy { margin-top: 8px; color: #7b7b82; font-size: 13px; line-height: 1.5; }
.app-opening-failure { width: min(420px, calc(100vw - 48px)); }
.app-opening-failure-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 15px;
  background: rgba(255,255,255,.12);
  color: #fff;
  box-shadow: 0 12px 35px rgba(0,0,0,.18);
  font-size: 24px;
  font-weight: 700;
}
.app-opening-overlay:not(.has-wallpaper) .app-opening-failure-mark {
  border-color: rgba(40,45,60,.1);
  background: rgba(45,50,66,.08);
  color: #3d4354;
}
.app-opening-diagnostic {
  margin-top: 15px;
  color: #51535c;
  font-size: 12px;
  font-weight: 650;
}
.app-opening-revisions {
  width: 100%;
  display: grid;
  gap: 6px;
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(39,43,56,.09);
  border-radius: 13px;
  background: rgba(18,22,32,.045);
  font-size: 11px;
}
.app-opening-revisions div { display: flex; justify-content: space-between; gap: 20px; }
.app-opening-revisions dt { color: #777a84; }
.app-opening-revisions dd { margin: 0; color: #3b3e48; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.app-opening-actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.app-opening-actions .button { min-height: 44px; }
.app-opening-home { background: rgba(255,255,255,.58); }
.app-opening-retry { min-width: 0; margin-top: 0; }
@keyframes app-opening-in { from { opacity: 0; transform: translateY(7px) scale(.985); } }
@keyframes app-opening-out { to { opacity: 0; } }
@keyframes app-icon-opening { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .68; transform: scale(.985); } }

.shell { min-height: 100vh; background: #fff; }
.topbar {
  --topbar-gutter: var(--campus-gutter);
  position: relative;
  width: min(var(--campus-frame-width), 100%);
  height: var(--campus-chrome-height);
  margin: 0 auto;
  padding: 0 var(--topbar-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f1f3;
}
.topbar-leading { display: flex; min-width: 0; align-items: center; }
.topbar-back {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--topbar-gutter);
  height: auto;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #77777d;
  cursor: pointer;
  box-shadow: none;
  transition: color .16s ease;
}
.topbar-back:hover { background: transparent; color: #171719; }
.topbar-back:active > span { transform: translateX(-1px); }
.topbar-back:focus-visible { outline: 2px solid rgba(65,110,240,.35); outline-offset: -4px; }
.topbar-back > span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  transition: transform .16s ease;
}
.campus-icon { width: 100%; height: 100%; display: block; overflow: visible; }
.brand { display: flex; align-items: center; gap: 11px; color: #171719; text-decoration: none; }
.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: block;
  background: url("/brand/campus-mark-on-light.svg") center / contain no-repeat;
}
.login-chrome .brand-mark, .topbar .brand-mark { width: 38px; height: 38px; flex-basis: 38px; }
.brand-name { font-size: 19px; font-weight: 760; letter-spacing: -.035em; }
.app-page-topbar .topbar-leading { max-width: min(62vw, 640px); }
.app-page-topbar .brand { flex: 0 0 auto; }
.topbar-trailing { min-width: 0; display: flex; align-items: center; margin-left: auto; }
.topbar-actions { display: flex; align-items: center; gap: 6px; }
.mobile-tabbar { display: none; }
.campus-search {
  position: relative;
  width: min(620px, 36vw);
  min-width: 170px;
  margin: 0 clamp(14px, 2.5vw, 34px);
}
.campus-search.open { z-index: 50; }
.campus-search-trigger,
.campus-search-form {
  position: relative;
  width: 100%;
  height: 42px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 0 9px 0 13px;
  border: 1px solid #dedee3;
  border-radius: 13px;
  outline: none;
  background: rgba(247,247,249,.9);
  color: #747982;
  box-shadow: inset 0 1px rgba(255,255,255,.9), 0 2px 8px rgba(28,30,38,.035);
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .16s ease, background-color .16s ease,
              box-shadow .16s ease, color .16s ease, opacity .12s ease;
}
.campus-search-form {
  cursor: text;
}
.campus-search-input {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #30343b;
  font: inherit;
  font-size: 13px;
}
.campus-search-input::placeholder { color: #87878f; }
.campus-search-input::-webkit-search-cancel-button { display: none; }
.campus-search-trigger:hover { border-color: #c9c9d0; background: #fff; color: #3f4650; }
.campus-search-trigger:focus-visible { outline: 2px solid rgba(65,110,240,.28); outline-offset: -2px; }
.campus-search.open .campus-search-form { border-color: rgba(191,193,203,.78); background: #fff; box-shadow: 0 0 0 3px rgba(98,107,132,.07); }
.campus-search-trigger-icon { width: 20px; height: 20px; display: grid; place-items: center; }
.campus-search-trigger-label { overflow: hidden; color: #87878f; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.campus-search-shortcut { min-width: 30px; height: 22px; display: grid; place-items: center; border: 1px solid #d8d8dd; border-radius: 6px; background: #fff; color: #85858c; box-shadow: 0 1px 1px rgba(20,20,24,.03); font-family: inherit; font-size: 9px; line-height: 1; pointer-events: none; }
.wallet-balance-button, .agent-trigger, .notification-trigger, .account-trigger {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #44505f;
  cursor: pointer;
  box-shadow: none;
  font-size: 12.5px;
  font-weight: 720;
  -webkit-tap-highlight-color: transparent;
  transition: background .14s ease, color .14s ease, transform .14s ease;
}
.wallet-balance-button {
  min-width: 82px;
  padding: 0 12px;
  gap: 5px;
  border: 1px solid rgba(146,104,30,.1);
  background: rgba(255,248,232,.66);
  color: #674d1f;
  box-shadow: inset 0 1px rgba(255,255,255,.68);
  font-variant-numeric: tabular-nums;
}
.wallet-balance-value { min-width: 0; display: inline-flex; align-items: baseline; gap: 5px; }
.wallet-balance-amount { font-size: 13px; font-weight: 790; letter-spacing: -.02em; }
.wallet-balance-unit { color: #92702f; font-size: 10.5px; font-weight: 720; }
.wallet-balance-loading {
  width: 32px;
  height: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.wallet-balance-loading-dot {
  width: 4px;
  height: 4px;
  flex: 0 0 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: .22;
  animation: wallet-balance-dot 1.05s ease-in-out infinite;
}
.wallet-balance-loading-dot:nth-child(2) { animation-delay: .12s; }
.wallet-balance-loading-dot:nth-child(3) { animation-delay: .24s; }
@keyframes wallet-balance-dot {
  0%, 60%, 100% { opacity: .22; transform: translateY(0) scale(.82); }
  30% { opacity: .72; transform: translateY(-1px) scale(1); }
}
.wallet-balance-button:hover, .agent-trigger:hover, .agent-trigger[aria-expanded="true"], .notification-trigger:hover,
.notification-trigger[aria-expanded="true"],
.account-trigger:hover, .account-trigger[aria-expanded="true"] { background: rgba(45,58,75,.075); color: #202a37; box-shadow: none; }
.wallet-balance-button:active, .agent-trigger:active, .notification-trigger:active, .account-trigger:active { background: rgba(45,58,75,.12); transform: scale(.94); }
.wallet-balance-button:focus-visible, .agent-trigger:focus-visible, .notification-trigger:focus-visible, .account-trigger:focus-visible {
  outline: 2px solid rgba(65,110,240,.24);
  outline-offset: 2px;
}
.agent-trigger {
  width: 42px;
  padding: 0;
  color: #3e4651;
}
.agent-trigger-icon { width: 20px; height: 20px; display: grid; place-items: center; }
.notification-launcher-wrap { position: relative; }
.notification-trigger {
  position: relative;
  width: 42px;
  display: grid;
  padding: 0;
  place-items: center;
  color: #3e4651;
}
.notification-bell { width: 20px; height: 20px; display: grid; place-items: center; }
.notification-badge { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; border: 2px solid #fff; border-radius: 999px; background: #e34b53; color: #fff; font-size: 9px; font-weight: 800; line-height: 1; }
.account-menu-wrap { position: relative; }
.account-menu-wrap.menu-open { z-index: 50; }
.account-trigger {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
}
.avatar {
  width: 38px;
  height: 38px;
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  padding: 8px;
  border: 1px solid rgba(59,83,111,.13);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(225,234,242,.9));
  color: #667589;
  box-shadow: inset 0 1px rgba(255,255,255,.9), 0 3px 10px rgba(25,45,66,.08);
}
.account-trigger .avatar {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: #e6eff4;
  box-shadow: none;
  clip-path: circle(50% at 50% 50%);
}
.account-avatar-fallback { width: 100%; height: 100%; display: grid; place-items: center; }
.profile-stub { display: block; overflow: visible; }
.account-trigger .avatar > .campus-icon { width: 20px; height: 20px; }
.synced-account-avatar {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  border-radius: 50%;
  background: transparent;
  clip-path: circle(50% at 50% 50%);
  pointer-events: none;
}
.synced-account-avatar { object-fit: cover; }
.account-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
}
.campus-action-popover {
  --campus-menu-glass: rgba(248,250,253,.96);
  --campus-menu-border: rgba(255,255,255,.78);
  --campus-menu-ink: #20242b;
  --campus-menu-muted: #5d6672;
  --campus-menu-icon: #424a55;
  --campus-menu-disabled: #8b929d;
  --campus-menu-hover: rgba(20,30,45,.07);
  --campus-menu-divider: rgba(20,30,45,.12);
  --campus-menu-danger: #c52530;
  z-index: 50;
  width: 280px;
  max-height: min(560px, calc(100dvh - 68px));
  overflow-x: hidden;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--campus-menu-border);
  border-radius: 20px;
  background: var(--campus-menu-glass);
  box-shadow: 0 20px 54px rgba(5,12,25,.22), inset 0 1px rgba(255,255,255,.5);
  color: var(--campus-menu-ink);
  -webkit-backdrop-filter: blur(28px) saturate(145%);
  backdrop-filter: blur(28px) saturate(145%);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  animation: campus-action-popover-in .2s cubic-bezier(.2,.8,.2,1) both;
}
.app-stage.chrome-theme-dark .campus-action-popover {
  --campus-menu-glass: rgba(20,24,33,.96);
  --campus-menu-border: rgba(255,255,255,.14);
  --campus-menu-ink: #f4f6f9;
  --campus-menu-muted: #b0b9c6;
  --campus-menu-icon: #d1d8e2;
  --campus-menu-disabled: #79828f;
  --campus-menu-hover: rgba(255,255,255,.09);
  --campus-menu-divider: rgba(255,255,255,.14);
  --campus-menu-danger: #ff898e;
  box-shadow: 0 24px 64px rgba(0,0,0,.46), inset 0 1px rgba(255,255,255,.08);
  color-scheme: dark;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .campus-action-popover { background: #f8fafc; }
  .app-stage.chrome-theme-dark .campus-action-popover { background: #171b24; }
}
.campus-action-popover::-webkit-scrollbar { display: none; }
@keyframes campus-action-popover-in { from { opacity: 0; transform: translateY(-6px) scale(.96); } }
.campus-action-popover-header { min-height: 56px; display: flex; align-items: center; gap: 11px; padding: 6px 10px 8px; }
.campus-action-popover-leading { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 38px; overflow: hidden; border: 0; border-radius: 11px; corner-shape: squircle; background: #394252; color: #fff; font-size: 17px; }
.campus-action-popover-heading { min-width: 0; display: grid; gap: 2px; }
.campus-action-popover-heading strong { overflow: hidden; color: var(--campus-menu-ink); font-size: 15px; font-weight: 600; letter-spacing: -.015em; text-overflow: ellipsis; white-space: nowrap; }
.campus-action-popover-heading small { color: var(--campus-menu-muted); font-size: 11px; font-weight: 500; }
.campus-action-popover-leading.account-menu-avatar { display: block; overflow: visible; border-radius: 50%; background: transparent; }
.account-menu-avatar .avatar { width: 38px; height: 38px; overflow: hidden; padding: 0; border: 1px solid rgba(59,83,111,.13); background: #e6eff4; clip-path: circle(50% at 50% 50%); }
.campus-action-popover-item { width: 100%; min-height: 50px; display: grid; grid-template-columns: 24px minmax(0,1fr); align-items: center; gap: 12px; margin: 0; padding: 9px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--campus-menu-ink); cursor: pointer; text-align: left; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: background-color .14s ease; }
.campus-action-popover-item.has-trailing { grid-template-columns: 24px minmax(0,1fr) auto; }
.campus-action-popover-item:active { background: var(--campus-menu-hover); }
.campus-action-popover-item:disabled { color: var(--campus-menu-disabled); cursor: default; }
.campus-action-popover-item-copy { min-width: 0; display: grid; gap: 2px; }
.campus-action-popover-item-copy strong { overflow: hidden; font-size: 14.5px; font-weight: 500; letter-spacing: -.012em; text-overflow: ellipsis; white-space: nowrap; }
.campus-action-popover-item-copy small { overflow: hidden; color: var(--campus-menu-muted); font-size: 10.5px; font-weight: 500; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.campus-action-popover-item-icon { width: 24px; height: 24px; display: grid; place-items: center; color: var(--campus-menu-icon); }
.campus-action-popover-item-icon svg { width: 19px; height: 19px; }
.account-menu-runtime { margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--campus-menu-divider); }
.account-runtime-toggle { min-height: 62px; }
.account-runtime-toggle .campus-action-popover-item-copy small { text-overflow: clip; white-space: normal; }
.account-menu-switch { position: relative; width: 42px; height: 24px; display: block; justify-self: end; flex: 0 0 auto; border-radius: 999px; background: rgba(120,120,128,.28); box-shadow: inset 0 0 0 1px rgba(60,60,67,.08), inset 0 1px 2px rgba(0,0,0,.08); transition: background-color .2s ease, box-shadow .2s ease; }
.account-menu-switch-thumb { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.24), 0 0 0 .5px rgba(0,0,0,.06); transition: transform .22s cubic-bezier(.2,.8,.2,1); }
.account-runtime-toggle.is-paused .account-menu-switch { background: #34c759; box-shadow: inset 0 0 0 1px rgba(20,122,55,.12), inset 0 1px 2px rgba(0,0,0,.06); }
.account-runtime-toggle.is-paused .account-menu-switch-thumb { transform: translateX(18px); }
.account-runtime-toggle[aria-busy="true"] .account-menu-switch { animation: account-runtime-pulse 1.15s ease-in-out infinite; }
.account-runtime-toggle:focus-visible .account-menu-switch { box-shadow: 0 0 0 3px rgba(0,122,255,.18), inset 0 0 0 1px rgba(60,60,67,.08); }
.account-menu-runtime-error { margin: 5px 6px 2px; padding: 8px 9px; border-radius: 10px; background: rgba(255,59,48,.12); color: var(--campus-menu-danger); font-size: 10px; font-weight: 560; line-height: 1.4; }
@keyframes account-runtime-pulse { 50% { opacity: .55; } }
.campus-action-popover-item-secondary { color: var(--campus-menu-ink); }
.campus-action-popover-item-danger { margin-top: 6px; color: var(--campus-menu-danger); }
.campus-action-popover-item-danger .campus-action-popover-item-icon { color: var(--campus-menu-danger); }
@media (hover: hover) and (pointer: fine) {
  .campus-action-popover-item:not(:disabled):hover,
  .campus-action-popover-item:focus-visible {
    background: var(--campus-menu-hover);
    outline: 0;
  }
}
.mobile-account-drawer { display: none; }
.menu-dismiss-layer { position: fixed; z-index: 30; inset: 0; background: transparent; }
.shell > .menu-dismiss-layer { z-index: 45; }
.secondary-surface-dismiss-layer { position: fixed; z-index: 79; inset: 0; background: transparent; }
.secondary-surface-dismiss-layer.is-search {
  /* Keep the trusted Search field outside the dismiss hit area. The command
     panel itself remains in the higher secondary-surface layer, above Campus
     chrome, instead of lifting the complete navbar over the panel. */
  top: var(--campus-chrome-height);
}

h1 { margin: 0 0 8px; font-size: clamp(34px, 5vw, 58px); letter-spacing: -.055em; line-height: .98; }
.tone-gold { background: #e9a32d; }
.tone-blue { background: #3972d9; }
.tone-violet { background: #785bd0; }
.tone-sky { background: #319bca; }
.tone-silver { background: #7b838e; }
.tone-indigo { background: #5968c7; }
.tone-coral { background: #db6265; }
.tone-mint { background: #37a37d; }
.tone-campus { background: #394252; }
.tone-communication { background: #259b72; }
.tone-finance { background: #d88727; }
.tone-intelligence { background: #397ee8; }
.tone-files { background: #168fa3; }
.tone-claw { background: #8357d4; }
.tone-green { background: #61aa45; }
.tone-cyan { background: #2fa4a9; }
.danger-action { color: #c8423a; }
.actions { display: flex; gap: 8px; }
.button { border: 1px solid #d7d7dc; color: #2b2b30; background: #fff; padding: 10px 14px; border-radius: 10px; cursor: pointer; font-weight: 650; }
.button:hover { border-color: #a9a9b0; }
.button.primary { border-color: #1f1f23; background: #1f1f23; color: #fff; flex: 1; }
.button:disabled { cursor: not-allowed; opacity: .55; }

.notice { margin: 0 0 18px; padding: 12px 14px; background: #ffe4d6; color: #7a3527; border-radius: 10px; font-size: 13px; }
.empty { padding: 64px; text-align: center; color: #929298; background: #fafafa; border: 1px dashed #dedee1; border-radius: 22px; }

.backdrop { position: fixed; z-index: 100; inset: 0; background: rgba(20,20,23,.42); display: grid; place-items: center; padding: 20px; backdrop-filter: blur(4px); }
.dialog { width: min(520px, 100%); border-radius: 22px; background: #fff; padding: 26px; box-shadow: 0 30px 90px rgba(0,0,0,.28); }
.dialog h2 { margin: 0 0 8px; color: #1d1d1f; letter-spacing: -.035em; }
.dialog-copy { color: #6b6b71; line-height: 1.5; margin: 0 0 20px; }
.package-source { margin: -10px 0 19px; color: #8c8c93; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; overflow-wrap: anywhere; }
.permission-dialog { display: flex; max-height: calc(100dvh - 40px); overflow: hidden; padding: 0; flex-direction: column; }
.permission-dialog-scroll { min-height: 0; overflow-y: auto; padding: 26px 26px 0; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.permission { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 13px 0; border-top: 1px solid #ededf0; }
.permission-icon { width: 27px; height: 27px; border-radius: 8px; display: grid; place-items: center; background: #f2f2f4; }
.permission strong { display: block; font-size: 14px; }
.permission span { display: block; color: #77777e; font-size: 12px; margin-top: 3px; line-height: 1.4; }
.permission .permission-scope { color: #8d7350; font-size: 10px; font-weight: 750; letter-spacing: .04em; }
.permission-secret-slots { display: grid; gap: 7px; margin-top: 15px; padding-top: 14px; border-top: 1px solid #ececf0; }
.permission-secret-slots > strong { color: #3c3840; font-size: 11px; }
.permission-secret-slot span, .permission-secret-slot small { display: block; }
.permission-secret-slot span { color: #4c4652; font-size: 10px; font-weight: 700; }
.permission-secret-slot small { margin-top: 2px; color: #8a8490; font-size: 9px; line-height: 1.4; }
.dialog .actions { margin-top: 22px; justify-content: flex-end; }
.permission-dialog .permission-dialog-actions { flex: 0 0 auto; margin-top: 0; padding: 22px 26px 26px; background: #fff; }

.secret-binding-dialog { width: min(570px, 100%); max-height: calc(100dvh - 40px); overflow: auto; padding: 24px; background: #fbfbfc; }
.secret-binding-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.secret-binding-head > div { min-width: 0; }
.secret-binding-head h2 { margin: 5px 0 0; font-size: clamp(24px, 4vw, 31px); }
.secret-binding-head p { margin: 9px 0 0; color: #74747c; font-size: 12px; line-height: 1.5; }
.secret-binding-kicker { color: #6b5794; font-size: 9px; font-weight: 820; letter-spacing: .13em; }
.secret-binding-request { display: grid; grid-template-columns: 35px minmax(0,1fr); gap: 12px; margin-top: 20px; padding: 14px; border: 1px solid #dedbe5; border-radius: 14px; background: #f4f1f8; }
.secret-binding-request-mark { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; background: #ded5ed; color: #674d96; font-size: 10px; }
.secret-binding-request strong, .secret-binding-request span, .secret-binding-request code { display: block; }
.secret-binding-request strong { color: #302b37; font-size: 12px; }
.secret-binding-request span { margin-top: 3px; color: #766f7d; font-size: 10px; line-height: 1.45; }
.secret-binding-request code { margin-top: 6px; overflow-wrap: anywhere; color: #5e526b; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }
.secret-binding-request p { margin: 8px 0 0; color: #665d6f; font-size: 10px; line-height: 1.45; }
.secret-binding-form { display: grid; gap: 13px; margin-top: 20px; }
.secret-binding-field { display: grid; gap: 7px; color: #4c4850; font-size: 10px; font-weight: 720; }
.secret-binding-field input, .secret-binding-field select { width: 100%; min-height: 43px; box-sizing: border-box; padding: 0 12px; border: 1px solid #d7d6dd; border-radius: 10px; background: #fff; color: #26252a; font: inherit; font-size: 13px; }
.secret-binding-field input:focus, .secret-binding-field select:focus { border-color: #8470aa; outline: 3px solid rgba(114,86,164,.12); }
.secret-binding-field input:disabled, .secret-binding-field select:disabled { opacity: .6; }
.secret-binding-new { display: grid; grid-template-columns: minmax(130px,.7fr) minmax(180px,1.3fr); gap: 10px; }
.secret-binding-divider { display: flex; align-items: center; gap: 10px; color: #96919a; font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.secret-binding-divider::before, .secret-binding-divider::after { height: 1px; flex: 1; background: #e3e1e6; content: ""; }
.secret-binding-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fff0ee; color: #a73d34; font-size: 11px; }
.secret-binding-assurance { display: flex; align-items: flex-start; gap: 7px; margin: 1px 2px 0; color: #7e7982; font-size: 10px; line-height: 1.5; }
.secret-binding-assurance span { color: #5b8c6a; font-weight: 800; }
.secret-binding-dialog .secret-binding-actions { margin-top: 2px; }
.secret-binding-actions .button { min-height: 43px; }

@media (max-width: 560px) {
  .permission-backdrop { top: var(--campus-chrome-height); bottom: var(--campus-bottom-chrome-height); align-items: end; padding: 8px; }
  .permission-dialog { width: 100%; max-height: calc(100dvh - var(--campus-chrome-height) - var(--campus-bottom-chrome-height) - 16px); border-radius: 24px; }
  .permission-dialog-scroll { padding: 24px 20px 0; }
  .permission-dialog .permission-dialog-actions { padding: 18px 20px 20px; }
  .permission-dialog-actions .button { min-height: 44px; }
  .secret-binding-backdrop { top: var(--campus-chrome-height); bottom: var(--campus-bottom-chrome-height); align-items: end; padding: 8px; }
  .secret-binding-dialog { width: 100%; max-height: calc(100dvh - var(--campus-chrome-height) - var(--campus-bottom-chrome-height) - 16px); padding: 21px 16px 16px; border-radius: 25px; }
  .secret-binding-head h2 { font-size: 25px; }
  .secret-binding-new { grid-template-columns: 1fr; }
  .secret-binding-actions { display: grid; grid-template-columns: 1fr 1.4fr; }
}

.dialog-close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #eeeeF2; color: #75757d; cursor: pointer; font-size: 23px; line-height: 1; }
.dialog .button { border-color: #d7d7dc; color: #2b2b30; }
.dialog .button:hover { border-color: #a9a9b0; }
.dialog .button.primary { border-color: #1f1f23; background: #1f1f23; color: #fff; }

.app-stage {
  --chrome-height: 96px;
  --campus-mobile-chrome-background: rgba(255,255,255,.86);
  --campus-mobile-chrome-foreground: #0f1419;
  --campus-mobile-chrome-muted: rgba(15,20,25,.52);
  --campus-mobile-chrome-logo: url("/brand/campus-mark-on-light.svg");
  --campus-mobile-badge-border: rgba(255,255,255,.96);
  --campus-mobile-balance-border: rgba(151,108,31,.18);
  --campus-mobile-balance-background: rgba(239,190,81,.16);
  --campus-mobile-balance-foreground: #684c1b;
  --campus-mobile-balance-muted: rgba(104,76,27,.7);
  --campus-mobile-search-background: #fff;
  --campus-shell-background: #fff;
  --campus-app-surface-background: #fff;
  --campus-mobile-drawer-background: #fff;
  --campus-mobile-drawer-foreground: #0f1419;
  --campus-mobile-drawer-muted: rgba(15,20,25,.56);
  --campus-mobile-drawer-border: rgba(15,20,25,.1);
  --campus-mobile-drawer-avatar-border: rgba(15,20,25,.12);
  --campus-mobile-drawer-avatar-ring: rgba(15,20,25,.035);
  --campus-mobile-drawer-pressed: rgba(15,20,25,.075);
  --campus-mobile-drawer-active: rgba(15,20,25,.12);
  --campus-mobile-drawer-disabled: rgba(15,20,25,.38);
  --campus-mobile-drawer-logout: #df3e4d;
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  grid-template-rows: var(--chrome-height) minmax(0, 1fr);
  min-width: 320px;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--campus-shell-background);
}
.app-stage.chrome-theme-light { color-scheme: light; }
.app-stage.chrome-theme-dark {
  --campus-mobile-chrome-background: rgba(15,17,22,.86);
  --campus-mobile-chrome-foreground: #fff;
  --campus-mobile-chrome-muted: rgba(226,231,238,.56);
  --campus-mobile-chrome-logo: url("/brand/campus-mark.svg");
  --campus-mobile-badge-border: rgba(255,255,255,.96);
  --campus-mobile-balance-border: rgba(239,190,81,.22);
  --campus-mobile-balance-background: rgba(239,190,81,.14);
  --campus-mobile-balance-foreground: #f2d48b;
  --campus-mobile-balance-muted: rgba(248,220,153,.76);
  --campus-mobile-search-background: #0f1116;
  --campus-shell-background: #0f1116;
  --campus-mobile-drawer-background: #080a11;
  --campus-mobile-drawer-foreground: #f7f9f9;
  --campus-mobile-drawer-muted: rgba(231,233,234,.57);
  --campus-mobile-drawer-border: rgba(255,255,255,.08);
  --campus-mobile-drawer-avatar-border: rgba(255,255,255,.14);
  --campus-mobile-drawer-avatar-ring: rgba(255,255,255,.035);
  --campus-mobile-drawer-pressed: rgba(239,243,244,.075);
  --campus-mobile-drawer-active: rgba(239,243,244,.12);
  --campus-mobile-drawer-disabled: rgba(231,233,234,.38);
  --campus-mobile-drawer-logout: #ff7a83;
  color-scheme: dark;
}
.app-stage.app-theme-light { --campus-app-surface-background: #fff; }
.app-stage.app-theme-dark { --campus-app-surface-background: #0f1116; }
/* The app document owns vertical movement. Lock the trusted parent shell so
   browser scroll cannot move the fixed navigation independently of its iframe. */
html:has(.app-stage),
body:has(.app-stage),
body:has(.app-stage) .campus-client-shell {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.app-stage.chromeless {
  --chrome-height: 0px;
  grid-template-rows: minmax(0, 1fr);
}
.app-page-topbar { background: #fff; }
.app-frame-wrap { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: var(--campus-app-surface-background); }
/* Keep the staged refresh frame fully laid out and scroll-enabled behind the
   currently painted frame. On iOS, loading a scrollable descendant beneath
   `pointer-events: none` and later removing that ancestor state can leave its
   event region permanently non-scrollable after promotion. The current frame
   is opaque and one layer above, so it remains the only user-facing surface. */
.app-frames { display: contents; }
.app-stage > .app-frames > .app-frame-wrap:not(.app-refresh-frame-wrap) { z-index: 1; }
.app-stage > .app-frames > .app-refresh-frame-wrap { z-index: 0; }
.app-frame { position: relative; width: 100%; height: 100%; border: 0; background: var(--campus-app-surface-background); }
.launcher-frame-wrap.is-cached,
.target-frame-wrap.is-cached,
.target-frame-wrap.is-staging { visibility: hidden; pointer-events: none; }
.launcher-frame-wrap { transition: visibility 0s; }
.launcher-frame-wrap.is-cached { transition-delay: .3s; }
.target-frame-wrap {
  --app-open-offset-y: 10px;
  --app-open-scale: .985;
  --app-open-radius: 18px;
}
.target-frame-wrap:not(.is-cached):not(.is-staging):not(.is-refresh-promoted) {
  transform-origin: 50% 100%;
  backface-visibility: hidden;
  animation: app-surface-open .3s cubic-bezier(.22,1,.36,1) both;
}
.app-refresh-error {
  position: fixed;
  z-index: 78;
  right: calc(14px + env(safe-area-inset-right));
  bottom: calc(var(--campus-bottom-chrome-height) + 14px);
  left: calc(14px + env(safe-area-inset-left));
  display: flex;
  max-width: 620px;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 auto;
  padding: 10px 12px 10px 15px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 15px;
  background: rgba(26,27,31,.92);
  color: #fff;
  box-shadow: 0 16px 42px rgba(7,9,16,.22);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  font-size: 12px;
}
.app-refresh-error button {
  min-height: 30px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #1c1d21;
  cursor: pointer;
  font: inherit;
  font-weight: 720;
}
@keyframes app-surface-open {
  from {
    opacity: .72;
    border-radius: var(--app-open-radius);
    box-shadow: 0 24px 64px rgba(7,9,16,.2);
    transform: translate3d(0,var(--app-open-offset-y),0) scale(var(--app-open-scale));
  }
  to {
    opacity: 1;
    /* Ends on the frame's resting corners (rounded where it meets the
       desktop panel) because the fill mode keeps this value afterwards. */
    border-radius: var(--app-open-end-radius, 0);
    box-shadow: none;
    transform: translate3d(0,0,0) scale(1);
  }
}

.launcher-agent-drawer {
  --launcher-agent-drawer-width: min(430px, calc(100vw - 24px));
  --launcher-agent-drawer-height: min(680px, 78dvh, calc(100dvh - var(--campus-chrome-height) - 24px));
  position: fixed;
  /* A desktop secondary app is user-positioned. It must remain visible when it
     crosses the trusted top bar instead of sliding underneath that layer. */
  z-index: 80;
  top: calc(var(--campus-chrome-height) + 12px);
  right: 12px;
  bottom: auto;
  width: var(--launcher-agent-drawer-width);
  /* A full-height panel has no vertical travel once clamped. Keep a useful app
     viewport while reserving enough canvas to move it up/down. */
  height: var(--launcher-agent-drawer-height);
  overflow: hidden;
  border: 1px solid rgba(29, 28, 35, .12);
  border-radius: 20px;
  background: rgba(252, 252, 253, .985);
  box-shadow: 0 26px 90px rgba(23, 22, 30, .2), 0 4px 18px rgba(23, 22, 30, .08);
  animation: launcher-agent-in .22s cubic-bezier(.2,.8,.2,1) both;
}
.app-stage.app-theme-dark .launcher-agent-drawer {
  border-color: rgba(255,255,255,.075);
  background: #0b0e16;
  box-shadow: 0 26px 90px rgba(0,0,0,.38), 0 4px 18px rgba(0,0,0,.2);
}
.launcher-agent-drawer.is-positioned {
  top: max(8px, min(var(--launcher-agent-top), calc(100dvh - var(--launcher-agent-drawer-height) - 8px)));
  right: auto;
  bottom: auto;
  left: max(8px, min(var(--launcher-agent-left), calc(100vw - var(--launcher-agent-drawer-width) - 8px)));
  width: var(--launcher-agent-drawer-width);
  height: var(--launcher-agent-drawer-height);
}
.secondary-agent-actions-control.campus-icon-button,
.secondary-app-expand-control,
.secondary-app-close-control {
  position: absolute;
  z-index: 7;
  top: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(29,28,35,.58);
  cursor: pointer;
}
.secondary-app-expand-control { right: 54px; }
.secondary-agent-actions-control.campus-icon-button { right: 96px; font-size: 12px; letter-spacing: 2px; }
.secondary-agent-actions-control > span { transform: translateY(-2px); }
.launcher-agent-drawer:has(.secondary-agent-actions-control) .secondary-agent-toolbar { padding-right: 142px; }
.secondary-app-close-control { right: 12px; }
.secondary-app-close-control .campus-icon { width: 20px; height: 20px; }
.app-stage.app-theme-dark .secondary-agent-actions-control,
.app-stage.app-theme-dark .secondary-app-expand-control,
.app-stage.app-theme-dark .secondary-app-close-control { color: rgba(255,255,255,.6); }
.secondary-agent-actions-control:hover,
.secondary-agent-actions-control[aria-expanded="true"],
.secondary-agent-actions-control:focus-visible,
.secondary-app-expand-control:hover,
.secondary-agent-actions-control:focus-visible,
.secondary-app-expand-control:focus-visible,
.secondary-app-expand-control[aria-pressed="true"],
.secondary-app-close-control:hover,
.secondary-app-close-control:focus-visible {
  background: rgba(127,127,140,.13);
  color: rgba(120,91,208,.95);
}
.secondary-app-expand-control:focus-visible,
.secondary-app-close-control:focus-visible {
  outline: 2px solid rgba(120,91,208,.5);
  outline-offset: -2px;
}
.secondary-app-expand-icon {
  position: relative;
  width: 18px;
  height: 18px;
  display: block;
}
.secondary-app-expand-icon::before,
.secondary-app-expand-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-color: currentColor;
  border-style: solid;
}
.secondary-app-expand-icon::before {
  top: 0;
  right: 0;
  border-width: 1.5px 1.5px 0 0;
}
.secondary-app-expand-icon::after {
  bottom: 0;
  left: 0;
  border-width: 0 0 1.5px 1.5px;
}
.secondary-app-expand-control[aria-pressed="true"] .secondary-app-expand-icon::before {
  top: 3px;
  right: 3px;
}
.secondary-app-expand-control[aria-pressed="true"] .secondary-app-expand-icon::after {
  bottom: 3px;
  left: 3px;
}
.secondary-agent-toolbar {
  position: absolute;
  z-index: 6;
  top: 0;
  right: 0;
  left: 0;
  height: 54px;
  display: flex;
  align-items: center;
  padding: 7px 100px 7px 10px;
  border-bottom: 1px solid rgba(29,28,35,.08);
  background: color-mix(in srgb, var(--campus-mobile-search-background) 94%, transparent);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  /* The shell drag handle sits beneath this painted header. Let its empty
     space pass pointer input through while the chooser remains interactive. */
  pointer-events: none;
}
.app-stage.app-theme-dark .secondary-agent-toolbar {
  border-bottom-color: rgba(255,255,255,.07);
}
.secondary-agent-chooser {
  position: relative;
  min-width: 0;
  max-width: 100%;
  /* Desktop title text is the natural window grip. Only the chevron opens
     this chooser; its menu restores pointer input when expanded. */
  pointer-events: none;
}
.secondary-agent-chooser > summary {
  list-style: none;
}
.secondary-agent-chooser > summary::-webkit-details-marker { display: none; }
.secondary-agent-chooser-summary {
  min-width: 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 11px;
  color: var(--campus-mobile-chrome-foreground);
  cursor: pointer;
  user-select: none;
}
.secondary-agent-chooser-summary:hover,
.secondary-agent-chooser-summary:focus-visible,
.secondary-agent-chooser[open] .secondary-agent-chooser-summary {
  background: rgba(127,127,140,.11);
}
.secondary-agent-chooser-summary:focus-visible {
  outline: 2px solid rgba(120,91,208,.5);
  outline-offset: -2px;
}
.secondary-agent-chooser-copy,
.secondary-agent-option-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
  text-align: left;
}
.secondary-agent-chooser-copy strong,
.secondary-agent-option-copy strong {
  overflow: hidden;
  color: inherit;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.secondary-agent-chooser-copy small,
.secondary-agent-option-copy small {
  color: var(--campus-mobile-chrome-muted);
  font-size: 10px;
  font-weight: 620;
  letter-spacing: .025em;
  line-height: 1.2;
}
.secondary-agent-chooser-chevron {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin: -5px -10px -5px 0;
  border-radius: 10px;
  color: var(--campus-mobile-chrome-muted);
  cursor: pointer;
  pointer-events: auto;
  font-size: 14px;
  transition: transform .16s ease;
}
.secondary-agent-chooser[open] .secondary-agent-chooser-chevron { transform: rotate(180deg); }
.secondary-agent-menu {
  position: absolute;
  z-index: 9;
  top: calc(100% + 6px);
  left: 0;
  width: min(310px, calc(100vw - 44px));
  max-height: min(420px, 60dvh);
  overflow: auto;
  display: grid;
  gap: 3px;
  padding: 6px;
  border: 1px solid rgba(29,28,35,.12);
  border-radius: 14px;
  background: color-mix(in srgb, var(--campus-mobile-search-background) 97%, transparent);
  box-shadow: 0 18px 50px rgba(23,22,30,.2), 0 3px 12px rgba(23,22,30,.08);
  pointer-events: auto;
}
.app-stage.app-theme-dark .secondary-agent-menu {
  border-color: rgba(255,255,255,.09);
  box-shadow: 0 18px 50px rgba(0,0,0,.42), 0 3px 12px rgba(0,0,0,.2);
}
.secondary-agent-option {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--campus-mobile-chrome-foreground);
  font: inherit;
  cursor: pointer;
}
.secondary-agent-option:hover,
.secondary-agent-option:focus-visible,
.secondary-agent-option[aria-current="true"] {
  background: rgba(127,127,140,.11);
}
.secondary-agent-option:focus-visible {
  outline: 2px solid rgba(120,91,208,.5);
  outline-offset: -2px;
}
.secondary-agent-option-check {
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}
.launcher-agent-drawer.is-agent-chat .launcher-agent-frame {
  height: calc(100% - 54px);
  margin-top: 54px;
}
.launcher-agent-drawer.is-agent-chat .launcher-agent-loading,
.launcher-agent-drawer.is-agent-chat .launcher-agent-failure {
  top: 54px;
}
.launcher-agent-drawer.is-anchored {
  --launcher-agent-drawer-height: min(620px, calc(100dvh - var(--secondary-anchor-top, calc(var(--campus-chrome-height) + 8px)) - 8px));
  top: var(--secondary-anchor-top, calc(var(--campus-chrome-height) + 8px));
  right: auto;
  bottom: auto;
  left: var(--secondary-anchor-left, calc(100vw - var(--launcher-agent-drawer-width) - 12px));
  width: var(--launcher-agent-drawer-width);
  height: var(--launcher-agent-drawer-height);
  border-radius: 16px;
  transform-origin: top right;
}
.launcher-agent-drawer.is-anchored[data-surface-placement="anchored-panel"] {
  --launcher-agent-drawer-width: min(430px, calc(100vw - 24px));
  --launcher-agent-drawer-height: min(680px, 78dvh, calc(100dvh - var(--campus-chrome-height) - 24px));
}
.launcher-agent-drawer.is-anchored[data-surface-mode="command-palette"] {
  /* The trusted navbar owns the query field. This iframe is only the isolated
     suggestion surface below it, so it must never cover or duplicate the
     field. */
  --launcher-agent-drawer-width: min(620px, 36vw, calc(100vw - 24px));
  --launcher-agent-drawer-height: min(560px, calc(100dvh - var(--secondary-anchor-top, calc(var(--campus-chrome-height) + 8px)) - 8px));
  right: 0;
  left: 0;
  margin-inline: auto;
  overflow: hidden;
  border-color: rgba(29,28,35,.12);
  border-radius: 18px;
  background: rgba(252,252,253,.985);
  box-shadow: 0 26px 90px rgba(23,22,30,.2), 0 4px 18px rgba(23,22,30,.08);
  transform-origin: top center;
  animation-name: command-palette-in;
}
.app-stage.app-theme-dark .launcher-agent-drawer.is-anchored[data-surface-mode="command-palette"] {
  border-color: rgba(255,255,255,.075);
  background: #0b0e16;
  box-shadow: 0 26px 90px rgba(0,0,0,.38), 0 4px 18px rgba(0,0,0,.2);
}
.launcher-agent-drawer.is-anchored[data-surface-mode="command-palette"] .launcher-agent-loading,
.launcher-agent-drawer.is-anchored[data-surface-mode="command-palette"] .launcher-agent-frame {
  background: transparent;
}
.launcher-agent-drawer.is-dragging { user-select: none; }
.launcher-agent-drag-handle {
  position: absolute;
  /* Setup and failure states render above the iframe at z-index 3. Keep the
     shell-owned drag surface above those states too, or their header masks
     both the draggable hit area and the visible handle. */
  z-index: 4;
  top: 0;
  right: 0;
  left: 0;
  width: auto;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 20px 20px 0 0;
  background: transparent;
  /* The shell-owned layer covers the iframe header, but its clipped right
     edge leaves the app's call, menu, and close controls fully interactive. */
  clip-path: inset(0 154px 0 0);
  cursor: grab;
  touch-action: none;
}
.launcher-agent-drag-handle:focus-visible { outline: 2px solid rgba(120,91,208,.5); outline-offset: -2px; }
.launcher-agent-drawer.is-dragging .launcher-agent-drag-handle { cursor: grabbing; }
@media (min-width: 761px) {
  /* Account actions are trusted shell chrome. While open, their topbar and
     outside-dismiss hit area must sit above a movable secondary app such as
     Chat; the rest of the topbar remains below that surface. */
  .app-stage > .topbar.account-menu-open { z-index: 90; }
  .app-stage > .menu-dismiss-layer.account-drawer-dismiss-layer { z-index: 85; }
  .app-stage .launcher-agent-drawer:not(.is-positioned):not(.is-anchored):not(.is-expanded) { top: calc(var(--chrome-height) + 12px); }
  .app-stage .launcher-agent-drawer.is-expanded {
    z-index: 60;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    height: auto;
    padding-top: var(--chrome-height);
    border: 0;
    border-radius: 0;
    background: var(--campus-mobile-search-background);
    box-shadow: none;
    animation: none;
  }
  .app-stage .launcher-agent-drawer.is-expanded[data-app-id="campus-personal-agent"]::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    width: clamp(232px, 18vw, 292px);
    height: var(--chrome-height);
    border-right: 1px solid rgba(29,28,35,.06);
    background: color-mix(in srgb, #fff 58%, transparent);
    pointer-events: none;
  }
  .app-stage.app-theme-dark .launcher-agent-drawer.is-expanded[data-app-id="campus-personal-agent"]::before {
    border-right-color: rgba(255,255,255,.05);
    background: color-mix(in srgb, #18181b 58%, transparent);
  }
  .launcher-agent-drawer.is-expanded .secondary-app-expand-control {
    top: calc(var(--chrome-height) + 12px);
  }
  .launcher-agent-drawer.is-expanded.is-agent-chat .secondary-agent-toolbar {
    top: var(--chrome-height);
  }
  .launcher-agent-drawer.is-expanded.is-agent-chat .secondary-agent-actions-control,
  .launcher-agent-drawer.is-expanded.is-agent-chat .secondary-app-expand-control,
  .launcher-agent-drawer.is-expanded.is-agent-chat .secondary-app-close-control {
    top: calc(var(--chrome-height) + 10px);
  }
  .launcher-agent-drawer.is-expanded.is-agent-chat .launcher-agent-loading,
  .launcher-agent-drawer.is-expanded.is-agent-chat .launcher-agent-failure {
    top: calc(var(--chrome-height) + 54px);
  }
  .launcher-agent-drawer.is-expanded .launcher-agent-drag-handle {
    top: var(--chrome-height);
    cursor: default;
  }
}
.launcher-agent-drawer.is-closed {
  visibility: hidden;
  pointer-events: none;
}
.launcher-agent-loading {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--campus-mobile-search-background);
  color: var(--campus-mobile-chrome-muted);
}
.launcher-agent-loading::after {
  content: "";
  width: 24px;
  height: 24px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: button-spinner-spin 760ms linear infinite;
}
.launcher-agent-failure {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 28px;
  background: var(--campus-mobile-search-background);
  color: var(--campus-mobile-chrome-foreground);
  text-align: center;
}
.launcher-agent-failure p { max-width: 34ch; margin: 0; color: var(--campus-mobile-chrome-muted); }
.launcher-agent-failure button {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.launcher-agent-frame {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  /* WebKit paints a new iframe's about:blank canvas before the child document
     can apply its theme. Match the account theme during that gap so opening a
     dark secondary app never exposes a white frame. */
  background: var(--campus-mobile-search-background);
  color-scheme: inherit;
  opacity: 0;
}
.launcher-agent-frame.is-ready {
  /* URL readiness is retained for shell bookkeeping, but only the exact DOM
     document that posted campus.app.ready receives this paint token. A
     recreated iframe therefore stays covered even when its URL was ready. */
  opacity: var(--campus-secondary-document-opacity, 0);
}
@keyframes launcher-agent-in { from { opacity: 0; transform: translateX(22px) scale(.985); } }
@keyframes command-palette-in { from { opacity: 0; transform: translateY(-3px) scale(.975); } }

/* Embedded app chrome floats above the app surface. Keep the header quiet and
   structural so it reads cleanly over both the white launcher and app pages. */
.app-stage > .topbar {
  --topbar-gutter: clamp(22px, 4vw, 52px);
  z-index: 70;
  grid-row: 1;
  grid-column: 1;
  align-self: center;
  display: grid;
  /* Search measures this bounded center track and replaces its trigger in
     place when opened; the results remain a separate surface below it. Keep
     the field compact enough that the wider action side, including Wallet
     balance, stays clear of the field. */
  grid-template-columns: minmax(0, 1fr) minmax(320px, min(620px, 36vw)) minmax(0, 1fr);
  width: min(calc(100% - 32px), calc(var(--campus-frame-width) - 32px));
  height: 72px;
  margin: 0 auto;
  padding: 0 var(--topbar-gutter);
  border: 1px solid #e5e7eb;
  border-radius: 28px;
  corner-shape: squircle;
  background: rgba(255,255,255,.96);
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.035);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  transition: transform .24s cubic-bezier(.2,.75,.2,1), opacity .18s ease;
}
.app-stage > .topbar::before {
  display: none;
}
.app-stage > .topbar > * { position: relative; z-index: 1; }
.app-stage > .topbar .topbar-leading { grid-column: 1; justify-self: start; }
.app-stage > .topbar > .campus-search {
  grid-column: 2;
  width: 100%;
  min-width: 0;
  margin: 0;
}
.app-stage > .topbar .topbar-trailing {
  grid-column: 3;
  justify-self: end;
  margin-left: 0;
  transform: translateX(16px);
}
.app-stage > .app-page-topbar .topbar-back {
  left: calc(-1 * var(--topbar-gutter));
  z-index: 2;
}
.app-stage > .topbar .campus-search.open { z-index: 50; }
.app-stage > .menu-dismiss-layer { z-index: 60; }
.app-stage > .app-frames > .app-frame-wrap { z-index: 0; grid-row: 1 / -1; grid-column: 1; }
/* Every app owns one full-viewport surface. CampusSDK publishes the trusted
   chrome insets so app content can clear the bar without shrinking its iframe. */
.app-stage > .topbar .wallet-balance-button,
.app-stage > .topbar .agent-trigger,
.app-stage > .topbar .notification-trigger,
.app-stage > .topbar .account-trigger {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.app-stage > .topbar .campus-search-trigger,
.app-stage > .topbar .campus-search-form,
.app-stage > .topbar .agent-trigger,
.app-stage > .topbar .notification-trigger { color: #59616c; }
.app-stage > .topbar .campus-search-trigger .campus-icon,
.app-stage > .topbar .campus-search-form .campus-icon,
.app-stage > .topbar .agent-trigger-icon .campus-icon,
.app-stage > .topbar .notification-bell .campus-icon {
  width: 19px;
  height: 19px;
  stroke-width: 1.85;
}
.app-stage > .topbar .campus-search-shortcut {
  border-color: #dedfe3;
  background: transparent;
  box-shadow: none;
  color: #777b83;
}
.app-stage > .topbar .wallet-balance-button:hover,
.app-stage > .topbar .agent-trigger:hover,
.app-stage > .topbar .agent-trigger[aria-expanded="true"],
.app-stage > .topbar .notification-trigger:hover,
.app-stage > .topbar .notification-trigger[aria-expanded="true"],
.app-stage > .topbar .account-trigger:hover,
.app-stage > .topbar .account-trigger[aria-expanded="true"] { border-color: transparent; background: #f3f4f6; box-shadow: none; }
.app-stage > .topbar .wallet-balance-button {
  border-color: #e7e5e1;
  background: #f7f6f3;
  color: #574c3a;
  box-shadow: none;
}
.app-stage > .topbar .wallet-balance-unit { color: #81735e; }
.app-stage > .topbar .wallet-balance-button:hover {
  border-color: #dfdcd6;
  background: #f1efeb;
  box-shadow: none;
}
@supports (-webkit-backdrop-filter: blur(1px)) {
  .app-stage > .topbar {
    border-color: rgba(17,24,39,.1);
    background: rgba(255,255,255,.9);
    -webkit-backdrop-filter: blur(16px);
  }
}

.launcher-flashes {
  position: fixed;
  z-index: 68;
  top: calc(var(--chrome-height) + 8px);
  right: max(18px, env(safe-area-inset-right));
  width: min(390px, calc(100vw - 36px));
  display: grid;
  gap: 9px;
  pointer-events: none;
}
.notification-flash-app-surface {
  position: fixed;
  z-index: 67;
  top: calc(var(--chrome-height) + 8px);
  right: max(18px, env(safe-area-inset-right));
  width: min(390px, calc(100vw - 36px));
  height: var(--notification-flash-height, 1px);
  overflow: hidden;
  transition: opacity .16s ease;
}
.notification-flash-app-surface.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.notification-flash-frame {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: transparent;
}
/* Persistent Wallet lifecycle prompts belong to Home. Welcome remains visible
   while its destination crosses the readiness boundary; other prompts return
   whenever Home is presented until their underlying condition is resolved. */
.app-stage:not(.mobile-home-tab):not(.setup-launch-pending) .launcher-flashes.has-single-persistent,
.app-stage:not(.mobile-home-tab):not(.setup-launch-pending) .launcher-flash.is-persistent {
  display: none;
}
@media (min-width: 761px) {
  .launcher-flashes.has-persistent-home {
    z-index: 72;
    top: calc(var(--chrome-height) - 20px);
    right: calc(max(24px, env(safe-area-inset-right)) + 20px);
    width: min(360px, calc(100vw - 64px));
  }
  .launcher-flash.is-persistent-home .launcher-flash-main {
    min-height: 44px;
    gap: 10px;
    padding: 10px 12px;
  }
  .launcher-flash.is-persistent-home .launcher-flash-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 12px;
  }
}
.launcher-flash {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  overflow: hidden;
  border: 1px solid rgba(20,28,38,.12);
  border-radius: 20px;
  background: rgba(255,255,255,.96);
  color: #171a1f;
  box-shadow: 0 18px 54px rgba(21,28,38,.18), 0 2px 8px rgba(21,28,38,.08);
  pointer-events: auto;
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  animation: launcher-flash-in .28s cubic-bezier(.2,.85,.25,1) both;
}
.launcher-flash.is-persistent { grid-template-columns: minmax(0, 1fr); }
.launcher-flash-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 8px 12px 14px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.launcher-flash-main:disabled,
.launcher-flash-dismiss:disabled,
.launcher-flash-action:disabled { cursor: wait; opacity: .62; }
.launcher-flash-main:focus-visible,
.launcher-flash-dismiss:focus-visible,
.launcher-flash-action:focus-visible { outline: 2px solid rgba(29,155,240,.55); outline-offset: -3px; }
.launcher-flash-icon {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 14px;
  background: #eef3ff;
  color: #335fbf;
  font-size: 19px;
  font-weight: 760;
}
.launcher-flash-copy { min-width: 0; display: grid; gap: 2px; }
.launcher-flash-copy strong,
.launcher-flash-eyebrow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.launcher-flash-eyebrow { color: #737a85; font-size: 9px; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; }
.launcher-flash-copy strong { color: inherit; font-size: 14px; line-height: 1.25; }
.launcher-flash-body {
  overflow: hidden;
  color: #646b75;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.launcher-flash.layout-standard .launcher-flash-body {
  display: -webkit-box;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.launcher-flash-dismiss {
  width: 34px;
  height: 38px;
  display: grid;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8a919a;
  cursor: pointer;
  place-items: center;
  font: inherit;
  font-size: 19px;
}
.launcher-flash-dismiss:hover { color: #343a42; }
.launcher-flash-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  padding: 0 12px 12px;
}
.launcher-flash-action {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(31,41,55,.13);
  border-radius: 11px;
  background: #f5f6f7;
  color: #343941;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 720;
}
.launcher-flash-action.is-primary { border-color: #147bd1; background: #1687e5; color: #fff; }
.launcher-flash-action.is-danger { border-color: rgba(203,48,62,.18); background: rgba(218,55,68,.1); color: #bd2e3b; }
.launcher-flash.tone-success .launcher-flash-icon { background: #e8f8ef; color: #21814d; }
.launcher-flash.tone-warning .launcher-flash-icon { background: #fff4d8; color: #8f6614; }
.launcher-flash.tone-critical { border-color: rgba(218,55,68,.22); }
.launcher-flash.tone-critical .launcher-flash-icon { background: rgba(218,55,68,.11); color: #ca3342; }
.launcher-flashes.has-permission-request {
  z-index: 120;
  inset: 0;
  width: auto;
  min-height: 100dvh;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  background: rgba(8,11,18,.54);
  -webkit-backdrop-filter: blur(14px) saturate(80%);
  backdrop-filter: blur(14px) saturate(80%);
  pointer-events: auto;
}
.launcher-flashes.has-permission-request .launcher-flash.layout-permission {
  width: min(410px, calc(100vw - 36px));
  grid-template-columns: minmax(0, 1fr);
  border-radius: 28px;
  box-shadow: 0 34px 110px rgba(5,8,14,.38), 0 3px 14px rgba(5,8,14,.16);
}
.launcher-flashes.has-permission-request .launcher-flash-main {
  min-height: 260px;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 32px 28px 20px;
  text-align: center;
}
.launcher-flashes.has-permission-request .launcher-flash-icon {
  width: 86px;
  height: 86px;
  flex-basis: 86px;
  border-radius: 50%;
}
.launcher-flashes.has-permission-request .launcher-flash-copy {
  gap: 7px;
  justify-items: center;
}
.launcher-flashes.has-permission-request .launcher-flash-copy strong {
  font-size: 24px;
  letter-spacing: -.025em;
}
.launcher-flashes.has-permission-request .launcher-flash-body {
  max-width: 34ch;
  overflow: visible;
  color: #5f6670;
  font-size: 14px;
  line-height: 1.45;
  text-overflow: clip;
  white-space: normal;
}
.launcher-flashes.has-permission-request .launcher-flash-actions {
  display: grid;
  padding: 0 20px 22px;
}
.launcher-flashes.has-permission-request .launcher-flash-action {
  min-height: 52px;
  border-radius: 17px;
  font-size: 14px;
}
@keyframes launcher-flash-in { from { opacity: 0; transform: translate3d(12px,-5px,0) scale(.98); } }
.app-stage.chrome-theme-dark .launcher-flash {
  border-color: rgba(255,255,255,.12);
  background: rgba(13,16,23,.96);
  color: #f4f6f8;
  box-shadow: 0 20px 58px rgba(0,0,0,.42), 0 2px 10px rgba(0,0,0,.28);
}
.app-stage.chrome-theme-dark .launcher-flash-eyebrow { color: #8f98a5; }
.app-stage.chrome-theme-dark .launcher-flash-body { color: #aeb5bf; }
.app-stage.chrome-theme-dark .launcher-flash-dismiss { color: #8f98a5; }
.app-stage.chrome-theme-dark .launcher-flash-dismiss:hover { color: #f4f6f8; }
.app-stage.chrome-theme-dark .launcher-flash-icon { background: rgba(92,132,235,.15); color: #9eb9ff; }
.app-stage.chrome-theme-dark .launcher-flash-action { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.075); color: #e8ebef; }
.app-stage.chrome-theme-dark .launcher-flash-action.is-primary { border-color: #2b91e6; background: #1687e5; color: #fff; }
.app-stage.chrome-theme-dark .launcher-flash-action.is-danger { border-color: rgba(255,91,104,.22); background: rgba(255,91,104,.13); color: #ff8d96; }
.app-stage.chrome-theme-dark .launcher-flash.tone-critical .launcher-flash-icon { background: rgba(255,91,104,.14); color: #ff7b86; }
@media (min-width: 761px) {
  .app-stage.chrome-theme-dark > .topbar {
    border-color: rgba(255,255,255,.12);
    background: rgba(12,15,21,.94);
    color: #f3f5f7;
    box-shadow:
      0 14px 36px rgba(0,0,0,.34),
      0 2px 8px rgba(0,0,0,.24),
      inset 0 1px rgba(255,255,255,.045);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }
  .app-stage.chrome-theme-dark > .topbar .brand-mark {
    background-image: url("/brand/campus-mark.svg");
  }
  .app-stage.chrome-theme-dark > .topbar .brand { color: #f6f7f9; }
  .app-stage.chrome-theme-dark > .topbar .topbar-back { color: #a5adb8; }
  .app-stage.chrome-theme-dark > .topbar .topbar-back:hover { color: #fff; }
  .app-stage.chrome-theme-dark > .topbar .campus-search-trigger,
  .app-stage.chrome-theme-dark > .topbar .campus-search-form,
  .app-stage.chrome-theme-dark > .topbar .agent-trigger,
  .app-stage.chrome-theme-dark > .topbar .notification-trigger { color: #aab2bd; }
  .app-stage.chrome-theme-dark > .topbar .campus-search-trigger,
  .app-stage.chrome-theme-dark > .topbar .campus-search-form {
    border-color: rgba(255,255,255,.14);
    background: rgba(255,255,255,.045);
    box-shadow: inset 0 1px rgba(255,255,255,.035);
  }
  .app-stage.chrome-theme-dark > .topbar .campus-search-input { color: #f1f3f5; }
  .app-stage.chrome-theme-dark > .topbar .campus-search-trigger:hover,
  .app-stage.chrome-theme-dark > .topbar .campus-search-trigger:focus-visible {
    border-color: rgba(255,255,255,.24);
    background: rgba(255,255,255,.075);
    color: #f1f3f5;
  }
  .app-stage.chrome-theme-dark > .topbar .campus-search-shortcut {
    border-color: rgba(255,255,255,.13);
    background: rgba(255,255,255,.055);
    color: #959daa;
  }
  .app-stage.chrome-theme-dark > .topbar .wallet-balance-button,
  .app-stage.chrome-theme-dark > .topbar .agent-trigger,
  .app-stage.chrome-theme-dark > .topbar .notification-trigger,
  .app-stage.chrome-theme-dark > .topbar .account-trigger {
    box-shadow: none;
  }
  .app-stage.chrome-theme-dark > .topbar .wallet-balance-button {
    border-color: rgba(239,190,81,.18);
    background: rgba(239,190,81,.1);
    color: #f2d48b;
  }
  .app-stage.chrome-theme-dark > .topbar .wallet-balance-unit { color: rgba(242,212,139,.72); }
  .app-stage.chrome-theme-dark > .topbar .wallet-balance-button:hover {
    border-color: rgba(239,190,81,.24);
    background: rgba(239,190,81,.15);
  }
  .app-stage.chrome-theme-dark > .topbar .notification-trigger:hover,
  .app-stage.chrome-theme-dark > .topbar .agent-trigger:hover,
  .app-stage.chrome-theme-dark > .topbar .agent-trigger[aria-expanded="true"],
  .app-stage.chrome-theme-dark > .topbar .notification-trigger[aria-expanded="true"],
  .app-stage.chrome-theme-dark > .topbar .account-trigger:hover,
  .app-stage.chrome-theme-dark > .topbar .account-trigger[aria-expanded="true"] {
    background: rgba(255,255,255,.08);
    color: #f2f4f7;
  }
  .app-stage.chrome-theme-dark > .topbar .notification-badge {
    border-color: #0c0f15;
  }
}

@media (max-width: 1120px) and (min-width: 981px) {
  .login-headline { font-size: clamp(48px,5.6vw,64px); }
  .login-hero { gap: 24px; }
  .auth-visual-stage { width: 320px; }
  .auth-visual { width: 430px; }
  .auth-visual-stage .login-concept-note-virtual {
    top: 58%;
    right: 0;
    left: auto;
    width: 230px;
  }
  .auth-visual-stage .login-concept-note-intelligent {
    top: 7%;
    right: calc(100% - 30px);
    width: 240px;
  }
}

@media (max-width: 1120px) {
  .auth-shell { overflow: auto; }
  .setup-panel { position: static; width: min(390px,100%); padding: 12px 0 0; transform: none; }
}

@media (max-width: 980px) {
  .login-hero { position: relative; grid-template-columns: 1fr; align-content: center; gap: 34px; }
  .login-pane { width: min(650px,100%); }
  .auth-visual-stage { position: static; width: 100%; height: auto; margin-top: -34px; justify-self: start; }
  .auth-visual { display: none; }
  .auth-visual-stage .login-concept-note { position: static; width: min(520px,100%); max-width: 520px; margin-top: 34px; }
}

@media (max-height: 780px) and (min-width: 981px) {
  .login-hero { padding: 20px 0 44px; }
  .login-pane { gap: 18px; }
  .login-headline { font-size: clamp(46px,4.7vw,62px); }
}

@media (max-width: 760px) {
  :root {
    --campus-mobile-topbar-height: calc(52px + env(safe-area-inset-top));
    --campus-mobile-home-alert-slot-height: 86px;
    --campus-chrome-height: var(--campus-mobile-topbar-height);
    --campus-bottom-chrome-height: calc(50px + env(safe-area-inset-bottom));
  }
  body:has(.app-stage.mobile-home-alert) {
    --campus-chrome-height: calc(var(--campus-mobile-topbar-height) + var(--campus-mobile-home-alert-slot-height));
  }
  .target-frame-wrap {
    --app-open-offset-y: 26px;
    --app-open-scale: .945;
    --app-open-radius: 32px;
  }
  .target-frame-wrap:not(.is-cached):not(.is-staging):not(.is-refresh-promoted) {
    animation-duration: .4s;
  }
  .launcher-frame-wrap.is-cached { transition-delay: .4s; }
  input, textarea, select, [contenteditable]:not([contenteditable="false"]) { font-size: 16px !important; }
  .auth-shell {
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
  }
  .login-layout { min-height: 100vh; min-height: 100dvh; grid-template-rows: 74px auto; padding: 0 18px; }
  .auth-brand { font-size: 17px; }
  .login-hero { position: relative; overflow: hidden; isolation: isolate; gap: 14px; padding: 48px 0 70px; }
  .login-pane { gap: 21px; padding: 0; transform: none; }
  .auth-visual-stage { width: 100%; height: 120px; margin-top: 0; }
  .auth-visual {
    z-index: 1;
    top: 47%;
    left: 59%;
    display: block;
    width: min(670px,172vw);
    opacity: .23;
    filter: saturate(.72) brightness(.72);
    -webkit-mask-image: radial-gradient(ellipse 54% 58% at 55% 47%, #000 46%, transparent 94%);
    mask-image: radial-gradient(ellipse 54% 58% at 55% 47%, #000 46%, transparent 94%);
  }
  .auth-visual-halo { opacity: .3; }
  .auth-visual-stage .login-concept-note {
    position: relative;
    z-index: 4;
    inset: auto;
    width: 100%;
    max-width: none;
    margin-top: 0;
  }
  .login-headline { font-size: clamp(43px,13vw,58px); }
  .login-concept-note { max-width: none; padding-left: 18px; }
  .login-actions, .passkey-button, .setup-disclosure, .setup-disclosure summary { width: 100%; }
  .setup-panel { position: static; width: 100%; padding: 12px 0 0; }
  .signup-card { padding: 20px; }
  .auth-notice { top: 68px; right: 16px; left: 16px; }
  .topbar { --topbar-gutter: 18px; }
  .app-stage { --chrome-height: var(--campus-chrome-height); }
  .app-stage > .topbar {
    --topbar-gutter: 0px;
    align-self: start;
    min-width: 0;
    width: 100%;
    max-width: 100vw;
    height: var(--campus-chrome-height);
    margin: 0;
    padding: env(safe-area-inset-top) max(10px, env(safe-area-inset-right)) calc(var(--campus-chrome-height) - var(--campus-mobile-topbar-height)) max(10px, env(safe-area-inset-left));
    grid-template-columns: 1fr auto 1fr;
    border: 0;
    border-bottom: 0;
    border-radius: 0;
    background: var(--campus-mobile-chrome-background);
    color: var(--campus-mobile-chrome-foreground);
    box-shadow: none;
    opacity: var(--campus-mobile-chrome-opacity, 1);
    transform: translate3d(0, var(--campus-mobile-topbar-shift, 0%), 0);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    will-change: transform, opacity;
    transition: transform .24s cubic-bezier(.2,.75,.2,1), opacity .2s linear;
  }
  .app-stage > .topbar::before {
    display: none;
  }
  .launcher-flashes {
    top: var(--campus-chrome-height);
    right: 0;
    left: 0;
    width: auto;
    max-height: min(42dvh, 360px);
    overflow-x: hidden;
    overflow-y: auto;
    gap: 7px;
    padding: 8px max(8px, env(safe-area-inset-right)) 9px max(8px, env(safe-area-inset-left));
    scrollbar-width: none;
  }
  .notification-flash-app-surface {
    top: var(--campus-chrome-height);
    right: max(8px, env(safe-area-inset-right));
    left: max(8px, env(safe-area-inset-left));
    width: auto;
    max-height: min(42dvh, 360px);
  }
  .app-stage.mobile-home-alert .launcher-flashes.has-single-persistent {
    z-index: 71;
    top: var(--campus-mobile-topbar-height);
    max-height: var(--campus-mobile-home-alert-slot-height);
    overflow: hidden;
    transition: transform .24s cubic-bezier(.2,.75,.2,1), opacity .18s ease;
  }
  .launcher-flashes.has-permission-request {
    inset: 0;
    width: auto;
    max-height: none;
    overflow: hidden;
    transform: none;
  }
  .launcher-flashes.has-permission-request .launcher-flash.layout-permission { width: min(390px, calc(100vw - 28px)); }
  .launcher-flashes::-webkit-scrollbar { display: none; }
  .app-stage.mobile-home-alert.mobile-chrome-minimized .launcher-flashes.has-single-persistent {
    display: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(-1 * var(--campus-chrome-height)));
  }
  .launcher-flash { border-radius: 17px; box-shadow: 0 10px 34px rgba(21,28,38,.18), 0 2px 7px rgba(21,28,38,.07); }
  .app-stage.chrome-theme-light .launcher-flash.is-persistent-home {
    box-shadow: 0 2px 10px rgba(21,28,38,.09);
  }
  .launcher-flash-main { min-height: 64px; padding: 10px 6px 9px 11px; }
  .launcher-flash-icon { width: 40px; height: 40px; flex-basis: 40px; border-radius: 13px; }
  .launcher-flash-actions { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; padding: 0 9px 9px; }
  .launcher-flash-action { width: 100%; min-height: 38px; }
  @keyframes launcher-flash-in { from { opacity: 0; transform: translate3d(0,-8px,0) scale(.985); } }
  .app-stage.mobile-chrome-minimized > .topbar {
    pointer-events: none;
  }
  .app-stage.mobile-chrome-minimized > .mobile-tabbar {
    pointer-events: none;
  }
  .app-stage > .topbar .topbar-leading {
    grid-row: 1;
    grid-column: 2;
    justify-self: center;
  }
  .app-stage > .app-page-topbar .topbar-back {
    display: none;
  }
  .topbar-leading .brand { margin-left: 0; }
  .app-page-topbar .topbar-leading,
  .owned-app-topbar .topbar-leading { max-width: none; }
  .topbar .brand-name { display: none; }
  .app-stage > .topbar .brand-mark { background-image: var(--campus-mobile-chrome-logo); }
  .app-stage > .topbar .topbar-trailing,
  .app-stage > .topbar .topbar-actions { display: contents; }
  .app-stage > .topbar > .campus-search,
  .app-stage > .topbar > .campus-search.open { display: none; }
  .app-stage > .topbar .wallet-balance-button {
    grid-row: 1;
    grid-column: 3;
    justify-self: end;
    width: auto;
    min-width: 0;
    max-width: min(34vw, 128px);
    height: 30px;
    min-height: 30px;
    overflow: hidden;
    padding: 0 9px;
    gap: 4px;
    border: 1px solid var(--campus-mobile-balance-border);
    border-radius: 999px;
    background: var(--campus-mobile-balance-background);
    color: var(--campus-mobile-balance-foreground);
    box-shadow: none;
  }
  .app-stage > .topbar .wallet-balance-button:hover,
  .app-stage > .topbar .wallet-balance-button:active {
    border-color: rgba(239,190,81,.28);
    background: rgba(239,190,81,.19);
    box-shadow: none;
  }
  .wallet-balance-amount { min-width: 0; overflow: hidden; font-size: 12.5px; font-weight: 720; text-overflow: ellipsis; }
  .wallet-balance-value { gap: 4px; }
  .wallet-balance-unit { color: var(--campus-mobile-balance-muted); font-size: 10px; font-weight: 600; }
  .wallet-balance-loading { width: 26px; height: 8px; }
  .app-stage > .topbar .notification-launcher-wrap { display: contents; }
  .app-stage > .topbar .agent-trigger { display: none; }
  .app-stage > .topbar .notification-trigger { display: none; }
  .app-stage .launcher-agent-drawer {
    top: var(--campus-chrome-height);
    right: 0;
    bottom: var(--campus-bottom-chrome-height);
    left: 0;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    background: var(--campus-mobile-search-background);
    box-shadow: none;
    animation: none;
  }
  .launcher-agent-drag-handle { display: none; }
  .secondary-app-expand-control { display: none; }
  .secondary-agent-toolbar { padding-right: 12px; }
  .secondary-agent-actions-control.campus-icon-button { right: 12px; }
  .launcher-agent-drawer:has(.secondary-agent-actions-control) .secondary-agent-toolbar { padding-right: 58px; }
  .secondary-agent-chooser { width: 100%; pointer-events: auto; }
  .secondary-agent-menu {
    right: 0;
    left: 0;
    width: auto;
    max-height: min(52dvh, 420px);
  }
  .app-stage.mobile-chrome-minimized .launcher-agent-drawer {
    top: env(safe-area-inset-top);
    bottom: env(safe-area-inset-bottom);
  }
  .login-chrome .brand-mark, .topbar .brand-mark { width: 30px; height: 30px; flex-basis: 30px; }
  .brand-name { font-size: 17px; }
  .app-stage > .topbar .account-menu-wrap {
    grid-row: 1;
    grid-column: 1;
    justify-self: start;
  }
  .account-trigger { width: 40px; height: 40px; min-height: 40px; padding: 0; }
  .app-stage > .topbar .account-trigger .avatar {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    box-shadow: 0 0 0 1px rgba(63,84,102,.08);
  }
  .account-menu {
    display: none;
  }
  .app-stage > .menu-dismiss-layer.account-drawer-dismiss-layer {
    z-index: 85;
    background: rgba(0,0,0,.47);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    animation: account-drawer-backdrop-in .24s ease both;
  }
  .mobile-account-drawer {
    position: fixed;
    z-index: 90;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(86vw, 348px);
    min-width: min(292px, 100vw);
    display: flex;
    overflow: hidden;
    flex-direction: column;
    padding: max(18px, env(safe-area-inset-top)) 0 max(16px, env(safe-area-inset-bottom));
    border-right: 1px solid var(--campus-mobile-drawer-border);
    background: var(--campus-mobile-drawer-background);
    color: var(--campus-mobile-drawer-foreground);
    box-shadow: 18px 0 64px rgba(0,0,0,.34);
    animation: account-drawer-in .3s cubic-bezier(.22,.78,.2,1) both;
  }
  .account-drawer-head {
    position: relative;
    display: grid;
    gap: 13px;
    padding: 9px 22px 23px;
  }
  .account-drawer-avatar {
    width: 54px;
    height: 54px;
    display: block;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform .14s ease, box-shadow .14s ease;
  }
  .account-drawer-avatar:active { transform: scale(.94); }
  .account-drawer-avatar:focus-visible {
    outline: 2px solid rgba(29,155,240,.72);
    outline-offset: 3px;
  }
  .account-drawer-avatar .avatar {
    width: 54px;
    height: 54px;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--campus-mobile-drawer-avatar-border);
    background: #e6eff4;
    box-shadow: 0 0 0 3px var(--campus-mobile-drawer-avatar-ring);
    clip-path: circle(50% at 50% 50%);
  }
  .account-drawer-close {
    position: absolute;
    top: 2px;
    right: 13px;
    width: 42px;
    height: 42px;
    display: grid;
    padding: 10px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--campus-mobile-drawer-foreground);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .account-drawer-close:active { background: var(--campus-mobile-drawer-active); transform: scale(.92); }
  .account-drawer-close:focus-visible,
  .account-drawer-row:focus-visible {
    outline: 2px solid rgba(29,155,240,.72);
    outline-offset: -2px;
  }
  .account-drawer-close .campus-icon { width: 21px; height: 21px; stroke-width: 2; }
  .account-drawer-identity { min-width: 0; display: grid; gap: 3px; }
  .account-drawer-identity strong,
  .account-drawer-identity span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .account-drawer-identity strong { font-size: 20px; font-weight: 760; letter-spacing: -.025em; }
  .account-drawer-identity span { color: var(--campus-mobile-drawer-muted); font-size: 14px; }
  .account-drawer-nav {
    display: grid;
    gap: 3px;
    padding: 10px 10px;
    border-top: 1px solid var(--campus-mobile-drawer-border);
  }
  .account-drawer-row {
    width: 100%;
    min-height: 57px;
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 0 13px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--campus-mobile-drawer-foreground);
    cursor: pointer;
    text-align: left;
    font: inherit;
    font-size: 17px;
    font-weight: 690;
    letter-spacing: -.012em;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .14s ease, transform .12s ease, color .14s ease;
  }
  .account-drawer-row:hover { background: var(--campus-mobile-drawer-pressed); }
  .account-drawer-row:active { background: var(--campus-mobile-drawer-active); transform: scale(.985); }
  .account-drawer-row:disabled { color: var(--campus-mobile-drawer-disabled); cursor: wait; }
  .account-drawer-row-icon { width: 25px; height: 25px; display: grid; flex: 0 0 25px; place-items: center; }
  .account-drawer-row-icon .campus-icon { width: 23px; height: 23px; stroke-width: 1.85; }
  .account-drawer-runtime {
    margin-top: auto;
    padding: 10px;
    border-top: 1px solid var(--campus-mobile-drawer-border);
  }
  .account-drawer-row.account-runtime-toggle {
    min-height: 70px;
    display: grid;
    grid-template-columns: 25px minmax(0,1fr) 46px;
    gap: 17px;
  }
  .account-drawer-row.account-runtime-toggle .account-menu-item-copy { gap: 3px; }
  .account-drawer-row.account-runtime-toggle .account-menu-item-label { color: inherit; font-size: 17px; font-weight: 690; }
  .account-drawer-row.account-runtime-toggle .account-menu-item-copy small { color: var(--campus-mobile-drawer-muted); font-size: 11.5px; font-weight: 520; line-height: 1.35; }
  .account-drawer-row.account-runtime-toggle .runtime-toggle-power { color: var(--campus-mobile-drawer-muted); }
  .account-drawer-row.account-runtime-toggle.is-paused .runtime-toggle-power { color: #34c759; }
  .account-drawer-row.account-runtime-toggle .account-menu-switch { width: 46px; height: 28px; }
  .account-drawer-row.account-runtime-toggle .account-menu-switch-thumb { width: 24px; height: 24px; }
  .account-drawer-row.account-runtime-toggle.is-paused .account-menu-switch-thumb { transform: translateX(18px); }
  .account-drawer-runtime-error { margin: 4px 7px 0; padding: 9px 10px; border-radius: 10px; background: rgba(255,69,58,.13); color: var(--campus-mobile-drawer-logout); font-size: 11px; font-weight: 570; line-height: 1.4; }
  .account-drawer-footer {
    margin-top: 0;
    padding: 10px 10px 0;
    border-top: 1px solid var(--campus-mobile-drawer-border);
  }
  .account-drawer-logout { color: var(--campus-mobile-drawer-logout); }
  @keyframes account-drawer-in {
    from { opacity: .72; transform: translateX(-100%); }
  }
  @keyframes account-drawer-backdrop-in {
    from { opacity: 0; }
  }
  .mobile-tabbar {
    position: fixed;
    z-index: 70;
    right: 0;
    bottom: 0;
    left: 0;
    height: var(--campus-bottom-chrome-height);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    padding: 2px max(8px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px, env(safe-area-inset-left));
    border-top: 0;
    background: var(--campus-mobile-chrome-background);
    opacity: var(--campus-mobile-chrome-opacity, 1);
    transform: translate3d(0, var(--campus-mobile-tabbar-shift, 0%), 0);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    will-change: transform, opacity;
    transition: transform .24s cubic-bezier(.2,.75,.2,1), opacity .2s linear;
  }
  .mobile-tab {
    position: relative;
    width: 100%;
    height: 47px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--campus-mobile-chrome-muted);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color .14s ease, transform .14s ease;
  }
  .mobile-tab:active { transform: scale(.91); }
  .mobile-tab:focus-visible { outline: 2px solid rgba(29,155,240,.34); outline-offset: -5px; border-radius: 14px; }
  .mobile-tab.active { color: var(--campus-mobile-chrome-foreground); }
  .mobile-tab-icon { width: 22px; height: 22px; display: grid; place-items: center; }
  .mobile-tab .campus-icon { stroke-width: 1.8; }
  .mobile-tab.active .campus-icon { stroke-width: 2.25; }
  .mobile-tab-badge {
    position: absolute;
    top: 4px;
    left: calc(50% + 5px);
    min-width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    padding: 0 4px;
    border: 2px solid var(--campus-mobile-badge-border);
    border-radius: 999px;
    background: #1d9bf0;
    color: #fff;
    font-size: 8px;
    font-weight: 760;
    line-height: 1;
  }
  .menu-dismiss-layer { background: rgba(26,26,30,.16); backdrop-filter: blur(2px); }
}

/* Fail-closed legacy-key recovery contains only the logout path. */
.paused-shell { min-height: 100vh; display: grid; place-items: center; padding: 36px 18px; background: #f5f5f6; color: #1d1d21; }
.paused-panel { width: min(620px, 100%); padding: clamp(25px, 5vw, 44px); border: 1px solid #dedee2; border-radius: 25px; background: #fff; box-shadow: 0 24px 70px rgba(20,20,25,.08); }
.paused-brand { display: flex; align-items: center; gap: 9px; color: #55555d; font-size: 13px; font-weight: 760; }
.paused-brand .brand-mark { width: 22px; height: 22px; }
.paused-heading { margin-top: 36px; }
.paused-kicker { color: #9a6b1d; font-size: 9px; font-weight: 850; letter-spacing: .16em; }
.paused-heading h1 { margin: 8px 0 0; font-size: clamp(37px, 8vw, 54px); line-height: 1; letter-spacing: -.06em; }
.paused-heading p { max-width: 520px; margin: 17px 0 0; color: #6e6e75; font-size: 13px; line-height: 1.65; }
.paused-caveat { margin: 24px 0 0; color: #8b8b92; font-size: 10px; line-height: 1.55; }
.paused-resume { width: 100%; margin-top: 18px; }
/* App-requested spending is approved only in trusted shell chrome. */
.payment-approval-backdrop { position: fixed; z-index: 120; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(20,20,24,.4); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.payment-approval-dialog { width: min(520px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 27px; border: 1px solid rgba(255,255,255,.7); border-radius: 23px; background: #fff; box-shadow: 0 32px 100px rgba(15,15,20,.28); animation: payment-approval-in .18s cubic-bezier(.2,.8,.2,1) both; }
.app-settings-approval-dialog { border-color: rgba(145,113,204,.28); }
.app-settings-approval-dialog .payment-approval-head span { color: #7150a7; }
@keyframes payment-approval-in { from { opacity: 0; transform: translateY(8px) scale(.985); } }
.payment-approval-head { display: flex; align-items: center; gap: 11px; }
.payment-approval-head .brand-mark { width: 30px; height: 30px; flex: 0 0 30px; }
.payment-approval-head div { display: grid; gap: 2px; }
.payment-approval-head span { color: #9a6b1d; font-size: 8px; font-weight: 850; letter-spacing: .13em; }
.payment-approval-head h2 { margin: 0; font-size: 21px; letter-spacing: -.035em; }
.payment-approval-intro { margin: 20px 0 0; color: #66666d; font-size: 12px; line-height: 1.6; }
.payment-approval-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 22px 0 0; }
.payment-approval-facts > div { min-width: 0; padding: 13px; border-radius: 12px; background: #f4f4f6; }
.payment-approval-facts .payment-approval-wide { grid-column: 1 / -1; }
.payment-approval-facts dt { color: #88888f; font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.payment-approval-facts dd { overflow: hidden; margin: 5px 0 0; color: #26262b; font-size: 12px; font-weight: 700; text-overflow: ellipsis; }
.payment-approval-facts code { display: block; overflow-wrap: anywhere; color: #57575f; font-size: 9px; font-weight: 550; line-height: 1.5; }
.payment-approval-note { margin: 16px 0 0; color: #85858c; font-size: 9px; line-height: 1.5; }
.payment-approval-error { margin: 13px 0 0; padding: 10px 11px; border-radius: 9px; background: #ffe9e5; color: #913f36; font-size: 10px; line-height: 1.45; }
.payment-approval-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.payment-approval-document { margin: 16px 0 0; }
.payment-approval-document summary { cursor: pointer; color: #66666d; font-size: 12px; font-weight: 700; }
.payment-approval-document pre { overflow: auto; max-height: 28vh; margin: 10px 0 0; padding: 12px; border-radius: 12px; background: #f4f4f6; color: #3a3a40; font-size: 10px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.wallet-recovery-dialog { width: min(590px, 100%); }
.wallet-recovery-words {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  user-select: text;
}
.wallet-recovery-words li {
  min-width: 0;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 11px 12px;
  border: 1px solid #e6e6e9;
  border-radius: 11px;
  background: #f7f7f8;
}
.wallet-recovery-words span { color: #9999a0; font-size: 9px; font-weight: 750; }
.wallet-recovery-words strong { overflow: hidden; color: #25252a; font-size: 13px; text-overflow: ellipsis; }
.wallet-recovery-warning {
  margin: 17px 0 0;
  padding: 13px 14px;
  border-radius: 11px;
  background: #fff4dc;
  color: #765315;
  font-size: 10px;
  line-height: 1.55;
}
.wallet-recovery-warning strong { display: block; color: #60420f; font-size: 11px; }

@media (max-width: 560px) {
  .payment-approval-backdrop { top: var(--campus-chrome-height); bottom: var(--campus-bottom-chrome-height); align-items: end; padding: 8px; }
  .payment-approval-dialog { width: 100%; max-height: calc(100dvh - var(--campus-chrome-height) - var(--campus-bottom-chrome-height) - 16px); padding: 24px 20px; border-radius: 24px; }
  .payment-approval-facts { grid-template-columns: 1fr 1fr; }
  .payment-approval-facts > div:first-child { grid-column: 1 / -1; }
  .wallet-recovery-words { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .payment-approval-actions, .payment-approval-actions .button { width: 100%; }
  .payment-approval-actions .button { flex: 1; }
}

@media (max-width: 360px) {
  .wallet-recovery-words { grid-template-columns: 1fr; }
  .wallet-recovery-actions { flex-direction: column-reverse; }
}

@media (max-width: 560px) {
  .paused-shell { padding: 0; background: #fff; }
  .paused-panel { min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
}

@media (max-width: 390px) {
  .app-page-topbar .brand-name { display: none; }
  .brand-name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .app-opening-icon { animation: none !important; opacity: .72; transform: none; }
  .launcher-frame-wrap.is-cached { transition-delay: 0s !important; }
  .target-frame-wrap:not(.is-cached):not(.is-staging):not(.is-refresh-promoted) { animation: none !important; transform: none; }
  .auth-system-route { stroke-dasharray: 1 1; opacity: .72; }
}

/* Desktop navigation: a persistent sidebar replaces the floating topbar. The
   sidebar and the app header take real layout space, so apps receive no top
   chrome inset on desktop. Mobile keeps its topbar, tab bar and drawer. */
.campus-sidebar,
.app-header,
.desktop-search-layer,
.desktop-search-frame { display: none; }
@media (min-width: 761px) {
  :root { --campus-chrome-height: 0px; }
  .app-stage,
  .app-stage.chromeless {
    --campus-sidebar-width: 264px;
    --campus-app-header-height: 0px;
    --chrome-height: var(--campus-app-header-height);
    /* The rail is a shade apart from the content, whose rounded top-left
       corner separates them instead of a divider line. */
    --sidebar-background: #f3f3f5;
    --sidebar-border: rgba(15,20,25,.08);
    --sidebar-ink: #1d2128;
    --sidebar-body: #30353d;
    --sidebar-icon: #4b525d;
    --sidebar-muted: #747b86;
    --sidebar-hover: rgba(15,20,25,.05);
    --sidebar-selected: rgba(15,20,25,.075);
    --sidebar-ring: rgba(15,20,25,.6);
    /* Money uses the finance tint, the same hue as the Wallet tile. */
    --sidebar-bits: #a8650f;
    --sidebar-bits-unit: #b57a37;
    --sidebar-bits-border: rgba(216,135,39,.35);
    --sidebar-bits-background: rgba(216,135,39,.1);
    grid-template-columns: var(--campus-sidebar-width) minmax(0, 1fr);
    grid-template-rows: var(--campus-app-header-height) minmax(0, 1fr);
  }
  .app-stage.chrome-theme-dark {
    --sidebar-background: #000000;
    --sidebar-border: rgba(255,255,255,.06);
    --sidebar-ink: #eceef2;
    --sidebar-body: #d7dae0;
    --sidebar-icon: #c9ccd3;
    --sidebar-muted: #6f7581;
    --sidebar-hover: rgba(255,255,255,.06);
    --sidebar-selected: rgba(255,255,255,.07);
    --sidebar-ring: rgba(255,255,255,.7);
    --sidebar-bits: #d88727;
    --sidebar-bits-unit: #b57a37;
    --sidebar-bits-border: rgba(216,135,39,.35);
    --sidebar-bits-background: rgba(216,135,39,.1);
  }
  .app-stage.sidebar-collapsed { --campus-sidebar-width: 60px; }
  .app-stage.has-app-header { --campus-app-header-height: 52px; }
  .app-stage.chromeless { --campus-sidebar-width: 0px; --campus-app-header-height: 0px; }
  .app-stage > .topbar,
  .app-stage > .mobile-tabbar { display: none; }
  .app-stage > .app-frames > .app-frame-wrap { grid-row: 2; grid-column: 2; }
  .app-stage > .app-opening-overlay,
  .app-stage > .app-refresh-error { left: var(--campus-sidebar-width); }
  .app-stage .launcher-agent-drawer.is-expanded { left: var(--campus-sidebar-width); }
  .launcher-flashes.has-persistent-home { top: calc(var(--chrome-height) + 14px); }

  /* Sidebar */
  .campus-sidebar {
    position: relative;
    z-index: 70;
    grid-row: 1 / -1;
    grid-column: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--sidebar-background);
    color: var(--sidebar-ink);
    font-size: 13.5px;
    -webkit-user-select: none;
    user-select: none;
  }
  .campus-sidebar.account-menu-open { z-index: 90; overflow: visible; }
  .campus-sidebar button {
    margin: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .campus-sidebar button:focus-visible,
  .campus-sidebar a:focus-visible { outline: 2px solid rgba(65,110,240,.45); outline-offset: -2px; }
  .campus-sidebar .campus-icon { width: 20px; height: 20px; stroke-width: 1.6; }
  .sidebar-header {
    height: 60px;
    flex: 0 0 60px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px 0 18px;
  }
  .sidebar-brand {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--sidebar-ink);
    text-decoration: none;
  }
  .sidebar-brand .brand-mark {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
    background-image: var(--campus-mobile-chrome-logo);
  }
  .sidebar-brand-name { overflow: hidden; font-size: 16px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
  .sidebar-toggle {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: grid;
    padding: 0;
    place-items: center;
    border-radius: 8px;
    color: var(--sidebar-muted) !important;
  }
  .sidebar-toggle:hover { background: var(--sidebar-hover) !important; color: var(--sidebar-ink) !important; }
  .sidebar-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 12px; }
  .sidebar-nav-item {
    position: relative;
    height: 34px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 8px;
    border-radius: 8px;
    color: var(--sidebar-body) !important;
    text-align: left;
  }
  .sidebar-nav-item:hover,
  .sidebar-app-row:hover { background: var(--sidebar-hover) !important; }
  .sidebar-nav-item.active,
  .sidebar-app-row.active { background: var(--sidebar-selected) !important; }
  .sidebar-nav-item:disabled { cursor: progress; opacity: .6; }
  .sidebar-nav-icon {
    position: relative;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: grid;
    place-items: center;
    color: var(--sidebar-icon);
  }
  .sidebar-nav-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    padding: 0 4px;
    border: 2px solid var(--sidebar-background);
    border-radius: 999px;
    background: #e34b53;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
  }
  .sidebar-nav-label { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sidebar-shortcut {
    color: var(--sidebar-muted);
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 10.5px;
  }
  .sidebar-scroll {
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 16px 12px;
    scrollbar-width: thin;
  }
  .sidebar-section { display: flex; flex-direction: column; gap: 2px; }
  .sidebar-section-label {
    margin: 0;
    padding: 0 8px 6px;
    color: var(--sidebar-muted);
    font-size: 11.5px;
    font-weight: 500;
    white-space: nowrap;
  }
  .sidebar-app {
    position: relative;
    height: 32px;
    flex: 0 0 32px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 8px;
    border-radius: 8px;
    color: var(--sidebar-body) !important;
    text-align: left;
  }
  .sidebar-app-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    color: #fff;
    font-size: 11px;
    line-height: 1;
  }
  .sidebar-app-name { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sidebar-account {
    position: relative;
    flex: 0 0 60px;
    display: flex;
    align-items: center;
    padding-right: 14px;
    border-top: 1px solid var(--sidebar-border);
  }
  .sidebar-account:has(.sidebar-account-trigger:hover),
  .sidebar-account:has(.sidebar-account-trigger[aria-expanded="true"]) { background: var(--sidebar-selected); }
  .sidebar-account-trigger {
    min-width: 0;
    height: 60px;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px 0 14px !important;
    border-radius: 0;
    text-align: left;
  }
  .sidebar-account-trigger .avatar {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: #e6eff4;
    box-shadow: none;
    clip-path: circle(50% at 50% 50%);
  }
  .sidebar-account-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
  .sidebar-account-copy strong { overflow: hidden; font-size: 13.5px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
  .sidebar-account-copy small { color: var(--sidebar-muted); font-size: 11.5px; white-space: nowrap; }
  .campus-sidebar .sidebar-balance {
    height: 24px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 0 9px;
    border: 1px solid var(--sidebar-bits-border);
    border-radius: 12px;
    background: var(--sidebar-bits-background);
    font-size: 11.5px;
    white-space: nowrap;
    transition: background-color .14s ease, border-color .14s ease;
  }
  .sidebar-balance:hover {
    border-color: var(--sidebar-bits) !important;
    background: color-mix(in srgb, var(--sidebar-bits) 16%, transparent) !important;
  }
  .sidebar-balance-amount { color: var(--sidebar-bits); font-weight: 600; font-variant-numeric: tabular-nums; }
  .sidebar-balance-unit { color: var(--sidebar-bits-unit); }

  /* Account menu: the shared popover in compact sidebar density. */
  .campus-sidebar .sidebar-account-menu {
    position: absolute;
    top: auto;
    right: auto;
    bottom: 68px;
    left: 12px;
    width: 248px;
    padding: 6px;
    border-radius: 12px;
    transform-origin: bottom left;
  }
  .app-stage.chrome-theme-dark .campus-sidebar .sidebar-account-menu {
    --campus-menu-glass: #14161c;
    --campus-menu-border: rgba(255,255,255,.1);
    --campus-menu-ink: #e2e4e9;
    --campus-menu-muted: #6f7581;
    --campus-menu-icon: #c9ccd3;
    --campus-menu-hover: rgba(255,255,255,.06);
    --campus-menu-divider: rgba(255,255,255,.08);
    --campus-menu-danger: #f07a7a;
    box-shadow: 0 16px 40px rgba(0,0,0,.5);
  }
  .sidebar-account-menu .campus-action-popover-header { display: none; }
  .sidebar-account-menu .campus-action-popover-item {
    min-height: 36px;
    gap: 12px;
    padding: 0 10px;
    border-radius: 8px;
    grid-template-columns: 20px minmax(0, 1fr);
  }
  .sidebar-account-menu .campus-action-popover-item.has-trailing { grid-template-columns: 20px minmax(0, 1fr) auto; }
  .sidebar-account-menu .campus-action-popover-item:hover:not(:disabled) { background: var(--campus-menu-hover); }
  .sidebar-account-menu .campus-action-popover-item-icon { width: 20px; height: 20px; }
  .sidebar-account-menu .campus-action-popover-item-copy strong { font-size: 13.5px; font-weight: 400; }
  .sidebar-account-menu .campus-action-popover-item:not(.account-runtime-toggle) .campus-action-popover-item-copy small { display: none; }
  .sidebar-account-menu .account-runtime-toggle { min-height: 52px; padding-block: 7px; }
  .sidebar-account-menu .account-runtime-toggle .campus-action-popover-item-copy small { font-size: 11.5px; }
  .sidebar-account-menu .account-menu-switch { width: 36px; height: 22px; }
  .sidebar-account-menu .account-menu-switch-thumb { width: 18px; height: 18px; }
  .sidebar-account-menu .account-runtime-toggle.is-paused .account-menu-switch { background: #3ecf8e; }
  .sidebar-account-menu .account-runtime-toggle.is-paused .account-menu-switch-thumb { transform: translateX(14px); }
  .sidebar-account-menu .account-menu-runtime {
    margin: 6px 0;
    padding: 6px 0;
    border-bottom: 1px solid var(--campus-menu-divider);
  }
  .sidebar-account-menu .campus-action-popover-item-danger { margin-top: 0; }
  .sidebar-account-menu .campus-action-popover-item-danger:hover { background: rgba(240,122,122,.08) !important; }
  @keyframes campus-sidebar-menu-in { from { opacity: 0; transform: translateY(4px) scale(.98); } }
  .campus-sidebar .sidebar-account-menu { animation-name: campus-sidebar-menu-in; }

  /* Collapsed rail */
  .campus-sidebar.is-collapsed { align-items: center; padding: 11px 0 12px; }
  .campus-sidebar.is-collapsed .sidebar-header { height: auto; flex: 0 0 auto; padding: 0; }
  .campus-sidebar.is-collapsed .sidebar-brand,
  .campus-sidebar.is-collapsed .sidebar-nav-label,
  .campus-sidebar.is-collapsed .sidebar-shortcut,
  .campus-sidebar.is-collapsed .sidebar-section-label,
  .campus-sidebar.is-collapsed .sidebar-app-name,
  .campus-sidebar.is-collapsed .sidebar-account-copy,
  .campus-sidebar.is-collapsed .sidebar-balance-unit { display: none; }
  .campus-sidebar.is-collapsed .sidebar-toggle { width: 38px; height: 38px; flex-basis: 38px; border-radius: 10px; }
  .campus-sidebar.is-collapsed .sidebar-nav { gap: 4px; padding: 4px 0 0; }
  .campus-sidebar.is-collapsed .sidebar-nav-item {
    width: 38px;
    height: 38px;
    justify-content: center;
    padding: 0;
    border-radius: 10px;
  }
  .campus-sidebar.is-collapsed .sidebar-nav-icon .campus-icon { width: 21px; height: 21px; }
  .campus-sidebar.is-collapsed .sidebar-scroll {
    width: 100%;
    align-items: center;
    padding: 0 0 8px;
    scrollbar-width: none;
  }
  .campus-sidebar.is-collapsed .sidebar-scroll::-webkit-scrollbar { display: none; }
  .campus-sidebar.is-collapsed .sidebar-section { align-items: center; gap: 8px; padding-top: 4px; }
  .campus-sidebar.is-collapsed .sidebar-section::before {
    content: "";
    width: 24px;
    height: 1px;
    margin: 4px 0;
    background: var(--sidebar-border);
  }
  .campus-sidebar.is-collapsed .sidebar-app-row,
  .campus-sidebar.is-collapsed .sidebar-app {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    padding: 0;
    border-radius: 9px;
    background: transparent !important;
  }
  .campus-sidebar.is-collapsed .sidebar-app-icon { width: 32px; height: 32px; flex-basis: 32px; border-radius: 9px; font-size: 14px; }
  .campus-sidebar.is-collapsed .sidebar-app-row.active .sidebar-app-icon,
  .campus-sidebar.is-collapsed .sidebar-account-trigger[aria-expanded="true"] .avatar {
    box-shadow: 0 0 0 2px var(--sidebar-background), 0 0 0 4px var(--sidebar-ring);
  }
  .campus-sidebar.is-collapsed .sidebar-account-trigger[aria-expanded="true"] .avatar { clip-path: none; }
  .campus-sidebar.is-collapsed .sidebar-account {
    flex-basis: auto;
    flex-direction: column-reverse;
    gap: 8px;
    padding: 0;
    border-top: 0;
    background: transparent;
  }
  .campus-sidebar.is-collapsed .sidebar-account-trigger {
    height: auto;
    flex-direction: column-reverse;
    gap: 8px;
    padding: 0 !important;
    background: transparent !important;
  }
  .campus-sidebar.is-collapsed .sidebar-balance { height: 20px; padding: 0 5px; border-color: transparent; background: transparent; font-size: 10.5px; }
  .campus-sidebar.is-collapsed .sidebar-account-menu { bottom: 0; left: 56px; }

  /* Unified header: Campus draws it for Home and every app. Identity, the
     app's actions, then the fixed system controls Agent, Settings and More.
     No background or border at rest; a hairline appears while content is
     scrolled beneath it. */
  .app-header {
    position: relative;
    z-index: 2;
    grid-row: 1;
    grid-column: 2;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px 0 16px;
    background: var(--campus-app-surface-background);
    color: var(--sidebar-ink);
  }
  .app-header::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: var(--sidebar-border);
    opacity: var(--campus-header-hairline-opacity, 0);
    transition: opacity .12s ease;
    pointer-events: none;
  }
  .app-header-identity { min-width: 0; flex: 1 1 0; display: flex; align-items: center; gap: 10px; }
  .app-header-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    color: #fff;
    font-size: 12px;
    line-height: 1;
  }
  .app-header-name {
    overflow: hidden;
    font-size: 14px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .app-header-actions,
  .app-header-system { flex: 0 0 auto; display: flex; align-items: center; gap: 2px; }
  .app-header-divider { width: 1px; height: 16px; margin: 0 4px; background: rgba(127,127,140,.22); }
  .header-icon-button {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--sidebar-muted);
    cursor: pointer;
  }
  .app-stage.chrome-theme-dark .header-icon-button { color: #9aa0ab; }
  .header-icon-button .campus-icon { width: 20px; height: 20px; stroke-width: 1.6; }
  .header-icon-button:hover { background: var(--sidebar-hover); color: var(--sidebar-ink) !important; }
  .header-icon-button.active { background: var(--sidebar-selected); color: var(--sidebar-ink) !important; }
  .header-icon-button.is-agent { color: var(--sidebar-ink) !important; }
  .app-stage.chrome-theme-dark .header-icon-button.is-agent.active { background: rgba(255,255,255,.1); }
  .header-icon-button:focus-visible { outline: 2px solid rgba(65,110,240,.45); outline-offset: -2px; }
  .header-menu-wrap { position: relative; }
  .header-menu {
    position: absolute;
    z-index: 95;
    top: 40px;
    right: 0;
    width: 260px;
    padding: 6px;
    border: 1px solid var(--layer-panel-border, rgba(15,20,25,.12));
    border-radius: 12px;
    background: var(--sidebar-background);
    box-shadow: var(--layer-panel-shadow, 0 16px 40px rgba(15,20,25,.2));
  }
  .app-stage.chrome-theme-dark .header-menu { background: #14161c; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
  .header-menu-heading { margin: 0; padding: 8px 10px 4px; color: var(--sidebar-muted); font-size: 11px; font-weight: 500; }
  .header-menu-item {
    width: 100%;
    min-height: 34px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--sidebar-body);
    font: inherit;
    font-size: 13.5px;
    text-align: left;
    cursor: pointer;
  }
  .header-menu-item .campus-icon { width: 19px; height: 19px; flex: 0 0 19px; color: var(--sidebar-muted); }
  .header-menu-item:hover { background: var(--sidebar-hover); color: var(--sidebar-ink); }
  .header-menu-item.is-danger { color: #f07a7a; }
  .header-menu-label { flex: 1 0 auto; white-space: nowrap; }
  .header-menu-meta {
    min-width: 0;
    flex: 0 1 auto;
    overflow: hidden;
    color: var(--sidebar-muted);
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Layers. Search and Notifications open over the current view, which stays
     mounted underneath; the sidebar row only shows that the layer is open. */
  .app-stage {
    --layer-panel-border: rgba(15,20,25,.12);
    --layer-panel-line: rgba(15,20,25,.08);
    --layer-panel-shadow: 0 32px 80px rgba(15,20,25,.22);
    --layer-search-scrim: rgba(15,20,25,.32);
    --layer-panel-scrim: rgba(15,20,25,.1);
    --palette-width: min(640px, calc(100vw - 48px));
    --palette-top: 14vh;
    --palette-input-height: 56px;
  }
  .app-stage.chrome-theme-dark {
    --layer-panel-border: rgba(255,255,255,.12);
    --layer-panel-line: rgba(255,255,255,.07);
    --layer-panel-shadow: 0 32px 80px rgba(0,0,0,.6);
    --layer-search-scrim: rgba(3,4,6,.6);
    --layer-panel-scrim: rgba(0,0,0,.2);
  }
  .app-stage > .secondary-surface-dismiss-layer {
    background: var(--layer-panel-scrim);
    animation: layer-scrim-in .12s ease-out both;
  }
  .app-stage > .secondary-surface-dismiss-layer.is-search {
    top: 0;
    background: var(--layer-search-scrim);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }
  @keyframes layer-scrim-in { from { opacity: 0; } }

  /* Search: one centered palette. The trusted field is its input row and
     the isolated Search app renders the results and footer directly below. */
  .desktop-search-layer {
    position: fixed;
    z-index: 82;
    top: var(--palette-top);
    right: 0;
    left: 0;
    display: flex;
    justify-content: center;
    pointer-events: none;
  }
  .desktop-search-layer .campus-search {
    width: var(--palette-width);
    min-width: 0;
    margin: 0;
    pointer-events: auto;
    animation: layer-scrim-in .12s ease-out both;
  }
  .desktop-search-frame {
    position: fixed;
    display: block;
    z-index: 80;
    top: var(--palette-top);
    right: 0;
    left: 0;
    width: var(--palette-width);
    height: calc(var(--palette-input-height) + min(calc(60vh - var(--palette-input-height)), 504px));
    margin-inline: auto;
    border: 1px solid var(--layer-panel-border);
    border-radius: 16px;
    background: var(--campus-mobile-search-background);
    box-shadow: var(--layer-panel-shadow);
    pointer-events: none;
    animation: layer-scrim-in .12s ease-out both;
  }
  .desktop-search-layer .campus-search.open .campus-search-form {
    height: var(--palette-input-height);
    grid-template-columns: 22px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 0 14px 0 18px;
    border: 1px solid transparent;
    border-bottom-color: var(--layer-panel-line);
    border-radius: 16px 16px 0 0;
    background: transparent;
    color: var(--campus-mobile-chrome-muted);
    box-shadow: none;
  }
  .desktop-search-layer .campus-search-trigger-icon .campus-icon { width: 22px; height: 22px; }
  .desktop-search-layer .campus-search-input {
    height: 100%;
    color: var(--campus-mobile-chrome-foreground);
    font-size: 16px;
  }
  .desktop-search-layer .campus-search-shortcut {
    padding: 2px 7px;
    border: 1px solid var(--layer-panel-border);
    border-radius: 6px;
    background: transparent;
    color: var(--campus-mobile-chrome-muted);
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 10.5px;
  }
  .app-stage .launcher-agent-drawer.secondary-app-surface.is-anchored[data-surface-mode="command-palette"] {
    --launcher-agent-drawer-width: var(--palette-width);
    --launcher-agent-drawer-height: min(calc(60vh - var(--palette-input-height)), 504px);
    z-index: 81;
    top: calc(var(--palette-top) + var(--palette-input-height));
    right: 0;
    left: 0;
    border: 1px solid transparent;
    border-top: 0;
    border-radius: 0 0 16px 16px;
    background: transparent;
    box-shadow: none;
    animation: layer-scrim-in .12s ease-out both;
  }
  @keyframes palette-in { from { opacity: 0; transform: scale(.98); } }


  /* Unread count: a pill at the row end, or a corner badge on the rail. */
  .sidebar-nav-badge { display: none; }
  .sidebar-nav-count {
    min-width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    border-radius: 9px;
    background: #3b7cf0;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
  }
  .campus-sidebar.is-collapsed .sidebar-nav-count { display: none; }
  .campus-sidebar.is-collapsed .sidebar-nav-badge {
    display: grid;
    top: -5px;
    right: -7px;
    background: #3b7cf0;
  }
}

/* Desktop multitasking: Pinned and Recent app shortcuts and the ⌥Tab
   switcher. Recent never stops an app; it only keeps a shortcut. */
.app-switcher-layer { display: none; }
@media (min-width: 761px) {
  .app-stage { --sidebar-app-dim: #6b717c; --sidebar-indicator: #1d2128; }
  .app-stage.chrome-theme-dark { --sidebar-app-dim: #a3a8b2; --sidebar-indicator: #eceef2; }
  .sidebar-app-row {
    position: relative;
    height: 32px;
    flex: 0 0 32px;
    display: flex;
    align-items: center;
    border-radius: 8px;
  }
  .sidebar-app-row .sidebar-app {
    min-width: 0;
    height: 100%;
    flex: 1;
    color: var(--sidebar-app-dim) !important;
  }
  .sidebar-app-row.visited .sidebar-app { color: var(--sidebar-ink) !important; }
  .sidebar-app-row.is-recent .sidebar-app { padding-right: 4px; }
  .sidebar-app-row::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -12px;
    width: 3px;
    height: 0;
    border-radius: 0 2px 2px 0;
    background: var(--sidebar-indicator);
    transform: translateY(-50%);
    transition: height .14s ease-out;
  }
  .sidebar-app-row.visited::before { height: 8px; }
  .sidebar-app-row.active::before { height: 18px; }
  .sidebar-app-remove {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: grid;
    place-items: center;
    margin-right: 4px !important;
    padding: 0;
    border-radius: 6px;
    color: var(--sidebar-muted) !important;
    opacity: 0;
  }
  .sidebar-app-remove .campus-icon { width: 16px; height: 16px; }
  .sidebar-app-row:hover .sidebar-app-remove,
  .sidebar-app-remove:focus-visible { opacity: 1; }
  .sidebar-app-remove:hover { background: var(--sidebar-hover) !important; color: var(--sidebar-ink) !important; }
  .sidebar-section + .sidebar-section { padding-top: 16px; }
  .sidebar-section-heading { display: flex; align-items: baseline; justify-content: space-between; }
  .sidebar-section-action {
    padding: 0 8px 6px !important;
    color: var(--sidebar-muted) !important;
    font-size: 11.5px !important;
    font-weight: 500;
  }
  .sidebar-section-action:hover { color: var(--sidebar-ink) !important; }
  .sidebar-show-more {
    height: 30px;
    flex: 0 0 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 8px !important;
    border-radius: 8px;
    color: var(--sidebar-muted) !important;
    font-size: 12.5px !important;
    text-align: left;
  }
  .sidebar-show-more:hover { color: var(--sidebar-ink) !important; }
  .sidebar-show-more-icon { width: 22px; text-align: center; font-size: 14px; }

  .campus-sidebar.is-collapsed .sidebar-scroll { align-self: stretch; overflow-x: hidden; }
  .campus-sidebar.is-collapsed .sidebar-section + .sidebar-section { padding-top: 4px; }
  .campus-sidebar.is-collapsed .sidebar-section-heading,
  .campus-sidebar.is-collapsed .sidebar-app-remove,
  .campus-sidebar.is-collapsed .sidebar-show-more { display: none; }
  .campus-sidebar.is-collapsed .sidebar-recent .sidebar-app-row:nth-child(n+7) { display: none; }
  /* The edge bar sits on the rail's left edge at any rail width. */
  .campus-sidebar.is-collapsed .sidebar-app-row::before { left: calc((var(--campus-sidebar-width, 60px) - 32px) / -2); }

  .app-switcher-layer {
    position: fixed;
    z-index: 95;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: var(--layer-search-scrim, rgba(3,4,6,.35));
    animation: layer-scrim-in .12s ease-out both;
  }
  .app-stage.chrome-theme-dark .app-switcher-layer { background: rgba(3,4,6,.35); }
  .app-switcher {
    max-width: min(100%, 880px);
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--layer-panel-border);
    border-radius: 20px;
    background: color-mix(in srgb, var(--sidebar-background) 96%, transparent);
    color: var(--sidebar-ink);
    box-shadow: var(--layer-panel-shadow);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    animation: palette-in .14s ease-out both;
  }
  .app-switcher-items { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
  .app-switcher-item {
    width: 96px;
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 12px 6px 10px;
    border-radius: 14px;
    color: var(--sidebar-muted);
    cursor: pointer;
  }
  .app-switcher-item.selected { background: var(--sidebar-selected); color: var(--sidebar-ink); }
  .app-switcher-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    font-size: 24px;
    line-height: 1;
  }
  .app-switcher-icon.is-home { background: var(--sidebar-selected); }
  .app-switcher-icon.is-home .brand-mark {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    background-image: var(--campus-mobile-chrome-logo);
  }
  .app-switcher-name {
    max-width: 100%;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .app-switcher-hint {
    margin: 0;
    color: var(--sidebar-muted);
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 10.5px;
    text-align: center;
  }
}

/* Installed desktop app drawing into the title bar (Window Controls Overlay).
   The sidebar runs to the top of the window and the window controls sit on it,
   like Slack or Linear. When the user restores the normal title bar, env()
   falls back to 0 and this media query stops matching. */
.window-titlebar { display: none; }
@media (min-width: 761px) and (display-mode: window-controls-overlay) {
  .app-stage { --titlebar-height: env(titlebar-area-height, 0px); }
  /* Only Home has no app header; give it the title-bar inset. App pages
     already start below their 60px header. */
  :root { --campus-chrome-height: env(titlebar-area-height, 0px); }
  body:has(.app-stage.has-app-header),
  body:has(.app-stage.chromeless) { --campus-chrome-height: 0px; }
  .window-titlebar {
    position: fixed;
    z-index: 69;
    top: 0;
    left: env(titlebar-area-x, 0);
    display: block;
    width: env(titlebar-area-width, 100%);
    height: env(titlebar-area-height, 0);
    -webkit-app-region: drag;
    app-region: drag;
  }
  .app-stage button,
  .app-stage input,
  .app-stage a,
  .app-stage [role="button"],
  /* Side panels (Notifications, the docked Agent chat) reach the top of the
     window; their in-frame controls, such as Close, must receive clicks
     instead of dragging the window. */
  .app-stage .launcher-agent-drawer:not(.is-closed),
  .app-stage .launcher-agent-drawer:not(.is-closed) iframe {
    -webkit-app-region: no-drag;
    app-region: no-drag;
  }
  /* Expanded: the logo and collapse button share the row to the right of the
     window controls (titlebar-area-x is about 78px on macOS). */
  .campus-sidebar:not(.is-collapsed) .sidebar-header {
    height: max(var(--titlebar-height), 32px);
    flex-basis: max(var(--titlebar-height), 32px);
    margin-bottom: 14px;
    padding-left: calc(env(titlebar-area-x, 0px) + 4px);
  }
  .campus-sidebar:not(.is-collapsed) .sidebar-brand .brand-mark { width: 20px; height: 20px; flex-basis: 20px; }
  .campus-sidebar:not(.is-collapsed) .sidebar-brand-name { font-size: 14px; }
  .campus-sidebar:not(.is-collapsed) .sidebar-toggle { width: 28px; height: 28px; flex-basis: 28px; }
  /* The rail is at least as wide as the window controls so they sit on the
     sidebar and its divider runs straight down beneath them. Its content
     moves down a row, below the controls. */
  .app-stage.sidebar-collapsed:not(.chromeless) {
    --campus-sidebar-width: max(60px, env(titlebar-area-x, 0px));
  }
  .campus-sidebar.is-collapsed { padding-top: calc(var(--titlebar-height) + 11px); }
  /* The app header starts just right of the sidebar; keep its content clear
     of controls that overhang a collapsed rail. */
  .app-header {
    padding-left: max(16px, calc(env(titlebar-area-x, 0px) - var(--campus-sidebar-width) + 12px));
  }
  .desktop-search-layer,
  .desktop-search-frame { margin-top: var(--titlebar-height); }
}

/* Agent chat. One chat surface in two sizes: docked beside the app (the app
   reflows and stays usable) or full as the Chats view. The shell owns the
   header: the Agent switcher on the left, actions and close on the right. */
.launcher-agent-drawer.is-agent-chat {
  --chrome-height: 0px;
  --agent-chat-header: 52px;
}
.secondary-agent-toolbar { height: var(--agent-chat-header, 54px); padding: 7px 136px 7px 8px; }
.launcher-agent-drawer:has(.secondary-agent-actions-control) .secondary-agent-toolbar { padding-right: 136px; }
.launcher-agent-drawer.is-agent-chat .launcher-agent-frame {
  height: calc(100% - var(--agent-chat-header));
  margin-top: var(--agent-chat-header);
}
.launcher-agent-drawer.is-agent-chat .launcher-agent-loading,
.launcher-agent-drawer.is-agent-chat .launcher-agent-failure { top: var(--agent-chat-header); }
.launcher-agent-drawer.is-agent-chat .secondary-agent-actions-control.campus-icon-button,
.launcher-agent-drawer.is-agent-chat .secondary-app-expand-control,
.launcher-agent-drawer.is-agent-chat .secondary-app-close-control {
  top: 10px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.launcher-agent-drawer.is-agent-chat .secondary-app-close-control { right: 10px; }
.launcher-agent-drawer.is-agent-chat .secondary-app-expand-control { right: 46px; }
.launcher-agent-drawer.is-agent-chat .secondary-agent-actions-control.campus-icon-button { right: 82px; }
.secondary-agent-chooser,
.secondary-agent-chooser-chevron { pointer-events: auto; }
.secondary-agent-chooser-summary {
  height: 40px;
  max-width: 280px;
  gap: 10px;
  padding: 0 8px 0 6px;
  border-radius: 10px;
}
.secondary-agent-chooser-copy strong { font-size: 13.5px; font-weight: 600; }
.secondary-agent-chooser-copy small {
  overflow: hidden;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.secondary-agent-chooser-chevron {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  border-radius: 0;
}
.secondary-agent-chooser-chevron::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.agent-tile {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  line-height: 1;
}
.agent-tile.is-medium { width: 28px; height: 28px; font-size: 14px; }
.agent-tile.is-small { width: 26px; height: 26px; border-radius: 8px; font-size: 13px; }
.agent-tile.is-campus { background: #eceef2; }
.agent-tile.is-campus .brand-mark {
  width: 62%;
  height: 62%;
  flex-basis: auto;
  background-image: url("/brand/campus-mark-on-light.svg");
}
.secondary-agent-menu {
  top: 52px;
  left: 0;
  width: min(330px, calc(100vw - 32px));
  gap: 0;
  border-radius: 12px;
}
.app-stage.app-theme-dark .secondary-agent-menu { background: #14161c; border-color: rgba(255,255,255,.1); box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.agent-switcher-section h3,
.agent-switcher-more > summary {
  margin: 0;
  padding: 8px 10px 4px;
  color: var(--campus-mobile-chrome-muted);
  font-size: 11px;
  font-weight: 500;
}
.agent-switcher-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px 7px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--campus-mobile-chrome-foreground);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.agent-switcher-option:hover { background: rgba(127,127,140,.1); }
.agent-switcher-option.active { background: rgba(127,127,140,.14); }
.agent-switcher-copy { min-width: 0; flex: 1; display: grid; gap: 1px; }
.agent-switcher-copy strong { overflow: hidden; font-size: 13.5px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.agent-switcher-copy small { overflow: hidden; color: var(--campus-mobile-chrome-muted); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.agent-switcher-check { color: var(--campus-mobile-chrome-foreground); font-size: 13px; }
.agent-switcher-more { margin-top: 4px; border-top: 1px solid rgba(127,127,140,.18); }
.agent-switcher-more > summary {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0;
  cursor: pointer;
  list-style: none;
}
.agent-switcher-more > summary::-webkit-details-marker { display: none; }
.agent-switcher-count { font-variant-numeric: tabular-nums; }
.agent-switcher-hint {
  margin: 4px 0 0;
  padding: 8px 10px 4px;
  border-top: 1px solid rgba(127,127,140,.18);
  color: var(--campus-mobile-chrome-muted);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10.5px;
}
@media (min-width: 761px) {
  /* Docked: a column on the right; the app column narrows beside it so the
     whole app stays visible next to the chat. Notifications reuse the same
     panel geometry but overlay the app instead. */
  .app-stage {
    --campus-agent-dock-width: min(400px, calc((100vw - var(--campus-sidebar-width)) / 2));
  }
  .app-stage:has(> .secondary-app-retained-surfaces .launcher-agent-drawer.is-agent-chat[data-surface-mode="docked"]:not(.is-closed):not(.is-expanded)) {
    grid-template-columns: var(--campus-sidebar-width) minmax(0, 1fr) var(--campus-agent-dock-width);
  }
  .app-stage .launcher-agent-drawer.is-agent-chat[data-surface-mode="docked"]:not(.is-expanded) {
    z-index: 75;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: var(--campus-agent-dock-width, 400px);
    height: auto;
    border: 0;
    border-left: 1px solid var(--sidebar-border);
    border-radius: 0;
    box-shadow: none;
    animation: none;
  }
  .app-stage .launcher-agent-drawer.is-agent-chat.is-expanded {
    padding-top: 0;
    border-left: 1px solid var(--sidebar-border);
  }
  .app-stage .launcher-agent-drawer.is-agent-chat.is-expanded[data-app-id="campus-personal-agent"]::before { display: none; }
  /* Notifications are a layer over the docked chat. */
  .app-stage .launcher-agent-drawer.is-anchored[data-anchor-target="notification-bell"] { z-index: 80; }

}

/* App settings sheet (the header's Settings control): one modal over a scrim. */
@media (min-width: 761px) {
  .app-stage:has(.launcher-agent-drawer[data-surface-mode="panel"]:not(.is-closed)) > .secondary-surface-dismiss-layer {
    background: rgba(3,4,6,.55);
  }
  .app-stage .launcher-agent-drawer.secondary-app-surface[data-surface-mode="panel"] {
    z-index: 85;
    top: 50%;
    right: auto;
    bottom: auto;
    left: 50%;
    width: min(640px, calc(100vw - 48px));
    height: min(560px, 80vh);
    border: 1px solid var(--layer-panel-border);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0,0,0,.55);
    transform: translate(-50%, -50%);
    animation: none;
  }
}


/* Home's header is only its controls, floating over Home's top-right corner;
   Home's content starts at the top instead of under a header row. */
@media (min-width: 761px) {
  .app-header.is-launcher {
    position: absolute;
    z-index: 3;
    top: 0;
    right: 0;
    left: var(--campus-sidebar-width);
    height: 52px;
    justify-content: flex-end;
    background: transparent;
    pointer-events: none;
  }
  .app-header.is-launcher::after { display: none; }
  .app-header.is-launcher > * { pointer-events: auto; }
  /* Home's setup card sits just below the floating header controls. */
  .app-stage:not(.has-app-header) .launcher-flashes.has-persistent-home { top: 56px; }
}
/* A wider collapsed rail (installed app or title-bar overlay) scales its
   controls with it instead of leaving them at the 60px sizes. */
@media (min-width: 761px) and (display-mode: standalone),
       (min-width: 761px) and (display-mode: window-controls-overlay) {
  .campus-sidebar.is-collapsed .sidebar-toggle,
  .campus-sidebar.is-collapsed .sidebar-nav-item { width: 46px; height: 46px; flex-basis: 46px; border-radius: 12px; }
  .campus-sidebar.is-collapsed .sidebar-nav-icon { width: 26px; height: 26px; flex-basis: 26px; }
  .campus-sidebar.is-collapsed .sidebar-nav-icon .campus-icon,
  .campus-sidebar.is-collapsed .sidebar-toggle .campus-icon { width: 24px; height: 24px; }
  .campus-sidebar.is-collapsed .sidebar-app-row,
  .campus-sidebar.is-collapsed .sidebar-app,
  .campus-sidebar.is-collapsed .sidebar-app-icon { width: 38px; height: 38px; flex-basis: 38px; border-radius: 11px; }
  .campus-sidebar.is-collapsed .sidebar-app-icon { font-size: 17px; }
  .campus-sidebar.is-collapsed .sidebar-app-row::before { left: calc((var(--campus-sidebar-width, 60px) - 38px) / -2); }
  .campus-sidebar.is-collapsed .sidebar-section { gap: 10px; }
  .campus-sidebar.is-collapsed .sidebar-section::before { width: 30px; }
  .campus-sidebar.is-collapsed .sidebar-account-trigger .avatar { width: 36px; height: 36px; flex-basis: 36px; }
  .campus-sidebar.is-collapsed .sidebar-balance { font-size: 12px; }
}

/* Content as a shape: no divider, a rounded top-left corner against the rail
   shade, and the header row centred on the same line as the sidebar toggle. */
@media (min-width: 761px) {
  .app-stage:not(.chromeless) { background: var(--sidebar-background); }
  .app-stage > .app-header { border-top-left-radius: 12px; }
  .app-stage:not(.chromeless):not(.has-app-header) > .app-frames > .app-frame-wrap { border-top-left-radius: 12px; }
  /* The toggle is centred 30px from the top (60px header row, or the rail's
     11px inset plus half its button); centre the header controls there too. */
  .app-header { padding-top: 8px; }
}
@media (min-width: 761px) and (display-mode: standalone) {
  /* The scaled 46px rail toggle keeps the same 30px centre line. */
  .campus-sidebar.is-collapsed { padding-top: 7px; }
}
@media (min-width: 761px) and (display-mode: window-controls-overlay) {
  /* Below the window controls, the rail keeps the same inset as standalone. */
  .campus-sidebar.is-collapsed { padding-top: calc(var(--titlebar-height) + 7px); }
}

/* An open header menu sits above the outside-click layer that closes it. */
@media (min-width: 761px) {
  .app-stage > .app-header.menu-open { z-index: 65; }
}

/* Unified header on phones: account pill (or Back) | identity | Agent, More.
   More opens a bottom sheet with the same items as the desktop menu. */
.mobile-header-leading,
.mobile-header-title,
.mobile-header-trailing,
.mobile-header-sheet { display: none; }
@media (max-width: 760px) {
  .app-stage > .topbar .wallet-balance-button,
  .app-stage > .topbar .account-menu-wrap,
  .app-stage > .app-page-topbar .topbar-leading { display: none; }
  .app-stage > .topbar .mobile-header-leading {
    grid-row: 1;
    grid-column: 1;
    justify-self: start;
    display: flex;
    align-items: center;
  }
  .app-stage > .topbar .mobile-header-title {
    grid-row: 1;
    grid-column: 2;
    min-width: 0;
    max-width: 52vw;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .mobile-header-title .app-header-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    color: #fff;
    font-size: 12px;
    line-height: 1;
  }
  .mobile-header-title strong {
    overflow: hidden;
    font-size: 15px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .app-stage > .topbar .mobile-header-trailing {
    grid-row: 1;
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
  }
  .mobile-header-button {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--campus-mobile-chrome-foreground);
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-header-button .campus-icon { width: 23px; height: 23px; stroke-width: 1.7; }
  .mobile-header-button.active,
  .mobile-header-button:active { background: var(--campus-mobile-drawer-pressed); }
  .app-stage > .topbar .mobile-header-leading { gap: 6px; }
  .mobile-account-avatar {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-account-avatar .avatar {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    overflow: hidden;
    padding: 0;
    border: 0;
    box-shadow: none;
    clip-path: circle(50% at 50% 50%);
  }
  .mobile-bits-pill {
    height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 0 10px;
    border: 1px solid var(--campus-mobile-balance-border);
    border-radius: 15px;
    background: var(--campus-mobile-balance-background);
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-bits-unit { color: #b57a37; font-size: 12px; }
  /* Like the collapsed desktop rail: just the number beside the avatar, so
     the header keeps its space. The button's label still says "bits". */
  .mobile-bits-pill { padding: 0 6px; border-color: transparent; background: transparent; }
  .mobile-bits-unit { display: none; }
  .mobile-account-bits { color: #d88727; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
  .app-stage:has(.mobile-header-sheet) > .menu-dismiss-layer {
    z-index: 85;
    background: rgba(0,0,0,.55);
  }
  .mobile-header-sheet {
    position: fixed;
    z-index: 90;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    padding: 8px 8px calc(16px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    background: var(--campus-mobile-drawer-background);
    color: var(--campus-mobile-drawer-foreground);
    animation: mobile-sheet-in .2s ease-out both;
  }
  .mobile-header-sheet-handle {
    width: 36px;
    height: 5px;
    margin: 0 auto 6px;
    border-radius: 3px;
    background: var(--campus-mobile-drawer-border);
  }
  .mobile-header-sheet h2 {
    margin: 4px 0 2px;
    padding: 6px 14px;
    color: var(--campus-mobile-drawer-muted);
    font-size: 13px;
    font-weight: 500;
  }
  .mobile-header-sheet hr { width: calc(100% - 28px); margin: 6px auto; border: 0; border-top: 1px solid var(--campus-mobile-drawer-border); }
  .mobile-header-sheet .header-menu-item {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--campus-mobile-drawer-foreground);
    font: inherit;
    font-size: 15.5px;
    text-align: left;
  }
  .mobile-header-sheet .header-menu-item .campus-icon { width: 22px; height: 22px; flex: 0 0 22px; color: var(--campus-mobile-drawer-muted); }
  .mobile-header-sheet .header-menu-item:active { background: var(--campus-mobile-drawer-pressed); }
  @keyframes mobile-sheet-in { from { transform: translateY(24px); opacity: 0; } }
}

/* Notifications use the docked chat's right-edge panel geometry, but as an
   overlay: the app keeps its width underneath. */
@media (min-width: 761px) {
  /* Notifications: a full-height overlay along the panel's right edge (the
     app keeps its width underneath), closed with its own × or the rail bell. */
  .app-stage .launcher-agent-drawer.secondary-app-surface.is-anchored[data-anchor-target="notification-bell"] {
    --launcher-agent-drawer-width: var(--campus-agent-dock-width, 400px);
    --launcher-agent-drawer-height: auto;
    z-index: 80;
    top: 1px;
    right: 9px;
    bottom: 9px;
    left: auto;
    width: var(--campus-agent-dock-width, 400px);
    height: auto;
    overflow: hidden;
    border: 0;
    border-left: 1px solid var(--campus-inner-divider, rgba(255,255,255,.06));
    border-radius: 0 11px 11px 0;
    background: var(--campus-panel, #0f1116);
    box-shadow: -16px 0 40px rgba(0, 0, 0, .28);
    animation: none;
  }
}

/* Collapsing or expanding the sidebar must not move its icons vertically:
   both states share one header row and one row grid, so every nav icon and
   app tile keeps its centre line and only the labels appear or disappear. */
@media (min-width: 761px) {
  .campus-sidebar { --sidebar-nav-row: 34px; --sidebar-app-row: 32px; --sidebar-head-row: 60px; }
  .sidebar-nav-item { height: var(--sidebar-nav-row); }
  .sidebar-app-row { height: var(--sidebar-app-row); flex-basis: var(--sidebar-app-row); }
  .campus-sidebar.is-collapsed { padding-top: 0; }
  .campus-sidebar.is-collapsed .sidebar-header {
    height: var(--sidebar-head-row);
    flex: 0 0 var(--sidebar-head-row);
    justify-content: center;
    padding: 0;
  }
  .campus-sidebar.is-collapsed .sidebar-nav { gap: 2px; padding: 0; }
  .campus-sidebar.is-collapsed .sidebar-nav-item { height: var(--sidebar-nav-row); flex-basis: auto; }
  .campus-sidebar.is-collapsed .sidebar-section { gap: 2px; padding-top: 0; }
  .campus-sidebar.is-collapsed .sidebar-app-row { height: var(--sidebar-app-row); flex-basis: var(--sidebar-app-row); }
  /* The rail's divider fills the band the Pinned/Recent headings occupy. */
  .campus-sidebar.is-collapsed .sidebar-section::before { margin: 19px 0 16px; }
  .campus-sidebar.is-collapsed .sidebar-section + .sidebar-section { padding-top: 0; }
  .campus-sidebar.is-collapsed .sidebar-section + .sidebar-section::before { margin-top: 18px; }
}
/* The installed app's scaled rail uses taller rows; expanded rows match. */
@media (min-width: 761px) and (display-mode: standalone),
       (min-width: 761px) and (display-mode: window-controls-overlay) {
  .campus-sidebar { --sidebar-nav-row: 40px; --sidebar-app-row: 38px; }
  .campus-sidebar.is-collapsed .sidebar-nav-item { height: var(--sidebar-nav-row); }
  .campus-sidebar.is-collapsed .sidebar-section { gap: 2px; }
}
/* Below the window controls the rail's header row starts under the title
   bar; the expanded header row sits beside the controls, so its spacing
   puts the first nav row on the same line as the rail's. */
@media (min-width: 761px) and (display-mode: window-controls-overlay) {
  .campus-sidebar.is-collapsed { padding-top: var(--titlebar-height); }
  .campus-sidebar.is-collapsed .sidebar-header { --sidebar-head-row: 52px; }
  .campus-sidebar:not(.is-collapsed) .sidebar-header {
    margin-bottom: calc(var(--titlebar-height) + 52px - max(var(--titlebar-height), 32px));
  }
}

/* Start page: the Campus Network scene. Its viewBox is cropped to the
   cluster; a radial mask dissolves the edges into the page instead of a
   hard box. Below 980px it sits under the actions at full strength. */
.auth-visual.auth-network {
  width: clamp(560px, 48vw, 760px);
  aspect-ratio: 940 / 680;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 80%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 80%, transparent 100%);
}
@media (max-width: 980px) {
  .auth-visual-stage:has(> .auth-network) { height: auto; margin-top: 0; }
  .auth-visual.auth-network {
    position: relative;
    z-index: 1;
    top: auto;
    left: auto;
    display: block;
    width: min(560px, 100%);
    margin: 0 auto;
    opacity: 1;
    filter: none;
    transform: none;
  }
}

/* Profile editor (account menu avatar or Edit profile): photo and display
   name, saved to the owner's profile file. Follows the shell theme. */
.profile-dialog {
  --profile-surface: #ffffff;
  --profile-ink: #1d2128;
  --profile-muted: #747b86;
  --profile-line: rgba(15,20,25,.1);
  --profile-field: #f3f3f5;
  width: min(420px, 100%);
  display: grid;
  gap: 18px;
  background: var(--profile-surface);
  color: var(--profile-ink);
}
.app-stage.chrome-theme-dark .profile-dialog {
  --profile-surface: #14161c;
  --profile-ink: #eceef2;
  --profile-muted: #8a909b;
  --profile-line: rgba(255,255,255,.08);
  --profile-field: #0d0f13;
  box-shadow: 0 30px 90px rgba(0,0,0,.55), inset 0 0 0 1px var(--profile-line);
}
.profile-dialog-head { display: flex; align-items: center; justify-content: space-between; }
.profile-dialog-head h2 { margin: 0; color: var(--profile-ink); font-size: 20px; }
.app-stage.chrome-theme-dark .profile-dialog .dialog-close { background: rgba(255,255,255,.08); color: var(--profile-muted); }
.profile-dialog-photo { display: flex; align-items: center; gap: 16px; }
.profile-dialog-photo .account-avatar { width: 72px; height: 72px; flex: 0 0 72px; font-size: 28px; }
.profile-dialog-photo-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-dialog .button { border-color: var(--profile-line); background: transparent; color: var(--profile-ink); }
.profile-dialog .button.primary { border-color: var(--profile-ink); background: var(--profile-ink); color: var(--profile-surface); }
.profile-photo-choose { cursor: pointer; }
.profile-dialog-field { display: grid; gap: 7px; }
.profile-dialog-field > span { color: var(--profile-muted); font-size: 12px; font-weight: 600; }
.profile-dialog-field input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--profile-line);
  border-radius: 10px;
  background: var(--profile-field);
  color: var(--profile-ink);
  font: inherit;
  font-size: 16px;
}
.profile-dialog-field small { color: var(--profile-muted); font-size: 12px; }
.profile-dialog-error { margin: 0; color: #e5484d; font-size: 13px; }
.profile-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.profile-dialog-actions .button { flex: 0 0 auto; min-width: 88px; }
/* The account menu's avatar opens the editor; a small pencil marks it. */
.account-menu-avatar-edit {
  position: relative;
  display: inline-grid;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.account-menu-avatar-badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--campus-menu-glass, #fff);
  color: var(--campus-menu-ink, #1d2128);
  box-shadow: 0 0 0 1px var(--campus-menu-border, rgba(0,0,0,.12));
}
.account-menu-avatar-badge .campus-icon { width: 10px; height: 10px; }

/* Landing hero (design handoff "Landing hero"). Desktop: the text block is
   anchored at its top, 46px above centre so its closed centre lines up with
   the network's hub; reveals and the Create form only grow downward. Below
   960px the network sits dimmed behind the text and the page scrolls. */
.auth-shell {
  --landing-left: max(24px, 6.2vw, calc((100vw - 1402px) / 2 + 87px));
  overflow-x: clip;
  overflow-y: visible;
  background: radial-gradient(ellipse 55% 45% at 90% 4%, rgba(60,40,110,.3), transparent 72%), #0a0b0e;
}
.auth-shell .auth-aura-cyan,
.auth-shell .auth-arc { display: none; }
.auth-network {
  /* Never wider than the space right of the text column (with the crop's
     empty margin overlapping it), so cubes don't sit under the headline. */
  --net-w: min(61.5vw, 980px, calc(100vw - var(--landing-left) - 420px));
  position: absolute;
  z-index: 1;
  /* The hub cube's visual centre (scene y 370, 35.3% down the crop) sits on
     the closed text block's centre: its top plus half its 292px height. */
  top: calc(max(96px, 50vh - 162px) + 146px - var(--net-w) * .2553);
  right: max(0px, calc((100vw - 1402px) / 2));
  width: var(--net-w);
  aspect-ratio: 940 / 680;
  pointer-events: none;
}
.auth-network-scrim { display: none; }
.auth-shell .login-layout {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
}
.auth-shell .login-chrome { position: absolute; top: 18px; left: var(--landing-left); height: 38px; }
.auth-shell .login-chrome .brand-mark { width: 38px; height: 38px; flex-basis: 38px; }
.auth-shell .auth-brand { gap: 10px; color: #eceef2; font-size: 18px; font-weight: 500; }
.auth-shell .login-hero { display: block; padding: 0; overflow: visible; }
.auth-shell .login-pane {
  position: absolute;
  top: max(96px, calc(50vh - 162px));
  left: var(--landing-left);
  width: min(560px, calc(100vw - 2 * var(--landing-left)));
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding: 0 0 48px;
  transform: none;
}
.auth-shell .login-headline {
  max-width: none;
  color: #eceef2;
  font-size: 64px;
  font-weight: 400;
  line-height: 70px;
  letter-spacing: -.045em;
}
.auth-shell .login-concept-link {
  border-bottom: 0;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.28);
  text-decoration-thickness: 1px;
  text-underline-offset: 8px;
  transition: text-decoration-color .16s ease, color .16s ease;
}
.auth-shell .login-concept-link:hover { color: inherit; text-decoration-color: rgba(255,255,255,.5); }
.auth-shell .login-concept-link[aria-expanded="true"] { color: #f29f45; text-decoration-color: #f29f45; }
.auth-shell .login-concept-note {
  position: static;
  width: auto;
  max-width: none;
  margin: -14px 0 0;
  padding: 14px 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(20,22,28,.8);
  color: #c9ccd3;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  animation: landing-reveal .2s ease-out both;
}
.auth-shell .login-concept-note strong { display: block; margin: 0 0 4px; color: #eceef2; font-size: 13px; font-weight: 600; letter-spacing: 0; }
.auth-shell .login-concept-note p { margin: 0; font-size: 15px; line-height: 1.5; }
@keyframes landing-reveal {
  from { max-height: 0; padding-block: 0; opacity: 0; }
  to { max-height: 260px; opacity: 1; }
}
.auth-shell .login-actions { position: relative; flex-wrap: nowrap; align-items: flex-start; gap: 11px; }
.auth-shell .button.primary.passkey-button {
  width: 148px;
  min-width: 148px;
  height: 48px;
  min-height: 48px;
  border-color: #eceef2;
  border-radius: 24px;
  background: #eceef2;
  color: #0a0b0e;
  font-size: 14px;
  font-weight: 500;
}
.auth-shell .setup-disclosure { position: static; }
.auth-shell .setup-disclosure summary {
  width: 137px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  background: transparent;
  color: #d7dae0;
  font-size: 14px;
  font-weight: 500;
}
.auth-shell .setup-disclosure summary:hover { border-color: rgba(255,255,255,.26); background: rgba(255,255,255,.04); }
.auth-shell .setup-disclosure[open] summary { border-color: rgba(242,159,69,.6); background: rgba(10,11,14,.4); color: #eceef2; }
.auth-shell .setup-panel {
  position: absolute;
  z-index: 3;
  top: calc(100% + 12px);
  right: auto;
  left: 0;
  width: min(400px, 100%);
  padding: 0;
  transform: none;
}
.auth-shell .signup-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: rgba(20,22,28,.85);
  box-shadow: none;
}
.auth-shell .signup-name { gap: 8px; color: #9aa0ab; font-size: 13px; font-weight: 400; }
.auth-shell .signup-name-field {
  min-height: 48px;
  padding-right: 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: #0a0b0e;
}
.auth-shell .signup-name-field input { min-height: 46px; padding: 0 0 0 14px; font-size: 16px; }
.signup-name-suffix {
  flex: 0 0 auto;
  color: #6f7581;
  font-family: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 14px;
}
.auth-shell .button.primary.signup-button {
  height: 48px;
  min-height: 48px;
  margin: 0;
  border-color: #f29f45;
  border-radius: 24px;
  background: #f29f45;
  color: #0a0b0e;
  font-size: 15px;
  font-weight: 600;
}
.auth-shell .button.primary.signup-button:hover:not(:disabled) { border-color: #f5ad5f; background: #f5ad5f; }
.auth-shell .button.primary.signup-button:disabled { opacity: .45; }

@media (max-width: 959px) {
  .auth-shell .auth-atmosphere { display: none; }
  .auth-network {
    position: fixed;
    z-index: 0;
    top: 20px;
    right: auto;
    left: calc(50vw - 365px);
    width: 720px;
    opacity: .4;
    filter: saturate(.85);
  }
  .auth-network-scrim {
    position: fixed;
    z-index: 1;
    inset: 0;
    display: block;
    background: linear-gradient(180deg, rgba(10,11,14,.80) 0%, rgba(10,11,14,.25) 14%, rgba(10,11,14,.45) 34%, rgba(10,11,14,.70) 62%, rgba(10,11,14,.92) 100%);
    pointer-events: none;
  }
  .auth-shell .login-layout { min-height: 100vh; min-height: 100dvh; padding: 16px 24px 40px; }
  .auth-shell .login-chrome { position: static; height: auto; }
  .auth-shell .login-chrome .brand-mark { width: 30px; height: 30px; flex-basis: 30px; }
  .auth-shell .auth-brand { font-size: 17px; }
  .auth-shell .login-pane { position: static; width: 100%; margin-top: 200px; gap: 0; padding: 0; }
  .auth-shell .login-headline { font-size: 44px; line-height: 48px; text-wrap: pretty; }
  .auth-shell .login-concept-note { margin-top: 18px; }
  .auth-shell .login-actions { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 28px; }
  .auth-shell .button.primary.passkey-button { width: 100%; height: 52px; border-radius: 26px; }
  .auth-shell .setup-disclosure { width: 100%; }
  .auth-shell .setup-disclosure summary { width: 100%; height: 52px; border-radius: 26px; background: rgba(10,11,14,.4); }
  .auth-shell .setup-panel { position: static; width: 100%; margin-top: 6px; }
}

/* ===== Desktop frame v4: rail + inset panel (inner sidebar + main) =====
   The window background, the OS title strip (tinted by theme-color) and the
   56px rail form one continuous frame. Everything Campus owns sits on one
   rounded panel inset 8px from the right and bottom edges. No line touches
   the window edge. The panel is a backdrop behind grid column 1's inner
   sidebar and column 2's header and app frames, so iframes never move. */
@media (min-width: 761px) {
  .app-stage,
  .app-stage.chromeless {
    --campus-frame: #f3f3f5;
    --campus-panel: #ffffff;
    --campus-panel-border: rgba(15,20,25,.08);
    --campus-inner-divider: rgba(15,20,25,.07);
    --campus-rail-icon: #6b717c;
    --campus-rail-active-bg: rgba(15,20,25,.07);
    --campus-rail-active-icon: #1d2128;
    --campus-field-bg: rgba(15,20,25,.04);
    --campus-field-border: rgba(15,20,25,.07);
    --campus-row-ink: #30353d;
    --campus-rail-width: 56px;
    --campus-inner-width: 247px;
    --campus-sidebar-width: calc(var(--campus-rail-width) + var(--campus-inner-width));
    --sidebar-background: var(--campus-frame);
  }
  .app-stage.chrome-theme-dark {
    --campus-frame: #08090c;
    --campus-panel: #0f1116;
    --campus-panel-border: rgba(255,255,255,.07);
    --campus-inner-divider: rgba(255,255,255,.06);
    --campus-rail-icon: #8a909b;
    --campus-rail-active-bg: rgba(255,255,255,.08);
    --campus-rail-active-icon: #eceef2;
    --campus-field-bg: rgba(255,255,255,.04);
    --campus-field-border: rgba(255,255,255,.06);
    --campus-row-ink: #d7dae0;
    --sidebar-background: var(--campus-frame);
    --sidebar-hover: rgba(255,255,255,.05);
    --sidebar-selected: rgba(255,255,255,.07);
  }
  .app-stage.sidebar-collapsed { --campus-sidebar-width: var(--campus-rail-width); }
  .app-stage.chromeless { --campus-sidebar-width: 0px; }
  .app-stage:not(.chromeless) {
    isolation: isolate;
    padding: 0 8px 8px 0;
    background: var(--campus-frame);
  }
  .app-stage:not(.chromeless)::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    right: 8px;
    bottom: 8px;
    left: var(--campus-rail-width);
    border: 1px solid var(--campus-panel-border);
    border-radius: 12px;
    background: var(--campus-panel);
    pointer-events: none;
  }
  /* App frames meet the panel's rounded corners. */
  .app-stage:not(.chromeless) > .app-frames > .app-frame-wrap {
    overflow: hidden;
    border-radius: 0 0 11px 0;
  }
  .app-stage:not(.chromeless):not(.has-app-header) > .app-frames > .app-frame-wrap { border-top-right-radius: 11px; border-top-left-radius: 0; }
  .app-stage.sidebar-collapsed:not(.chromeless) > .app-frames > .app-frame-wrap { border-bottom-left-radius: 11px; }
  .app-stage.sidebar-collapsed:not(.chromeless):not(.has-app-header) > .app-frames > .app-frame-wrap { border-top-left-radius: 11px; }
  .app-stage > .app-header { border-top-left-radius: 0; padding-top: 0; background: transparent; }

  /* Sidebar column: the rail on the frame, then the inner sidebar on the panel. */
  .app-stage .campus-sidebar,
  .app-stage .campus-sidebar.is-collapsed {
    flex-direction: row;
    align-items: stretch;
    padding: 0 0 0 0;
    background: transparent;
    overflow: visible;
  }
  .campus-rail {
    position: relative;
    flex: 0 0 var(--campus-rail-width);
    width: var(--campus-rail-width);
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 7px 0 12px;
  }
  .rail-button {
    position: relative;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 10px;
    color: var(--campus-rail-icon) !important;
  }
  .rail-button .campus-icon { width: 21px; height: 21px; }
  .rail-toggle .campus-icon { width: 20px; height: 20px; }
  .rail-button:hover { background: var(--campus-rail-active-bg) !important; color: var(--campus-rail-active-icon) !important; }
  .rail-button.active { background: var(--campus-rail-active-bg) !important; color: var(--campus-rail-active-icon) !important; }
  .rail-button.active .campus-icon { stroke-width: 2.2; }
  .rail-badge {
    position: absolute;
    top: 3px;
    right: 2px;
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    border-radius: 8px;
    background: #3b7cf0;
    box-shadow: 0 0 0 2px var(--campus-frame);
    color: #fff;
    font-size: 9.5px;
    font-weight: 600;
    line-height: 15px;
    text-align: center;
  }
  .rail-divider { width: 22px; height: 1px; flex: 0 0 1px; margin: 2px 0 4px; background: var(--campus-inner-divider); }
  .rail-apps { min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; overflow-y: auto; scrollbar-width: none; padding: 4px 0; }
  .rail-apps::-webkit-scrollbar { display: none; }
  .rail-app { width: 28px; height: 28px; flex: 0 0 28px; padding: 0; border-radius: 8px; }
  .rail-app-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: #fff; font-size: 13px; }
  .rail-app.active .rail-app-icon { box-shadow: 0 0 0 2px var(--campus-frame), 0 0 0 3.5px var(--sidebar-ring, rgba(255,255,255,.7)); }
  .rail-spacer { flex: 1 1 auto; }
  .rail-balance {
    padding: 2px 4px;
    border-radius: 6px;
    color: #f29f45 !important;
    font-size: 10.5px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
  }
  .rail-balance:hover { background: var(--campus-rail-active-bg) !important; }
  .rail-account { position: relative; margin-top: 4px; }
  .app-stage .campus-sidebar .rail-account .sidebar-account-trigger {
    width: 28px;
    min-width: 0;
    height: 28px;
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    gap: 0;
    margin: 0;
    padding: 0 !important;
    border-radius: 50%;
    background: transparent !important;
  }
  .app-stage .campus-sidebar .rail-account .sidebar-account-trigger .avatar { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; }
  .app-stage .campus-sidebar .rail-account .sidebar-account-trigger[aria-expanded="true"] .avatar {
    box-shadow: 0 0 0 2px var(--campus-frame), 0 0 0 3.5px var(--sidebar-ring, rgba(255,255,255,.7));
  }
  .rail-account .account-avatar { width: 28px; height: 28px; flex: 0 0 28px; }
  .app-stage .campus-sidebar .rail-account .sidebar-account-menu { bottom: 0; left: 40px; }

  .inner-sidebar {
    position: relative;
    flex: 0 0 var(--campus-inner-width);
    width: var(--campus-inner-width);
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
    border-right: 1px solid var(--campus-inner-divider);
  }
  .inner-sidebar-top { flex: 0 0 52px; height: 52px; display: flex; align-items: center; gap: 4px; padding: 0 8px 0 10px; }
  .inner-sidebar-filter {
    flex: 1 1 auto;
    min-width: 0;
    height: 32px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 6px 0 8px;
    border: 1px solid var(--campus-field-border);
    border-radius: 8px;
    background: var(--campus-field-bg);
  }
  .inner-sidebar-filter-icon { display: grid; color: #6f7581; }
  .inner-sidebar-filter-icon .campus-icon { width: 17px; height: 17px; }
  .inner-sidebar-filter input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--sidebar-ink);
    font: inherit;
    font-size: 13px;
    -webkit-appearance: none;
    appearance: none;
  }
  .inner-sidebar-filter input::-webkit-search-cancel-button { display: none; }
  .inner-sidebar-filter input::placeholder { color: #6f7581; }
  .inner-sidebar-filter-clear { width: 20px; height: 20px; display: grid; place-items: center; padding: 0; border-radius: 5px; color: #6f7581 !important; }
  .inner-sidebar-filter-clear .campus-icon { width: 14px; height: 14px; }
  .inner-sidebar-create { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; padding: 0; border-radius: 8px; color: var(--campus-rail-icon) !important; }
  .inner-sidebar-create:hover { background: var(--sidebar-hover) !important; color: var(--sidebar-ink) !important; }
  .inner-sidebar-create .campus-icon { width: 18px; height: 18px; }
  .inner-sidebar .sidebar-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 8px 12px; scrollbar-width: thin; }
  .inner-sidebar .sidebar-section { display: flex; flex-direction: column; gap: 2px; padding: 0; }
  .inner-sidebar .sidebar-section::before { display: none; }
  .inner-sidebar .sidebar-section-heading { display: flex; align-items: center; justify-content: space-between; }
  .inner-sidebar .sidebar-section-label { margin: 0; padding: 14px 10px 6px; color: #6f7581; font-size: 11.5px; font-weight: 500; }
  .inner-sidebar .sidebar-section-count { padding: 14px 10px 6px; color: #6f7581; font-size: 11.5px; }
  .inner-sidebar .sidebar-app-row { height: 32px; flex-basis: 32px; border-radius: 8px; }
  .inner-sidebar .sidebar-app { gap: 10px; padding: 0 10px; }
  .inner-sidebar .sidebar-app-icon { width: 20px; height: 20px; flex: 0 0 20px; border-radius: 6px; font-size: 11px; }
  .inner-sidebar .sidebar-app-name { color: var(--campus-row-ink); font-size: 13.5px; }
  .sidebar-all-apps {
    width: 100%;
    height: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 0 10px;
    border-radius: 8px;
    color: var(--campus-row-ink) !important;
    font-size: 13.5px;
    text-align: left;
  }
  .sidebar-all-apps:hover { background: var(--sidebar-hover) !important; }
  .sidebar-all-apps.active { background: var(--sidebar-selected) !important; }
  .sidebar-all-apps-icon { width: 20px; height: 20px; display: grid; place-items: center; color: var(--campus-rail-icon); }
  .sidebar-all-apps-icon .campus-icon { width: 18px; height: 18px; }
  .sidebar-chat-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 8px;
    text-align: left;
  }
  .sidebar-chat-row:hover { background: var(--sidebar-hover) !important; }
  .sidebar-chat-copy { min-width: 0; display: grid; gap: 1px; }
  .sidebar-chat-copy strong { overflow: hidden; color: var(--sidebar-ink); font-size: 13.5px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
  .sidebar-chat-copy small { color: #6f7581; font-size: 11.5px; }
  .inner-sidebar-empty { margin: 12px 10px; color: #6f7581; font-size: 13px; line-height: 1.45; text-align: center; }
}
@media (min-width: 761px) {
  /* The docked chat sits inside the rounded panel, clear of the gutter. */
  .app-stage:not(.chromeless) .launcher-agent-drawer.is-agent-chat[data-surface-mode="docked"]:not(.is-expanded) {
    right: 8px;
    bottom: 8px;
    border-radius: 0 11px 11px 0;
    border-left-color: var(--campus-inner-divider);
    background: var(--campus-panel);
  }
}
@media (min-width: 761px) {
  .app-stage:not(.chrome-theme-dark) .rail-balance { color: #b36a14 !important; }
}
@media (min-width: 761px) {
  .app-stage:not(.chromeless) .launcher-agent-drawer.is-agent-chat.is-expanded {
    right: 8px;
    bottom: 8px;
    border-radius: 0 11px 11px 0;
    background: var(--campus-panel);
  }
}

/* Report a bug → Codex (design handoff "Bug report"). The sheet layers above
   Search and Notifications; on phones it is a full-height bottom sheet. */
.bug-report-layer {
  --bug-surface: #16181f;
  --bug-ink: #eceef2;
  --bug-muted: #8a909b;
  --bug-label: #b4b8c1;
  --bug-field: #0c0e12;
  --bug-line: rgba(255,255,255,.1);
  --bug-list: #0e1015;
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 32px 24px;
  background: rgba(3,4,6,.62);
  color: var(--bug-ink);
  font-size: 13.5px;
}
.bug-report-sheet {
  width: min(560px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: var(--bug-surface);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.bug-report-head {
  flex: 0 0 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.bug-report-head-icon { display: grid; color: var(--bug-muted); }
.bug-report-head-icon .campus-icon { width: 20px; height: 20px; }
.bug-report-head h2 { margin: 0; color: var(--bug-ink); font-size: 15px; font-weight: 600; letter-spacing: 0; }
.bug-report-target { display: flex; gap: 2px; margin-left: auto; padding: 2px; border-radius: 9px; background: rgba(255,255,255,.05); }
.bug-report-target button {
  height: 26px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px 0 5px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--bug-muted);
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
}
.bug-report-target button.active { background: rgba(255,255,255,.12); color: var(--bug-ink); }
.bug-report-target-tile { width: 16px; height: 16px; display: grid; place-items: center; border-radius: 5px; color: #fff; font-size: 9px; }
.bug-report-target-tile.is-campus { background: #0e1015; }
.bug-report-target-tile .brand-mark { width: 12px; height: 12px; flex-basis: 12px; }
.bug-report-close { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--bug-muted); cursor: pointer; }
.bug-report-close:hover { background: rgba(255,255,255,.07); color: var(--bug-ink); }
.bug-report-close .campus-icon { width: 17px; height: 17px; }
.bug-report-body { min-height: 0; flex: 1 1 auto; display: grid; gap: 14px; overflow-y: auto; padding: 16px 18px; }
.bug-report-field { display: grid; gap: 6px; }
.bug-report-field > span, .bug-report-attached-head > span { color: var(--bug-label); font-size: 12.5px; font-weight: 500; }
.bug-report-field textarea {
  max-height: calc(8 * 1.5em + 18px);
  padding: 9px 12px;
  border: 1px solid var(--bug-line);
  border-radius: 10px;
  outline: none;
  background: var(--bug-field);
  color: var(--bug-ink);
  font: inherit;
  font-size: 13.5px;
  line-height: 1.5;
  resize: none;
  field-sizing: content;
}
.bug-report-field textarea:focus { border-color: rgba(255,255,255,.28); }
.bug-report-field textarea::placeholder { color: #5f6570; }
.bug-report-attached-head { display: flex; align-items: center; justify-content: space-between; }
.bug-report-add-file { display: flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 7px; color: var(--bug-muted); cursor: pointer; font-size: 12.5px; }
.bug-report-add-file:hover { background: rgba(255,255,255,.06); color: var(--bug-ink); }
.bug-report-add-file .campus-icon { width: 15px; height: 15px; }
.bug-report-attachments { display: grid; gap: 2px; margin-top: -6px; padding: 4px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: var(--bug-list); }
.bug-attachment {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  border-radius: 9px;
  cursor: pointer;
  outline: none;
}
.bug-attachment:hover, .bug-attachment:focus-visible { background: rgba(255,255,255,.04); }
.bug-attachment.is-excluded > :not(.bug-attachment-check) { opacity: .45; }
.bug-attachment-lead { width: 52px; height: 32px; flex: 0 0 52px; display: grid; place-items: center; overflow: hidden; border-radius: 6px; background: rgba(255,255,255,.04); color: var(--bug-muted); }
.bug-attachment-lead img { width: 100%; height: 100%; object-fit: cover; }
.bug-attachment-lead .campus-icon { width: 19px; height: 19px; }
.bug-attachment-copy { min-width: 0; flex: 1 1 auto; display: grid; gap: 1px; }
.bug-attachment-copy strong, .bug-attachment-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bug-attachment-copy strong { color: var(--bug-ink); font-size: 13px; font-weight: 400; }
.bug-attachment-copy small { color: #7d838e; font-size: 11.5px; }
.bug-attachment-copy small.is-warning { color: #e0a35a; }
.bug-attachment-check { width: 18px; height: 18px; flex: 0 0 18px; display: grid; place-items: center; border: 1.5px solid rgba(255,255,255,.25); border-radius: 5px; color: #0e1015; }
.bug-attachment[aria-checked="true"] .bug-attachment-check { border-color: #eceef2; background: #eceef2; }
.bug-attachment-check .campus-icon { width: 13px; height: 13px; stroke-width: 2.6; }
.bug-report-privacy { margin: -4px 0 0; color: #6f7581; font-size: 11.5px; line-height: 1.45; }
.bug-report-error { margin: 0; padding: 0 18px 8px; color: #f07a7a; font-size: 12.5px; }
.bug-report-foot { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 12px 14px 14px 18px; border-top: 1px solid rgba(255,255,255,.08); }
.bug-report-codex { width: 22px; height: 22px; flex: 0 0 22px; display: grid; place-items: center; border-radius: 6px; background: #eceef2; color: #0e1015; }
.bug-report-codex .campus-icon { width: 15px; height: 15px; stroke-width: 2.2; }
.bug-report-foot p { min-width: 0; flex: 1 1 auto; margin: 0; overflow: hidden; color: var(--bug-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.bug-report-foot code { color: var(--bug-label); font-family: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace; font-size: 11.5px; }
.bug-report-send {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: #eceef2;
  color: #0e1015;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.bug-report-send kbd { font: inherit; font-size: 12px; opacity: .6; }
.bug-report-send:disabled { background: rgba(255,255,255,.08); color: #6f7581; cursor: default; }
.bug-report-toast {
  position: fixed;
  z-index: 130;
  top: 52px;
  left: 50%;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 0 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: #1a1d24;
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
  color: #eceef2;
  font-size: 13px;
  transform: translateX(-50%);
}
.bug-report-toast-icon { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: #5fd6a0; color: #0e1015; }
.bug-report-toast-icon .campus-icon { width: 12px; height: 12px; stroke-width: 3; }
.bug-report-toast code { color: #8a909b; font-family: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; }
.bug-report-toast button { width: 26px; height: 26px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #8a909b; cursor: pointer; }
.bug-report-toast button .campus-icon { width: 15px; height: 15px; }
@media (max-width: 760px) {
  .bug-report-layer { place-items: end stretch; padding: 0; }
  .bug-report-sheet {
    width: 100%;
    height: calc(100dvh - env(safe-area-inset-top, 0px) - 12px);
    max-height: none;
    border-radius: 16px 16px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .bug-report-head { flex-wrap: wrap; height: auto; padding: 10px 12px 10px 18px; }
  .bug-report-target { order: 3; flex-basis: 100%; margin: 6px 0 0; }
  .bug-report-close { margin-left: auto; }
  .bug-report-field textarea { font-size: 16px; }
  .bug-report-send { height: 44px; }
}
.bug-report-target-tile .brand-mark { background: url("/brand/campus-mark.svg") center / contain no-repeat; }

/* Bits quick actions (design handoff "Bits quick actions"). */
@media (min-width: 761px) {
  .app-stage .campus-sidebar .rail-bits { position: relative; }
  .app-stage .campus-sidebar .rail-balance {
    width: 44px;
    height: 24px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 7px;
  }
  .app-stage .campus-sidebar .rail-balance:hover,
  .app-stage .campus-sidebar .rail-balance.active { background: rgba(242,159,69,.14) !important; }
  .app-stage .campus-sidebar .bits-menu {
    --campus-menu-glass: #14161c;
    position: absolute;
    z-index: 90;
    bottom: 0;
    left: 50px;
    width: 248px;
    padding: 6px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    background: #14161c;
    box-shadow: 0 16px 40px rgba(0,0,0,.5);
    animation: campus-sidebar-menu-in .16s ease-out both;
  }
  .app-stage:not(.chrome-theme-dark) .campus-sidebar .bits-menu {
    --campus-menu-glass: #ffffff;
    border-color: rgba(15,20,25,.1);
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(15,20,25,.18);
  }
  .bits-menu .campus-action-popover-item { min-height: 36px; }
  .bits-menu .campus-action-popover-item-icon .campus-icon { width: 20px; height: 20px; }
  .bits-menu-divider { height: 1px; margin: 6px 4px; border: 0; background: rgba(127,127,140,.18); }
  .bits-menu-trailing { display: grid; margin-left: auto; color: #6f7581; }
  .bits-menu-trailing .campus-icon { width: 16px; height: 16px; }
}

/* Wallet's compact step: a centred 400px dialog over a scrim, or a bottom
   sheet below 640px. Wallet draws the content; Campus draws the frame. */
.app-stage .launcher-agent-drawer[data-surface-mode="dialog"]:not(.is-closed) {
  --wallet-dialog-w: min(400px, calc(100vw - 48px));
  --wallet-dialog-h: min(600px, calc(100dvh - 48px));
  position: fixed;
  z-index: 110;
  top: calc((100dvh - var(--wallet-dialog-h)) / 2);
  right: auto;
  bottom: auto;
  left: calc((100vw - var(--wallet-dialog-w)) / 2);
  width: var(--wallet-dialog-w);
  height: var(--wallet-dialog-h);
  max-height: none;
  margin: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  background: #16181f;
  box-shadow: 0 24px 64px rgba(0,0,0,.55);
  transform: none;
  translate: none;
  animation: none;
}
.app-stage:has(.launcher-agent-drawer[data-surface-mode="dialog"]:not(.is-closed)) > .secondary-surface-dismiss-layer {
  z-index: 105;
  background: rgba(3,4,6,.62);
}
@media (max-width: 639px) {
  .app-stage .launcher-agent-drawer[data-surface-mode="dialog"]:not(.is-closed) {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: min(640px, calc(100dvh - env(safe-area-inset-top, 0px) - 24px));
    border-radius: 22px 22px 0 0;
    transform: none;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
}

/* Phone overview: balance plus Deposit, Withdraw and Wallet tiles. */
.bits-sheet-layer {
  position: fixed;
  z-index: 108;
  inset: 0;
  display: grid;
  align-items: end;
  background: rgba(3,4,6,.62);
}
.bits-sheet {
  display: grid;
  gap: 18px;
  padding: 8px 20px calc(22px + env(safe-area-inset-bottom, 0px));
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px 22px 0 0;
  background: #16181f;
  box-shadow: 0 24px 64px rgba(0,0,0,.55);
  color: #eceef2;
}
.bits-sheet-handle { justify-self: center; width: 36px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.18); }
.bits-sheet-head { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; }
.bits-sheet-head h2 { margin: 0; color: #eceef2; font-size: 15px; font-weight: 600; text-align: center; }
.bits-sheet-close { justify-self: center; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: #8a909b; }
.bits-sheet-close .campus-icon { width: 18px; height: 18px; }
.bits-sheet-balance { display: grid; justify-items: center; gap: 4px; }
.bits-sheet-balance span { color: #8a909b; font-size: 13px; }
.bits-sheet-balance strong { color: #f29f45; font-size: 40px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bits-sheet-balance small { margin-left: 6px; color: #b57a37; font-size: 16px; font-weight: 500; }
.bits-sheet-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bits-sheet-tiles button {
  height: 72px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  border: 0;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  color: #eceef2;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
}
.bits-sheet-tiles button:active { background: rgba(255,255,255,.1); }
.bits-sheet-tiles .campus-icon { width: 22px; height: 22px; }

/* All apps has a real 52px header row on desktop (identity on the left,
   actions on the right) instead of floating controls; Home's grid starts
   below it, so the launcher no longer looks unanchored. */
@media (min-width: 761px) {
  .app-stage:not(.chromeless):has(> .app-header.is-launcher) { --campus-app-header-height: 52px; }
  .app-stage > .app-header.is-launcher {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    height: 52px;
    justify-content: flex-start;
    padding: 0 10px 0 16px;
    pointer-events: auto;
  }
  .app-stage:not(.chromeless):has(> .app-header.is-launcher) > .app-frames > .app-frame-wrap { border-top-left-radius: 0; border-top-right-radius: 0; }
  .app-stage:has(> .app-header.is-launcher) .launcher-flashes.has-persistent-home { top: 60px; }
  .app-header-identity.is-all-apps { gap: 10px; }
  .app-header-identity.is-all-apps .app-header-apps-icon { display: grid; color: #c9ccd3; }
  .app-stage:not(.chrome-theme-dark) .app-header-identity.is-all-apps .app-header-apps-icon { color: #4b525d; }
  .app-header-identity.is-all-apps .app-header-apps-icon .campus-icon { width: 20px; height: 20px; }
  .app-header-identity .app-header-count { color: #6f7581; font-size: 13px; font-weight: 400; }
}
@media (min-width: 761px) {
  .app-stage > .app-header .app-header-icon { width: 22px; height: 22px; flex-basis: 22px; border-radius: 6px; font-size: 12px; }
  .app-stage > .app-header .app-header-name { font-size: 14px; font-weight: 500; }
}

/* Dark surface ladder: frame #08090C < panel #0F1116 (content and sidebar)
   < raised #14161C (menus) < overlay #16181F (sheets). Hairlines, not shadows,
   separate them; never #000. */
@media (min-width: 761px) {
  .app-stage.chrome-theme-dark .campus-action-popover { --campus-menu-glass: #14161c; }
  .app-stage.chrome-theme-dark .campus-action-popover,
  .app-stage.chrome-theme-dark .header-menu {
    background: #14161c;
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 16px 40px rgba(0,0,0,.45);
  }
  .app-stage.chrome-theme-dark > .app-frames > .app-frame-wrap { background: #0f1116; }
}
/* The panel's 1px border is drawn by the backdrop behind the app frame, so
   the frame stops 1px short of every panel edge it touches; otherwise the
   iframe paints over the border (most visibly at the collapsed left edge). */
@media (min-width: 761px) {
  .app-stage:not(.chromeless) > .app-frames > .app-frame-wrap { margin: 0 1px 1px 0; }
  .app-stage.sidebar-collapsed:not(.chromeless) > .app-frames > .app-frame-wrap { margin-left: 1px; }
  .app-stage.sidebar-collapsed:not(.chromeless) > .app-header { margin-left: 1px; }
}
/* Rail apps: a 38px hit area around the 28px tile. The active app gets the
   selected fill and a bar flush to the rail's left edge, never a ring. */
@media (min-width: 761px) {
  .app-stage .campus-sidebar .rail-apps { gap: 2px; padding: 2px 0; overflow-x: visible; }
  .app-stage .campus-sidebar .rail-app {
    position: relative;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 10px;
  }
  .app-stage .campus-sidebar .rail-app:hover { background: rgba(255,255,255,.05) !important; }
  .app-stage .campus-sidebar .rail-app.active { background: rgba(255,255,255,.08) !important; }
  .app-stage:not(.chrome-theme-dark) .campus-sidebar .rail-app:hover { background: rgba(15,20,25,.05) !important; }
  .app-stage:not(.chrome-theme-dark) .campus-sidebar .rail-app.active { background: rgba(15,20,25,.07) !important; }
  .app-stage .campus-sidebar .rail-app.active::before {
    content: "";
    position: absolute;
    top: 11px;
    left: -9px;
    width: 3px;
    height: 16px;
    border-radius: 0 2px 2px 0;
    background: #eceef2;
  }
  .app-stage:not(.chrome-theme-dark) .campus-sidebar .rail-app.active::before { background: #1d2128; }
  .app-stage .campus-sidebar .rail-app .rail-app-icon { width: 28px; height: 28px; border-radius: 8px; }
  .app-stage .campus-sidebar .rail-app.active .rail-app-icon { box-shadow: none; }
}
@media (min-width: 761px) {
  /* The scroll container clips overflow, so it spans the full rail and pads
     the tiles in; the active bar then sits at the rail's left edge. */
  .app-stage .campus-sidebar .rail-apps { align-self: stretch; padding: 2px 9px; }
}

@media (min-width: 761px) {
  .app-stage:not(.chromeless) > .app-frames > .app-frame-wrap { --app-open-end-radius: 0 0 11px 0; }
  .app-stage.sidebar-collapsed:not(.chromeless) > .app-frames > .app-frame-wrap { --app-open-end-radius: 0 0 11px 11px; }
}

/* ===== Web shell vs installed shell =====
   The inset rounded panel above is the installed-app shell (standalone or
   window-controls-overlay, or <html data-shell="installed"> for Electron or
   Tauri). In a browser tab the browser already frames the page, so the shell
   fills the viewport edge to edge: no outer margin, no radius, one hairline
   between rail and panel, and a 48px header with a full-width bottom hairline.
   Rail, sidebar, header contents and collapse behaviour are shared. */
@media (min-width: 761px) and (display-mode: browser) {
  :root:not([data-shell="installed"]) .app-stage:not(.chromeless) { padding: 0; }
  :root:not([data-shell="installed"]) .app-stage:not(.chromeless)::before {
    right: 0;
    bottom: 0;
    border: 0;
    border-left: 1px solid var(--campus-inner-divider);
    border-radius: 0;
  }
  :root:not([data-shell="installed"]) .app-stage:not(.chromeless) > .app-frames > .app-frame-wrap,
  :root:not([data-shell="installed"]) .app-stage.sidebar-collapsed:not(.chromeless) > .app-frames > .app-frame-wrap,
  :root:not([data-shell="installed"]) .app-stage:not(.chromeless):not(.has-app-header) > .app-frames > .app-frame-wrap {
    --app-open-end-radius: 0;
    margin: 0;
    border-radius: 0;
  }
  /* The rail/panel hairline stays visible next to a collapsed sidebar. */
  :root:not([data-shell="installed"]) .app-stage.sidebar-collapsed:not(.chromeless) > .app-frames > .app-frame-wrap { margin-left: 1px; }
  :root:not([data-shell="installed"]) .app-stage.has-app-header:not(.chromeless),
  :root:not([data-shell="installed"]) .app-stage:not(.chromeless):has(> .app-header.is-launcher) { --campus-app-header-height: 48px; }
  :root:not([data-shell="installed"]) .app-stage > .app-header,
  :root:not([data-shell="installed"]) .app-stage > .app-header.is-launcher {
    height: 48px;
    box-shadow: inset 0 -1px 0 var(--campus-inner-divider);
  }
  :root:not([data-shell="installed"]) .inner-sidebar { margin-bottom: 0; }
  :root:not([data-shell="installed"]) .inner-sidebar-top { flex-basis: 48px; height: 48px; }
  :root:not([data-shell="installed"]) .campus-rail { padding-top: 5px; }
  :root:not([data-shell="installed"]) .app-stage:not(.chromeless) .launcher-agent-drawer.is-agent-chat[data-surface-mode="docked"]:not(.is-expanded),
  :root:not([data-shell="installed"]) .app-stage:not(.chromeless) .launcher-agent-drawer.is-agent-chat.is-expanded,
  :root:not([data-shell="installed"]) .app-stage .launcher-agent-drawer.secondary-app-surface.is-anchored[data-anchor-target="notification-bell"] {
    --campus-agent-dock-top: 0px;
    top: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
  }
}

/* Header controls share one colour; only hover and the open state change it. */
@media (min-width: 761px) {
  .app-stage.chrome-theme-dark .header-icon-button,
  .app-stage.chrome-theme-dark .header-icon-button.is-agent { color: #c9ccd3 !important; }
  .app-stage:not(.chrome-theme-dark) .header-icon-button,
  .app-stage:not(.chrome-theme-dark) .header-icon-button.is-agent { color: #4b525d !important; }
  .app-stage .header-icon-button:hover,
  .app-stage .header-icon-button.active { color: var(--sidebar-ink) !important; }
}

/* ===== Rail and sidebar at ~120% (rail 68px, sidebar 300px) =====
   Contents scale with the columns. Rail items are 44px and centred, so the
   active-app bar sits at left = -(68 - 44) / 2 = -12px, top = (44 - 16) / 2.
   Nested rows line up with app labels: 10px padding + 22px glyph + 11px gap. */
@media (min-width: 761px) {
  .app-stage,
  .app-stage.chromeless {
    --campus-rail-width: 68px;
    --campus-inner-width: 300px;
  }
  .campus-rail { gap: 8px; }
  .app-stage .campus-sidebar .rail-button,
  .rail-button { width: 44px; height: 44px; flex-basis: 44px; border-radius: 10px; }
  .rail-button .campus-icon { width: 23px; height: 23px; }
  .rail-toggle .campus-icon { width: 22px; height: 22px; }
  .rail-badge { top: 5px; right: 4px; }
  .app-stage .campus-sidebar .rail-apps { gap: 2px; padding: 2px 12px; }
  .app-stage .campus-sidebar .rail-app { width: 44px; height: 44px; flex-basis: 44px; border-radius: 10px; }
  .app-stage .campus-sidebar .rail-app .rail-app-icon { width: 32px; height: 32px; border-radius: 9px; font-size: 14px; }
  .app-stage .campus-sidebar .rail-app.active::before { top: 14px; left: -12px; }
  .app-stage .campus-sidebar .rail-balance { width: 52px; height: 26px; font-size: 11.5px; }
  .rail-account .sidebar-account-trigger,
  .app-stage .campus-sidebar .rail-account .sidebar-account-trigger,
  .app-stage .campus-sidebar .rail-account .sidebar-account-trigger .avatar { width: 32px; height: 32px; flex-basis: 32px; }
  .app-stage .campus-sidebar .rail-account .sidebar-account-menu,
  .app-stage .campus-sidebar .bits-menu { left: 60px; }

  .inner-sidebar .sidebar-section-label { padding: 16px 10px 6px; font-size: 12px; }
  .inner-sidebar .sidebar-section-count { padding: 16px 10px 6px; font-size: 12px; }
  .inner-sidebar .sidebar-app-row { height: 36px; flex-basis: 36px; }
  .inner-sidebar .sidebar-app { gap: 11px; padding: 0 10px; }
  .inner-sidebar .sidebar-app-icon { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 6px; font-size: 12px; }
  .inner-sidebar .sidebar-app-name { font-size: 14.5px; }
  .inner-sidebar .sidebar-show-more { min-height: 32px; font-size: 13.5px; }
  .sidebar-chat-row { padding: 8px 10px; gap: 11px; }
  .sidebar-chat-copy strong { font-size: 14.5px; }
  .inner-sidebar-filter input { font-size: 13.5px; }
}

/* Draggable pane edges. While dragging, text selection and iframe pointer
   capture are suspended so the drag never stalls over an app. */
.agent-dock-resizer { display: none; }
@media (min-width: 761px) {
  .inner-sidebar-resizer,
  .agent-dock-resizer {
    position: absolute;
    z-index: 5;
    top: 0;
    right: -4px;
    bottom: 0;
    width: 8px;
    cursor: col-resize;
    touch-action: none;
  }
  .inner-sidebar-resizer::after,
  .agent-dock-resizer::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 3px;
    width: 2px;
    background: transparent;
    transition: background .12s ease;
  }
  .inner-sidebar-resizer:hover::after,
  .agent-dock-resizer:hover::after,
  .agent-dock-resizer:focus-visible::after,
  .app-stage.is-resizing-sidebar .inner-sidebar-resizer::after,
  .app-stage.is-resizing-agent .agent-dock-resizer::after { background: rgba(255,255,255,.18); }
  .app-stage:not(.chrome-theme-dark) .inner-sidebar-resizer:hover::after,
  .app-stage:not(.chrome-theme-dark) .agent-dock-resizer:hover::after,
  .app-stage:not(.chrome-theme-dark) .agent-dock-resizer:focus-visible::after,
  .app-stage.is-resizing-sidebar:not(.chrome-theme-dark) .inner-sidebar-resizer::after,
  .app-stage.is-resizing-agent:not(.chrome-theme-dark) .agent-dock-resizer::after { background: rgba(15,20,25,.18); }
  .agent-dock-resizer { display: block; right: 0; outline: none; }
  .agent-dock-resizer::after { left: auto; right: 0; }
  .launcher-agent-drawer.is-expanded > .agent-dock-resizer { display: none; }
  .app-stage.is-resizing-sidebar,
  .app-stage.is-resizing-agent { cursor: col-resize; user-select: none; -webkit-user-select: none; }
  .app-stage.is-resizing-sidebar iframe,
  .app-stage.is-resizing-agent iframe { pointer-events: none; }
}

/* Default avatar: the person's initial on the raised surface with a hairline
   ring (never brighter than the rail icons). An uploaded photo fills the same
   circle and the ring stays on top of it. Text scales with the circle. */
.avatar.account-avatar,
.app-stage .campus-sidebar .rail-account .sidebar-account-trigger .avatar.account-avatar,
.app-stage .mobile-account-avatar .avatar.account-avatar {
  position: relative;
  box-sizing: border-box;
  container-type: inline-size;
  border-radius: 50% !important;
  background: #eef0f3 !important;
  color: #4b525d;
  box-shadow: none !important;
}
.app-stage.chrome-theme-dark .avatar.account-avatar,
.app-stage.chrome-theme-dark .campus-sidebar .rail-account .sidebar-account-trigger .avatar.account-avatar,
.app-stage.chrome-theme-dark .mobile-account-avatar .avatar.account-avatar,
.auth-shell .avatar.account-avatar {
  background: #1c1f27 !important;
  color: #c9ccd3;
}
.avatar.account-avatar::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(15,20,25,.1);
  pointer-events: none;
}
.app-stage.chrome-theme-dark .avatar.account-avatar::after { box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.account-avatar-initial { font-size: 40cqw; font-weight: 600; line-height: 1; letter-spacing: 0; }
.account-avatar .profile-stub { width: 56%; height: 56%; color: #8a909b; }
.app-stage .campus-sidebar .rail-account .sidebar-account-trigger { cursor: pointer; }
.app-stage.chrome-theme-dark .campus-sidebar .rail-account .sidebar-account-trigger:hover .avatar.account-avatar { color: #eceef2; }
.app-stage.chrome-theme-dark .campus-sidebar .rail-account .sidebar-account-trigger:hover .avatar.account-avatar::after,
.app-stage.chrome-theme-dark .campus-sidebar .rail-account .sidebar-account-trigger[aria-expanded="true"] .avatar.account-avatar::after { box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.app-stage.chrome-theme-dark .campus-sidebar .rail-account .sidebar-account-trigger[aria-expanded="true"] .avatar.account-avatar { background: #2a2d35 !important; color: #eceef2; }
.app-stage .campus-sidebar .rail-account .sidebar-account-trigger[aria-expanded="true"] .avatar.account-avatar { box-shadow: none !important; }

/* Threads live inside apps. The Campus row (launcher) leads the Apps list;
   each place nests its own threads under a chevron, indented to the app
   name. Exactly one row is selected: the open thread, else the open place. */
@media (min-width: 761px) {
  .inner-sidebar .sidebar-app-row { position: relative; }
  .inner-sidebar .sidebar-app-row.has-threads .sidebar-app { padding-right: 34px; }
  .sidebar-campus-section { padding-top: 6px !important; }
  .sidebar-campus-icon { background: #eceef2; color: #0e1015; font-size: 11px; }
  .app-stage:not(.chrome-theme-dark) .sidebar-campus-icon { background: #1d2128; color: #fff; }
  .sidebar-thread-chevron {
    position: absolute;
    top: 50%;
    right: 4px;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 6px;
    transform: translateY(-50%);
    color: var(--campus-rail-icon) !important;
    opacity: .75;
  }
  .sidebar-thread-chevron:hover { opacity: 1; background: var(--sidebar-hover) !important; }
  .sidebar-thread-chevron .campus-icon { width: 15px; height: 15px; }
  .sidebar-thread-row,
  .sidebar-aux-row {
    width: 100%;
    height: 30px;
    flex: 0 0 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px 0 42px;
    border-radius: 8px;
    color: var(--campus-row-ink) !important;
    font-size: 13px;
    text-align: left;
    opacity: .82;
  }
  .sidebar-thread-row:hover,
  .sidebar-aux-row:hover { opacity: 1; background: var(--sidebar-hover) !important; }
  .sidebar-thread-row.active { opacity: 1; background: var(--sidebar-selected) !important; }
  .sidebar-thread-title { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sidebar-aux-row { color: var(--campus-rail-icon) !important; opacity: 1; }
  .sidebar-aux-row .campus-icon { width: 14px; height: 14px; margin-left: -1px; }
  .sidebar-waiting-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #3b7cf0; }

  /* Docked chat sits left of the app. Its preferred width is saved per browser;
     constrain it again when the viewport or sidebar width changes. */
  .app-stage {
    --campus-agent-content-width: calc(100vw - var(--campus-sidebar-width) - 8px);
    --campus-agent-dock-default-width: min(380px, calc(var(--campus-agent-content-width) * .45));
    --campus-agent-dock-min-width: min(280px, calc(var(--campus-agent-content-width) * .45));
    --campus-agent-dock-max-width: max(calc(var(--campus-agent-content-width) * .5), calc(var(--campus-agent-content-width) - 320px));
    --campus-agent-dock-width: clamp(var(--campus-agent-dock-min-width), var(--campus-agent-dock-preferred-width, var(--campus-agent-dock-default-width)), var(--campus-agent-dock-max-width));
  }
  .app-stage.is-dev-app {
    --campus-agent-dock-default-width: min(440px, calc(var(--campus-agent-content-width) * .45));
  }
  .launcher-agent-drawer.is-agent-chat .secondary-agent-toolbar { padding-right: 50px; }
  .launcher-agent-drawer.is-agent-chat:has(.secondary-agent-actions-control) .secondary-agent-toolbar { padding-right: 86px; }
  .launcher-agent-drawer.is-agent-chat .secondary-agent-actions-control.campus-icon-button { right: 46px; }
  .app-stage:has(> .secondary-app-retained-surfaces .launcher-agent-drawer.is-agent-chat[data-surface-mode="docked"]:not(.is-closed):not(.is-expanded)) {
    grid-template-columns: var(--campus-sidebar-width) var(--campus-agent-dock-width) minmax(0, 1fr);
  }
  .app-stage:has(> .secondary-app-retained-surfaces .launcher-agent-drawer.is-agent-chat[data-surface-mode="docked"]:not(.is-closed):not(.is-expanded)) > .app-header,
  .app-stage:has(> .secondary-app-retained-surfaces .launcher-agent-drawer.is-agent-chat[data-surface-mode="docked"]:not(.is-closed):not(.is-expanded)) > .app-frames > .app-frame-wrap {
    grid-column: 3;
  }
  .app-stage:has(> .secondary-app-retained-surfaces .launcher-agent-drawer.is-agent-chat[data-surface-mode="docked"]:not(.is-closed):not(.is-expanded)) > .app-opening-overlay,
  .app-stage:has(> .secondary-app-retained-surfaces .launcher-agent-drawer.is-agent-chat[data-surface-mode="docked"]:not(.is-closed):not(.is-expanded)) > .app-refresh-error {
    left: calc(var(--campus-sidebar-width) + var(--campus-agent-dock-width));
  }
  .app-stage .launcher-agent-drawer.is-agent-chat[data-surface-mode="docked"]:not(.is-expanded) {
    --campus-agent-dock-top: 1px;
    top: var(--campus-agent-dock-top);
    right: auto;
    bottom: 9px;
    left: var(--campus-sidebar-width);
    border-left: 0;
    border-right: 1px solid var(--campus-inner-divider, var(--sidebar-border));
    background: var(--campus-panel, #0f1116);
  }
  /* Both header hairlines end on the same row, including the installed
     panel's top border and the browser shell's shorter header. */
  .app-stage:has(> .app-header) .launcher-agent-drawer.is-agent-chat[data-surface-mode="docked"]:not(.is-expanded) {
    --agent-chat-header: calc(var(--campus-app-header-height) - var(--campus-agent-dock-top));
  }
  .app-stage .launcher-agent-drawer.is-agent-chat[data-surface-mode="docked"] .secondary-agent-toolbar {
    border-bottom-color: var(--campus-inner-divider, var(--sidebar-border));
  }
  .app-stage .launcher-agent-drawer.is-agent-chat[data-surface-mode="docked"] .secondary-agent-actions-control.campus-icon-button,
  .app-stage .launcher-agent-drawer.is-agent-chat[data-surface-mode="docked"] .secondary-app-close-control {
    top: calc((var(--agent-chat-header) - 32px) / 2);
  }
  .app-stage.sidebar-collapsed .launcher-agent-drawer.is-agent-chat[data-surface-mode="docked"]:not(.is-expanded) {
    border-radius: 11px 0 0 11px;
  }
  /* With the chat docked, the app's left edge is an inner seam, not a corner. */
  .app-stage.sidebar-collapsed:has(> .secondary-app-retained-surfaces .launcher-agent-drawer.is-agent-chat[data-surface-mode="docked"]:not(.is-closed):not(.is-expanded)) > .app-frames > .app-frame-wrap {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }
}

/* Expanded chat header: "Agent ▾ / thread title" and Open beside {App}. */
.secondary-agent-thread-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
  color: var(--sidebar-ink, #eceef2);
  font-size: 14px;
  font-weight: 500;
}
.secondary-agent-thread-slash { color: var(--sidebar-muted, #6f7581); }
.secondary-agent-thread-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.secondary-agent-open-beside {
  flex: 0 0 auto;
  height: 30px;
  margin-left: auto;
  padding: 0 12px;
  border-radius: 8px;
  border: 0 !important;
  background: rgba(127,127,140,.12) !important;
  color: var(--sidebar-ink, #eceef2) !important;
  font-size: 13px;
  font-weight: 500;
  pointer-events: auto;
  white-space: nowrap;
}
.secondary-agent-open-beside:hover { background: rgba(127,127,140,.2) !important; }
.app-stage:not(.chrome-theme-dark) .secondary-agent-thread-title,
.app-stage:not(.chrome-theme-dark) .secondary-agent-open-beside { color: #1d2128 !important; }
@media (max-width: 760px) { .secondary-agent-open-beside, .secondary-agent-thread-title { display: none; } }

/* Threads list (rail Threads): scope chips, day groups. */
@media (min-width: 761px) {
  .sidebar-thread-chips { display: flex; gap: 6px; padding: 8px 2px 2px; }
  .sidebar-thread-chip {
    height: 26px;
    padding: 0 10px;
    border: 1px solid var(--campus-field-border, rgba(255,255,255,.06)) !important;
    border-radius: 13px;
    color: var(--campus-rail-icon) !important;
    font-size: 12.5px;
  }
  .sidebar-thread-chip:hover { color: var(--campus-row-ink) !important; }
  .sidebar-thread-chip.active { background: var(--sidebar-selected) !important; color: var(--campus-row-ink) !important; }
  .sidebar-thread-list-row { width: 100%; border-radius: 8px; text-align: left; }
  .sidebar-thread-list-row.active { background: var(--sidebar-selected) !important; }
  .sidebar-thread-list-row .sidebar-app-icon { width: 22px; height: 22px; flex: 0 0 22px; display: grid; place-items: center; border-radius: 6px; color: #fff; font-size: 12px; }
  .sidebar-thread-list-row .sidebar-chat-copy { min-width: 0; flex: 1; }
  .sidebar-thread-list-row .sidebar-chat-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (min-width: 761px) {
  .sidebar-thread-list-row .sidebar-app-icon.sidebar-campus-icon { color: #0e1015; font-size: 11px; }
  .app-stage:not(.chrome-theme-dark) .sidebar-thread-list-row .sidebar-app-icon.sidebar-campus-icon { color: #fff; }
}

/* The Campus place uses the Campus mark itself, not a glyph tile. */
@media (min-width: 761px) {
  .sidebar-campus-icon,
  .app-stage:not(.chrome-theme-dark) .sidebar-campus-icon,
  .sidebar-thread-list-row .sidebar-app-icon.sidebar-campus-icon,
  .app-stage:not(.chrome-theme-dark) .sidebar-thread-list-row .sidebar-app-icon.sidebar-campus-icon {
    display: grid;
    place-items: center;
    background: transparent;
  }
  .sidebar-campus-icon .brand-mark {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    background-image: url("/brand/campus-mark-on-light.svg");
  }
  .app-stage.chrome-theme-dark .sidebar-campus-icon .brand-mark { background-image: url("/brand/campus-mark.svg"); }
}

/* Settings as a rail section: the inner sidebar is its navigation. */
@media (min-width: 761px) {
  .sidebar-settings-row {
    width: 100%;
    height: 36px;
    flex: 0 0 36px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 10px;
    border-radius: 8px;
    color: var(--campus-row-ink, #d7dae0) !important;
    font-size: 14.5px;
    text-align: left;
  }
  .sidebar-settings-row:hover { background: var(--sidebar-hover) !important; }
  .sidebar-settings-row.active { background: rgba(255,255,255,.07) !important; color: #eceef2 !important; }
  .app-stage:not(.chrome-theme-dark) .sidebar-settings-row.active { background: var(--sidebar-selected) !important; color: #1d2128 !important; }
  .sidebar-settings-icon { width: 22px; height: 22px; flex: 0 0 22px; display: grid; place-items: center; color: #9aa0ab; }
  .sidebar-settings-icon .campus-icon { width: 19px; height: 19px; }
  .sidebar-settings-row.active .sidebar-settings-icon { color: inherit; }
  .sidebar-settings-row .sidebar-app-icon { width: 22px; height: 22px; flex: 0 0 22px; display: grid; place-items: center; border-radius: 6px; color: #fff; font-size: 12px; }
  .sidebar-settings-label { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sidebar-settings-meta { flex: 0 0 auto; color: #6f7581; font-size: 12px; }
  .inner-sidebar.is-settings .sidebar-section-label { padding: 16px 10px 6px; color: #6f7581; font-size: 12px; font-weight: 500; }
  .sidebar-settings-more { padding-left: 43px !important; }

  /* Header: "Settings / <Page>" and Open <App> on an app's page. */
  .app-header-identity.is-settings { min-width: 0; gap: 8px; }
  .app-header-icon.is-settings-icon { display: grid; place-items: center; background: #394152; color: #fff; }
  .app-header-icon.is-settings-icon .campus-icon { width: 14px; height: 14px; }
  .app-header-crumb-slash { color: var(--sidebar-muted, #6f7581); }
  .app-header-crumb { min-width: 0; overflow: hidden; color: var(--sidebar-body, #d7dae0); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
  .app-header-open-app {
    height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    padding: 0 10px;
    border: 1px solid rgba(255,255,255,.1) !important;
    border-radius: 8px;
    background: transparent !important;
    color: var(--sidebar-body, #d7dae0) !important;
    font-size: 12.5px;
    white-space: nowrap;
  }
  .app-header-open-app .campus-icon { width: 13px; height: 13px; }
  .app-stage:not(.chrome-theme-dark) .app-header-open-app { border-color: rgba(15,20,25,.12) !important; color: #30353d !important; }
}

/* @ section: your page, MCP, people and groups, drawn by the shell. People
   are circles, groups rounded squares, apps squircles. */
@media (min-width: 761px) {
  .person-avatar, .group-avatar {
    width: 22px; height: 22px; flex: 0 0 22px;
    display: grid; place-items: center;
    border: 1px solid rgba(255,255,255,.12);
    background: #1c1f27; color: #c9ccd3;
    font-size: 10px; font-weight: 600;
  }
  .person-avatar { border-radius: 50%; }
  .group-avatar { border-radius: 7px; }
  .group-avatar .campus-icon { width: 14px; height: 14px; }
  .person-avatar.is-small { width: 18px; height: 18px; flex-basis: 18px; font-size: 9px; }
  .person-avatar.is-medium { width: 28px; height: 28px; flex-basis: 28px; font-size: 12px; }
  .person-avatar.is-large { width: 32px; height: 32px; flex-basis: 32px; font-size: 13px; }
  .person-avatar.is-header, .group-avatar.is-header { width: 22px; height: 22px; }
  .app-stage:not(.chrome-theme-dark) .person-avatar,
  .app-stage:not(.chrome-theme-dark) .group-avatar { border-color: rgba(15,20,25,.12); background: #eef0f3; color: #4b515c; }
  .people-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #3b7cf0; color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }
  .people-add-group { width: 22px; height: 22px; display: grid; place-items: center; margin-right: 6px; padding: 0; border-radius: 6px; color: var(--campus-rail-icon) !important; }
  .people-add-group:hover { background: var(--sidebar-hover) !important; }
  .people-add-group .campus-icon { width: 16px; height: 16px; }
  .people-new-group { padding: 2px 4px 6px; }
  .people-new-group input { width: 100%; height: 32px; padding: 0 10px; border: 1px solid var(--campus-field-border) !important; border-radius: 8px; background: var(--campus-field-bg) !important; color: var(--campus-row-ink); font-size: 13.5px; }
  .people-error { color: #f08080 !important; }

  .people-view {
    position: relative;
    z-index: 3;
    grid-row: 1 / -1;
    grid-column: 2;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 0 11px 11px 0;
    background: var(--campus-panel, #0f1116);
    color: var(--campus-row-ink, #d7dae0);
  }
  .people-header { flex: 0 0 auto; }
  .people-header-meta { color: #6f7581; font: 12px ui-monospace, "SF Mono", Menlo, monospace; }
  .people-page-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 8px 40px 40px; }
  .people-page-body.is-person { display: flex; flex-direction: column; padding: 0; }
  .people-page-frame { flex: 1 1 auto; width: 100%; border: 0; background: transparent; }
  .people-empty { margin: 24px 0; color: #7d838e; font-size: 13px; }
  .people-note { margin: 0 0 12px; color: #7d838e; font-size: 12.5px; }

  .people-mcp-toolbar { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin: 4px 0 20px; }
  .people-chips { display: flex; flex-wrap: wrap; gap: 6px; }
  .people-chip, .people-tab {
    height: 26px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px;
    border: 1px solid rgba(255,255,255,.08) !important; border-radius: 13px;
    background: transparent !important; color: #9aa0ab !important; font-size: 12.5px;
  }
  .people-chip .campus-icon { width: 14px; height: 14px; }
  .people-chip small, .people-tab small { color: #6f7581; font-size: 11.5px; }
  .people-chip.active, .people-tab.active { background: rgba(255,255,255,.08) !important; color: #eceef2 !important; }
  .people-endpoint { padding: 0; background: transparent !important; color: #6f7581 !important; font: 12px ui-monospace, "SF Mono", Menlo, monospace; }
  .people-endpoint:hover { color: #c9ccd3 !important; }

  .people-mcp-app { max-width: 820px; margin-bottom: 24px; }
  .people-mcp-app-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
  .people-mcp-app-head .sidebar-app-icon { width: 18px; height: 18px; flex: 0 0 18px; display: grid; place-items: center; border-radius: 5px; color: #fff; font-size: 10px; }
  .people-mcp-app-head strong { flex: 1; font-size: 13.5px; font-weight: 600; color: #eceef2; }
  .people-mcp-default-label { color: #6f7581; font-size: 12px; }
  .people-mcp-tools { overflow: hidden; border: 1px solid rgba(255,255,255,.07); border-radius: 10px; }
  .people-mcp-tool { min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: #121419; }
  .people-mcp-tool + .people-mcp-tool { border-top: 1px solid rgba(255,255,255,.06); }
  .people-mcp-tool-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
  .people-mcp-tool-copy code { color: #e2e4e9; font: 13px ui-monospace, "SF Mono", Menlo, monospace; }
  .people-mcp-tool-copy span { overflow: hidden; color: #8a909b; font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
  .people-price { color: #f29f45; font-size: 11.5px; white-space: nowrap; }

  .audience-pill {
    height: 24px; max-width: 240px; flex: 0 0 auto;
    display: inline-flex; align-items: center; gap: 5px; padding: 0 6px 0 8px;
    border: 1px solid rgba(255,255,255,.16) !important; border-radius: 6px;
    background: transparent !important; color: #e2e4e9 !important; font-size: 12px;
  }
  .audience-pill span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .audience-pill .campus-icon { width: 14px; height: 14px; flex: 0 0 14px; }
  .audience-pill.is-inherited { border-style: dashed !important; border-color: rgba(255,255,255,.14) !important; color: #9aa0ab !important; }
  .audience-pill.is-off { color: #6f7581 !important; }

  .audience-picker-layer { position: fixed; z-index: 120; inset: 0; }
  .audience-picker {
    position: fixed; width: 340px; max-height: calc(100vh - 24px); overflow: auto;
    padding: 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px;
    background: #16181e; box-shadow: 0 20px 50px rgba(0,0,0,.6); color: #e2e4e9;
  }
  .audience-picker-eyebrow { margin: 0; color: #8a909b; font-size: 12px; }
  .audience-picker-tool { margin: 2px 0 10px; font: 13px ui-monospace, "SF Mono", Menlo, monospace; }
  .audience-option {
    width: 100%; display: grid; grid-template-columns: 16px auto 1fr; align-items: center; gap: 10px;
    padding: 8px; border-radius: 8px; background: transparent !important; color: #e2e4e9 !important; text-align: left;
  }
  .audience-option.selected { background: rgba(255,255,255,.05) !important; }
  .audience-radio { width: 16px; height: 16px; border: 1.5px solid #6f7581; border-radius: 50%; }
  .audience-option.selected .audience-radio { border-color: #eceef2; background: radial-gradient(circle, #eceef2 0 4px, transparent 4.5px); }
  .audience-option-label { font-size: 13px; }
  .audience-option-detail { justify-self: end; color: #7d838e; font-size: 12px; text-align: right; }
  .audience-checks { display: flex; flex-direction: column; gap: 2px; padding: 2px 0 6px 34px; }
  .audience-check { min-height: 30px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
  .audience-check small { color: #7d838e; font-size: 11.5px; }
  .audience-add-person { display: flex; align-items: center; gap: 8px; color: #9aa0ab; }
  .audience-add-person .campus-icon { width: 14px; height: 14px; }
  .audience-add-person input { flex: 1; height: 28px; padding: 0 6px; border: 0 !important; background: transparent !important; color: #e2e4e9; font-size: 12.5px; }
  .audience-picker-price { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 8px; margin-top: 8px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); font-size: 12.5px; }
  .audience-picker-price select { height: 28px; padding: 0 8px; border: 1px solid rgba(255,255,255,.12); border-radius: 7px; background: rgba(255,255,255,.04); color: #e2e4e9; font-size: 12.5px; }
  .audience-picker-price small { grid-column: 1 / -1; color: #6f7581; font-size: 11.5px; }
  .audience-picker-footer { display: flex; align-items: center; gap: 8px; padding-top: 10px; font-size: 12px; color: #8a909b; }
  .audience-picker-footer > span { flex: 1; }
  .audience-default { padding: 0 6px; background: transparent !important; color: #9aa0ab !important; font-size: 12px; }
  .audience-done { height: 28px; padding: 0 12px; border-radius: 7px; background: #eceef2 !important; color: #0f1116 !important; font-size: 12.5px; font-weight: 600; }
  .audience-done:disabled { background: rgba(255,255,255,.07) !important; color: #6f7581 !important; }

  .people-tabs { display: flex; gap: 6px; margin: 4px 0 16px; }
  .people-page-body.is-person .people-tabs { margin: 0; padding: 8px 40px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .people-section { max-width: 680px; margin-bottom: 28px; }
  .people-section-head { display: flex; align-items: center; gap: 10px; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.07); }
  .people-section-head h2 { margin: 0; color: #eceef2; font-size: 13px; font-weight: 600; }
  .people-section-head h2 small { margin-left: 4px; color: #6f7581; font-weight: 400; }
  .people-section-sub { color: #6f7581; font-size: 12.5px; }
  .people-inline-add { margin-left: auto; }
  .people-inline-add input { width: 180px; height: 28px; padding: 0 8px; border: 1px solid rgba(255,255,255,.1) !important; border-radius: 7px; background: rgba(255,255,255,.03) !important; color: #e2e4e9; font-size: 12.5px; }
  .people-link { margin-left: auto; padding: 0; background: transparent !important; color: #9aa0ab !important; font-size: 12.5px; }
  .people-member, .people-can-use { min-height: 48px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.05); }
  .people-member-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
  .people-member-copy strong { color: #e2e4e9; font-size: 13.5px; font-weight: 500; }
  .people-member-copy code { color: #6f7581; font: 12px ui-monospace, "SF Mono", Menlo, monospace; }
  .people-member-copy span { color: #8a909b; font-size: 12.5px; }
  .people-can-use code { flex: 1; color: #e2e4e9; font: 13px ui-monospace, "SF Mono", Menlo, monospace; }
  .people-can-use .sidebar-app-icon { width: 18px; height: 18px; flex: 0 0 18px; display: grid; place-items: center; border-radius: 5px; color: #fff; font-size: 10px; }
  .people-actions { display: flex; gap: 6px; }
  .people-tag { height: 18px; padding: 0 6px; border-radius: 5px; background: rgba(255,255,255,.06); color: #9aa0ab; font-size: 11.5px; line-height: 18px; white-space: nowrap; }
  .people-tag.is-stranger { background: rgba(242,159,69,.1); color: #e0a35a; }
}
@media (min-width: 761px) {
  .people-view .campus-button {
    height: 30px; min-height: 30px; display: inline-flex; align-items: center; padding: 0 12px;
    border: 1px solid rgba(255,255,255,.12) !important; border-radius: 8px;
    background: transparent !important; color: #c9ccd3 !important; font-size: 12.5px; font-weight: 500;
  }
  .people-view .campus-button:hover { background: rgba(255,255,255,.05) !important; }
  .people-view .campus-button-primary { border-color: transparent !important; background: #eceef2 !important; color: #0f1116 !important; }
  .people-view .campus-button-danger { border-color: rgba(240,96,96,.35) !important; color: #f08080 !important; }
  .people-view .campus-button:disabled { opacity: .6; }
  .audience-option, .audience-default, .people-endpoint, .people-link { border: 0 !important; }
  .audience-option-detail { max-width: 150px; line-height: 1.3; }
  .audience-check > span:not(.person-avatar) { flex: 1; }
  .audience-check span { flex: initial; }
  .people-page-body > .people-member { max-width: 680px; }
  .app-stage:not(.chrome-theme-dark) .people-view { color: #30353d; }
}
