@font-face {
  font-family: Archivo;
  src: url("/assets/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  font-family:
    Archivo,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #f0f0f3;
  background: #101114;
  color-scheme: dark;
  font-size: 16px;
  --bg: #101114;
  --surface: #191a1f;
  --raised: #202127;
  --line: #2b2d35;
  --muted: #a4a6b2;
  --faint: #777b88;
  --purple: #bbadfa;
  --teal: #91d7c5;
  --amber: #e8c58b;
  --radius: 18px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button {
  background: none;
  border: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
canvas:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 4px;
}
svg.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 2.25rem;
  line-height: 1.15;
  font-weight: 550;
  letter-spacing: -0.055em;
}
h2 {
  font-size: 1.1rem;
  font-weight: 550;
  letter-spacing: -0.015em;
}
h3 {
  font-size: 1rem;
  font-weight: 550;
}
p {
  line-height: 1.6;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
  font-weight: 550;
}
.tiny {
  font-size: 0.8rem;
  color: var(--muted);
}
.skip-link {
  position: fixed;
  top: -60px;
  background: #fff;
  color: #111;
  padding: 12px;
  z-index: 100;
}
.skip-link:focus {
  top: 4px;
}
.initial {
  height: 100dvh;
  display: grid;
  place-content: center;
  gap: 24px;
  text-align: center;
}
.initial .orbit-mark {
  margin: auto;
}
.orbit-mark {
  width: 40px;
  height: 40px;
  background: url("/assets/orbit.svg") center/contain no-repeat;
  display: inline-block;
  flex-shrink: 0;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.grow {
  flex: 1;
  min-width: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 10px;
  background: var(--raised);
  border: 1px solid var(--line);
  font-size: 0.875rem;
  line-height: 1.3;
  font-weight: 500;
  min-height: 42px;
}
.btn:hover {
  background: #2b2d35;
  border-color: #474954;
}
.btn.primary {
  background: #e2dcff;
  color: #252033;
  border-color: transparent;
}
.btn.primary:hover {
  background: #eeeaff;
}
.btn.ghost {
  background: transparent;
  border-color: transparent;
}
.btn.danger {
  color: #ffaaaa;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  color: var(--muted);
}
.icon-btn:hover {
  background: #ffffff0c;
  color: #fff;
}
.pill {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 5px 9px;
  font-size: 0.75rem;
  white-space: nowrap;
  color: var(--muted);
}
.pill svg.icon {
  width: 13px;
  height: 13px;
}
.pill.purple {
  color: var(--purple);
  background: #bbadfa0b;
  border-color: #bbadfa25;
}
.pill.teal {
  color: var(--teal);
  background: #91d7c509;
  border-color: #91d7c526;
}
.pill.amber {
  color: var(--amber);
  border-color: #e8c58b33;
}
.kbd {
  font-size: 0.75rem;
  font-family: inherit;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 5px;
}
.empty {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
  padding: 38px 26px;
  color: var(--muted);
}
.empty svg.icon {
  width: 30px;
  height: 30px;
  color: #9690b9;
}
.empty p {
  font-size: 0.875rem;
  max-width: 360px;
}
.empty h3 {
  color: #dedee7;
}
.inline-notice {
  font-size: 0.875rem;
  padding: 13px 16px;
  border: 1px solid #e8c58b28;
  background: #e8c58b08;
  border-radius: 10px;
  color: #d6c4a4;
  line-height: 1.6;
}
.error {
  color: #ffb0b0;
  font-size: 0.875rem;
  line-height: 1.5;
  min-height: 1em;
}
.loading {
  padding: 48px;
  color: var(--muted);
}
/* A quiet frame around the working surface. */
.shell {
  display: grid;
  grid-template-columns: 226px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  height: 100dvh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  background: #141519;
  border-right: 1px solid #25262c;
  padding: 26px 18px 18px;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 9px 27px;
  font-size: 1.3rem;
  font-weight: 550;
  letter-spacing: 0.01em;
}
.brand small {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  margin-left: auto;
  color: var(--faint);
}
.sidebar-search {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 10px 11px;
  border-radius: 9px;
  font-size: 0.875rem;
  width: 100%;
  margin-bottom: 30px;
}
.sidebar-search svg {
  width: 17px;
}
.sidebar-search kbd {
  margin-left: auto;
}
.nav-label {
  padding: 0 12px 10px;
  font-size: 0.7rem;
  color: #7e818e;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 9px;
  font-size: 0.9rem;
  color: #a9acb7;
  position: relative;
}
.nav a:hover {
  background: #ffffff05;
  color: #eee;
}
.nav a.active {
  background: #bbadfa10;
  color: #e2dcff;
}
.nav a.active:before {
  content: "";
  position: absolute;
  left: -18px;
  width: 3px;
  height: 19px;
  background: var(--purple);
  border-radius: 0 3px 3px 0;
}
.nav a .count {
  font-size: 0.7rem;
  background: #ffffff0b;
  padding: 2px 6px;
  border-radius: 5px;
  margin-left: auto;
}
.nav-divider {
  height: 1px;
  background: #26282e;
  margin: 24px 10px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 32px;
}
.profile {
  margin-top: 16px;
  padding: 17px 9px 0;
  border-top: 1px solid #272830;
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: #33303f;
  color: #d8cef9;
  font-size: 0.875rem;
}
.profile-name {
  font-size: 0.875rem;
}
.profile-sub {
  font-size: 0.7rem;
  color: var(--faint);
  margin-top: 3px;
}
.topbar {
  height: 71px;
  border-bottom: 1px solid #25262c;
  padding: 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.breadcrumb {
  color: var(--faint);
  font-size: 0.8rem;
  display: flex;
  gap: 12px;
  align-items: center;
}
.breadcrumb strong {
  color: #c7c9d2;
  font-weight: 450;
}
.topbar .pill {
  background: transparent;
  font-size: 0.75rem;
}
.main {
  max-width: 1560px;
  margin: auto;
  padding: 37px 38px 48px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.page-heading .eyebrow {
  margin-bottom: 12px;
}
.page-heading p {
  font-size: 0.94rem;
  color: var(--muted);
  margin-top: 11px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 23px 25px 18px;
}
.panel-head .eyebrow {
  margin-bottom: 9px;
}
.panel-body {
  padding: 0 25px 25px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
  gap: 22px;
}
.wide {
  grid-column: 1/-1;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 19px 21px;
  background: linear-gradient(130deg, #202127, #191a1e);
  min-height: 122px;
}
.stat .row {
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}
.stat svg {
  width: 16px;
}
.stat-value {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 16px;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}
.stat-value span {
  font-size: 0.8rem;
  color: var(--faint);
  letter-spacing: 0;
}
.stat-value .small-value {
  font-size: 1.2rem;
  color: #e3e0ed;
}
.subtle-link {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 0.8rem;
}
.subtle-link:hover {
  color: #e3daff;
}
.subtle-link svg {
  width: 16px;
}
.galaxy-card {
  background: radial-gradient(
    ellipse at 40% 50%,
    #252438 0%,
    #191922 40%,
    #15161b 85%
  );
  position: relative;
  min-height: 355px;
}
.galaxy-card .panel-head {
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.galaxy-card .panel-head a {
  pointer-events: auto;
}
.galaxy-preview {
  height: 235px;
  position: relative;
}
.galaxy-footer {
  padding: 0 24px 23px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #a2a0b9;
}
.legend {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #b7b8c5;
}
.legend i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  background: var(--purple);
}
.note-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #ffffff08;
  min-width: 0;
  text-align: left;
  width: 100%;
}
.note-row:last-child {
  border-bottom: 0;
}
.note-row:hover .note-row-title {
  color: var(--purple);
}
.note-glyph {
  width: 35px;
  height: 38px;
  border: 1px solid #aba3dc24;
  border-radius: 8px;
  background: #aba3dc08;
  color: #b3add0;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.note-row-title {
  font-size: 0.9rem;
  margin-bottom: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.note-row-sub {
  font-size: 0.75rem;
  color: var(--faint);
}
.note-row .icon-btn {
  width: 25px;
}
.quick-composer {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #222329;
  border: 1px solid #383a44;
  padding: 14px 16px;
  border-radius: 13px;
}
.quick-composer .hermes-icon {
  display: grid;
  place-items: center;
  background: #bcaafd14;
  color: var(--purple);
  border-radius: 9px;
  width: 34px;
  height: 34px;
}
.quick-composer input {
  background: transparent;
  border: 0;
  outline: none;
  min-width: 0;
  flex: 1;
  font-size: 0.9rem;
  color: #eee;
}
.quick-composer input::placeholder {
  color: #9294a2;
}
.quick-composer .btn {
  padding: 9px 12px;
  min-height: 36px;
}
.composer-help {
  font-size: 0.75rem;
  color: var(--faint);
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.feed-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  padding: 19px 0;
  border-bottom: 1px solid #ffffff08;
}
.feed-row:last-child {
  border: 0;
}
.feed-row h3 {
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.feed-row p {
  font-size: 0.85rem;
  color: var(--muted);
  white-space: pre-wrap;
}
.feed-category {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--teal);
  background: #91d7c50e;
}
.feed-meta {
  font-size: 0.75rem;
  color: var(--faint);
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}
.feed-meta a {
  color: var(--purple);
}
.feed-row.read {
  opacity: 0.65;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 29px 0 15px;
}
.workspace-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.workspace-link {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 17px;
  background: #191a1e;
}
.workspace-link:hover {
  border-color: #514c68;
}
.workspace-link .app-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #d9cefa;
  background: #bcaafd12;
}
.workspace-link h3 {
  font-size: 0.85rem;
}
.workspace-link p {
  font-size: 0.75rem;
  color: var(--faint);
  margin-top: 5px;
}
.workspace-link > .icon {
  width: 15px;
  color: var(--faint);
  margin-left: auto;
}
/* Knowledge and the same data viewed spatially. */
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 24px;
  align-items: center;
}
.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #17181d;
}
.tabs button {
  padding: 8px 12px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.85rem;
}
.tabs button.selected {
  background: #30303b;
  color: #efebff;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  background: #191a1f;
  max-width: 380px;
  width: 100%;
}
.search-field svg {
  color: var(--faint);
  width: 17px;
}
.search-field input {
  border: 0;
  outline: none;
  background: none;
  min-width: 0;
  width: 100%;
  color: inherit;
  font-size: 0.875rem;
}
.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
}
.note-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  text-align: left;
  transition:
    border-color 0.15s,
    transform 0.15s;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  min-height: 220px;
}
.note-card:hover {
  border-color: #625b7d;
  transform: translateY(-2px);
}
.note-card h3 {
  font-size: 1.02rem;
  line-height: 1.4;
}
.note-card .excerpt {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.note-card .card-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--faint);
  font-size: 0.75rem;
}
.filter-empty {
  grid-column: 1/-1;
}
.galaxy-workspace {
  height: min(650px, calc(100dvh - 265px));
  min-height: 420px;
  position: relative;
  background: radial-gradient(
    ellipse at 50% 47%,
    #222235,
    #14151d 55%,
    #111216
  );
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.galaxy-workspace canvas,
.galaxy-preview canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
}
.galaxy-workspace canvas:active {
  cursor: grabbing;
}
.galaxy-tools {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 6px;
  padding: 5px;
  background: #14151be8;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.galaxy-tools .icon-btn {
  width: 33px;
  height: 33px;
}
.galaxy-caption {
  position: absolute;
  bottom: 22px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  pointer-events: none;
}
.galaxy-caption .tiny {
  color: #81869b;
}
.graph-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.graph-list button {
  font-size: 0.8rem;
  color: #bcb9cf;
  padding: 7px 11px;
  border-radius: 7px;
  background: #ffffff04;
  border: 1px solid var(--line);
}
.graph-list button:hover {
  border-color: var(--purple);
}
/* Private editing surface. */
dialog {
  color: inherit;
  border: 1px solid var(--line);
  background: #191a20;
  padding: 0;
  box-shadow: 0 30px 100px #0008;
}
dialog::backdrop {
  background: #05060c88;
  backdrop-filter: blur(5px);
}
.sheet {
  margin: 0 0 0 auto;
  width: min(700px, 100vw);
  height: 100dvh;
  max-height: 100dvh;
  max-width: 100vw;
  border-radius: 20px 0 0 20px;
  border-right: 0;
  overflow: auto;
}
.sheet-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
  background: #191a20f5;
  backdrop-filter: blur(15px);
}
.sheet-content {
  padding: 30px;
}
.sheet-title {
  font-size: 1.7rem;
  font-weight: 550;
  letter-spacing: -0.04em;
  line-height: 1.2;
}
.sheet-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 22px 0;
}
.note-metadata {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 28px;
}
.prose {
  font-size: 1rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
  color: #d0d2dc;
}
.prose h1 {
  font-size: 1.6rem;
}
.prose h1,
.prose h2,
.prose h3 {
  color: #f0f0f3;
  line-height: 1.35;
  margin: 25px 0 13px;
}
.prose h2 {
  font-size: 1.15rem;
}
.prose p,
.prose ul,
.prose ol,
.prose blockquote {
  margin: 14px 0;
}
.prose ul,
.prose ol {
  padding-left: 23px;
}
.prose li {
  padding: 3px 0;
}
.prose a {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose pre {
  background: #101114;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: auto;
  font-size: 0.8rem;
}
.prose code {
  font-family: ui-monospace, monospace;
  font-size: 0.88em;
  color: #dacff7;
}
.prose blockquote {
  border-left: 2px solid #706485;
  padding-left: 18px;
  color: #aaa7bf;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 20px;
}
.field > label {
  font-size: 0.85rem;
  color: #c5c7d3;
}
.field input,
.field textarea,
.field select {
  border: 1px solid #3b3d48;
  background: #131419;
  padding: 12px 14px;
  border-radius: 9px;
  color: inherit;
  min-width: 0;
  width: 100%;
  font-size: 0.95rem;
}
.field textarea {
  resize: vertical;
  min-height: 220px;
  line-height: 1.65;
}
.field .markdown-editor {
  font-family: ui-monospace, monospace;
  font-size: 0.875rem;
  min-height: 48dvh;
}
.field small {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.6;
}
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
}
.check-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 0;
  color: #d4d5df;
  font-size: 0.9rem;
  line-height: 1.5;
}
.check-row input {
  accent-color: #b9a4f5;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 3px;
}
.permission-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.permission-row select {
  border: 1px solid var(--line);
  background: #24252d;
  border-radius: 8px;
  padding: 10px;
  color: inherit;
  font-size: 0.85rem;
}
.token-box {
  padding: 16px;
  border: 1px solid #bcaafd40;
  background: #bcaafd08;
  border-radius: 10px;
  font-family: ui-monospace, monospace;
  word-break: break-all;
  font-size: 0.85rem;
  user-select: all;
  line-height: 1.7;
}
.history-entry {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.history-entry summary {
  cursor: pointer;
  font-size: 0.9rem;
}
.history-entry pre {
  white-space: pre-wrap;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.65;
  max-height: 260px;
  overflow: auto;
}
.command {
  width: min(600px, calc(100vw - 30px));
  border-radius: 16px;
  margin-top: 15dvh;
}
.command-search {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.command-search input {
  font-size: 1rem;
  background: none;
  border: 0;
  outline: none;
  color: inherit;
  width: 100%;
}
.command-results {
  padding: 9px;
  max-height: 50dvh;
  overflow: auto;
}
.command-results button {
  padding: 13px;
  border-radius: 9px;
  display: flex;
  gap: 12px;
  width: 100%;
  text-align: left;
  font-size: 0.9rem;
}
.command-results button:hover {
  background: #ffffff09;
}
.command-results .tiny {
  margin-left: auto;
}
.command-footer {
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--muted);
}
#toasts {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: max-content;
  max-width: calc(100vw - 30px);
}
.toast {
  border: 1px solid #565067;
  border-radius: 11px;
  background: #2a2734;
  box-shadow: 0 10px 30px #0005;
  padding: 14px 20px;
  font-size: 0.875rem;
  margin-top: 8px;
  line-height: 1.5;
}
.toast.bad {
  border-color: #975b5b;
  background: #342426;
}
/* Agent inbox and account. */
.agent-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
  gap: 22px;
}
.agent-profile {
  display: flex;
  gap: 17px;
  align-items: center;
  padding: 25px;
  border-bottom: 1px solid var(--line);
}
.agent-avatar {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #bbadfa10;
  color: var(--purple);
  border: 1px solid #bbadfa20;
}
.agent-profile p {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 6px;
}
.job-card {
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}
.job-card:last-child {
  border: 0;
}
.job-card p {
  font-size: 0.9rem;
  color: #d5d6df;
  margin: 12px 0;
  white-space: pre-wrap;
}
.job-result {
  padding: 16px;
  background: #ffffff04;
  border: 1px solid #ffffff0a;
  border-radius: 10px;
  margin-top: 14px;
}
.job-result .prose {
  font-size: 0.9rem;
}
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr);
  gap: 22px;
}
.settings-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}
.settings-row:last-child {
  border: 0;
}
.settings-row h3 {
  font-size: 0.9rem;
}
.settings-row p {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 7px;
  line-height: 1.5;
}
.settings-row .value {
  font-size: 0.8rem;
  color: var(--purple);
  text-align: right;
}
.audit-row {
  padding: 13px 0;
  border-bottom: 1px solid #ffffff08;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.audit-row time {
  color: var(--faint);
  white-space: nowrap;
}
.finance-panel {
  padding: 38px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
}
.finance-orbit {
  background: radial-gradient(circle, #bbadfa16, transparent 70%);
  min-height: 220px;
  display: grid;
  place-items: center;
}
.finance-orbit svg {
  width: 80px;
  height: 80px;
  stroke-width: 0.8;
  color: #bdb1e3;
}
.finance-panel .prose {
  margin-top: 20px;
}
.finance-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 25px;
}
.finance-features div {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  padding: 17px;
  border-radius: 12px;
}
.finance-features svg {
  color: #a99bcd;
}
/* Login is deliberately independent of the protected workspace. */
.login-page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 0.85fr);
  background: #111216;
}
.login-art {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 60px;
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: radial-gradient(ellipse at 30% 40%, #272436, #14151b 60%);
}
.login-art:before,
.login-art:after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border: 1px solid #bcaafd16;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-35deg) scaleY(0.5);
  pointer-events: none;
}
.login-art:after {
  transform: translate(-50%, -50%) rotate(40deg) scaleY(0.55);
  width: 410px;
  height: 410px;
  border-color: #bcaafd25;
}
.login-art .brand {
  position: relative;
  z-index: 1;
  padding: 0;
}
.login-statement {
  position: relative;
  z-index: 1;
  max-width: 470px;
  margin: 40px 0;
}
.login-statement h1 {
  font-size: clamp(2.7rem, 4vw, 4.5rem);
  line-height: 1.06;
  letter-spacing: -0.065em;
  font-weight: 480;
}
.login-statement h1 span {
  color: var(--purple);
}
.login-statement p {
  max-width: 330px;
  font-size: 1rem;
  color: #aaa7bb;
  margin-top: 25px;
}
.login-footer {
  font-size: 0.75rem;
  color: #898596;
}
.login-form-wrap {
  display: grid;
  place-items: center;
  padding: 45px 35px;
}
.login-form {
  width: 100%;
  max-width: 350px;
}
.login-form h2 {
  font-size: 1.8rem;
  letter-spacing: -0.045em;
  margin-bottom: 12px;
}
.login-form > p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 34px;
}
.login-form .btn {
  width: 100%;
  margin-top: 5px;
}
.login-form .fineprint {
  font-size: 0.75rem;
  line-height: 1.65;
  margin-top: 24px;
  text-align: center;
  color: var(--faint);
}
.mobile-menu {
  display: none;
}
.local-banner {
  padding: 9px 18px;
  text-align: center;
  background: #8a725915;
  color: #cbb899;
  border-bottom: 1px solid #8a725922;
  font-size: 0.75rem;
}
@media (min-width: 1500px) {
  .main {
    padding-top: 42px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.65fr) minmax(370px, 1fr);
  }
  .galaxy-preview {
    height: 270px;
  }
}
@media (max-width: 1150px) {
  .shell {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 13px;
    padding-right: 13px;
  }
  .nav a.active:before {
    left: -13px;
  }
  .brand small {
    display: none;
  }
  .main {
    padding: 30px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .notes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 1fr);
    gap: 16px;
  }
  .panel-head {
    padding: 20px;
  }
  .panel-body {
    padding: 0 20px 20px;
  }
  .workspace-link {
    padding: 14px;
    gap: 9px;
  }
  .workspace-link p {
    font-size: 0.7rem;
  }
  .workspace-link .app-icon {
    width: 31px;
    height: 31px;
  }
  .workspace-links {
    gap: 10px;
  }
  .agent-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .login-art {
    padding: 38px;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 17px;
  }
  .stat-value {
    font-size: 1.6rem;
  }
}
@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    margin-bottom: 18px;
  }
  .workspace-links {
    grid-template-columns: 1fr;
  }
  .workspace-link {
    padding: 18px;
  }
  .workspace-link p {
    font-size: 0.8rem;
  }
  .finance-panel {
    grid-template-columns: 1fr;
  }
  .finance-orbit {
    display: none;
  }
  .finance-features {
    grid-template-columns: 1fr;
  }
  .login-page {
    grid-template-columns: 1fr;
  }
  .login-art {
    display: none;
  }
  .login-form-wrap {
    min-height: 100dvh;
  }
  .page-heading h1 {
    font-size: 2rem;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .search-field {
    max-width: none;
  }
  .galaxy-caption {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 232px;
    transform: translateX(-100%);
    transition: transform 0.2s;
    box-shadow: 10px 0 50px #0007;
  }
  .sidebar.open {
    transform: none;
  }
  .topbar {
    height: 61px;
    padding: 0 17px;
    position: sticky;
    top: 0;
    background: #101114ee;
    backdrop-filter: blur(12px);
    z-index: 5;
  }
  .mobile-menu {
    display: inline-grid;
  }
  .breadcrumb > span {
    display: none;
  }
  .topbar .pill {
    font-size: 0.65rem;
  }
  .main {
    padding: 27px 18px 40px;
  }
  .page-heading {
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 14px;
  }
  .page-heading .btn {
    font-size: 0;
    padding: 11px;
    min-width: 42px;
  }
  .page-heading .btn svg {
    width: 20px;
  }
  .page-heading h1 {
    font-size: 1.9rem;
  }
  .page-heading p {
    font-size: 0.85rem;
  }
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .stat {
    padding: 14px 11px;
    min-height: 105px;
  }
  .stat .row {
    font-size: 0.75rem;
    gap: 5px;
  }
  .stat .row svg {
    display: none;
  }
  .stat-value {
    font-size: 1.4rem;
    display: block;
    margin-top: 12px;
  }
  .stat-value span {
    display: block;
    margin-top: 4px;
    font-size: 0.65rem;
  }
  .stat-value .small-value {
    font-size: 1rem;
  }
  .notes-grid {
    grid-template-columns: 1fr;
  }
  .note-card {
    min-height: 190px;
  }
  .galaxy-card {
    min-height: 320px;
  }
  .galaxy-preview {
    height: 210px;
  }
  .galaxy-footer {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }
  .quick-composer {
    padding: 11px;
    gap: 9px;
  }
  .quick-composer .hermes-icon {
    display: none;
  }
  .quick-composer input {
    font-size: 0.85rem;
  }
  .quick-composer .btn {
    font-size: 0;
    gap: 0;
    padding: 9px;
  }
  .galaxy-workspace {
    height: 500px;
    min-height: 380px;
  }
  .galaxy-tools {
    top: 12px;
    right: 12px;
  }
  .legend {
    gap: 10px;
  }
  .galaxy-caption {
    left: 16px;
    bottom: 16px;
    right: 16px;
  }
  .sheet {
    border-radius: 0;
  }
  .sheet-content {
    padding: 24px 20px;
  }
  .sheet-head {
    padding: 17px 20px;
  }
  .finance-panel {
    padding: 24px;
  }
  .tabs {
    width: 100%;
    overflow-x: auto;
  }
  .tabs button {
    flex: 1;
    white-space: nowrap;
    font-size: 0.8rem;
    padding: 8px;
  }
  .feed-row {
    grid-template-columns: 28px 1fr auto;
    gap: 9px;
  }
  .feed-meta {
    flex-wrap: wrap;
  }
  .settings-row {
    align-items: flex-start;
  }
  .toolbar {
    gap: 12px;
  }
  .topbar-actions > .btn {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .note-card:hover {
    transform: none;
  }
}
