:root {
  --bg: #e7e7e3;
  --panel: rgba(255, 255, 255, .38);
  --panel-strong: rgba(247, 247, 242, .94);
  --ink: #10100f;
  --muted: #777770;
  --soft: rgba(16, 16, 15, .58);
  --line: rgba(16, 16, 15, .12);
  --shadow: 0 32px 90px rgba(16, 16, 15, .14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar {
  height: 78px;
  padding: 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(16, 16, 15, .72);
  font-size: 13px;
  font-weight: 650;
}

.brand {
  font-size: 18px;
  color: var(--ink);
  font-weight: 760;
}

.account {
  position: relative;
  display: flex;
  align-items: center;
}

.avatar-button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background:
    radial-gradient(circle at 30% 26%, rgba(255,255,255,.92), transparent 16%),
    radial-gradient(circle at 64% 66%, #74b8d2, transparent 28%),
    radial-gradient(circle at 38% 70%, #d996a3, transparent 28%),
    #11110f;
  box-shadow: 0 8px 22px rgba(16, 16, 15, .16);
}

.account-menu {
  position: absolute;
  top: 46px;
  right: 0;
  width: 194px;
  padding: 10px;
  display: grid;
  gap: 2px;
  border: 1px solid rgba(16, 16, 15, .10);
  background: var(--panel-strong);
  box-shadow: 0 22px 60px rgba(16, 16, 15, .18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
  z-index: 10;
}

.account.is-open .account-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.account-menu a {
  padding: 10px 11px;
  color: rgba(16, 16, 15, .76);
  font-size: 13px;
  font-weight: 680;
}

.account-menu a:hover {
  color: var(--ink);
  background: rgba(16, 16, 15, .06);
}

.main-shell {
  padding: 18px 32px 36px;
  display: grid;
  place-items: start center;
}

.hero {
  width: min(1360px, 100%);
  min-height: calc(100vh - 132px);
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 30px;
}

.canvas-frame {
  position: relative;
  min-height: 550px;
  max-height: 690px;
  aspect-ratio: 16 / 7.35;
  overflow: hidden;
  background: #cbd5da;
  box-shadow: var(--shadow);
}

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

.canvas-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(16,16,15,.16)),
    radial-gradient(circle at 50% 48%, rgba(255,255,255,.18), transparent 42%);
  pointer-events: none;
}

.image-text {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 360px;
  align-items: center;
  padding: 42px 56px;
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 22px rgba(0,0,0,.22);
}

.entry-rail {
  display: grid;
  gap: 18px;
  align-content: center;
  justify-self: start;
  color: rgba(255,255,255,.78);
}

.entry-rail a {
  width: fit-content;
  color: inherit;
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.entry-rail a:hover {
  color: white;
}

.glyph {
  width: 76px;
  height: 32px;
  position: relative;
  margin: 4px 0 6px;
}

.glyph::before,
.glyph::after {
  content: "";
  position: absolute;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
}

.glyph::before {
  left: 0;
}

.glyph::after {
  left: 22px;
  box-shadow: 22px 0 0 rgba(255,255,255,.94);
}

.statement {
  position: absolute;
  right: 72px;
  top: 50%;
  width: max-content;
  transform: translateY(-50%);
}

.overline {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 730;
  text-transform: uppercase;
  color: rgba(255,255,255,.68);
}

.statement h1 {
  margin: 0;
  font-size: clamp(27px, 3vw, 52px);
  line-height: 1.04;
  font-weight: 380;
  white-space: nowrap;
}

.ticker-window {
  display: inline-block;
  min-width: 9.9ch;
  height: 1.08em;
  overflow: hidden;
  vertical-align: bottom;
  color: #fff;
  text-align: left;
  text-shadow: none;
}

.ticker-stack {
  display: grid;
  justify-items: start;
  animation: rotateWords 12s cubic-bezier(.7, 0, .2, 1) infinite;
}

.ticker-stack span {
  display: block;
  width: max-content;
  height: 1.08em;
  white-space: nowrap;
}

@keyframes rotateWords {
  0%, 14% { transform: translateY(0); }
  18%, 30% { transform: translateY(-1.08em); }
  34%, 46% { transform: translateY(-2.16em); }
  50%, 62% { transform: translateY(-3.24em); }
  66%, 78% { transform: translateY(-4.32em); }
  82%, 96% { transform: translateY(-5.4em); }
  100% { transform: translateY(-5.4em); }
}

.below {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
}

.intro {
  max-width: 780px;
}

.intro time {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.intro h2,
.page-heading h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: .96;
  font-weight: 760;
}

.intro p,
.page-heading p,
.empty-state p {
  max-width: 680px;
  margin: 18px 0 0;
  color: #4d4d49;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2.6vw, 35px);
  line-height: 1.18;
}

.links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.links a,
.pill-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.32);
  color: rgba(16,16,15,.72);
  cursor: pointer;
  font-size: 13px;
  font-weight: 720;
}

.pill-button {
  width: fit-content;
  background: #10100f;
  color: white;
}

.pill-button.secondary {
  background: rgba(255,255,255,.34);
  color: rgba(16,16,15,.74);
}

.pill-button:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.file-button input {
  display: none;
}

.page-grid {
  width: min(1240px, 100%);
  display: grid;
  gap: 20px;
}

.compact-page {
  width: min(960px, 100%);
}

.auth-page {
  width: min(960px, 100%);
  justify-items: center;
}

.auth-page .page-heading {
  width: min(876px, 100%);
}

.auth-page .page-heading h1 {
  max-width: 820px;
}

.auth-layout {
  width: min(876px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 430px));
  gap: 16px;
  align-items: stretch;
  justify-content: center;
}

.page-heading {
  padding: 12px 0 10px;
}

.kicker,
.card-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 730;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.sync-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.sync-layout.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sync-card,
.panel,
.metric,
.empty-state,
.method-note,
.route-node {
  border: 1px solid rgba(16, 16, 15, .10);
  background: var(--panel);
}

.sync-card {
  min-height: 268px;
  display: grid;
  align-content: space-between;
  gap: 22px;
  padding: 20px;
}

.sync-card h2,
.panel h2,
.empty-state h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.08;
  font-weight: 760;
}

.sync-card p {
  margin: 10px 0 0;
  color: rgba(16, 16, 15, .58);
  font-size: 13px;
  line-height: 1.42;
  font-weight: 570;
}

.cloud-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cloud-panel p,
.auth-panel p {
  margin: 8px 0 0;
  color: rgba(16, 16, 15, .58);
  font-size: 13px;
  line-height: 1.42;
  font-weight: 570;
}

.auth-panel {
  width: 100%;
  min-height: 360px;
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 22px;
}

.auth-panel > span,
.cloud-panel span {
  color: rgba(16, 16, 15, .44);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.auth-form {
  display: grid;
  gap: 11px;
}

.login-form {
  padding-top: 36px;
}

.login-form .auth-actions {
  margin-top: 63px;
}

.access-panel {
  gap: 16px;
}

.access-panel .auth-form {
  padding-top: 2px;
}

.invite-form {
  padding-top: 14px;
  border-top: 1px solid rgba(16, 16, 15, .10);
}

.auth-form label {
  display: grid;
  gap: 7px;
}

.auth-form label span {
  color: rgba(16, 16, 15, .48);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.auth-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 15px;
  border: 1px solid rgba(16, 16, 15, .14);
  border-radius: 999px;
  background: rgba(255,255,255,.28);
  color: var(--ink);
  font-size: 14px;
  font-weight: 620;
  outline: none;
}

.auth-form input::placeholder {
  color: rgba(16, 16, 15, .36);
}

.auth-form input:focus {
  border-color: rgba(16, 16, 15, .36);
  background: rgba(255,255,255,.42);
}

.auth-actions {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.auth-actions .pill-button {
  width: 100%;
  min-height: 44px;
}

.auth-form > .pill-button {
  width: 100%;
  min-height: 44px;
}

.form-message {
  margin: 0;
  color: rgba(16, 16, 15, .62);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 620;
}

.session-box {
  display: grid;
  gap: 14px;
}

.file-status {
  display: grid;
  gap: 5px;
  padding-top: 16px;
  border-top: 1px solid rgba(16, 16, 15, .10);
}

.file-status span:first-child,
.metric span,
.route-node span,
.method-note span,
.panel-head span {
  color: rgba(16, 16, 15, .44);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.file-status strong {
  min-height: 18px;
  color: rgba(16, 16, 15, .78);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 720;
  word-break: break-word;
}

.file-status time {
  color: rgba(16, 16, 15, .46);
  font-size: 12px;
  font-weight: 620;
}

.sync-route {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  padding-top: 4px;
}

.route-node {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 14px 16px;
}

.route-node strong {
  color: rgba(16, 16, 15, .82);
  font-size: 15px;
  font-weight: 760;
}

.route-arrow {
  color: rgba(16, 16, 15, .42);
  font-size: 20px;
  font-weight: 650;
}

.empty-state {
  min-height: 380px;
  display: grid;
  place-items: center;
  text-align: center;
}

.empty-state > div {
  width: min(560px, 100%);
  padding: 42px 24px;
}

.empty-state h2 {
  font-size: clamp(30px, 4vw, 52px);
}

.empty-state p {
  margin: 18px auto 24px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 16px;
}

.metric strong {
  color: rgba(16, 16, 15, .86);
  font-size: 24px;
  line-height: 1;
  font-weight: 760;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.4fr);
  gap: 14px;
}

.panel {
  padding: 18px;
}

.detail-panel {
  margin-top: 14px;
}

.panel h2 {
  margin-bottom: 14px;
  font-size: 18px;
}

.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.donut-wrap {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: center;
}

.donut {
  width: 150px;
  aspect-ratio: 1;
  border-radius: 50%;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(16,16,15,.08);
}

.donut::after {
  content: "";
  position: absolute;
  inset: 38px;
  border-radius: 50%;
  background: rgba(247, 247, 242, .98);
  box-shadow: inset 0 0 0 1px rgba(16,16,15,.08);
}

.weight-list {
  display: grid;
  gap: 9px;
}

.weight-row {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 9px;
  align-items: center;
  color: rgba(16, 16, 15, .74);
  font-size: 13px;
  font-weight: 680;
}

.weight-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
}

th,
td {
  padding: 11px 10px;
  border-bottom: 1px solid rgba(16, 16, 15, .09);
  text-align: left;
  font-size: 12px;
  line-height: 1.3;
}

th {
  color: rgba(16, 16, 15, .44);
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: .02em;
}

td {
  color: rgba(16, 16, 15, .76);
  font-weight: 650;
}

td:last-child,
th:last-child {
  text-align: right;
}

.method-note {
  padding: 16px 18px;
}

.method-note p {
  margin: 7px 0 0;
  color: rgba(16, 16, 15, .62);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 560;
}

.journal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 14px;
  align-items: start;
}

.journal-main,
.journal-side {
  display: grid;
  gap: 14px;
}

.section-head {
  display: grid;
  gap: 6px;
}

.section-head span {
  color: rgba(16, 16, 15, .44);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.section-head h2 {
  margin: 0;
  color: rgba(16, 16, 15, .88);
  font-size: 22px;
  line-height: 1.04;
  font-weight: 760;
}

.prompt-list {
  display: grid;
  gap: 8px;
}

.prompt-row {
  width: 100%;
  display: grid;
  gap: 5px;
  padding: 15px 16px;
  border: 1px solid rgba(16, 16, 15, .10);
  background: rgba(255,255,255,.30);
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.prompt-row:hover {
  background: rgba(255,255,255,.45);
}

.prompt-row span {
  color: rgba(16, 16, 15, .44);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.prompt-row strong {
  color: rgba(16, 16, 15, .86);
  font-size: 15px;
  font-weight: 760;
}

.prompt-row em {
  color: rgba(16, 16, 15, .60);
  font-size: 13px;
  line-height: 1.42;
  font-style: normal;
  font-weight: 570;
}

.journal-write-panel {
  display: grid;
  gap: 16px;
}

.journal-form {
  display: grid;
  gap: 12px;
}

.journal-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 180px;
  gap: 10px;
}

.journal-form label {
  display: grid;
  gap: 7px;
}

.journal-form span {
  color: rgba(16, 16, 15, .48);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.journal-form input,
.journal-form textarea {
  width: 100%;
  border: 1px solid rgba(16, 16, 15, .14);
  background: rgba(255,255,255,.28);
  color: var(--ink);
  font-size: 14px;
  font-weight: 620;
  outline: none;
}

.journal-form input {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
}

.journal-form textarea {
  min-height: 150px;
  padding: 13px 14px;
  border-radius: 8px;
  line-height: 1.45;
  resize: vertical;
}

.journal-form input::placeholder,
.journal-form textarea::placeholder {
  color: rgba(16, 16, 15, .36);
}

.journal-form input:focus,
.journal-form textarea:focus {
  border-color: rgba(16, 16, 15, .36);
  background: rgba(255,255,255,.42);
}

.journal-form .pill-button {
  width: 100%;
  min-height: 44px;
}

.mini-list,
.journal-entry-list {
  display: grid;
  gap: 9px;
}

.mini-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid rgba(16, 16, 15, .08);
}

.mini-row:last-child {
  border-bottom: 0;
}

.mini-row div {
  display: grid;
  gap: 4px;
}

.mini-row div:last-child {
  text-align: right;
}

.mini-row strong {
  color: rgba(16, 16, 15, .82);
  font-size: 13px;
  line-height: 1.1;
  font-weight: 760;
}

.mini-row span,
.quiet-copy {
  color: rgba(16, 16, 15, .54);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 620;
}

.quiet-copy {
  margin: 0;
}

.journal-entry {
  display: grid;
  gap: 6px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(16, 16, 15, .08);
}

.journal-entry:last-child {
  border-bottom: 0;
}

.journal-entry span {
  color: rgba(16, 16, 15, .44);
  font-size: 11px;
  font-weight: 720;
  text-transform: uppercase;
}

.journal-entry h3 {
  margin: 0;
  color: rgba(16, 16, 15, .86);
  font-size: 15px;
  line-height: 1.15;
  font-weight: 760;
}

.journal-entry small {
  color: rgba(16, 16, 15, .48);
  font-size: 11px;
  line-height: 1.3;
  font-weight: 680;
}

.journal-entry p {
  margin: 0;
  color: rgba(16, 16, 15, .62);
  font-size: 13px;
  line-height: 1.42;
  font-weight: 560;
}

.market-context-page {
  width: min(1380px, 100%);
}

.market-context-heading p {
  max-width: 880px;
}

.market-loading {
  min-height: 320px;
  border: 1px solid rgba(16, 16, 15, .08);
  background: linear-gradient(100deg, rgba(255,255,255,.18) 20%, rgba(255,255,255,.48) 42%, rgba(255,255,255,.18) 64%);
  background-size: 220% 100%;
  animation: market-loading 1.3s ease-in-out infinite;
}

@keyframes market-loading {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

.market-pulse-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.market-mood-panel,
.market-drivers-panel,
.market-heatmap-panel {
  background: rgba(255,255,255,.44);
}

.market-panel-head,
.market-heatmap-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.market-panel-head > div,
.market-heatmap-head > div:first-child {
  display: grid;
  gap: 7px;
}

.market-panel-head span,
.market-heatmap-head span {
  color: rgba(16, 16, 15, .46);
  font-size: 11px;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.market-panel-head h2,
.market-heatmap-head h2 {
  margin: 0;
  color: rgba(16,16,15,.88);
  font-size: 22px;
  line-height: 1.05;
  font-weight: 760;
}

.market-panel-head small {
  max-width: 360px;
  color: rgba(16,16,15,.46);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 620;
  text-align: right;
}

.market-gauge-wrap {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0 0;
}

.market-gauge {
  width: min(330px, 100%);
  overflow: visible;
}

.market-gauge-track,
.market-gauge-color {
  fill: none;
  stroke-linecap: round;
  stroke-width: 18;
}

.market-gauge-track {
  stroke: rgba(16,16,15,.08);
}

.market-gauge-color {
  stroke: url(#marketGaugeGradient);
}

.market-gauge-needle {
  stroke: #10100f;
  stroke-width: 3;
  stroke-linecap: round;
}

.market-gauge-pin {
  fill: #10100f;
}

.market-gauge-reading {
  display: grid;
  justify-items: center;
  gap: 3px;
  margin-top: 8px;
}

.market-gauge-reading strong {
  color: #10100f;
  font-size: 42px;
  line-height: .9;
  font-weight: 780;
}

.market-gauge-reading span {
  color: rgba(16,16,15,.74);
  font-size: 13px;
  font-weight: 780;
  text-transform: uppercase;
}

.market-gauge-reading small,
.market-method-note {
  color: rgba(16,16,15,.46);
  font-size: 11px;
  font-weight: 640;
}

.market-method-note {
  margin: 2px 0 0;
  text-align: center;
}

.market-drivers-comparison {
  padding: 20px;
}

.market-driver-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  margin-top: 24px;
}

.market-driver-column + .market-driver-column {
  padding-left: 36px;
  border-left: 1px solid rgba(16,16,15,.09);
}

.market-driver-column-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.market-driver-column-head strong {
  color: rgba(16,16,15,.86);
  font-size: 16px;
  font-weight: 760;
}

.market-driver-column-head span {
  color: rgba(16,16,15,.46);
  font-size: 10px;
  line-height: 1.4;
  font-weight: 650;
  text-align: right;
}

.market-driver-column .market-driver-list {
  margin-top: 10px;
}

.market-driver-list {
  display: grid;
  margin-top: 24px;
}

.market-driver {
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, .55fr);
  gap: 24px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(16,16,15,.09);
}

.market-driver:last-child {
  border-bottom: 0;
}

.market-driver > div:first-child {
  display: grid;
  gap: 5px;
}

.market-driver span {
  color: rgba(16,16,15,.46);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

.market-driver strong {
  color: rgba(16,16,15,.82);
  font-size: 15px;
  font-weight: 700;
}

.market-driver-score {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
}

.market-driver-score > span {
  color: rgba(16,16,15,.76);
  font-size: 12px;
  text-align: right;
}

.market-driver-score > div {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(16,16,15,.08);
}

.market-driver-score i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #c5545f, #d8b95a 52%, #2a8e6c);
}

.market-heatmap-panel {
  padding: 20px;
}

.market-time-controls {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(16,16,15,.10);
  border-radius: 999px;
  background: rgba(255,255,255,.34);
}

.market-time-button {
  min-width: 42px;
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(16,16,15,.54);
  cursor: pointer;
  font-size: 11px;
  font-weight: 760;
}

.market-time-button.is-active {
  background: #10100f;
  color: white;
}

.market-heatmap-meta,
.market-selected-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(16,16,15,.52);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 650;
}

.market-heatmap-meta {
  margin: 14px 0 10px;
}

.market-selected-detail {
  min-height: 42px;
  justify-content: flex-start;
  padding: 10px 12px;
  border-top: 1px solid rgba(16,16,15,.08);
}

.market-selected-detail strong {
  color: #10100f;
  font-size: 14px;
}

.market-selected-detail span:last-of-type {
  margin-left: auto;
  color: rgba(16,16,15,.78);
  font-size: 14px;
  font-weight: 760;
}

.market-selected-detail small {
  color: rgba(16,16,15,.42);
  font-size: 11px;
}

.market-heatmap {
  width: 100%;
  height: 680px;
  position: relative;
  overflow: hidden;
  background: rgba(16,16,15,.08);
}

.market-heatmap-sector {
  position: absolute;
  overflow: hidden;
  border: 2px solid rgba(247,247,242,.96);
  background: rgba(247,247,242,.94);
}

.market-heatmap-sector-head {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 8px;
  color: rgba(16,16,15,.68);
  font-size: 11px;
  font-weight: 740;
}

.market-heatmap-sector-head span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-heatmap-sector-head strong {
  color: rgba(16,16,15,.48);
  font-size: 10px;
  font-weight: 720;
}

.market-heatmap-sector-body {
  position: absolute;
  inset: 28px 0 0;
  overflow: hidden;
}

.market-stock-tile {
  position: absolute;
  overflow: hidden;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  padding: 5px;
  border: 0;
  cursor: pointer;
  text-align: center;
  transition: filter .14s ease, box-shadow .14s ease;
}

.market-stock-tile:hover {
  filter: brightness(1.08);
  z-index: 2;
}

.market-stock-tile:focus-visible,
.market-stock-tile.is-selected {
  outline: 3px solid rgba(255,255,255,.94);
  outline-offset: -4px;
  box-shadow: inset 0 0 0 5px rgba(16,16,15,.38);
  z-index: 3;
}

.market-stock-tile[data-tone="light"] {
  color: white;
}

.market-stock-tile[data-tone="dark"] {
  color: rgba(16,16,15,.82);
}

.market-stock-tile strong,
.market-stock-tile span,
.market-stock-tile small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 12px rgba(16,16,15,.12);
}

.market-stock-tile.is-large strong {
  font-size: 25px;
  line-height: 1;
  font-weight: 760;
}

.market-stock-tile.is-large span {
  font-size: 20px;
  font-weight: 680;
}

.market-stock-tile.is-large small {
  font-size: 10px;
  opacity: .82;
}

.market-stock-tile.is-medium strong {
  font-size: 14px;
  font-weight: 760;
}

.market-stock-tile.is-medium span {
  font-size: 12px;
  font-weight: 680;
}

.market-stock-tile.is-small strong {
  font-size: 10px;
  line-height: 1;
  font-weight: 760;
}

.market-heatmap-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 12px;
  color: rgba(16,16,15,.46);
  font-size: 10px;
  font-weight: 650;
}

.market-heatmap-legend i {
  width: 24px;
  height: 7px;
  display: block;
}

.market-heatmap-legend i[data-level="down-strong"] { background: #852733; }
.market-heatmap-legend i[data-level="down"] { background: #e8898d; }
.market-heatmap-legend i[data-level="flat"] { background: #b9bab4; }
.market-heatmap-legend i[data-level="up"] { background: #78bea0; }
.market-heatmap-legend i[data-level="up-strong"] { background: #087451; }

@media (max-width: 1100px) {
  .statement {
    right: 48px;
  }

  .image-text {
    grid-template-columns: 220px minmax(0, 1fr) 270px;
  }

  .sync-layout,
  .sync-layout.two-up,
  .auth-layout,
  .portfolio-grid,
  .journal-grid,
  .market-pulse-grid {
    grid-template-columns: 1fr;
  }

  .market-heatmap {
    height: 760px;
  }

  .market-driver-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .market-driver-column + .market-driver-column {
    padding-top: 24px;
    padding-left: 0;
    border-top: 1px solid rgba(16,16,15,.09);
    border-left: 0;
  }

  .login-form {
    padding-top: 0;
  }
}

@media (max-width: 900px) {
  .topbar {
    padding: 0 24px;
  }

  .image-text {
    grid-template-columns: 1fr;
    align-items: end;
  }

  .entry-rail {
    display: none;
  }

  .statement {
    text-align: left;
    justify-self: start;
    position: static;
    transform: none;
    width: auto;
    max-width: 100%;
  }

  .statement h1 {
    white-space: normal;
    font-size: clamp(44px, 12vw, 72px);
  }

  .below {
    grid-template-columns: 1fr;
  }

  .links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 0 18px;
  }

  .main-shell {
    padding: 10px 14px 28px;
  }

  .canvas-frame {
    min-height: 500px;
    aspect-ratio: auto;
  }

  .image-text {
    padding: 28px;
  }

  .sync-route,
  .auth-layout,
  .metric-grid,
  .donut-wrap,
  .journal-form-grid {
    grid-template-columns: 1fr;
  }

  .route-arrow {
    display: none;
  }

  .donut {
    justify-self: center;
  }

  .market-panel-head,
  .market-heatmap-head,
  .market-heatmap-meta,
  .market-selected-detail {
    align-items: flex-start;
    flex-direction: column;
  }

  .market-panel-head small {
    max-width: none;
    text-align: left;
  }

  .market-driver {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .market-heatmap {
    height: 920px;
  }

  .market-selected-detail span:last-of-type {
    margin-left: 0;
  }
}

/* Nouvel-inspired composition: monochrome, generous space, connected product surfaces. */
:root {
  --bg: #fff;
  --panel: #fff;
  --panel-strong: #fff;
  --ink: #171819;
  --muted: #686b70;
  --soft: #565a60;
  --line: #e7e8ea;
  --shadow: 0 14px 48px #22252a0a;
}
body { -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
:where(a, button, input, textarea, select):focus-visible { outline: 2px solid #4c6b92; outline-offset: 5px; }
.skip-link { position: absolute; left: 20px; top: -100px; z-index: 100; padding: 12px; background: #fff; }
.skip-link:focus { top: 10px; }
.topbar { height: 92px; width: min(1240px, 100%); padding: 0 32px; margin: 0 auto; gap: 28px; font-weight: 500; }
.brand { display: inline-flex; align-items: center; font-size: 29px; font-weight: 620; letter-spacing: -.07em; flex-shrink: 0; }
.brand-lab { color: #85878a; font-weight: 400; }
.brand-mark { display: inline-flex; align-items: center; gap: 3px; width: 29px; height: 31px; margin-right: 10px; transform: skew(-16deg); }
.brand-mark i { width: 6px; height: 22px; border-radius: 2px; background: currentColor; }
.brand-mark i:nth-child(2) { height: 31px; }
.brand-mark i:nth-child(3) { height: 17px; }
.brand-mark.small { transform: skew(-16deg) scale(.66); margin: -6px 0 -6px -4px; }
.primary-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.primary-nav a { position: relative; font-size: .875rem; color: #66696d; padding: 12px 0; white-space: nowrap; transition: color .2s; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: #161719; }
.primary-nav a[aria-current="page"]::after { content: ''; height: 2px; position: absolute; bottom: 3px; left: 0; right: 0; background: #191a1c; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-cta { display: inline-flex; align-items: center; gap: 24px; font-size: .875rem; padding: 10px 16px; border: 1px solid #dedfe1; border-radius: 8px; white-space: nowrap; }
.header-cta:hover { background: #f5f5f6; }
.avatar-button { width: 32px; height: 32px; color: #36383b; background: #f4f4f5; box-shadow: none; border: 1px solid #e3e4e6; display: grid; place-items: center; }
.avatar-dot { width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 50%; position: relative; }
.avatar-dot::after { content: ''; position: absolute; width: 18px; height: 8px; top: 12px; left: -4.5px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 12px 12px 0 0; }
.avatar-button { overflow: hidden; padding-bottom: 9px; }
.account-menu { border-radius: 12px; padding: 8px; box-shadow: 0 12px 40px #181a2017; }
.account-menu a { border-radius: 6px; font-size: .875rem; font-weight: 500; }
.main-shell { padding: 24px 32px 48px; }
.is-home .main-shell { padding-top: 0; padding-bottom: 0; }
.home-page { width: min(1120px, 100%); }
.home-intro { text-align: center; padding: 60px 16px 20px; }
.home-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; color: #696c71; font-weight: 500; letter-spacing: .01em; }
.home-eyebrow > i { width: 6px; height: 6px; border-radius: 50%; background: #777d83; box-shadow: 0 0 0 4px #f1f2f3; }
.home-intro h1 { margin: 25px 0 20px; font-size: clamp(2.7rem, 5.2vw, 4.4rem); letter-spacing: -.062em; line-height: 1.055; font-weight: 470; }
.home-intro h1 span { color: #878a8f; }
.home-intro p { color: #777a7f; font-size: 1.0625rem; line-height: 1.65; margin: 0; }
.home-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 24px; margin-top: 27px; }
.pill-button { min-height: 44px; padding: 0 19px; border-radius: 8px; font-size: .875rem; font-weight: 500; background: #1b1c1e; border-color: #1b1c1e; gap: 23px; transition: background .2s, transform .2s; }
.pill-button:hover:not(:disabled) { background: #35383c; transform: translateY(-1px); }
.pill-button.secondary { background: #fff; color: #41454a; border-color: #dedfe1; }
.pill-button.secondary:hover { background: #f5f5f6; }
.text-link { font-size: .875rem; color: #686c72; display: inline-flex; gap: 12px; }
.text-link:hover { color: #171819; }
.portfolio-stage { position: relative; min-height: 392px; margin-top: 44px; isolation: isolate; display: grid; grid-template-columns: 1fr 1.85fr 1fr; align-items: center; gap: 28px; padding: 38px 28px 58px; }
.stage-grid { position: absolute; inset: 0 -20px; z-index: -2; background-image: radial-gradient(#cbd0d7 0.65px, transparent .65px); background-size: 14px 14px; mask-image: radial-gradient(ellipse at center, #000 12%, transparent 71%); }
.stage-connectors { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; overflow: visible; }
.stage-connectors path { stroke: #cfd4db; stroke-width: 1; fill: none; stroke-dasharray: 4 5; }
.stage-connectors circle { fill: #adb6c1; }
.portfolio-hub { border: 1px solid #dedfe3; border-radius: 15px; background: #fff; box-shadow: 0 22px 55px #26344b0c, 0 3px 8px #00000003; z-index: 2; }
.hub-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 17px 20px; border-bottom: 1px solid #eff0f2; }
.module-label { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 550; }
.status-tag { color: #747a82; background: #f5f6f7; border-radius: 4px; padding: 4px 6px; font-size: .75rem; }
.hub-body { display: flex; align-items: center; gap: 23px; padding: 30px 22px; }
.orbit { width: 102px; height: 102px; flex-shrink: 0; border: 13px solid #d7dce3; border-top-color: #393f49; border-right-color: #8f9baa; border-radius: 50%; transform: rotate(-25deg); position: relative; }
.orbit::after { content: ''; position: absolute; inset: -19px; border: 1px dashed #e4e7ec; border-radius: 50%; }
.orbit-center { height: 100%; display: grid; place-items: center; transform: rotate(25deg); color: #737b86; }
.orbit-center .brand-mark { margin: 0; transform: skew(-16deg) scale(.75); }
.hub-copy > span { color: #767b83; font-size: .75rem; }
.hub-copy strong { display: block; font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 500; letter-spacing: -.045em; margin: 8px 0; }
.hub-copy p { margin: 0; color: #747a82; font-size: .875rem; line-height: 1.5; }
.hub-link { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; border-top: 1px solid #eceef1; font-size: .875rem; color: #666d76; border-radius: 0 0 15px 15px; }
.hub-link:hover { background: #f7f8f9; color: #171819; }
.satellite { border: 1px solid #e5e7ea; border-radius: 11px; padding: 18px; background: #ffffffed; box-shadow: 0 8px 28px #2a354808; }
.satellite-market { transform: translateY(-13px) rotate(-3deg); }
.tiny-icon { width: 22px; height: 22px; border-radius: 5px; background: #f1f3f5; display: grid; place-items: center; color: #76818f; }
.mini-bars { height: 104px; display: flex; align-items: flex-end; gap: 5px; margin: 13px 0 15px; border-bottom: 1px solid #e4e8ee; }
.mini-bars i { flex: 1; height: calc(var(--bar) * .7); max-height: 100%; background: #bdc7d4; border-radius: 2px 2px 0 0; }
.mini-bars i:nth-child(3n) { background: #78899f; }
.satellite-caption { display: flex; justify-content: space-between; font-size: .75rem; line-height: 1.5; color: #818790; }
.satellite-journal { align-self: start; margin-top: 5px; transform: rotate(3deg); }
.satellite-journal > strong { display: block; font-size: .9375rem; line-height: 1.5; font-weight: 500; margin: 18px 0 15px; }
.journal-line { height: 5px; background: #eff0f2; border-radius: 3px; margin: 8px 0; }
.journal-line.short { width: 65%; margin-bottom: 20px; }
.satellite-signals { position: absolute; right: 42px; bottom: 46px; display: flex; align-items: center; gap: 14px; min-width: 215px; padding: 13px 16px; transform: rotate(-2deg); }
.satellite-signals strong { font-size: .875rem; font-weight: 500; }
.satellite-signals small { display: block; font-size: .75rem; color: #858b93; margin-top: 3px; }
.satellite-signals > span:last-child { margin-left: auto; color: #9298a1; }
.signal-icon { font-size: 30px; color: #8c97a6; }
.stage-caption { position: absolute; bottom: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: .75rem; color: #858990; }
.caption-dot { width: 5px; height: 5px; border-radius: 50%; background: #aab2bc; }
.home-details { margin-top: 88px; padding-top: 65px; border-top: 1px solid #eceef0; }
.section-heading { position: relative; }
.section-heading h2 { font-size: clamp(2.25rem, 3.8vw, 3.25rem); line-height: 1.08; letter-spacing: -.055em; font-weight: 450; margin: 20px 0 35px; }
.section-heading > p { position: absolute; right: 0; bottom: 6px; color: #777d85; font-size: 1rem; line-height: 1.7; margin: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.feature-card { min-width: 0; padding: 22px; border: 1px solid #e8eaed; border-radius: 12px; transition: border-color .2s, transform .2s; }
.feature-card:hover { transform: translateY(-4px); border-color: #bdc3cb; }
.feature-meta { display: flex; align-items: center; gap: 12px; color: #727880; font-size: .75rem; }
.feature-meta > span:first-child { color: #989ea6; }
.feature-meta > span:last-child { margin-left: auto; }
.feature-art { height: 152px; display: grid; place-items: center; margin: 18px 0 28px; background: radial-gradient(ellipse, #f3f5f8, #fff 72%); }
.allocation-blocks { width: 144px; height: 100px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; transform: rotate(-6deg); }
.allocation-blocks i { background: #dce1e8; border: 1px solid #c8d0dc; border-radius: 5px; }
.allocation-blocks i:first-child { grid-row: span 2; background: #8998aa; border-color: #7b8da5; }
.allocation-blocks i:nth-child(2) { grid-column: span 2; background: #b5c0ce; }
.paper-sheet { width: 125px; height: 112px; padding: 25px 20px; border: 1px solid #dce1e8; border-radius: 6px; box-shadow: 8px 8px 0 -2px #eef1f5; transform: rotate(5deg); background: #fff; }
.paper-sheet i { height: 4px; background: #d8dee7; display: block; margin-bottom: 9px; }
.paper-sheet i:nth-child(2) { width: 70%; }
.paper-sheet span { color: #8a99ac; font-size: 25px; }
.context-grid { width: 152px; height: 100px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; transform: rotate(-5deg); }
.context-grid i { border-radius: 4px; background: rgb(103 123 147 / var(--tone)); }
.feature-card h3 { margin: 0 0 12px; font-size: 1.1875rem; letter-spacing: -.03em; font-weight: 550; }
.feature-card > p { margin: 0; font-size: 1rem; line-height: 1.6; color: #68717b; min-height: 80px; }
.feature-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid #eceef1; font-size: .875rem; color: #666d76; }
.home-footer { margin-top: 74px; padding: 28px 0 32px; border-top: 1px solid #eceef1; display: flex; align-items: center; gap: 24px; }
.home-footer .brand { font-size: 25px; }
.home-footer > span { font-size: .875rem; color: #91969e; }
.home-footer > a:last-of-type { margin-left: auto; font-size: .875rem; color: #6b727c; }
.is-workspace .topbar { border-bottom: 1px solid #eceef1; }
.page-grid { min-width: 0; gap: 24px; }
.page-heading { padding: 22px 0 18px; }
.page-heading h1 { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 470; letter-spacing: -.045em; line-height: 1.1; }
.page-heading p, .empty-state p { font-family: inherit; font-size: 1rem; line-height: 1.65; color: #737a83; margin-top: 14px; }
.page-heading label { display: inline-flex; align-items: center; gap: 12px; font-size: .875rem; margin-top: 22px; }
.page-heading select { padding: 8px 30px 8px 12px; border: 1px solid #dfe3e8; border-radius: 6px; color: #343941; background: #fff; }
.kicker, .card-label { font-size: .8125rem; font-weight: 500; color: #7c838c; letter-spacing: .025em; }
.sync-card, .panel, .metric, .empty-state, .method-note, .route-node { border-color: #e5e8ec; border-radius: 12px; box-shadow: none; }
.sync-card, .panel, .metric { padding: 24px; }
.sync-card h2, .panel h2, .empty-state h2 { font-size: 1.1875rem; font-weight: 550; line-height: 1.3; letter-spacing: -.025em; }
.sync-card p, .cloud-panel p, .auth-panel p { font-size: 1rem; line-height: 1.6; font-weight: 400; color: #737b85; }
.auth-panel > span, .cloud-panel span, .auth-form label span { font-size: .8125rem; font-weight: 500; color: #717983; }
.auth-form input { border-radius: 7px; font-size: 1rem; font-weight: 400; background: #fafbfc; }
.auth-form input:focus { border-color: #7b8fa9; outline: 2px solid #dde5ef; }
.auth-form input::placeholder { color: #858c96; }
.form-message { font-size: .875rem; font-weight: 400; }
.metric { background: #f9fafb; }
.metric strong { font-weight: 450; letter-spacing: -.04em; }
.metric > span, .panel-head > span, .file-status { font-size: .875rem; }
.table-wrap { max-width: 100%; }
th { font-size: .75rem; color: #6c7480; font-weight: 500; }
td { font-size: .875rem; }
tbody tr:hover { background: #f8f9fb; }
.file-button:focus-within { outline: 2px solid #4c6b92; outline-offset: 5px; }
.file-button { position: relative; }
.file-button input { display: block; position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
@media (max-width: 1050px) {
  .topbar { gap: 20px; padding-inline: 24px; }
  .primary-nav { gap: 16px; }
  .primary-nav a { font-size: .8125rem; }
  .portfolio-stage { gap: 16px; padding-inline: 0; grid-template-columns: 1fr 1.9fr 1fr; }
  .satellite { padding: 14px; }
  .satellite .module-label { font-size: .75rem; }
  .hub-body { padding: 28px 18px; gap: 18px; }
  .orbit { width: 80px; height: 80px; border-width: 10px; }
  .satellite-signals { right: 0; min-width: 190px; }
  .feature-card { padding: 18px; }
}
@media (max-width: 800px) {
  .topbar { height: auto; min-height: 82px; flex-wrap: wrap; padding-top: 20px; gap: 18px; }
  .header-actions { margin-left: auto; }
  .primary-nav { order: 3; width: 100%; margin: 0; justify-content: space-between; overflow-x: auto; gap: 22px; padding-bottom: 5px; }
  .primary-nav a { font-size: .875rem; }
  .main-shell { padding-inline: 24px; }
  .home-intro { padding-top: 42px; }
  .portfolio-stage { grid-template-columns: 1fr 1fr; gap: 18px; min-height: 0; padding: 12px 10px 50px; }
  .portfolio-hub { grid-column: 1 / -1; grid-row: 1; width: min(480px, 100%); justify-self: center; }
  .hub-body { padding: 28px; gap: 28px; }
  .satellite-market, .satellite-journal { transform: none; margin: 0; align-self: stretch; }
  .satellite-signals { position: static; transform: none; grid-column: 1 / -1; min-width: 0; }
  .stage-connectors { display: none; }
  .mini-bars { height: 80px; }
  .home-details { margin-top: 58px; padding-top: 42px; }
  .feature-grid { gap: 12px; }
  .feature-meta { flex-wrap: wrap; gap: 6px; }
  .feature-meta > span:nth-child(2) { order: 3; width: 100%; }
  .feature-card > p { min-height: 0; }
  .feature-foot { font-size: .8125rem; }
}
@media (max-width: 600px) {
  .topbar { padding-inline: 20px; }
  .main-shell { padding-inline: 20px; }
  .brand { font-size: 27px; }
  .header-cta { padding: 9px 12px; gap: 15px; }
  .primary-nav { gap: 24px; }
  .home-intro { padding: 40px 0 0; }
  .home-intro h1 { font-size: clamp(2.4rem, 9.5vw, 3.6rem); }
  .home-intro p { font-size: 1rem; }
  .home-actions { gap: 19px; flex-direction: column; }
  .portfolio-stage { padding-inline: 0; margin-top: 36px; gap: 12px; }
  .hub-top { padding-inline: 15px; }
  .hub-body { padding: 25px 18px; gap: 22px; }
  .hub-copy strong { font-size: 1.25rem; }
  .orbit { width: 72px; height: 72px; }
  .satellite { padding: 13px; }
  .satellite-journal > strong { font-size: .875rem; }
  .satellite-caption { font-size: .75rem; }
  .section-heading > p { position: static; margin: -16px 0 30px; }
  .feature-grid { grid-template-columns: 1fr; gap: 18px; }
  .feature-card { padding: 24px; }
  .feature-meta { flex-wrap: nowrap; gap: 12px; }
  .feature-meta > span:nth-child(2) { order: initial; width: auto; }
  .feature-art { height: 125px; }
  .home-footer { flex-wrap: wrap; gap: 14px; margin-top: 45px; }
  .home-footer > span { font-size: .8125rem; }
  .home-footer > a:last-of-type { width: 100%; margin: 0; }
  .page-heading { padding-top: 12px; }
  .sync-card, .panel, .metric { padding: 20px; }
  .cloud-panel, .panel-head { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Keep intrinsic table widths inside their scrollable panels. */
.portfolio-grid > *, .journal-grid > *, .sync-layout > *, .auth-layout > *, .panel { min-width: 0; }
.donut::after { background: #fff; }
.weight-row { font-size: .875rem; font-weight: 500; }

.home-footer { flex-wrap: wrap; }
.home-copyright { flex: 0 0 100%; margin-top: 18px; color: #91969e; font-size: 11px; font-weight: 400; line-height: 1.6; text-align: left; }

/* Keep the wordmark on one baseline and center its paired symbol. */
.brand{gap:0;line-height:1}
.brand-wordmark{display:block;white-space:nowrap;line-height:1}
.brand>.brand-mark{width:24px;margin-right:12px;flex-shrink:0;transform-origin:center}
