:root {
  color-scheme: light;
  --ink: #17202b;
  --ink-soft: #59636e;
  --muted: #7c858f;
  --paper: #f3f1eb;
  --surface: #fbfaf7;
  --surface-strong: #ffffff;
  --line: #dedbd2;
  --line-soft: #ebe8e0;
  --brand-midnight: #031b36;
  --brand-blue: #0a43b8;
  --brand-cyan: #08ace3;
  --brand-ivory: #f7f4ec;
  --navy: #1f4f7d;
  --navy-dark: #173b5e;
  --focus: #1769aa;
  --shadow: 0 14px 40px rgba(23, 32, 43, 0.07);
  --radius-lg: 22px;
  --radius-md: 15px;
  --sidebar-width: 252px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { max-width: 100%; overflow-x: hidden; background: var(--paper); }

body {
  margin: 0;
  max-width: 100%;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
}

button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(23, 105, 170, 0.28); outline-offset: 2px; }

.is-hidden { display: none !important; }

/* Identity entry */
.auth-shell {
  position: relative;
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(480px, 1.18fr) minmax(440px, .82fr);
  overflow: hidden;
  background: var(--brand-ivory);
}

.auth-story {
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(32px, 4.4vw, 68px);
  color: var(--brand-ivory);
  background:
    radial-gradient(circle at 70% 38%, rgba(8, 172, 227, .18), transparent 25%),
    radial-gradient(circle at 20% 95%, rgba(10, 67, 184, .3), transparent 35%),
    linear-gradient(145deg, #021426 0%, #031b36 50%, #061f42 100%);
}

.auth-story::before {
  content: "";
  position: absolute;
  inset: -12% -20% auto auto;
  z-index: -1;
  width: 68%;
  aspect-ratio: 1;
  border: 1px solid rgba(8, 172, 227, .16);
  border-radius: 50%;
  box-shadow: 0 0 0 90px rgba(8, 172, 227, .025), 0 0 0 180px rgba(8, 172, 227, .018);
}

.auth-grid-lines {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .18;
  background-image:
    linear-gradient(rgba(122, 205, 239, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 205, 239, .13) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom right, black, transparent 72%);
}

.auth-story-header,
.auth-story-footer,
.auth-entry-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.maveriiick-wordmark { width: clamp(202px, 17vw, 264px); height: auto; }
.auth-story-header .maveriiick-wordmark {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 11px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 34px rgba(0, 8, 20, .24), 0 0 0 1px rgba(8, 172, 227, .08);
}
.auth-environment {
  color: #78a8c4;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .2em;
}

.auth-story-content { width: min(650px, 88%); margin: auto 0; padding: 60px 0; }
.auth-kicker { margin: 0 0 14px; color: var(--brand-cyan); font-size: 10px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.auth-story h1 { margin-bottom: 20px; font-size: clamp(64px, 7.2vw, 112px); line-height: .86; letter-spacing: -.055em; }
.auth-story-lead { max-width: 590px; margin: 0; color: #b9cfdd; font-family: Georgia, "Times New Roman", serif; font-size: clamp(20px, 2vw, 29px); line-height: 1.46; }

.auth-constellation {
  position: absolute;
  top: 50%;
  right: clamp(28px, 5vw, 90px);
  width: clamp(150px, 17vw, 250px);
  aspect-ratio: 1;
  transform: translateY(-58%);
  opacity: .75;
}

.auth-constellation img {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 66px;
  height: 66px;
  border-radius: 18px;
  box-shadow: 0 0 45px rgba(8, 172, 227, .28);
  transform: translate(-50%, -50%);
}

.constellation-ring { position: absolute; inset: 0; border: 1px solid rgba(8, 172, 227, .36); border-radius: 50%; }
.constellation-ring::before,
.constellation-ring::after { content: ""; position: absolute; width: 7px; height: 7px; border: 1px solid var(--brand-cyan); border-radius: 50%; background: var(--brand-midnight); box-shadow: 0 0 14px rgba(8, 172, 227, .6); }
.constellation-ring::before { top: 17%; right: 10%; }
.constellation-ring::after { bottom: 9%; left: 23%; }
.ring-two { inset: 16%; border-style: dashed; transform: rotate(28deg); }
.ring-two::before { top: 55%; right: -4px; }.ring-two::after { bottom: auto; top: -4px; left: 42%; }
.constellation-axis { position: absolute; top: 50%; left: -14%; width: 128%; height: 1px; background: linear-gradient(90deg, transparent, rgba(8, 172, 227, .58), transparent); }
.axis-two { transform: rotate(90deg); }

.auth-story-footer { align-items: flex-end; color: #7995a8; }
.auth-story-footer > p { max-width: 350px; margin: 0; color: #d7e4eb; font-family: Georgia, "Times New Roman", serif; font-size: 15px; line-height: 1.5; }
.auth-story-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 18px; font-size: 8px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.auth-story-meta span { display: inline-flex; align-items: center; gap: 7px; }
.auth-story-meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--brand-cyan); box-shadow: 0 0 8px var(--brand-cyan); }

.auth-entry {
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 72px) clamp(32px, 6vw, 88px) 28px;
  background:
    radial-gradient(circle at 88% 12%, rgba(8, 172, 227, .08), transparent 24%),
    var(--brand-ivory);
}

.auth-entry::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  background: linear-gradient(transparent, rgba(8, 172, 227, .55), transparent);
}

.auth-mobile-parent { display: none; }
.login-panel { width: min(440px, 100%); margin: auto; }
.login-product-lockup { display: flex; align-items: center; gap: 13px; margin-bottom: clamp(34px, 5vh, 52px); }
.login-product-lockup img { width: 46px; height: 46px; border-radius: 13px; box-shadow: 0 8px 22px rgba(3, 27, 54, .16); }
.login-product-lockup strong,
.login-product-lockup small { display: block; }
.login-product-lockup strong { color: var(--brand-midnight); font-size: 16px; letter-spacing: .28em; }
.login-product-lockup small { margin-top: 4px; color: #54738a; font-size: 8px; font-weight: 750; letter-spacing: .15em; }

.login-heading { margin-bottom: 25px; }
.login-heading h2 { margin-bottom: 11px; color: var(--brand-midnight); font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 3.2vw, 47px); font-weight: 500; line-height: 1.05; letter-spacing: -.04em; }
.login-heading > p:last-child { max-width: 370px; margin: 0; color: #66727b; font-size: 13px; line-height: 1.6; }
.login-panel > .login-heading .auth-kicker { color: #087fa7; }

.workspace-login-button,
.atlas-login-button {
  display: grid;
  width: 100%;
  min-height: 52px;
  grid-template-columns: 24px 1fr 24px;
  align-items: center;
  gap: 12px;
  padding: 11px 15px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.workspace-login-button { border: 1px solid #cbd2d3; color: var(--brand-midnight); background: rgba(255, 255, 255, .72); }
.workspace-login-button:hover { border-color: #9eb3bd; background: #fff; box-shadow: 0 8px 24px rgba(3, 27, 54, .07); transform: translateY(-1px); }
.google-g { width: 20px; height: 20px; }
.button-arrow { color: #7190a2; font-size: 17px; }

.login-divider { display: flex; align-items: center; gap: 12px; margin: 23px 0; color: #929a9e; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.login-divider::before,
.login-divider::after { content: ""; height: 1px; flex: 1; background: #dcded9; }
.login-divider span { white-space: nowrap; }
.login-form { display: grid; gap: 18px; padding: 20px; border: 1px solid rgba(185, 195, 194, .72); border-radius: 17px; background: rgba(255, 255, 255, .62); box-shadow: 0 18px 45px rgba(3, 27, 54, .075); backdrop-filter: blur(12px); }
.form-field { display: grid; gap: 7px; }
.form-field label { color: #243746; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.field-link { padding: 0; border: 0; color: var(--brand-blue); background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; }
.form-field input {
  width: 100%;
  height: 49px;
  padding: 0 14px;
  border: 1px solid #cfd3d0;
  border-radius: 11px;
  outline: 0;
  color: var(--brand-midnight);
  background: rgba(255, 255, 255, .7);
  font-size: 13px;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.form-field input:hover { border-color: #adb8b8; background: #fff; }
.form-field input:focus { border-color: var(--brand-cyan); background: #fff; box-shadow: 0 0 0 4px rgba(8, 172, 227, .11); }
.form-field input[aria-invalid="true"] { border-color: #ad4b45; box-shadow: 0 0 0 3px rgba(173, 75, 69, .08); }
.form-field input::placeholder { color: #a0a5a6; }
.password-field { position: relative; }
.password-field input { padding-right: 62px; }
.password-toggle { position: absolute; inset: 0 11px 0 auto; padding: 0 4px; border: 0; color: #52758a; background: transparent; font-size: 10px; font-weight: 750; cursor: pointer; }
.field-error { min-height: 0; color: #9d413c; font-size: 10px; }
.field-error:not(:empty) { min-height: 13px; }
.login-status { min-height: 0; margin-top: -6px; color: #52758a; font-size: 10px; line-height: 1.45; }
.login-status:not(:empty) { min-height: 15px; }

.atlas-login-button { min-height: 54px; border: 1px solid var(--brand-midnight); color: #fff; background: linear-gradient(135deg, #031b36, #0a355f); box-shadow: 0 12px 28px rgba(3, 27, 54, .17); }
.atlas-login-button > span:first-child { grid-column: 2; }
.atlas-login-button > span:last-child { grid-column: 3; }
.atlas-login-button:hover { border-color: #082b51; background: #082b51; box-shadow: 0 14px 32px rgba(3, 27, 54, .23); transform: translateY(-1px); }
.atlas-login-button:disabled,
.workspace-login-button:disabled { cursor: wait; opacity: .7; transform: none; }
.button-star { color: var(--brand-cyan); font-size: 16px; }

.invite-note { display: flex; gap: 11px; margin-top: 22px; padding: 14px 15px; border: 1px solid #d6d9d4; border-radius: 12px; background: rgba(255, 255, 255, .36); }
.invite-note-icon { display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; border-radius: 7px; color: var(--brand-blue); background: #e2ebf5; font-size: 12px; }
.invite-note p { margin: 0; color: #70787d; font-size: 10px; line-height: 1.5; }
.invite-note strong { color: #344650; }
.prototype-note { margin: 13px 0 0; color: #7d8a8e; font-size: 9px; line-height: 1.45; text-align: center; }
.password-setup-user { margin: -8px 0 20px; padding: 11px 13px; border: 1px solid #d2d9d9; border-radius: 10px; color: #66757d; background: rgba(255,255,255,.48); font-size: 10px; }
.password-setup-user strong { color: var(--brand-midnight); }
.password-guidance { margin-top: -5px; color: #7b8589; font-size: 9px; line-height: 1.5; }
.password-setup-signout { display: block; margin: 18px auto 0; padding: 5px; border: 0; color: #54758a; background: transparent; font-size: 10px; font-weight: 750; cursor: pointer; }
.password-setup-signout:hover { color: var(--brand-blue); }
.auth-entry-footer { width: min(440px, 100%); margin: clamp(28px, 6vh, 64px) auto 0; color: #8a9294; font-size: 9px; }
.secure-session { display: inline-flex; align-items: center; gap: 7px; }
.secure-session i { width: 6px; height: 6px; border-radius: 50%; background: #4c916a; box-shadow: 0 0 0 3px rgba(76, 145, 106, .12); }

@media (max-width: 1080px) {
  .auth-shell { grid-template-columns: minmax(390px, .85fr) minmax(430px, 1fr); }
  .auth-constellation { right: -22px; opacity: .5; }
  .auth-story-meta { display: none; }
}

@media (max-width: 780px) {
  .auth-shell { display: block; background: var(--brand-ivory); }
  .auth-story { display: none; }
  .auth-entry { min-height: 100svh; justify-content: flex-start; padding: 24px max(22px, env(safe-area-inset-left)) max(22px, env(safe-area-inset-bottom)); }
  .auth-entry::before { inset: 0 0 auto; width: auto; height: 3px; background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan)); }
  .auth-mobile-parent { display: block; width: 150px; margin-bottom: clamp(38px, 8vh, 74px); }
  .auth-mobile-parent img { display: block; width: 100%; }
  .login-panel { margin: 0 auto; }
  .login-product-lockup { margin-bottom: 34px; }
  .login-heading h2 { font-size: clamp(34px, 9vw, 44px); }
  .auth-entry-footer { margin-top: auto; padding-top: 38px; }
}

@media (max-width: 420px) {
  .auth-entry { padding: 18px max(18px, env(safe-area-inset-left)) max(18px, env(safe-area-inset-bottom)); }
  .auth-mobile-parent { width: 136px; margin-bottom: clamp(34px, 6vh, 48px); }
  .login-product-lockup { gap: 11px; margin-bottom: 28px; }
  .login-product-lockup img { width: 42px; height: 42px; border-radius: 12px; }
  .login-heading { margin-bottom: 24px; }
  .login-heading h2 { font-size: clamp(32px, 9.5vw, 40px); }
  .login-form { gap: 15px; padding: 16px; border-radius: 15px; }
  .invite-note { margin-top: 19px; padding: 13px; }
  .auth-entry-footer { flex-wrap: wrap; row-gap: 10px; padding-top: 28px; }
}

@media (max-width: 780px) and (max-height: 680px) {
  .auth-mobile-parent { margin-bottom: 24px; }
  .login-product-lockup { margin-bottom: 22px; }
  .login-heading { margin-bottom: 19px; }
  .login-form { gap: 12px; }
  .form-field input { height: 44px; }
  .invite-note { margin-top: 14px; }
}

@media (max-height: 760px) and (min-width: 781px) {
  .auth-entry { padding-top: 26px; padding-bottom: 20px; }
  .login-product-lockup { margin-bottom: 26px; }
  .login-heading { margin-bottom: 20px; }
  .login-divider { margin: 16px 0; }
  .login-form { gap: 13px; }
  .form-field input { height: 44px; }
  .invite-note { margin-top: 16px; padding: 11px; }
  .auth-entry-footer { margin-top: 22px; }
}

.app-shell { min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  padding: 26px 18px 18px;
  color: #eaf0f5;
  background: var(--brand-midnight);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: width 180ms ease, padding 180ms ease, transform 180ms ease;
}

.sidebar-toggle {
  display: grid;
  width: 26px;
  height: 26px;
  margin: 0 0 7px 10px;
  place-items: center;
  padding: 0 0 2px;
  border: 1px solid rgba(8, 172, 227, .45);
  border-radius: 50%;
  color: #dff7ff;
  background: #0a355a;
  box-shadow: 0 5px 14px rgba(0, 10, 25, .28);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}
.sidebar-toggle:hover { color: #fff; background: #0b4c78; transform: scale(1.06); }

.primary-nav, .module-nav { display: grid; gap: 4px; }
.nav-item, .module-nav-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  color: #bdc9d2;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}
.nav-item:hover, .module-nav-item:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.nav-item.is-active, .module-nav-item.is-active { color: #fff; background: rgba(255, 255, 255, 0.11); }
.nav-icon { width: 24px; color: #a9bbc8; font-size: 18px; text-align: center; }
.nav-count { margin-left: auto; min-width: 20px; padding: 2px 6px; border-radius: 999px; color: #fff; background: #b65a48; font-size: 11px; text-align: center; }

.sidebar-section { min-height: 0; margin-top: 28px; }
.sidebar-label-row { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 10px; }
.sidebar-label { color: #758898; font-size: 10px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.icon-button { display: grid; width: 27px; height: 27px; place-items: center; border: 0; border-radius: 8px; color: #b9c7d1; background: rgba(255, 255, 255, 0.06); cursor: pointer; }
.module-nav { max-height: calc(100vh - 390px); overflow: auto; }
.module-nav-item { font-size: 13px; }
.module-nav-item .module-symbol { width: 26px; height: 26px; font-size: 11px; }

.sidebar-footer { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.09); }
.profile-card { display: flex; width: 100%; align-items: center; gap: 10px; padding: 7px 6px; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.avatar { display: grid; width: 34px; height: 34px; overflow: hidden; place-items: center; border-radius: 50%; color: #173b5e; background: #d6e5ef; font-size: 11px; font-weight: 800; }
.avatar img, .account-avatar img, .profile-avatar-large img, .account-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.profile-copy { min-width: 0; flex: 1; }
.profile-copy strong, .profile-copy small { display: block; }
.profile-copy strong { font-size: 13px; }
.profile-copy small { margin-top: 2px; color: #8193a1; font-size: 11px; }

.workspace { min-height: 100vh; margin-left: var(--sidebar-width); }
.workspace-controls { position: fixed; z-index: 24; top: 12px; right: 16px; display: flex; align-items: center; gap: 8px; }
.workspace-notification, .mobile-menu-button { position: relative; display: grid; width: 38px; height: 38px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 11px; color: #536b7a; background: rgba(255,255,255,.86); box-shadow: 0 5px 18px rgba(20,42,57,.08); cursor: pointer; backdrop-filter: blur(14px); }
.workspace-notification svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.notification-dot { position: absolute; top: 8px; right: 9px; width: 5px; height: 5px; border-radius: 50%; background: #b65a48; }
.mobile-menu-button { display: none; font-size: 18px; }
body.is-personal-atlas .workspace-controls, body.is-team-chat .workspace-controls { display: none; }

#app-main { min-height: 100vh; outline: none; }
.page { width: min(1220px, calc(100% - 72px)); min-width: 0; margin: 0 auto; padding: 56px 0 92px; }
.home-page { padding-top: 46px; }
.welcome-section { max-width: 920px; min-width: 0; margin: 0 auto; text-align: center; }
.eyebrow { margin: 0 0 9px; color: var(--navy); font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 12px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 4vw, 58px); font-weight: 500; line-height: 1.05; letter-spacing: -0.035em; }
h2 { margin-bottom: 0; font-size: 22px; letter-spacing: -0.025em; }
h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.022em; }
.welcome-subtitle, .page-header > p, .module-hero-title p { color: var(--ink-soft); line-height: 1.6; }
.welcome-subtitle { margin-bottom: 27px; font-size: 16px; }

.ask-panel { display: flex; align-items: center; gap: 14px; max-width: 820px; min-height: 72px; margin: 0 auto; padding: 11px 12px 11px 18px; border: 1px solid #d1cec6; border-radius: 18px; background: var(--surface-strong); box-shadow: var(--shadow); text-align: left; }
.ask-orbit { position: relative; width: 38px; height: 38px; flex: 0 0 auto; border: 1px solid #7a9ab5; border-radius: 50%; }
.ask-orbit::before { content: ""; position: absolute; inset: 6px; border: 1px solid #aec3d4; border-radius: 50%; transform: rotate(-28deg) scaleX(0.48); }
.ask-orbit span { position: absolute; top: 6px; right: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--navy); }
.ask-copy { min-width: 0; flex: 1; }
.ask-copy label { display: block; margin-bottom: 3px; color: var(--navy); font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.ask-copy input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 15px; }
.ask-copy input::placeholder { color: #9ba0a3; }
.ask-submit { display: grid; width: 42px; height: 42px; place-items: center; border: 0; border-radius: 13px; color: #fff; background: var(--navy); font-size: 19px; cursor: pointer; }
.ask-submit:hover { background: var(--navy-dark); }

.suggestion-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 13px; }
.suggestion-row button, .filter-pills button { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: #68717a; background: rgba(255, 255, 255, 0.45); font-size: 11px; cursor: pointer; }
.suggestion-row button:hover, .filter-pills button:hover, .filter-pills button.is-active { color: var(--navy); background: #fff; border-color: #b8c7d2; }

.section-block { margin-top: 58px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.section-heading .eyebrow { margin-bottom: 5px; }
.text-button { padding: 0; border: 0; color: var(--navy); background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.text-button span { margin-left: 4px; }

.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.module-card { display: flex; min-height: 200px; flex-direction: column; justify-content: space-between; padding: 19px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.66); text-align: left; cursor: pointer; transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.module-card:hover { transform: translateY(-3px); border-color: #bcc5ca; box-shadow: 0 12px 30px rgba(28, 37, 45, 0.08); }
.module-card-top, .module-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.module-symbol { display: inline-grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border: 1px solid color-mix(in srgb, var(--accent), transparent 62%); border-radius: 12px; color: var(--accent); background: var(--tint); font-family: Georgia, serif; font-size: 15px; font-weight: 700; }
.module-team-os { --accent: #315f91; --tint: #e8eff7; --module-accent: #315f91; --module-tint: #e8eff7; }
.module-investments { --accent: #26725f; --tint: #e5f2ee; --module-accent: #26725f; --module-tint: #e5f2ee; }
.module-books { --accent: #8b5c35; --tint: #f4ece3; --module-accent: #8b5c35; --module-tint: #f4ece3; }
.module-history { --accent: #705795; --tint: #eee9f5; --module-accent: #705795; --module-tint: #eee9f5; }
.module-dogs { --accent: #a2633d; --tint: #f5ebe4; --module-accent: #a2633d; --module-tint: #f5ebe4; }
.module-supplements { --accent: #6d793b; --tint: #eef0e2; --module-accent: #6d793b; --module-tint: #eef0e2; }
.module-visibility { color: var(--muted); font-size: 9px; }
.module-card-copy { display: block; margin: 23px 0; }
.module-card-copy strong, .module-card-copy span { display: block; }
.module-card-copy strong { margin-bottom: 8px; font-size: 17px; }
.module-card-copy span { color: var(--ink-soft); font-size: 12px; line-height: 1.55; }
.module-card-meta { min-width: 0; padding-top: 13px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 10px; }
.module-card-meta > span { max-width: 50%; overflow-wrap: anywhere; }
.meta-pulse { color: #527263; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr); gap: 16px; }
.feature-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.64); }
.daily-card { padding: 26px; }
.feature-card-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.feature-card-heading .text-button { margin-left: auto; }
.feature-card-heading h2 { font-family: Georgia, serif; font-weight: 500; }
.kicker-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; color: var(--navy); background: #e5edf4; }
.edition-lead { display: grid; grid-template-columns: 58px 1fr; gap: 20px; padding-top: 23px; border-top: 1px solid var(--line); }
.edition-number, .story-number { color: #a8b1b8; font-family: Georgia, serif; font-size: 34px; }
.edition-tag { display: inline-block; margin-bottom: 9px; color: var(--navy); font-size: 10px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.edition-lead h3 { max-width: 660px; margin-bottom: 10px; font-family: Georgia, serif; font-weight: 500; }
.edition-lead p { color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.source-line { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.source-line span, .source-line button { padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; color: #65707a; background: #faf9f6; font-size: 9px; }
.source-line button { color: var(--navy); cursor: pointer; }
.pulse-card { padding: 26px; }
.compact-heading { justify-content: space-between; }
.health-score { display: grid; width: 52px; height: 52px; place-items: center; border: 5px solid #dfe8e1; border-top-color: #5f856b; border-radius: 50%; color: #44654f; font-size: 15px; font-weight: 800; }
.pulse-list { display: grid; gap: 12px; margin: 29px 0; }
.pulse-list > div { display: grid; grid-template-columns: 9px 34px 1fr; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.pulse-list span:last-child { color: var(--ink-soft); font-size: 11px; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; }
.pulse-dot.good { background: #4e8a68; }.pulse-dot.warn { background: #b47a46; }.pulse-dot.calm { background: #6384a3; }
.primary-button, .secondary-button { min-height: 39px; padding: 9px 14px; border-radius: 10px; font-size: 11px; font-weight: 750; cursor: pointer; }
.primary-button { border: 1px solid var(--navy); color: #fff; background: var(--navy); }
.primary-button:hover { background: var(--navy-dark); }
.primary-button.compact { min-height: 36px; }
.secondary-button { border: 1px solid var(--line); color: var(--ink); background: #fff; }
.secondary-button:hover { border-color: #aab8c2; }
.pulse-card .secondary-button { display: flex; width: 100%; justify-content: space-between; }
.pulse-card .secondary-button span { display: grid; min-width: 20px; place-items: center; border-radius: 999px; color: #fff; background: #b65a48; }

.page-header { max-width: 770px; margin-bottom: 42px; }
.page-header h1 { margin-bottom: 17px; }
.split-header { display: flex; max-width: none; align-items: flex-end; justify-content: space-between; gap: 36px; }
.split-header > div:first-child { max-width: 800px; }
.header-stat { min-width: 130px; padding-left: 24px; border-left: 1px solid var(--line); }
.header-stat strong, .header-stat span { display: block; }
.header-stat strong { color: var(--navy); font-family: Georgia, serif; font-size: 42px; font-weight: 500; }
.header-stat span { color: var(--muted); font-size: 11px; }

.module-manager-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.manager-card { display: flex; min-height: 260px; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-top: 3px solid var(--accent, var(--line)); border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.67); }
.manager-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; }
.manager-card h2 { margin-bottom: 9px; }
.manager-card > p:not(.eyebrow) { color: var(--ink-soft); font-size: 12px; line-height: 1.55; }
.manager-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-soft); color: #5f7868; font-size: 10px; }
.switch { position: relative; display: inline-block; width: 39px; height: 23px; }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch > span:not(.sr-only) { position: absolute; inset: 0; border-radius: 999px; background: #c8cbd0; cursor: pointer; transition: background 150ms ease; }
.switch > span:not(.sr-only)::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.18); transition: transform 150ms ease; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(16px); }
.add-module-card { align-items: center; justify-content: center; border-style: dashed; border-top-width: 1px; text-align: center; }
.add-symbol { display: grid; width: 44px; height: 44px; margin-bottom: 17px; place-items: center; border: 1px solid #aab8c2; border-radius: 50%; color: var(--navy); font-size: 23px; }

.module-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.module-hero-title { display: flex; max-width: 830px; align-items: flex-start; gap: 18px; }
.module-hero-title .module-symbol { width: 56px; height: 56px; border-radius: 17px; font-size: 21px; }
.module-hero-title h1 { margin-bottom: 8px; font-size: clamp(36px, 4vw, 52px); }
.module-hero-title p:last-child { margin-bottom: 0; }
.module-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.module-badges span { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink-soft); background: rgba(255,255,255,.55); font-size: 9px; }
.module-badges button { border: 0; background: transparent; cursor: pointer; }
.module-page .ask-panel { max-width: none; border-color: color-mix(in srgb, var(--module-accent), transparent 65%); box-shadow: 0 14px 38px color-mix(in srgb, var(--module-accent), transparent 91%); }
.module-page .ask-submit { background: var(--module-accent); }
.module-page .ask-copy label { color: var(--module-accent); }
.module-suggestions { justify-content: flex-start; max-width: none; }
.module-content-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(270px, .72fr); gap: 28px; }
.recent-list { border-top: 1px solid var(--line); }
.recent-row { display: grid; width: 100%; grid-template-columns: 44px 1fr 20px; align-items: center; gap: 12px; padding: 19px 5px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.recent-row:hover strong { color: var(--module-accent); }
.recent-index { color: #a5adb4; font-family: Georgia, serif; }
.recent-row strong, .recent-row small { display: block; }
.recent-row strong { margin-bottom: 5px; font-size: 14px; }
.recent-row small { color: var(--muted); font-size: 10px; }
.recent-arrow { color: var(--module-accent); }
.module-control-card { padding: 23px; border: 1px solid color-mix(in srgb, var(--module-accent), transparent 72%); border-radius: var(--radius-md); background: color-mix(in srgb, var(--module-tint), white 42%); }
.module-control-card h2 { margin-bottom: 23px; }
.module-control-card dl { margin: 0 0 22px; }
.module-control-card dl > div { display: flex; justify-content: space-between; gap: 15px; padding: 11px 0; border-bottom: 1px solid color-mix(in srgb, var(--module-accent), transparent 84%); font-size: 10px; }
.module-control-card dt { color: var(--muted); }.module-control-card dd { margin: 0; text-align: right; font-weight: 700; }
.module-control-card .secondary-button { width: 100%; }

.library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.library-list { border-top: 1px solid var(--line); }
.library-row { display: grid; width: 100%; grid-template-columns: 34px minmax(240px, 1fr) 90px 90px 18px; align-items: center; gap: 12px; padding: 17px 7px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.library-row:hover { background: rgba(255,255,255,.4); }
.file-glyph { color: var(--navy); font-size: 18px; }
.library-title strong, .library-title small { display: block; }
.library-title strong { margin-bottom: 4px; font-size: 13px; }
.library-title small, .source-count, .library-age { color: var(--muted); font-size: 10px; }

.review-list { display: grid; gap: 12px; }
.review-card { display: grid; min-width: 0; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 23px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.66); }
.review-module { color: var(--navy); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.review-copy { min-width: 0; }
.review-copy h2 { margin-bottom: 7px; overflow-wrap: anywhere; font-size: 16px; }
.review-copy p { margin-bottom: 9px; overflow-wrap: anywhere; color: var(--ink-soft); font-size: 11px; line-height: 1.5; }
.review-actions { display: flex; gap: 7px; }
.empty-state { padding: 80px 20px; border: 1px dashed #c7c4bc; border-radius: var(--radius-lg); text-align: center; }
.empty-state > span { display: grid; width: 45px; height: 45px; margin: 0 auto 18px; place-items: center; border-radius: 50%; color: #4b775d; background: #e4efe8; }
.empty-state p { color: var(--muted); }

.edition-masthead { max-width: 880px; margin-bottom: 55px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.edition-masthead p:last-child { max-width: 650px; color: var(--ink-soft); line-height: 1.55; }
.edition-story { display: grid; grid-template-columns: 70px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.lead-story { border-top: 0; }
.edition-story h2 { max-width: 800px; margin-bottom: 14px; font-family: Georgia, serif; font-size: 32px; font-weight: 500; line-height: 1.18; }
.edition-story p { max-width: 750px; color: var(--ink-soft); line-height: 1.65; }
.story-quote { max-width: 750px; margin: 25px 0; padding: 18px 22px; border-left: 3px solid var(--navy); color: #364554; background: rgba(255,255,255,.55); font-family: Georgia, serif; font-size: 18px; line-height: 1.5; }
.edition-story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.edition-story-grid .edition-story { grid-template-columns: 50px 1fr; }
.edition-story-grid .edition-story h2 { font-size: 23px; }

.profile-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; }
.profile-grid .feature-card { padding: 26px; }
.profile-grid h2 { margin-bottom: 18px; }
.profile-grid p { color: var(--ink-soft); line-height: 1.6; }
.settings-list { display: grid; }
.settings-list > div { display: flex; justify-content: space-between; gap: 30px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 11px; }
.settings-list span { color: var(--muted); }.settings-list strong { text-align: right; }

.settings-page { width: min(1280px, calc(100% - 72px)); }
.settings-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 38px; }
.settings-header h1 { margin-bottom: 9px; }
.settings-header > div:first-child > p:last-child { margin: 0; color: var(--ink-soft); }
.settings-person-card { display: flex; min-width: 200px; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.55); }
.settings-person-card > span:last-child { min-width: 0; }
.settings-person-card strong, .settings-person-card small { display: block; }
.settings-person-card strong { font-size: 12px; }.settings-person-card small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.settings-layout { display: grid; grid-template-columns: minmax(230px, .72fr) minmax(0, 2.1fr); align-items: start; gap: 30px; }
.settings-rail { display: grid; position: sticky; top: 96px; gap: 4px; scrollbar-width: none; }
.settings-rail::-webkit-scrollbar { display: none; }
.settings-rail-item { position: relative; display: grid; width: 100%; grid-template-columns: 1fr 18px; gap: 3px 12px; padding: 12px 13px; border: 1px solid transparent; border-radius: 11px; color: var(--ink-soft); background: transparent; text-align: left; cursor: pointer; }
.settings-rail-item:hover { border-color: var(--line); background: rgba(255,255,255,.42); }
.settings-rail-item.is-active { border-color: #c9d8e2; color: var(--brand-midnight); background: #fff; box-shadow: 0 7px 18px rgba(31,79,125,.06); }
.settings-rail-item span { font-size: 12px; font-weight: 750; }
.settings-rail-item small { grid-column: 1; color: #8a9297; font-size: 9px; line-height: 1.4; }
.settings-rail-item i { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: #7894a7; font-style: normal; }
.settings-rail-policy { display: flex; gap: 10px; margin-top: 17px; padding: 14px; border: 1px solid #d9d9d1; border-radius: 12px; color: #778083; background: rgba(255,255,255,.38); }
.settings-rail-policy > span { color: var(--brand-blue); }
.settings-rail-policy p { margin: 0; font-size: 9px; line-height: 1.5; }.settings-rail-policy strong { display: block; margin-bottom: 2px; color: #475861; }
.settings-content { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.68); box-shadow: 0 16px 40px rgba(23,32,43,.045); }
.settings-content-heading { padding: 28px 30px 24px; border-bottom: 1px solid var(--line); }
.settings-content-heading h2 { margin-bottom: 7px; font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 500; }
.settings-content-heading > p:last-child { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.settings-form { display: grid; gap: 0; padding: 4px 30px 27px; }
.profile-identity-row { display: flex; align-items: center; gap: 15px; padding: 24px 0; border-bottom: 1px solid var(--line-soft); }
.profile-avatar-large { display: grid; width: 62px; height: 62px; flex: 0 0 62px; overflow: hidden; place-items: center; border: 1px solid #bcd0de; border-radius: 50%; color: var(--brand-midnight); background: linear-gradient(145deg, #dbeaf2, #f4fbff); font-size: 16px; font-weight: 800; }
.profile-identity-row strong, .profile-identity-row span:not(.profile-avatar-large) { display: block; }
.profile-identity-row strong { font-size: 12px; }.profile-identity-row span:not(.profile-avatar-large) { margin: 4px 0 8px; color: var(--muted); font-size: 9px; }
.profile-photo-actions { display: flex; align-items: center; gap: 12px; }
.profile-photo-button { display: inline-flex; cursor: pointer; }
.profile-photo-button input, .account-photo-action input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.remove-photo-button { color: #9c4c47; }
.settings-fields-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 20px; }
.settings-field { display: grid; gap: 7px; padding-top: 20px; }
.settings-fields-two .settings-field { padding-top: 0; }
.settings-field > span, .settings-group legend { color: #344751; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.settings-field input, .settings-field select, .settings-field textarea { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid #d3d4ce; border-radius: 10px; outline: 0; color: var(--ink); background: #fff; font-size: 11px; }
.settings-field input, .settings-field select { height: 43px; }
.settings-field textarea { resize: vertical; line-height: 1.5; }
.settings-field input:focus, .settings-field select:focus, .settings-field textarea:focus { border-color: var(--brand-cyan); box-shadow: 0 0 0 3px rgba(8,172,227,.09); }
.settings-field input:disabled { color: #879095; background: #f1f0eb; }
.settings-field small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.settings-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 26px; padding-top: 21px; border-top: 1px solid var(--line-soft); }
.settings-actions.split { justify-content: space-between; align-items: center; }
.settings-group { margin: 0; padding: 24px 0; border: 0; border-bottom: 1px solid var(--line-soft); }
.settings-group > p { margin: 4px 0 17px; color: var(--muted); font-size: 10px; }
.choice-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.choice-cards label { min-width: 0; cursor: pointer; }
.choice-cards input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice-cards label > span { display: grid; gap: 5px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fff; }
.choice-cards input:checked + span { border-color: var(--brand-blue); box-shadow: 0 0 0 2px rgba(10,67,184,.08); }
.choice-cards strong { font-size: 10px; }.choice-cards small { color: var(--muted); font-size: 8px; }
.theme-preview { display: block; height: 45px; margin-bottom: 3px; border: 1px solid #d5d6d1; border-radius: 7px; background: #f7f4ec; }
.theme-preview.dark { border-color: #15314e; background: #031b36; }
.theme-preview.system { background: linear-gradient(90deg, #f7f4ec 50%, #031b36 50%); }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; padding: 17px 0; border-bottom: 1px solid var(--line-soft); }
.setting-row > div { min-width: 0; }.setting-row strong, .setting-row span { display: block; }
.setting-row strong { margin-bottom: 4px; font-size: 11px; }.setting-row div > span { color: var(--muted); font-size: 9px; line-height: 1.45; }
.privacy-callout { display: flex; gap: 14px; margin: 22px 0 5px; padding: 19px; border: 1px solid #c8dce7; border-radius: 13px; color: var(--brand-midnight); background: #edf6fa; }
.privacy-callout > span { color: var(--brand-cyan); font-size: 19px; }.privacy-callout strong { font-size: 12px; }.privacy-callout p { margin: 5px 0 0; color: #607785; font-size: 10px; line-height: 1.55; }
.policy-chip, .current-session { flex: 0 0 auto; padding: 5px 8px; border: 1px solid #c4d1d8; border-radius: 999px; color: #527286; background: #f2f7f9; font-size: 8px; font-weight: 800; letter-spacing: .06em; }
.policy-chip.success { border-color: #c7dacd; color: #4c765a; background: #eff6f1; }
.data-actions { display: flex; flex-wrap: wrap; gap: 9px; padding-top: 23px; }
.security-block { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 13px; min-height: 78px; padding: 17px 0; border-bottom: 1px solid var(--line-soft); }
.security-block-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; color: var(--brand-cyan); background: var(--brand-midnight); font-size: 14px; font-weight: 800; }
.security-block-icon.google-mini { color: #4285f4; background: #fff; border: 1px solid var(--line); }
.security-block strong, .security-block span { display: block; }.security-block strong { margin-bottom: 4px; font-size: 11px; }.security-block div > span { color: var(--muted); font-size: 9px; }
.session-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 28px 0 13px; }
.session-heading strong, .session-heading span { display: block; }.session-heading strong { font-size: 12px; }.session-heading span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.session-card { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.device-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 9px; color: var(--navy); background: #e9f0f5; }
.session-card strong, .session-card span:not(.device-icon):not(.current-session), .session-card small { display: block; }.session-card strong { margin-bottom: 4px; font-size: 11px; }.session-card div > span, .session-card small { color: var(--muted); font-size: 9px; }.session-card small { margin-top: 3px; }
.danger-text-button { padding: 0; border: 0; color: #a14540; background: transparent; font-size: 10px; font-weight: 750; cursor: pointer; }

/* Owner-only server and Codex controls */
.server-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.server-heading > div > p:last-child { margin: 0; color: var(--muted); font-size: 11px; }
.server-refresh { flex: 0 0 auto; }
.server-settings-body { display: grid; gap: 18px; padding: 22px; }
.codex-status-card, .server-health-section { border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.codex-status-card { overflow: hidden; }
.codex-status-head { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 21px 22px; background: linear-gradient(130deg, #061f3d 0%, #082f59 62%, #07568a 140%); color: #fff; }
.codex-mark { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid rgba(105,220,255,.4); border-radius: 13px; color: #6cddff; background: rgba(2,14,31,.45); font-size: 20px; }
.codex-status-head .eyebrow { color: #68ccec; }
.codex-status-head h3 { margin: 3px 0 5px; font: 500 23px/1.1 Georgia, "Times New Roman", serif; }
.codex-status-head div > span { color: #aec4d5; font-size: 9px; }
.server-state { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #e5eef5; background: rgba(0,0,0,.18); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.server-state i { width: 7px; height: 7px; border-radius: 50%; background: #f4bd58; box-shadow: 0 0 0 4px rgba(244,189,88,.12); }
.server-state.is-good i { background: #6fd497; box-shadow: 0 0 0 4px rgba(111,212,151,.12); }
.codex-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0 22px; }
.codex-details > div { min-width: 0; padding: 18px 14px 18px 0; border-bottom: 1px solid var(--line-soft); }
.codex-details > div + div { padding-left: 14px; border-left: 1px solid var(--line-soft); }
.codex-details dt { margin-bottom: 7px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.codex-details dd { min-width: 0; margin: 0; color: var(--brand-midnight); font-size: 10px; font-weight: 700; overflow-wrap: anywhere; }
.codex-details code { color: #486171; font: 600 9px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }
.codex-actions { display: flex; align-items: center; gap: 14px; padding: 18px 22px 20px; }
.codex-actions > span { color: var(--muted); font-size: 9px; line-height: 1.5; }
.codex-actions .connected-note { color: #4d765b; font-size: 10px; font-weight: 700; }
.device-login-panel { display: grid; gap: 12px; margin: 18px 22px 0; padding: 17px; border: 1px solid #bcd7e5; border-radius: 12px; background: #edf7fb; }
.device-login-panel strong, .device-login-panel span { display: block; }
.device-login-panel strong { color: var(--brand-midnight); font-size: 11px; }
.device-login-panel span { margin-top: 4px; color: #627b89; font-size: 9px; line-height: 1.5; }
.device-login-panel pre { max-height: 230px; margin: 0; padding: 13px; overflow: auto; border: 1px solid #d0e0e8; border-radius: 9px; color: #15364d; background: #fff; font: 600 10px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.device-login-panel .secondary-button { justify-self: start; }
.device-login-credentials { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(180px, .65fr); gap: 10px; }
.device-login-credentials > div { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px 12px; padding: 13px; border: 1px solid #c9dce6; border-radius: 10px; background: #fff; }
.device-login-credentials span { grid-column: 1 / -1; margin: 0; color: #718692; font-size: 7px; font-weight: 800; letter-spacing: .1em; }
.device-login-credentials a, .device-login-credentials code { min-width: 0; color: var(--brand-midnight); font: 700 10px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.device-login-credentials code { font-size: 15px; letter-spacing: .08em; }
.copy-value-button { min-height: 31px; padding: 6px 9px; border: 1px solid #b7ccd8; border-radius: 8px; color: var(--brand-blue); background: #f3f9fc; font-size: 8px; font-weight: 800; cursor: pointer; }
.copy-value-button:hover { border-color: var(--brand-cyan); background: #eaf7fb; }
.device-login-raw { border-top: 1px solid #d4e4eb; }
.device-login-raw summary { padding: 11px 0 0; color: #5f7886; font-size: 8px; font-weight: 800; cursor: pointer; }
.device-login-raw pre { margin-top: 10px; }
.clipboard-fallback { position: fixed; left: -9999px; top: 0; width: 1px; height: 1px; opacity: 0; }
.server-health-section { padding: 21px 22px; }
.server-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.server-section-heading h3 { margin-top: 4px; font: 500 21px/1.1 Georgia, "Times New Roman", serif; }
.server-section-heading > span { color: var(--muted); font-size: 8px; }
.server-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.server-metric-card { padding: 16px; border: 1px solid var(--line-soft); border-radius: 12px; background: #f8f8f4; }
.server-metric-card span, .server-metric-card strong, .server-metric-card small { display: block; }
.server-metric-card span, .server-runtime span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.server-metric-card strong { margin: 9px 0 4px; color: var(--brand-midnight); font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; }
.server-metric-card small { color: #7f898d; font-size: 8px; }
.server-meter { width: 100%; height: 5px; margin-top: 14px; overflow: hidden; border: 0; border-radius: 999px; color: var(--brand-blue); background: #dde4e7; accent-color: var(--brand-blue); }
.server-meter::-webkit-progress-bar { border-radius: 999px; background: #dde4e7; }
.server-meter::-webkit-progress-value { border-radius: 999px; background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan)); }
.server-meter::-moz-progress-bar { border-radius: 999px; background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan)); }
.server-runtime { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 15px; border-top: 1px solid var(--line-soft); }
.server-runtime > div { padding: 16px 12px 0 0; }
.server-runtime > div + div { padding-left: 14px; border-left: 1px solid var(--line-soft); }
.server-runtime strong { display: block; margin-top: 7px; color: var(--brand-midnight); font-size: 11px; }
.server-runtime .healthy-text { color: #4e795c; }
.server-security-note { display: flex; gap: 11px; color: #728087; }
.server-security-note > span { color: var(--brand-blue); }
.server-security-note p { margin: 0; font-size: 9px; line-height: 1.55; }
.server-security-note strong { display: block; margin-bottom: 2px; color: #435964; }
.server-loading { display: grid; min-height: 260px; place-items: center; align-content: center; text-align: center; }
.server-loading strong { margin-top: 15px; font-size: 13px; }.server-loading p { max-width: 360px; margin: 6px 0 16px; color: var(--muted); font-size: 10px; }
.status-orbit { width: 32px; height: 32px; border: 2px solid #cbd9e1; border-top-color: var(--brand-cyan); border-radius: 50%; animation: orbit-spin .9s linear infinite; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }

/* Owner and administrator account management */
.user-management-content { container: user-management / inline-size; }
.user-management-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.user-management-heading > div { min-width: 0; }
.user-management-heading > div > p:last-child { max-width: 580px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.user-management-body { padding: 20px; }
.user-management-body .account-policy-note { margin-bottom: 0; }
.accounts-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 30px; }
.accounts-header h1 { margin-bottom: 10px; }.accounts-header > div > p:last-child { max-width: 650px; margin: 0; color: var(--ink-soft); }
.create-account-button { display: inline-flex; align-items: center; gap: 8px; min-width: 140px; justify-content: center; }
.create-account-button span { color: var(--brand-cyan); font-size: 16px; }
.account-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.account-summary article { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 12px; min-height: 105px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.58); }
.account-summary span { align-self: start; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.account-summary strong { grid-row: 1 / span 2; grid-column: 2; color: var(--brand-midnight); font-family: Georgia, "Times New Roman", serif; font-size: 35px; font-weight: 500; }
.account-summary small { color: var(--ink-soft); font-size: 10px; }
.accounts-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.68); box-shadow: 0 15px 38px rgba(23,32,43,.045); }
.accounts-card-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.accounts-card-header h2, .accounts-card-header h3 { margin-bottom: 4px; font-size: 18px; }.accounts-card-header p { margin: 0; color: var(--muted); font-size: 10px; }
.account-search { display: flex; width: min(260px, 35%); align-items: center; gap: 8px; min-height: 39px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: #fff; }
.account-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 10px; }
.accounts-table { min-width: 0; }
.account-table-head, .account-row { display: grid; grid-template-columns: minmax(180px, 1.25fr) minmax(110px, .78fr) 90px 90px minmax(260px, 1.2fr); align-items: center; gap: 14px; }
.account-table-head { min-height: 40px; padding: 0 24px; color: #8b9295; background: #f5f4ef; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.account-row { min-height: 82px; padding: 13px 24px; border-top: 1px solid var(--line-soft); }
.account-identity { display: flex; min-width: 0; align-items: center; gap: 11px; }
.account-avatar { display: grid; width: 39px; height: 39px; flex: 0 0 39px; overflow: hidden; place-items: center; border: 1px solid #bfd2df; border-radius: 50%; color: var(--brand-midnight); background: #e3eff5; font-size: 11px; font-weight: 800; }
.account-identity strong, .account-identity small { display: block; }.account-identity strong { margin-bottom: 4px; font-size: 12px; }.account-identity small { color: var(--muted); font-size: 9px; }
.team-badge, .account-type-badge { justify-self: start; padding: 6px 8px; border-radius: 8px; font-size: 9px; font-weight: 750; }
.team-badge.ads { color: #2b6482; background: #e5f2f8; }.team-badge.creative { color: #765b2f; background: #f5ebd9; }.team-badge.management { color: #4d5d75; background: #e8ebf2; }
.account-type-badge { border: 1px solid #d0d6da; color: #526875; background: #f5f7f8; }.account-type-badge.developer { border-color: #128dc1; color: #083c62; background: #dff6ff; }.account-type-badge.owner { border-color: #a9c7d8; color: var(--brand-blue); background: #eaf5fa; }.account-type-badge.admin { color: #72542d; background: #f7f0e2; }
.account-managed-note { color: #748692; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.account-status { display: inline-flex; align-items: center; gap: 7px; color: #4e745c; font-size: 9px; font-weight: 750; }.account-status i { width: 6px; height: 6px; border-radius: 50%; background: #56a06e; }.account-status.suspended { color: #92544e; }.account-status.suspended i { background: #b96259; }
.account-row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.account-action-button { min-height: 31px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; color: #4c606d; background: #fff; font-size: 8px; font-weight: 750; cursor: pointer; }
.account-photo-action { display: inline-flex; align-items: center; justify-content: center; }
.account-action-button:hover { border-color: #aebdc5; color: var(--navy); }.account-action-button.danger { color: #9c4c47; }.account-action-button:disabled { cursor: not-allowed; opacity: .38; }
.account-policy-note { display: flex; gap: 11px; width: min(520px, 100%); margin-top: 16px; padding: 14px 16px; border: 1px solid #d4d9d7; border-radius: 12px; color: #788184; background: rgba(255,255,255,.42); }
.account-policy-note > span { color: var(--brand-blue); }.account-policy-note p { margin: 0; font-size: 9px; line-height: 1.5; }.account-policy-note strong { display: block; margin-bottom: 2px; color: #475861; }

.account-modal-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: rgba(3,18,34,.62); backdrop-filter: blur(7px); }
.account-modal { width: min(580px, 100%); max-height: calc(100svh - 48px); overflow: auto; border: 1px solid rgba(255,255,255,.5); border-radius: 20px; background: var(--brand-ivory); box-shadow: 0 28px 80px rgba(0,0,0,.28); }
.compact-modal { width: min(510px, 100%); }
.account-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 26px 28px 22px; border-bottom: 1px solid var(--line); }
.account-modal-header h2 { margin-bottom: 7px; font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 500; }.account-modal-header p:last-child { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.eyebrow.danger { color: #a04d46; }
.modal-close { display: grid; width: 31px; height: 31px; flex: 0 0 31px; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: #64727a; background: #fff; font-size: 18px; cursor: pointer; }
.account-form { display: grid; padding: 6px 28px 0; }
.temporary-password-note { display: flex; gap: 12px; margin-top: 20px; padding: 15px; border: 1px solid #bfd5df; border-radius: 12px; color: #55707e; background: #edf6fa; }
.temporary-password-note > span { color: var(--brand-cyan); }
.temporary-password-note p { margin: 0; font-size: 9px; line-height: 1.55; }
.temporary-password-note strong { display: block; margin-bottom: 2px; color: var(--brand-midnight); font-size: 10px; }
.temporary-password-note code { padding: 2px 5px; border-radius: 5px; color: var(--brand-blue); background: #fff; font: 800 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.account-photo-field { display: flex; align-items: center; gap: 13px; padding: 19px 0 0; cursor: pointer; }
.account-avatar-preview { display: grid; width: 52px; height: 52px; flex: 0 0 52px; overflow: hidden; place-items: center; border: 1px dashed #a9bcc8; border-radius: 50%; color: var(--brand-blue); background: #edf4f8; font-size: 19px; }
.account-photo-field strong, .account-photo-field small { display: block; }.account-photo-field strong { font-size: 11px; }.account-photo-field small { margin: 3px 0 6px; color: var(--muted); font-size: 8px; }.account-photo-field input { max-width: 210px; font-size: 8px; }
.account-form-error { min-height: 16px; padding-top: 12px; color: #a14540; font-size: 10px; }
.account-modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin: 7px -28px 0; padding: 18px 28px; border-top: 1px solid var(--line); background: rgba(255,255,255,.4); }
.delete-account-copy { padding: 23px 28px 0; }.delete-account-copy > p { margin: 0 0 7px; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }

@container user-management (max-width: 820px) {
  .account-table-head { display: none; }
  .account-row { grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; padding: 18px 20px; }
  .account-identity { grid-column: 1; }
  .team-badge { grid-column: 1; margin-left: 50px; }
  .account-type-badge { grid-column: 2; grid-row: 1; }
  .account-status { grid-column: 3; grid-row: 1; }
  .account-row-actions { grid-column: 1 / -1; justify-content: flex-start; margin-left: 50px; }
}

@container user-management (max-width: 560px) {
  .user-management-heading { display: block; }
  .user-management-heading .create-account-button { width: 100%; margin-top: 18px; }
  .account-summary { display: flex; margin-inline: -20px; padding: 0 20px 5px; overflow-x: auto; }
  .account-summary article { min-width: 178px; flex: 0 0 178px; }
  .accounts-card-header { display: block; padding: 19px; }
  .account-search { width: 100%; margin-top: 14px; }
  .account-row { grid-template-columns: 1fr auto; padding: 17px; }
  .team-badge { margin-left: 0; }
  .account-type-badge { grid-column: 2; }
  .account-status { grid-column: 2; grid-row: 2; }
  .account-row-actions { grid-column: 1 / -1; margin-left: 0; }
  .account-action-button { flex: 1; }
}
.danger-button { min-height: 39px; padding: 9px 14px; border: 1px solid #973f39; border-radius: 10px; color: #fff; background: #a94d46; font-size: 10px; font-weight: 750; cursor: pointer; }
.danger-button:hover { background: #943f39; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 60; max-width: 380px; padding: 13px 16px; border: 1px solid #b7c4cd; border-radius: 12px; color: #fff; background: #21394d; box-shadow: var(--shadow); font-size: 12px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 180ms ease, transform 180ms ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.sidebar-scrim, .mobile-nav { display: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1120px) {
  .module-grid, .module-manager-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-table-head, .account-row { grid-template-columns: minmax(160px, 1.2fr) 105px 75px 75px minmax(150px, .9fr); gap: 9px; }
  .account-row-actions { flex-wrap: wrap; }
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-102%); transition: transform 180ms ease; box-shadow: 16px 0 38px rgba(17,32,44,.2); }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar.is-open + .sidebar-scrim { display: block; position: fixed; inset: 0; z-index: 25; border: 0; background: rgba(15,25,34,.38); }
  .workspace { margin-left: 0; }
  .mobile-menu-button { display: block; }
  .workspace-controls { right: 14px; }
  .dashboard-grid, .module-content-grid { grid-template-columns: 1fr; }
  .pulse-card { display: grid; grid-template-columns: 1fr 1.2fr; gap: 10px 30px; }
  .pulse-card .secondary-button { align-self: end; }
  .review-card { grid-template-columns: 90px 1fr; }
  .review-actions { grid-column: 2; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-rail { position: static; display: flex; margin-inline: -24px; padding: 0 24px 6px; overflow-x: auto; }
  .settings-rail-item { width: 165px; min-width: 165px; flex: 0 0 165px; }
  .settings-rail-policy { display: none; }
  .account-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .account-table-head { display: none; }
  .account-row { grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; padding: 18px 20px; }
  .account-identity { grid-column: 1; }
  .team-badge { grid-column: 1; margin-left: 50px; }
  .account-type-badge { grid-column: 2; grid-row: 1; }
  .account-status { grid-column: 3; grid-row: 1; }
  .account-row-actions { grid-column: 1 / -1; justify-content: flex-start; margin-left: 50px; }
}

@media (max-width: 640px) {
  :root { --radius-lg: 18px; }
  .workspace-controls { top: 10px; right: 10px; }
  .page { width: calc(100% - 30px); padding: 68px 0 96px; }
  .home-page { padding-top: 30px; }
  .welcome-section { text-align: left; }
  .welcome-section h1 { max-width: 100%; font-size: 38px; overflow-wrap: normal; }
  .welcome-subtitle { font-size: 14px; }
  .ask-panel { min-height: 66px; padding-left: 13px; border-radius: 16px; }
  .ask-orbit { width: 32px; height: 32px; }
  .ask-copy input { font-size: 12px; }
  .suggestion-row { justify-content: flex-start; flex-wrap: nowrap; margin-inline: -15px; padding: 0 15px 5px; overflow-x: auto; }
  .suggestion-row button { flex: 0 0 auto; }
  .section-block { margin-top: 42px; }
  .section-heading > .text-button { display: none; }
  .module-grid, .module-manager-grid { display: flex; width: 100%; margin-inline: 0; padding: 0 0 8px; overflow-x: auto; scroll-snap-type: x mandatory; }
  .module-card, .manager-card { min-width: 100%; scroll-snap-align: start; }
  .module-card { width: 100%; max-width: 100%; min-height: 190px; flex: 0 0 100%; overflow: hidden; }
  .dashboard-grid { gap: 12px; }
  .daily-card, .pulse-card { padding: 20px; }
  .feature-card-heading { align-items: flex-start; }
  .feature-card-heading .text-button { display: none; }
  .edition-lead { grid-template-columns: 40px 1fr; gap: 12px; }
  .edition-number { font-size: 27px; }
  .pulse-card { display: block; }
  .split-header { display: block; }
  .header-stat { display: flex; align-items: baseline; gap: 9px; margin-top: 22px; padding: 0; border: 0; }
  .header-stat strong { font-size: 28px; }
  .module-hero { display: block; }
  .module-hero-title { display: block; }
  .module-hero-title .module-symbol { margin-bottom: 17px; }
  .module-badges { justify-content: flex-start; margin-top: 17px; }
  .library-toolbar { align-items: flex-start; }
  .library-toolbar > .secondary-button { display: none; }
  .filter-pills { flex-wrap: nowrap; overflow-x: auto; }
  .library-row { grid-template-columns: 28px 1fr 16px; }
  .source-count, .library-age { display: none; }
  .review-card { grid-template-columns: 1fr; gap: 12px; }
  .review-actions { display: grid; width: 100%; min-width: 0; grid-column: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-actions button { min-width: 0; white-space: normal; }
  .edition-masthead { margin-bottom: 30px; }
  .edition-story, .edition-story-grid .edition-story { grid-template-columns: 38px 1fr; gap: 12px; }
  .edition-story h2 { font-size: 25px; }
  .edition-story-grid { grid-template-columns: 1fr; gap: 0; }
  .profile-grid { grid-template-columns: 1fr; }
  .settings-list > div { display: grid; gap: 5px; }
  .settings-list strong { text-align: left; }
  .settings-page { width: calc(100% - 30px); }
  .settings-header { display: block; margin-bottom: 28px; }
  .settings-person-card { display: none; }
  .settings-rail { margin-inline: -15px; padding-inline: 15px; }
  .settings-rail-item { width: 142px; min-width: 142px; flex-basis: 142px; padding: 10px 11px; }
  .settings-rail-item small, .settings-rail-item i { display: none; }
  .settings-content { border-radius: 16px; }
  .settings-content-heading { padding: 22px 20px 19px; }
  .settings-content-heading h2 { font-size: 25px; }
  .settings-form { padding: 3px 20px 22px; }
  .user-management-body { padding: 16px; }
  .settings-fields-two, .choice-cards { grid-template-columns: 1fr; }
  .choice-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .theme-preview { height: 32px; }
  .setting-row { gap: 14px; }
  .setting-row div > span { max-width: 245px; }
  .security-block { grid-template-columns: 36px minmax(0, 1fr); }
  .security-block > .policy-chip, .security-block > button { grid-column: 2; justify-self: start; }
  .session-heading { align-items: flex-start; }
  .session-heading .text-button { max-width: 100px; text-align: right; }
  .session-card { grid-template-columns: 36px 1fr; }
  .current-session { grid-column: 2; justify-self: start; }
  .server-heading { align-items: flex-start; }
  .server-settings-body { padding: 14px; }
  .codex-status-head { grid-template-columns: 42px 1fr; padding: 18px; }
  .codex-mark { width: 40px; height: 40px; }
  .server-state { grid-column: 1 / -1; justify-self: start; }
  .codex-details, .server-metrics, .server-runtime { grid-template-columns: 1fr; }
  .codex-details { padding: 0 18px; }
  .codex-details > div { padding: 14px 0; }
  .codex-details > div + div { padding-left: 0; border-left: 0; }
  .codex-actions { align-items: stretch; flex-direction: column; padding-inline: 18px; }
  .codex-actions .primary-button { width: 100%; }
  .device-login-panel { margin-inline: 18px; }
  .device-login-credentials { grid-template-columns: 1fr; }
  .server-health-section { padding: 18px; }
  .server-metrics { gap: 9px; }
  .server-runtime > div { padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
  .server-runtime > div + div { padding-left: 0; border-left: 0; }
  .accounts-header { display: block; }
  .accounts-header .create-account-button { width: 100%; margin-top: 20px; }
  .account-summary { display: flex; margin-inline: -15px; padding: 0 15px 5px; overflow-x: auto; }
  .account-summary article { min-width: 185px; flex: 0 0 185px; }
  .accounts-card-header { display: block; padding: 19px; }
  .account-search { width: 100%; margin-top: 14px; }
  .account-row { grid-template-columns: 1fr auto; padding: 17px; }
  .account-type-badge { grid-column: 2; }.account-status { grid-column: 2; grid-row: 2; }
  .account-row-actions { grid-column: 1 / -1; margin-left: 0; }
  .account-action-button { flex: 1; }
  .account-modal-backdrop { padding: 10px; }
  .account-modal { max-height: calc(100svh - 20px); border-radius: 16px; }
  .account-modal-header { padding: 21px 20px 18px; }.account-modal-header h2 { font-size: 24px; }
  .account-form { padding-inline: 20px; }
  .account-modal-actions { margin-inline: -20px; padding-inline: 20px; }
  .delete-account-copy { padding-inline: 20px; }
  .mobile-nav { position: fixed; inset: auto 0 0; z-index: 22; display: grid; grid-template-columns: repeat(4, 1fr); min-height: 68px; padding: 7px 8px max(7px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(250,249,245,.96); backdrop-filter: blur(18px); }
  .mobile-nav-item { display: grid; place-items: center; gap: 2px; border: 0; color: #7b848b; background: transparent; font-size: 9px; }
  .mobile-nav-item span { font-size: 18px; }
  .mobile-nav-item.is-active { color: var(--navy); }
  .toast { right: 14px; bottom: 82px; left: 14px; }
}

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

/* Atlas Chat: dense, Slack-inspired collaboration with Atlas branding. */
.chat-workspace { display: grid; grid-template-columns: 274px minmax(420px, 1fr) 286px; height: 100vh; min-height: 620px; overflow: hidden; color: #172b3a; background: #fff; }
.chat-navigation { display: flex; min-width: 0; flex-direction: column; color: #eaf4fa; background: linear-gradient(180deg, #092d4d 0%, #071f38 100%); border-right: 1px solid #23455f; }
.chat-nav-head { display: flex; align-items: center; justify-content: space-between; min-height: 74px; padding: 14px 16px 13px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.chat-nav-head div { display: grid; gap: 2px; }.chat-nav-head small { color: #55d4ee; font-size: 9px; font-weight: 800; letter-spacing: .18em; }.chat-nav-head strong { color: #fff; font-family: var(--font-display); font-size: 20px; }
.chat-nav-head button, .chat-nav-label button { width: 29px; height: 29px; border: 1px solid rgba(255,255,255,.15); border-radius: 8px; color: #fff; background: rgba(255,255,255,.08); cursor: pointer; }
.chat-nav-scroll { flex: 1; padding: 12px 10px 20px; overflow-y: auto; scrollbar-color: #31516a transparent; }
.chat-nav-group + .chat-nav-group { margin-top: 18px; }.chat-nav-label { display: flex; align-items: center; justify-content: space-between; min-height: 27px; padding: 0 7px; color: #92adbf; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }.chat-nav-label button { width: 23px; height: 23px; border: 0; }
.chat-conversation { display: grid; width: 100%; min-width: 0; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 43px; padding: 6px 8px; border: 0; border-radius: 8px; color: #cbdce7; background: transparent; text-align: left; cursor: pointer; }
.chat-conversation:hover { background: rgba(255,255,255,.07); }.chat-conversation.is-active { color: #fff; background: #087fa7; }.chat-conversation-copy { display: grid; min-width: 0; gap: 1px; }.chat-conversation-copy strong, .chat-conversation-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.chat-conversation-copy strong { font-size: 12px; font-weight: 680; }.chat-conversation-copy small { color: #89a8bb; font-size: 9px; }.chat-conversation.is-active small { color: #d4f5fb; }
.chat-channel-symbol { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 6px; color: #8fb1c4; background: rgba(255,255,255,.06); font-size: 12px; font-weight: 800; }.chat-conversation.is-active .chat-channel-symbol { color: #fff; }.chat-unread { min-width: 19px; padding: 3px 5px; border-radius: 10px; color: #07304d; background: #5ce0f3; font-size: 9px; font-weight: 850; text-align: center; }
.chat-avatar, .chat-list-avatar { display: grid; flex: 0 0 auto; place-items: center; overflow: hidden; color: #fff; background: linear-gradient(135deg, #0b94c4, #103b9b); font-weight: 800; }.chat-avatar { width: 34px; height: 34px; border-radius: 9px; font-size: 12px; }.chat-list-avatar { width: 23px; height: 23px; border-radius: 7px; font-size: 9px; }.chat-avatar img, .chat-list-avatar img, .seen-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-start-dm { display: flex; align-items: center; gap: 6px; min-height: 58px; padding: 10px 16px; border-top: 1px solid rgba(255,255,255,.1); }.chat-start-dm > span { margin-right: auto; color: #8eabbc; font-size: 9px; font-weight: 750; text-transform: uppercase; }.chat-start-dm button { padding: 0; border: 0; border-radius: 7px; background: transparent; cursor: pointer; }
.chat-thread { display: grid; min-width: 0; grid-template-rows: auto minmax(0, 1fr) 21px auto; background: #fbfcfd; }
.chat-thread-header { display: flex; align-items: center; justify-content: space-between; min-height: 74px; padding: 12px 22px; border-bottom: 1px solid #dfe7ec; background: rgba(255,255,255,.96); }.chat-thread-header > div:first-child { display: grid; gap: 2px; }.chat-channel-title { color: #102b40; font-family: var(--font-display); font-size: 19px; font-weight: 800; }.chat-thread-header small { color: #798a96; font-size: 10px; }.chat-header-actions { display: flex; align-items: center; gap: 11px; color: #738592; font-size: 10px; }.chat-star { border: 0; color: #83939e; background: transparent; font-size: 23px; cursor: pointer; }.chat-star.is-active { color: #ecb329; }
.chat-notification { position: relative; display: grid; width: 31px; height: 31px; padding: 5px; place-items: center; border: 1px solid #d5e0e5; border-radius: 8px; color: #6a7c88; background: #fff; cursor: pointer; }
.chat-notification svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.chat-notification .notification-dot { top: 3px; right: 3px; }
.chat-messages { padding: 18px 22px 10px; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #becbd3 transparent; }.chat-message { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 8px 7px; border-radius: 10px; }.chat-message:hover { background: #f2f6f8; }.chat-message-body { min-width: 0; }.chat-message-meta { display: flex; align-items: baseline; gap: 8px; }.chat-message-meta strong { color: #17354a; font-size: 12px; }.chat-message-meta time { color: #8b9aa4; font-size: 9px; }.chat-message-body > p { margin: 3px 0 0; color: #263f50; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }.atlas-message-avatar { background: linear-gradient(145deg, #073d75, #05a7c7); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.chat-message-footer { display: flex; min-height: 19px; align-items: center; justify-content: flex-end; gap: 9px; }.message-pin { opacity: 0; border: 0; color: #6f818d; background: transparent; font-size: 9px; cursor: pointer; }.chat-message:hover .message-pin, .message-pin.is-pinned { opacity: 1; }.message-pin.is-pinned { color: #087fa7; font-weight: 750; }.message-receipt { display: inline-flex; align-items: center; color: #8b9ba5; font-size: 9px; }.message-seen { min-height: 18px; }.message-seen small { margin-left: 5px; color: #71838e; font-size: 9px; }.seen-avatar { display: grid; width: 15px; height: 15px; margin-left: -3px; place-items: center; overflow: hidden; border: 2px solid #fbfcfd; border-radius: 50%; color: #fff; background: #0a87ad; font-size: 6px; }.message-seen .seen-avatar:first-child { margin-left: 0; }
.chat-generated-image { width: min(520px, 100%); margin: 10px 0 4px; overflow: hidden; border: 1px solid #d9e3e9; border-radius: 14px; background: #eef3f6; }.chat-generated-image img { display: block; width: 100%; height: auto; max-height: 540px; object-fit: contain; }.chat-generated-image figcaption { padding: 8px 11px; color: #71828d; font-size: 9px; }
.conversation-beginning { max-width: 520px; margin: auto; padding: 40px 20px; text-align: center; }.conversation-beginning > span { display: grid; width: 48px; height: 48px; margin: 0 auto 14px; place-items: center; border-radius: 14px; color: #fff; background: #0d86ae; font-size: 18px; font-weight: 850; }.conversation-beginning h2 { color: #17354a; font-size: 22px; }.conversation-beginning p { color: #758691; font-size: 11px; line-height: 1.6; }.load-older { display: block; margin: 0 auto 12px; border: 0; color: #087fa7; background: transparent; font-size: 10px; cursor: pointer; }
.chat-typing { min-height: 21px; padding: 2px 25px; color: #71838e; font-size: 9px; }.chat-composer { margin: 0 20px 18px; overflow: hidden; border: 1px solid #b9c9d2; border-radius: 13px; background: #fff; box-shadow: 0 4px 15px rgba(20,48,68,.05); }.chat-composer:focus-within { border-color: #178db0; box-shadow: 0 0 0 3px rgba(23,141,176,.1); }.chat-composer textarea { display: block; width: 100%; min-height: 45px; max-height: 150px; resize: vertical; padding: 13px 14px 7px; border: 0; outline: 0; color: #193548; background: transparent; font: inherit; font-size: 12px; }.chat-composer-actions { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 4px 7px 7px 10px; }.chat-composer-actions > span { margin-right: auto; color: #8b9aa4; font-size: 8px; }.composer-tool { border: 0; color: #087fa7; background: transparent; font-size: 10px; font-weight: 750; cursor: pointer; }.composer-tool:disabled { color: #a8b3ba; cursor: not-allowed; }.chat-send { min-height: 29px; padding: 6px 14px; border: 0; border-radius: 8px; color: #fff; background: #087fa7; font-size: 10px; font-weight: 750; cursor: pointer; }.developer-view-note { margin: 0 20px 18px; padding: 12px; border: 1px solid #d7e2e8; border-radius: 10px; color: #6f818d; background: #f5f8fa; font-size: 10px; }
.chat-details { min-width: 0; padding: 19px 17px; overflow-y: auto; border-left: 1px solid #dfe7ec; background: #f5f8fa; }.chat-details section { padding: 8px 0 20px; border-bottom: 1px solid #dce5ea; }.chat-details section + section { padding-top: 18px; }.chat-details h3 { margin: 0 0 12px; color: #657986; font-size: 9px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }.chat-member-list { display: grid; gap: 9px; }.chat-member-list > div { display: flex; align-items: center; gap: 9px; }.chat-member-list span:not(.chat-avatar) { display: grid; }.chat-member-list strong { color: #203c4f; font-size: 11px; }.chat-member-list small { color: #82939e; font-size: 8px; text-transform: capitalize; }.chat-details select { width: 100%; min-height: 36px; padding: 7px 9px; border: 1px solid #c8d5dc; border-radius: 8px; color: #294457; background: #fff; font-size: 10px; }.chat-detail-field { display: grid; gap: 5px; margin-top: 10px; }.chat-detail-field > span { color: #728591; font-size: 9px; }.pinned-preview { display: block; width: 100%; padding: 9px; overflow: hidden; border: 1px solid #d7e2e7; border-radius: 8px; color: #3b5363; background: #fff; font-size: 9px; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }.pinned-preview + .pinned-preview { margin-top: 6px; }.chat-detail-empty { color: #86959f; font-size: 9px; line-height: 1.5; }.group-member-form { display: grid; gap: 7px; }.group-member-form label { display: flex; align-items: center; gap: 7px; color: #3e5666; font-size: 10px; }.group-member-form .secondary-button { margin-top: 7px; }
.chat-loading, .chat-empty-state { display: grid; min-height: 100vh; place-content: center; justify-items: center; gap: 7px; color: #17354a; background: #f7f9fa; }.chat-loading .ask-orbit { margin-bottom: 7px; }.chat-loading small, .chat-empty-state p { color: #7c8d97; font-size: 10px; }.chat-empty-state { padding: 30px; text-align: center; }.chat-empty-state h1 { font-size: 30px; }

@media (max-width: 1180px) {
  .chat-workspace { grid-template-columns: 258px minmax(400px, 1fr); }
  .chat-details { display: none; }
}

@media (max-width: 760px) {
  .chat-workspace { height: calc(100svh - 68px); min-height: 0; grid-template-columns: 1fr; grid-template-rows: 88px minmax(0, 1fr); }
  .chat-navigation { display: block; overflow-x: auto; border-right: 0; border-bottom: 1px solid #23455f; }
  .chat-nav-head, .chat-nav-label, .chat-start-dm { display: none; }
  .chat-nav-scroll { display: flex; height: 88px; align-items: center; gap: 7px; padding: 9px 10px; overflow-x: auto; overflow-y: hidden; }
  .chat-nav-group, .chat-nav-group + .chat-nav-group { display: flex; flex: 0 0 auto; gap: 6px; margin: 0; }
  .chat-conversation { width: 145px; min-height: 54px; flex: 0 0 145px; background: rgba(255,255,255,.05); }
  .chat-conversation-copy small { display: none; }
  .chat-thread { min-height: 0; grid-row: 2; }
  .chat-thread-header { min-height: 58px; padding: 8px 13px; }.chat-channel-title { font-size: 16px; }.chat-header-actions > span { display: none; }
  .chat-messages { padding: 11px 9px 6px; }.chat-message { padding: 7px 3px; }.chat-message-body > p { font-size: 11px; }
  .chat-composer { margin: 0 9px 8px; }.chat-composer-actions > span { display: none; }.chat-typing { padding-inline: 14px; }
  .mobile-nav { grid-template-columns: repeat(5, 1fr); }
  #app-main:has(.chat-workspace), #app-main:has(.chat-loading), #app-main:has(.chat-empty-state) { min-height: 0; }
}

/* Personal Atlas: private, persistent AI workspace */
.personal-atlas-workspace { display: grid; grid-template-columns: 250px minmax(420px, 1fr) 272px; height: 100vh; min-height: 620px; overflow: hidden; color: #17354a; background: #fbfcfd; }
.atlas-history { display: flex; min-width: 0; flex-direction: column; color: #eaf4fa; background: linear-gradient(180deg, #092d4d 0%, #071f38 100%); border-right: 1px solid #23455f; }
.atlas-history-head { display: flex; min-height: 70px; align-items: center; justify-content: space-between; padding: 13px 15px 12px 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
.atlas-history-head > div { display: grid; gap: 2px; }.atlas-history-head small { color: #55d4ee; font-size: 8px; font-weight: 850; letter-spacing: .16em; }.atlas-history-head strong { color: #fff; font-family: var(--font-display); font-size: 19px; }.atlas-history-head button { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; color: #fff; background: rgba(255,255,255,.08); font-size: 19px; cursor: pointer; }
.atlas-history-tools { display: grid; gap: 8px; padding: 13px 11px 8px; }.atlas-history-tools > button { display: flex; min-height: 37px; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid rgba(83,211,237,.35); border-radius: 9px; color: #f3fbfd; background: rgba(5,139,176,.24); font-size: 10px; font-weight: 750; cursor: pointer; }.atlas-history-tools > button span { font-size: 16px; }.atlas-history-tools label { display: flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 9px; border-radius: 8px; color: #8ba9bb; background: rgba(255,255,255,.06); }.atlas-history-tools input { width: 100%; border: 0; outline: 0; color: #fff; background: transparent; font: inherit; font-size: 9px; }.atlas-history-tools input::placeholder { color: #7999ad; }
.atlas-history-scroll { flex: 1; padding: 6px 9px 18px; overflow-y: auto; }.atlas-history-scroll section + section { margin-top: 16px; }.atlas-history-scroll header { padding: 0 8px 6px; color: #88a7ba; font-size: 8px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }.atlas-history-scroll section > p { margin: 4px 8px; color: #6e8ca0; font-size: 8px; }
.atlas-history-item { display: grid; width: 100%; min-width: 0; grid-template-columns: 20px minmax(0,1fr) 7px; align-items: center; gap: 7px; min-height: 45px; padding: 6px 7px; border: 0; border-radius: 8px; color: #c8dbe6; background: transparent; text-align: left; cursor: pointer; }.atlas-history-item:hover { background: rgba(255,255,255,.07); }.atlas-history-item.is-active { color: #fff; background: #087fa7; }.atlas-history-symbol { color: #82a6ba; text-align: center; }.atlas-history-item.is-active .atlas-history-symbol { color: #fff; }.atlas-history-item > span:nth-child(2) { display: grid; min-width: 0; gap: 2px; }.atlas-history-item strong,.atlas-history-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.atlas-history-item strong { font-size: 10px; }.atlas-history-item small { color: #819fb2; font-size: 8px; }.atlas-history-item.is-active small { color: #d3f1f7; }.atlas-history-item i { width: 6px; height: 6px; border-radius: 50%; background: #5ce0f3; box-shadow: 0 0 0 3px rgba(92,224,243,.13); animation: atlasPulse 1.3s infinite; }
.atlas-add-category { margin: 8px 12px 14px; padding: 9px; border: 1px dashed rgba(255,255,255,.16); border-radius: 8px; color: #8eabbc; background: transparent; font-size: 9px; cursor: pointer; }
.atlas-thread { display: grid; min-width: 0; grid-template-rows: auto minmax(0,1fr) auto auto; background: #fbfcfd; }.atlas-thread-header { display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 21px; border-bottom: 1px solid #dfe7ec; background: rgba(255,255,255,.97); }.atlas-thread-header > div:first-child { min-width: 0; }.atlas-thread-header small { color: #0788ae; font-size: 8px; font-weight: 850; letter-spacing: .13em; }.atlas-thread-header h1 { margin: 3px 0 0; overflow: hidden; color: #102b40; font-family: var(--font-display); font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }.atlas-thread-header > div:last-child { display: flex; align-items: center; gap: 5px; }.atlas-thread-header button { min-height: 29px; padding: 5px 8px; border: 1px solid #d5e0e5; border-radius: 7px; color: #6a7c88; background: #fff; font-size: 8px; cursor: pointer; }.atlas-thread-header button:first-child { border: 0; color: #87949c; background: transparent; font-size: 19px; }.atlas-thread-header button:first-child.is-active { color: #e2a91d; }
.atlas-messages { padding: 28px max(24px, calc((100% - 720px)/2)) 18px; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #becbd3 transparent; }.atlas-message { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 11px; padding: 13px 6px; }.atlas-message + .atlas-message { border-top: 1px solid #edf1f3; }.atlas-message-avatar { display: grid; width: 34px; height: 34px; place-items: center; overflow: hidden; border-radius: 10px; color: #fff; background: linear-gradient(135deg,#0b94c4,#103b9b); font-size: 11px; font-weight: 850; }.atlas-message-avatar img { width: 100%; height: 100%; object-fit: cover; }.atlas-message-content { min-width: 0; }.atlas-message-label { display: flex; align-items: baseline; gap: 8px; margin-bottom: 5px; }.atlas-message-label strong { color: #18364a; font-size: 11px; }.atlas-message-label time { color: #8b9aa4; font-size: 8px; }.atlas-message-text { color: #263f50; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }.atlas-message.is-atlas .atlas-message-text { color: #17384f; }
.atlas-welcome { display: grid; min-height: 100%; place-content: center; justify-items: center; padding: 34px 20px; text-align: center; }.atlas-orb { display: grid; width: 58px; height: 58px; margin-bottom: 16px; place-items: center; border: 1px solid #35c4df; border-radius: 18px; color: #fff; background: linear-gradient(145deg,#073d75,#05a7c7); box-shadow: 0 15px 35px rgba(7,88,133,.2); font-family: var(--font-display); font-size: 22px; font-weight: 850; }.atlas-welcome > p { margin: 0 0 8px; color: #0788ae; font-size: 8px; font-weight: 850; letter-spacing: .16em; }.atlas-welcome h2 { margin: 0; color: #102e43; font-family: var(--font-display); font-size: clamp(24px,3vw,34px); }.atlas-welcome > span { max-width: 520px; margin-top: 9px; color: #738793; font-size: 10px; line-height: 1.6; }.atlas-welcome > div:last-child { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 22px; }.atlas-welcome button { padding: 8px 10px; border: 1px solid #d6e2e7; border-radius: 9px; color: #496373; background: #fff; font-size: 9px; cursor: pointer; }
.atlas-thinking { border-top: 1px solid #edf1f3; }.atlas-thinking small { display: block; margin-top: 6px; color: #81919b; font-size: 8px; }.thinking-dots { display: flex; gap: 4px; padding-top: 3px; }.thinking-dots i { width: 5px; height: 5px; border-radius: 50%; background: #128bad; animation: atlasThinking 1.1s infinite ease-in-out; }.thinking-dots i:nth-child(2) { animation-delay: .16s; }.thinking-dots i:nth-child(3) { animation-delay: .32s; }
.atlas-run-error { margin: 0 max(24px, calc((100% - 720px)/2)) 8px; padding: 9px 11px; border: 1px solid #efc7c3; border-radius: 9px; color: #8f3b35; background: #fff4f2; font-size: 9px; }.atlas-composer { margin: 0 max(20px, calc((100% - 760px)/2)) 18px; overflow: hidden; border: 1px solid #b7c9d2; border-radius: 15px; background: #fff; box-shadow: 0 8px 28px rgba(20,48,68,.08); }.atlas-composer:focus-within { border-color: #178db0; box-shadow: 0 0 0 3px rgba(23,141,176,.1),0 8px 28px rgba(20,48,68,.08); }.atlas-composer textarea { display: block; width: 100%; min-height: 54px; max-height: 180px; resize: none; padding: 15px 16px 7px; border: 0; outline: 0; color: #193548; background: transparent; font: inherit; font-size: 12px; line-height: 1.5; field-sizing: content; }.atlas-composer > div { display: flex; min-height: 41px; align-items: center; gap: 10px; padding: 4px 8px 8px 11px; }.atlas-composer > div > span { display: flex; gap: 4px; }.atlas-composer > div button[type=button] { padding: 5px 7px; border: 0; border-radius: 6px; color: #087fa7; background: #edf7f9; font-size: 8px; font-weight: 750; cursor: pointer; }.atlas-composer small { margin-left: auto; color: #94a1a9; font-size: 7px; }.atlas-composer button[type=submit] { display: grid; width: 31px; height: 31px; place-items: center; border: 0; border-radius: 9px; color: #fff; background: #087fa7; font-size: 16px; cursor: pointer; }.atlas-composer button:disabled { opacity: .45; cursor: not-allowed; }
.atlas-context-rail { min-width: 0; padding: 17px 16px; overflow-y: auto; border-left: 1px solid #dfe7ec; background: #f5f8fa; }.atlas-context-rail section { padding: 7px 0 20px; border-bottom: 1px solid #dce5ea; }.atlas-context-rail section + section { padding-top: 17px; }.atlas-context-rail section > p:first-child { margin: 0 0 8px; color: #087fa7; font-size: 8px; font-weight: 850; letter-spacing: .12em; }.atlas-context-rail h3 { margin: 0 0 14px; color: #233f52; font-family: var(--font-display); font-size: 15px; line-height: 1.25; }.atlas-context-primary,.atlas-context-link { display: grid; grid-template-columns: 29px minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 8px; border: 1px solid #d7e2e7; border-radius: 9px; background: #fff; }.atlas-context-primary > span,.atlas-context-link > span { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 7px; color: #fff; background: linear-gradient(145deg,#073d75,#05a7c7); font-size: 9px; font-weight: 850; }.atlas-context-link { margin-top: 7px; }.atlas-context-link > span { color: #087fa7; background: #e6f5f8; }.atlas-context-primary div,.atlas-context-link div { display: grid; min-width: 0; gap: 2px; }.atlas-context-primary strong,.atlas-context-link strong { overflow: hidden; color: #294457; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.atlas-context-primary small,.atlas-context-link small { color: #83939d; font-size: 7px; }.atlas-context-link button { border: 0; color: #82929b; background: transparent; font-size: 15px; cursor: pointer; }.atlas-context-empty { margin: 12px 3px; color: #7b8d98; font-size: 8px; line-height: 1.55; }.atlas-context-add { width: 100%; margin-top: 9px; padding: 8px; border: 1px dashed #c8d7de; border-radius: 8px; color: #087fa7; background: transparent; font-size: 8px; cursor: pointer; }
.atlas-capability { display: flex; gap: 8px; padding: 9px; border: 1px solid #d7e2e7; border-radius: 9px; background: #fff; }.atlas-capability > i { width: 7px; height: 7px; margin-top: 3px; border-radius: 50%; background: #adbac1; }.atlas-capability.is-ready > i { background: #2dbb83; box-shadow: 0 0 0 3px rgba(45,187,131,.13); }.atlas-capability.is-blocked > i { background: #d58b4f; }.atlas-capability span { display: grid; gap: 2px; }.atlas-capability strong { color: #294457; font-size: 9px; }.atlas-capability small { color: #7d8e98; font-size: 7px; line-height: 1.45; }.atlas-model { display: flex; justify-content: space-between; margin-top: 8px; color: #778995; font-size: 8px; }.atlas-model strong { color: #344e5f; }.atlas-category-field { display: grid; gap: 5px; color: #728591; font-size: 8px; }.atlas-category-field select,.chat-dialog-form select { width: 100%; min-height: 36px; padding: 7px 9px; border: 1px solid #c8d5dc; border-radius: 8px; color: #294457; background: #fff; font: inherit; font-size: 9px; }.chat-dialog-empty { color: #7b8c96; font-size: 9px; }
@keyframes atlasThinking { 0%,70%,100% { opacity: .25; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-2px); } }
@keyframes atlasPulse { 50% { opacity: .35; } }

@media (max-width: 1180px) {
  .personal-atlas-workspace { grid-template-columns: 230px minmax(390px,1fr); }
  .atlas-context-rail { display: none; }
}
@media (max-width: 760px) {
  .personal-atlas-workspace { display: block; height: calc(100svh - 126px); min-height: 0; }
  .atlas-history { display: none; }
  .atlas-thread { height: 100%; grid-template-rows: auto minmax(0,1fr) auto auto; }
  .atlas-thread-header { min-height: 58px; padding: 8px 11px; }.atlas-thread-header h1 { max-width: 42vw; font-size: 15px; }.atlas-thread-header button { padding: 4px 6px; }.atlas-thread-header button:nth-child(2) { display: none; }
  .atlas-messages { padding: 15px 10px 9px; }.atlas-message { grid-template-columns: 30px minmax(0,1fr); gap: 8px; padding: 11px 3px; }.atlas-message-avatar { width: 30px; height: 30px; border-radius: 8px; }.atlas-message-text { font-size: 11px; }
  .atlas-welcome { padding: 20px 12px; }.atlas-welcome > div:last-child { display: grid; }.atlas-welcome button { width: 100%; }
  .atlas-composer { margin: 0 8px 8px; }.atlas-composer small { display: none; }.atlas-composer > div { padding-left: 7px; }
  .atlas-run-error { margin: 0 8px 6px; }
}

/* Production chat workflows: dialogs, mentions, and durable notification inbox. */
.chat-nav-head-actions { display: flex; align-items: center; gap: 6px; }
.chat-nav-head-actions button:hover, .chat-nav-label button:hover { background: rgba(255,255,255,.16); }
.mention-picker { position: absolute; right: 20px; bottom: 76px; left: 20px; z-index: 12; max-height: 260px; padding: 6px; overflow-y: auto; border: 1px solid #b9cad4; border-radius: 12px; background: #fff; box-shadow: 0 18px 45px rgba(15,42,60,.18); }
.chat-composer { position: relative; }
.mention-picker.is-hidden { display: none; }
.mention-picker button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 8px; color: #294457; background: transparent; text-align: left; cursor: pointer; }
.mention-picker button:hover, .mention-picker button:focus-visible { outline: 0; background: #edf7fa; }
.mention-picker button > span:last-child { display: grid; gap: 2px; }
.mention-picker strong { font-size: 11px; }.mention-picker small { color: #7b8e99; font-size: 9px; }
.mention-picker p { margin: 8px; color: #7b8e99; font-size: 10px; }

.chat-dialog-backdrop { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(3,18,34,.68); backdrop-filter: blur(8px); }
.chat-dialog { position: relative; width: min(570px, 100%); max-height: calc(100svh - 48px); overflow: auto; border: 1px solid rgba(255,255,255,.55); border-radius: 22px; color: #1c3547; background: #fbfaf6; box-shadow: 0 30px 90px rgba(0,0,0,.32); }
.chat-dialog-close { position: absolute; top: 18px; right: 18px; z-index: 2; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #d4dde2; border-radius: 10px; color: #5d707c; background: #fff; font-size: 20px; cursor: pointer; }
.chat-dialog-heading { padding: 31px 64px 22px 30px; border-bottom: 1px solid #dfe5e7; background: linear-gradient(135deg, rgba(229,245,249,.72), rgba(251,250,246,.2)); }
.chat-dialog-heading p { margin: 0 0 6px; color: #0786ae; font-size: 9px; font-weight: 850; letter-spacing: .16em; }
.chat-dialog-heading h2 { margin: 0 0 7px; color: #0b2c47; font-family: var(--font-display); font-size: 27px; }
.chat-dialog-heading span { display: block; max-width: 440px; color: #70818b; font-size: 10px; line-height: 1.55; }
.chat-dialog-search { display: flex; align-items: center; gap: 8px; margin: 20px 25px 10px; padding: 0 12px; border: 1px solid #c6d4db; border-radius: 10px; color: #78909d; background: #fff; }
.chat-dialog-search input { width: 100%; min-height: 41px; border: 0; outline: 0; color: #203b4d; background: transparent; font-size: 11px; }
.chat-person-picker { display: grid; max-height: 360px; gap: 3px; padding: 4px 25px 25px; overflow-y: auto; }
.chat-person-picker > button { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 10px; border: 0; border-radius: 11px; color: #203b4d; background: transparent; text-align: left; cursor: pointer; }
.chat-person-picker > button:hover, .chat-person-picker > button:focus-visible { outline: 0; background: #eaf5f8; }
.chat-person-picker > button > span:not(.chat-avatar) { display: grid; gap: 2px; }.chat-person-picker strong { font-size: 11px; }.chat-person-picker small { color: #7d8d97; font-size: 9px; }.chat-person-picker i { color: #087fa7; font-size: 9px; font-style: normal; font-weight: 750; }
.chat-person-picker > p { margin: 24px 0; color: #7b8c96; font-size: 10px; text-align: center; }
.chat-dialog-form { display: grid; gap: 17px; padding: 23px 30px 0; }
.chat-dialog-form > label { display: grid; gap: 7px; color: #5d717e; font-size: 9px; font-weight: 750; }
.chat-dialog-form input[type="text"], .chat-dialog-form input[name="name"], .chat-dialog-form textarea { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid #c5d3da; border-radius: 10px; outline: 0; color: #1d394c; background: #fff; font: inherit; font-size: 11px; }
.chat-dialog-form textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.chat-dialog-form input:focus, .chat-dialog-form textarea:focus { border-color: #1389ac; box-shadow: 0 0 0 3px rgba(19,137,172,.1); }
.chat-dialog-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }.chat-dialog-form legend { margin-bottom: 8px; color: #5d717e; font-size: 9px; font-weight: 750; }
.chat-dialog-members { display: grid; max-height: 210px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 6px; overflow-y: auto; border: 1px solid #d5dfe4; border-radius: 11px; background: rgba(255,255,255,.65); }
.chat-dialog-members label { display: grid; grid-template-columns: 18px 24px minmax(0,1fr); align-items: center; gap: 7px; padding: 8px; border-radius: 8px; cursor: pointer; }.chat-dialog-members label:hover { background: #edf6f8; }.chat-dialog-members span:last-child { display: grid; color: #294457; font-size: 10px; }.chat-dialog-members small { color: #80919b; font-size: 8px; }
.image-capability { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid #c4d4da; border-radius: 11px; background: #f2f7f8; }.image-capability > i { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: #b45c54; }.image-capability.is-ready > i { background: #3d9765; box-shadow: 0 0 0 4px rgba(61,151,101,.12); }.image-capability span { display: grid; gap: 3px; }.image-capability strong { color: #294457; font-size: 10px; }.image-capability small { color: #72848f; font-size: 9px; line-height: 1.45; }
.image-prompt-tips { display: grid; gap: 4px; padding: 0 2px; color: #7a8992; font-size: 9px; }.image-prompt-tips strong { color: #4c626f; }
.chat-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin: 2px -30px 0; padding: 18px 30px; border-top: 1px solid #dfe5e7; background: rgba(255,255,255,.48); }
.chat-dialog-actions button:disabled { cursor: not-allowed; opacity: .48; }
.chat-dialog-error { min-height: 16px; margin: -11px 0 0; color: #a34842; font-size: 10px; }

.notification-dot { opacity: 0; transform: scale(.4); transition: opacity 160ms ease, transform 160ms ease; }
.notification-dot.is-visible { opacity: 1; transform: scale(1); }
.notification-panel { position: fixed; z-index: 85; top: 64px; right: 18px; display: flex; width: min(390px, calc(100vw - 30px)); max-height: min(700px, calc(100svh - 82px)); flex-direction: column; overflow: hidden; border: 1px solid #cbd7de; border-radius: 18px; color: #1c3547; background: #fff; box-shadow: 0 24px 70px rgba(8,31,47,.25); opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top right; pointer-events: none; transition: opacity 150ms ease, transform 150ms ease; }
.notification-panel.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.notification-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 20px 20px 15px; border-bottom: 1px solid #e0e7ea; background: linear-gradient(135deg, #eaf6f9, #fff); }
.notification-panel-head p { margin: 0 0 3px; color: #0786ae; font-size: 8px; font-weight: 850; letter-spacing: .16em; }.notification-panel-head h2 { margin: 0; color: #102e44; font-family: var(--font-display); font-size: 22px; }.notification-panel-head button { padding: 5px; border: 0; color: #087fa7; background: transparent; font-size: 9px; font-weight: 750; cursor: pointer; }
.notification-summary { display: flex; align-items: baseline; gap: 6px; padding: 11px 20px; color: #788993; background: #fafcfc; font-size: 9px; }.notification-summary strong { color: #0a779d; font-size: 16px; }
.notification-list { overflow-y: auto; }
.notification-item { position: relative; display: grid; width: 100%; grid-template-columns: 34px minmax(0,1fr); align-items: start; gap: 10px; padding: 13px 18px; border: 0; border-top: 1px solid #edf1f3; color: #263f50; background: #fff; text-align: left; cursor: pointer; }.notification-item:hover { background: #f4f9fa; }.notification-item.is-unread { background: #edf8fb; }.notification-item.is-unread::after { position: absolute; right: 13px; width: 6px; height: 6px; margin-top: 5px; border-radius: 50%; background: #078db8; content: ""; }.notification-copy { display: grid; min-width: 0; gap: 4px; padding-right: 10px; }.notification-copy > span { font-size: 10px; }.notification-copy > small { overflow: hidden; color: #5f737f; font-size: 10px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }.notification-copy > i { color: #87959d; font-size: 8px; font-style: normal; }
.notification-empty { display: grid; min-height: 240px; place-content: center; justify-items: center; gap: 6px; padding: 30px; color: #788993; text-align: center; }.notification-empty > span { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; color: #1687a9; background: #e5f4f7; font-size: 19px; }.notification-empty strong { color: #304a5b; font-size: 12px; }.notification-empty p { margin: 0; font-size: 9px; }

@media (max-width: 640px) {
  .notification-panel { top: 58px; right: 8px; width: calc(100vw - 16px); max-height: calc(100svh - 138px); border-radius: 16px; }
  .chat-dialog-backdrop { align-items: end; padding: 0; }
  .chat-dialog { width: 100%; max-height: calc(100svh - 30px); border-radius: 22px 22px 0 0; }
  .chat-dialog-heading { padding: 27px 58px 18px 20px; }.chat-dialog-heading h2 { font-size: 24px; }
  .chat-dialog-search { margin-inline: 16px; }.chat-person-picker { padding-inline: 16px; }
  .chat-dialog-form { padding: 20px 18px 0; }.chat-dialog-actions { margin-inline: -18px; padding-inline: 18px; }
  .chat-dialog-members { grid-template-columns: 1fr; }
  .mention-picker { right: 9px; bottom: 67px; left: 9px; }
}

/* Composer interaction polish: the mention menu floats outside the input. */
.chat-composer { z-index: 15; overflow: visible; }
.chat-composer textarea { min-height: 42px; padding: 12px 14px 4px; resize: none; line-height: 1.5; field-sizing: content; }
.chat-composer-actions { min-height: 35px; padding: 2px 7px 7px 10px; }
.mention-picker { right: 0; bottom: calc(100% + 8px); left: 0; }

@media (max-width: 760px) {
  .mention-picker { right: 0; bottom: calc(100% + 7px); left: 0; }
}

.atlas-mobile-history { display: none; }
.atlas-logo-avatar { overflow: hidden; padding: 0; background: #031b36; }
.atlas-logo-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.atlas-context-primary > span.atlas-logo-avatar { padding: 0; background: #031b36; }
.nav-atlas-logo, .mobile-atlas-logo { display: block; overflow: hidden; border-radius: 6px; }
.nav-atlas-logo { height: 24px; }
.nav-atlas-logo img, .mobile-atlas-logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mobile-atlas-logo { display: block; width: 18px; height: 18px; }
.chat-dialog-form input[name="title"] { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid #c5d3da; border-radius: 10px; outline: 0; color: #1d394c; background: #fff; font: inherit; font-size: 11px; }

@media (max-width: 760px) {
  .atlas-thread-header h1, .atlas-thread-header > div:first-child > small { display: none; }
  .atlas-mobile-history { display: block; width: min(46vw, 220px); min-height: 31px; padding: 4px 6px; border: 1px solid #d1dde3; border-radius: 7px; color: #18364a; background: #fff; font-size: 9px; }
  .atlas-thread-header button:nth-child(3), .atlas-thread-header button:nth-child(4) { display: none; }
}

/* Personal Atlas navigation hierarchy: compact app rail, focused history, optional context. */
.compact-modules-nav { display: none; }
.atlas-panel-scrim, .atlas-history-close, .atlas-history-toggle { display: none; }
.atlas-history-section-title { display: flex; align-items: center; justify-content: space-between; }
.atlas-history-section-title button { display: grid; width: 23px; height: 23px; place-items: center; border: 0; border-radius: 6px; color: #d7edf5; background: rgba(255,255,255,.08); font-size: 15px; cursor: pointer; }
.atlas-topic-group + .atlas-topic-group { margin-top: 10px; }
.atlas-topic-name { display: grid; grid-template-columns: 18px minmax(0,1fr) auto; align-items: center; gap: 5px; min-height: 29px; padding: 3px 8px; color: #afc5d2; }
.atlas-topic-name > span { color: #55cce7; font-size: 11px; }.atlas-topic-name strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.atlas-topic-name small { color: #66879b; font-size: 8px; }
.atlas-topic-empty { padding: 5px 8px; color: #708fa2; font-size: 8px; line-height: 1.5; }
.atlas-topic-badge { display: inline-flex; width: fit-content; margin-top: 4px; padding: 3px 7px; border-radius: 999px; color: #427186; background: #e9f4f7; font-size: 7px; font-weight: 750; }
.atlas-thread-actions { position: relative; display: flex; align-items: center; gap: 6px; }
.atlas-thread-actions .atlas-star { min-width: 30px; padding: 3px; border: 0; background: transparent; font-size: 19px; }
.atlas-context-toggle.is-active { color: #087fa7; border-color: #9dccd9; background: #eaf7fa; }
.atlas-thread-actions .atlas-more { min-width: 32px; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.atlas-thread-actions .atlas-notification { position: relative; display: grid; width: 31px; min-width: 31px; padding: 5px; place-items: center; }
.atlas-notification svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.atlas-notification .notification-dot { top: 4px; right: 4px; }
.atlas-conversation-menu { position: absolute; z-index: 45; top: calc(100% + 8px); right: 0; display: grid; width: 170px; padding: 5px; border: 1px solid #cedbe2; border-radius: 10px; background: #fff; box-shadow: 0 16px 40px rgba(12,38,55,.18); }
.atlas-conversation-menu button { width: 100%; padding: 9px 10px; border: 0; color: #354f60; background: transparent; font-size: 9px; text-align: left; cursor: pointer; }.atlas-conversation-menu button:hover { color: #087fa7; background: #edf7f9; }
.atlas-context-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 19px 17px 15px; border-bottom: 1px solid #dce5ea; }
.atlas-context-head p { margin: 0 0 4px; color: #087fa7; font-size: 8px; font-weight: 850; letter-spacing: .13em; }.atlas-context-head h2 { color: #18374b; font-family: var(--font-display); font-size: 18px; }.atlas-context-head button { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #d3dee4; border-radius: 8px; color: #677b88; background: #fff; font-size: 18px; cursor: pointer; }
.atlas-context-status { display: grid; grid-template-columns: 8px minmax(0,1fr) auto; align-items: center; gap: 7px; padding: 14px 1px; color: #70838f; font-size: 8px; }.atlas-context-status i { width: 7px; height: 7px; border-radius: 50%; background: #d18b54; }.atlas-context-status i.is-ready { background: #2dbb83; box-shadow: 0 0 0 3px rgba(45,187,131,.12); }.atlas-context-status strong { color: #3d5666; font-size: 7px; }

body.is-compact-navigation:not(.is-sidebar-expanded) .sidebar { width: 68px; padding: 14px 8px 12px; }
body.is-compact-navigation:not(.is-sidebar-expanded) .nav-item > span:not(.nav-icon):not(.nav-count),
body.is-compact-navigation:not(.is-sidebar-expanded) .profile-copy,
body.is-compact-navigation:not(.is-sidebar-expanded) .profile-card > span:last-child { display: none; }
body.is-compact-navigation:not(.is-sidebar-expanded) .primary-nav { gap: 7px; }
body.is-compact-navigation:not(.is-sidebar-expanded) .nav-item { position: relative; justify-content: center; min-height: 43px; padding: 7px; }
body.is-compact-navigation:not(.is-sidebar-expanded) .nav-icon { width: 25px; }
body.is-compact-navigation:not(.is-sidebar-expanded) .nav-count { position: absolute; top: 3px; right: 2px; min-width: 15px; padding: 1px 4px; font-size: 7px; }
body.is-compact-navigation:not(.is-sidebar-expanded) .compact-modules-nav { display: flex; }
body.is-compact-navigation:not(.is-sidebar-expanded) .sidebar-section { display: none; }
body.is-compact-navigation:not(.is-sidebar-expanded) .sidebar-footer { padding-top: 11px; border-top: 0; }
body.is-compact-navigation:not(.is-sidebar-expanded) .profile-card { justify-content: center; padding: 4px; }
body.is-compact-navigation:not(.is-sidebar-expanded) .avatar { width: 38px; height: 38px; }
body.is-compact-navigation:not(.is-sidebar-expanded) .workspace { margin-left: 68px; }
body.is-personal-atlas #app-main { min-height: 100vh; }

body.is-personal-atlas .personal-atlas-workspace { position: relative; grid-template-columns: 280px minmax(0,1fr); height: 100vh; min-height: 560px; }
body.is-personal-atlas .atlas-history { width: 280px; }
body.is-personal-atlas .atlas-history-head { min-height: 64px; }
body.is-personal-atlas .atlas-add-category { display: none; }
body.is-personal-atlas .atlas-thread-header { min-height: 64px; }
body.is-personal-atlas .atlas-context-rail { position: absolute; z-index: 42; top: 0; right: 0; bottom: 0; display: block; width: min(310px, 88vw); padding: 0 17px 18px; border-left: 1px solid #d7e2e8; background: #f5f8fa; box-shadow: -18px 0 45px rgba(12,38,55,.14); transform: translateX(105%); transition: transform 180ms ease; }
body.is-personal-atlas .atlas-context-rail.is-open { transform: translateX(0); }
body.is-personal-atlas .atlas-context-rail > section { padding-top: 17px; }
body.is-personal-atlas .atlas-panel-scrim { position: absolute; inset: 0; z-index: 40; border: 0; background: rgba(9,28,42,.2); backdrop-filter: blur(1px); }
body.is-personal-atlas .atlas-context-panel-scrim.is-open { display: block; }

@media (max-width: 900px) and (min-width: 761px) {
  body.is-compact-navigation .sidebar { display: flex; width: 68px; padding: 14px 8px 12px; transform: none; box-shadow: none; }
  body.is-compact-navigation .nav-item > span:not(.nav-icon):not(.nav-count),
  body.is-compact-navigation .profile-copy,
  body.is-compact-navigation .profile-card > span:last-child { display: none; }
  body.is-compact-navigation .primary-nav { gap: 7px; }
  body.is-compact-navigation .nav-item { position: relative; justify-content: center; min-height: 43px; padding: 7px; }
  body.is-compact-navigation .nav-icon { width: 25px; }
  body.is-compact-navigation .nav-count { position: absolute; top: 3px; right: 2px; min-width: 15px; padding: 1px 4px; font-size: 7px; }
  body.is-compact-navigation .compact-modules-nav { display: flex; }
  body.is-compact-navigation .sidebar-section { display: none; }
  body.is-compact-navigation .sidebar-footer { padding-top: 11px; border-top: 0; }
  body.is-compact-navigation .profile-card { justify-content: center; padding: 4px; }
  body.is-compact-navigation .workspace { margin-left: 68px; }
  body.is-compact-navigation .mobile-menu-button, body.is-compact-navigation .sidebar-toggle { display: none; }
}

@media (max-width: 760px) {
  .sidebar-toggle { display: none; }
  body.is-compact-navigation:not(.is-sidebar-expanded) .sidebar { width: var(--sidebar-width); padding: 26px 18px 18px; }
  body.is-compact-navigation:not(.is-sidebar-expanded) .nav-item > span:not(.nav-icon):not(.nav-count),
  body.is-compact-navigation:not(.is-sidebar-expanded) .profile-copy,
  body.is-compact-navigation:not(.is-sidebar-expanded) .profile-card > span:last-child { display: block; }
  body.is-compact-navigation:not(.is-sidebar-expanded) .primary-nav { gap: 4px; }
  body.is-compact-navigation:not(.is-sidebar-expanded) .nav-item { justify-content: flex-start; min-height: 42px; padding: 8px 10px; }
  body.is-compact-navigation:not(.is-sidebar-expanded) .nav-icon { width: 24px; }
  body.is-compact-navigation:not(.is-sidebar-expanded) .nav-count { position: static; min-width: 20px; margin-left: auto; padding: 2px 6px; font-size: 11px; }
  body.is-compact-navigation:not(.is-sidebar-expanded) .compact-modules-nav { display: none; }
  body.is-compact-navigation:not(.is-sidebar-expanded) .sidebar-section { display: block; }
  body.is-compact-navigation:not(.is-sidebar-expanded) .sidebar-footer { padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.09); }
  body.is-compact-navigation:not(.is-sidebar-expanded) .profile-card { justify-content: flex-start; padding: 7px 6px; }
  body.is-compact-navigation:not(.is-sidebar-expanded) .avatar { width: 34px; height: 34px; }
  body.is-compact-navigation:not(.is-sidebar-expanded) .workspace { margin-left: 0; }
  body.is-personal-atlas .sidebar { display: none; }
  body.is-personal-atlas .workspace { margin-left: 0; }
  body.is-personal-atlas .mobile-menu-button { display: none; }
  body.is-personal-atlas .personal-atlas-workspace { display: grid; height: calc(100svh - 68px); grid-template-columns: minmax(0,1fr); }
  body.is-personal-atlas .atlas-history { position: absolute; z-index: 44; top: 0; bottom: 0; left: 0; display: flex; width: min(84vw,300px); transform: translateX(-105%); transition: transform 180ms ease; }
  body.is-personal-atlas .atlas-history.is-open { transform: translateX(0); }
  body.is-personal-atlas .atlas-history-close { display: grid; }
  body.is-personal-atlas .atlas-history-panel-scrim.is-open { display: block; z-index: 43; }
  body.is-personal-atlas .atlas-thread { grid-column: 1; height: 100%; }
  body.is-personal-atlas .atlas-thread-header { display: grid; min-height: 61px; grid-template-columns: 32px minmax(0,1fr) auto; gap: 8px; padding: 7px 9px; }
  body.is-personal-atlas .atlas-history-toggle { display: grid; width: 30px; height: 30px; place-items: center; padding: 0; border: 1px solid #d4dfe4; border-radius: 8px; color: #536c7b; background: #fff; font-size: 13px; }
  body.is-personal-atlas .atlas-thread-header h1 { display: block; max-width: 42vw; margin: 0; font-size: 14px; }
  body.is-personal-atlas .atlas-thread-header > div:nth-child(2) > small { display: none; }
  body.is-personal-atlas .atlas-topic-badge { margin-top: 2px; }
  body.is-personal-atlas .atlas-thread-actions { gap: 3px; }
  body.is-personal-atlas .atlas-context-toggle { max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.is-personal-atlas .atlas-thread-actions .atlas-context-toggle, body.is-personal-atlas .atlas-thread-actions .atlas-more { display: block; }
  body.is-personal-atlas .atlas-thread-actions .atlas-notification { display: grid; }
  body.is-personal-atlas .atlas-thread-actions .atlas-star { display: none; }
  body.is-personal-atlas .atlas-context-rail { width: min(92vw,340px); }
  body.is-personal-atlas .atlas-mobile-history { display: none; }
  body.is-personal-atlas .mobile-nav { grid-template-columns: repeat(5,1fr); }
}
