/* Noeti — uniform site: white, Cinzel brand, Bittensor-simple */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --ink: #111111;
  --muted: #333333;
  --line: #e8e8e8;
  --soft: #fafafa;
  --accent: #111111;
  --accent-2: #333333;
  --moss: #111111;
  --moss-2: #333333;
  --gold: #8b7355;
  --display: "Cinzel", "Times New Roman", serif;
  --font: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 0;
  --accent-soft: rgba(17, 17, 17, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: #ffffff !important;
  background-image: none !important;
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.55; }

.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 1.15rem 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid transparent;
}

.topnav .mark {
  font-family: var(--display) !important;
  font-size: 1.05rem !important;
  letter-spacing: 0.2em !important;
  font-weight: 500 !important;
  text-transform: none !important;
  justify-self: start;
  color: var(--ink) !important;
}

.topnav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  grid-column: 2;
}

.topnav .spacer { justify-self: end; min-width: 2rem; }

.topnav a {
  font-family: var(--font) !important;
  font-size: 0.72rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
  color: var(--ink) !important;
}

.topnav a[aria-current="page"] { opacity: 0.35; }

.nav-toggle {
  display: none;
  justify-self: end;
  border: 0;
  background: transparent;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 1px;
  background: var(--ink);
  margin: 0.28rem auto;
}

/* HOME — white, Greek brand, scrollable stage + product proof */
.page-home,
body.page-home,
body.greek-home,
body.page-home.greek-home {
  min-height: 100vh;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  background: #ffffff !important;
  background-image: none !important;
  color: #111 !important;
  font-family: var(--font) !important;
}

.topnav-home,
body.greek-home .topnav-home {
  background: rgba(255, 255, 255, 0.88) !important;
  border-bottom: none !important;
}

.mesh-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
  height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
}

#mesh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.headline-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.headline-chip,
body.greek-home .headline-chip {
  position: absolute;
  max-width: min(240px, 38vw);
  padding: 0.4rem 0.55rem;
  border: 1px solid rgba(17, 17, 17, 0.12) !important;
  border-left: 1px solid rgba(17, 17, 17, 0.35) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: translate(-50%, -50%) scale(0.92);
  opacity: 0;
  will-change: left, top, transform, opacity;
  transition: opacity 0.55s ease, filter 0.55s ease;
  pointer-events: none;
}

.headline-chip.pop-in {
  animation: chipPopIn 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.headline-chip.pop-out {
  animation: chipPopOut 0.75s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

.headline-chip.relocating {
  opacity: 0.15 !important;
  filter: blur(1.5px);
}

.headline-chip em,
body.greek-home .headline-chip em {
  display: block;
  font-style: normal;
  font-family: var(--display) !important;
  font-size: 0.52rem !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
  color: #888 !important;
  margin-bottom: 0.2rem;
  font-weight: 500 !important;
}

.headline-chip span,
body.greek-home .headline-chip span {
  display: block;
  font-family: var(--font) !important;
  font-size: 0.68rem !important;
  line-height: 1.32;
  color: rgba(17, 17, 17, 0.65) !important;
}

@keyframes chipPopIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(var(--pop-x, 18px), var(--pop-y, -14px)) scale(0.94);
  }
  100% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes chipPopOut {
  0% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(var(--out-x, -14px), var(--out-y, 12px)) scale(0.96);
  }
}

.home-stage {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.25rem 3rem;
  pointer-events: none;
}

.home-stage .greek-name,
.home-stage .punch,
.home-stage .punch-sub,
.home-stage .live-note {
  text-shadow: none !important;
}

.greek-frieze { display: none !important; }

.greek-epigraph,
body.greek-home .greek-epigraph {
  font-family: var(--display) !important;
  font-size: clamp(0.72rem, 1.8vw, 0.95rem) !important;
  font-weight: 400 !important;
  letter-spacing: 0.32em !important;
  color: #a3a3a3 !important;
  margin-bottom: 1rem !important;
  text-shadow: none !important;
}

.greek-name,
body.greek-home .greek-name,
body.greek-home h1.greek-name {
  font-family: var(--display) !important;
  font-weight: 500 !important;
  font-size: clamp(4.8rem, 18vw, 5.5rem) !important;
  letter-spacing: 0.2em !important;
  line-height: 1 !important;
  margin-bottom: 0.85rem !important;
  color: #111 !important;
  text-transform: none !important;
  text-shadow: none !important;
}

.home-stage {
  min-height: 100vh;
  min-height: 100dvh;
}

.home-stage .punch,
body.page-home .punch,
body.greek-home .punch {
  max-width: 34rem;
  margin: 0 auto !important;
  font-family: "IBM Plex Sans", sans-serif !important;
  font-size: clamp(0.95rem, 1.8vw, 1.15rem) !important;
  font-weight: 400 !important;
  letter-spacing: 0.01em !important;
  line-height: 1.45 !important;
  color: rgba(17, 17, 17, 0.58) !important;
  text-shadow: none !important;
}

.home-below {
  position: relative;
  z-index: 2;
  background: #fff;
  border-top: 1px solid #ececec;
  padding: 4.5rem 1.25rem 5.5rem;
}

.home-below-inner {
  width: min(720px, 100%);
  margin: 0 auto;
  text-align: center;
}

.home-below-kicker {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a9a9a;
  margin: 0 0 0.75rem;
}

.home-below-title {
  font-family: var(--display) !important;
  font-weight: 500;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  letter-spacing: 0.04em;
  line-height: 1.25;
  margin: 0 0 0.85rem;
  color: #111;
}

.home-below-lead {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1.02rem;
  line-height: 1.55;
  color: rgba(17, 17, 17, 0.58);
  margin: 0 auto 2rem;
  max-width: 32rem;
}

.home-where {
  margin: 0 auto 2rem;
  max-width: 720px;
}

.home-where svg {
  width: 100%;
  height: auto;
  display: block;
  background: #fafaf8;
  border: 1px solid #e4e4e0;
}

.home-where figcaption {
  margin-top: 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a9a9a;
}

.home-usecase {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #333;
  max-width: 34rem;
  margin: 0 auto 1.75rem;
}

.home-claims {
  list-style: none;
  margin: 0 auto 2rem;
  padding: 0;
  max-width: 34rem;
  text-align: left;
  display: grid;
  gap: 0.75rem;
}

.home-claims li {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(17, 17, 17, 0.7);
  padding-left: 0;
  border-top: 1px solid #ececec;
  padding-top: 0.75rem;
}

.home-claims strong {
  color: #111;
  font-weight: 600;
  margin-right: 0.25rem;
}

.home-cta-below {
  justify-content: center;
}

.desk-auth {
  animation: deskAuthIn 0.45s ease both;
}
@keyframes deskAuthIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.desk-auth-card .auth-early {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: #8a8a8a;
}

body.page-home.greek-home {
  background-color: #f7f7f5 !important;
  background-image: none !important;
  color: #111 !important;
}

body.page-home .topnav-home {
  background: rgba(247, 247, 245, 0.75) !important;
  border-bottom: 1px solid transparent !important;
  backdrop-filter: blur(10px);
}

body.page-home .topnav-home .mark {
  color: #111 !important;
}

body.page-home .topnav-home a {
  color: rgba(17,17,17,0.55) !important;
}

body.page-home .topnav-home a:hover,
body.page-home .topnav-home a[aria-current="page"] {
  color: #111 !important;
}

body.page-home .topnav-home .nav-toggle span {
  background: #111 !important;
}

body.page-home .home-stage {
  justify-content: center;
  pointer-events: none;
}

.home-intro,
body.page-home .home-intro {
  margin: 1.1rem 0 0;
  max-width: 28rem;
  font-family: "IBM Plex Sans", sans-serif !important;
  font-size: clamp(0.88rem, 1.6vw, 1.05rem) !important;
  font-weight: 400 !important;
  letter-spacing: 0.01em !important;
  line-height: 1.45 !important;
  color: rgba(17, 17, 17, 0.55) !important;
  text-shadow: none !important;
}

.home-products,
body.page-home .home-products {
  pointer-events: auto;
  display: flex;
  gap: 1.35rem;
  margin-top: 1.75rem;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-products a {
  color: rgba(17, 17, 17, 0.45);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.15rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.home-products a:hover {
  color: #111;
  border-bottom-color: #111;
}

.greek-rule,
body.greek-home .greek-rule {
  width: 3rem;
  height: 1px;
  margin: 0 auto 1.25rem;
  background: #111;
}
.greek-rule::before,
.greek-rule::after { display: none !important; }

.punch,
body.greek-home .punch {
  font-family: var(--font) !important;
  font-size: clamp(0.95rem, 1.8vw, 1.12rem) !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  font-weight: 400 !important;
  color: rgba(17, 17, 17, 0.58) !important;
  max-width: 26rem !important;
  line-height: 1.45 !important;
  text-shadow: none !important;
  margin: 0 auto !important;
}

.punch-sub,
body.greek-home .punch-sub {
  margin-top: 0.75rem !important;
  font-family: var(--font) !important;
  font-size: 0.88rem !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 1.5 !important;
  color: var(--muted) !important;
  max-width: 26rem !important;
  text-shadow: none !important;
}

.live-note,
body.greek-home .live-note {
  margin-top: 1.35rem !important;
  font-family: var(--font) !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #aaa !important;
  font-weight: 400 !important;
}
.live-note.tick,
body.greek-home .live-note.tick {
  color: #111 !important;
}

.home-cta {
  pointer-events: auto;
  display: flex;
  gap: 0.65rem;
  margin-top: 1.75rem !important;
  flex-wrap: wrap;
  justify-content: center;
}

.home-cta a,
body.greek-home .home-cta a {
  pointer-events: auto;
  font-family: var(--font) !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  padding: 0.7rem 1.2rem !important;
  border-radius: 0 !important;
  transition: opacity 0.15s ease, background 0.15s ease !important;
}

.home-cta-primary,
body.greek-home .home-cta-primary {
  background: #111 !important;
  color: #fff !important;
  border: 1px solid #111 !important;
}
.home-cta-primary:hover,
body.greek-home .home-cta-primary:hover {
  background: #333 !important;
  border-color: #333 !important;
  opacity: 1 !important;
}

.home-cta-ghost,
body.greek-home .home-cta-ghost {
  background: transparent !important;
  border: 1px solid #111 !important;
  color: #111 !important;
  backdrop-filter: none !important;
}
.home-cta-ghost:hover,
body.greek-home .home-cta-ghost:hover {
  opacity: 0.55 !important;
}

/* Inner pages */
.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: 7rem 1.25rem 3rem;
  background: transparent;
}

.page-inner {
  width: min(680px, 100%);
  margin: 0 auto;
  text-align: center;
}

/* Moving mesh dots — same as front page, sitewide */
body.has-mesh .mesh-layer,
body:not(.page-home):not(.greek-home) .mesh-layer {
  opacity: 0.18 !important;
  filter: grayscale(1) !important;
}

.page-inner.wide { width: min(860px, 100%); }

.page-title {
  font-family: var(--display) !important;
  font-weight: 500 !important;
  font-size: clamp(1.8rem, 4vw, 2.5rem) !important;
  letter-spacing: 0.16em !important;
  margin-bottom: 0.85rem;
  line-height: 1.15;
  text-transform: none !important;
}

.page-byline {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.page-body {
  text-align: left;
  color: #333;
  font-size: 1.05rem;
}

.page-body p + p { margin-top: 1.1rem; }

.page-body h2 {
  font-family: var(--display) !important;
  font-weight: 500 !important;
  font-size: 1.05rem !important;
  letter-spacing: 0.08em !important;
  margin: 2.2rem 0 0.75rem;
}

.page-body a { border-bottom: 1px solid #ddd; }
.page-body a:hover { opacity: 1; border-bottom-color: #111; }

.fact-list {
  list-style: none;
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
}

.fact-list li {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.fact-list strong {
  display: block;
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-weight: 500;
}

.fact-list span {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  position: relative;
  z-index: 2;
  padding: 2rem 1.25rem 3rem;
  text-align: center;
  border-top: 1px solid var(--line);
  background: transparent;
}

.site-footer p {
  font-size: 0.78rem;
  color: var(--muted);
}

.site-footer a { border-bottom: 1px solid transparent; }
.site-footer a:hover { opacity: 1; border-bottom-color: #bbb; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.cta-row a {
  font-size: 0.82rem;
  border-bottom: 1px solid #111;
  padding-bottom: 0.1rem;
}

.cta-row a:hover { opacity: 1; border-bottom-color: #111; }

/* Pricing — flat, white */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.price-intro {
  max-width: 40rem;
  color: var(--muted);
}

.price-grid-friendly {
  gap: 1rem;
  align-items: stretch;
}

.price-card {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0.25rem 0.5rem;
  text-align: left;
}

.price-grid-friendly .price-card {
  border: 1px solid var(--line) !important;
  border-radius: 0 !important;
  padding: 1.35rem 1.15rem 1.15rem !important;
  background: #fff !important;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: none !important;
}

.price-grid-friendly .price-card.is-featured {
  border-color: #111 !important;
  border-top: 2px solid #111 !important;
  background: #111 !important;
  color: #fff !important;
  box-shadow: none !important;
}

.price-grid-friendly .price-card.is-featured .price-who,
.price-grid-friendly .price-card.is-featured .price-lead,
.price-grid-friendly .price-card.is-featured .price-list,
.price-grid-friendly .price-card.is-featured .amount small {
  color: rgba(255, 255, 255, 0.65);
}

.price-who {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.45rem;
}

.price-card h3 {
  font-family: var(--display) !important;
  font-weight: 500 !important;
  font-size: 1.15rem !important;
  letter-spacing: 0.08em !important;
  margin-bottom: 0.4rem;
}

.price-card .amount {
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.price-card .amount small {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 0.2rem;
}

.price-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.price-lead {
  margin-top: 0.55rem !important;
  margin-bottom: 0.85rem;
  line-height: 1.45;
}

.price-gets {
  margin: 0 0 0.35rem !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted) !important;
  font-weight: 500;
}

.price-grid-friendly .price-card.is-featured .price-gets {
  color: rgba(255, 255, 255, 0.45) !important;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.15rem;
  flex: 1;
}

.price-list li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.05rem;
  font-size: 0.9rem;
  color: #333;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  line-height: 1.35;
}

.price-grid-friendly .price-card.is-featured .price-list li {
  border-top-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
}

.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.4rem;
  height: 1px;
  background: #111;
}

.price-grid-friendly .price-card.is-featured .price-list li::before {
  background: #fff;
}

.price-cta {
  display: inline-block;
  margin-top: auto;
  padding: 0.55rem 0.9rem;
  border: 1px solid #111;
  border-radius: 0 !important;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  color: inherit;
  align-self: flex-start;
  transition: background 0.15s, color 0.15s;
}

.price-cta:hover {
  background: #111;
  color: #fff;
  opacity: 1;
}

.price-grid-friendly .price-card.is-featured .price-cta {
  border-color: rgba(255, 255, 255, 0.45);
}

.price-grid-friendly .price-card.is-featured .price-cta:hover {
  background: #fff;
  color: #111;
  border-color: #fff;
}

.price-grid-neat .price-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.price-grid-neat .price-lead {
  margin-bottom: 0.25rem;
}
.price-grid-neat .price-quotas {
  flex: 1;
  grid-template-columns: 1fr 1fr;
  margin: 0.85rem 0 1.25rem;
}
.price-grid-neat .price-quotas div:last-child {
  grid-column: 1 / -1;
}
.price-grid-neat .price-cta {
  margin-top: auto;
}
.addon-grid-neat {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .addon-grid-neat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .addon-grid-neat { grid-template-columns: 1fr; }
}
.addon-grid-neat .addon-card p:last-child {
  font-size: 0.8rem;
}

.price-quotas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 0.85rem;
  margin: 1rem 0 1.15rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(17,17,17,0.08);
  border-bottom: 1px solid rgba(17,17,17,0.08);
}
.price-quotas div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.price-quotas dt {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a9a9a;
}
.price-quotas dd {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.92rem;
  font-weight: 500;
  color: #111;
}
.price-grid-friendly .price-card.is-featured .price-quotas {
  border-color: rgba(255,255,255,0.18);
}
.price-grid-friendly .price-card.is-featured .price-quotas dt {
  color: rgba(255,255,255,0.55);
}
.price-grid-friendly .price-card.is-featured .price-quotas dd {
  color: #fff;
}

.price-meter h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.65rem;
}

.price-meter {
  margin-top: 2.5rem;
  text-align: left;
}
.meter-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
  max-width: 44rem;
}
.meter-list li {
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(17,17,17,0.7);
  border-top: 1px solid #ececec;
  padding-top: 0.65rem;
}
.meter-list strong { color: #111; }

.phil-lead {
  font-size: 1.12rem !important;
  line-height: 1.55 !important;
  color: #222 !important;
  max-width: 36rem;
}
.phil-quote {
  margin: 2rem 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid #ececec;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  color: #111;
  text-align: center;
  font-style: normal;
}
.phil-quote span {
  display: block;
  margin-top: 0.55rem;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: #9a9a9a;
  text-transform: lowercase;
}

.compare-note {
  margin: 0 0 1rem;
  color: rgba(17,17,17,0.58);
  font-size: 0.92rem;
  line-height: 1.45;
}
.compare-wrap {
  overflow-x: auto;
  border: 1px solid #e4e4e0;
  margin: 0 0 1.25rem;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
  font-size: 0.78rem;
}
.compare-table th,
.compare-table td {
  border-bottom: 1px solid #ececec;
  padding: 0.7rem 0.75rem;
  text-align: left;
  vertical-align: top;
  line-height: 1.35;
}
.compare-table th {
  background: #f7f7f5;
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #555;
}
.compare-table th span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.65rem;
  letter-spacing: 0;
  text-transform: none;
  color: #9a9a9a;
  font-weight: 400;
}
.compare-table th.hi,
.compare-table td.hi {
  background: #111;
  color: #fff;
}
.compare-table th.hi span { color: rgba(255,255,255,0.55); }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-scores {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}
.compare-scores li {
  font-size: 0.9rem;
  line-height: 1.45;
  color: #333;
  border-top: 1px solid #ececec;
  padding-top: 0.55rem;
}

.price-try {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
}

@media (max-width: 800px) {
  .price-grid,
  .price-grid-friendly { grid-template-columns: 1fr; }
  .topnav ul { display: none; }
  .nav-toggle { display: block; }
  .topnav.open ul,
  .topnav.is-open ul,
  .topnav.nav-open ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1rem;
    border-bottom: 1px solid var(--line);
  }
}

/* Pitch deck — same white system */
.pitch-deck .deck {
  max-width: 780px;
  margin: 0 auto;
  padding: 6.5rem 1.25rem 4rem;
}
.pitch-deck .deck-slide {
  padding: 2.25rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
}
.pitch-deck .deck-slide:last-child { border-bottom: 0; }
.pitch-deck .deck-kicker {
  font-family: var(--display);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 0.85rem;
}
.pitch-deck .deck h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  letter-spacing: 0.14em;
  line-height: 1.05;
  margin-bottom: 1rem;
}
.pitch-deck .deck h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.pitch-deck .deck .lead {
  font-size: 1.2rem;
  line-height: 1.45;
  max-width: 34rem;
}
.pitch-deck .deck p,
.pitch-deck .deck li { font-size: 1.02rem; line-height: 1.5; color: #333; }
.pitch-deck .deck .muted { color: var(--muted); }
.pitch-deck .deck-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}
@media (max-width: 640px) {
  .pitch-deck .deck-grid { grid-template-columns: 1fr; }
}
.pitch-deck .deck-card {
  border: 1px solid var(--line);
  border-top: 1px solid #111;
  padding: 1rem 1.05rem;
  background: #fff;
}
.pitch-deck .deck-card h3 {
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  font-weight: 500;
}
.pitch-deck .deck table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 0.75rem;
}
.pitch-deck .deck th,
.pitch-deck .deck td {
  text-align: left;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.pitch-deck .deck th {
  font-family: var(--display);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  font-weight: 500;
}
.pitch-deck .deck .path {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 1rem 0;
}
.pitch-deck .deck .path span {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 0.3rem 0.5rem;
}
.pitch-deck .deck .path span.hot {
  border-color: #111;
  color: #111;
}
.pitch-deck .deck-line {
  font-family: var(--display);
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  letter-spacing: 0.04em;
  line-height: 1.4;
  max-width: 36rem;
}
.pitch-deck .deck-cta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.pitch-deck .deck-cta a {
  font-size: 0.78rem;
  padding: 0.65rem 1rem;
  border: 1px solid #111;
  text-decoration: none;
}
.pitch-deck .deck-cta a.primary {
  background: #111;
  color: #fff;
}
.pitch-deck .deck-cta a:hover { opacity: 0.55; }

/* Chat chrome — white, Cinzel brand */
.chat-app-body,
.chat-v6,
.chat-v7 {
  --ink: #111 !important;
  --moss: #111 !important;
  --bone: #fff !important;
  --paper: #fafafa !important;
  --muted: #333333 !important;
  --line: rgba(17,17,17,0.1) !important;
  background: #fff !important;
}
.chat-v6 .brand-mark,
.chat-v7 .brand-mark,
.sidebar-brand .brand-mark {
  font-family: var(--display) !important;
  font-weight: 500 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
}
.chat-v6 .chat-sidebar,
.chat-v7 .chat-sidebar {
  background: #fafafa !important;
  border-right: 1px solid var(--line) !important;
  backdrop-filter: none !important;
}
.chat-v7 .native-composer {
  background: #fff !important;
  border: 1px solid #e8e8e8 !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06) !important;
}
.chat-v7 .native-composer:focus-within {
  border-color: #0d9488 !important;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12) !important;
}
.chat-v7 .native-composer button#chatSend {
  background: #0d9488 !important;
  border-radius: 12px !important;
  color: #fff !important;
}
.chat-v7 .composer-attach {
  background: #111 !important;
  color: #f5f5f5 !important;
  border-radius: 12px !important;
}
.chat-v7 .composer-attach:hover,
.chat-v7 .composer-attach.is-open {
  background: #0d9488 !important;
  color: #fff !important;
}
.composer-brain-row,
.composer-note {
  display: none !important;
}
.composer-wrap.is-drop {
  outline: 2px dashed #0d9488;
  outline-offset: 4px;
  border-radius: 8px;
}
.chat-v6 .btn-solid,
.chat-v7 .btn-solid,
#btnNewChat.btn-solid {
  background: #0c1218 !important;
  border: 1px solid #0c1218 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  color: #fff !important;
}
.chat-v6 .btn-solid:hover,
.chat-v7 .btn-solid:hover,
#btnNewChat.btn-solid:hover {
  background: #1a2229 !important;
  border-color: #1a2229 !important;
}
.chat-empty h1,
.empty-hero h1 {
  font-family: var(--display) !important;
  font-weight: 500 !important;
  letter-spacing: 0.12em !important;
}
.prov-pop {
  border-top: 1px solid #111 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  border: 1px solid #e8e8e8 !important;
}
.prov-pop .prov-quote {
  background: #f7f7f7 !important;
  border-left: 1px solid #111 !important;
}

/* === BITTENSOR UNIFY v142 === */
/* Sparse white · black ink · no glow · unified product surfaces */

/* Desk rail — white instrument, not black-figure */
.chat-rail.desk-stage {
  background: #fff !important;
  color: #111 !important;
  border-left: 1px solid #e8e8e8 !important;
}
.desk-stage-head {
  border-bottom: 1px solid #e8e8e8 !important;
  background: #fff !important;
}
.desk-stage-head .rail-kicker {
  color: #999 !important;
  font-family: var(--font) !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  font-size: 0.62rem !important;
}
.desk-stage-head h2 {
  color: #111 !important;
  font-family: var(--display) !important;
  font-weight: 500 !important;
  letter-spacing: 0.1em !important;
}
.desk-stage-head .gate {
  border: 1px solid #e8e8e8 !important;
  background: #fafafa !important;
  color: #111 !important;
  font-family: var(--font) !important;
  letter-spacing: 0.06em !important;
  border-radius: 0 !important;
}
.desk-stage-head .gate.ok {
  color: #111 !important;
  border-color: #111 !important;
  background: #fff !important;
}
.desk-stage-head .gate.blocked {
  color: #111 !important;
  border-color: #111 !important;
  background: #f7f7f7 !important;
}
.desk-stage-head .btn-ghost { color: #6b6b6b !important; }
.desk-strip {
  border-bottom: 1px solid #e8e8e8 !important;
  background: #fafafa !important;
}
.desk-chip {
  border: 1px solid #e8e8e8 !important;
  background: #fff !important;
  color: #111 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.desk-chip:hover {
  border-color: #111 !important;
  transform: none !important;
  box-shadow: none !important;
}
.desk-chip em {
  color: #999 !important;
  font-family: var(--font) !important;
  letter-spacing: 0.1em !important;
}
.desk-chip strong { color: #111 !important; }
.desk-strip-status { color: #6b6b6b !important; }
.desk-scene-wrap { background: #fff !important; }
.desk-scene {
  background: #fafafa !important;
  border: 1px solid #e8e8e8 !important;
}
.desk-scene-floor {
  background: radial-gradient(ellipse at center, rgba(17,17,17,0.04), transparent 65%) !important;
}
.desk-scene-empty p {
  color: #111 !important;
  font-family: var(--display) !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
}
.desk-scene-empty span { color: #6b6b6b !important; }
.desk-legend span { color: #999 !important; }
.desk-scene-stats {
  color: #6b6b6b !important;
  font-family: var(--font) !important;
  letter-spacing: 0.04em !important;
}
.desk-sphere-guide { stroke: rgba(17,17,17,0.12) !important; }
.desk-sphere-guide.is-core { stroke: rgba(17,17,17,0.28) !important; }
.desk-float-label rect {
  fill: rgba(255,255,255,0.96) !important;
  stroke: rgba(17,17,17,0.2) !important;
}
.desk-float-label text { fill: #111 !important; }
.desk-float-cat { fill: #6b6b6b !important; font-family: var(--font) !important; }
.desk-detail, .desk-point-detail, .desk-source-card,
.chat-rail.desk-stage .desk-detail-panel,
#deskDetail {
  background: #fff !important;
  border: 0 !important;
  border-left: 1px solid #e2e6e3 !important;
  color: #111 !important;
  box-shadow: -10px 0 28px rgba(12, 18, 24, 0.06) !important;
}
#deskDetailKind, .desk-detail-kind {
  color: #999 !important;
  font-family: var(--font) !important;
}
#deskDetailTitle {
  color: #111 !important;
  font-family: var(--display) !important;
}
.desk-zoom button {
  background: #fff !important;
  border-color: #e8e8e8 !important;
  color: #111 !important;
  border-radius: 0 !important;
}
.desk-zoom button:hover { border-color: #111 !important; }
#deskZoomLabel { color: #6b6b6b !important; }

/* Desk scan status bar — under header strip (in flow, always visible while open) */
.chat-rail.desk-stage > .desk-progress,
#deskProgress.desk-progress {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  top: auto !important;
  transform: none !important;
  z-index: 5 !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0.75rem 0.95rem 0.7rem !important;
  background: #f4f5f4 !important;
  border: 0 !important;
  border-bottom: 1px solid #e2e6e3 !important;
  text-align: left !important;
  pointer-events: none !important;
  box-shadow: none !important;
}
.desk-progress[hidden] { display: none !important; }
.desk-progress.is-live,
#deskProgress.desk-progress.is-live {
  display: block !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 40 !important;
  flex: 0 0 auto !important;
}
.desk-progress-top {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
  margin-bottom: 0.45rem !important;
}
.desk-progress-kicker {
  font-family: var(--display);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0c1218;
  margin: 0;
  font-weight: 650;
}
.desk-progress-elapsed {
  font-size: 0.84rem !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: 0.04em !important;
  color: #0c1218 !important;
  font-weight: 650 !important;
}
.desk-progress-track {
  height: 5px;
  background: #e2e6e3;
  overflow: hidden;
  margin-bottom: 0.55rem;
  position: relative;
}
.desk-progress-bar {
  height: 100%;
  width: 0%;
  background: #0c1218;
  transition: width 0.8s linear;
}
.desk-progress.is-live .desk-progress-track::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  animation: deskScanShine 1.6s linear infinite;
}
.desk-progress-stages {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 0.25rem;
  margin: 0 0 0.45rem;
  padding: 0;
}
.desk-progress-stages li {
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #bbb;
  flex: 1;
  text-align: center;
  position: relative;
  padding-top: 0.45rem;
}
.desk-progress-stages li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 0;
  background: #ddd;
  transform: translateX(-50%);
}
.desk-progress-stages li.is-done { color: #111; }
.desk-progress-stages li.is-done::before { background: #111; }
.desk-progress-stages li.is-active { color: #111; }
.desk-progress-stages li.is-active::before {
  background: #111;
  box-shadow: 0 0 0 3px rgba(17,17,17,0.12);
}
.desk-progress-label {
  margin: 0;
  font-size: 0.74rem;
  color: #333;
  letter-spacing: 0.02em;
}
.desk-scene-wrap.has-progress .desk-chrome,
.desk-scene-wrap.is-running .desk-chrome {
  display: none !important;
}
.desk-edge-btn.is-scanning {
  border-color: #0c1218 !important;
  min-height: 4.5rem !important;
  padding-bottom: 0.35rem !important;
}
.desk-edge-scan {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 0.28rem;
  width: 100%;
  margin-top: 0.35rem;
  pointer-events: none;
}
.desk-edge-btn.is-scanning .desk-edge-scan,
.desk-edge-btn.is-scanning #deskEdgeScan {
  display: flex !important;
}
.desk-edge-scan[hidden] { display: none !important; }
.desk-edge-btn.is-scanning .desk-edge-scan[hidden] { display: flex !important; }
.desk-edge-scan-bar {
  display: block;
  height: 3px;
  width: 8%;
  background: #0c1218;
  transition: width 0.8s linear;
}
.desk-edge-scan-text {
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0c1218;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Fixed viewport toast — survives chat-main being display:none when Desk opens */
.desk-live-toast,
#deskLiveToast.desk-live-toast {
  position: fixed !important;
  left: auto !important;
  right: max(0.75rem, env(safe-area-inset-right, 0px)) !important;
  bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px)) !important;
  width: min(22rem, calc(100vw - 1.5rem)) !important;
  z-index: 12000 !important;
  padding: 0.7rem 0.8rem 0.65rem !important;
  background: #fff !important;
  border: 1px solid #e2e6e3 !important;
  box-shadow: 0 12px 32px rgba(12, 18, 24, 0.16) !important;
  pointer-events: auto !important;
}
.desk-live-toast[hidden] { display: none !important; }
.desk-live-toast.is-live,
#deskLiveToast.is-live {
  display: block !important;
}
.desk-live-toast-top {
  display: flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
  margin-bottom: 0.4rem !important;
}
.desk-live-toast-top strong {
  font-size: 0.72rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #0c1218 !important;
}
.desk-live-toast-top span {
  margin-left: auto !important;
  font-size: 0.78rem !important;
  font-variant-numeric: tabular-nums !important;
  color: #0c1218 !important;
  font-weight: 650 !important;
}
.desk-live-toast-open {
  border: 1px solid #0c1218 !important;
  background: #0c1218 !important;
  color: #fff !important;
  font: inherit !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  padding: 0.28rem 0.45rem !important;
  cursor: pointer !important;
}
.desk-live-toast-track {
  height: 4px !important;
  background: #e8ebe8 !important;
  margin-bottom: 0.35rem !important;
  overflow: hidden !important;
}
.desk-live-toast-track i {
  display: block !important;
  height: 100% !important;
  width: 4% !important;
  background: #0c1218 !important;
  transition: width 0.7s linear !important;
}
.desk-live-toast p {
  margin: 0 !important;
  font-size: 0.74rem !important;
  color: #333 !important;
}
@keyframes deskScanShine {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}
@keyframes deskEdgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

/* Chat chrome polish */
.chat-v6 .chat-main,
.chat-v7 .chat-main { background: #fff !important; }
.chat-v6 .chat-topbar,
.chat-v7 .chat-topbar {
  background: rgba(255,255,255,0.94) !important;
  border-bottom: 1px solid #e8e8e8 !important;
  backdrop-filter: blur(8px) !important;
}
.model-picker-btn, .topbar-brand-chip {
  border-radius: 0 !important;
  border-color: #e8e8e8 !important;
}
.topbar-brand-chip .brand-mark {
  font-family: var(--display) !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
}

/* === NO OVERLAP LOCK v143 === */
.chat-app,
.chat-app-3,
.chat-v6,
.chat-v7 {
  overflow: hidden !important;
  height: 100vh !important;
  max-height: 100dvh !important;
}
.chat-main {
  min-width: 0 !important;
  overflow: hidden !important;
  position: relative !important;
  z-index: 1 !important;
}
.chat-stream {
  min-width: 0 !important;
  overflow: auto !important;
  position: relative !important;
}

/* Side-by-side desk — fill to the right edge (no dead white strip) */
.chat-app-3.rail-open {
  grid-template-columns: minmax(0, 180px) minmax(280px, 1fr) minmax(420px, 1.05fr) !important;
}
.chat-v6.sidebar-collapsed.rail-open,
.chat-v7.sidebar-collapsed.rail-open {
  grid-template-columns: 0 minmax(280px, 1fr) minmax(460px, 1.15fr) !important;
}
.chat-rail,
.chat-rail.desk-stage {
  min-width: 0 !important;
  max-width: none !important;
  width: 100% !important;
  justify-self: stretch !important;
  position: relative !important;
  inset: auto !important;
  z-index: 2 !important;
  background: #fff !important;
  opacity: 1;
  box-shadow: none !important;
}
.chat-app-3:not(.rail-open) .chat-rail,
.chat-app:not(.rail-open) .chat-rail.desk-stage {
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  border: 0 !important;
  overflow: hidden !important;
}

/* Kill full-screen / floating rail overlays from older CSS */
@media (max-width: 1100px) {
  .chat-app-3.rail-open,
  .chat-v6.sidebar-collapsed.rail-open,
  .chat-v7.sidebar-collapsed.rail-open {
    grid-template-columns: minmax(0, 200px) minmax(0, 1fr) 0 !important;
  }
  .chat-v6.sidebar-collapsed.rail-open {
    grid-template-columns: 0 minmax(0, 1fr) 0 !important;
  }
  .chat-app-3.rail-open .chat-rail,
  .chat-app-3.rail-open .chat-rail.desk-stage {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: min(560px, 94vw) !important;
    max-width: 560px !important;
    z-index: 60 !important;
    background: #fff !important;
    border-left: 1px solid #e8e8e8 !important;
    box-shadow: -8px 0 32px rgba(0,0,0,0.06) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}
@media (max-width: 900px) {
  .chat-app-3.rail-open .chat-rail.desk-stage {
    inset: 0 0 0 auto !important;
    width: min(100vw, 560px) !important;
    max-width: 100vw !important;
  }
}

/* Provenance stays inside chat column, under menus, over messages */
.prov-pop {
  position: fixed !important;
  z-index: 55 !important;
  max-width: min(360px, 92vw) !important;
  box-shadow: 0 8px 28px rgba(0,0,0,0.08) !important;
  border: 1px solid #e8e8e8 !important;
  border-top: 2px solid #111 !important;
  border-radius: 0 !important;
  background: #fff !important;
}
.arch-strip,
#archStrip,
#archStrip[hidden],
.arch-strip[hidden] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Artifacts never sit under/over desk at once */
.chat-app-3.rail-open .artifacts-panel {
  display: none !important;
}

/* Desk detail — full scene height (inside .desk-scene-wrap, not over Trail/Canvas) */
.desk-scene-wrap {
  position: relative !important;
}
.desk-detail,
#deskDetail {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  width: min(440px, 52%) !important;
  max-width: min(440px, 52%) !important;
  height: auto !important;
  max-height: none !important;
  z-index: 8 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border-left: 1px solid #e2e6e3 !important;
  box-shadow: -10px 0 28px rgba(12, 18, 24, 0.06) !important;
  overflow: auto !important;
}
/* Keep graph in the free left band — don't draw under the dossier */
.desk-scene-wrap.has-dossier .desk-scene,
.desk-scene-wrap.has-dossier .desk-chrome,
.desk-scene-wrap.has-dossier .desk-zoom,
.desk-scene-wrap.has-dossier .desk-scene-floor {
  margin-right: min(440px, 52%) !important;
  transition: margin-right 0.18s ease;
}
.desk-scene-wrap.has-dossier .desk-scene {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}
.desk-scene-wrap.has-dossier .desk-scene::before {
  mask-image: radial-gradient(ellipse 78% 62% at 38% 45%, #000 22%, transparent 78%) !important;
}
.desk-scene-wrap.has-dossier .desk-scene-floor {
  inset: 10% 52% 6% 6% !important;
  transform-origin: 32% 80% !important;
}
.desk-strip,
.desk-stage-head,
#btnDeskToCanvas {
  position: relative !important;
  z-index: 12 !important;
  pointer-events: auto !important;
}
.desk-chip {
  cursor: pointer !important;
  pointer-events: auto !important;
}

/* Structured topbar clusters */
.chat-topbar {
  display: flex !important;
  align-items: stretch !important;
  gap: 0.55rem !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 0.45rem 0.7rem !important;
  min-height: 3.65rem !important;
}
.chat-topbar .topbar-nav-btn {
  align-self: center !important;
  flex: 0 0 auto !important;
}
.topbar-groups {
  display: flex !important;
  align-items: stretch !important;
  gap: 0 !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
.topbar-group {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 0.18rem !important;
  padding: 0 0.7rem !important;
  border-left: 1px solid #e8ecea !important;
  min-width: 0 !important;
}
.topbar-group:first-child {
  border-left: 0 !important;
  padding-left: 0.15rem !important;
}
.topbar-group-label {
  margin: 0 !important;
  font-size: 0.56rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.11em !important;
  text-transform: uppercase !important;
  color: #8a9199 !important;
  font-family: "IBM Plex Mono", ui-monospace, monospace !important;
  line-height: 1 !important;
}
.topbar-group-row {
  display: flex !important;
  align-items: stretch !important;
  gap: 0.3rem !important;
  min-width: 0 !important;
}
.topbar-group--model {
  flex: 1 1 12rem !important;
  max-width: 18rem !important;
}
.topbar-group--planes {
  flex: 1 1 16rem !important;
  max-width: 22rem !important;
  margin-left: auto !important;
}
.topbar-group--net { flex: 0 0 auto !important; }
.chat-topbar .topbar-right {
  margin-left: 0 !important;
  flex: 0 0 auto !important;
  align-self: center !important;
}

/* Work presets + plane toggles v255 */
.work-preset-wrap {
  position: relative !important;
  flex: 0 0 auto !important;
  z-index: 5 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 0.3rem !important;
}
.opt-go-btn,
.opt-toggle-btn {
  border-color: #d7dcd8 !important;
  background: #fff !important;
}
.opt-toggle-btn.is-on {
  border-color: #0c1218 !important;
  background: #0c1218 !important;
  box-shadow: none !important;
  color: #fff !important;
}
.opt-toggle-btn.is-on.is-waiting {
  border-color: #6b7280 !important;
  background: #374151 !important;
}
.opt-toggle-btn.is-on #optModelsLabel {
  color: #fff !important;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}
#modelPickerLabel.is-opt-flash,
.plane-picker.is-opt-flash {
  animation: optModelFlash 0.9s ease;
}
@keyframes optModelFlash {
  0%, 100% { opacity: 1; }
  35% { opacity: 0.35; }
}
.opt-toggle-btn.is-busy,
.opt-go-btn.is-busy {
  border-color: #0c1218 !important;
  background: rgba(12, 18, 24, 0.08) !important;
  opacity: 0.75 !important;
  cursor: wait !important;
}
.opt-toggle-btn:disabled,
.opt-go-btn:disabled { opacity: 0.65 !important; cursor: wait !important; }
/* Beat .composer.glow > button (#0c1218) — Optimize must stay light */
.composer-opt-go,
.chat-v6 .composer.glow > button.composer-opt-go,
.chat-v7 .composer.glow > button.composer-opt-go,
.chat-v6 .native-composer > button.composer-opt-go,
.chat-v7 .native-composer > button.composer-opt-go,
body.chat-app-body .composer > button.composer-opt-go,
#btnComposerOptimize {
  flex: 0 0 auto !important;
  align-self: flex-end !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 2.2rem !important;
  margin: 0 0.15rem 0.35rem 0 !important;
  padding: 0.45rem 0.85rem !important;
  border: 1px solid #cfd6d4 !important;
  border-radius: 999px !important;
  background: #fff !important;
  background-image: none !important;
  color: #0d6e6a !important;
  font-size: 0.72rem !important;
  font-weight: 650 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  box-shadow: none !important;
  filter: none !important;
  cursor: pointer !important;
  font-family: inherit !important;
  opacity: 1 !important;
}
.composer-opt-go:hover,
.chat-v6 .composer.glow > button.composer-opt-go:hover,
.chat-v7 .composer.glow > button.composer-opt-go:hover,
#btnComposerOptimize:hover {
  border-color: #0d6e6a !important;
  background: rgba(13, 110, 106, 0.08) !important;
  color: #0d6e6a !important;
  filter: none !important;
}
.composer-opt-go.is-busy,
.composer-opt-go:disabled,
#btnComposerOptimize:disabled {
  opacity: 0.6 !important;
  cursor: wait !important;
}
.composer-opt-go.is-on,
#btnComposerOptimize.is-on {
  border-color: #0d6e6a !important;
  background: rgba(13, 110, 106, 0.12) !important;
  color: #0a5c58 !important;
}
.work-preset-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.3rem !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 2.15rem !important;
  height: 2.15rem !important;
  padding: 0 0.7rem !important;
  border: 1px solid #e2e6e3 !important;
  border-radius: 8px !important;
  background: #fff !important;
  cursor: pointer !important;
  font: inherit !important;
  color: #0c1218 !important;
  text-align: center !important;
  white-space: nowrap !important;
}
.work-preset-btn small {
  display: none !important;
}
.work-preset-btn span:not(.caret) {
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.work-preset-btn .caret { color: #8a9199 !important; font-size: 0.7rem !important; }
.work-preset-menu {
  position: absolute !important;
  top: calc(100% + 0.4rem) !important;
  left: 0 !important;
  min-width: 16.5rem !important;
  padding: 0.4rem !important;
  background: #fff !important;
  border: 1px solid #e2e6e3 !important;
  box-shadow: 0 14px 40px rgba(12, 18, 24, 0.12) !important;
  z-index: 90 !important;
  display: grid !important;
  gap: 0.15rem !important;
}
.work-preset-menu[hidden] { display: none !important; }
.model-opt-panel {
  min-width: 19rem !important;
  max-width: min(22.5rem, 94vw) !important;
  padding: 0 !important;
  gap: 0 !important;
  overflow: hidden !important;
}
.model-opt-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
  padding: 0.75rem 0.85rem 0.65rem !important;
  border-bottom: 1px solid #eceff1 !important;
}
.model-opt-kicker {
  margin: 0 0 0.2rem !important;
  font-size: 0.58rem !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: #8a9199 !important;
}
.model-opt-title {
  display: block !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: #0c1218 !important;
}
.model-opt-x {
  border: 1px solid #e2e6e3 !important;
  background: #fff !important;
  width: 1.85rem !important;
  height: 1.85rem !important;
  border-radius: 0 !important;
  font-size: 1.1rem !important;
  line-height: 1 !important;
  color: #5a636a !important;
  cursor: pointer !important;
}
.model-opt-field,
.model-opt-block,
.model-opt-ai,
.model-opt-go,
.model-opt-status {
  margin: 0 !important;
  padding: 0.7rem 0.85rem !important;
}
.model-opt-field {
  display: grid !important;
  gap: 0.4rem !important;
  border-bottom: 1px solid #f0f2f1 !important;
}
.model-opt-field > span,
.model-opt-label {
  font-size: 0.62rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: #8a9199 !important;
}
.model-opt-panel textarea {
  width: 100% !important;
  border: 1px solid #e2e6e3 !important;
  border-radius: 0 !important;
  padding: 0.6rem 0.7rem !important;
  font: inherit !important;
  font-size: 0.88rem !important;
  resize: vertical !important;
  min-height: 4.5rem !important;
  background: #fafbfa !important;
  color: #0c1218 !important;
}
.model-opt-block {
  display: grid !important;
  gap: 0.4rem !important;
  border-bottom: 1px solid #f0f2f1 !important;
}
.model-opt-routes {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.3rem !important;
}
.model-opt-route {
  border: 1px solid #e2e6e3 !important;
  background: #fff !important;
  border-radius: 0 !important;
  padding: 0.45rem 0.4rem !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: #3d454c !important;
  cursor: pointer !important;
}
.model-opt-route.is-on {
  background: #0c1218 !important;
  border-color: #0c1218 !important;
  color: #fff !important;
}
.model-opt-ai {
  display: grid !important;
  grid-template-columns: auto 1fr !important;
  gap: 0.55rem !important;
  align-items: start !important;
  border-bottom: 1px solid #f0f2f1 !important;
  font-size: 0.84rem !important;
  color: #0c1218 !important;
  cursor: pointer !important;
}
.model-opt-ai strong {
  display: block !important;
  font-size: 0.86rem !important;
}
.model-opt-ai em {
  display: block !important;
  font-style: normal !important;
  font-size: 0.72rem !important;
  color: #6b737a !important;
  margin-top: 0.12rem !important;
}
.model-opt-go {
  width: calc(100% - 1.7rem) !important;
  margin: 0.75rem 0.85rem 0.85rem !important;
  padding: 0.7rem 0.85rem !important;
  border: 1px solid #0c1218 !important;
  background: #0c1218 !important;
  color: #fff !important;
  font: inherit !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  cursor: pointer !important;
}
.model-opt-go:hover { opacity: 0.92 !important; }
.model-opt-go:disabled { opacity: 0.5 !important; cursor: wait !important; }
.model-opt-status {
  padding-top: 0 !important;
  padding-bottom: 0.85rem !important;
  font-size: 0.74rem !important;
  color: #3d454c !important;
  line-height: 1.4 !important;
}

/* Topbar planes: one row inside Planes group */
.desk-planes,
.topbar-group-row.desk-planes {
  display: flex !important;
  flex-wrap: wrap !important;
  overflow: visible !important;
  max-width: none !important;
  width: 100% !important;
  flex: 1 1 auto !important;
  order: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  gap: 0.28rem !important;
  align-items: stretch !important;
}
.desk-planes[hidden] { display: none !important; }
.plane-picker {
  flex: 1 1 4.2rem !important;
  min-width: 3.6rem !important;
  max-width: none !important;
  min-height: 2.15rem !important;
  height: auto !important;
  padding: 0.2rem 0.45rem !important;
  border-radius: 8px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 0.05rem !important;
}
.plane-picker small {
  font-size: 0.54rem !important;
  letter-spacing: 0.08em !important;
}
.plane-picker span {
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  max-width: 100% !important;
}

/* Scientific worker-tree histogram (precision scraper) */
.workforce-panel {
  margin: 0 0.75rem 0.65rem;
  padding: 0.75rem 0.85rem 0.9rem;
  border: 1px solid #e2e6ea;
  background: #fafbfa;
  border-radius: 12px;
}
.workforce-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.workforce-kicker {
  margin: 0;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0d6e6a;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
.workforce-head h3 {
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
  font-weight: 650;
  color: #111;
}
.workforce-meta {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  color: #6b6b6b;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
.workforce-chart { min-height: 2rem; }
.wf-hist-svg { display: block; max-width: 100%; height: auto; }
.evidence-panel .evidence-body {
  display: grid;
  gap: 0.5rem;
}
.evidence-panel .ev-con { color: #8a3030; }
.evidence-panel .ev-neg { color: #5a4540; }
.evidence-panel .ev-prim a { color: #0d6e6a; }
.workforce-tree {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.5rem;
  margin-top: 0.65rem;
}
.wf-tree-card {
  border: 1px solid #e2e6ea;
  background: #fff;
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
}
.wf-tree-card header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  align-items: baseline;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
}
.wf-tree-card header strong {
  color: #111;
  flex: 1 1 100%;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.wf-tree-card header span { color: #6b6b6b; }
.wf-tree-card header a { color: #0d6e6a; margin-left: auto; }
.workforce-chart .dim { margin: 0.35rem 0; font-size: 0.75rem; color: #6b6b6b; }
.wf-tree-list li.dim {
  display: block;
  border: 0;
  color: #8a9199;
  padding: 0.25rem 0;
}
.wf-tree-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.2rem;
}
.wf-tree-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.35rem;
  font-size: 0.7rem;
  padding: 0.15rem 0;
  border-top: 1px solid #f0f2f4;
}
.wf-tree-list .wf-role { color: #333; text-transform: capitalize; }
.wf-tree-list strong {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 550;
  color: #111;
}
.wf-tree-list em { color: #8a9199; font-style: normal; font-size: 0.64rem; }

/* Web / Scraper mode chips in chat topbar */
.net-modes,
.topbar-group-row.net-modes {
  display: inline-flex !important;
  align-items: stretch !important;
  gap: 0.3rem !important;
  flex: 0 0 auto !important;
}
.net-mode-chip {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  min-height: 2.15rem !important;
  height: 2.15rem !important;
  padding: 0 0.75rem !important;
  border: 1px solid #d8dde2 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #111 !important;
  cursor: pointer !important;
  font-family: inherit !important;
  line-height: 1.15 !important;
  transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease !important;
}
.net-mode-chip small { display: none !important; }
.net-mode-chip span {
  font-size: 0.78rem !important;
  font-weight: 650 !important;
  color: #111 !important;
}
.net-mode-chip:hover {
  border-color: #9aa3ad !important;
}
.net-mode-chip.is-on {
  border-color: #1f4e3d !important;
  background: rgba(31, 78, 61, 0.08) !important;
  box-shadow: inset 0 0 0 1px rgba(31, 78, 61, 0.18) !important;
}
.net-mode-chip.is-on small { color: #1f4e3d !important; }
.net-mode-chip.net-mode-scraper.is-on {
  border-color: #0d6e6a !important;
  background: rgba(13, 110, 106, 0.1) !important;
  box-shadow: inset 0 0 0 1px rgba(13, 110, 106, 0.22) !important;
}
.net-mode-chip.net-mode-scraper.is-on small { color: #0d6e6a !important; }
.net-mode-chip:disabled,
.net-modes.is-private .net-mode-chip {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
}
@media (max-width: 820px) {
  .chat-topbar .net-modes {
    order: 19;
    flex: 1 1 auto !important;
  }
  .net-mode-chip { flex: 1 1 0 !important; }
}
.plane-picker.is-off {
  opacity: 0.55 !important;
  background: #f4f5f4 !important;
  border-style: dashed !important;
}
.plane-picker.is-off span {
  color: #8a9199 !important;
  font-weight: 500 !important;
}
.chat-v6 .model-picker-wrap,
.chat-v7 .model-picker-wrap,
.topbar-group--model .model-picker-wrap {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: none !important;
  width: 100% !important;
}
.chat-v6 .model-picker-btn,
.chat-v7 .model-picker-btn,
.topbar-group--model .model-picker-btn {
  width: 100% !important;
  min-height: 2.15rem !important;
  height: 2.15rem !important;
  padding: 0 0.65rem !important;
  border-radius: 8px !important;
  border: 1px solid #e2e6e3 !important;
  background: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
}
.topbar-group--model .model-picker-meta small { display: none !important; }
.topbar-group--model #modelPickerLabel {
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  max-width: 100% !important;
}

/* Kill legacy full-width planes row — planes live in the Planes cluster */
.chat-v6 .desk-planes,
.chat-v7 .desk-planes,
.chat-v6 .topbar-group-row.desk-planes,
.chat-v7 .topbar-group-row.desk-planes {
  flex: 1 1 auto !important;
  order: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: 0 !important;
  grid-template-columns: none !important;
}

@media (max-width: 1100px) {
  .topbar-group--planes { max-width: 26rem !important; }
}
@media (max-width: 920px) {
  .chat-v6 .chat-topbar,
  .chat-v7 .chat-topbar,
  body.chat-app-body .chat-topbar {
    flex-wrap: wrap !important;
    overflow-x: visible !important;
  }
  .topbar-groups {
    flex: 1 1 100% !important;
    flex-wrap: wrap !important;
    row-gap: 0.45rem !important;
  }
  .topbar-group {
    border-left: 0 !important;
    padding: 0 !important;
  }
  .topbar-group--stack { flex: 0 0 auto !important; }
  .topbar-group--model { flex: 1 1 12rem !important; max-width: none !important; }
  .topbar-group--net { flex: 0 0 auto !important; }
  .topbar-group--planes {
    flex: 1 1 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    padding-top: 0.35rem !important;
    border-top: 1px solid #eef1f0 !important;
  }
}

/* === CONTRAST BLACK v146 === */
:root {
  --ink: #111111 !important;
  --muted: #333333 !important;
  --line: #e8e8e8 !important;
}
html, body {
  background: #ffffff !important;
  color: #111111 !important;
}
.dim, .muted, .page-byline, .page-body,
.fact-list span, .site-footer, .site-footer p,
.chat-v6 .dim, .chat-v7 .dim {
  color: #333 !important;
}
.page-title, h1, h2, h3 { color: #111 !important; }
a { color: #111; }
.topnav a { color: #111 !important; opacity: 1 !important; }
.topnav a:hover { opacity: 0.55 !important; }

/* Desk detail — all text black on white (full-height side dossier) */
.desk-detail,
#deskDetail,
.desk-point-detail,
.desk-source-card,
.chat-rail.desk-stage .desk-detail-panel {
  background: #fff !important;
  border: 0 !important;
  border-left: 1px solid #e2e6e3 !important;
  color: #111 !important;
  box-shadow: -10px 0 28px rgba(12, 18, 24, 0.06) !important;
}
.desk-detail *,
#deskDetail * {
  color: inherit;
}
#deskDetailKind,
.desk-detail-kicker,
.desk-detail-kind {
  color: #444 !important;
  opacity: 1 !important;
}
#deskDetailTitle,
.desk-detail h3 {
  color: #111 !important;
  font-family: var(--display) !important;
}
#deskDetailBody,
.desk-detail p,
.desk-vote p,
.desk-detail-links p {
  color: #222 !important;
}
.desk-detail a,
#deskDetailLink,
.desk-detail-links button,
.desk-detail-links button strong {
  color: #111 !important;
  opacity: 1 !important;
}
.desk-detail-links button em,
.desk-vote-model,
.desk-detail-meta span {
  color: #333 !important;
  background: #f0f0f0 !important;
  opacity: 1 !important;
}
.desk-detail-meta span {
  border: 1px solid #e0e0e0;
  border-radius: 0 !important;
}
.desk-vote {
  border-top: 1px solid #e8e8e8 !important;
  margin-top: 0.55rem;
  padding-top: 0.45rem;
}
.desk-vote .gate,
.desk-detail-votes .gate,
.desk-vote strong {
  color: #111 !important;
  border-color: #111 !important;
  background: #fff !important;
}
.desk-legend span {
  color: #333 !important;
}
/* Keep category colors — do not force all markers black */
.desk-legend span::before {
  box-shadow: none !important;
}
.desk-legend .lg-desk::before { background: #c9a227 !important; color: #c9a227 !important; }
.desk-legend .lg-claim-ok::before { background: #12a37a !important; color: #12a37a !important; }
.desk-legend .lg-claim-bad::before { background: #e24b2d !important; color: #e24b2d !important; }
.desk-legend .lg-claim::before { background: #6b7c8f !important; color: #6b7c8f !important; }
.desk-legend .lg-point::before { background: #5a9e45 !important; color: #5a9e45 !important; }
.desk-legend .lg-counter::before { background: #d95b2b !important; color: #d95b2b !important; }
.desk-legend .lg-src-wiki::before { background: #2f7fd6 !important; color: #2f7fd6 !important; }
.desk-legend .lg-src-news::before { background: #d4891a !important; color: #d4891a !important; }
.desk-legend .lg-src-web::before { background: #1aa89a !important; color: #1aa89a !important; }
.desk-legend .lg-link-strong::before {
  background: #12a37a !important;
  border-radius: 0 !important;
  width: 0.7rem !important;
  height: 2px !important;
  box-shadow: none !important;
}
.desk-legend .lg-link-soft::before {
  background: repeating-linear-gradient(90deg, #6b7c8f 0 3px, transparent 3px 6px) !important;
  border-radius: 0 !important;
  width: 0.7rem !important;
  height: 2px !important;
  box-shadow: none !important;
}
.desk-legend .lg-cred::before {
  background: #eef6f1 !important;
  border: 1px solid #5a8f72 !important;
  box-shadow: none !important;
}
.desk-strip-status,
.desk-scene-empty span,
.desk-scene-stats,
.desk-progress-label,
.desk-chip em,
.desk-stage-head .rail-kicker {
  color: #333 !important;
}
.desk-float-label text { fill: #111 !important; }
.desk-float-cat { fill: #333 !important; }

/* Graph dots — high contrast on white */
.chat-rail.desk-stage {
  background: #fff !important;
  color: #111 !important;
}
.desk-scene {
  background: #fafafa !important;
  border: 1px solid #e8e8e8 !important;
}

/* Chat chrome secondary text */
.chat-v6, .chat-v7, .chat-app-body {
  --muted: #333 !important;
  color: #111 !important;
  background: #fff !important;
}
.msg-meta, .brand-sub, .empty-lead, .empty-kicker {
  color: #333 !important;
}
.prov-pop, .prov-pop p, .prov-pop li, .prov-pop em {
  color: #222 !important;
}
.prov-pop h3, .prov-pop strong { color: #111 !important; }
.prov-hint { color: #444 !important; }

/* Pitch / pages */
.pitch-deck .deck .muted,
.pitch-deck .deck-kicker { color: #333 !important; }

/* === DESK BIG NEAT v149 === */
.chat-rail.desk-stage {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  height: 100% !important;
  background: #fff !important;
  border-left: 1px solid #e8e8e8 !important;
}
.desk-stage-head {
  padding: 0.7rem 0.9rem 0.55rem !important;
  flex: 0 0 auto !important;
}
.desk-stage-head h2 {
  font-size: 1.05rem !important;
  letter-spacing: 0.1em !important;
}
.desk-strip {
  padding: 0.5rem 0.85rem !important;
  gap: 0.35rem !important;
  align-items: center !important;
  flex: 0 0 auto !important;
}
.desk-strip-status {
  margin-left: auto !important;
  max-width: none !important;
  flex: 1 1 auto !important;
  text-align: right !important;
  font-size: 0.7rem !important;
  color: #333 !important;
  font-family: var(--font) !important;
}
.desk-scene-wrap {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0.45rem 0.55rem 0.55rem !important;
  background: #fff !important;
}
.desk-scene-floor { display: none !important; }
.desk-scene {
  flex: 1 1 auto !important;
  min-height: min(62vh, 640px) !important;
  height: 100% !important;
  border-radius: 0 !important;
  border: 1px solid #e8e8e8 !important;
  background: #fafafa !important;
  box-shadow: none !important;
  overflow: hidden !important;
}
.desk-scene::before,
.desk-scene::after {
  opacity: 0.25 !important;
  background-image:
    linear-gradient(rgba(17,17,17,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,17,17,0.03) 1px, transparent 1px) !important;
  background-size: 32px 32px !important;
  mask-image: none !important;
  animation: none !important;
  background: none !important;
}
.desk-scene::before {
  background-image:
    linear-gradient(rgba(17,17,17,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,17,17,0.03) 1px, transparent 1px) !important;
  background-size: 32px 32px !important;
  opacity: 0.55 !important;
}
.desk-scene-svg {
  height: 100% !important;
  min-height: min(58vh, 600px) !important;
}
.desk-chrome {
  position: absolute !important;
  left: 0.75rem !important;
  right: 0.75rem !important;
  bottom: 0.75rem !important;
  z-index: 3 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.55rem !important;
  padding: 0.75rem 0.95rem 0.8rem !important;
  background: #fff !important;
  border: 1px solid #e2e6e3 !important;
  border-radius: 0 !important;
  box-shadow: 0 6px 20px rgba(12, 18, 24, 0.05) !important;
}
.desk-scene-stats {
  position: static !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 2 !important;
  margin: 0 !important;
  padding: 0.5rem 0 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid #ecefed !important;
  color: #4a5550 !important;
  font-size: 0.68rem !important;
  line-height: 1.45 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  text-align: left !important;
}
.desk-legend {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  backdrop-filter: none !important;
  color: #3a4540 !important;
  gap: 0.5rem 0.95rem !important;
  font-size: 0.68rem !important;
  line-height: 1.4 !important;
}
.desk-legend span { color: #333 !important; }
.desk-legend span::before {
  box-shadow: none !important;
  border-radius: 0 !important;
}
.desk-legend .lg-desk::before { background: #c9a227 !important; }
.desk-legend .lg-claim-ok::before { background: #12a37a !important; }
.desk-legend .lg-claim-bad::before { background: #e24b2d !important; }
.desk-legend .lg-claim::before { background: #6b7c8f !important; }
.desk-legend .lg-point::before { background: #5a9e45 !important; }
.desk-legend .lg-counter::before { background: #d95b2b !important; }
.desk-legend .lg-src-wiki::before { background: #2f7fd6 !important; }
.desk-legend .lg-src-news::before { background: #d4891a !important; }
.desk-legend .lg-src-web::before { background: #1aa89a !important; }
.desk-legend .lg-link-strong::before {
  background: #12a37a !important;
  width: 0.7rem !important;
  height: 2px !important;
}
.desk-legend .lg-link-soft::before {
  background: repeating-linear-gradient(90deg, #6b7c8f 0 3px, transparent 3px 6px) !important;
  width: 0.7rem !important;
  height: 2px !important;
}
.desk-legend .lg-cred::before {
  background: #eef6f1 !important;
  border: 1px solid #5a8f72 !important;
}
.desk-zoom {
  top: 0.65rem !important;
  right: 0.65rem !important;
  padding: 0.2rem !important;
  background: #fff !important;
  border: 1px solid #e8e8e8 !important;
  border-radius: 0 !important;
  backdrop-filter: none !important;
}
.desk-zoom button {
  width: 1.85rem !important;
  height: 1.85rem !important;
  background: #fff !important;
  border: 1px solid #e8e8e8 !important;
  color: #111 !important;
  border-radius: 0 !important;
}
.desk-zoom button:hover {
  border-color: #111 !important;
  background: #fafafa !important;
}
.desk-zoom span,
#deskZoomLabel {
  color: #333 !important;
  min-width: 2.8rem !important;
}
.desk-detail,
#deskDetail {
  width: min(440px, 92%) !important;
  max-height: none !important;
  height: 100% !important;
}

@media (min-width: 1400px) {
  .chat-app-3.rail-open {
    grid-template-columns: minmax(0, 200px) minmax(320px, 1fr) minmax(480px, 1.1fr) !important;
  }
  .chat-v6.sidebar-collapsed.rail-open,
  .chat-v7.sidebar-collapsed.rail-open {
    grid-template-columns: 0 minmax(320px, 1fr) minmax(520px, 1.2fr) !important;
  }
  .chat-rail.desk-stage {
    max-width: none !important;
    width: 100% !important;
  }
}

/* === APP TOPNAV CHAT v152 === */
.topnav-app {
  position: relative !important;
  background: #fff !important;
  border-bottom: 1px solid #e8e8e8 !important;
  backdrop-filter: none !important;
}
.chat-app-body {
  display: flex !important;
  flex-direction: column !important;
  height: 100vh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
}
.chat-app-body > .topnav-app {
  flex: 0 0 auto !important;
  z-index: 30 !important;
}
.chat-app-body > .chat-app {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
}
.chat-app-body .topbar-brand-chip {
  display: none !important; /* brand lives in site topnav */
}


/* === PHONE CHAT + NAV FIX v163 === */
@media (max-width: 820px) {
  .topnav ul { display: none !important; }
  .nav-toggle { display: block !important; }
  .topnav.nav-open ul,
  .topnav.open ul,
  .topnav.is-open ul {
    display: flex !important;
    flex-direction: column !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: #fff !important;
    padding: 0.85rem 1rem !important;
    border-bottom: 1px solid #e8e8e8 !important;
    z-index: 50 !important;
    gap: 0.65rem !important;
  }

  .chat-app-body {
    height: 100dvh !important;
    max-height: 100dvh !important;
  }
  .chat-app-body > .topnav-app {
    padding-top: max(0.55rem, env(safe-area-inset-top)) !important;
    padding-left: max(0.75rem, env(safe-area-inset-left)) !important;
    padding-right: max(0.75rem, env(safe-area-inset-right)) !important;
  }
  .chat-app-body,
  .chat-app,
  .chat-main {
    overflow-x: hidden !important;
  }

  /* Chat-first topbar */
  .chat-v6 .chat-topbar,
  .chat-v7 .chat-topbar {
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.35rem !important;
    padding: 0.45rem 0.6rem !important;
    min-height: 0 !important;
  }
  .chat-v6 .topbar-right,
  .chat-v7 .topbar-right {
    width: auto !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
  }
  .chat-v6 .model-picker-wrap,
  .chat-v7 .model-picker-wrap {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }
  .chat-v6 .pill.live,
  .chat-v7 .pill.live,
  .chat-topbar .topbar-brand-chip {
    display: none !important;
  }
  .chat-v6 .chat-topbar button,
  .chat-v7 .chat-topbar button,
  .chat-v6 .chat-topbar .icon-btn,
  .chat-v7 .chat-topbar .icon-btn {
    min-width: 2.5rem !important;
    min-height: 2.5rem !important;
  }

  /* Composer safe area */
  .chat-v7 .composer-wrap,
  .chat-v6 .composer-wrap {
    padding-bottom: max(0.65rem, env(safe-area-inset-bottom)) !important;
    padding-left: max(0.55rem, env(safe-area-inset-left)) !important;
    padding-right: max(0.55rem, env(safe-area-inset-right)) !important;
  }
  .chat-v7 .composer textarea,
  .chat-v6 .composer textarea,
  .native-composer textarea {
    font-size: 16px !important; /* prevent iOS zoom */
    min-height: 2.75rem !important;
  }

  /* Readable messages */
  .chat-v6 .msg-content,
  .chat-v7 .msg-content {
    font-size: 0.95rem !important;
    line-height: 1.45 !important;
  }
  .prov-hint { font-size: 0.72rem !important; }

  /* Provenance: dock over composer on phone too */
  body.chat-app-body .composer-wrap .prov-pop,
  .prov-pop {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: none !important;
    max-height: min(48vh, 360px) !important;
    border-radius: 14px 14px 0 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    padding: 0.85rem 1rem max(0.85rem, env(safe-area-inset-bottom)) !important;
    z-index: 60 !important;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.08) !important;
    overflow: auto !important;
  }

  /* Desk: full-screen sheet, clear close */
  .chat-app-3.rail-open,
  .chat-v6.rail-open,
  .chat-v7.rail-open {
    grid-template-columns: 1fr !important;
  }
  .chat-rail.desk-stage,
  .chat-app.rail-open .chat-rail {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    max-width: none !important;
    z-index: 45 !important;
    background: #fff !important;
    padding-top: max(0.5rem, env(safe-area-inset-top)) !important;
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom)) !important;
  }
  #btnCloseRail,
  .desk-close,
  .chat-rail .rail-close {
    min-width: 2.75rem !important;
    min-height: 2.75rem !important;
  }
  .desk-chrome {
    left: 0.5rem !important;
    right: 0.5rem !important;
    bottom: 0.55rem !important;
    padding: 0.7rem 0.8rem 0.75rem !important;
    gap: 0.5rem !important;
  }
  .desk-legend {
    font-size: 0.66rem !important;
    max-width: none !important;
    gap: 0.45rem 0.75rem !important;
  }
  .desk-scene-stats {
    font-size: 0.64rem !important;
    line-height: 1.45 !important;
  }
  .desk-zoom button {
    min-width: 2.5rem !important;
    min-height: 2.5rem !important;
  }

  /* Plane pickers live inside Desk on phone */
  .chat-rail .desk-planes,
  .desk-stage .desk-planes,
  .desk-strip .desk-planes {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.35rem !important;
    max-width: none !important;
    padding: 0.5rem 0.65rem !important;
  }
  .desk-planes label,
  .desk-planes select {
    font-size: 0.78rem !important;
  }
}

/* === COMPOSER BOTTOM PIN v233 — kill empty white under chat === */
/* IMPORTANT: do not select bare `html` — that froze scroll on marketing pages (whitepaper). */
html:has(body.chat-app-body),
body.chat-app-body {
  height: 100% !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
}
body.chat-app-body {
  display: flex !important;
  flex-direction: column !important;
}
body.chat-app-body > [data-auth-app] {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
}
body.chat-app-body > [data-auth-app] > .topnav-app {
  flex: 0 0 auto !important;
  position: relative !important;
}
body.chat-app-body > [data-auth-app] > .chat-app,
body.chat-app-body .chat-app.chat-v6,
body.chat-app-body .chat-app.chat-v7,
body.chat-app-body .chat-app.chat-app-3 {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
}
body.chat-app-body .chat-main {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
}
body.chat-app-body .chat-topbar {
  flex: 0 0 auto !important;
}
body.chat-app-body .chat-stream,
body.chat-app-body .chat-v7 .chat-stream,
body.chat-app-body .chat-v6 .chat-stream {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: auto !important;
}
body.chat-app-body .chat-empty,
body.chat-app-body .chat-v7 .chat-empty,
body.chat-app-body .chat-v6 .chat-empty {
  min-height: 0 !important;
  height: 100% !important;
  max-height: none !important;
  display: grid !important;
  place-items: center !important;
  padding: 1.25rem !important;
}
body.chat-app-body .chat-empty[hidden],
body.chat-app-body .chat-app.has-messages .chat-empty {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
}
body.chat-app-body .composer-wrap {
  position: relative !important;
}
body.chat-app-body .composer-wrap .prov-pop {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  width: 100% !important;
  max-width: none !important;
  z-index: 55 !important;
}
body.chat-app-body .composer-wrap.prov-open .composer,
body.chat-app-body .composer-wrap.prov-open .attach-preview {
  visibility: hidden !important;
  pointer-events: none !important;
}
body.chat-app-body .composer-wrap,
body.chat-app-body .chat-v7 .composer-wrap,
body.chat-app-body .chat-v6 .composer-wrap {
  flex: 0 0 auto !important;
  margin-top: auto !important;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px)) !important;
  background: #fff !important;
  border-top: 1px solid #eceff3 !important;
}

/* === chat-stage is the scroll pane (not chat-stream) === */
body.chat-app-body .chat-stage,
body.chat-app-body .chat-v7 .chat-stage,
body.chat-app-body .chat-v6 .chat-stage {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: auto !important;
  display: flex !important;
  flex-direction: column !important;
}
body.chat-app-body .chat-stage .chat-empty {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
}
body.chat-app-body .chat-stage .chat-log {
  flex: 1 1 auto !important;
  min-height: 0 !important;
}
body.chat-app-body .chat-v6 .chat-main,
body.chat-app-body .chat-v7 .chat-main {
  overflow: hidden !important;
}
body.chat-app-body .chat-v6 .chat-stage,
body.chat-app-body .chat-v7 .chat-stage {
  overflow: auto !important;
}
body.chat-app-body > #authGate[hidden],
body.chat-app-body > #authGate[style*="display: none"],
body.chat-app-body > .desk-auth[hidden] {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* === CHAT SHELL REPAIR v246 === */
html:has(body.chat-app-body),
body.chat-app-body {
  height: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  background: #fff !important;
}
body.chat-app-body {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100dvh !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
}
body.chat-app-body.auth-unlocked > #authGate,
body.chat-app-body.auth-unlocked > .desk-auth,
body.chat-app-body > #authGate[hidden],
body.chat-app-body > .desk-auth[hidden] {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}
body.chat-app-body > [data-auth-app] {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  background: #fff !important;
  position: relative !important;
  inset: auto !important;
  z-index: auto !important;
}
body.chat-app-body > [data-auth-app][hidden] {
  display: none !important;
}
body.chat-app-body > [data-auth-app] > .topnav-app {
  flex: 0 0 auto !important;
  position: relative !important;
  z-index: 40 !important;
}
body.chat-app-body > [data-auth-app] > .chat-app,
body.chat-app-body .chat-app.chat-v6,
body.chat-app-body .chat-app.chat-v7,
body.chat-app-body .chat-app.chat-app-3 {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  width: 100% !important;
  overflow: hidden !important;
  display: grid !important;
  grid-template-columns: 260px minmax(0, 1fr) 0fr !important;
  grid-template-rows: minmax(0, 1fr) !important;
  align-content: stretch !important;
}
body.chat-app-body .chat-app.sidebar-collapsed {
  grid-template-columns: 0 minmax(0, 1fr) 0fr !important;
}
/* Must beat body.chat-app-body .chat-app.chat-app-3 { … 0fr } */
body.chat-app-body .chat-app.chat-app-3.rail-open,
body.chat-app-body .chat-app.chat-v6.rail-open,
body.chat-app-body .chat-app.chat-v7.rail-open,
body.chat-app-body > [data-auth-app] > .chat-app.rail-open {
  grid-template-columns: minmax(0, 200px) minmax(280px, 1fr) minmax(420px, 1.05fr) !important;
}
body.chat-app-body .chat-app.sidebar-collapsed.rail-open {
  grid-template-columns: 0 minmax(280px, 1fr) minmax(460px, 1.15fr) !important;
}
body.chat-app-body .chat-app:not(.rail-open) > .chat-rail,
body.chat-app-body .chat-app:not(.rail-open) > .chat-rail.desk-stage {
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  border: 0 !important;
  border-left-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}
body.chat-app-body .chat-app.rail-open > .chat-rail,
body.chat-app-body .chat-app.rail-open > .chat-rail.desk-stage {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  justify-self: stretch !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  border-left: 1px solid #e8e8e8 !important;
  overflow: hidden auto !important;
}
body.chat-app-body .chat-app > .menu-backdrop,
body.chat-app-body #menuBackdrop {
  position: fixed !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  grid-column: 1 / -1 !important;
  grid-row: 1 / -1 !important;
  justify-self: stretch !important;
  align-self: stretch !important;
}
body.chat-app-body .chat-sidebar {
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  z-index: 2 !important;
}
body.chat-app-body .chat-main {
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  position: relative !important;
  z-index: 1 !important;
  background: #fff !important;
}
body.chat-app-body .chat-rail,
body.chat-app-body .artifacts-panel {
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
}
body.chat-app-body .chat-topbar {
  flex: 0 0 auto !important;
  overflow: visible !important;
  z-index: 30 !important;
}
body.chat-app-body .chat-stage,
body.chat-app-body .chat-v6 .chat-stage,
body.chat-app-body .chat-v7 .chat-stage {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: auto !important;
  display: flex !important;
  flex-direction: column !important;
}
body.chat-app-body .chat-empty:not([hidden]),
body.chat-app-body .chat-stage .chat-empty:not([hidden]) {
  flex: 1 1 auto !important;
  display: grid !important;
  place-items: center !important;
  justify-items: center !important;
  align-content: center !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  height: auto !important;
  align-self: stretch !important;
  text-align: center !important;
}
body.chat-app-body .chat-empty .empty-hero,
body.chat-app-body .chat-empty .empty-hero--bare {
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
  text-align: center !important;
  display: grid !important;
  place-items: center !important;
}
body.chat-app-body .chat-empty .greek-name,
body.chat-app-body .chat-empty .empty-hero h1,
body.chat-app-body .chat-empty .empty-hero--bare h1 {
  text-align: center !important;
  margin: 0 auto !important;
  /* letter-spacing shifts glyphs right — pad left for optical center */
  padding-left: 0.18em !important;
}
body.chat-app-body .composer-wrap,
body.chat-app-body .chat-v6 .composer-wrap,
body.chat-app-body .chat-v7 .composer-wrap {
  flex: 0 0 auto !important;
  margin-top: auto !important;
  width: 100% !important;
  background: #fff !important;
  border-top: 1px solid #eceff3 !important;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px)) !important;
  z-index: 5 !important;
}

/* Model menu above shell, clickable */
body.chat-app-body #menuBackdrop.is-open,
body.chat-app-body .menu-backdrop.is-open {
  z-index: 4000 !important;
  display: block !important;
}
body.chat-app-body .model-menu.is-open,
body.chat-app-body #modelMenu.is-open {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  display: flex !important;
  flex-direction: column !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 10050 !important;
  background: #fafbfa !important;
  width: min(420px, 100vw) !important;
  height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  border-radius: 0 !important;
}
body.chat-app-body #modelMenuList,
body.chat-app-body .model-option {
  pointer-events: auto !important;
}
body.chat-app-body .model-option {
  cursor: pointer !important;
}

@media (max-width: 900px) {
  body.chat-app-body > [data-auth-app] > .chat-app,
  body.chat-app-body .chat-app.chat-app-3 {
    grid-template-columns: 0 minmax(0, 1fr) 0fr !important;
  }
  body.chat-app-body .chat-app.sidebar-drawer-open {
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr) 0fr !important;
  }
}

/* Chat / home — name + greek tech only, no slogan / color wash */
.chat-v6 .stage-atmosphere,
.chat-v7 .stage-atmosphere,
.chat-v7 .empty-orb {
  display: none !important;
  opacity: 0 !important;
  background: none !important;
}
.chat-v6 .chat-main,
.chat-v7 .chat-main {
  background: #fff !important;
}
.chat-v7 .empty-hero,
.chat-v6 .empty-hero,
.empty-hero--bare {
  text-align: center !important;
  max-width: none !important;
  padding: 2rem 1rem !important;
  margin: 0 auto !important;
}
.empty-hero--bare .greek-epigraph {
  font-family: var(--display), "Cinzel", serif !important;
  font-size: clamp(0.72rem, 1.6vw, 0.9rem) !important;
  letter-spacing: 0.28em !important;
  color: #a3a3a3 !important;
  margin: 0 0 0.85rem !important;
  text-transform: none !important;
}
.empty-hero--bare .greek-name,
.empty-hero--bare h1 {
  font-family: var(--display), "Cinzel", serif !important;
  font-weight: 500 !important;
  font-size: clamp(3rem, 10vw, 5.5rem) !important;
  letter-spacing: 0.18em !important;
  text-transform: none !important;
  color: #111 !important;
  margin: 0 !important;
  line-height: 1 !important;
}
.chat-v7 .empty-lead,
.chat-v6 .empty-lead,
.chat-v7 .empty-kicker,
.chat-v6 .empty-kicker {
  display: none !important;
}
body.greek-home .punch,
body.page-home .punch {
  display: none !important;
}
body.page-home.greek-home,
body.greek-home {
  background: #fff !important;
}
body.greek-home .mesh-layer,
body.page-home .mesh-layer {
  opacity: 0.18 !important;
  filter: grayscale(1) !important;
}

/* Model / Settings / Features portal — always above dimmer */
body.noeti-menu-open > #menuBackdrop.is-open,
body > #menuBackdrop.is-open {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10040 !important;
  display: block !important;
  pointer-events: auto !important;
  background: rgba(12, 18, 24, 0.35) !important;
}
body.noeti-menu-open > #modelMenu.is-open,
body > #modelMenu.is-open,
body.noeti-menu-open > #settingsMenu.is-open,
body > #settingsMenu.is-open,
body.noeti-menu-open > #featuresMenu.is-open,
body > #featuresMenu.is-open {
  position: fixed !important;
  z-index: 10050 !important;
  display: flex !important;
  flex-direction: column !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  background: #fff !important;
  max-height: min(72vh, 560px) !important;
  overflow: hidden !important;
}
body > #settingsMenu.is-open,
body > #featuresMenu.is-open {
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  width: min(440px, calc(100vw - 24px)) !important;
  border: 1px solid #e2e6e3 !important;
  box-shadow: 0 18px 48px rgba(12, 18, 24, 0.18) !important;
  border-radius: 0 !important;
  background: #fff !important;
  overflow: hidden !important;
}
body > #settingsMenu.is-open .settings-scroll,
body > #settingsMenu.is-open .prefs-body,
body > #featuresMenu.is-open {
  overflow: auto !important;
  pointer-events: auto !important;
}
body > #settingsMenu.is-open *,
body > #featuresMenu.is-open * {
  pointer-events: auto !important;
}

/* Settings sheet — self-contained (works when portaled to body) */
#settingsMenu.settings-sheet,
body > #settingsMenu.is-open {
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  max-height: min(78vh, 640px) !important;
}
#settingsMenu .prefs-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
  flex: 0 0 auto !important;
  padding: 1rem 1.1rem 0.85rem !important;
  border-bottom: 1px solid #eceff1 !important;
  background: #fff !important;
}
#settingsMenu .prefs-kicker {
  margin: 0 !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: #8a9199 !important;
  font-weight: 650 !important;
}
#settingsMenu .prefs-title {
  margin: 0.2rem 0 0 !important;
  font-size: 1.2rem !important;
  font-weight: 650 !important;
  letter-spacing: -0.02em !important;
  color: #0c1218 !important;
  line-height: 1.2 !important;
}
#settingsMenu .prefs-close {
  width: 2rem !important;
  height: 2rem !important;
  border: 1px solid #e2e6e3 !important;
  background: #fff !important;
  color: #3d454c !important;
  font-size: 1.1rem !important;
  line-height: 1 !important;
  cursor: pointer !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 0 !important;
  flex: 0 0 auto !important;
}
#settingsMenu .prefs-close:hover {
  border-color: #0c1218 !important;
  color: #0c1218 !important;
}
#settingsMenu .prefs-body,
#settingsMenu .settings-scroll {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0.75rem 0.85rem 1rem !important;
  overflow: auto !important;
  display: grid !important;
  gap: 0.65rem !important;
  background: #f7f8f7 !important;
}
#settingsMenu .prefs-block,
#settingsMenu .set-section {
  margin: 0 !important;
  padding: 0.85rem 0.9rem !important;
  background: #fff !important;
  border: 1px solid #e8ebe9 !important;
  border-radius: 0 !important;
  display: grid !important;
  gap: 0 !important;
}
#settingsMenu .prefs-block-head {
  margin: 0 0 0.55rem !important;
  padding: 0 0 0.55rem !important;
  border-bottom: 1px solid #f0f2f1 !important;
}
#settingsMenu .set-section-label {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  color: #6b737a !important;
}
#settingsMenu .prefs-block-lead {
  margin: 0.3rem 0 0 !important;
  font-size: 0.78rem !important;
  line-height: 1.35 !important;
  color: #5a636b !important;
}
#settingsMenu .prefs-subgrid {
  margin: 0.35rem 0 0 !important;
  padding: 0.45rem 0 0 !important;
  border-top: 1px solid #f0f2f1 !important;
  display: grid !important;
  gap: 0 !important;
}
#settingsMenu .prefs-sublabel {
  margin: 0 0 0.2rem !important;
  font-size: 0.68rem !important;
  font-weight: 650 !important;
  color: #8a9199 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}
#settingsMenu .prefs-toggle {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 0.85rem !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0.65rem 0 !important;
  border-top: 1px solid #f0f2f1 !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}
#settingsMenu .prefs-block > .prefs-toggle:first-of-type,
#settingsMenu .prefs-subgrid > .prefs-toggle:first-of-type {
  border-top: 0 !important;
  padding-top: 0.2rem !important;
}
#settingsMenu .prefs-toggle-copy,
#settingsMenu .prefs-toggle > span {
  display: grid !important;
  gap: 0.15rem !important;
  min-width: 0 !important;
}
#settingsMenu .prefs-toggle strong {
  display: block !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: #0c1218 !important;
  line-height: 1.25 !important;
}
#settingsMenu .prefs-toggle em {
  display: block !important;
  font-style: normal !important;
  font-size: 0.74rem !important;
  line-height: 1.3 !important;
  color: #6b737a !important;
}
#settingsMenu .prefs-toggle input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  flex: 0 0 auto !important;
  width: 2.4rem !important;
  height: 1.35rem !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #c9cfc8 !important;
  position: relative !important;
  cursor: pointer !important;
  box-shadow: none !important;
}
#settingsMenu .prefs-toggle input[type="checkbox"]::after {
  content: "" !important;
  position: absolute !important;
  top: 0.15rem !important;
  left: 0.15rem !important;
  width: 1.05rem !important;
  height: 1.05rem !important;
  background: #fff !important;
  border-radius: 0 !important;
  transition: transform 0.16s ease !important;
  box-shadow: none !important;
}
#settingsMenu .prefs-toggle input[type="checkbox"]:checked {
  background: #0c1218 !important;
}
#settingsMenu .prefs-toggle input[type="checkbox"]:checked::after {
  transform: translateX(1.05rem) !important;
}
#settingsMenu .prefs-planes {
  display: grid !important;
  gap: 0.4rem !important;
  margin-top: 0.65rem !important;
  padding-top: 0.65rem !important;
  border-top: 1px solid #f0f2f1 !important;
}
#settingsMenu .prefs-btn {
  width: 100% !important;
  text-align: left !important;
  border: 1px solid #e2e6e3 !important;
  background: #fafbfa !important;
  color: #0c1218 !important;
  border-radius: 0 !important;
  padding: 0.6rem 0.75rem !important;
  font: inherit !important;
  font-size: 0.84rem !important;
  font-weight: 550 !important;
  cursor: pointer !important;
}
#settingsMenu .prefs-btn:hover {
  border-color: #0c1218 !important;
  background: #fff !important;
}
#settingsMenu .prefs-btn.solid {
  background: #0c1218 !important;
  border-color: #0c1218 !important;
  color: #fff !important;
  text-align: center !important;
}
#settingsMenu .prefs-btn.danger {
  color: #8a2f2f !important;
}
#settingsMenu .prefs-field {
  display: grid !important;
  gap: 0.35rem !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: #4a524a !important;
}
#settingsMenu .prefs-field select {
  appearance: none !important;
  width: 100% !important;
  border: 1px solid #d5dbd7 !important;
  background: #fff !important;
  border-radius: 0 !important;
  padding: 0.65rem 0.75rem !important;
  font: inherit !important;
  font-size: 0.9rem !important;
  color: #0c1218 !important;
  cursor: pointer !important;
}
#settingsMenu .accent-swatches {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0.45rem !important;
  padding: 0.15rem 0 0 !important;
}
#settingsMenu .swatch {
  display: grid !important;
  justify-items: center !important;
  gap: 0.35rem !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0.55rem 0.25rem 0.45rem !important;
  border: 1px solid #e2e6e3 !important;
  border-radius: 0 !important;
  background: #fff !important;
  cursor: pointer !important;
  box-shadow: none !important;
  position: relative !important;
}
#settingsMenu .swatch::before {
  content: "" !important;
  width: 1.35rem !important;
  height: 1.35rem !important;
  border: 1px solid rgba(0,0,0,0.12) !important;
  display: block !important;
}
#settingsMenu .swatch[data-accent="moss"]::before { background: #2f5d45 !important; }
#settingsMenu .swatch[data-accent="slate"]::before { background: #4a5560 !important; }
#settingsMenu .swatch[data-accent="amber"]::before { background: #b8873a !important; }
#settingsMenu .swatch[data-accent="ocean"]::before { background: #3a6d8c !important; }
#settingsMenu .swatch span {
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  color: #3d454c !important;
  line-height: 1 !important;
}
#settingsMenu .swatch.is-on {
  border-color: #0c1218 !important;
  background: #f6f8f7 !important;
}
#settingsMenu .prefs-links {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.55rem 0.85rem !important;
}
#settingsMenu .prefs-links a {
  font-size: 0.86rem !important;
  font-weight: 600 !important;
  color: #0c1218 !important;
  text-decoration: underline !important;
  text-underline-offset: 0.15em !important;
}
#settingsMenu .prefs-account {
  display: grid !important;
  gap: 0.45rem !important;
}
#settingsMenu .prefs-account input {
  width: 100% !important;
  border: 1px solid #d5dbd7 !important;
  background: #fff !important;
  border-radius: 0 !important;
  padding: 0.6rem 0.75rem !important;
  font: inherit !important;
  font-size: 0.88rem !important;
  box-sizing: border-box !important;
}
#settingsMenu .prefs-account-in {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.45rem !important;
  font-size: 0.86rem !important;
}
#settingsMenu .sync-status {
  margin: 0.45rem 0 0 !important;
  font-size: 0.72rem !important;
  color: #6b737a !important;
}
#settingsMenu .prefs-foot,
#settingsMenu .pop-actions {
  flex: 0 0 auto !important;
  display: flex !important;
  gap: 0.45rem !important;
  padding: 0.75rem 0.95rem !important;
  border-top: 1px solid #eceff1 !important;
  background: #fff !important;
  margin: 0 !important;
}
#settingsMenu .prefs-foot .prefs-btn {
  width: auto !important;
  flex: 1 1 auto !important;
  text-align: center !important;
}
body > #modelMenu.is-open #modelMenuList,
body > #modelMenu.is-open .model-option {
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* Model picker dimmer + panel (body portal) — v250 off-screen fix */
#modelDimmer {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10040 !important;
  border: 0 !important;
  background: rgba(12, 18, 24, 0.38) !important;
}
body.model-picker-open > #modelMenu.is-open,
body > #modelMenu.is-open {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  width: min(420px, 100vw) !important;
  height: 100vh !important;
  max-height: 100vh !important;
  z-index: 10050 !important;
  display: flex !important;
  flex-direction: column !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  background: #fafbfa !important;
  border: 0 !important;
  border-left: 1px solid #dce1dd !important;
  border-radius: 0 !important;
  box-shadow: -18px 0 48px rgba(12, 18, 24, 0.14) !important;
  overflow: hidden !important;
  transform: none !important;
  margin: 0 !important;
}
body > #modelMenu.is-open #modelMenuList {
  overflow-y: auto !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  pointer-events: auto !important;
}
body > #modelMenu.is-open .model-option {
  pointer-events: auto !important;
  cursor: pointer !important;
  width: 100% !important;
}

/* === Attach menu v259 — beat .composer.glow button dark fill === */
.chat-v6 .composer-attach,
.chat-v7 .composer-attach,
body.chat-app-body .composer-attach,
.chat-v6 .composer.glow > .attach-wrap > .composer-attach,
.chat-v7 .composer.glow > .attach-wrap > .composer-attach {
  width: 2.35rem !important;
  height: 2.35rem !important;
  min-width: 2.35rem !important;
  border: 1px solid #e2e6e3 !important;
  background: #fff !important;
  background-image: none !important;
  color: #0c1218 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 1.1rem !important;
  font-weight: 500 !important;
}
.chat-v6 .composer-attach:hover,
.chat-v7 .composer-attach:hover,
.chat-v6 .composer-attach.is-open,
.chat-v7 .composer-attach.is-open,
body.chat-app-body .composer-attach:hover,
body.chat-app-body .composer-attach.is-open,
.chat-v6 .composer.glow > .attach-wrap > .composer-attach:hover,
.chat-v7 .composer.glow > .attach-wrap > .composer-attach:hover,
.chat-v6 .composer.glow > .attach-wrap > .composer-attach.is-open,
.chat-v7 .composer.glow > .attach-wrap > .composer-attach.is-open {
  background: #0c1218 !important;
  background-image: none !important;
  border-color: #0c1218 !important;
  color: #fff !important;
  filter: none !important;
}
.chat-v6 .attach-wrap .attach-menu,
.chat-v7 .attach-wrap .attach-menu,
body.chat-app-body .attach-wrap .attach-menu {
  position: absolute !important;
  left: 0 !important;
  bottom: calc(100% + 0.5rem) !important;
  min-width: 17.5rem !important;
  padding: 0.55rem !important;
  background: #fff !important;
  border: 1px solid #e2e6e3 !important;
  border-radius: 0 !important;
  box-shadow: 0 14px 40px rgba(12, 18, 24, 0.12) !important;
  z-index: 80 !important;
  display: grid !important;
  gap: 0.2rem !important;
}
.chat-v6 .attach-wrap .attach-menu[hidden],
.chat-v7 .attach-wrap .attach-menu[hidden],
body.chat-app-body .attach-wrap .attach-menu[hidden] {
  display: none !important;
}
.chat-v6 .attach-menu-kicker,
.chat-v7 .attach-menu-kicker,
body.chat-app-body .attach-menu-kicker {
  margin: 0 0 0.2rem !important;
  padding: 0.2rem 0.55rem 0.45rem !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: #8a9199 !important;
  border-bottom: 1px solid #f0f2f1 !important;
}
/* Must out-specificity .chat-v6 .composer.glow button (#0c1218 fill) */
.chat-v6 .composer.glow .attach-menu button,
.chat-v7 .composer.glow .attach-menu button,
.chat-v6 .native-composer .attach-menu button,
.chat-v7 .native-composer .attach-menu button,
body.chat-app-body .composer .attach-menu button {
  display: grid !important;
  grid-template-columns: 1.75rem minmax(0, 1fr) !important;
  gap: 0.7rem !important;
  align-items: center !important;
  text-align: left !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  background-image: none !important;
  border-radius: 0 !important;
  padding: 0.65rem 0.55rem !important;
  cursor: pointer !important;
  font: inherit !important;
  font-size: inherit !important;
  font-weight: 400 !important;
  color: #0c1218 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}
.chat-v6 .composer.glow .attach-menu button:hover,
.chat-v7 .composer.glow .attach-menu button:hover,
.chat-v6 .native-composer .attach-menu button:hover,
.chat-v7 .native-composer .attach-menu button:hover,
body.chat-app-body .composer .attach-menu button:hover {
  background: #f6f8f7 !important;
  background-image: none !important;
  border-color: #e8ebe9 !important;
  opacity: 1 !important;
  filter: none !important;
  color: #0c1218 !important;
}
.chat-v6 .composer.glow .attach-menu .attach-ico,
.chat-v7 .composer.glow .attach-menu .attach-ico,
.chat-v6 .native-composer .attach-menu .attach-ico,
.chat-v7 .native-composer .attach-menu .attach-ico,
body.chat-app-body .composer .attach-menu .attach-ico {
  width: 1.75rem !important;
  height: 1.75rem !important;
  min-width: 1.75rem !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid #e2e6e3 !important;
  color: #3d454c !important;
  background: #fafbfa !important;
  background-image: none !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  font-size: 0 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.chat-v6 .composer.glow .attach-menu .attach-ico svg,
.chat-v7 .composer.glow .attach-menu .attach-ico svg,
body.chat-app-body .composer .attach-menu .attach-ico svg {
  width: 0.95rem !important;
  height: 0.95rem !important;
  display: block !important;
}
.chat-v6 .composer.glow .attach-menu button:hover .attach-ico,
.chat-v7 .composer.glow .attach-menu button:hover .attach-ico,
body.chat-app-body .composer .attach-menu button:hover .attach-ico {
  border-color: #0c1218 !important;
  color: #0c1218 !important;
  background: #fff !important;
}
.chat-v6 .composer.glow .attach-menu .attach-copy,
.chat-v7 .composer.glow .attach-menu .attach-copy,
body.chat-app-body .composer .attach-menu .attach-copy {
  display: grid !important;
  gap: 0.12rem !important;
  min-width: 0 !important;
}
.chat-v6 .composer.glow .attach-menu button strong,
.chat-v7 .composer.glow .attach-menu button strong,
body.chat-app-body .composer .attach-menu button strong {
  display: block !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: #0c1218 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  line-height: 1.25 !important;
}
.chat-v6 .composer.glow .attach-menu .attach-copy > span,
.chat-v7 .composer.glow .attach-menu .attach-copy > span,
body.chat-app-body .composer .attach-menu .attach-copy > span {
  display: block !important;
  font-size: 0.72rem !important;
  font-weight: 400 !important;
  color: #6b737a !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  line-height: 1.3 !important;
}

/* === Pending attachments strip (above composer) === */
body.chat-app-body #imagePreview.attach-preview:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
body.chat-app-body #imagePreview.attach-preview.has-items,
body.chat-app-body #imagePreview.attach-preview:not(:empty) {
  display: grid !important;
  gap: 0.45rem !important;
  margin: 0 0 0.55rem !important;
  padding: 0.65rem 0.75rem !important;
  border: 1px solid #e2e6e3 !important;
  background: #f7f8f7 !important;
  border-radius: 0 !important;
}
body.chat-app-body .attach-strip-head {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
}
body.chat-app-body .attach-strip-head strong {
  font-size: 0.78rem !important;
  font-weight: 650 !important;
  color: #0c1218 !important;
}
body.chat-app-body .attach-strip-head span {
  font-size: 0.7rem !important;
  color: #6b737a !important;
}
body.chat-app-body .attach-strip-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.45rem !important;
}
body.chat-app-body .attach-flash {
  margin: 0 !important;
  font-size: 0.72rem !important;
  color: #0f766e !important;
}
body.chat-app-body .img-chip {
  position: relative !important;
  width: 64px !important;
  height: 64px !important;
  border: 1px solid #d5dbd7 !important;
  background: #fff !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}
body.chat-app-body .img-chip img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
body.chat-app-body .file-chip {
  position: relative !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 0.55rem !important;
  min-width: 10.5rem !important;
  max-width: 16rem !important;
  padding: 0.5rem 1.7rem 0.5rem 0.55rem !important;
  border: 1px solid #d5dbd7 !important;
  background: #fff !important;
  border-radius: 0 !important;
}
body.chat-app-body .file-chip-ext {
  display: grid !important;
  place-items: center !important;
  width: 2.1rem !important;
  height: 2.1rem !important;
  font-size: 0.58rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  color: #0c1218 !important;
  background: #eef1ef !important;
  border: 1px solid #e2e6e3 !important;
}
body.chat-app-body .file-chip-meta {
  display: grid !important;
  gap: 0.08rem !important;
  min-width: 0 !important;
}
body.chat-app-body .file-chip-meta strong {
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: #0c1218 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
body.chat-app-body .file-chip-meta span {
  font-size: 0.68rem !important;
  color: #6b737a !important;
}
body.chat-app-body .img-chip button,
body.chat-app-body .file-chip button {
  position: absolute !important;
  top: 3px !important;
  right: 3px !important;
  width: 18px !important;
  height: 18px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #0c1218 !important;
  color: #fff !important;
  font-size: 0.72rem !important;
  line-height: 1 !important;
  cursor: pointer !important;
  padding: 0 !important;
}
body.chat-app-body .composer-attach.has-attachments {
  position: relative !important;
}
body.chat-app-body .composer-attach.has-attachments::after {
  content: attr(data-attach-count) !important;
  position: absolute !important;
  top: -0.35rem !important;
  right: -0.35rem !important;
  min-width: 1.05rem !important;
  height: 1.05rem !important;
  padding: 0 0.25rem !important;
  display: grid !important;
  place-items: center !important;
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  background: #0f766e !important;
  border: 1px solid #fff !important;
  line-height: 1 !important;
}
body.chat-app-body .msg-attachments {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.4rem !important;
  margin: 0 0 0.55rem !important;
}
body.chat-app-body .msg-attachments img {
  width: 88px !important;
  height: 88px !important;
  object-fit: cover !important;
  border: 1px solid #d5dbd7 !important;
  background: #fff !important;
}
body.chat-app-body .msg-file-chip {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 0.5rem !important;
  min-width: 9rem !important;
  max-width: 14rem !important;
  padding: 0.45rem 0.55rem !important;
  border: 1px solid #d5dbd7 !important;
  background: #fff !important;
}
body.chat-app-body .msg-file-chip .file-chip-ext {
  width: 1.9rem !important;
  height: 1.9rem !important;
  display: grid !important;
  place-items: center !important;
  font-size: 0.55rem !important;
  font-weight: 700 !important;
  background: #eef1ef !important;
  border: 1px solid #e2e6e3 !important;
}
body.chat-app-body .msg-file-chip .file-chip-meta {
  display: grid !important;
  gap: 0.05rem !important;
  min-width: 0 !important;
}
body.chat-app-body .msg-file-chip strong {
  font-size: 0.76rem !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
body.chat-app-body .msg-file-chip .file-chip-meta span {
  font-size: 0.66rem !important;
  color: #6b737a !important;
}

body.chat-app-body .msg-file-pack {
  margin-top: 0.65rem !important;
  padding-top: 0.55rem !important;
  border-top: 1px solid #e6eae8 !important;
}
body.chat-app-body .msg-file-pack-label {
  margin: 0 0 0.35rem !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: #6b737a !important;
}
body.chat-app-body .msg-file-pack .pp-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.35rem !important;
}

/* Live video-pack transcription progress */
body.chat-app-body .vp-progress {
  margin-top: 0.75rem !important;
  margin-bottom: 0.35rem !important;
  padding: 0.7rem 0.75rem 0.65rem !important;
  background: linear-gradient(180deg, #f7f8f6 0%, #f1f3f0 100%) !important;
  border: 1px solid #e2e6e2 !important;
}
body.chat-app-body .vp-progress-head {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
  margin-bottom: 0.4rem !important;
}
body.chat-app-body .vp-progress-pct {
  font-family: "Cinzel", serif !important;
  font-size: 1.05rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  color: #1a1f1c !important;
}
body.chat-app-body .vp-progress-count {
  font-size: 0.72rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: #5c6560 !important;
}
body.chat-app-body .vp-progress-bar {
  position: relative !important;
  height: 6px !important;
  background: #dce1dc !important;
  overflow: hidden !important;
}
body.chat-app-body .vp-progress-bar i {
  display: block !important;
  height: 100% !important;
  width: 0 !important;
  background: linear-gradient(90deg, #2f4a3a, #4a6b52) !important;
  transition: width 0.45s ease !important;
}
body.chat-app-body .vp-progress-bar[data-phase="queued"] i {
  background: #8a918a !important;
}
body.chat-app-body .vp-progress-bar[data-phase="analyzing"] i {
  background: linear-gradient(90deg, #3a4a5c, #5a6e82) !important;
}
body.chat-app-body .vp-progress-now {
  margin: 0.5rem 0 0.2rem !important;
  font-size: 0.84rem !important;
  line-height: 1.35 !important;
  color: #1e2621 !important;
}
body.chat-app-body .vp-progress-meta {
  margin: 0 !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.03em !important;
  color: #6b737a !important;
}
body.chat-app-body .vp-progress-preview {
  margin: 0.55rem 0 0 !important;
  padding: 0.45rem 0.5rem !important;
  font-size: 0.78rem !important;
  line-height: 1.4 !important;
  color: #2a322c !important;
  background: rgba(255,255,255,0.7) !important;
  border-left: 2px solid #4a6b52 !important;
  max-height: 4.6em !important;
  overflow: hidden !important;
}
body.chat-app-body .vp-progress[data-status="done"] .vp-progress-bar i {
  background: #2f4a3a !important;
}
body.chat-app-body .vp-progress[data-status="error"] .vp-progress-bar i {
  background: #8b3a3a !important;
}

/* === Model picker v253 — organized cards, no duplicate meta === */
body > #modelMenu.is-open .model-menu-toolbar,
body.model-picker-open > #modelMenu.is-open .model-menu-toolbar {
  padding: 0.85rem 1rem 0.45rem !important;
  border-bottom: 1px solid #eceff1 !important;
}
body > #modelMenu.is-open .model-menu-toolbar strong {
  font-family: "Cinzel", serif !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
}
body > #modelMenu.is-open #btnCloseModelMenu,
body > #modelMenu.is-open .model-menu-toolbar .btn-chip {
  border-radius: 0 !important;
  border: 1px solid #d7dcd8 !important;
  background: #fff !important;
  min-width: 4.2rem !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.04em !important;
}
body > #modelMenu.is-open .model-menu-head {
  padding: 0.65rem 1rem 0.55rem !important;
  border-bottom: 1px solid #f0f2f1 !important;
}
body > #modelMenu.is-open .model-search {
  width: 100% !important;
  border: 1px solid #e2e6e3 !important;
  border-radius: 0 !important;
  padding: 0.55rem 0.7rem !important;
  font-size: 0.88rem !important;
  background: #fafbfa !important;
}
body > #modelMenu.is-open .model-filters {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.35rem !important;
  margin-top: 0.55rem !important;
}
body > #modelMenu.is-open .mfilt {
  border: 1px solid #e2e6e3 !important;
  background: #fff !important;
  border-radius: 0 !important;
  padding: 0.28rem 0.55rem !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: #5a636a !important;
  cursor: pointer !important;
}
body > #modelMenu.is-open .mfilt.is-on {
  background: #0c1218 !important;
  border-color: #0c1218 !important;
  color: #fff !important;
}
body > #modelMenu.is-open .model-group {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  padding: 0.75rem 1rem 0.3rem !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: #8a9199 !important;
}
body > #modelMenu.is-open .model-group em {
  font-style: normal !important;
  opacity: 0.7 !important;
}
body > #modelMenu.is-open .model-option {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 0.35rem 0.75rem !important;
  align-items: start !important;
  width: calc(100% - 1.2rem) !important;
  margin: 0 0.6rem 0.35rem !important;
  padding: 0.7rem 0.75rem !important;
  border: 1px solid #eceff1 !important;
  border-left: 2px solid transparent !important;
  border-radius: 0 !important;
  background: #fff !important;
  text-align: left !important;
}
body > #modelMenu.is-open .model-option.decentralized { border-left-color: #3f6b55 !important; }
body > #modelMenu.is-open .model-option.centralized { border-left-color: #8a5a30 !important; }
body > #modelMenu.is-open .model-option:hover,
body > #modelMenu.is-open .model-option.selected {
  background: #f6f8f7 !important;
  border-color: #d9dedb !important;
}
body > #modelMenu.is-open .model-option.selected {
  border-left-color: #0c1218 !important;
}
body > #modelMenu.is-open .model-option-main {
  display: grid !important;
  gap: 0.28rem !important;
  min-width: 0 !important;
}
body > #modelMenu.is-open .model-option-main strong {
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  color: #0c1218 !important;
  line-height: 1.25 !important;
}
body > #modelMenu.is-open .model-facts {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.3rem !important;
}
body > #modelMenu.is-open .model-fact {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0.12rem 0.4rem !important;
  font-size: 0.66rem !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: #2f3a34 !important;
  background: #eef2ef !important;
  border: 1px solid #e0e6e2 !important;
}
body > #modelMenu.is-open .model-fact.country {
  background: #e8eef5 !important;
  border-color: #d5e0ec !important;
  color: #243a55 !important;
}
body > #modelMenu.is-open .model-fact.size {
  background: #eef5e8 !important;
  border-color: #d8e6cf !important;
  color: #2a4a28 !important;
}
body > #modelMenu.is-open .model-fact.ctx {
  background: #f5f0e8 !important;
  border-color: #ebe1d0 !important;
  color: #5a4020 !important;
}
body > #modelMenu.is-open .model-specialty,
body > #modelMenu.is-open .model-option-main > span.model-specialty {
  font-size: 0.78rem !important;
  color: #3d454c !important;
  line-height: 1.4 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
body > #modelMenu.is-open .model-desc {
  font-size: 0.7rem !important;
  color: #7a8288 !important;
  line-height: 1.35 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
body > #modelMenu.is-open .model-option {
  padding: 0.85rem 0.8rem !important;
}
body > #modelMenu.is-open .model-menu-hint {
  margin: 0.45rem 0 0 !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: #8a9199 !important;
}
body > #modelMenu.is-open .model-card-line { display: none !important; }
body > #modelMenu.is-open .model-option-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.28rem !important;
  justify-content: flex-end !important;
  max-width: 11rem !important;
}
body > #modelMenu.is-open .model-option-tags em {
  margin: 0 !important;
  border-radius: 0 !important;
  padding: 0.18rem 0.4rem !important;
  font-size: 0.62rem !important;
  font-style: normal !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  background: #eef1f0 !important;
  color: #3d454c !important;
}
body > #modelMenu.is-open .model-option-tags em.ok { background: #e5efe8 !important; color: #244a36 !important; }
body > #modelMenu.is-open .model-option-tags em.free { background: #e8f3ea !important; color: #1f5a32 !important; }
body > #modelMenu.is-open .model-option-tags em.paid { background: #f5ebe2 !important; color: #6b3a1f !important; }
body > #modelMenu.is-open .model-option-tags em.cap-code { background: #e7eef8 !important; color: #1f3f6a !important; }
body > #modelMenu.is-open .model-option-tags em.cap-vision { background: #efe8f6 !important; color: #4a2f6b !important; }
body > #modelMenu.is-open .model-option-tags em.cap-reasoning { background: #f5e8e8 !important; color: #6b2f2f !important; }
body > #modelMenu.is-open .model-option-tags em.tier-fast { background: #dcecf5 !important; color: #1f4f6a !important; }
body > #modelMenu.is-open .model-option-tags em.tier-balanced { background: #e8e4f5 !important; color: #4a3d6e !important; }
body > #modelMenu.is-open .model-option-tags em.tier-strong { background: #e5f0e2 !important; color: #2f5a34 !important; }
body > #modelMenu.is-open .model-option-tags em.tier-flagship { background: #f5e4d8 !important; color: #6b3a1f !important; }

/* Topbar: Settings + Network pill removed from chrome */
.chat-v6 .topbar-right > .menu-wrap > #btnSettings,
.chat-v7 .topbar-right > .menu-wrap > #btnSettings,
.chat-v6 #backendPill,
.chat-v7 #backendPill {
  display: none !important;
}
.chat-v6 .sidebar-link-btn,
.chat-v7 .sidebar-link-btn {
  appearance: none !important;
  border: 0 !important;
  background: none !important;
  padding: 0 !important;
  font: inherit !important;
  color: inherit !important;
  cursor: pointer !important;
  opacity: 0.72 !important;
  border-bottom: 1px solid transparent !important;
}
.chat-v6 .sidebar-link-btn:hover,
.chat-v7 .sidebar-link-btn:hover {
  opacity: 1 !important;
  border-bottom-color: var(--ink, #0c1218) !important;
}

/* === Chat chrome v251 — hide header + thread polish === */
body.chat-hide-topnav > [data-auth-app] > .topnav-app,
body.chat-hide-topnav .topnav-app {
  display: none !important;
}
body.chat-hide-topnav.chat-app-body > [data-auth-app] {
  height: 100% !important;
}
.chat-v6 .sidebar-brand .brand-sub,
.chat-v7 .sidebar-brand .brand-sub {
  display: none !important;
}
.chat-v6 .sidebar-brand .brand-mark,
.chat-v7 .sidebar-brand .brand-mark {
  font-family: "Cinzel", serif !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  font-size: 1.05rem !important;
}
.chat-v6 .chat-item,
.chat-v7 .chat-item {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 0.35rem 0.5rem !important;
  padding: 0.65rem 0.75rem !important;
  border-radius: 0 !important;
  border: 0 !important;
  border-left: 2px solid transparent !important;
  background: transparent !important;
  text-align: left !important;
  position: relative !important;
}
.chat-v6 .chat-item.active,
.chat-v7 .chat-item.active {
  background: #f4f6f5 !important;
  border-left-color: #0c1218 !important;
}
.chat-v6 .chat-item-title,
.chat-v7 .chat-item-title {
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  color: #0c1218 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  grid-column: 1 !important;
}
.chat-v6 .chat-item-ago,
.chat-v7 .chat-item-ago {
  font-style: normal !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.04em !important;
  color: #8a9199 !important;
  grid-column: 1 !important;
}
.chat-v6 .chat-item-del,
.chat-v7 .chat-item-del {
  grid-column: 2 !important;
  grid-row: 1 / span 2 !important;
  opacity: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #8a9199 !important;
  font-size: 1.1rem !important;
  cursor: pointer !important;
  padding: 0.15rem 0.35rem !important;
}
.chat-v6 .chat-item:hover .chat-item-del,
.chat-v7 .chat-item:hover .chat-item-del,
.chat-v6 .chat-item.active .chat-item-del,
.chat-v7 .chat-item.active .chat-item-del {
  opacity: 1 !important;
}
.chat-v6 .sidebar-section-label,
.chat-v7 .sidebar-section-label {
  font-size: 0.62rem !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: #8a9199 !important;
  padding: 0.85rem 0.85rem 0.35rem !important;
}
.chat-v6 .msg.assistant .msg-content,
.chat-v7 .msg.assistant .msg-content {
  line-height: 1.55 !important;
  font-size: 0.98rem !important;
}
.chat-v6 .composer-shell,
.chat-v7 .composer-shell,
.chat-v6 .composer-wrap,
.chat-v7 .composer-wrap {
  border-color: #e5e7eb !important;
  box-shadow: 0 1px 0 rgba(12, 18, 24, 0.04) !important;
}

/* Right-edge Desk opener */
body.chat-app-body .chat-main {
  position: relative !important;
}
body.chat-app-body .desk-edge-btn {
  position: absolute !important;
  right: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 12 !important;
  display: grid !important;
  place-items: center !important;
  width: 2rem !important;
  min-height: 6.5rem !important;
  margin: 0 !important;
  padding: 0.85rem 0.2rem !important;
  border: 1px solid #e2e6e3 !important;
  border-right: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #0c1218 !important;
  cursor: pointer !important;
  box-shadow: -4px 0 16px rgba(12, 18, 24, 0.06) !important;
  writing-mode: vertical-rl !important;
  text-orientation: mixed !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}
body.chat-app-body .desk-edge-btn:hover {
  background: #0c1218 !important;
  color: #fff !important;
  border-color: #0c1218 !important;
}
body.chat-app-body .desk-edge-label {
  display: block !important;
  transform: rotate(180deg) !important;
}
body.chat-app-body .chat-app.rail-open .desk-edge-btn,
body.chat-app-body .desk-edge-btn[hidden],
body.chat-app-body .desk-edge-btn.is-open {
  display: none !important;
}
@media (max-width: 820px) {
  body.chat-app-body .desk-edge-btn {
    top: auto !important;
    bottom: max(5.5rem, calc(env(safe-area-inset-bottom, 0px) + 5rem)) !important;
    transform: none !important;
    min-height: 4.5rem !important;
  }
}

/* === Desk gap fix + idle research animation === */
body.chat-app-body .chat-app.chat-app-3,
body.chat-app-body .chat-app.rail-open {
  column-gap: 0 !important;
  row-gap: 0 !important;
  gap: 0 !important;
}
body.chat-app-body .chat-app > .artifacts-panel,
body.chat-app-body .chat-app.rail-open > .artifacts-panel,
body.chat-app-body .artifacts-panel[hidden] {
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  pointer-events: none !important;
}
body.chat-app-body .chat-app.rail-open > .chat-sidebar {
  grid-column: 1 !important;
  grid-row: 1 !important;
}
body.chat-app-body .chat-app.rail-open > .chat-main {
  grid-column: 2 !important;
  grid-row: 1 !important;
  border-right: 0 !important;
}
body.chat-app-body .chat-app.rail-open > .chat-rail,
body.chat-app-body .chat-app.rail-open > .chat-rail.desk-stage {
  grid-column: 3 !important;
  grid-row: 1 !important;
  border-left: 1px solid #e2e6e3 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: none !important;
  justify-self: stretch !important;
  align-self: stretch !important;
}
body.chat-app-body .chat-app.rail-open .desk-scene-wrap,
body.chat-app-body .chat-app.rail-open .desk-scene {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}
body.chat-app-body .chat-app.rail-open .desk-edge-btn {
  display: none !important;
}

.desk-scene-wrap.is-idle .desk-chrome,
.desk-scene-wrap.is-idle .desk-legend,
.desk-scene-wrap.is-idle .desk-zoom,
.desk-scene-wrap.is-running .desk-chrome,
.desk-scene-wrap.is-running .desk-legend {
  opacity: 0.35 !important;
}
.desk-scene {
  padding-bottom: 6.5rem !important; /* room for legend + stats chrome */
}
.desk-idle {
  height: 100%;
  min-height: 280px;
  display: grid !important;
  place-content: center !important;
  justify-items: center !important;
  gap: 0.45rem !important;
  text-align: center !important;
  padding: 2rem 1.25rem !important;
  color: #0c1218 !important;
}
.desk-idle-orbit {
  position: relative !important;
  width: 9.5rem !important;
  height: 9.5rem !important;
  margin: 0 0 0.85rem !important;
}
.desk-idle-ring {
  position: absolute !important;
  inset: 0 !important;
  border: 1px solid rgba(12, 18, 24, 0.12) !important;
  border-radius: 50% !important;
  animation: deskOrbitSpin 12s linear infinite !important;
}
.desk-idle-ring.r1 { inset: 8% !important; border-style: dashed !important; animation-duration: 16s !important; }
.desk-idle-ring.r2 { inset: 22% !important; animation-direction: reverse !important; animation-duration: 10s !important; }
.desk-idle-ring.r3 { inset: 36% !important; border-color: rgba(12, 18, 24, 0.22) !important; animation-duration: 7s !important; }
.desk-idle-core {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 0.85rem !important;
  height: 0.85rem !important;
  margin: -0.425rem 0 0 -0.425rem !important;
  background: #0c1218 !important;
  border-radius: 50% !important;
  box-shadow: 0 0 0 6px rgba(12, 18, 24, 0.06) !important;
  animation: deskCorePulse 2.4s ease-in-out infinite !important;
}
.desk-idle-sat {
  position: absolute !important;
  width: 0.45rem !important;
  height: 0.45rem !important;
  border-radius: 50% !important;
  background: #3f6b55 !important;
  animation: deskOrbitSpin 9s linear infinite !important;
}
.desk-idle-sat.s1 { left: 50%; top: 8%; margin-left: -0.225rem; background: #0c1218 !important; }
.desk-idle-sat.s2 { left: 8%; top: 55%; margin-top: -0.225rem; background: #8a5a30 !important; animation-duration: 13s !important; animation-direction: reverse !important; }
.desk-idle-sat.s3 { right: 12%; top: 42%; background: #2f7f90 !important; animation-duration: 11s !important; }
.desk-idle-beam {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 42% !important;
  height: 1px !important;
  background: linear-gradient(90deg, rgba(12,18,24,0.45), transparent) !important;
  transform-origin: left center !important;
  animation: deskBeamSweep 2.8s ease-in-out infinite !important;
}
.desk-idle.is-run .desk-idle-beam { animation-duration: 0.9s !important; }
.desk-idle.is-run .desk-idle-core {
  background: #0c1218 !important;
  box-shadow: 0 0 0 8px rgba(12, 18, 24, 0.1), 0 0 0 16px rgba(12, 18, 24, 0.04) !important;
  animation-duration: 1.1s !important;
}
.desk-idle.is-run .desk-idle-ring { border-color: rgba(12, 18, 24, 0.22) !important; }
.desk-idle-sweep {
  display: none !important;
}
.desk-idle.is-run .desk-idle-sweep {
  display: block !important;
  position: absolute !important;
  inset: 10% !important;
  border-radius: 50% !important;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(12,18,24,0.14) 50deg, transparent 80deg) !important;
  animation: deskOrbitSpin 2.2s linear infinite !important;
  pointer-events: none !important;
}
.desk-idle-scanline {
  margin: 0.15rem 0 0 !important;
  font-size: 0.72rem !important;
  color: #0c1218 !important;
  letter-spacing: 0.02em !important;
  font-variant-numeric: tabular-nums !important;
}
.desk-idle-meter {
  width: min(16rem, 72vw) !important;
  height: 4px !important;
  margin: 0.35rem 0 0.1rem !important;
  background: #e2e6e3 !important;
  overflow: hidden !important;
}
.desk-idle-meter-bar {
  display: block !important;
  height: 100% !important;
  width: 4% !important;
  background: #0c1218 !important;
  transition: width 0.8s linear !important;
}
.desk-idle-stages li.is-done {
  color: #0c1218 !important;
  border-color: #c5cbc7 !important;
  background: #f3f5f2 !important;
}
.desk-idle-kicker {
  margin: 0 !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: #8a9199 !important;
  font-weight: 650 !important;
}
.desk-idle-title {
  display: block !important;
  font-size: 1.05rem !important;
  font-weight: 650 !important;
  color: #0c1218 !important;
  letter-spacing: -0.01em !important;
  max-width: 18rem !important;
}
.desk-idle-copy {
  display: block !important;
  max-width: 18rem !important;
  font-size: 0.78rem !important;
  line-height: 1.4 !important;
  color: #5a636b !important;
}
.desk-idle-stages {
  list-style: none !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 0.35rem !important;
  margin: 0.55rem 0 0 !important;
  padding: 0 !important;
}
.desk-idle-stages li {
  font-size: 0.62rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #8a9199 !important;
  border: 1px solid #e2e6e3 !important;
  padding: 0.28rem 0.45rem !important;
  background: #fff !important;
}
.desk-idle-stages li.is-on,
.desk-idle.is-run .desk-idle-stages li:first-child {
  color: #0c1218 !important;
  border-color: #0c1218 !important;
}
.desk-idle.is-error .desk-idle-core { background: #8a2f2f !important; }
.desk-strip-status {
  font-size: 0.74rem !important;
  color: #5a636b !important;
}
@keyframes deskOrbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes deskCorePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.18); opacity: 0.82; }
}
@keyframes deskBeamSweep {
  0% { transform: rotate(0deg); opacity: 0.25; }
  40% { opacity: 0.85; }
  100% { transform: rotate(360deg); opacity: 0.25; }
}

/* === PHONE CHAT v296 — chat-first mobile shell === */
@media (max-width: 900px) {
  :root {
    --chat-vvh: 100dvh;
    --chat-kb: 0px;
  }

  /* Hide site chrome — chat is the app */
  body.chat-app-body > [data-auth-app] > .topnav-app {
    display: none !important;
  }
  body.chat-app-body {
    height: var(--chat-vvh) !important;
    max-height: var(--chat-vvh) !important;
    padding-bottom: var(--chat-kb) !important;
    box-sizing: border-box !important;
  }
  body.chat-app-body > [data-auth-app] {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 0 !important;
  }
  body.chat-app-body > [data-auth-app] > .chat-app,
  body.chat-app-body .chat-app.chat-app-3 {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: 100% !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
  }
  body.chat-app-body .chat-app.sidebar-drawer-open {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  /* Overlay sidebar drawer */
  body.chat-app-body .chat-sidebar,
  body.chat-app-body .chat-v6 .chat-sidebar,
  body.chat-app-body .chat-v7 .chat-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: min(86vw, 320px) !important;
    max-width: 320px !important;
    height: 100% !important;
    max-height: var(--chat-vvh) !important;
    z-index: 4100 !important;
    transform: translateX(-105%) !important;
    transition: transform 0.22s ease !important;
    box-shadow: none !important;
    padding-top: env(safe-area-inset-top, 0px) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    background: #fff !important;
  }
  body.chat-app-body .chat-sidebar.open,
  body.chat-sidebar-open .chat-sidebar {
    transform: translateX(0) !important;
    box-shadow: 12px 0 40px rgba(12, 18, 24, 0.18) !important;
  }
  body.chat-app-body .chat-main {
    grid-column: 1 !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  body.chat-app-body #menuBackdrop.is-open,
  body.chat-app-body .menu-backdrop.is-open {
    z-index: 4050 !important;
    background: rgba(12, 18, 24, 0.35) !important;
    backdrop-filter: blur(2px) !important;
  }

  /* Compact topbar: one scroll row */
  body.chat-app-body .chat-topbar,
  .chat-v6 .chat-topbar,
  .chat-v7 .chat-topbar {
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 0.4rem !important;
    padding: 0.4rem 0.55rem !important;
    padding-left: max(0.55rem, env(safe-area-inset-left)) !important;
    padding-right: max(0.55rem, env(safe-area-inset-right)) !important;
    min-height: 3.1rem !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }
  body.chat-app-body .chat-topbar::-webkit-scrollbar { display: none !important; }
  body.chat-app-body .topbar-nav-btn {
    flex: 0 0 auto !important;
    width: 2.5rem !important;
    min-width: 2.5rem !important;
    height: 2.5rem !important;
    min-height: 2.5rem !important;
  }
  body.chat-app-body .topbar-groups {
    flex: 1 1 auto !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 0.35rem !important;
    min-width: 0 !important;
  }
  body.chat-app-body .topbar-group {
    flex: 0 0 auto !important;
    padding: 0 0.45rem !important;
    border-left: 1px solid #eef1f0 !important;
    gap: 0.1rem !important;
  }
  body.chat-app-body .topbar-group:first-child {
    border-left: 0 !important;
    padding-left: 0 !important;
  }
  body.chat-app-body .topbar-group-label {
    font-size: 0.5rem !important;
    letter-spacing: 0.08em !important;
  }
  body.chat-app-body .topbar-group--planes {
    display: none !important; /* planes live in Desk on phone */
  }
  body.chat-app-body .topbar-group--model {
    flex: 1 1 8rem !important;
    min-width: 7rem !important;
    max-width: 14rem !important;
  }
  body.chat-app-body .work-preset-btn,
  body.chat-app-body .net-mode-chip,
  body.chat-app-body .model-picker-btn {
    min-height: 2.35rem !important;
    height: 2.35rem !important;
    padding: 0 0.55rem !important;
    border-radius: 10px !important;
  }
  body.chat-app-body .work-preset-btn span:not(.caret) {
    font-size: 0.72rem !important;
  }
  body.chat-app-body #optGoLabel {
    max-width: 5.5rem !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  body.chat-app-body .topbar-right { display: none !important; }

  /* Messages */
  body.chat-app-body .chat-stage {
    padding-left: max(0.55rem, env(safe-area-inset-left)) !important;
    padding-right: max(0.55rem, env(safe-area-inset-right)) !important;
  }
  body.chat-app-body .chat-log,
  body.chat-app-body .msg,
  body.chat-app-body .msg-content {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
  body.chat-app-body .msg {
    padding-left: 0.15rem !important;
    padding-right: 0.15rem !important;
  }
  body.chat-app-body .msg-content {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
  }
  body.chat-app-body .msg-content pre,
  body.chat-app-body .msg-content code {
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  body.chat-app-body .empty-hero,
  body.chat-app-body .empty-hero--bare {
    padding: 1rem 0.75rem !important;
  }
  body.chat-app-body .empty-hero h1,
  body.chat-app-body .greek-name {
    font-size: clamp(1.6rem, 8vw, 2.2rem) !important;
  }
  body.chat-app-body .empty-starters {
    gap: 0.4rem !important;
  }
  body.chat-app-body .starter {
    font-size: 0.78rem !important;
    padding: 0.55rem 0.7rem !important;
    max-width: 100% !important;
  }
  body.chat-app-body .empty-hints { display: none !important; }

  /* Composer: attach · input · send — Optimize hidden (use Stack) */
  body.chat-app-body .composer-wrap {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0.45rem 0.55rem max(0.55rem, env(safe-area-inset-bottom)) !important;
    padding-left: max(0.55rem, env(safe-area-inset-left)) !important;
    padding-right: max(0.55rem, env(safe-area-inset-right)) !important;
    border-top: 1px solid #eceff3 !important;
    background: #fff !important;
  }
  body.chat-app-body .native-composer,
  body.chat-app-body .composer.glow,
  body.chat-app-body .chat-v7 .native-composer {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    gap: 0.35rem !important;
    align-items: end !important;
    width: 100% !important;
    border-radius: 1.25rem !important;
    padding: 0.4rem 0.4rem 0.4rem 0.55rem !important;
    box-shadow: 0 4px 18px rgba(12, 18, 24, 0.06) !important;
  }
  body.chat-app-body .composer-opt-go,
  body.chat-app-body #btnComposerOptimize {
    display: none !important;
  }
  body.chat-app-body .native-composer textarea,
  body.chat-app-body #chatInput {
    font-size: 16px !important;
    min-height: 2.5rem !important;
    max-height: 28vh !important;
    padding: 0.55rem 0.2rem !important;
    width: 100% !important;
  }
  body.chat-app-body .composer-attach,
  body.chat-app-body #btnAttachImage {
    width: 2.5rem !important;
    height: 2.5rem !important;
    min-width: 2.5rem !important;
    min-height: 2.5rem !important;
    border-radius: 999px !important;
  }
  body.chat-app-body #chatSend,
  body.chat-app-body .native-composer button#chatSend,
  body.chat-app-body #chatStop,
  body.chat-app-body .native-composer > #chatStop {
    width: 2.45rem !important;
    height: 2.45rem !important;
    min-width: 2.45rem !important;
    min-height: 2.45rem !important;
    border-radius: 12px !important;
    place-items: center !important;
  }
  body.chat-app-body .attach-menu {
    left: 0 !important;
    right: auto !important;
    width: min(92vw, 280px) !important;
    max-height: 50vh !important;
  }

  /* Desk opener: pill above composer */
  body.chat-app-body .desk-edge-btn {
    top: auto !important;
    right: max(0.65rem, env(safe-area-inset-right)) !important;
    bottom: calc(var(--chat-kb, 0px) + max(5.75rem, calc(env(safe-area-inset-bottom, 0px) + 5.25rem))) !important;
    transform: none !important;
    writing-mode: horizontal-tb !important;
    width: auto !important;
    min-height: 0 !important;
    height: 2.35rem !important;
    padding: 0 0.85rem !important;
    border-radius: 999px !important;
    border: 1px solid #d8dde2 !important;
    box-shadow: 0 6px 18px rgba(12, 18, 24, 0.12) !important;
    letter-spacing: 0.06em !important;
    font-size: 0.72rem !important;
  }
  body.chat-app-body .desk-edge-label {
    transform: none !important;
  }

  /* Desk full-screen sheet */
  body.chat-app-body .chat-app.rail-open {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body.chat-app-body .chat-app.rail-open > .chat-main {
    display: none !important;
  }
  body.chat-app-body .chat-app.rail-open > .chat-rail,
  body.chat-app-body .chat-rail.desk-stage {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    max-width: none !important;
    height: var(--chat-vvh) !important;
    z-index: 4300 !important;
    grid-column: 1 !important;
  }

  /* Panels / workforce */
  body.chat-app-body .workforce-panel,
  body.chat-app-body .evidence-panel {
    margin: 0.35rem 0.35rem 0.5rem !important;
    padding: 0.65rem 0.7rem !important;
  }
  body.chat-app-body .model-menu.is-open,
  body.chat-app-body #modelMenu.is-open,
  body.chat-app-body .work-preset-menu {
    left: 0.5rem !important;
    right: 0.5rem !important;
    width: auto !important;
    max-width: none !important;
    max-height: min(70vh, 520px) !important;
  }

  /* Auth gate */
  body.chat-app-body #authGate .desk-auth-card {
    width: min(100%, 420px) !important;
    margin: 0 auto !important;
    padding: 1.25rem 1rem !important;
  }
  body.chat-app-body #authGate {
    padding: max(1rem, env(safe-area-inset-top)) 0.85rem max(1rem, env(safe-area-inset-bottom)) !important;
  }
}

/* Why-this-is-true: always dock over the prompt composer */
body.chat-app-body .composer-wrap {
  position: relative !important;
}
body.chat-app-body .composer-wrap > .prov-pop {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  width: 100% !important;
  max-width: none !important;
  max-height: min(42vh, 340px) !important;
  z-index: 55 !important;
  margin: 0 !important;
  border-radius: 10px 10px 0 0 !important;
  border-top: 1px solid #111 !important;
  box-shadow: none !important;
  background: #fff !important;
}
body.chat-app-body .composer-wrap.prov-open > .composer,
body.chat-app-body .composer-wrap.prov-open > .attach-preview {
  visibility: hidden !important;
  pointer-events: none !important;
}
body.chat-app-body .prov-sent-btn {
  opacity: 0.5 !important;
}
body.chat-app-body .msg-content.prov-ready:hover .prov-sent-btn {
  opacity: 0.9 !important;
}
body.chat-app-body .prov-sent-btn[aria-pressed="true"] {
  opacity: 1 !important;
  background: #e4ebe6 !important;
  color: #111 !important;
}

/* === Chat status bar (above composer) === */
.chat-status-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  margin: 0 0 0.45rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid #e4e7e4;
  border-radius: 10px;
  background: linear-gradient(180deg, #f7f8f6 0%, #f1f3f0 100%);
  color: #4a524c;
  font-size: 0.72rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.chat-status-bar .chat-status-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #6f8f7a;
  flex: 0 0 auto;
}
.chat-status-bar.is-busy .chat-status-dot {
  background: #c9852a;
  box-shadow: 0 0 0 3px rgba(201, 133, 42, 0.18);
  animation: chatStatusPulse 1.1s ease-in-out infinite;
}
.chat-status-bar.is-wait .chat-status-dot { background: #6b7280; }
.chat-status-phase {
  font-weight: 650;
  color: #1d2420;
}
.chat-status-bar.is-busy .chat-status-phase { color: #8a5a12; }
.chat-status-bar.is-wait .chat-status-phase { color: #4b5563; }
.chat-status-bit { color: #5c655e; white-space: nowrap; }
.chat-status-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c5cbc4;
  flex: 0 0 auto;
}
@keyframes chatStatusPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.85); opacity: 0.65; }
}
html[data-theme="black"] .chat-status-bar {
  border-color: #2a2a2a;
  background: linear-gradient(180deg, #141414 0%, #101010 100%);
  color: #a8aea9;
}
html[data-theme="black"] .chat-status-phase { color: #e8ebe7; }
html[data-theme="black"] .chat-status-bit { color: #9aa39c; }
html[data-theme="black"] .chat-status-sep { background: #3a3a3a; }

/* === Composer queue / stop / copy / files v324 === */
.composer-context {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 0.4rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid #e2e6e3;
  background: #f7f8f7;
}
.composer-context[hidden] { display: none !important; }
.composer-context-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}
.composer-context-row[hidden] { display: none !important; }
.composer-context-kicker {
  flex: 0 0 auto;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b737a;
  font-weight: 650;
}
.composer-context-chips,
.composer-queue-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  min-width: 0;
  flex: 1 1 auto;
}
.composer-file-chip,
.composer-queue-pill {
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.68rem;
  padding: 0.18rem 0.4rem;
  border: 1px solid #e2e6e3;
  background: #fff;
  color: #0c1218;
}
.composer-file-chip.is-pending { border-color: #0c1218; }
.composer-file-chip.is-workspace { color: #334; background: #eef1ef; }
.composer-queue-pill { border-style: dashed; color: #333; }
.composer-queue-clear {
  flex: 0 0 auto;
  border: 1px solid #d7dcd8;
  background: #fff;
  color: #333;
  font: inherit;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.4rem;
  cursor: pointer;
}
.composer-queue-clear:hover { border-color: #0c1218; color: #0c1218; }

/* Send + Stop share one action slot — same size, same radius, never both */
body.chat-app-body .native-composer > #chatSend,
body.chat-app-body .composer.glow > #chatSend,
body.chat-app-body .native-composer > #chatStop,
body.chat-app-body .composer.glow > #chatStop,
.chat-v7 .native-composer button#chatSend,
.chat-v7 .native-composer > #chatStop,
.composer.glow > #chatStop,
.native-composer > #chatStop {
  flex: 0 0 auto !important;
  width: 2.45rem !important;
  height: 2.45rem !important;
  min-width: 2.45rem !important;
  min-height: 2.45rem !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #0c1218 !important;
  color: #fff !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer !important;
  align-self: flex-end !important;
  margin: 0 0 0.15rem !important;
  box-shadow: none !important;
  line-height: 1 !important;
  transition: filter 0.12s ease, transform 0.12s ease !important;
}
body.chat-app-body .native-composer > #chatSend:hover,
body.chat-app-body .composer.glow > #chatSend:hover,
body.chat-app-body .native-composer > #chatStop:hover,
.chat-v7 .native-composer button#chatSend:hover,
.composer.glow > #chatStop:hover {
  filter: brightness(1.1) !important;
  transform: none !important;
}
body.chat-app-body .native-composer > #chatSend:disabled {
  opacity: 0.38 !important;
  cursor: default !important;
  filter: none !important;
}
body.chat-app-body .native-composer > #chatSend svg,
body.chat-app-body .native-composer > #chatStop svg,
.composer-stop svg,
#chatSend svg {
  display: block !important;
  width: 1rem !important;
  height: 1rem !important;
}
/* Default: only Send. Generating: only Stop. */
#chatStop,
.composer > #chatStop,
.native-composer > #chatStop,
body.chat-app-body .composer > #chatStop,
body.chat-app-body .native-composer > #chatStop {
  display: none !important;
}
#chatStop[hidden],
.composer > #chatStop[hidden],
body.chat-app-body .composer > #chatStop[hidden] {
  display: none !important;
}
.composer.is-generating > #chatSend,
body.chat-app-body .composer.is-generating > #chatSend {
  display: none !important;
}
.composer.is-generating > #chatStop,
.composer.is-generating > #chatStop:not([hidden]),
body.chat-app-body .composer.is-generating > #chatStop,
body.chat-app-body .composer.is-generating > #chatStop:not([hidden]) {
  display: grid !important;
}

/* === Claim dossier — organized file structure === */
#deskDetail.desk-dossier,
.desk-detail.desk-dossier {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  padding: 0 !important;
  background: #fafbfa !important;
}
#deskDetail.desk-dossier[hidden] { display: none !important; }
.desk-dossier-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 0.85rem !important;
  padding: 1.1rem 1.15rem 0.95rem !important;
  background: #fff !important;
  border-bottom: 1px solid #e6ebe7 !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
}
.desk-dossier-head > div { min-width: 0 !important; flex: 1 1 auto !important; }
.desk-dossier-head .desk-detail-kicker,
#deskDetail .desk-detail-kicker {
  margin: 0 0 0.4rem !important;
  font-size: 0.6rem !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: #6a7370 !important;
  font-weight: 650 !important;
}
.desk-dossier-head #deskDetailTitle,
#deskDetail.desk-dossier #deskDetailTitle {
  margin: 0 !important;
  font-size: 1.05rem !important;
  line-height: 1.4 !important;
  font-weight: 550 !important;
  letter-spacing: 0.01em !important;
  color: #0c1218 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
#deskDetail.desk-dossier .desk-detail-meta {
  display: grid !important;
  gap: 0.55rem !important;
  padding: 0.85rem 1.15rem !important;
  background: #fff !important;
  border-bottom: 1px solid #e6ebe7 !important;
}
#deskDetail.desk-dossier .desk-detail-meta[hidden] { display: none !important; }
.dossier-status {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.35rem !important;
}
.dossier-status .wf-verdict {
  font-size: 0.62rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  padding: 0.22rem 0.45rem !important;
  border: 1px solid #0c1218 !important;
  background: #0c1218 !important;
  color: #fff !important;
  font-weight: 650 !important;
}
.dossier-status .wf-verdict.contested,
.dossier-status .wf-verdict.unsupported {
  background: #fff !important;
  color: #0c1218 !important;
}
.dossier-pill {
  font-size: 0.62rem !important;
  letter-spacing: 0.04em !important;
  padding: 0.22rem 0.45rem !important;
  border: 1px solid #dde3df !important;
  background: #f4f6f5 !important;
  color: #1a221e !important;
  font-variant-numeric: tabular-nums !important;
}
.dossier-models {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.28rem !important;
}
.dossier-models > span {
  font-size: 0.58rem !important;
  letter-spacing: 0.04em !important;
  padding: 0.15rem 0.4rem !important;
  border: 1px solid #e2e6e3 !important;
  background: #fafafa !important;
  color: #333 !important;
  font-family: "IBM Plex Mono", ui-monospace, monospace !important;
}
.desk-dossier-body,
#deskDetailBody.desk-dossier-body {
  display: grid !important;
  gap: 0 !important;
  padding: 0.55rem 0 0.35rem !important;
  flex: 1 1 auto !important;
}
.dossier-sec {
  margin: 0 !important;
  padding: 1rem 1.15rem 1.1rem !important;
  background: #fff !important;
  border-bottom: 1px solid #eef1ef !important;
}
.dossier-sec-head {
  display: flex !important;
  align-items: baseline !important;
  gap: 0.55rem !important;
  margin: 0 0 0.7rem !important;
}
.dossier-n {
  flex: 0 0 auto !important;
  font-family: "IBM Plex Mono", ui-monospace, monospace !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.06em !important;
  color: #8a938e !important;
  font-weight: 600 !important;
}
.dossier-sec-head .desk-section-label {
  margin: 0 !important;
  color: #0c1218 !important;
  letter-spacing: 0.12em !important;
  font-size: 0.62rem !important;
}
.dossier-sec-body { display: grid !important; gap: 0.7rem !important; }
.dossier-prose {
  margin: 0 !important;
  font-size: 0.84rem !important;
  line-height: 1.55 !important;
  color: #1a221e !important;
}
.dossier-note {
  display: grid !important;
  gap: 0.2rem !important;
  padding: 0.5rem 0.6rem !important;
  background: #f6f8f7 !important;
  border-left: 2px solid #0c1218 !important;
}
.dossier-note > span {
  font-size: 0.58rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: #6a7370 !important;
  font-weight: 650 !important;
}
.dossier-note > p {
  margin: 0 !important;
  font-size: 0.76rem !important;
  line-height: 1.4 !important;
  color: #1a221e !important;
}
.dossier-empty {
  margin: 0 !important;
  font-size: 0.74rem !important;
  color: #6a7370 !important;
  line-height: 1.4 !important;
}
.desk-brief-evidence,
.desk-brief-sources {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  gap: 0.5rem !important;
}
.dossier-proof-row,
.dossier-source-row {
  padding: 0.5rem 0.55rem !important;
  border: 1px solid #e6ebe7 !important;
  background: #fafbfa !important;
}
.dossier-proof-top {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 0.35rem 0.6rem !important;
}
.dossier-proof-top em {
  font-style: normal !important;
  font-size: 0.6rem !important;
  letter-spacing: 0.04em !important;
  color: #5a6570 !important;
  font-family: "IBM Plex Mono", ui-monospace, monospace !important;
}
.dossier-proof-row blockquote,
.dossier-source-row blockquote {
  margin: 0.35rem 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: 0.74rem !important;
  line-height: 1.4 !important;
  color: #2a332f !important;
  font-style: italic !important;
}
.dossier-source-row > p {
  margin: 0.3rem 0 0 !important;
  font-size: 0.72rem !important;
  line-height: 1.35 !important;
  color: #2a332f !important;
}
.dossier-risk {
  color: #6a4a42 !important;
}
#deskDetail.desk-dossier .desk-detail-links,
#deskDetail.desk-dossier .desk-detail-votes {
  display: grid !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 0 1.25rem !important;
}
#deskDetail.desk-dossier .desk-detail-links[hidden] { display: none !important; }
#deskDetail.desk-dossier .desk-evidence-card,
#deskDetail.desk-dossier .dossier-claim-card {
  margin: 0 !important;
  padding: 0.8rem 0.85rem !important;
  border: 1px solid #e6ebe7 !important;
  background: #fafbfa !important;
  display: grid !important;
  gap: 0.45rem !important;
}
#deskDetail.desk-dossier .desk-evidence-jump {
  gap: 0.25rem !important;
  white-space: normal !important;
  text-align: left !important;
}
#deskDetail.desk-dossier .desk-evidence-jump strong {
  font-size: 0.84rem !important;
  line-height: 1.4 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  display: block !important;
}
#deskDetail.desk-dossier .desk-evidence-jump em {
  font-size: 0.64rem !important;
  color: #5a6570 !important;
  background: transparent !important;
  white-space: normal !important;
}
.dossier-claim-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.35rem !important;
  align-items: center !important;
}
.dossier-open-src,
.dossier-signals {
  margin: 0 !important;
  font-size: 0.72rem !important;
  line-height: 1.4 !important;
  color: #5a6570 !important;
}
#deskDetail.desk-dossier .desk-vote-stack {
  gap: 0.75rem !important;
}
#deskDetail.desk-dossier .desk-vote.is-card {
  margin: 0 !important;
  padding: 0.8rem 0.85rem !important;
  border: 1px solid #e6ebe7 !important;
  background: #fafbfa !important;
  display: grid !important;
  gap: 0.4rem !important;
}
#deskDetail.desk-dossier .desk-vote-points {
  margin: 0.25rem 0 0 !important;
  padding-left: 1.15rem !important;
  display: grid !important;
  gap: 0.35rem !important;
}
#deskDetail.desk-dossier .desk-vote-points li {
  font-size: 0.78rem !important;
  line-height: 1.45 !important;
}
#deskDetail.desk-dossier .desk-dossier-link {
  display: inline-flex !important;
  align-self: flex-start !important;
  margin: 0.85rem 1.15rem 0.25rem !important;
  padding: 0.5rem 0.85rem !important;
  border: 1px solid #0c1218 !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  color: #0c1218 !important;
  background: #fff !important;
}
#deskDetail.desk-dossier .desk-evidence ul {
  gap: 0.45rem !important;
  padding-left: 1.1rem !important;
}
#deskDetail.desk-dossier .desk-evidence li {
  font-size: 0.8rem !important;
  line-height: 1.45 !important;
}
#deskDetail.desk-dossier .desk-detail-links button {
  display: grid !important;
  gap: 0.3rem !important;
  width: 100% !important;
  padding: 0.75rem 0.85rem !important;
  border: 1px solid #e6ebe7 !important;
  background: #fafbfa !important;
  text-align: left !important;
  white-space: normal !important;
}
#deskDetail.desk-dossier .desk-detail-links button strong {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  line-height: 1.4 !important;
}
#deskDetail.desk-dossier .desk-detail-links button em {
  white-space: normal !important;
  line-height: 1.35 !important;
  background: transparent !important;
}
#deskDetail.desk-dossier .desk-dossier-link[hidden] { display: none !important; }
#deskDetail.desk-dossier .desk-evidence .desk-section-label {
  margin: 0.35rem 0 0.15rem !important;
  font-size: 0.56rem !important;
  color: #8a938e !important;
}
.dossier-endpoints {
  display: grid !important;
  gap: 0.4rem !important;
  margin-top: 0.35rem !important;
}
.dossier-endpoints > div {
  display: grid !important;
  gap: 0.12rem !important;
  padding: 0.45rem 0.5rem !important;
  border: 1px solid #e6ebe7 !important;
  background: #fafbfa !important;
}
.dossier-endpoints span {
  font-size: 0.56rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: #6a7370 !important;
  font-weight: 650 !important;
}
.dossier-endpoints strong {
  font-size: 0.76rem !important;
  font-weight: 500 !important;
  color: #0c1218 !important;
  line-height: 1.35 !important;
}
.dossier-status .wf-verdict.supports { background: #0c1218 !important; color: #fff !important; }
.dossier-status .wf-verdict.related { background: #fff !important; color: #0c1218 !important; }
.dossier-status .wf-verdict.contests { background: #fff !important; color: #0c1218 !important; border-style: dashed !important; }

/* Clickable edge joints on Desk map */
.desk-joint { cursor: pointer !important; }
.desk-joint-core { transition: r 0.12s ease, opacity 0.12s ease; }
.desk-joint:hover .desk-joint-core,
.desk-joint.is-selected .desk-joint-core { opacity: 1 !important; }
.desk-joint:hover .desk-joint-ring,
.desk-joint.is-selected .desk-joint-ring { opacity: 0.95 !important; }
.desk-edge.is-selected { filter: brightness(1.05); }
.desk-edge-hit { pointer-events: stroke !important; }

.msg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.45rem;
  opacity: 0.72;
}
.msg:hover .msg-actions,
.msg:focus-within .msg-actions { opacity: 1; }
.msg-action-btn {
  border: 1px solid #e2e6e3;
  background: #fff;
  color: #0c1218;
  font: inherit;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.22rem 0.45rem;
  cursor: pointer;
}
.msg-action-btn:hover { border-color: #0c1218; }
.msg-action-btn.msg-desk-graph-btn.has-graph {
  border-color: #0c1218;
  background: #0c1218;
  color: #fff;
}
.msg-action-btn.msg-desk-graph-btn.is-showing {
  background: #1a9a6c;
  border-color: #1a9a6c;
  color: #fff;
}
.msg-action-dim { font-size: 0.62rem; color: #888; }


/* Front-page Cinzel brand lettering sitewide */
:root {
  --display: "Cinzel", "Times New Roman", serif !important;
}
.mark,
.topnav .mark,
a.mark,
.greek-name,
.page-title,
.chat-brand,
.desk-auth-card h1,
.empty-hero h1,
.site-brand {
  font-family: "Cinzel", "Times New Roman", serif !important;
  font-weight: 500 !important;
  text-transform: none !important;
}
