/* Valentina source: styles.css */
/* Exact Inter assets used by the Founder-approved NodeX portal. */
@font-face {
  font-family: "Inter";
  src: url("/assets/home/ca157063339ac4ad418f214f3abfed119b0798ab4d377386ce5c9e5a7a435ebd.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/home/71d5ee93cc1e9f1d520a3a8b66456de18c7879d8df09d57fcd2eaff75fef0075.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/home/6e9e020a25f9b56d418f2c085b1d3c09725a4da23fe693a5b463064606732190.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+1F00-1FFF;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/home/1be3448e292fbf05ffe176fe1e43f135013d50b1e7d324ad1a558f623d3bb6f6.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/home/5c66f9e07e90c6d4ac4922cc68d60de26c17b1858e677fb5e603fce3952b3ff2.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/home/34b9c504cab7a73e37b746343a449132e56cf7b5481af2cb81dc74dcff25c956.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/home/3100e775e8616cd2611beecfa23a4263d7037586789b43f035236a2e6fbd4c62.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/home/ca157063339ac4ad418f214f3abfed119b0798ab4d377386ce5c9e5a7a435ebd.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/home/71d5ee93cc1e9f1d520a3a8b66456de18c7879d8df09d57fcd2eaff75fef0075.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/home/6e9e020a25f9b56d418f2c085b1d3c09725a4da23fe693a5b463064606732190.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+1F00-1FFF;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/home/1be3448e292fbf05ffe176fe1e43f135013d50b1e7d324ad1a558f623d3bb6f6.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/home/5c66f9e07e90c6d4ac4922cc68d60de26c17b1858e677fb5e603fce3952b3ff2.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/home/34b9c504cab7a73e37b746343a449132e56cf7b5481af2cb81dc74dcff25c956.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/home/3100e775e8616cd2611beecfa23a4263d7037586789b43f035236a2e6fbd4c62.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  font-family: "Inter", Arial, sans-serif;
  font-synthesis: none;
  --black: #000000;
  --surface: #000000;
  --surface-raised: #000000;
  --text: #f4f4f4;
  --muted: #969696;
  --quiet: #7a7a7a;
  --valentina-magenta: #ff0060;
  --blue: #b8b8b8;
  --blue-bright: #f4f4f4;
  --blue-soft: transparent;
  --line: transparent;
  --line-strong: transparent;
  --danger: #f4f4f4;
  --header-height: 64px;
  --truth-height: 36px;
  --nav-width: 272px;
  --message-font-size: 13px;
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
  box-shadow: none !important;
}

html,
body,
#app {
  min-width: 0;
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  overflow: hidden;
  font-size: 13px;
  color: var(--text);
  background: #000000;
}

button,
textarea,
select {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

button:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
a:focus-visible,
[tabindex="-1"]:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: white;
  background: #f4f4f4;
  color: #000000;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.app-shell {
  display: grid;
  grid-template:
    "top top top" var(--header-height)
    "nav main context" minmax(0, 1fr)
    "truth truth truth" var(--truth-height)
    / var(--nav-width) minmax(0, 1fr) 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  transition: grid-template-columns 180ms ease;
}

.app-shell[data-context-open="true"] {
  grid-template-columns: var(--nav-width) minmax(0, 1fr) 326px;
}

.topbar {
  position: relative;
  z-index: 30;
  grid-area: top;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 24px;
  background: #000000;
  border-bottom: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand__lockup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.brand__logo {
  display: block;
  width: auto;
  height: 27px;
  object-fit: contain;
}

.brand__name {
  font-size: 18px;
  font-weight: 620;
  font-kerning: normal;
  letter-spacing: 0.26em;
}

.brand__maker {
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
}

.brand-mark {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-mark--large {
  width: 50px;
  height: 50px;
  margin-bottom: 24px;
  transform: scale(1.8);
}

.topbar__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.1em;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--blue);
}

.state-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--quiet);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.state-picker select {
  padding: 6px 22px 6px 8px;
  color: var(--muted);
  background: transparent;
  border: 0;
}

.ecosystem-switcher {
  position: relative;
}

.ecosystem-trigger {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 10px;
  padding: 0 2px 0 14px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-left: 0;
}

.ecosystem-trigger__symbol {
  color: var(--muted);
  font-size: 16px;
}

.ecosystem-trigger__copy {
  display: grid;
  gap: 1px;
  text-align: left;
}

.ecosystem-trigger__copy small {
  color: var(--quiet);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.15em;
}

.ecosystem-trigger__copy strong {
  font-size: 11px;
  font-weight: 620;
}

.ecosystem-trigger__chevron {
  color: var(--quiet);
  transition: transform 160ms ease;
}

.ecosystem-switcher[data-ecosystem-open="true"] .ecosystem-trigger__chevron {
  transform: rotate(180deg);
}

.ecosystem-menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 9px);
  right: 0;
  width: min(390px, calc(100vw - 24px));
  padding: 18px;
  background: #000000;
  border: 0;
  box-shadow: 0 24px 70px rgb(0 0 0 / 58%);
}

.ecosystem-menu__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 0 2px 14px;
}

.ecosystem-menu__heading strong {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ecosystem-menu__heading span,
.ecosystem-menu__status {
  color: var(--quiet);
  font-size: 10px;
}

.ecosystem-products {
  border-block: 0;
}

.ecosystem-product {
  display: flex;
  width: 100%;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 2px;
  color: var(--text);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 0;
}

.ecosystem-product:last-child {
  border-bottom: 0;
}

.ecosystem-product > span {
  display: grid;
  gap: 5px;
}

.ecosystem-product strong {
  font-size: 13px;
  font-weight: 620;
}

.ecosystem-product small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.ecosystem-product em {
  flex: 0 0 auto;
  color: var(--quiet);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.12em;
}

.ecosystem-product[data-product-state="CURRENT"] strong,
.ecosystem-product[data-product-state="CURRENT"] em,
.ecosystem-product[data-product-state="AVAILABLE"] em {
  color: var(--text);
}

.ecosystem-product[data-product-state="AVAILABLE"]:hover {
  color: var(--blue-bright);
}

.ecosystem-product:disabled {
  cursor: default;
  opacity: 0.64;
}

.ecosystem-menu__status {
  margin: 14px 2px 0;
  line-height: 1.45;
}

.context-trigger,
.icon-button {
  padding: 8px;
  color: var(--muted);
  background: transparent;
  border: 0;
}

.context-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}

.nav-toggle {
  display: none;
}

.navigation {
  position: relative;
  grid-area: nav;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 28px 20px 18px;
  overflow: auto;
  background: #000000;
  border-right: 0;
}

.navigation__resize {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  bottom: 0;
  width: 24px;
  cursor: ew-resize;
  touch-action: none;
}

.navigation__resize::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  content: "";
  background: transparent;
  transition: background 140ms ease;
}

.navigation__resize:hover::after,
.navigation__resize:focus-visible::after,
.app-shell[data-nav-resizing="true"] .navigation__resize::after {
  background: #404040;
}

.app-shell[data-nav-resizing="true"] {
  cursor: ew-resize;
  user-select: none;
}

.new-chat {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 13px 4px;
  color: var(--text);
  font-weight: 650;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
}

.new-chat span {
  color: var(--muted);
  font-size: 18px;
  font-weight: 300;
}

.new-chat:hover,
.new-chat:hover span {
  color: var(--blue-bright);
}

.navigation__section {
  margin-top: 32px;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.pinned-list,
.recent-list,
.capabilities ul {
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}

.pinned-list button,
.recent-list button {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 6px 11px 16px;
  color: var(--muted);
  text-align: left;
  background: transparent;
  border: 0;
}

.pinned-list button::before,
.recent-list button::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 0;
  width: 2px;
  content: "";
  background: transparent;
}

.pinned-list button[aria-current="page"],
.recent-list button[aria-current="page"] {
  color: var(--text);
}

.pinned-list button[aria-current="page"]::before,
.recent-list button[aria-current="page"]::before {
  background: transparent;
}

.pinned-list small,
.recent-list small,
.capabilities small {
  color: var(--quiet);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.recent-empty {
  padding: 12px 6px;
  color: var(--quiet);
  font-size: 12px;
}

.capabilities,
.view-settings {
  margin-top: 22px;
  color: var(--muted);
  font-size: 12px;
}

.capabilities summary,
.view-settings summary {
  padding: 12px 4px;
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.capability-label {
  display: flex;
  width: 100%;
  justify-content: space-between;
  padding: 8px 4px;
  color: var(--quiet);
  text-align: left;
}

.view-settings__control {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px 12px;
  align-items: center;
  padding: 10px 4px 4px;
  color: var(--quiet);
  font-size: 11px;
}

.view-settings__control output {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.view-settings__control input {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--blue);
}

.app-shell[data-nav-docked="true"] .navigation {
  align-items: center;
  padding-inline: 12px;
}

.app-shell[data-nav-docked="true"] .new-chat {
  width: 44px;
  justify-content: center;
  padding-inline: 0;
  overflow: hidden;
  color: transparent;
  white-space: nowrap;
}

.app-shell[data-nav-docked="true"] .new-chat span {
  color: var(--muted);
}

.app-shell[data-nav-docked="true"] .navigation__section,
.app-shell[data-nav-docked="true"] .capabilities,
.app-shell[data-nav-docked="true"] .view-settings,
.app-shell[data-nav-docked="true"] .identity > span:last-child {
  display: none;
}

.app-shell[data-nav-docked="true"] .identity {
  justify-content: center;
  width: 100%;
}

.identity {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.identity strong,
.identity small {
  display: block;
}

.identity strong {
  color: var(--text);
}

.identity small {
  margin-top: 2px;
  color: var(--quiet);
}

.identity__avatar,
.message__author-mark {
  display: block;
  width: 22px;
  height: auto;
  flex: 0 0 22px;
  color: var(--muted);
  font-size: 11px;
}

.message__avatar {
  display: block;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  object-fit: contain;
}

.conversation {
  grid-area: main;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  padding: 30px clamp(26px, 5vw, 76px) 14px;
  overflow: hidden;
}

.conversation__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 24px;
}

.conversation__heading h1 {
  margin: 7px 0 0;
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 620;
  letter-spacing: -0.025em;
}

.conversation__heading > p {
  max-width: 260px;
  margin: 0;
  color: var(--quiet);
  font-size: 11px;
  text-align: right;
}

.conversation__stream {
  max-width: 920px;
  width: 100%;
  min-height: 0;
  margin: 0 auto;
  overflow-y: auto;
  scrollbar-color: var(--line-strong) transparent;
}

.message {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
}

.message + .message {
  border-top: 1px solid var(--line);
}

.message--assistant .message__avatar {
  background: transparent;
}

.message__meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 9px;
}

.message__meta strong {
  font-size: 13px;
}

.message__meta time {
  color: var(--quiet);
  font-size: 10px;
}

.history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px;
  align-items: center;
}

.history-row__open {
  display: grid !important;
  min-width: 0;
  justify-items: start !important;
}

.history-row__open span,
.history-row__open small {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-row__pin {
  width: auto !important;
  padding: 8px 4px !important;
  color: var(--quiet) !important;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.history-row__pin::before {
  display: none;
}

.history-more button {
  justify-content: center;
  padding-left: 6px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.message__content > p:not(.message__meta),
.message__content li,
.assistant-prose p {
  color: #dedede;
  font-size: var(--message-font-size);
  line-height: 1.68;
}

.message__content > p:not(.message__meta) {
  margin: 0;
}

.message__content ul {
  padding-left: 19px;
  margin: 13px 0 0;
}

.assistant-prose {
  display: grid;
  gap: 10px;
}

.assistant-prose h3,
.assistant-prose h4 {
  margin: 8px 0 0;
  color: #f4f4f4;
  letter-spacing: -.015em;
}

.assistant-prose h3 {
  font-size: 15px;
  font-weight: 650;
}

.assistant-prose h4 {
  font-size: 13px;
  font-weight: 620;
}

.assistant-prose p,
.assistant-prose ul,
.assistant-prose ol {
  margin: 0;
}

.assistant-prose ul,
.assistant-prose ol {
  padding-left: 20px;
}

.assistant-prose li + li {
  margin-top: 5px;
}

.assistant-prose strong {
  color: #fff;
  font-weight: 650;
}

.assistant-prose code {
  color: #c8c8c8;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: .92em;
}

.assistant-prose pre {
  max-width: 100%;
  margin: 2px 0;
  padding: 14px;
  overflow: auto;
  border: 1px solid #2a2a2a;
  background: #080808;
}

.message__delivery,
.receipt-summary {
  margin-top: 9px !important;
  color: var(--quiet) !important;
  font-size: 10px !important;
  overflow-wrap: anywhere;
}

.receipt-summary {
  color: var(--muted) !important;
  letter-spacing: 0.02em;
}

.receipt-summary:hover {
  color: var(--blue-bright) !important;
}

.receipt-details {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
}

.receipt-details summary {
  width: fit-content;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.receipt-details dl {
  margin: 10px 0 0;
}

.receipt-details dl div {
  display: grid;
  grid-template-columns: minmax(92px, 0.28fr) minmax(0, 1fr);
  gap: 10px;
  padding: 3px 0;
}

.receipt-details dt {
  color: var(--quiet);
}

.receipt-details dd {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.state {
  display: grid;
  min-height: 100%;
  place-content: center;
  justify-items: center;
  padding: 44px 18px;
  text-align: center;
}

.state h2 {
  max-width: 560px;
  margin: 10px 0;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 620;
  letter-spacing: -0.025em;
}

.state > p:last-child,
.state--loading p,
.state--error > p {
  max-width: 480px;
  margin: 4px 0;
  color: var(--muted);
  line-height: 1.55;
}

.state--error .eyebrow {
  color: var(--muted);
}

.workspace-surface {
  width: min(820px, 100%);
  min-height: 100%;
  margin: 0 auto;
  padding: 48px 0 32px;
}

.workspace-surface__heading {
  padding: 0 0 20px;
  border-bottom: 1px solid #202020;
}

.workspace-surface__heading > .eyebrow {
  margin: 0 0 12px;
  color: var(--blue-bright);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
}

.workspace-surface__heading > div {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.workspace-surface__heading h2 {
  margin: 0;
  color: #f4f4f4;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 520;
  letter-spacing: -.04em;
}

.workspace-surface__observed {
  margin: 8px 0 0;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.workspace-surface__refresh {
  padding: 5px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  color: #9a9a9a;
  background: transparent;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.workspace-surface__refresh:hover,
.workspace-surface__refresh:focus-visible {
  border-bottom-color: var(--blue-bright);
  color: #fff;
}

.workspace-surface__list {
  display: grid;
}

.workspace-card {
  display: block;
  border-bottom: 1px solid #171717;
}

.workspace-card__body,
.workspace-card__action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  width: 100%;
  min-height: 88px;
  padding: 20px 2px;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  transition: background-color 140ms ease, padding 140ms ease;
}

.workspace-card__action {
  cursor: pointer;
}

.workspace-card:hover > .workspace-card__body,
.workspace-card__action:hover,
.workspace-card__action:focus-visible {
  padding-inline: 12px;
  background: #0b0b0b;
}

.workspace-card__action:focus-visible {
  outline: 1px solid var(--blue-bright);
  outline-offset: -1px;
}

.workspace-card h3 {
  margin: 0;
  color: #ededed;
  font-size: 14px;
  font-weight: 570;
  letter-spacing: -.01em;
}

.workspace-card p {
  max-width: 650px;
  margin: 7px 0 0;
  color: #777;
  font-size: 11px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.workspace-card__status {
  justify-self: end;
  color: var(--blue-bright);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .12em;
  text-align: right;
  text-transform: uppercase;
}

.workspace-surface__loading,
.workspace-surface__empty {
  display: grid;
  min-height: 240px;
  place-content: center;
  justify-items: center;
  color: #777;
  font-size: 11px;
  text-align: center;
}

.workspace-surface__pulse {
  width: 7px;
  height: 7px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 18px color-mix(in srgb, var(--blue-bright) 70%, transparent);
  animation: workspace-pulse 1.15s ease-in-out infinite;
}

.conversation-history {
  width: min(820px, 100%);
  min-height: 100%;
  margin: 0 auto;
  padding: 48px 0 32px;
}

.conversation-history__heading {
  display: flex;
  gap: 24px;
  align-items: end;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid #202020;
}

.conversation-history__heading .eyebrow {
  margin-bottom: 12px;
  color: var(--blue-bright);
}

.conversation-history__heading h2 {
  margin: 0;
  color: #f4f4f4;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 520;
  letter-spacing: -.04em;
}

.conversation-history__heading p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--quiet);
  font-size: 12px;
}

.conversation-history__heading button,
.conversation-history__more {
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  color: #9a9a9a;
  background: transparent;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.conversation-history__heading button:hover,
.conversation-history__heading button:focus-visible,
.conversation-history__more:hover,
.conversation-history__more:focus-visible {
  border-bottom-color: var(--blue-bright);
  color: #fff;
}

.conversation-history__messages {
  display: grid;
  gap: 1px;
}

.history-message {
  padding: 22px 2px;
  border-bottom: 1px solid #171717;
}

.history-message--assistant {
  padding-left: clamp(16px, 4vw, 52px);
}

.history-message p {
  max-width: 720px;
  margin: 7px 0 0;
  color: #c8c8c8;
  font-size: var(--message-font-size);
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.history-message .history-message__author {
  margin: 0;
  color: var(--blue-bright);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.history-message time {
  display: block;
  margin-top: 10px;
  color: var(--quiet);
  font-size: 11px;
}

.conversation-history__state {
  display: grid;
  min-height: 240px;
  place-content: center;
  color: #777;
  font-size: 11px;
  text-align: center;
}

.conversation-history__more {
  display: block;
  margin: 22px auto 0;
}

@keyframes workspace-pulse {
  50% { opacity: .32; transform: scale(.72); }
}

@media (prefers-reduced-motion: reduce) {
  .workspace-surface__pulse { animation: none; }
  .workspace-card__body,
  .workspace-card__action { transition: none; }
}

.text-action {
  margin-top: 22px;
  padding: 8px 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 0;
}

.text-action:hover {
  color: var(--blue-bright);
}

.composer {
  width: min(920px, 100%);
  margin: 12px auto 0;
  padding: 8px 0 6px;
  background: #000000;
  border: 0;
  border-radius: 0;
}

.composer textarea {
  display: block;
  width: 100%;
  min-height: 32px;
  resize: none;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 12px;
  line-height: 1.45;
}

.composer textarea::placeholder {
  color: var(--quiet);
}

.composer__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--quiet);
  font-size: 10px;
}

.composer__meta button {
  padding: 5px 8px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.composer__meta button:hover:not(:disabled) {
  color: var(--blue-bright);
}

.composer__meta button:disabled {
  color: var(--quiet);
  background: transparent;
}

.composer__notice {
  min-height: 14px;
  margin: 7px 0 0;
  color: var(--quiet);
  font-size: 10px;
  text-align: center;
}

/* User-controlled conversation history without a permanently occupied column. */
.navigation__conversations {
  min-height: 0;
  margin-top: 20px;
}

.navigation__conversations[open] {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.navigation__conversations > summary {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 10px;
  color: var(--quiet);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  list-style: none;
}

.navigation__conversations > summary::-webkit-details-marker {
  display: none;
}

.navigation__conversations > summary .tabler-icon {
  width: 15px;
  height: 15px;
  color: var(--quiet);
  transition: transform 160ms ease;
}

.navigation__conversations:not([open]) > summary .tabler-icon {
  transform: rotate(-90deg);
}

.navigation__conversations .navigation__section--pinned {
  margin-top: 12px;
}

.navigation__conversations .navigation__section--recent {
  min-height: 0;
  margin-top: 14px;
  overflow-y: auto;
}

.navigation__conversations[open] .navigation__section--recent {
  flex: 1 1 auto;
}

.navigation,
.navigation__section--recent,
.pinned-list,
.recent-list {
  scrollbar-width: none;
}

.navigation::-webkit-scrollbar,
.navigation__section--recent::-webkit-scrollbar,
.pinned-list::-webkit-scrollbar,
.recent-list::-webkit-scrollbar {
  width: 0;
  height: 0;
  background: transparent;
}

@media (min-width: 901px) {
  .app-shell[data-nav-docked="true"] .navigation__conversations {
    display: none !important;
  }
}

/* Account identity belongs to the sidebar, not to a boxed card. */
.account-trigger,
.account-trigger:hover,
.account-trigger:focus-visible,
.account-trigger[aria-expanded="true"] {
  border-color: transparent;
  border-radius: 0;
  background: transparent;
}

/* Keep long histories inside their own usable viewport, above account identity. */
@media (min-width: 901px) {
  .navigation__conversations[open] {
    flex: 1 1 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }

  .navigation__conversations[open]::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
  }

  .navigation__conversations .navigation__section--pinned {
    max-height: none;
    overflow: visible;
  }

  .navigation__conversations .navigation__section--recent {
    min-height: 0;
    padding-bottom: 12px;
    overflow: visible;
  }

  .navigation__maker {
    margin: 8px 10px 2px;
  }

  .account-trigger {
    flex: 0 0 56px;
    margin-top: 0;
  }

  .app-shell[data-nav-docked="true"] .navigation__conversations,
  .app-shell[data-nav-docked="true"] .navigation__maker {
    display: none !important;
  }

  .interaction-mode--top {
    padding: 2px;
  }

  .interaction-mode--top button {
    min-height: 28px;
    padding-inline: 12px;
    font-size: 11px;
  }
}

.interaction-mode {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 0;
  width: fit-content;
  max-width: 100%;
  border-radius: 0;
  background: transparent;
}

.interaction-mode button {
  min-height: 28px;
  padding: 0 12px 0 0;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.interaction-mode button[aria-pressed="true"] {
  color: var(--text);
  background: transparent;
  font-weight: 650;
}

.interaction-mode button:hover {
  color: var(--blue-bright);
}

.research-scope {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  color: var(--muted);
}

.research-scope summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--text);
  cursor: pointer;
}

.research-scope dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  margin: 8px 0;
}

.research-scope dl div {
  min-width: 0;
}

.research-scope dt,
.research-scope dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.research-scope dt {
  color: var(--quiet);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.research-result {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.research-result h3,
.research-result h4,
.research-result p,
.research-result ul,
.research-result ol {
  margin: 0;
}

.research-result section {
  display: grid;
  gap: 8px;
}

.research-result ul,
.research-result ol {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}

.research-result li {
  padding-left: 4px;
}

.research-result li small {
  display: block;
  margin-top: 3px;
  color: var(--quiet);
  overflow-wrap: anywhere;
}

.research-result a {
  color: var(--muted);
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}

.research-result a:hover {
  color: var(--blue-bright);
}

.research-result code {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.research-result__id {
  color: var(--quiet);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.research-result__source-note {
  color: var(--quiet);
  font-size: 11px;
  line-height: 1.45;
}

.runtime-alert {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
  color: #dedede;
  font-size: 11px;
  line-height: 1.45;
}

.runtime-alert[hidden] {
  display: none;
}

.runtime-alert .text-action {
  flex: 0 0 auto;
  margin-top: 0;
}

.app-shell[data-health="READY"] .status-dot {
  background: #bdbdbd;
}

.app-shell[data-health="UNAVAILABLE"] .status-dot,
.app-shell[data-health="MALFORMED"] .status-dot,
.app-shell[data-health="AUTH_REQUIRED"] .status-dot,
.app-shell[data-health="FORBIDDEN"] .status-dot {
  background: var(--danger);
}

.context {
  position: relative;
  z-index: 20;
  grid-area: context;
  min-width: 0;
  padding: 25px 22px;
  overflow: auto;
  visibility: hidden;
  opacity: 0;
  background: rgb(8 8 8 / 96%);
  border-left: 1px solid var(--line);
  transform: translateX(24px);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    visibility 160ms;
}

.app-shell[data-context-open="true"] .context {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
}

.context__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.context__facts {
  margin: 28px 0;
}

.context__facts div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 6px 0;
  font-size: 12px;
}

.context dt {
  color: var(--quiet);
}

.context dd {
  margin: 0;
  color: var(--muted);
}

.context section {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.context section h2 {
  margin: 10px 0 4px;
  font-size: 14px;
  font-weight: 570;
}

.context section > p:last-child {
  margin: 0;
  color: var(--quiet);
  font-size: 11px;
  line-height: 1.5;
}

.scrim {
  display: none;
  position: fixed;
  z-index: 15;
  inset: var(--header-height) 0 var(--truth-height);
  background: rgb(0 0 0 / 54%);
  border: 0;
}

.truth-bar {
  position: relative;
  z-index: 35;
  grid-area: truth;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--quiet);
  background: var(--black);
  border-top: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.truth-bar strong {
  color: var(--muted);
  letter-spacing: 0.12em;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1099px) {
  :root {
    --nav-width: 232px;
  }

  .app-shell {
    grid-template-columns: var(--nav-width) minmax(0, 1fr) 0;
  }

  .app-shell[data-context-open="true"] {
    grid-template-columns: var(--nav-width) minmax(0, 1fr) 300px;
  }

  .conversation {
    padding-inline: 30px;
  }

  .brand__maker,
  .state-picker {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 58px;
  }

  body {
    overflow: auto;
  }

  .app-shell,
  .app-shell[data-context-open="true"] {
    grid-template:
      "top" var(--header-height)
      "main" minmax(0, 1fr)
      "truth" var(--truth-height)
      / minmax(0, 1fr);
    min-height: 100dvh;
  }

  .topbar {
    gap: 10px;
    padding-inline: 12px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .brand__name {
    font-size: 15px;
    letter-spacing: 0.24em;
  }

  .topbar__status {
    margin-left: auto;
    font-size: 9px;
  }

  .ecosystem-trigger {
    min-height: 36px;
    padding-left: 10px;
  }

  .ecosystem-trigger__copy {
    display: none;
  }

  .ecosystem-menu {
    position: fixed;
    top: calc(var(--header-height) + 8px);
    right: 12px;
  }

  .context-trigger {
    font-size: 0;
  }

  .context-trigger span {
    font-size: 18px;
  }

  .navigation,
  .context {
    position: fixed;
    z-index: 25;
    top: var(--header-height);
    bottom: var(--truth-height);
    width: min(88vw, 330px);
    visibility: hidden;
    opacity: 0;
    box-shadow: 24px 0 70px rgb(0 0 0 / 46%);
  }

  .navigation {
    left: 0;
    transform: translateX(-102%);
    transition:
      opacity 160ms ease,
      transform 160ms ease,
      visibility 160ms;
  }

  .navigation__resize {
    display: none;
  }

  .app-shell[data-nav-docked="true"] .navigation {
    align-items: stretch;
    padding-inline: 20px;
  }

  .app-shell[data-nav-docked="true"] .new-chat {
    width: 100%;
    justify-content: flex-start;
    padding-inline: 4px;
    color: var(--text);
  }

  .app-shell[data-nav-docked="true"] .navigation__section,
  .app-shell[data-nav-docked="true"] .capabilities,
  .app-shell[data-nav-docked="true"] .view-settings {
    display: block;
  }

  .app-shell[data-nav-docked="true"] .identity > span:last-child {
    display: inline;
  }

  .app-shell[data-nav-open="true"] .navigation {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
  }

  .context {
    right: 0;
    left: auto;
    width: min(92vw, 360px);
    transform: translateX(102%);
  }

  .app-shell[data-nav-open="true"] .scrim,
  .app-shell[data-context-open="true"] .scrim {
    display: block;
  }

  .conversation {
    padding: 22px 18px 10px;
  }

  .conversation__heading {
    align-items: start;
    padding-bottom: 14px;
  }

  .conversation__heading > p {
    display: none;
  }

  .message {
    gap: 12px;
    padding: 16px 0;
  }

  .truth-bar span {
    max-width: 72vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .topbar__status {
    display: none;
  }

  .ecosystem-switcher {
    margin-left: auto;
  }
}

@media (max-width: 420px) {
  .product-switcher--brand > summary .brand__logo {
    height: 22px;
  }

  .brand-mark {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
    transform: scale(0.82);
  }

  .brand__name {
    font-size: 13px;
    letter-spacing: 0.18em;
  }

  .topbar__status span:last-child {
    max-width: 74px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .conversation {
    padding-inline: 14px;
  }

  .conversation__heading h1 {
    font-size: 20px;
  }

  .message {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .message__avatar {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .message__content > p:not(.message__meta),
  .message__content li {
    font-size: var(--message-font-size);
  }

  .composer {
    border-radius: 11px;
  }

  .composer__meta span {
    max-width: 190px;
  }

}

@media (max-width: 600px) {
  .interaction-mode {
    width: 100%;
  }

  .interaction-mode button {
    flex: 1 1 0;
  }

  .research-scope dl {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Commercial shell: the runtime keeps its verified semantics, while product UI exposes only
   the two canonical controls (navigation and account) and a compact conversation surface. */
.legacy-control,
.legacy-control[hidden],
.context,
.truth-bar,
.navigation__resize,
.conversation__heading,
.research-scope {
  display: none !important;
}

.app-shell,
.app-shell[data-context-open="true"] {
  grid-template:
    "top" 58px
    "main" minmax(0, 1fr)
    / minmax(0, 1fr);
  background: #000;
}

.topbar {
  position: relative;
  grid-area: top;
  gap: 12px;
  padding: 0 18px;
  border: 0;
  background: #000;
}

.nav-toggle {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  padding: 0;
}

.menu-icon {
  display: grid;
  width: 16px;
  gap: 3px;
}

.menu-icon i {
  display: block;
  width: 16px;
  height: 1px;
  background: #d8d8d8;
}

.brand {
  gap: 10px;
}

.brand-mark {
  width: 27px;
  height: 27px;
  flex-basis: 27px;
}

.brand__name {
  font-size: 15px;
  letter-spacing: .22em;
}

.brand__maker {
  color: #858585;
  font-size: 10px;
}

.interaction-mode--top {
  position: static;
  margin-left: auto;
  padding: 3px;
  border: 1px solid #242424;
  border-radius: 999px;
  background: #111;
  transform: none;
}

.interaction-mode--top button {
  min-height: 30px;
  padding: 0 15px;
  border-radius: 999px;
  color: #9b9b9b;
  font-size: 12px;
}

.interaction-mode--top button[aria-pressed="true"] {
  color: #f5f5f5;
  background: #1d1d1d;
}

.interaction-mode--top button:hover {
  color: var(--blue-bright);
}

.product-switcher {
  position: relative;
  flex: 0 0 auto;
}

.product-switcher summary {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  padding: 0 10px 0 7px;
  border: 1px solid #242424;
  border-radius: 999px;
  color: #f4f4f4;
  background: #0d0d0d;
  cursor: pointer;
  list-style: none;
}

.product-switcher--brand > summary {
  min-height: 36px;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.product-switcher--brand > summary .brand-mark img {
  width: 100%;
  height: 100%;
}

.product-switcher--brand > summary .brand__logo {
  width: auto;
  height: 27px;
}

.product-switcher--brand > nav {
  right: auto;
  left: 0;
}

.product-switcher summary::-webkit-details-marker {
  display: none;
}

.product-switcher summary::after {
  color: #737373;
  content: "⌄";
  font-size: 11px;
}

.product-switcher summary img,
.product-switcher nav img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.product-switcher summary strong,
.product-switcher nav span {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .14em;
}

.product-switcher nav {
  position: absolute;
  z-index: 90;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: 174px;
  padding: 7px;
  border: 1px solid #242424;
  border-radius: 12px;
  background: rgb(8 8 8 / 98%);
  box-shadow: 0 18px 48px rgb(0 0 0 / 60%);
}

.product-switcher:not([open]) nav {
  display: none;
}

.product-switcher nav a {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  border-radius: 8px;
  color: #d7d7d7;
  text-decoration: none;
}

.product-switcher nav a:hover,
.product-switcher nav a:focus-visible,
.product-switcher nav a[aria-current="page"] {
  color: #fff;
  background: #171717;
}

.product-switcher nav a[aria-current="page"] span {
  color: var(--blue-bright);
}

.account-trigger {
  position: fixed;
  z-index: 64;
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: calc(10px + env(safe-area-inset-left));
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #303030;
  border-radius: 50%;
  background: #080808;
}

.account-trigger img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-trigger > [data-account-placeholder] {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #b8b8b8;
}

.account-trigger > [data-account-placeholder] .tabler-icon {
  width: 22px;
  height: 22px;
}

.account-trigger [hidden],
.account-profile [hidden],
.account-actions [hidden] {
  display: none !important;
}

.navigation {
  position: fixed;
  z-index: 61;
  top: 0;
  bottom: 0;
  left: 0;
  width: 220px;
  padding: 16px 12px 18px;
  visibility: hidden;
  opacity: 0;
  overflow-y: auto;
  border: 0;
  background: #080808;
  transform: translateX(-100%);
  transition: transform 180ms ease, opacity 180ms ease, visibility 180ms ease;
}

.app-shell[data-nav-open="true"] .navigation {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
}

.new-chat {
  min-height: 44px;
  padding: 7px 6px;
  gap: 9px;
  border: 0;
  color: #dedede;
  font-size: 12.5px;
  font-weight: 560;
}

.navigation__section {
  margin-top: 22px;
}

.recent-empty {
  padding-inline: 6px;
  font-size: 10.5px;
}

.capabilities {
  margin-top: 16px;
}

.capabilities summary {
  min-height: 42px;
  padding: 12px 6px;
  border: 0;
}

.product-nav {
  display: grid;
  gap: 1px;
  margin-top: 18px;
}

.product-nav > span {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  padding: 7px 6px;
  color: #8f8f8f;
  font-size: 12px;
}

.product-nav > span[aria-current="page"] strong {
  color: #f4f4f4;
}

.product-nav small {
  color: var(--quiet);
  font-size: 10px;
  font-weight: 500;
}

.product-nav > span[aria-current="page"] small {
  color: var(--blue-bright);
}

.navigation__maker {
  margin: auto 6px 0;
  padding-top: 20px;
  color: var(--quiet);
  font-size: 11px;
}

.conversation {
  grid-area: main;
  grid-template-rows: minmax(0, 1fr) auto;
  padding: 0 22px 22px;
  background: #000;
}

.conversation__stream {
  width: min(820px, 100%);
  max-width: 820px;
}

.state {
  min-height: 100%;
  padding: 32px 18px;
}

.state h2 {
  margin: 0;
  color: #f2f2f2;
  font-size: clamp(21px, 2.1vw, 27px);
  font-weight: 500;
  letter-spacing: -.025em;
}

.connection-state {
  margin: 12px 0 0 !important;
  color: var(--quiet) !important;
  font-size: 10px !important;
  font-weight: 650;
  letter-spacing: .14em;
}

.composer {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.composer__row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px 38px;
  gap: 4px;
  align-items: center;
  min-height: 52px;
  padding: 6px 7px;
  border: 1px solid #292929;
  border-radius: 27px;
  background: #181818;
}

.tabler-icon {
  display: block;
  width: 20px;
  height: 20px;
}

.composer__attach,
.composer__voice {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #b7b7b7;
  background: transparent;
}

.composer__attach:hover,
.composer__voice:hover {
  color: #f2f2f2;
  background: #262626;
}

.composer__voice[data-listening="true"] {
  color: var(--blue-bright);
}

.composer textarea {
  min-height: 22px;
  max-height: 112px;
  padding: 2px 0;
  overflow-y: auto;
  scrollbar-width: none;
  color: #f2f2f2;
  font-size: 14px;
  line-height: 1.3;
}

.composer textarea::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.composer__send {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #050505;
  background: #ededed;
  font-size: 20px;
  font-weight: 700;
}

.composer__send:disabled {
  color: #777;
  background: #303030;
  opacity: 1;
}

.composer__send .tabler-icon {
  width: 19px;
  height: 19px;
  stroke-width: 2;
}

.runtime-alert {
  justify-content: center;
  margin-top: 7px;
}

.account-panel {
  position: fixed;
  z-index: 63;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(404px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  padding: 0;
  visibility: hidden;
  opacity: 0;
  overflow-y: auto;
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 16px;
  background: rgb(8 8 8 / 96%);
  transform: translate(-50%, -48%);
  transition: transform 160ms ease, opacity 160ms ease, visibility 160ms ease;
}

.app-shell[data-account-open="true"] .account-panel {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, -50%);
}

.account-panel__head {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  text-align: center;
}

.account-panel__head strong {
  grid-column: 2;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.account-close {
  grid-column: 3;
}

.account-back {
  grid-column: 1;
  font-size: 22px;
}

.account-profile {
  display: grid;
  justify-items: start;
  padding: 10px 24px 16px;
}

.app-shell[data-authenticated="false"] .account-profile {
  display: none;
}

.account-signin-copy {
  margin: 4px 22px 14px;
  color: #aaa;
  font-size: 11px;
  line-height: 1.55;
}

.account-signin-copy span {
  display: block;
  margin-top: 8px;
  color: #707070;
}

.account-profile img {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: cover;
}

.account-profile__placeholder {
  display: grid;
  width: 82px;
  height: 82px;
  margin: 0 !important;
  place-items: center;
  border: 1px solid #2d2d2d;
  border-radius: 50%;
  color: #a8a8a8 !important;
  background: #0b0b0b;
}

.account-profile__placeholder .tabler-icon {
  width: 40px;
  height: 40px;
}

.account-profile strong {
  margin-top: 10px;
  font-size: 18px;
}

.account-profile span {
  margin-top: 2px;
  color: #8d8d8d;
  font-size: 11.5px;
}

.account-actions {
  display: grid;
}

.account-actions--signin {
  padding: 0 22px 22px;
}

.account-actions a,
.account-actions button {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
  border: 0;
  color: #f0f0f0;
  background: transparent;
  font-size: 13.5px;
  text-align: left;
  text-decoration: none;
}

.account-actions b {
  color: #555;
  font-size: 18px;
}

.account-authenticated {
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #303030 transparent;
}

.account-menu {
  display: grid;
  padding: 0 22px 20px;
}

.account-menu button {
  display: grid;
  width: 100%;
  min-height: 50px;
  grid-template-columns: 22px minmax(0, 1fr) 18px;
  gap: 14px;
  align-items: center;
  padding: 0 2px;
  border: 0;
  color: #f4f4f4;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}

.account-menu button:hover,
.account-menu button:focus-visible {
  color: var(--blue-bright);
}

.account-menu i {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--blue-bright);
  font-style: normal;
}

.account-menu i .tabler-icon {
  width: 21px;
  height: 21px;
  stroke-width: 1.8;
}

.account-menu b {
  color: #666;
  font-size: 18px;
  font-weight: 400;
  text-align: right;
}

.account-section {
  padding: 14px 24px 24px;
}

.account-section__copy {
  margin: 6px 0 16px;
  color: #aaa;
  font-size: 11.5px;
  line-height: 1.55;
}

.account-password-form {
  display: grid;
  gap: 12px;
}

.account-password-form label {
  display: grid;
  gap: 6px;
  color: #aaa;
  font-size: 10.5px;
  letter-spacing: .04em;
}

.account-password-form input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 8px;
  outline: 0;
  color: #fff;
  background: #111;
  font: inherit;
}

.account-password-form input:focus {
  border-color: #707070;
}

.account-password-form .account-action {
  margin-top: 2px;
}

.account-password-form .account-action:disabled {
  opacity: .5;
  pointer-events: none;
}

.account-password-status {
  min-height: 16px;
  margin: 0;
  color: #d7d7d7;
  font-size: 11px;
  line-height: 1.45;
}

.account-row {
  display: grid;
  min-height: 54px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid rgb(255 255 255 / 7%);
}

.account-row:last-of-type {
  border-bottom: 0;
}

.account-row strong,
.account-row small {
  display: block;
}

.account-row strong {
  color: #fff;
  font-size: 12.5px;
}

.account-row small {
  margin-top: 3px;
  color: #929292;
  font-size: 10.5px;
}

.account-row > b {
  max-width: 164px;
  overflow-wrap: anywhere;
  color: #f2f2f2;
  font-size: 10.5px;
  font-weight: 750;
  text-align: right;
}

.account-switch {
  display: flex;
  width: 30px;
  height: 16px;
  align-items: center;
  justify-content: flex-start;
  padding: 1px;
  border: 1px solid #565656;
  border-radius: 999px;
  background: transparent;
}

.account-switch span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c0c0c0;
}

.account-switch.is-on {
  justify-content: flex-end;
  border-color: #606060;
  background: #303030;
}

.account-switch.is-on span {
  background: #f4f4f4;
}

.account-accent {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #b8b8b8;
}

.account-action {
  min-height: 38px;
  margin-top: 16px;
  padding: 0 12px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 8px;
  color: #fff;
  background: transparent;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .09em;
}

.account-action:hover,
.account-action:focus-visible {
  border-color: #707070;
  color: #fff;
  background: #111;
}

.account-action--primary {
  border-color: #565656;
  color: #f4f4f4;
  background: transparent;
}

.account-action--primary:hover,
.account-action--primary:focus-visible {
  border-color: #8a8a8a;
  color: #fff;
  background: #111;
}

.account-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.app-shell[data-account-large-text="true"] .account-menu button {
  font-size: 15.5px;
}

.app-shell[data-account-large-text="true"] .account-row strong {
  font-size: 14px;
}

.app-shell[data-account-compact="false"] .account-menu button,
.app-shell[data-account-compact="false"] .account-row {
  min-height: 58px;
}

.app-shell[data-account-reduce-motion="true"] .account-panel {
  transition: none;
}

.scrim {
  z-index: 60;
  background: rgb(0 0 0 / 58%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.app-shell[data-nav-open="true"] .scrim,
.app-shell[data-account-open="true"] .scrim {
  display: block;
}

@media (max-width: 700px) {
  .app-shell,
  .app-shell[data-context-open="true"] {
    grid-template:
      "top" 104px
      "main" minmax(0, 1fr)
      / minmax(0, 1fr);
  }

  .topbar {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    grid-template-rows: 52px 44px;
    gap: 0 8px;
    padding: 0 10px 8px;
  }

  .nav-toggle {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    margin: 0;
  }

  .brand__maker {
    display: none;
  }

  .interaction-mode--top {
    grid-column: 1 / -1;
    grid-row: 2;
    width: min(280px, 100%);
    margin: 0;
    justify-self: center;
  }

  .interaction-mode--top button {
    flex: 1 1 0;
    padding-inline: 9px;
    font-size: 10.5px;
  }

  .account-trigger {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .conversation {
    padding: 0 12px 12px;
  }

  .composer__row {
    min-height: 48px;
  }
}

/* Valentina commercial navigation and canonical account surface. */
.navigation__brand {
  display: block;
  width: auto;
  max-width: 174px;
  height: 26px;
  object-fit: contain;
}

.navigation__identity {
  display: grid;
  gap: 3px;
}

.navigation__identity small {
  color: #8f8f8f;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .04em;
}

.navigation__head {
  min-height: 44px;
  align-items: center;
}

.new-chat {
  display: flex;
  width: 100%;
  align-items: center;
  border: 1px solid #292929;
  border-radius: 10px;
  background: transparent;
}

.new-chat:hover,
.new-chat:focus-visible {
  border-color: #4a4a4a;
  color: #fff;
  background: #111;
}

.contextual-destinations {
  display: grid;
  gap: 3px;
  margin-top: 10px;
}

.capability-group {
  margin-top: 14px;
}

.capability-group > .eyebrow,
.navigation__resources > .eyebrow,
.navigation__section > .eyebrow {
  padding: 0 10px;
  color: var(--valentina-magenta);
  font-size: 9px;
  letter-spacing: .14em;
}

.navigation__resources {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #1f1f1f;
}

.contextual-destinations button {
  display: grid;
  width: 100%;
  min-height: 38px;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  color: #b9b9b9;
  background: transparent;
  text-align: left;
}

.contextual-destinations button:hover,
.contextual-destinations button:focus-visible {
  color: #fff;
  background: #111;
}

.contextual-destinations button[aria-current="page"] {
  color: #fff;
  background: #151515;
}

.contextual-destinations button:disabled,
.contextual-destinations button[aria-disabled="true"] {
  color: #565656;
  background: transparent;
  cursor: default;
  opacity: 1;
}

.contextual-destinations button:disabled .tabler-icon,
.contextual-destinations button[aria-disabled="true"] .tabler-icon {
  color: #565656;
}

.contextual-destinations .tabler-icon,
.new-chat .tabler-icon {
  width: 18px;
  height: 18px;
  color: var(--valentina-magenta);
}

.account-trigger {
  position: static;
  display: grid;
  width: 100%;
  height: 56px;
  min-height: 56px;
  grid-template-columns: 38px minmax(0, 1fr) 24px;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding: 8px;
  overflow: visible;
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 11px;
  color: #f4f4f4;
  background: #0d0d0d;
  text-align: left;
}

.account-trigger:hover,
.account-trigger:focus-visible,
.account-trigger[aria-expanded="true"] {
  border-color: #3a3a3a;
  background: #151515;
}

.account-trigger__avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #333;
  border-radius: 50%;
  background: #080808;
}

.account-trigger__avatar > span,
.account-trigger__avatar > img {
  width: 100%;
  height: 100%;
}

.account-trigger__avatar > span {
  display: grid;
  place-items: center;
}

.account-trigger__avatar > img {
  display: block;
  object-fit: cover;
}

.account-trigger__identity {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.account-trigger__identity strong,
.account-trigger__identity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-trigger__identity strong {
  color: #fff;
  font-size: 12px;
  font-weight: 760;
}

.account-trigger__identity small {
  color: #929292;
  font-size: 9.5px;
}

.account-trigger > b {
  color: #8e8e8e;
  font-size: 11px;
  letter-spacing: 1px;
}

.project-create {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid #292929;
  border-radius: 12px;
  background: transparent;
}

.project-create[hidden] {
  display: none !important;
}

.project-create label {
  display: grid;
  gap: 6px;
  color: #aaa;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.project-create input,
.project-create textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 8px;
  outline: 0;
  color: #fff;
  background: #0b0b0b;
  resize: vertical;
}

.project-create input:focus,
.project-create textarea:focus {
  border-color: #707070;
}

.project-create__status {
  min-height: 16px;
  margin: 0;
  color: #c9c9c9;
  font-size: 11px;
}

@media (min-width: 901px) {
  .app-shell,
  .app-shell[data-context-open="true"] {
    grid-template:
      "nav top" 58px
      "nav main" minmax(0, 1fr)
      / 264px minmax(0, 1fr);
  }

  .topbar {
    grid-area: top;
    border-bottom: 0;
  }

  .topbar .product-switcher--brand {
    visibility: hidden;
  }

  .rail {
    display: none !important;
  }

  .navigation,
  .app-shell[data-nav-open="true"] .navigation {
    position: relative;
    z-index: 40;
    top: auto;
    bottom: auto;
    left: auto;
    grid-area: nav;
    display: flex;
    width: auto;
    min-width: 0;
    height: 100vh;
    padding: 12px 12px 14px;
    visibility: visible;
    opacity: 1;
    overflow: hidden;
    border-right: 1px solid #1f1f1f;
    background: #070707;
    transform: none;
  }

  .navigation__head > button,
  .navigation__resize {
    display: none !important;
  }

  .navigation__section--pinned {
    margin-top: 18px;
  }

  .navigation__section--recent {
    min-height: 0;
    margin-top: 14px;
    overflow-y: auto;
  }

  .conversation {
    grid-area: main;
  }

  .account-panel {
    z-index: 75;
    top: auto;
    bottom: 80px;
    left: 12px;
    width: 352px;
    max-height: calc(100vh - 104px);
    border-color: #292929;
    border-radius: 12px;
    background: rgb(8 8 8 / 98%);
    transform: translateY(10px);
  }

  .app-shell[data-account-open="true"] .account-panel {
    transform: none;
  }

  .app-shell[data-nav-open="true"] .scrim {
    display: none;
  }

  .app-shell[data-account-open="true"] .scrim {
    display: block;
  }
}

@media (max-width: 900px) {
  .navigation {
    display: flex;
    flex-direction: column;
  }

  .account-trigger {
    margin-top: auto;
  }
}

/* Readable canonical lockups at product sizes. */
.brand__logo {
  width: 200px;
  max-width: min(200px, calc(100vw - 88px));
  height: auto;
}

.navigation__head {
  min-height: 62px;
}

.navigation > .new-chat {
  margin-top: 10px;
}

.history-row__actions,
.conversation-history__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-row__delete,
.conversation-history__delete {
  color: #737373 !important;
}

.history-row__delete:hover,
.history-row__delete:focus-visible,
.conversation-history__delete:hover,
.conversation-history__delete:focus-visible {
  color: #f4f4f4 !important;
}

.navigation__brand {
  width: 220px;
  max-width: 100%;
  height: auto;
}

/* Canonical Valentina accent: only small navigation titles and icons. */
.capability-group > .eyebrow,
.navigation__resources > .eyebrow,
.navigation__section > .eyebrow {
  color: var(--valentina-magenta);
  font-size: 9px;
}

.contextual-destinations .tabler-icon,
.new-chat .tabler-icon {
  color: var(--valentina-magenta);
}

.contextual-destinations button:disabled,
.contextual-destinations button[aria-disabled="true"],
.contextual-destinations button:disabled .tabler-icon,
.contextual-destinations button[aria-disabled="true"] .tabler-icon {
  color: #565656;
  background: transparent;
  cursor: default;
  opacity: 1;
}

.brand__logo {
  height: 38px;
}

.navigation__brand {
  max-width: 220px;
  height: 38px;
}

@media (max-width: 430px) {
  .brand__logo {
    height: 32px;
  }

  .navigation__brand {
    max-width: 196px;
    height: 34px;
  }
}

.message {
  display: block;
  padding: 14px 0;
}

.message + .message {
  border: 0;
}

.message__avatar,
.message__author-mark {
  display: none;
}

.message__content {
  width: min(100%, 720px);
}

.message--user .message__content {
  width: fit-content;
  max-width: min(78%, 620px);
  margin-left: auto;
  padding: 10px 15px;
  border-radius: 18px;
  background: #202020;
}

.message--assistant .message__content {
  margin-right: auto;
}

.message__content > p:not(.message__meta) {
  color: #ededed;
  font-size: var(--message-font-size);
  line-height: 1.65;
}

.receipt-summary {
  display: none;
}

.receipt-details {
  display: none;
  margin-top: 12px;
  padding: 12px 0;
  color: #777;
}

.receipt-details[open] {
  display: block;
}

.receipt-details > summary {
  display: none;
}

.message-actions {
  display: flex;
  gap: 4px;
  margin-top: 9px;
}

.message-actions button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  border: 0;
  color: #989898;
  background: transparent;
}

.message-actions button:hover {
  color: #ededed;
}

.message-actions svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 430px) {
  .brand__name {
    font-size: 12px;
    letter-spacing: .17em;
  }

  .brand-mark {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }

  .interaction-mode--top button {
    padding-inline: 7px;
  }

  .interaction-mode--top button[data-interaction-mode="research"] {
    font-size: 10.5px;
  }
}

@media (min-width: 701px) {
  .app-shell,
  .app-shell[data-context-open="true"] {
    grid-template:
      "nav top" 58px
      "nav main" minmax(0, 1fr)
      / 54px minmax(0, 1fr);
  }

  .topbar {
    grid-area: top;
  }

  .nav-toggle {
    display: none;
  }

  .navigation,
  .app-shell[data-nav-open="true"] .navigation {
    position: relative;
    z-index: 30;
    grid-area: nav;
    top: auto;
    bottom: auto;
    width: 54px;
    padding: 12px 7px 64px;
    visibility: visible;
    opacity: 1;
    overflow: hidden;
    border-right: 1px solid #1f1f1f;
    transform: none;
  }

  .new-chat {
    width: 40px;
    min-height: 40px;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    color: transparent;
    white-space: nowrap;
  }

  .new-chat .tabler-icon {
    flex: 0 0 21px;
    width: 21px;
    height: 21px;
    color: #d8d8d8;
  }

  .new-chat > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .navigation__section,
  .capabilities,
  .product-nav,
  .navigation__maker {
    display: none;
  }

  .rail-products {
    display: grid;
    gap: 5px;
    margin-top: 8px;
  }

  .rail-products button {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0;
    border: 0;
    color: #8a8a8a;
    background: transparent;
    font-size: 12px;
    font-weight: 700;
  }

  .rail-products button[aria-current="page"] {
    color: var(--blue-bright);
  }

  .rail-products .tabler-icon {
    width: 21px;
    height: 21px;
  }

  .brand {
    margin-left: 2px;
  }
}

@media (max-width: 700px) {
  .rail-products {
    display: none;
  }
}

/* Canonical navigation: one product, one rail, one contextual panel. */
.app-shell,
.app-shell[data-context-open="true"] {
  grid-template:
    "rail top" 58px
    "rail main" minmax(0, 1fr)
    / 48px minmax(0, 1fr);
}

.topbar {
  grid-area: top;
}

.rail {
  position: relative;
  z-index: 62;
  grid-area: rail;
  display: flex;
  min-width: 48px;
  flex-direction: column;
  align-items: center;
  padding: 9px 4px 8px;
  border-right: 1px solid #171717;
  background: #000;
  transition: box-shadow 150ms ease;
}

.rail__primary,
.rail__secondary {
  display: grid;
  gap: 4px;
}

.rail__secondary {
  margin-top: auto;
}

.rail button {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 9px;
  color: #d7d7d7;
  background: transparent;
}

.rail button:hover,
.rail button:focus-visible {
  color: #fff;
  background: #171717;
}

.rail button::after {
  position: absolute;
  z-index: 80;
  top: 50%;
  left: calc(100% + 9px);
  padding: 6px 8px;
  visibility: hidden;
  opacity: 0;
  border: 1px solid #252525;
  border-radius: 6px;
  color: #f2f2f2;
  background: #111;
  content: attr(data-tooltip);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 100ms ease, visibility 100ms ease;
  white-space: nowrap;
}

.rail button[data-tooltip]:hover::after,
.rail button[data-tooltip]:focus-visible::after {
  visibility: visible;
  opacity: 1;
}

.rail .tabler-icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.7;
  transition: transform 110ms ease;
}

.rail button:hover .tabler-icon,
.rail button:focus-visible .tabler-icon {
  transform: scale(1.14);
}

.rail .account-trigger {
  position: relative;
  z-index: auto;
  bottom: auto;
  left: auto;
  width: 34px;
  height: 34px;
  margin: 3px 0;
  border-color: #282828;
}

.rail__more {
  display: none !important;
}

.rail__drag-handle {
  position: absolute;
  z-index: 3;
  top: 58px;
  right: -4px;
  bottom: 0;
  width: 8px;
  cursor: ew-resize;
  touch-action: none;
}

.navigation .navigation__resize {
  display: block !important;
}

.navigation,
.app-shell[data-nav-open="true"] .navigation {
  position: fixed;
  z-index: 61;
  top: 58px;
  bottom: 0;
  left: 48px;
  width: var(--nav-width, 260px);
  padding: 14px 12px 18px;
  visibility: hidden;
  opacity: 0;
  overflow-y: auto;
  border: 0;
  border-right: 1px solid #1b1b1b;
  background: #080808;
  transform: translateX(-16px);
  transition: transform 150ms ease, opacity 150ms ease, visibility 150ms ease;
}

.app-shell[data-nav-open="true"] .navigation {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
}

.navigation__head {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  color: #a3a3a3;
  font-size: 10px;
  letter-spacing: .14em;
}

.navigation__head button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 0;
  color: #9a9a9a;
  background: transparent;
}

.navigation__head .tabler-icon {
  width: 18px;
  height: 18px;
}

.contextual-destinations,
.mobile-more-actions {
  display: grid;
  gap: 2px;
  margin-top: 8px;
}

.contextual-destinations[hidden],
.mobile-more-actions {
  display: none;
}

.app-shell[data-panel-kind="history"] [data-panel-group="data"],
.app-shell[data-panel-kind="data"] [data-panel-group="history"],
.app-shell[data-panel-kind="data"] .navigation__section {
  display: none;
}

.contextual-destinations button,
.mobile-more-actions button {
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  color: #d6d6d6;
  background: transparent;
  font-size: 12.5px;
  text-align: left;
}

.contextual-destinations button:hover,
.mobile-more-actions button:hover {
  color: #fff;
  background: #151515;
}

.navigation__section {
  margin-top: 22px;
}

.navigation__section .eyebrow {
  color: var(--quiet);
  font-size: 10px;
  letter-spacing: .15em;
}

.conversation {
  grid-area: main;
}

@media (min-width: 701px) {
  .app-shell[data-nav-open="true"] .scrim {
    display: none;
  }
}

@media (max-width: 700px) {
  .app-shell,
  .app-shell[data-context-open="true"] {
    grid-template:
      "top" 102px
      "main" minmax(0, 1fr)
      "mobile-nav" calc(58px + env(safe-area-inset-bottom))
      / minmax(0, 1fr);
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 52px 42px;
    padding: 0 12px 8px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .product-switcher {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .product-switcher--brand {
    grid-column: 1;
    justify-self: start;
  }

  .interaction-mode--top {
    position: static;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    margin-left: 0;
    transform: none;
  }

  .rail {
    position: relative;
    z-index: 62;
    grid-area: mobile-nav;
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    padding: 5px 5px env(safe-area-inset-bottom);
    border-top: 1px solid #171717;
    border-right: 0;
    transition: none;
  }

  .rail__drag-handle,
  .navigation .navigation__resize {
    display: none !important;
  }

  .rail:hover,
  .rail:focus-within {
    width: auto;
    padding: 5px 5px env(safe-area-inset-bottom);
    box-shadow: none;
  }

  .rail:hover button,
  .rail:focus-within button {
    width: 100%;
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0;
  }

  .rail__primary {
    display: contents;
  }

  .rail__secondary {
    display: contents;
  }

  .rail button {
    width: 100%;
    height: 48px;
    justify-self: stretch;
  }

  .rail .nav-toggle,
  .rail .account-trigger {
    grid-column: auto;
    grid-row: auto;
  }

  .rail .account-trigger {
    width: 34px;
    height: 34px;
    align-self: center;
    justify-self: center;
  }

  .rail button::after {
    display: none;
  }

  .navigation,
  .app-shell[data-nav-open="true"] .navigation {
    top: auto;
    right: 0;
    bottom: calc(58px + env(safe-area-inset-bottom));
    left: 0;
    width: 100%;
    max-height: min(66vh, 520px);
    padding: 12px 16px 20px;
    border-top: 1px solid #242424;
    border-right: 0;
    border-radius: 18px 18px 0 0;
    transform: translateY(18px);
  }

  .app-shell[data-nav-open="true"] .navigation {
    transform: translateY(0);
  }

  .conversation {
    width: 100%;
    min-width: 0;
    padding: 0 12px 10px;
  }

  .workspace-surface {
    padding: 26px 2px 18px;
  }

  .workspace-surface__heading > div {
    align-items: start;
  }

  .workspace-card__body,
  .workspace-card__action {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    min-height: 0;
    padding: 18px 0;
  }

  .workspace-card:hover > .workspace-card__body,
  .workspace-card__action:hover,
  .workspace-card__action:focus-visible {
    padding-inline: 8px;
  }

  .workspace-card__status {
    justify-self: start;
    text-align: left;
  }

  .composer,
  .composer__row {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .composer__row {
    grid-template-columns: 32px minmax(0, 1fr) 32px 36px;
    gap: 3px;
    padding-inline: 6px;
    overflow: hidden;
  }

  .composer textarea {
    min-width: 0;
  }

}

/* Final precedence for the commercial desktop shell. */
@media (min-width: 901px) {
  .app-shell,
  .app-shell[data-context-open="true"] {
    grid-template:
      "nav top" 58px
      "nav main" minmax(0, 1fr)
      / var(--nav-width) minmax(0, 1fr) !important;
  }

  .topbar {
    grid-area: top;
  }

  .topbar .product-switcher--brand {
    visibility: hidden;
  }

  .rail {
    display: none !important;
  }

  .navigation,
  .app-shell[data-nav-open="true"] .navigation {
    position: relative !important;
    z-index: 40;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    grid-area: nav;
    display: flex !important;
    width: auto !important;
    min-width: 0;
    height: 100vh;
    flex-direction: column;
    padding: 12px 12px 14px !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-right: 1px solid #1f1f1f !important;
    background: #070707 !important;
    transform: none !important;
  }

  .navigation__head > button {
    display: none !important;
  }

  .navigation .navigation__resize {
    display: block !important;
  }

  .navigation .contextual-destinations {
    display: grid;
  }

  .navigation .contextual-destinations > button:not([hidden]) {
    display: grid !important;
  }

  .navigation .contextual-destinations > button[hidden] {
    display: none !important;
  }

  .navigation__section--pinned {
    display: block !important;
    margin-top: 18px;
  }

  .navigation__section--recent {
    display: block !important;
    min-height: 0;
    margin-top: 14px;
    overflow-y: auto;
  }

  .conversation {
    grid-area: main;
  }

  .account-panel {
    top: auto !important;
    bottom: 80px !important;
    left: 12px !important;
    width: 352px;
    border-color: #292929;
    background: rgb(8 8 8 / 98%);
    transform: translateY(10px) !important;
  }

  .app-shell[data-account-open="true"] .account-panel {
    transform: none !important;
  }

  .app-shell[data-nav-open="true"] .scrim {
    display: none;
  }

  .app-shell[data-account-open="true"] .scrim {
    display: block;
  }
}

@media (max-width: 900px) {
  .navigation {
    display: flex;
    flex-direction: column;
  }

  .navigation .contextual-destinations > button:not([hidden]) {
    display: grid !important;
  }

  .account-trigger {
    margin-top: auto;
  }
}

/* Final lockup scale after every legacy responsive rule. */
.brand__logo {
  width: 240px;
  max-width: min(240px, calc(100vw - 88px));
  height: auto;
}

.navigation__head {
  min-height: 72px;
}

.navigation__brand {
  width: 236px;
  max-width: 100%;
  height: auto;
}

/* Canonical lockup: both pieces share the same lower visual baseline. */
.brand__lockup,
.navigation__identity {
  display: inline-flex;
  align-items: flex-end;
  gap: 7px;
}

.brand__isotype,
.navigation__isotype {
  display: block;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand__wordmark,
.navigation__wordmark {
  display: inline-flex;
  flex: 0 1 188px;
  width: 188px;
  max-width: calc(100vw - 147px);
  align-items: flex-start;
  padding-bottom: 5px;
  overflow: visible;
}

.brand__wordmark-text,
.navigation__wordmark-text {
  display: block;
  color: #f4f4f4;
  font-family: "Inter", Arial, sans-serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: .105em;
  line-height: .82;
  white-space: nowrap;
}

.brand__registered,
.navigation__registered {
  position: relative;
  top: -1px;
  flex: 0 0 auto;
  margin-left: 1px;
  color: #f4f4f4;
  font-family: "Inter", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

/* Independent maker attribution: never part of the Valentina title lockup. */
.navigation__maker {
  display: block;
  flex: 0 0 auto;
  margin: auto 8px 7px;
  color: #858585;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .02em;
}

/* Conversation rows keep their full width; secondary actions float above it. */
.history-row {
  position: relative;
  display: block;
}

.history-row__open {
  width: 100% !important;
  padding-right: 8px !important;
}

.history-row__actions {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 2px;
  display: flex;
  gap: 2px;
  align-items: center;
  padding-left: 18px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, #070707 18px);
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 120ms ease;
}

.history-row:hover .history-row__actions,
.history-row:focus-within .history-row__actions {
  opacity: 1;
  pointer-events: auto;
}

.history-row__pin {
  display: grid !important;
  width: 28px !important;
  height: 28px;
  place-items: center;
  padding: 0 !important;
  border-radius: 6px !important;
  background: #070707 !important;
}

.history-row__pin .tabler-icon {
  width: 16px;
  height: 16px;
}

.history-row__pin[aria-pressed="true"] {
  color: var(--valentina-magenta) !important;
}

@media (hover: none) {
  .history-row__open {
    padding-right: 64px !important;
  }

  .history-row__actions {
    opacity: 1;
    pointer-events: auto;
  }
}

/* Desktop sidebar: continuous resize and a true icon-only dock at minimum width. */
@media (min-width: 901px) {
  .navigation__section--recent {
    flex: 1 1 auto;
  }

  .app-shell[data-nav-docked="true"] .navigation {
    align-items: stretch;
    padding: 10px 8px 12px !important;
  }

  .app-shell[data-nav-docked="true"] .navigation__head {
    justify-content: center;
    min-height: 52px;
  }

  .app-shell[data-nav-docked="true"] .navigation__identity {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .app-shell[data-nav-docked="true"] .navigation__isotype {
    width: 42px;
    height: 42px;
    object-fit: contain;
  }

  .app-shell[data-nav-docked="true"] .navigation__wordmark {
    display: none !important;
  }

  .app-shell[data-nav-docked="true"] .new-chat,
  .app-shell[data-nav-docked="true"] .contextual-destinations button,
  .app-shell[data-nav-docked="true"] .account-trigger {
    width: 100%;
    grid-template-columns: 1fr;
    justify-content: center;
    justify-items: center;
    padding-inline: 0;
  }

  .app-shell[data-nav-docked="true"] .new-chat span,
  .app-shell[data-nav-docked="true"] .contextual-destinations button span,
  .app-shell[data-nav-docked="true"] .capability-group .eyebrow,
  .app-shell[data-nav-docked="true"] .navigation__resources .eyebrow,
  .app-shell[data-nav-docked="true"] .navigation__section,
  .app-shell[data-nav-docked="true"] .navigation__maker,
  .app-shell[data-nav-docked="true"] .account-trigger__identity,
  .app-shell[data-nav-docked="true"] .account-trigger > b {
    display: none !important;
  }

  .app-shell[data-nav-docked="true"] .contextual-destinations {
    justify-items: center;
  }

  .app-shell[data-nav-docked="true"] .contextual-destinations .tabler-icon {
    width: 19px;
    height: 19px;
  }

  .app-shell[data-nav-docked="true"] .account-trigger {
    margin-top: auto;
  }
}

/* Final account treatment: identity is free-standing in the sidebar. */
.account-trigger,
.account-trigger:hover,
.account-trigger:focus-visible,
.account-trigger[aria-expanded="true"] {
  border-color: transparent;
  border-radius: 0;
  background: transparent;
}

.purple-authorization { display:flex; gap:9px; align-items:flex-start; margin:8px 12px 0; color:#bdbdbd; font-size:11px; line-height:1.4; }
.purple-authorization[hidden] { display:none; }
.purple-authorization input { margin-top:2px; accent-color:#ff0060; }
.history-row__open { padding-right:64px !important; }
.history-row__actions { opacity:1; pointer-events:auto; }
.interaction-mode--top { max-width:100%; }

.navigation__identity { min-width:0; flex:1 1 auto; gap:6px; }
.navigation__isotype { width:46px; height:46px; flex-basis:46px; }
.navigation__wordmark { min-width:0; width:auto; max-width:100%; flex:1 1 auto; overflow:hidden; }
.navigation__wordmark-text { font-size:18px; letter-spacing:.06em; }
.navigation__registered { font-size:10px; }
.navigation__head-actions { display:flex; flex:0 0 auto; gap:2px; align-items:center; }
.navigation__head-actions .new-chat {
  display:grid;
  width:32px;
  min-height:32px;
  place-items:center;
  padding:0;
  border:0;
}
.navigation__conversations[open] { min-height:0; overflow-y:auto; }
.navigation__conversations > summary[hidden] { display:none; }
.navigation__conversation-group { min-height:0; }
.navigation__conversation-group > summary {
  display:flex;
  min-height:34px;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0 10px;
  color:var(--quiet);
  cursor:pointer;
  font-size:10px;
  font-weight:700;
  letter-spacing:.15em;
  list-style:none;
}
.navigation__conversation-group > summary::-webkit-details-marker { display:none; }
.navigation__conversation-group > summary .tabler-icon {
  width:15px;
  height:15px;
  transition:transform 160ms ease;
}
.navigation__conversation-group:not([open]) > summary .tabler-icon { transform:rotate(-90deg); }
.navigation__conversation-group .navigation__section { margin:0; }
.navigation__conversation-group--recent[open] { display:flex; min-height:0; flex:1 1 auto; flex-direction:column; padding-bottom:8px; }
.navigation__conversation-group--recent .navigation__section--recent { flex:1 1 auto; }
.navigation__maker { flex:0 0 auto; margin:8px 8px 7px; }
.navigation > .account-trigger { flex:0 0 auto; margin-top:0; }

@media (max-width: 900px) {
  .interaction-mode--top { width:100%; overflow-x:auto; justify-content:center; scrollbar-width:none; }
  .interaction-mode--top::-webkit-scrollbar { display:none; }
  .interaction-mode--top button { flex:0 0 auto; padding-inline:7px; font-size:9px; letter-spacing:.02em; }
  .navigation__conversations[open] { flex:0 0 auto; overflow:visible; }
  .navigation__conversation-group--recent[open] { flex:0 0 auto; }
  .navigation__conversation-group--recent .navigation__section--recent { flex:0 0 auto; }
}

@media (min-width: 701px) and (max-width: 900px) {
  .app-shell[data-nav-open="true"] .navigation { overflow-x:hidden; }
  .app-shell[data-nav-open="true"] .navigation__section,
  .app-shell[data-nav-open="true"] .navigation__maker { display:block; }
  .app-shell[data-nav-open="true"] .navigation__isotype { display:none; }
  .app-shell[data-nav-open="true"] .navigation__wordmark { width:auto; max-width:100%; }
  .app-shell[data-nav-open="true"] .navigation__wordmark-text { font-size:19px; letter-spacing:.06em; }
}

@media (min-width: 901px) {
  .navigation__head-actions [data-action="close-navigation"] { display:none; }
}

/* Compact governed conversation opened by the NodeX entry surfaces. */
.app-shell[data-compact-chat="true"],
.app-shell[data-compact-chat="true"][data-context-open="true"] {
  grid-template:
    "top" 48px
    "main" minmax(0, 1fr)
    / minmax(0, 1fr);
  min-width: 0;
  background: #000;
}

.app-shell[data-compact-chat="true"] .rail,
.app-shell[data-compact-chat="true"] .navigation,
.app-shell[data-compact-chat="true"] .interaction-mode--top,
.app-shell[data-compact-chat="true"] .context,
.app-shell[data-compact-chat="true"] .scrim,
.app-shell[data-compact-chat="true"] .truth-bar,
.app-shell[data-compact-chat="true"] .support-brand,
.app-shell[data-compact-chat="true"] .support-menu,
.app-shell[data-compact-chat="true"] .support-mobile-account {
  display: none !important;
}

.app-shell[data-compact-chat="true"] .topbar {
  display: flex;
  min-width: 0;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid #191919;
}

.app-shell[data-compact-chat="true"] .product-switcher--brand {
  display: block !important;
  visibility: visible !important;
  width: auto;
  margin: 0;
}

.app-shell[data-compact-chat="true"] .brand__lockup {
  align-items: center;
  gap: 7px;
}

.app-shell[data-compact-chat="true"] .brand__isotype {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
}

.app-shell[data-compact-chat="true"] .brand__wordmark {
  width: auto;
  max-width: none;
  padding-bottom: 0;
}

.app-shell[data-compact-chat="true"] .brand__wordmark-text {
  font-size: 15px;
  letter-spacing: .10em;
  line-height: 1;
}

.app-shell[data-compact-chat="true"] .brand__registered {
  top: -2px;
  font-size: 8px;
}

.app-shell[data-compact-chat="true"] .conversation {
  grid-area: main;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  padding: 0 14px 14px;
}

.app-shell[data-compact-chat="true"] .conversation__heading {
  display: none;
}

.app-shell[data-compact-chat="true"] .conversation__stream {
  width: min(560px, 100%);
  max-width: 560px;
  padding: 0 2px;
}

.app-shell[data-compact-chat="true"] .state {
  min-height: 100%;
  padding: 20px 10px;
}

.app-shell[data-compact-chat="true"] .state h2 {
  font-size: clamp(16px, 4.6vw, 20px);
  font-weight: 500;
  letter-spacing: -.015em;
}

.app-shell[data-compact-chat="true"] .message {
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  padding: 11px 0;
}

.app-shell[data-compact-chat="true"] .message__content > p:not(.message__meta),
.app-shell[data-compact-chat="true"] .message__content li {
  font-size: 12px;
  line-height: 1.42;
}

.app-shell[data-compact-chat="true"] .composer {
  width: min(560px, 100%);
  margin: 6px auto 0;
}

.app-shell[data-compact-chat="true"] .composer__row {
  grid-template-columns: 30px minmax(0, 1fr) 30px 32px;
  min-height: 44px;
  gap: 2px;
  padding: 4px 5px;
  border-color: #242424;
  border-radius: 22px;
  background: #111;
}

.app-shell[data-compact-chat="true"] .composer__attach,
.app-shell[data-compact-chat="true"] .composer__voice,
.app-shell[data-compact-chat="true"] .composer__send {
  width: 30px;
  height: 30px;
}

.app-shell[data-compact-chat="true"] .composer textarea {
  min-height: 20px;
  max-height: 84px;
  padding: 2px 0;
  font-size: 12px;
  line-height: 1.35;
}

.app-shell[data-compact-chat="true"] .composer__send {
  color: #ff0060;
  border: 1px solid rgba(255,0,96,.7);
  background: transparent;
}

.app-shell[data-compact-chat="true"] .composer__send:disabled {
  color: #686868;
  border-color: #2b2b2b;
  background: transparent;
}

.app-shell[data-compact-chat="true"] .composer__notice {
  margin-top: 4px;
  font-size: 8.5px;
}

@media (max-width: 700px) {
  .app-shell[data-compact-chat="true"],
  .app-shell[data-compact-chat="true"][data-context-open="true"] {
    grid-template:
      "top" 46px
      "main" minmax(0, 1fr)
      / minmax(0, 1fr);
  }

  .app-shell[data-compact-chat="true"] .topbar {
    display: flex;
    padding: 0 12px;
  }

  .app-shell[data-compact-chat="true"] .conversation {
    padding: 0 10px calc(10px + env(safe-area-inset-bottom));
  }
}

/* NodeX support reuses the governed Valentina conversation without a new transport. */
.support-context {
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin:0 8px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(255,255,255,.025);
}
.support-context > span {
  display:grid;
  width:30px;
  height:30px;
  flex:0 0 30px;
  place-items:center;
  color:var(--valentina-magenta);
}
.support-context .tabler-icon { width:19px; height:19px; }
.support-context strong { display:block; color:var(--text); font-size:12px; }
.support-context p { margin:4px 0 0; color:var(--quiet); font-size:10px; line-height:1.45; }
.state--support { max-width:560px; text-align:center; }
.state--support .state__support-icon {
  display:grid;
  width:42px;
  height:42px;
  margin:0 auto 14px;
  place-items:center;
  border:1px solid var(--line);
  border-radius:50%;
  color:var(--valentina-magenta);
}
.state--support .state__support-icon .tabler-icon { width:22px; height:22px; }
.state--support p:not(.eyebrow) { max-width:500px; margin-inline:auto; }
.state--support small { display:block; max-width:480px; margin:10px auto 0; color:var(--quiet); line-height:1.5; }

/* Directed Mobile delta, 2026-10-06. Preserve the standalone conversation. */
.scrim { inset: 0; }
.navigation .contextual-destinations button:not([data-capability-key="purple-team"]),
.support-navigation > button,
.account-panel button,
.account-panel__head strong,
.context button { text-transform: uppercase; }

@media (max-width: 900px) {
  html, body, #app { height: 100%; min-height: 0; overflow: hidden; }
  .app-shell, .app-shell[data-context-open="true"] {
    position: fixed;
    top: var(--mobile-top, 0px);
    left: 0;
    width: 100%;
    height: var(--mobile-height, 100dvh);
    min-height: 0;
    overflow: clip;
  }
  .app-shell:not([data-compact-chat="true"]):not([data-workspace-mode="support"]) {
    grid-template: "top" auto "main" minmax(0, 1fr) "mobile-nav" auto / minmax(0, 1fr);
  }
  .app-shell:not([data-compact-chat="true"]):not([data-workspace-mode="support"]) .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 52px 44px;
    gap: 0;
    padding: env(safe-area-inset-top) 12px 6px;
    min-width: 0;
  }
  .product-switcher--brand { grid-column: 1; grid-row: 1; justify-self: start; }
  .interaction-mode--top { position: static; grid-column: 1; grid-row: 2; width: 100%; margin: 0; transform: none; justify-content: flex-start; overflow-x: auto; scroll-padding-inline: 4px; }
  .interaction-mode--top button { flex: 0 0 auto; min-height: 44px; padding-inline: 10px; font-size: 11px; }
  .conversation, .conversation__stream { min-height: 0; min-width: 0; }
  .conversation__stream { overscroll-behavior-y: contain; }
  .message__content { min-width: 0; overflow-wrap: anywhere; }
  .message__content pre { max-width: 100%; overflow-x: auto; }
  .conversation-history__heading { flex-direction: column; align-items: stretch; gap: 12px; }
  .conversation-history__heading h2 { font-size: 20px; overflow-wrap: anywhere; }
  .conversation-history__heading button { min-height: 44px; text-transform: uppercase; }
  .composer textarea { font-size: 16px; line-height: 1.5; min-height: 24px; max-height: 120px; }
  .composer__row { grid-template-columns: 44px minmax(0, 1fr) 44px 44px; gap: 0; padding: 4px; }
  .composer__row:has(.composer__voice[hidden]) { grid-template-columns: 44px minmax(0, 1fr) 44px; }
  .composer__attach, .composer__voice, .composer__send { width: 44px; height: 44px; }
  .rail, .rail:hover, .rail:focus-within { position: relative; z-index: 35; grid-area: mobile-nav; display: grid; width: auto; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 4px 12px max(4px, env(safe-area-inset-bottom)); border-top: 1px solid #171717; border-right: 0; }
  .rail__primary, .rail__secondary { display: contents; }
  .rail button, .rail:hover button, .rail:focus-within button { width: 100%; height: 44px; padding: 0; justify-items: center; grid-template-columns: 1fr; }
  .rail button::after, .rail__drag-handle, .navigation .navigation__resize { display: none !important; }
  .app-shell[data-nav-open="true"] .scrim,
  .app-shell[data-context-open="true"] .scrim,
  .app-shell[data-account-open="true"] .scrim { display: block; z-index: 60; }
  .navigation, .app-shell[data-nav-open="true"] .navigation {
    position: absolute;
    z-index: 61;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: min(82%, 640px);
    padding: 12px 16px max(16px, env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .navigation { visibility: hidden; opacity: 0; transform: translateY(18px); }
  .app-shell[data-nav-open="true"] .navigation { visibility: visible; opacity: 1; transform: none; }
  .navigation__head { flex-shrink: 0; min-height: 64px; }
  .navigation__head-actions button, .contextual-destinations button { min-height: 44px; }
  .navigation__head-actions button { min-width: 44px; }
  .account-panel { position: absolute; max-height: calc(100% - 24px); z-index: 63; }
  .app-shell[data-account-open="true"] .navigation { z-index: 40; }
}

@media (max-width: 700px) {
  .app-shell:not([data-compact-chat="true"]):not([data-workspace-mode="support"]) .topbar {
    grid-template-rows: 52px 44px;
    padding: env(safe-area-inset-top) 12px 6px;
  }
  .interaction-mode--top { justify-content: flex-start; scroll-padding-inline: 4px; }
  .interaction-mode--top button { min-height: 44px; padding-inline: 10px; font-size: 11px; }
  .rail, .rail:hover, .rail:focus-within { padding: 4px 12px max(4px, env(safe-area-inset-bottom)); }
  .rail button { height: 44px; }
  .app-shell[data-compact-chat="true"] .composer textarea { font-size: 16px; line-height: 1.5; }
}

/* Founder 06/10: centered approved identity, with new conversation by history. */
.navigation__new-conversation { display:none; }
.app-shell:not([data-workspace-mode="support"]) .navigation__head {
  position:relative; min-height:142px; justify-content:center; flex:0 0 auto;
}
.app-shell:not([data-workspace-mode="support"]) .navigation__identity {
  flex:0 0 auto; width:100%; flex-direction:column; justify-content:center; align-items:center; gap:10px;
}
.app-shell:not([data-workspace-mode="support"]) .navigation__orb { width:76px; height:76px; }
.app-shell:not([data-workspace-mode="support"]) .navigation__isotype { display:block; width:100%; height:100%; flex:none; }
.app-shell:not([data-workspace-mode="support"]) .navigation__wordmark { flex:none; width:auto; overflow:visible; }
.app-shell:not([data-workspace-mode="support"]) .navigation__wordmark-text { font-size:20px; }
.app-shell:not([data-workspace-mode="support"]) .navigation__head-actions { position:absolute; top:0; right:0; }
.app-shell:not([data-workspace-mode="support"]) .navigation__head-actions .new-chat { display:none; }
.app-shell:not([data-workspace-mode="support"]) .navigation__new-conversation {
  display:flex; flex:0 0 auto; align-items:center; justify-content:center; gap:8px;
  align-self:flex-end; width:36px; min-height:36px; margin:4px 8px; padding:8px; border:0;
  border-radius:8px; background:transparent; color:var(--text); font:600 10px/1.3 var(--font);
  letter-spacing:.06em;
}
.navigation__new-conversation .tabler-icon { width:17px; height:17px; flex:0 0 auto; }
@media (min-width:901px) {
  .app-shell:not([data-workspace-mode="support"])[data-nav-docked="true"] .navigation__head { min-height:60px; }
  .app-shell:not([data-workspace-mode="support"])[data-nav-docked="true"] .navigation__orb { width:46px; height:46px; }
  .app-shell:not([data-workspace-mode="support"])[data-nav-docked="true"] .navigation__new-conversation { align-self:center; margin-inline:0; }
}

/* Preserve a usable history viewport when the desktop navigation is taller than the window. */
@media (min-width: 901px) {
  .app-shell:not([data-workspace-mode="support"]):not([data-nav-docked="true"]) .navigation {
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }
  .app-shell:not([data-workspace-mode="support"]):not([data-nav-docked="true"]) .navigation__conversations[open] {
    flex: 1 0 192px;
    min-height: 192px;
  }
}

/* Transparent padding around row actions must not intercept the open button. */
.history-row > .history-row__actions { pointer-events:none !important; }
.history-row > .history-row__actions > button { pointer-events:auto; }


/* Shared pending-reply indicator: presentation only. */
.nodex-thinking{display:flex;align-items:baseline;gap:0;margin:14px 0;color:#aeb0b6;font-family:inherit;font-size:12px;font-weight:400;line-height:1.5;letter-spacing:0;text-transform:none;}
.nodex-thinking__dots{display:inline-flex;margin-left:1px;}
.nodex-thinking__dots span{animation:nodex-thinking-pulse 1.2s ease-in-out infinite;}
.nodex-thinking__dots span:nth-child(2){animation-delay:.16s;}
.nodex-thinking__dots span:nth-child(3){animation-delay:.32s;}
@keyframes nodex-thinking-pulse{0%,70%,100%{opacity:.25}35%{opacity:1}}
.xdr-valentina-status.is-thinking{font-size:12px!important;font-weight:400!important;text-transform:none!important;letter-spacing:0!important;}
.xdr-valentina-status.is-thinking::after{content:'...';display:inline-block;clip-path:inset(0 100% 0 0);animation:nodex-thinking-ellipsis 1.2s steps(4,end) infinite;}
@keyframes nodex-thinking-ellipsis{to{clip-path:inset(0 -34% 0 0)}}
@media(prefers-reduced-motion:reduce){.nodex-thinking__dots span,.xdr-valentina-status.is-thinking::after{animation:none;opacity:1;clip-path:none;}}

/* Valentina source: orb-motion.css */
/* Motion from Founder approved portal-desktop.html, 27/09/2026. */
.valentina-orb{position:relative;isolation:isolate;--orb-x:49.9%;--orb-y:50.6%}
.valentina-orb > img{animation:valentina-pulso-v3 6s ease-in-out infinite}
.valentina-orb::before,.valentina-orb::after{content:"";position:absolute;left:var(--orb-x);top:var(--orb-y);aspect-ratio:1;border-radius:50%;pointer-events:none;z-index:2;filter:none;-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 3.6px),#000 calc(100% - 3.1px),#000 calc(100% - .6px),transparent 100%);mask:radial-gradient(farthest-side,transparent calc(100% - 3.6px),#000 calc(100% - 3.1px),#000 calc(100% - .6px),transparent 100%);transition:opacity .4s ease}
.valentina-orb::before{width:56%;opacity:.90;background:conic-gradient(transparent 0deg,rgb(185 188 194 / .15) 18deg,rgb(185 188 194 / .65) 66deg,#B9BCC2 96deg 124deg,transparent 142deg 360deg);transform:translate(-50%,-50%) rotate(110deg);animation:valentina-plata-v3 28s linear infinite}
.valentina-orb::after{width:50%;opacity:.95;background:conic-gradient(transparent 0deg,rgb(255 0 96 / .15) 18deg,rgb(255 0 96 / .7) 64deg,#ff0060 88deg 120deg,transparent 140deg 360deg);transform:translate(-50%,-50%) rotate(260deg);animation:valentina-magenta-v3 40s linear infinite}
.valentina-orb:is(:hover,:focus-within)::before,.valentina-orb:is(:hover,:focus-within)::after{opacity:1}
@keyframes valentina-plata-v3{from{transform:translate(-50%,-50%) rotate(110deg)}to{transform:translate(-50%,-50%) rotate(470deg)}}
@keyframes valentina-magenta-v3{from{transform:translate(-50%,-50%) rotate(260deg)}to{transform:translate(-50%,-50%) rotate(-100deg)}}
@keyframes valentina-pulso-v3{0%,100%{filter:brightness(1)}50%{filter:brightness(1.10)}}
@media (prefers-reduced-motion:reduce){.valentina-orb > img,.valentina-orb::before,.valentina-orb::after{animation:none;transition:none}}
.valentina-orb .vo-core{position:absolute;left:var(--orb-x);top:calc(var(--orb-y) - 1.5%);width:22%;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;pointer-events:none;z-index:1;background:radial-gradient(circle,rgba(255,0,96,.5) 0%,rgba(255,0,96,.22) 40%,rgba(255,0,96,0) 70%);mix-blend-mode:screen;animation:valentina-latido 4.2s ease-in-out infinite}
@keyframes valentina-latido{0%,100%{transform:translate(-50%,-50%) scale(.88);opacity:.3}40%{transform:translate(-50%,-50%) scale(1.14);opacity:1}62%{transform:translate(-50%,-50%) scale(1.1);opacity:.95}}
@media (prefers-reduced-motion:reduce){.valentina-orb .vo-core{animation:none}}

.valentina-orb{display:block;--orb-x:50%;--orb-y:50%}
.valentina-orb>img{display:block;width:100%;height:100%;object-fit:contain}
.valentina-orb::before{width:94%}.valentina-orb::after{width:79%}
.valentina-orb .vo-core{width:36%}
.navigation__orb{width:46px;height:46px;flex:0 0 auto}
.app-shell[data-account-reduce-motion="true"] .valentina-orb>img,
.app-shell[data-account-reduce-motion="true"] .valentina-orb::before,
.app-shell[data-account-reduce-motion="true"] .valentina-orb::after,
.app-shell[data-account-reduce-motion="true"] .valentina-orb .vo-core{animation:none;transition:none}

/* Valentina source: support.css */
/* Founder reference 27/09/2026. Only the NodeX Support workspace changes. */
.support-brand,.support-menu,.support-signoff,.support-companion,.support-mobile-account,.support-mobile-lockup{display:none}
.brand__orb{width:52px;height:52px;flex:0 0 auto}
.app-shell[data-workspace-mode="support"]{
  --support-sidebar:225px;
  grid-template:"nav top" 94px "nav main" minmax(0,1fr)/var(--support-sidebar) minmax(0,1fr)!important;
  height:100dvh;min-height:0;
}
.app-shell[data-workspace-mode="support"] .topbar{padding:20px 30px;gap:22px;align-items:center;border:0;background:#000}
.app-shell[data-workspace-mode="support"] .topbar .product-switcher--brand{display:none}
.app-shell[data-workspace-mode="support"] .support-brand{display:block;width:245px;max-width:24%;height:auto;object-fit:contain}
.app-shell[data-workspace-mode="support"] .interaction-mode--top{margin-left:auto;width:min(796px,70%);max-width:none;min-height:51px;padding:5px;border:1px solid #292929;border-radius:30px;background:linear-gradient(#0b0b0b,#030303);overflow:visible;display:flex}
.app-shell[data-workspace-mode="support"] .interaction-mode--top button{flex:1;min-width:0;min-height:39px;padding:0 13px;font-size:13px;letter-spacing:.08em;font-weight:500;border-radius:24px;white-space:nowrap}
.app-shell[data-workspace-mode="support"] .interaction-mode--top button[aria-pressed="true"]{position:relative;border:1px solid #292929;background:linear-gradient(#171717,#080808);color:#f5f5f5}
.app-shell[data-workspace-mode="support"] .interaction-mode--top button[aria-pressed="true"]::after{content:"";position:absolute;bottom:-2px;left:15%;width:70%;height:3px;background:linear-gradient(90deg,transparent,#ff0060,transparent);filter:drop-shadow(0 0 6px #ff0060)}
.app-shell[data-workspace-mode="support"] .navigation{height:100dvh;align-self:start;padding:34px 20px 28px!important;background:linear-gradient(110deg,#0e0e0e,#050505)!important}
.app-shell[data-workspace-mode="support"] .navigation .navigation__resize{display:none!important}
.app-shell[data-workspace-mode="support"] .navigation__head{min-height:169px;flex:0 0 auto;justify-content:center;position:relative}
.app-shell[data-workspace-mode="support"] .navigation__identity{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:17px;width:100%;flex:0 0 auto}
.app-shell[data-workspace-mode="support"] .navigation__orb{width:85px;height:85px}
.app-shell[data-workspace-mode="support"] .navigation__isotype{display:block;width:100%;height:100%;flex:none}
.app-shell[data-workspace-mode="support"] .navigation__wordmark{display:flex!important;flex:none;width:auto;max-width:100%;overflow:visible}
.app-shell[data-workspace-mode="support"] .navigation__wordmark-text{font-size:20px;letter-spacing:.18em}
.app-shell[data-workspace-mode="support"] .navigation__registered{font-size:9px}
.app-shell[data-workspace-mode="support"] .navigation__head-actions{position:absolute;right:-9px;top:-20px}
.app-shell[data-workspace-mode="support"] .navigation__head-actions .new-chat{display:grid}
.app-shell[data-workspace-mode="support"] .navigation__resources,
.app-shell[data-workspace-mode="support"] .navigation__maker{display:none!important}
.app-shell[data-workspace-mode="support"] .capability-group--support{flex:0 0 auto;margin:30px -7px 0;padding:0;border:0}
.support-navigation{display:flex;flex-direction:column;gap:20px}
.support-navigation>button{position:relative;display:flex;align-items:center;gap:20px;width:100%;min-height:60px;padding:0 20px;border:0;border-radius:12px;background:transparent;color:#aeb0b6;text-align:left;font-size:15px}
.support-navigation>button .tabler-icon{width:26px;height:26px;flex:0 0 auto}
.support-navigation>button[aria-current="page"],.support-navigation>button:hover{background:linear-gradient(110deg,#161616,#0b0b0b);color:#fff}
.support-navigation>button[aria-current="page"]::before{content:"";position:absolute;left:0;top:6px;bottom:6px;width:2px;background:#ff0060}
.support-navigation>button[aria-current="page"] .tabler-icon{color:#ff0060}
.support-resources{padding:0 15px;display:grid;gap:14px}
.support-resources a{display:flex;align-items:center;justify-content:space-between;color:#b9bcc2;font-size:12px;text-decoration:none}
.support-resources .tabler-icon{width:15px;height:15px}
.app-shell[data-workspace-mode="support"] .navigation__conversations{display:none!important}
.app-shell[data-workspace-mode="support"][data-support-history="true"] .navigation__conversations{display:block!important;flex:1 1 auto;overflow:auto;margin-top:20px}
.app-shell[data-workspace-mode="support"] .navigation__section{display:block!important}
.app-shell[data-workspace-mode="support"] .navigation>.account-trigger{display:grid;width:100%;grid-template-columns:42px minmax(0,1fr) 20px;gap:10px;flex:0 0 auto;min-height:76px;margin-top:auto;padding:20px 0 8px;border-top:1px solid #252525;border-radius:0;justify-items:start}
.app-shell[data-workspace-mode="support"] .account-trigger__identity{display:flex!important;flex-direction:column;align-items:flex-start;min-width:0;gap:4px}
.app-shell[data-workspace-mode="support"] .account-trigger>b{display:block!important}
.app-shell[data-workspace-mode="support"] .account-trigger__avatar{width:42px;height:42px}
.app-shell[data-workspace-mode="support"] .support-companion{display:flex;gap:14px;align-items:center;flex:0 0 auto;margin:20px 5px 0;color:#8e929a;font-size:8px;letter-spacing:.3em;white-space:nowrap}
.support-companion span{height:1px;flex:1;background:#555}
.app-shell[data-workspace-mode="support"] .conversation{position:relative;display:flex;flex-direction:column;min-height:0;padding:0 34px 30px;overflow:hidden}
.app-shell[data-workspace-mode="support"] .conversation__stream{flex:1 1 auto;width:100%;max-width:none;min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#333 transparent}
.app-shell[data-workspace-mode="support"] .state--support{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100%;width:100%;max-width:none;padding:14px 0 34px;text-align:center}
.support-hero{position:relative;display:flex;align-items:center;justify-content:center;width:min(600px,90%);height:218px;flex:0 0 auto;margin-bottom:12px}
.support-orb{position:relative;z-index:1;width:146px;height:146px}
.support-horizon{position:absolute;left:0;right:0;top:64%;height:102px;border-radius:50% 50% 0 0;border-top:2px solid #ff0060;background:radial-gradient(ellipse at 50% 0,rgb(255 0 96 / .14),transparent 60%);mask-image:linear-gradient(90deg,transparent,#000 25% 75%,transparent);filter:drop-shadow(0 -4px 8px rgb(255 0 96 / .52))}
.app-shell[data-workspace-mode="support"] .state--support .eyebrow{margin:2px 0 12px;color:#ff0060;font-size:14px;font-weight:500;letter-spacing:.32em}
.app-shell[data-workspace-mode="support"] .state--support h2{font-size:clamp(34px,3.83vw,64px);line-height:1.16;font-weight:500;letter-spacing:-.035em;max-width:100%;margin:0}
.app-shell[data-workspace-mode="support"] .state--support .support-intro{max-width:none;margin:14px 0 0;color:#b9b9bc;font-size:clamp(16px,1.44vw,24px);line-height:1.5}
.support-topics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;width:min(100%,1008px);margin-top:46px}
.support-topics button{display:grid;grid-template-columns:28px minmax(0,1fr) 24px;align-items:center;gap:20px;height:70px;padding:0 30px;border:1px solid #555;border-radius:38px;background:linear-gradient(130deg,#0b0b0b,#000 70%);color:#f2f2f2;font-size:16px;text-align:left;transition:border-color .2s,background .2s}
.support-topics button:hover,.support-topics button:focus-visible{border-color:#ff0060;background:linear-gradient(130deg,#171015,#030303 70%)}
.support-topics button>.tabler-icon{width:28px;height:28px}
.support-topics button>.tabler-icon:last-child{width:24px;height:24px;color:#ff0060}
.app-shell[data-workspace-mode="support"] .composer{flex:0 0 auto;align-self:center;width:min(100%,894px);max-width:none;margin:0;border:0}
.app-shell[data-workspace-mode="support"] .composer__row{min-height:76px;display:grid;grid-template-columns:70px minmax(0,1fr) 58px;gap:16px;align-items:center;border:1px solid #606064;border-radius:44px;background:linear-gradient(115deg,#101010,#000 70%);padding:8px 12px}
.app-shell[data-workspace-mode="support"] .composer__attach{position:relative;width:56px;height:56px;border:0;border-radius:50%;background:linear-gradient(130deg,#282828,#080808);color:#ddd}
.app-shell[data-workspace-mode="support"] .composer__attach::after{content:"";position:absolute;right:-16px;height:28px;width:1px;background:#444}
.app-shell[data-workspace-mode="support"] .composer__attach .tabler-icon{width:26px;height:26px}
.app-shell[data-workspace-mode="support"] .composer textarea{min-height:26px;max-height:180px;padding:4px 0;border:0;background:transparent;font-size:17px;line-height:1.4}
.app-shell[data-workspace-mode="support"] .composer__voice{display:grid}
.app-shell[data-workspace-mode="support"] .composer__send{width:56px;height:56px;border:1px solid #ff0060;border-radius:50%;background:linear-gradient(#060606,rgb(255 0 96 / .13));color:#ff0060}
.app-shell[data-workspace-mode="support"] .composer__send .tabler-icon{width:27px;height:27px}
.app-shell[data-workspace-mode="support"] .composer__send:disabled{opacity:.65}
.app-shell[data-workspace-mode="support"] .composer__notice{margin:4px 18px 0;min-height:0;font-size:10px}
.app-shell[data-workspace-mode="support"] .support-signoff{display:flex;position:relative;flex:0 0 auto;justify-content:center;margin-top:20px;color:#888d96;font-size:8px;letter-spacing:.35em}
.support-signoff>span:first-child::before,.support-signoff>span:first-child::after{content:"";display:inline-block;vertical-align:middle;width:30px;height:1px;background:#4b4b4b;margin:0 14px}
.support-powered{position:absolute;right:0;bottom:0;text-align:center;line-height:2;font-size:8px}
.support-powered b{display:block;color:#e9e9e9;font-size:9px;font-weight:500;letter-spacing:.32em}
.support-powered::after{content:"";display:block;width:24px;height:1px;margin:9px auto 0;background:#ff0060}
@media(min-width:901px) and (max-height:800px){
 .app-shell[data-workspace-mode="support"]{grid-template-rows:78px minmax(0,1fr)!important}
 .support-hero{height:140px;margin-bottom:4px}.support-orb{width:115px;height:115px}
 .support-topics{margin-top:26px;gap:16px}.support-topics button{height:60px}
 .app-shell[data-workspace-mode="support"] .state--support h2{font-size:clamp(34px,3.1vw,52px)}
 .app-shell[data-workspace-mode="support"] .state--support .support-intro{font-size:19px}
 .app-shell[data-workspace-mode="support"] .navigation__head{min-height:140px}
 .app-shell[data-workspace-mode="support"] .capability-group--support{margin-top:15px}
 .support-navigation{gap:10px}
}
@media(min-width:901px) and (max-width:1250px){
 .app-shell[data-workspace-mode="support"]{--support-sidebar:200px}
 .app-shell[data-workspace-mode="support"] .topbar{padding-inline:22px;gap:16px}
 .app-shell[data-workspace-mode="support"] .support-brand{width:180px}
 .app-shell[data-workspace-mode="support"] .interaction-mode--top button{font-size:10px;padding-inline:8px;letter-spacing:.03em}
 .support-topics{gap:16px}.support-topics button{padding-inline:20px;gap:12px;font-size:14px}
 .support-navigation>button{padding-inline:13px;gap:14px;font-size:14px}
 .support-powered{display:none}
}
@media(max-width:900px){
 .app-shell[data-workspace-mode="support"]{grid-template:"top" 100px "main" minmax(0,1fr)/minmax(0,1fr)!important}
 .app-shell[data-workspace-mode="support"] .rail{display:none!important}
 .app-shell[data-workspace-mode="support"] .topbar{display:grid;grid-template-columns:1fr 36px;grid-template-rows:30px 35px;gap:12px;padding:12px 16px 8px;height:auto;min-height:0;align-content:start}
 .app-shell[data-workspace-mode="support"] .support-brand{width:212px;max-width:85%}
 .app-shell[data-workspace-mode="support"] .support-menu{display:grid;place-items:center;width:36px;height:30px;border:1px solid #333;border-radius:9px;background:#0b0b0b}
 .support-menu .tabler-icon{width:24px;height:24px}
 .app-shell[data-workspace-mode="support"] .interaction-mode--top{grid-column:1/-1;width:100%;min-height:35px;padding:3px;margin:0;gap:0;overflow-x:auto;justify-content:space-between;scrollbar-width:none}
 .app-shell[data-workspace-mode="support"] .interaction-mode--top button{flex:1 0 auto;min-height:27px;padding:0 2px;font-size:clamp(7.5px,2.4vw,11px);letter-spacing:0}
 .app-shell[data-workspace-mode="support"] .navigation{position:fixed!important;top:0!important;bottom:0!important;left:0!important;right:auto!important;width:min(280px,85vw)!important;max-height:none;height:100dvh;border-radius:0;z-index:80;overflow-y:auto!important;padding:24px 20px!important;transform:translateX(-100%);visibility:hidden;opacity:0}
 .app-shell[data-workspace-mode="support"][data-nav-open="true"] .navigation{visibility:visible;opacity:1;transform:none}
 .app-shell[data-workspace-mode="support"] .navigation__head{min-height:150px}
 .app-shell[data-workspace-mode="support"] .navigation__head-actions [data-action="close-navigation"]{display:grid}
 .app-shell[data-workspace-mode="support"] .navigation__head-actions{top:0}
 .app-shell[data-workspace-mode="support"] .navigation__wordmark-text{font-size:20px}
 .app-shell[data-workspace-mode="support"] .conversation{padding:0 16px 16px}
 .app-shell[data-workspace-mode="support"] .state--support{padding:14px 0 24px}
 .support-hero{height:150px;margin-bottom:4px}
 .support-orb{width:105px;height:105px}
 .support-horizon{height:70px;top:66%}
 .app-shell[data-workspace-mode="support"] .state--support .eyebrow{font-size:10px;letter-spacing:.25em;margin-bottom:12px}
 .app-shell[data-workspace-mode="support"] .state--support h2{font-size:clamp(27px,6.8vw,42px);line-height:1.15;max-width:520px}
 .app-shell[data-workspace-mode="support"] .state--support .support-intro{font-size:14px;max-width:460px;line-height:1.55;margin-top:13px}
 .support-topics{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:26px;width:min(100%,580px)}
 .support-topics button{grid-template-columns:20px minmax(0,1fr) 16px;height:55px;padding:0 15px;gap:10px;font-size:12px}
 .support-topics button>.tabler-icon{width:20px;height:20px}.support-topics button>.tabler-icon:last-child{width:16px;height:16px}
 .app-shell[data-workspace-mode="support"] .composer__row{min-height:58px;grid-template-columns:38px minmax(0,1fr) 40px;gap:12px;padding:7px 8px}
 .app-shell[data-workspace-mode="support"] .composer__attach{width:36px;height:36px}
 .app-shell[data-workspace-mode="support"] .composer__attach::after{height:22px;right:-7px}
 .app-shell[data-workspace-mode="support"] .composer__attach .tabler-icon{width:21px;height:21px}
 .app-shell[data-workspace-mode="support"] .composer textarea{font-size:16px;min-height:24px;padding:0}
 .app-shell[data-workspace-mode="support"] .composer__send{width:40px;height:40px}
 .app-shell[data-workspace-mode="support"] .composer__send .tabler-icon{width:23px;height:23px}
 .app-shell[data-workspace-mode="support"] .support-signoff{margin-top:13px;font-size:6px;letter-spacing:.22em}
 .support-powered{display:none}
 .support-signoff>span:first-child::before,.support-signoff>span:first-child::after{width:20px;margin-inline:9px}
}
@media(max-width:900px) and (max-height:740px){
 .support-hero{height:98px}.support-orb{width:80px;height:80px}
 .app-shell[data-workspace-mode="support"] .state--support{padding:10px 0 18px}
 .app-shell[data-workspace-mode="support"] .state--support h2{font-size:27px}
 .app-shell[data-workspace-mode="support"] .state--support .support-intro{font-size:13px;margin-top:9px}
 .support-topics{margin-top:20px;gap:10px}.support-topics button{height:48px;padding-inline:11px;gap:7px}
}
@media(prefers-reduced-motion:reduce){.support-topics button{transition:none}}
@media(max-width:360px){
 .support-topics button{grid-template-columns:20px minmax(0,1fr);font-size:11px;gap:7px}
 .support-topics button>.tabler-icon:last-child{display:none}
}
/* Mobile reference supplied by Founder: Valentina centre, real account right. */
@media(max-width:900px){
 .app-shell[data-workspace-mode="support"]{grid-template-rows:154px minmax(0,1fr)!important}
 .app-shell[data-workspace-mode="support"] .topbar{grid-template-columns:74px minmax(0,1fr) 74px;grid-template-rows:90px 35px;gap:10px;padding:12px 16px 7px}
 .app-shell[data-workspace-mode="support"] .topbar>.support-brand{display:none}
 .app-shell[data-workspace-mode="support"] .support-menu{grid-column:1;grid-row:1;width:40px;height:40px;border-radius:50%;background:linear-gradient(130deg,#151515,#000)}
 .app-shell[data-workspace-mode="support"] .topbar .product-switcher--brand{display:block;visibility:visible;grid-column:2;grid-row:1;justify-self:center;margin:0;max-width:none}
 .app-shell[data-workspace-mode="support"] .brand{width:auto;height:auto}
 .app-shell[data-workspace-mode="support"] .brand__lockup{display:flex;flex-direction:column;align-items:center;gap:7px}
 .app-shell[data-workspace-mode="support"] .brand__orb{width:51px;height:51px}
 .app-shell[data-workspace-mode="support"] .brand__isotype{width:100%;height:100%;max-height:none}
 .app-shell[data-workspace-mode="support"] .brand__wordmark{display:flex;flex:none;width:auto;height:auto;max-width:none;overflow:visible;padding:0}
 .app-shell[data-workspace-mode="support"] .brand__wordmark-text{font-size:12px;letter-spacing:.16em}
 .app-shell[data-workspace-mode="support"] .brand__registered{font-size:6px}
 .app-shell[data-workspace-mode="support"] .support-mobile-account{display:block;grid-column:3;grid-row:1;justify-self:end;max-width:74px}
 .app-shell[data-workspace-mode="support"] .support-mobile-account .account-trigger{position:static;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:74px;height:auto;min-height:70px;padding:0;margin:0;border:0;max-width:none}
 .app-shell[data-workspace-mode="support"] .support-mobile-account .account-trigger__avatar{width:32px;height:32px}
 .app-shell[data-workspace-mode="support"] .support-mobile-account .account-trigger__identity{align-items:center;gap:2px;width:100%;max-width:74px}
 .app-shell[data-workspace-mode="support"] .support-mobile-account .account-trigger__identity strong{font-size:10px;max-width:74px;overflow:hidden;text-overflow:ellipsis}
 .app-shell[data-workspace-mode="support"] .support-mobile-account .account-trigger__identity small{font-size:8px}
 .app-shell[data-workspace-mode="support"] .support-mobile-account .account-trigger>b{display:none!important}
 .app-shell[data-workspace-mode="support"] .interaction-mode--top{grid-column:1/-1;grid-row:2}
 .app-shell[data-workspace-mode="support"] .state--support .eyebrow>span{display:none}
 .app-shell[data-workspace-mode="support"] .support-mobile-lockup{display:block;width:160px;height:auto;margin:0 auto}
 .app-shell[data-workspace-mode="support"] .state--support h2{max-width:500px}
 .app-shell[data-workspace-mode="support"] .state--support .support-intro{max-width:370px}
 .app-shell[data-workspace-mode="support"] .support-signoff>span:first-child{font-size:0}
 .app-shell[data-workspace-mode="support"] .support-signoff>span:first-child::before{content:'SIEMPRE CONTIGO';font-size:7px;letter-spacing:.35em;background:none;height:auto;width:auto;margin:0}
 .app-shell[data-workspace-mode="support"] .support-signoff>span:first-child::after{display:none}
}

/* Valentina source: support-refinement-20261015.css */
/* Founder audit, 15 October. This file changes only the NodeX Support surface. */
.app-shell[data-workspace-mode="support"] :is(.interaction-mode--top,.support-signoff,.support-companion,.navigation__registered,.brand__registered,.account-trigger>b){display:none!important}
body:has(.app-shell[data-workspace-mode="support"])>.nodex-voice-toggle{display:none!important}
.app-shell[data-workspace-mode="support"] .support-navigation{gap:8px}
.app-shell[data-workspace-mode="support"] .support-navigation>button{min-height:44px;padding:0 12px;gap:12px;border-radius:5px;font-size:13px;text-transform:uppercase}
.app-shell[data-workspace-mode="support"] .support-navigation>button>span{white-space:nowrap}
.app-shell[data-workspace-mode="support"] .support-navigation>button>.tabler-icon{width:22px;height:22px}
.app-shell[data-workspace-mode="support"] .support-new-consultation{margin-bottom:10px;border:1px solid #444;background:transparent;color:#fff}
.app-shell[data-workspace-mode="support"] .navigation>.account-trigger{grid-template-columns:42px minmax(0,1fr)}
.app-shell[data-workspace-mode="support"] .support-topics button{border-radius:7px}
.app-shell[data-workspace-mode="support"] .support-topics button:hover,
.app-shell[data-workspace-mode="support"] .support-topics button:focus-visible{background:#0b0b0b}
.app-shell[data-workspace-mode="support"] .composer__row{grid-template-columns:40px minmax(0,1fr) 36px 44px;min-height:62px;gap:10px;padding:8px;border-radius:7px}
.app-shell[data-workspace-mode="support"] .composer textarea{min-width:0}
.app-shell[data-workspace-mode="support"] .composer__attach{width:40px;height:40px;border-radius:4px;background:transparent}
.app-shell[data-workspace-mode="support"] .composer__attach::after{right:-5px;height:24px}
.app-shell[data-workspace-mode="support"] .composer__audible{display:grid;place-items:center;width:36px;height:40px;padding:6px;border:0;border-radius:4px;background:transparent;color:#aaa;cursor:pointer}
.app-shell[data-workspace-mode="support"] .composer__audible svg{width:23px;height:23px}
.app-shell[data-workspace-mode="support"] .composer__audible[aria-pressed="true"]{color:#ff0060}
.app-shell[data-workspace-mode="support"] .composer__audible:disabled{opacity:.4;cursor:default}
.app-shell[data-workspace-mode="support"] .composer__send,
.app-shell[data-workspace-mode="support"] .composer__send:disabled{width:44px;height:44px;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.app-shell[data-workspace-mode="support"] .composer__send .tabler-icon{width:28px;height:28px;stroke-width:2.8}
.app-shell[data-workspace-mode="support"] .composer__send:disabled{color:#777;opacity:.65}
.app-shell[data-workspace-mode="support"] :is(.composer__audible,.composer__send,.support-new-consultation):focus-visible{outline:2px solid #ff0060;outline-offset:3px}
.app-shell[data-workspace-mode="support"] .composer__notice:empty{display:none}
@media(max-width:900px){
 .app-shell[data-workspace-mode="support"]{grid-template-rows:112px minmax(0,1fr)!important}
 .app-shell[data-workspace-mode="support"] .topbar{grid-template-rows:90px;gap:0}
 .app-shell[data-workspace-mode="support"] .support-topics button{border-radius:5px}
 .app-shell[data-workspace-mode="support"] .composer__row{grid-template-columns:32px minmax(0,1fr) 30px 36px;gap:6px;min-height:54px;padding:6px;border-radius:6px}
 .app-shell[data-workspace-mode="support"] .composer__attach{width:32px;height:36px}
 .app-shell[data-workspace-mode="support"] .composer__attach::after{right:-3px;height:20px}
 .app-shell[data-workspace-mode="support"] .composer__audible{width:30px;height:36px;padding:4px}
 .app-shell[data-workspace-mode="support"] .composer__send,
 .app-shell[data-workspace-mode="support"] .composer__send:disabled{width:36px;height:36px}
 .app-shell[data-workspace-mode="support"] .composer__send .tabler-icon{width:26px;height:26px}
}

/* Composer states are independent: microphone only when actively listening. */
.app-shell[data-workspace-mode="support"] .composer__voice[hidden]{display:none!important}
.app-shell[data-workspace-mode="support"] .composer__audible[aria-pressed="false"]{color:#aaa}
.app-shell[data-workspace-mode="support"] .composer__send[data-action="stop-request"]{color:#ff0060}

/* Valentina source: navigation-20261020.css */
/* Valentina approved application: navigation-only candidate, 20 October 2026. */
.workspace-switcher { position:relative; margin-left:auto; }
.workspace-switcher > summary { display:flex; min-height:38px; align-items:center; gap:10px; padding:0 12px; border:1px solid #252525; border-radius:8px; color:#ddd; background:#080808; cursor:pointer; list-style:none; font-size:12px; text-transform:uppercase; }
.workspace-switcher > summary::-webkit-details-marker, .navigation__tools > summary::-webkit-details-marker, .chat-options > summary::-webkit-details-marker { display:none; }
.workspace-switcher > summary .tabler-icon, .navigation__tools > summary .tabler-icon { width:15px; height:15px; flex:0 0 15px; }
.workspace-switcher .interaction-mode--top { position:absolute; z-index:80; top:calc(100% + 7px); right:0; display:grid; width:240px; max-width:calc(100vw - 32px); padding:6px; margin:0; border-radius:10px; background:#0a0a0a; box-shadow:0 12px 36px #000b; transform:none; }
.workspace-switcher:not([open]) .interaction-mode--top { display:none; }
.workspace-switcher .interaction-mode--top button { min-height:42px; padding:0 12px; border-radius:6px; text-align:left; font-size:11px; text-transform:uppercase; }
.app-shell:has(.workspace-switcher[open]) .topbar { z-index:90; }
.workspace-switcher[open]::before, .chat-options[open]::before { content:""; position:fixed; inset:0; z-index:1; background:rgb(0 0 0 / 64%); cursor:default; }
.workspace-switcher[open] > summary, .chat-options[open] > summary { position:relative; z-index:2; }
.chat-options[open] { z-index:90; }
.chat-options[open] .chat-options__menu { z-index:2; }
.app-shell:not([data-workspace-mode="support"]) .navigation__head { min-height:104px; }
.app-shell:not([data-workspace-mode="support"]) .navigation__orb { width:48px; height:48px; }
.app-shell:not([data-workspace-mode="support"]) .navigation__wordmark-text { font-size:17px; }
.navigation-collapse { display:grid; width:32px; height:32px; place-items:center; border:0; border-radius:6px; background:transparent; color:#9a9a9a; cursor:pointer; }
.navigation-collapse .tabler-icon { width:19px; height:19px; }
.navigation-collapse:hover { color:#fff; background:#181818; }
.navigation__body { min-height:0; flex:1 1 auto; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#363636 transparent; }
.app-shell:not([data-workspace-mode="support"]) .navigation__new-conversation { display:flex; width:100%; min-height:40px; justify-content:flex-start; gap:10px; align-self:stretch; margin:0 0 12px; padding:0 10px; border:1px solid #242424; border-radius:7px; font-size:11px; text-transform:uppercase; }
.navigation__body .navigation__conversations[open] { display:block; flex:0 0 auto; min-height:0!important; max-height:none; margin:0; overflow:visible; }
.navigation__body .navigation__conversations > summary { display:flex!important; padding:8px 10px; color:#bbb; font-size:11px; font-weight:600; cursor:pointer; }
.navigation__body .navigation__conversation-group > summary { font-size:9px; min-height:30px; }
.navigation__body .navigation__conversation-group--recent[open] { display:block; }
.navigation__body .navigation__section--recent { overflow:visible; }
.navigation__tools { margin-top:14px; border-top:1px solid #202020; padding-top:8px; }
.navigation__tools > summary { display:flex; align-items:center; justify-content:space-between; min-height:38px; padding:0 10px; color:#bcbcbc; font-size:11px; cursor:pointer; list-style:none; text-transform:uppercase; }
.navigation__tools[open] > summary { color:#fff; }
.navigation__tools[open] > summary .tabler-icon { transform:rotate(180deg); }
.navigation__tools .capability-group { margin-top:8px; }
.navigation__tools .contextual-destinations { margin-top:5px; }
.navigation__tools .contextual-destinations button { min-height:36px; font-size:11px; text-transform:uppercase!important; }
.navigation__tools .eyebrow { margin-bottom:6px; font-size:8px; color:#8f8f8f; }
.navigation__tools .navigation__resources { margin-top:10px; padding-top:10px; }
.app-shell:not([data-workspace-mode="support"]) .navigation > .account-trigger { flex:0 0 58px; min-height:58px; margin-top:0; padding-top:10px; border-top:1px solid #202020; }
.chat-options { position:relative; align-self:flex-end; margin:0 8px 4px auto; width:30px; z-index:48; }
.chat-options > summary { display:grid; width:30px; height:26px; place-items:center; list-style:none; color:#999; cursor:pointer; border-radius:5px; }
.chat-options > summary:hover { color:#fff; background:#171717; }
.chat-options .tabler-icon { width:20px; height:20px; }
.chat-options__menu { position:absolute; bottom:calc(100% + 7px); right:0; width:220px; max-width:calc(100vw - 40px); padding:6px; border:1px solid #303030; border-radius:9px; background:#101010; box-shadow:0 10px 30px #000b; }
.chat-options:not([open]) .chat-options__menu { display:none; }
.chat-options__menu button { display:flex; width:100%; align-items:center; gap:10px; min-height:42px; padding:8px; border:0; border-radius:5px; color:#ddd; background:transparent; text-align:left; font-size:12px; cursor:pointer; text-transform:uppercase; }
.chat-options__menu button:hover { background:#202020; }
.chat-options__menu button svg { width:21px; height:21px; flex:0 0 21px; }
.chat-options__menu button[aria-pressed="true"] { color:#ff0060; }
body:has(.app-shell) > .nodex-voice-toggle { display:none!important; }
.app-shell[data-workspace-mode="support"] .workspace-switcher,
.app-shell[data-workspace-mode="support"] .navigation__tools,
.app-shell[data-workspace-mode="support"] .navigation-collapse,
.app-shell[data-workspace-mode="support"] .chat-options { display:none; }
.app-shell[data-workspace-mode="support"] .navigation__body { display:contents; }
.app-shell[data-workspace-mode="support"] .navigation__new-conversation { display:none!important; }
:is(.workspace-switcher > summary,.navigation-collapse,.navigation__tools > summary,.chat-options > summary,.chat-options__menu button):focus-visible { outline:2px solid #ff0060; outline-offset:3px; }
@media(min-width:901px) {
 .app-shell:not([data-workspace-mode="support"]) .navigation { display:flex; flex-direction:column; height:100dvh; overflow:hidden!important; }
 .app-shell:not([data-workspace-mode="support"])[data-nav-docked="true"] .navigation__head { min-height:100px; flex-direction:column; justify-content:center; gap:8px; }
 .app-shell:not([data-workspace-mode="support"])[data-nav-docked="true"] .navigation__identity { display:flex; width:100%; justify-content:center; }
 .app-shell:not([data-workspace-mode="support"])[data-nav-docked="true"] .navigation__orb { width:40px; height:40px; }
 .app-shell:not([data-workspace-mode="support"])[data-nav-docked="true"] .navigation__head-actions { position:static; }
 .app-shell:not([data-workspace-mode="support"])[data-nav-docked="true"] .navigation__body { display:none; }
 .app-shell:not([data-workspace-mode="support"])[data-nav-docked="true"] .navigation > .account-trigger { margin-top:auto; }
 .app-shell:not([data-workspace-mode="support"])[data-nav-docked="true"] .topbar .product-switcher--brand { visibility:hidden; }
}
@media(max-width:900px) {
 .app-shell .navigation__head .navigation-collapse { display:none; }
 .app-shell:not([data-workspace-mode="support"]):not([data-compact-chat="true"]) .topbar { display:flex; min-height:58px; grid-template-rows:none; align-items:center; }
 .workspace-switcher > summary { max-width:210px; min-height:40px; padding:0 8px; font-size:11px; }
 .workspace-switcher > summary span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
 .workspace-switcher .interaction-mode--top { width:230px; }
 .app-shell:not([data-workspace-mode="support"]) .navigation { max-height:min(86%,680px); overflow:hidden; }
 .app-shell:not([data-workspace-mode="support"]) .navigation__head { min-height:90px; }
 .navigation__body { flex:1 1 auto; }
 .chat-options { margin-right:4px; }
}
.app-shell[data-compact-chat="true"] .workspace-switcher { display:none; }
@media(prefers-reduced-motion:reduce) { .navigation__tools .tabler-icon { transition:none; } }

/* Founder 24 October: direct composer actions and account menu without scroll. */
.app-shell .composer__row{display:flex!important;align-items:center!important;gap:8px!important;padding:6px!important;box-sizing:border-box!important}
.app-shell .composer__row textarea{flex:1 1 auto!important;min-width:0!important;width:0!important;box-sizing:border-box!important}
.app-shell .composer__row>button{flex:0 0 auto!important;margin:0!important}
.app-shell .composer__row .composer__send{margin-left:auto!important;align-self:flex-end!important}
.composer__audible{display:grid;place-items:center;width:32px;height:36px;padding:3px;border:0;background:transparent;color:#b9bcc2;cursor:pointer}
.composer__audible>svg{display:block;width:28px;height:26px}
.composer__audible[aria-pressed="true"]{color:#ff0060}
.composer__audible:focus-visible{outline:1px solid #ff0060;outline-offset:3px}
.app-shell[data-account-view="home"] .account-panel{overflow:visible!important;max-height:none!important}
.app-shell[data-account-view="home"] .account-authenticated{overflow:visible!important;max-height:none!important}
.app-shell[data-account-view="home"] .account-panel__head{min-height:40px}
.app-shell[data-account-view="home"] .account-profile{padding:6px 22px 10px}
.app-shell[data-account-view="home"] .account-profile>img,.app-shell[data-account-view="home"] .account-profile__placeholder{width:64px;height:64px}
.app-shell[data-account-view="home"] .account-menu{padding-bottom:10px}
.app-shell[data-account-view="home"] .account-menu button{min-height:42px}
.app-shell[data-account-view="home"] .account-profile [data-account-tenant]{display:none!important}
.navigation__maker{display:none!important}
.navigation__body{display:flex;flex-direction:column;gap:12px}
.navigation__body>.navigation__new-conversation{flex:none;margin-bottom:0!important}
.navigation__body>.navigation__conversations{flex:1 1 auto;min-height:0}
.navigation__body>.navigation__tools{flex:none;margin-top:0!important}
.workspace-switcher>summary{min-width:180px;justify-content:space-between;border-color:#444;border-radius:6px}
.workspace-switcher .interaction-mode--top{gap:4px;padding:8px;border:1px solid #444}
.workspace-switcher .interaction-mode--top button{border-radius:4px;min-height:42px}
.workspace-switcher .interaction-mode--top button[aria-pressed="true"]{color:#ff0060;background:transparent}
@media(max-height:650px){.app-shell[data-account-view="home"] .account-profile>img,.app-shell[data-account-view="home"] .account-profile__placeholder{width:42px;height:42px}.app-shell[data-account-view="home"] .account-menu button{min-height:34px}.app-shell[data-account-view="home"] .account-profile{padding-top:0;padding-bottom:6px}}

/* The original NodeX account view owns the entire modal and all six actions. */
.app-shell .account-panel--shared{position:fixed!important;inset:0!important;left:0!important;top:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;transform:none!important;padding:0!important;margin:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:hidden!important}
.account-panel--shared>[data-account-native-reserved]{display:none!important}
.account-shared-frame{display:block;width:100%;height:100%;border:0;background:transparent;color-scheme:dark}


/* Founder 24 Oct: sidebar is a containing layout. Its body stays empty. */
.app-shell [data-navigation-reserved],.app-shell .navigation__body>[data-navigation-reserved],.app-shell .support-companion{display:none!important}
.app-shell .navigation{display:flex!important;flex-direction:column!important;box-sizing:border-box!important;padding-bottom:0!important}
.app-shell .navigation__head{position:relative!important;inset:auto!important;flex:0 0 auto!important;max-width:100%!important;box-sizing:border-box!important}
.app-shell .navigation__body[data-founder-empty-sidebar]{display:block!important;flex:1 1 auto!important;min-height:0!important;overflow:hidden!important;padding:0!important;border:0!important}
.app-shell .navigation__account-footer{display:flex!important;position:relative!important;inset:auto!important;flex:0 0 auto!important;align-items:center!important;width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;margin:auto 0 0!important;padding:14px 8px 20px!important;border:0!important;background:transparent!important}
.app-shell .navigation__account-footer>.account-trigger.xdr-footer-user{position:static!important;inset:auto!important;z-index:auto!important;display:flex!important;align-items:center!important;gap:11px!important;width:100%!important;min-width:0!important;max-width:100%!important;height:42px!important;min-height:42px!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#fff!important;text-align:left!important;transform:none!important;scale:1!important;flex:1 1 auto!important}
.app-shell .navigation__account-footer .account-trigger__avatar{display:grid!important;place-items:center!important;width:42px!important;height:42px!important;min-width:42px!important;border:0!important;border-radius:0!important;background:transparent!important}
.app-shell .navigation__account-footer [data-account-placeholder] svg{width:42px!important;height:42px!important;stroke-width:1.6!important}
.app-shell .navigation__account-footer [data-account-avatar]{width:42px!important;height:42px!important;border-radius:50%!important;object-fit:cover!important}
.app-shell .navigation__account-footer .account-trigger__identity{display:flex!important;flex-direction:column!important;gap:1px!important;min-width:0!important}
.app-shell .navigation__account-footer [data-account-trigger-name]{font-size:13.5px!important;font-weight:600!important;color:#fff!important;letter-spacing:.03em!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.app-shell .navigation__account-footer [data-account-trigger-role]{font-size:12px!important;font-weight:400!important;color:#c9c9cd!important;letter-spacing:.04em!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.app-shell .navigation__account-footer .account-trigger:focus-visible{outline:1px solid #ff0060!important;outline-offset:5px!important}
/* CHAT and WORK always remain visible; only the selection underline is magenta. */
.app-shell .workspace-switcher--toggle{position:fixed!important;top:14px!important;right:24px!important;display:block!important;width:auto!important;margin:0!important;padding:0!important;z-index:60!important}
.app-shell .workspace-switcher--toggle .interaction-mode--top{position:static!important;inset:auto!important;display:flex!important;align-items:center!important;gap:0!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;transform:none!important}
.app-shell .workspace-switcher--toggle .interaction-mode--top button{position:relative!important;display:block!important;width:78px!important;min-height:38px!important;margin:0!important;padding:0 12px!important;border:0!important;border-radius:0!important;background:transparent!important;color:#c9c9cd!important;font-size:13px!important;font-weight:600!important;letter-spacing:.06em!important;text-align:center!important}
.app-shell .workspace-switcher--toggle .interaction-mode--top button+button{border-left:1px solid #454545!important}
.app-shell .workspace-switcher--toggle .interaction-mode--top button[aria-pressed="true"]{color:#c9c9cd!important}
.app-shell .workspace-switcher--toggle .interaction-mode--top button[aria-pressed="true"]::after{content:"";position:absolute;left:14px;right:14px;bottom:0;height:2px;background:#ff0060}
.app-shell .workspace-switcher--toggle .interaction-mode--top button:hover{color:#fff!important;background:transparent!important}
.app-shell .workspace-switcher--toggle .interaction-mode--top button:focus-visible{outline:1px solid #ff0060!important;outline-offset:3px!important}
.app-shell .composer__audible[aria-pressed="true"]{color:#ff0060!important}
.app-shell .composer__audible[aria-pressed="true"] svg path{stroke:#ff0060!important}
.app-shell .composer__audible[aria-pressed="true"] svg path[fill]:not([fill="none"]){fill:#ff0060!important}
.app-shell :is(.composer__send,.composer__attach){color:#ff0060!important}
.app-shell :is(.composer__send,.composer__attach) svg{color:#ff0060!important;stroke:#ff0060!important}

.app-shell .navigation__account-footer .account-trigger__identity{flex:1 1 auto!important}
.app-shell[data-nav-docked="true"] .navigation__account-footer .account-trigger__identity{display:none!important}

/* Founder 24 Oct: CHAT hierarchy; groups/archives do not reuse pinned data. */
.app-shell .chat-sidebar{display:flex;flex-direction:column;gap:12px;padding:8px 0;width:100%;box-sizing:border-box}
.app-shell:not([data-ui-mode="chat"]) .chat-sidebar{display:none!important}
.app-shell .chat-sidebar__new,.app-shell .chat-sidebar :is(.chat-sidebar__group,.navigation__conversation-group)>summary{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;min-height:40px!important;width:100%!important;margin:0!important;padding:0 10px!important;box-sizing:border-box!important;border:0!important;border-radius:0!important;background:transparent!important;color:#d4d4d7!important;font:500 12px/1.3 Inter,Arial,sans-serif!important;letter-spacing:.045em!important;list-style:none!important;cursor:pointer!important}
.app-shell .chat-sidebar summary::-webkit-details-marker{display:none!important}
.app-shell .chat-sidebar__new .tabler-icon{width:18px;height:18px;color:#ff0060}
.app-shell .chat-sidebar summary .tabler-icon{width:15px;height:15px;transform:rotate(-90deg);transition:transform 120ms ease}
.app-shell .chat-sidebar details[open]>summary .tabler-icon{transform:rotate(0deg)}
.app-shell .chat-sidebar>details{display:block!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important}
.app-shell .chat-sidebar :is(button,summary):hover{color:#fff!important;background:transparent!important}
.app-shell .chat-sidebar :is(button,summary):focus-visible{outline:1px solid #ff0060!important;outline-offset:2px!important}
.app-shell .chat-sidebar :is([data-chat-groups],[data-chat-archives]){list-style:none;margin:0;padding:0}
.app-shell .chat-sidebar .recent-empty:empty{display:none!important}

/* Founder 24 Oct: WORK hierarchy, sharing the established CHAT spacing. */
.app-shell .work-sidebar{display:flex;flex-direction:column;gap:12px;padding:8px 0;width:100%;box-sizing:border-box}
.app-shell:not([data-ui-mode="work"]) .work-sidebar{display:none!important}
.app-shell .work-sidebar__new,.app-shell .work-sidebar__group>summary{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;min-height:40px!important;width:100%!important;margin:0!important;padding:0 10px!important;box-sizing:border-box!important;border:0!important;border-radius:0!important;background:transparent!important;color:#d4d4d7!important;font:500 12px/1.3 Inter,Arial,sans-serif!important;letter-spacing:.045em!important;list-style:none!important;cursor:pointer!important}
.app-shell .work-sidebar summary::-webkit-details-marker{display:none!important}
.app-shell .work-sidebar__new .tabler-icon{width:18px;height:18px;color:#ff0060}
.app-shell .work-sidebar summary .tabler-icon{width:15px;height:15px;transform:rotate(-90deg);transition:transform 120ms ease}
.app-shell .work-sidebar details[open]>summary .tabler-icon{transform:rotate(0deg)}
.app-shell .work-sidebar>details{display:block!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important}
.app-shell .work-sidebar :is(button,summary):hover{color:#fff!important;background:transparent!important}
.app-shell .work-sidebar :is(button,summary):focus-visible{outline:1px solid #ff0060!important;outline-offset:2px!important}

/* Founder 24 Oct: one Valentina; four stable sidebar areas. Local review. */
.app-shell .navigation__body[data-four-area-navigation]{display:block!important;flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding:0!important;border:0!important}
.app-shell[data-nav-docked="true"] .navigation__body[data-four-area-navigation]{display:none!important}
.app-shell .root-navigation{display:flex;flex-direction:column;gap:8px;width:100%;box-sizing:border-box;padding:6px 0 12px}
.app-shell .root-navigation__new,.app-shell .root-navigation__group>summary,.app-shell .root-navigation .navigation__conversation-group>summary{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;min-height:38px!important;width:100%!important;box-sizing:border-box!important;margin:0!important;padding:0 10px!important;border:0!important;border-radius:0!important;background:transparent!important;color:#d4d4d7!important;font:500 12px/1.3 Inter,Arial,sans-serif!important;letter-spacing:.035em!important;text-align:left!important;list-style:none!important;cursor:pointer!important}
.app-shell .root-navigation__new{margin-bottom:8px!important}
.app-shell .root-navigation__new .tabler-icon{width:18px;height:18px;color:#ff0060}
.app-shell .root-navigation summary::-webkit-details-marker{display:none!important}
.app-shell .root-navigation summary .tabler-icon{width:14px;height:14px;flex:none;transform:rotate(-90deg);transition:transform 120ms ease}
.app-shell .root-navigation details[open]>summary .tabler-icon{transform:none}
.app-shell .root-navigation details{min-height:0!important;margin:0!important;padding:0!important;border:0!important}
.app-shell .root-navigation>details>summary{font-weight:600!important}
.app-shell .root-navigation__children{padding:0 0 0 10px}
.app-shell .root-navigation__children:empty{display:none}
.app-shell .root-navigation__children :is(button,a){display:flex;align-items:center;min-height:36px;width:100%;box-sizing:border-box;padding:6px 10px;border:0;border-radius:0;background:transparent;color:#bfc0c4;font:400 11px/1.35 Inter,Arial,sans-serif;text-align:left;text-decoration:none;cursor:pointer}
.app-shell .root-navigation :is(button,a,summary):hover{color:#ff0060!important;background:transparent!important}
.app-shell .root-navigation :is(button,a,summary):focus-visible{outline:1px solid #ff0060;outline-offset:2px;background:transparent!important}
.app-shell .root-navigation .recent-empty:empty{display:none!important}
.app-shell .root-navigation .navigation__section{margin:0!important;padding:0 10px!important}

/* Collapsing changes the body, never the ownership of brand or account. */
@media(min-width:901px){
 .app-shell[data-nav-docked="true"] .navigation__account-footer{padding:14px 0 20px!important}
 .app-shell[data-nav-docked="true"] .navigation__account-footer>.account-trigger{justify-content:center!important}
}

/* Official NodeX Valentina lockup. Native chat/sidebar remain the layout owners. */
.app-shell .brand__official-lockup { display:block; width:330px; max-width:calc(100vw - 210px); height:auto; object-fit:contain; }
.app-shell .navigation__official-lockup { display:block; width:208px; max-width:100%; height:auto; object-fit:contain; }
.app-shell .navigation__wordmark:has(.navigation__official-lockup) { padding-bottom:0; }
@media(max-width:900px) { .app-shell .brand__official-lockup { width:240px; max-width:calc(100vw - 190px); } }


/* Embedded Support shares the Portal header and account footer. */
html[data-nodex-support-embedded],html[data-nodex-support-embedded] body,html[data-nodex-support-embedded] #app{height:100%;min-height:0;overflow:hidden;background:#000}
html[data-nodex-support-embedded] .app-shell[data-workspace-mode="support"]{--support-sidebar:184px;--message-font-size:12px;grid-template:"nav main" minmax(0,1fr)/var(--support-sidebar) minmax(0,1fr)!important;height:100%!important;min-height:0!important;font-size:12px}
html[data-nodex-support-embedded] .app-shell[data-workspace-mode="support"] :is(.topbar,.support-brand,.support-mobile-lockup,.support-mobile-account,.navigation__account-footer,.account-trigger,.account-panel,.state--support>.eyebrow,.runtime-alert,.support-signoff){display:none!important}
html[data-nodex-support-embedded] .app-shell[data-workspace-mode="support"] .navigation{height:100%!important;min-height:0!important;padding:12px 14px!important;overflow:hidden!important;background:#060606!important}
html[data-nodex-support-embedded] .app-shell[data-workspace-mode="support"] .navigation__head{min-height:112px!important}
html[data-nodex-support-embedded] .app-shell[data-workspace-mode="support"] .navigation__identity{gap:12px}
html[data-nodex-support-embedded] .app-shell[data-workspace-mode="support"] .navigation__orb{width:58px;height:58px}
html[data-nodex-support-embedded] .app-shell .navigation__official-lockup{width:154px;max-width:100%;height:auto}
html[data-nodex-support-embedded] .app-shell .root-navigation{gap:5px;padding:5px 0}
html[data-nodex-support-embedded] .app-shell .root-navigation :is(.root-navigation__new,summary){min-height:32px!important;padding:0 7px!important;font-size:10.5px!important;line-height:1.4!important;font-weight:500!important;color:#d4d4d7!important}
html[data-nodex-support-embedded] .app-shell .root-navigation__new{margin-bottom:5px!important}
html[data-nodex-support-embedded] .app-shell .root-navigation__children :is(button,a){min-height:30px;font-size:10px;color:#c9c9cd}
html[data-nodex-support-embedded] .app-shell[data-workspace-mode="support"] .conversation{padding:8px 24px 6px!important;gap:0;min-width:0}
html[data-nodex-support-embedded] .app-shell[data-workspace-mode="support"] .conversation__stream{padding:0!important;min-height:0}
html[data-nodex-support-embedded] .app-shell[data-workspace-mode="support"] .state--support{box-sizing:border-box;min-height:100%;padding:10px 0 20px;gap:0}
html[data-nodex-support-embedded] .support-hero{width:min(460px,90%);height:108px;margin-bottom:8px}
html[data-nodex-support-embedded] .support-orb{width:84px;height:84px}
html[data-nodex-support-embedded] .support-horizon{height:58px;top:64%}
html[data-nodex-support-embedded] .app-shell[data-workspace-mode="support"] .state--support h2{font-size:26px;line-height:1.25;letter-spacing:-.025em;font-weight:500;color:#f2f2f2}
html[data-nodex-support-embedded] .app-shell[data-workspace-mode="support"] .state--support .support-intro{font-size:12px;line-height:1.5;max-width:410px;margin:9px 0 0;color:#bfc0c4}
html[data-nodex-support-embedded] .support-topics{width:min(100%,680px);grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:20px}
html[data-nodex-support-embedded] .app-shell .support-topics button{grid-template-columns:18px minmax(0,1fr) 16px;gap:9px;min-height:0;height:42px;padding:0 12px;font-size:12px;font-weight:400;color:#e9e9ec;border:1px solid #35363a;border-radius:5px;background:#030303}
html[data-nodex-support-embedded] .support-topics button>.tabler-icon{width:18px;height:18px}
html[data-nodex-support-embedded] .support-topics button>.tabler-icon:last-child{width:16px;height:16px}
html[data-nodex-support-embedded] .app-shell .support-topics button:is(:hover,:focus-visible){color:#fff;border-color:#666a73;background:#080808}
html[data-nodex-support-embedded] .app-shell[data-workspace-mode="support"] .composer{width:min(100%,760px);margin:0!important;padding:0!important}
html[data-nodex-support-embedded] .app-shell[data-workspace-mode="support"] .composer__row{display:flex!important;min-height:44px!important;gap:5px!important;padding:4px 6px!important;border-color:#41434a;border-radius:6px;background:#030303}
html[data-nodex-support-embedded] .app-shell[data-workspace-mode="support"] .composer textarea{flex:1 1 0;min-width:0;min-height:22px;max-height:84px;height:24px;padding:3px 5px;font-size:12px!important;line-height:18px;color:#eee}
html[data-nodex-support-embedded] .app-shell[data-workspace-mode="support"] .composer :is(.composer__attach,.composer__voice,.composer__audible,.composer__send){flex:0 0 30px;width:30px!important;height:32px!important;min-height:0!important;padding:5px!important}
html[data-nodex-support-embedded] .app-shell[data-workspace-mode="support"] .composer__attach::after{height:18px;right:-3px}
html[data-nodex-support-embedded] .app-shell[data-workspace-mode="support"] .composer :is(.composer__attach,.composer__voice,.composer__audible,.composer__send) svg{width:20px!important;height:20px!important}
html[data-nodex-support-embedded] .app-shell :is(.eyebrow,.text-action,.composer__notice,.support-intro,.support-topics button>span,.root-navigation span){color:#c9c9cd!important}
html[data-nodex-support-embedded] .app-shell .composer__notice{font-size:10px!important;line-height:1.4;margin:3px 0 0!important}
@media(max-width:900px){
 html[data-nodex-support-embedded] .app-shell[data-workspace-mode="support"]{grid-template:"top" 32px "main" minmax(0,1fr)/minmax(0,1fr)!important}
 html[data-nodex-support-embedded] .app-shell[data-workspace-mode="support"] .topbar{display:flex!important;justify-content:flex-end;min-height:0!important;height:32px!important;padding:0 12px!important;gap:0}
 html[data-nodex-support-embedded] .app-shell[data-workspace-mode="support"] .support-menu{display:grid;width:32px;height:30px;min-height:0;padding:6px}
 html[data-nodex-support-embedded] .app-shell[data-workspace-mode="support"] .navigation{top:0!important;bottom:0!important;max-height:100%!important;width:min(224px,80vw)!important}
 html[data-nodex-support-embedded] .app-shell[data-workspace-mode="support"] .conversation{padding:0 12px 4px!important}
 html[data-nodex-support-embedded] .app-shell[data-workspace-mode="support"] .state--support h2{font-size:22px}
 html[data-nodex-support-embedded] .app-shell[data-workspace-mode="support"] .state--support .support-intro{max-width:300px;font-size:11px}
 html[data-nodex-support-embedded] .support-topics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:16px}
 html[data-nodex-support-embedded] .app-shell .support-topics button{height:38px;padding:0 9px;font-size:11px;gap:7px}
 html[data-nodex-support-embedded] .support-hero{height:94px}
 html[data-nodex-support-embedded] .support-orb{width:74px;height:74px}
 html[data-nodex-support-embedded] .app-shell[data-workspace-mode="support"] .composer textarea{font-size:12px!important}
}
@media(max-height:500px){
 html[data-nodex-support-embedded] .support-hero{height:62px;margin-bottom:4px}
 html[data-nodex-support-embedded] .support-orb{width:54px;height:54px}
 html[data-nodex-support-embedded] .app-shell[data-workspace-mode="support"] .state--support{padding:4px 0 10px}
 html[data-nodex-support-embedded] .app-shell[data-workspace-mode="support"] .state--support h2{font-size:20px}
 html[data-nodex-support-embedded] .support-topics{margin-top:12px;gap:6px}
 html[data-nodex-support-embedded] .app-shell .support-topics button{height:34px;font-size:11px}
}
@media(max-height:380px){
 html[data-nodex-support-embedded] .support-hero{display:none}
 html[data-nodex-support-embedded] .support-topics{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:8px}
 html[data-nodex-support-embedded] .app-shell[data-workspace-mode="support"] .state--support .support-intro{margin-top:5px;font-size:11px}
 html[data-nodex-support-embedded] .app-shell[data-workspace-mode="support"] .navigation__head{min-height:90px!important}
 html[data-nodex-support-embedded] .app-shell[data-workspace-mode="support"] .navigation__orb{width:44px;height:44px}
}

/* Keep compact controls, give the complete Support composition room to breathe. */
html[data-nodex-support-embedded] .app-shell[data-workspace-mode="support"]{--support-sidebar:208px}
html[data-nodex-support-embedded] .app-shell[data-workspace-mode="support"] .state--support{padding:18px 0 30px;justify-content:center;gap:0}
html[data-nodex-support-embedded] .support-hero{height:128px;margin-bottom:18px}
html[data-nodex-support-embedded] .app-shell[data-workspace-mode="support"] .state--support .support-intro{margin-top:16px;max-width:500px}
html[data-nodex-support-embedded] .support-topics{width:min(100%,760px);gap:18px;margin-top:32px}
html[data-nodex-support-embedded] .app-shell[data-workspace-mode="support"] .composer{width:min(100%,800px)}
html[data-nodex-support-embedded] .app-shell .root-navigation :is(.root-navigation__new,summary){min-height:36px!important;font-size:11.5px!important}
html[data-nodex-support-embedded] .app-shell[data-workspace-mode="support"] .navigation__body{min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain}
@media(max-width:900px){html[data-nodex-support-embedded] .support-topics{width:min(100%,600px);gap:14px;margin-top:26px}html[data-nodex-support-embedded] .support-hero{height:108px;margin-bottom:14px}html[data-nodex-support-embedded] .app-shell[data-workspace-mode="support"] .state--support .support-intro{max-width:360px}}
@media(max-height:560px){html[data-nodex-support-embedded] .support-hero{height:82px;margin-bottom:10px}html[data-nodex-support-embedded] .app-shell[data-workspace-mode="support"] .state--support{padding:8px 0 18px}html[data-nodex-support-embedded] .support-topics{gap:12px;margin-top:22px}html[data-nodex-support-embedded] .app-shell[data-workspace-mode="support"] .state--support .support-intro{margin-top:12px}}
@media(max-height:380px){html[data-nodex-support-embedded] .support-hero{display:none}}
