:root {
  color-scheme: dark;
  --obsidian: #070807;
  --black: #0b0c0b;
  --graphite: #111315;
  --carbon: #171a1d;
  --carbon-2: #1f2225;
  --porcelain: #f5f0e4;
  --ivory: #dfd6c2;
  --muted: #9aa1a8;
  --soft: #bcc3c9;
  --champagne: #d7b56d;
  --gold: #efcf83;
  --emerald: #35d68b;
  --ruby: #e87163;
  --plum: #9d83ff;
  --line: rgba(245, 240, 228, .11);
  --line-strong: rgba(215, 181, 109, .28);
  --shadow: 0 26px 90px rgba(0, 0, 0, .44);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(135deg, #070807 0%, #10110f 42%, #19150e 100%);
  color: var(--porcelain);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .8), rgba(0, 0, 0, .18));
}

body.entry-body {
  min-height: 100vh;
  background: #030303;
  overflow-x: hidden;
}

body.entry-body::before {
  display: none;
}

body.access-locked {
  overflow: hidden;
}

body.access-locked .entry-shell {
  display: none;
}

.early-access[hidden] {
  display: none;
}

.early-access {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 56px);
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .026) 1px, transparent 1px),
    #030303;
  background-size: 80px 80px;
}

.early-access-frame {
  width: min(1080px, 100%);
  min-height: min(720px, calc(100vh - 48px));
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(30px, 6vw, 72px);
  padding: clamp(24px, 5vw, 58px);
  border: 1px solid rgba(245, 240, 228, .1);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018)),
    #050505;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .62);
}

.early-access-brand,
.early-access-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.early-access-brand {
  justify-content: flex-start;
  color: var(--porcelain);
  text-transform: none;
}

.early-access-mark {
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(215, 181, 109, .22);
  border-radius: var(--radius);
  background: #050505;
}

.early-access-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 42%;
}

.early-access-panel {
  width: min(760px, 100%);
  align-self: center;
  display: grid;
  gap: 20px;
}

.early-kicker {
  margin: 0;
  color: var(--champagne);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.early-access-panel h1 {
  max-width: 720px;
  margin: 0;
  color: var(--porcelain);
  font-size: clamp(52px, 8vw, 108px);
  line-height: .92;
  font-weight: 950;
}

.early-copy {
  max-width: 560px;
  margin: 0;
  color: var(--soft);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
}

.early-access-form {
  width: min(620px, 100%);
  display: grid;
  gap: 12px;
  margin-top: clamp(12px, 2vw, 22px);
  padding-top: 22px;
  border-top: 1px solid rgba(245, 240, 228, .1);
}

.early-access-form label {
  color: var(--champagne);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.early-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.early-code-row input,
.early-code-row button {
  min-height: 58px;
  border-radius: var(--radius);
  font: inherit;
}

.early-code-row input {
  width: 100%;
  border: 1px solid rgba(245, 240, 228, .14);
  background: rgba(0, 0, 0, .46);
  color: var(--porcelain);
  padding: 0 18px;
  font-size: 20px;
  font-weight: 850;
  outline: none;
}

.early-code-row input:focus {
  border-color: rgba(215, 181, 109, .62);
  box-shadow: 0 0 0 3px rgba(215, 181, 109, .12);
}

.early-code-row button {
  border: 0;
  background: linear-gradient(135deg, #f1d48b, #c89e45);
  color: #11110f;
  padding: 0 24px;
  font-weight: 950;
  cursor: pointer;
}

.early-access-form small {
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
}

.early-access.is-invalid .early-code-row input {
  border-color: rgba(232, 113, 99, .76);
}

.early-access.is-invalid .early-access-form small {
  color: #f0a199;
}

.early-access.is-invalid .early-access-panel {
  animation: access-shake 180ms ease-out;
}

@keyframes access-shake {
  0%, 100% {
    transform: translateX(0);
  }
  35% {
    transform: translateX(-8px);
  }
  70% {
    transform: translateX(6px);
  }
}

.entry-shell {
  min-height: 100vh;
  display: grid;
  padding: clamp(18px, 3vw, 42px);
  background: #030303;
}

.entry-hero {
  position: relative;
  min-height: calc(100vh - clamp(44px, 8vw, 108px));
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(34px, 6vw, 72px);
  padding: clamp(22px, 4vw, 46px);
  border: 1px solid rgba(245, 240, 228, .08);
  border-radius: var(--radius);
  background: #030303;
  box-shadow: none;
}

.entry-hero-simple {
  overflow: hidden;
  align-items: stretch;
}

.entry-hero-simple::after {
  display: none;
}

.entry-brandbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.entry-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.entry-logo-mark {
  overflow: hidden;
  padding: 0;
  background: #030303;
}

.entry-logo-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 42%;
}

.entry-status {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgba(245, 240, 228, .12);
  border-radius: 999px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 850;
}

.entry-status span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 8px rgba(53, 214, 139, .11);
}

.entry-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .75fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: center;
}

.entry-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
  max-width: 780px;
}

.entry-copy-centered {
  align-self: center;
  justify-self: center;
  max-width: 980px;
  justify-items: center;
  text-align: center;
  padding: clamp(30px, 6vw, 70px) 0;
}

.entry-copy h1 {
  margin: 0;
  color: var(--porcelain);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 7.4vw, 118px);
  font-weight: 700;
  line-height: .92;
}

.entry-copy p:not(.eyebrow) {
  max-width: 690px;
  margin: 0;
  color: var(--soft);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.65;
}

.entry-copy-centered .eyebrow {
  color: var(--champagne);
}

.entry-copy-centered .entry-lead {
  max-width: 850px;
  color: var(--porcelain);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.16;
}

.entry-copy-centered .entry-subline {
  max-width: 720px;
  color: rgba(245, 240, 228, .68);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
}

.entry-executive-login {
  width: min(1180px, 100%);
  max-width: 1180px;
  gap: clamp(18px, 2.6vw, 30px);
  padding: clamp(20px, 4vw, 42px) 0;
}

.entry-executive-login h1 {
  font-size: clamp(58px, 7vw, 104px);
}

.entry-executive-login .entry-lead {
  max-width: 840px;
}

.entry-executive-login .entry-subline {
  max-width: 650px;
}

.entry-executive-metrics {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.entry-executive-metrics article {
  min-height: 84px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 16px 18px;
  border: 1px solid rgba(245, 240, 228, .09);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .028);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
}

.entry-executive-metrics span {
  color: var(--champagne);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.entry-executive-metrics strong {
  color: var(--porcelain);
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.05;
}

.entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}

.entry-action {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid rgba(245, 240, 228, .12);
  border-radius: var(--radius);
  color: var(--porcelain);
  font-weight: 900;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.entry-action svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.entry-action.primary {
  border-color: transparent;
  background: linear-gradient(135deg, #f4dfaa, #c49a45);
  color: #11110f;
  box-shadow: 0 18px 46px rgba(196, 154, 69, .18);
}

.entry-action.secondary {
  background: rgba(255, 255, 255, .045);
  color: var(--soft);
}

.entry-action:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.entry-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding-top: 2px;
}

.entry-proof span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(245, 240, 228, .1);
  border-radius: 999px;
  background: rgba(0, 0, 0, .14);
  color: rgba(245, 240, 228, .62);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.entry-executive-login .entry-proof {
  gap: 10px;
}

.entry-executive-login .entry-proof span {
  min-height: 36px;
  padding: 0 13px;
  border-color: rgba(215, 181, 109, .18);
  background: rgba(255, 255, 255, .026);
  color: rgba(245, 240, 228, .72);
}

.entry-console {
  display: grid;
  gap: 24px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(215, 181, 109, .22);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(245, 240, 228, .045), rgba(245, 240, 228, .012)),
    rgba(0, 0, 0, .24);
}

.entry-console-head,
.entry-progress div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.entry-console-head span,
.entry-value span,
.entry-progress span,
.entry-mini-grid span {
  color: rgba(245, 240, 228, .56);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.entry-console-head strong {
  color: var(--emerald);
}

.entry-value {
  display: grid;
  gap: 8px;
}

.entry-value strong {
  color: var(--gold);
  font-size: clamp(54px, 7vw, 92px);
  line-height: .92;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.entry-progress {
  display: grid;
  gap: 12px;
}

.entry-progress strong {
  color: var(--porcelain);
  font-size: 22px;
}

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

.entry-mini-grid article {
  display: grid;
  gap: 8px;
  padding: 15px;
  border: 1px solid rgba(245, 240, 228, .1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .025);
}

.entry-mini-grid strong {
  color: var(--porcelain);
  font-size: 20px;
  white-space: nowrap;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.app-shell {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  min-height: 100vh;
}

.side-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: rgba(7, 8, 7, .94);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
}

.brand-mark {
  flex: 0 0 50px;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(215, 181, 109, .18), rgba(255, 255, 255, .04));
  color: var(--gold);
  font-weight: 900;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 15px;
}

.brand-copy span {
  color: var(--muted);
  font-size: 13px;
}

.rail-nav {
  display: grid;
  gap: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--soft);
}

.nav-link:hover,
.nav-link.is-active {
  border-color: var(--line-strong);
  background: rgba(215, 181, 109, .08);
  color: var(--porcelain);
}

.nav-icon,
.icon-button svg,
.primary-action svg,
.mode-option svg,
.mini-button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.nav-icon svg,
.icon-button svg,
.primary-action svg,
.mode-option svg,
.mini-button svg {
  display: block;
  fill: currentColor;
}

.rail-note {
  margin-top: auto;
  display: grid;
  gap: 6px;
  padding: 15px;
  border: 1px solid rgba(53, 214, 139, .2);
  border-radius: var(--radius);
  background: rgba(53, 214, 139, .06);
}

.rail-note span {
  color: var(--emerald);
  font-weight: 800;
}

.rail-note small {
  color: var(--muted);
  line-height: 1.4;
}

.sync-status {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(245, 240, 228, .1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .035);
}

.sync-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--muted);
  box-shadow: 0 0 0 7px rgba(154, 161, 168, .1);
}

.sync-status strong,
.sync-status small {
  display: block;
}

.sync-status strong {
  color: var(--porcelain);
  font-size: 13px;
  line-height: 1.2;
}

.sync-status small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.sync-status.is-syncing .sync-dot {
  background: var(--champagne);
  box-shadow: 0 0 0 7px rgba(215, 181, 109, .12);
}

.sync-status.is-online {
  border-color: rgba(53, 214, 139, .24);
  background: rgba(53, 214, 139, .055);
}

.sync-status.is-online .sync-dot {
  background: var(--emerald);
  box-shadow: 0 0 0 7px rgba(53, 214, 139, .12);
}

.sync-status.is-offline,
.sync-status.is-error {
  border-color: rgba(232, 113, 99, .24);
  background: rgba(232, 113, 99, .055);
}

.sync-status.is-offline .sync-dot,
.sync-status.is-error .sync-dot {
  background: var(--ruby);
  box-shadow: 0 0 0 7px rgba(232, 113, 99, .12);
}

.sync-status.is-local {
  border-color: rgba(215, 181, 109, .18);
  background: rgba(215, 181, 109, .045);
}

.auth-card {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(245, 240, 228, .1);
  border-radius: var(--radius);
  background: rgba(7, 8, 7, .34);
}

.auth-state {
  display: grid;
  gap: 3px;
}

.auth-state span {
  color: var(--champagne);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-state strong {
  color: var(--porcelain);
  font-size: 14px;
  line-height: 1.15;
}

.auth-state small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

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

.auth-split-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
  align-items: stretch;
  gap: 12px;
}

.auth-section {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 13px;
  border: 1px solid rgba(245, 240, 228, .1);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .16);
}

.auth-section-head {
  display: grid;
  gap: 2px;
  text-align: left;
}

.auth-section-head span {
  color: var(--champagne);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-section-head strong {
  color: var(--porcelain);
  font-size: 16px;
}

.auth-section-head small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.auth-name-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.auth-form.is-hidden {
  display: none;
}

.auth-form input {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(245, 240, 228, .11);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .22);
  color: var(--porcelain);
  outline: none;
  padding: 0 11px;
  font-size: 13px;
}

.auth-form input:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(215, 181, 109, .1);
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.auth-consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: rgba(245, 240, 228, .68);
  font-size: 12px;
  line-height: 1.38;
  text-align: left;
}

.auth-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--champagne);
}

.auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(245, 240, 228, .12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .045);
  color: var(--soft);
  font-weight: 850;
  text-decoration: none;
}

.auth-button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, #f1d48b, #c89e45);
  color: #11110f;
}

.auth-button.auth-logout {
  color: var(--porcelain);
}

.auth-button:disabled {
  cursor: not-allowed;
  opacity: .52;
}

.entry-auth-card {
  width: min(960px, 100%);
  gap: 16px;
  padding: clamp(18px, 2.4vw, 28px);
  border-color: rgba(215, 181, 109, .24);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .018)),
    rgba(8, 9, 8, .9);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.entry-auth-card .auth-state {
  justify-items: center;
  text-align: center;
  gap: 7px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(245, 240, 228, .08);
}

.entry-auth-card .auth-state strong {
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: 0;
}

.entry-auth-card .auth-state small {
  max-width: 520px;
  font-size: 13px;
}

.entry-auth-card .auth-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.entry-auth-card .auth-section .auth-actions {
  grid-template-columns: 1fr;
}

.entry-auth-card .auth-split-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 14px;
}

.entry-auth-card .auth-section {
  gap: 12px;
  padding: clamp(16px, 2vw, 22px);
  border-color: rgba(245, 240, 228, .12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .018)),
    rgba(0, 0, 0, .26);
}

.entry-auth-card .auth-section:first-child {
  border-color: rgba(215, 181, 109, .24);
}

.entry-auth-card .auth-section-head {
  gap: 5px;
  padding-bottom: 4px;
}

.entry-auth-card .auth-section-head strong {
  font-size: 20px;
}

.entry-auth-card .auth-form input {
  min-height: 52px;
  padding: 0 15px;
  border-color: rgba(245, 240, 228, .13);
  background: rgba(0, 0, 0, .34);
  font-size: 15px;
}

.entry-auth-card .auth-form input::placeholder {
  color: rgba(245, 240, 228, .4);
}

.entry-auth-card .auth-consent {
  min-height: 58px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(245, 240, 228, .09);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .026);
}

.entry-auth-card .auth-button {
  min-height: 54px;
  font-size: 15px;
}

.entry-auth-card .auth-button.primary {
  box-shadow: 0 18px 44px rgba(200, 158, 69, .16);
}

.auth-launch-actions {
  justify-content: center;
  padding-top: 0;
}

.entry-auth-card .auth-logout {
  min-height: 58px;
  padding: 0 22px;
}

.app-main {
  min-width: 0;
  padding: 30px;
}

.command-bar,
.workspace,
.goals-section,
.negative-section,
.sessions-section {
  max-width: 1540px;
  margin-left: auto;
  margin-right: auto;
}

.command-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding: 18px 0 8px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--champagne);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 10px;
  font-size: 56px;
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 18px;
  letter-spacing: 0;
}

.topbar-copy,
.section-heading p,
.negative-section p {
  color: var(--muted);
  line-height: 1.65;
}

.topbar-copy {
  max-width: 720px;
  margin-bottom: 0;
}

.topbar-actions,
.counter-controls,
.table-actions,
.desk-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.icon-button,
.primary-action,
.mode-option,
.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .045);
  color: var(--porcelain);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.icon-button {
  padding: 0 14px;
}

.icon-button:hover,
.mode-option:hover,
.mini-button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(215, 181, 109, .08);
}

.icon-button.ghost {
  color: var(--soft);
}

.icon-button.success {
  border-color: rgba(53, 214, 139, .28);
  color: var(--emerald);
}

.icon-button.danger {
  border-color: rgba(232, 113, 99, .28);
  color: #ffc1ba;
}

.icon-button:disabled {
  cursor: not-allowed;
  opacity: .45;
  transform: none;
}

.mode-switch {
  min-height: 54px;
  display: grid;
  grid-template-columns: repeat(2, minmax(126px, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(245, 240, 228, .12);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .18);
}

.mode-option {
  min-height: 46px;
  padding: 0 12px;
  justify-content: flex-start;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.mode-option span {
  display: grid;
  gap: 2px;
  text-align: left;
}

.mode-option strong {
  font-size: 13px;
  line-height: 1;
}

.mode-option small {
  color: currentColor;
  font-size: 11px;
  font-weight: 850;
  opacity: .72;
}

.mode-option.income.is-active {
  border-color: rgba(53, 214, 139, .42);
  background: rgba(53, 214, 139, .12);
  color: var(--emerald);
  box-shadow: inset 0 0 0 1px rgba(53, 214, 139, .08);
}

.mode-option.cost.is-active {
  border-color: rgba(232, 113, 99, .44);
  background: rgba(232, 113, 99, .12);
  color: #ffc1ba;
  box-shadow: inset 0 0 0 1px rgba(232, 113, 99, .08);
}

.mode-option:disabled {
  cursor: not-allowed;
  transform: none;
}

.mode-option:disabled:not(.is-active) {
  opacity: .38;
}

.mode-option:disabled.is-active {
  opacity: 1;
}

.primary-action {
  min-width: 146px;
  padding: 0 18px;
  border-color: transparent;
  background: linear-gradient(135deg, #f1d48b, #c89e45);
  color: #11110f;
  font-weight: 900;
}

.primary-action:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #f7dda0, #d8ad56);
}

.mini-button {
  width: 42px;
  padding: 0;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr);
  gap: 16px;
  margin-bottom: 18px;
}

.counter-workspace {
  grid-template-columns: 1fr;
}

@media (min-width: 1281px) {
  .app-main {
    padding: 26px 30px 30px;
  }

  .command-bar {
    align-items: center;
    margin-bottom: 18px;
    padding: 12px 0 4px;
  }

  .counter-page .command-bar {
    margin-bottom: 14px;
    padding: 8px 0 2px;
  }

  .command-bar h1 {
    font-size: clamp(46px, 3.5vw, 54px);
  }

  .counter-page .command-bar h1 {
    margin-bottom: 0;
  }

  .counter-page .topbar-copy {
    display: none;
  }

  .counter-workspace {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
  }

  .counter-workspace .desk-head,
  .counter-workspace .session-setup {
    grid-column: 1 / -1;
  }

  .counter-workspace .desk-head {
    padding: 0;
  }

  .counter-workspace .session-setup {
    padding: 12px;
  }

  .counter-workspace .session-setup label,
  .counter-workspace .check-control {
    gap: 6px;
  }

  .counter-workspace .session-setup span,
  .counter-workspace .check-control span {
    font-size: 12px;
  }

  .counter-workspace .session-setup input {
    min-height: 40px;
    font-size: 15px;
  }

  .counter-workspace .check-control {
    min-height: 40px;
  }

  .counter-workspace .live-panel {
    grid-column: span 8;
    min-height: 0;
    padding: 30px;
    gap: 14px;
  }

  .counter-workspace .counter-goals {
    grid-column: span 4;
    width: 100%;
    max-width: none;
    display: grid;
    align-self: stretch;
    align-content: start;
    justify-self: stretch;
    margin: 0;
    padding: 18px;
    border: 1px solid rgba(245, 240, 228, .1);
    border-radius: var(--radius);
    background: rgba(17, 19, 21, .78);
    box-shadow: var(--shadow);
  }

  .counter-workspace .counter-goals .section-heading {
    max-width: none;
    margin-bottom: 12px;
  }

  .counter-workspace .counter-goals .section-heading h2 {
    font-size: 22px;
    line-height: 1.12;
  }

  .counter-workspace .counter-goals .section-heading p {
    display: none;
  }

  .counter-workspace .goal-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .counter-workspace .goal-item {
    min-height: 92px;
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 13px;
    background: rgba(7, 8, 7, .35);
  }

  .counter-workspace .goal-item header {
    margin-bottom: 0;
  }

  .counter-workspace .goal-item strong {
    font-size: 22px;
  }

  .counter-workspace .goal-item div {
    font-size: 13px;
    line-height: 1.35;
  }

  .counter-workspace .goal-item .progress-track {
    height: 8px;
    margin: 2px 0 0;
  }

  .counter-workspace .live-value {
    font-size: clamp(70px, 6.2vw, 96px);
  }

  .counter-workspace .time-row {
    font-size: 22px;
  }

  .counter-workspace .goal-progress {
    gap: 12px;
  }

  .counter-workspace .progress-track {
    height: 9px;
  }

  .counter-workspace .goal-progress-meta {
    font-size: 18px;
  }

  .counter-workspace .metric-tile {
    min-height: 88px;
    padding: 14px;
  }

  .counter-workspace .metric-tile strong {
    font-size: 22px;
  }

  .counter-workspace .counter-controls {
    align-items: center;
    gap: 8px;
  }

  .counter-workspace .primary-action {
    min-width: 132px;
    padding: 0 16px;
  }

  .counter-workspace .icon-button {
    padding: 0 12px;
  }

  .counter-workspace .mode-switch {
    grid-template-columns: repeat(2, minmax(104px, 1fr));
    min-height: 52px;
  }

  .counter-workspace .mode-option {
    min-height: 44px;
    padding: 0 10px;
  }
}

@media (min-width: 1400px) {
  .counter-workspace .live-panel {
    grid-column: span 9;
  }

  .counter-workspace .counter-goals {
    grid-column: span 3;
  }

  .counter-workspace .counter-goals .section-heading h2 {
    font-size: 20px;
  }

  .counter-workspace .goal-item {
    min-height: 86px;
    padding: 12px;
  }

  .counter-workspace .goal-item strong {
    font-size: 21px;
  }

  .counter-workspace .goal-item div {
    font-size: 12.5px;
  }
}

.dashboard-workspace {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  margin-top: 28px;
}

.counter-goals,
.dashboard-workspace .settings-panel,
.dashboard-workspace .negative-section {
  grid-column: 1 / -1;
}

.counter-goals,
.dashboard-workspace .negative-section {
  max-width: none;
  margin-top: 0;
}

.counter-workspace .live-panel {
  min-height: auto;
}

.session-setup {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.session-setup label,
.check-control {
  display: grid;
  gap: 8px;
}

.session-setup span,
.check-control span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.session-setup input,
.settings-grid input {
  width: 100%;
}

.session-setup input {
  min-height: 46px;
  border: 1px solid rgba(245, 240, 228, .12);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .22);
  color: var(--porcelain);
  outline: none;
  padding: 0 13px;
}

.session-setup input:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(215, 181, 109, .12);
}

.session-setup input:disabled,
.settings-grid input:disabled {
  opacity: .48;
}

.check-control {
  min-height: 46px;
  align-content: end;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.check-control input {
  width: 20px;
  height: 20px;
  accent-color: var(--champagne);
}

.dashboard-workspace .settings-panel {
  min-height: auto;
}

.dashboard-workspace .settings-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-workspace .dashboard-control-panel {
  grid-column: span 7;
  min-height: 0;
  padding: 20px;
}

.dashboard-workspace .session-dashboard {
  grid-column: span 5;
}

.dashboard-workspace .chart-panel {
  grid-column: span 8;
}

.dashboard-workspace .negative-section {
  grid-column: span 4;
  min-height: 100%;
  grid-template-columns: 1fr;
  align-content: space-between;
}

.dashboard-control-panel .panel-heading {
  align-items: center;
}

.dashboard-control-panel .panel-heading h2,
.session-dashboard .panel-heading h2 {
  font-size: 24px;
  line-height: 1.08;
}

.dashboard-control-panel .settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.dashboard-control-panel .settings-grid label {
  gap: 7px;
}

.dashboard-control-panel .settings-grid input {
  min-height: 40px;
  font-size: 15px;
}

.dashboard-control-panel .check-control {
  align-content: center;
  min-height: 44px;
  padding-top: 18px;
}

.trend-section {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  padding-top: 4px;
}

.trend-heading {
  align-items: center;
}

.trend-controls {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.trend-select-control,
.trend-range-control,
.trend-view-control {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.trend-select-control {
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.trend-select-control span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.trend-select-control select {
  min-height: 40px;
  min-width: 160px;
  border: 1px solid rgba(215, 181, 109, .32);
  border-radius: 999px;
  background: rgba(215, 181, 109, .1);
  color: var(--champagne);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  outline: none;
  padding: 0 38px 0 14px;
}

.trend-select-control select:focus {
  border-color: rgba(215, 181, 109, .55);
  box-shadow: 0 0 0 3px rgba(215, 181, 109, .1);
}

.trend-range-button,
.trend-view-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(245, 240, 228, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  color: var(--soft);
  font-size: 13px;
  font-weight: 850;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.trend-range-button:hover,
.trend-view-button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(215, 181, 109, .08);
  color: var(--porcelain);
}

.trend-range-button.is-active,
.trend-view-button.is-active {
  border-color: rgba(215, 181, 109, .42);
  background: rgba(215, 181, 109, .12);
  color: var(--champagne);
}

.trend-view-control {
  padding: 4px;
  border: 1px solid rgba(245, 240, 228, .1);
  border-radius: 999px;
  background: rgba(0, 0, 0, .18);
}

.trend-view-button {
  min-width: 82px;
  border-color: transparent;
  background: transparent;
}

.trend-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.trend-kpis article {
  min-height: 94px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(245, 240, 228, .1);
  border-radius: var(--radius);
  background: rgba(17, 19, 21, .82);
}

.trend-kpis span {
  color: rgba(245, 240, 228, .54);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.trend-kpis strong {
  color: var(--porcelain);
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.trend-progress-card {
  align-content: center;
}

.trend-progress-card .progress-track {
  height: 7px;
  margin-top: 2px;
}

.trend-chart-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.trend-chart-panel {
  min-height: 380px;
}

.panel-heading.compact h2 {
  font-size: 24px;
}

.trend-chart-panel canvas,
.chart-panel canvas {
  width: 100%;
  min-height: 280px;
  display: block;
}

.trend-canvas {
  display: none;
}

.trend-canvas.is-active {
  display: block;
}

.desk-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 4px 0 2px;
}

.desk-head h2 {
  margin-bottom: 0;
}

.desk-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 750;
}

.panel,
.cost-card,
.goal-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 19, 21, .86);
  box-shadow: var(--shadow);
}

.panel {
  padding: 22px;
}

.panel-heading,
.section-heading.inline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-heading h2 {
  margin-bottom: 0;
}

.status-pill,
.chart-total {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(53, 214, 139, .26);
  border-radius: 999px;
  background: rgba(53, 214, 139, .08);
  color: var(--emerald);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.status-pill::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 9px rgba(53, 214, 139, .12);
}

.status-pill.is-running {
  border-color: rgba(53, 214, 139, .32);
  background: rgba(53, 214, 139, .08);
  color: var(--emerald);
}

.status-pill.is-paused {
  border-color: rgba(215, 181, 109, .35);
  background: rgba(215, 181, 109, .1);
  color: var(--champagne);
}

.status-pill.is-negative {
  border-color: rgba(232, 113, 99, .35);
  background: rgba(232, 113, 99, .1);
  color: #ffaaa0;
}

.live-panel {
  min-height: 610px;
  display: grid;
  align-content: space-between;
  gap: 28px;
  padding: 44px;
  border-color: rgba(215, 181, 109, .24);
  background:
    linear-gradient(135deg, rgba(11, 15, 18, .98) 0%, rgba(22, 30, 39, .97) 50%, rgba(42, 35, 21, .94) 100%);
}

.counter-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.live-panel .eyebrow {
  margin: 0;
  color: var(--champagne);
  font-size: 15px;
}

.counter-readout {
  display: grid;
  gap: 18px;
}

.live-value {
  color: var(--gold);
  font-size: 120px;
  font-weight: 950;
  line-height: .9;
  letter-spacing: 0;
  white-space: nowrap;
  transition: color .18s ease, text-shadow .18s ease, transform .18s ease;
}

.live-value::first-letter {
  color: var(--porcelain);
}

.live-value.is-negative {
  color: #ff9b90;
}

.live-value,
.metric-tile strong,
.goal-item strong,
.goal-item div,
.cost-card strong,
.chart-total,
.audit-grid strong {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.live-value.number-updating,
.metric-tile strong.number-updating,
.cost-card strong.number-updating,
.chart-total.number-updating {
  text-shadow: 0 0 28px rgba(215, 181, 109, .2);
}

.live-value.number-updating {
  transform: translateY(-1px);
}

.time-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: rgba(245, 240, 228, .62);
  font-size: 30px;
}

.time-row span:first-child {
  color: rgba(245, 240, 228, .78);
  font-family: inherit;
  font-weight: 700;
}

.goal-progress {
  display: grid;
  gap: 22px;
}

.progress-track {
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(245, 240, 228, .12);
}

.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b88d3d, #edcf83);
  transition: width .3s ease;
}

.goal-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: rgba(245, 240, 228, .66);
  font-size: 25px;
}

.goal-progress-meta strong {
  color: var(--porcelain);
}

.goal-progress-meta.muted {
  display: none;
}

.metric-grid {
  display: grid;
  gap: 0;
}

.counter-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(245, 240, 228, .11);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0, 0, 0, .16);
}

.metric-tile {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px;
  border-left: 1px solid rgba(245, 240, 228, .08);
}

.metric-tile:first-child {
  border-left: 0;
}

.metric-tile span {
  color: rgba(245, 240, 228, .55);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.metric-tile strong {
  color: var(--porcelain);
  font-size: 27px;
  line-height: 1;
  white-space: nowrap;
}

.metric-tile small {
  color: var(--muted);
  font-size: 12px;
}

.counter-metrics small {
  display: none;
}

.live-panel .counter-controls {
  padding-top: 2px;
}

.live-panel .icon-button {
  background: rgba(255, 255, 255, .045);
}

.settings-panel {
  min-height: 610px;
  align-self: stretch;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .015)),
    rgba(17, 19, 21, .9);
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 24px;
}

.settings-grid label {
  display: grid;
  gap: 8px;
}

.settings-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.settings-grid input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(245, 240, 228, .12);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .22);
  color: var(--porcelain);
  outline: none;
  padding: 0 13px;
}

.settings-grid input:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(215, 181, 109, .12);
}

.chart-panel {
  grid-column: 1 / -1;
}

.session-dashboard {
  grid-column: 1 / -1;
}

.audit-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, minmax(0, .72fr));
  gap: 0;
  margin-top: 20px;
  border: 1px solid rgba(245, 240, 228, .1);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0, 0, 0, .14);
}

.audit-grid article {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 20px;
  border-left: 1px solid rgba(245, 240, 228, .08);
}

.audit-grid article:first-child {
  border-left: 0;
}

.audit-grid span,
.timeline-item span {
  color: rgba(245, 240, 228, .54);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.audit-grid strong {
  color: var(--porcelain);
  font-size: 22px;
  line-height: 1.1;
}

.audit-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.timeline-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.audit-point {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid rgba(245, 240, 228, .08);
  border-radius: 7px;
  background: rgba(255, 255, 255, .026);
}

.audit-point small {
  color: rgba(239, 207, 131, .78);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.audit-point strong {
  color: var(--porcelain);
  font-size: 14px;
  line-height: 1.05;
  white-space: nowrap;
}

.audit-point em {
  color: rgba(245, 240, 228, .62);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

.timeline-point {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(245, 240, 228, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .025);
}

.timeline-point small {
  color: rgba(239, 207, 131, .68);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.timeline-point strong {
  min-width: 0;
  color: rgba(245, 240, 228, .88);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.1;
}

.timeline-point em {
  color: rgba(245, 240, 228, .58);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.timeline-grid h3 {
  margin-bottom: 10px;
}

.timeline-list {
  display: grid;
  gap: 10px;
}

.timeline-item,
.timeline-empty {
  padding: 14px;
  border: 1px solid rgba(245, 240, 228, .1);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .14);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 10px;
}

.timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.timeline-item > strong {
  color: var(--porcelain);
  font-size: 15px;
  min-width: 0;
}

.timeline-label {
  min-width: 0;
}

.timeline-duration {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(245, 240, 228, .08);
  border-radius: 999px;
  background: rgba(0, 0, 0, .2);
  color: rgba(245, 240, 228, .68);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.timeline-item small,
.timeline-empty {
  color: var(--muted);
}

.session-dashboard {
  overflow: hidden;
}

.session-dashboard .panel-heading {
  align-items: center;
}

.session-dashboard .audit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
  border: 0;
  overflow: visible;
  background: transparent;
}

.session-dashboard .audit-grid article {
  min-width: 0;
  min-height: 78px;
  padding: 14px;
  border: 1px solid rgba(245, 240, 228, .1);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .14);
}

.session-dashboard .audit-grid article:first-child {
  border-left: 1px solid rgba(245, 240, 228, .1);
}

.session-dashboard .audit-grid strong {
  min-width: 0;
  color: var(--porcelain);
  font-size: 18px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.session-dashboard .timeline-grid {
  gap: 10px;
  margin-top: 12px;
}

.session-dashboard .timeline-grid h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.session-dashboard .timeline-empty,
.session-dashboard .timeline-item {
  padding: 12px;
}

.session-dashboard .timeline-empty {
  font-size: 15px;
  line-height: 1.45;
}

canvas {
  display: block;
  width: 100%;
  height: 320px;
  min-height: 260px;
  margin-top: 18px;
  border: 1px solid rgba(245, 240, 228, .09);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(245, 240, 228, .04), rgba(0, 0, 0, .16));
}

.goals-section,
.negative-section,
.sessions-section {
  margin-top: 22px;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 16px;
}

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

.goal-item {
  min-height: 178px;
  padding: 18px;
  box-shadow: none;
}

.goal-item header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.goal-item strong {
  color: var(--champagne);
  font-size: 30px;
}

.goal-item .progress-track {
  margin: 16px 0 10px;
}

.goal-item div,
.goal-item small {
  color: var(--muted);
}

.negative-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
  align-items: stretch;
  padding: 26px 0;
  border-top: 1px solid rgba(232, 113, 99, .18);
  border-bottom: 1px solid rgba(232, 113, 99, .18);
}

.cost-card {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px;
  border-color: rgba(232, 113, 99, .28);
  background: rgba(232, 113, 99, .08);
  box-shadow: none;
}

.cost-card span {
  color: #ffc1ba;
  font-weight: 800;
}

.cost-card strong {
  color: #ff9b90;
  font-size: 38px;
  line-height: 1;
}

.cost-card small {
  color: var(--muted);
}

.table-shell {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 19, 21, .86);
}

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

th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid rgba(245, 240, 228, .08);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

td {
  color: var(--soft);
}

tr:last-child td {
  border-bottom: 0;
}

.amount-positive {
  color: var(--emerald);
  font-weight: 850;
}

.amount-negative {
  color: #ff9b90;
  font-weight: 850;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  max-width: min(360px, calc(100vw - 48px));
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(7, 8, 7, .96);
  box-shadow: var(--shadow);
  color: var(--porcelain);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.goal-popup {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 40;
  width: min(460px, calc(100vw - 48px));
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 52px 20px 18px;
  border: 1px solid rgba(215, 181, 109, .34);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(17, 19, 21, .98), rgba(30, 26, 18, .98)),
    rgba(7, 8, 7, .98);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .46);
  color: var(--porcelain);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px) scale(.98);
  transition: opacity .22s ease, transform .22s ease;
}

.goal-popup::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--emerald), var(--champagne));
}

.goal-popup.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.goal-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 240, 228, .12);
  border-radius: 50%;
  background: rgba(255, 255, 255, .04);
  color: var(--soft);
}

.goal-popup-close svg,
.goal-popup-mark svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.goal-popup-close:hover {
  border-color: rgba(215, 181, 109, .4);
  color: var(--porcelain);
}

.goal-popup-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(53, 214, 139, .34);
  border-radius: var(--radius);
  background: rgba(53, 214, 139, .1);
  color: var(--emerald);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.goal-popup-mark svg {
  width: 26px;
  height: 26px;
}

.goal-popup-copy {
  display: grid;
  gap: 7px;
}

.goal-popup-kicker {
  color: var(--champagne);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.goal-popup-title {
  color: var(--porcelain);
  font-size: 23px;
  line-height: 1.05;
}

.goal-popup-amount {
  color: var(--gold);
  font-size: 18px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.goal-popup-message {
  margin: 0;
  color: rgba(245, 240, 228, .76);
  line-height: 1.5;
}

.goal-popup-next {
  color: var(--muted);
  font-weight: 800;
}

.print-report {
  display: none;
}

@media (max-width: 1280px) {
  .entry-grid {
    grid-template-columns: 1fr;
  }

  .entry-console {
    max-width: 720px;
  }

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

  .dashboard-workspace {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .dashboard-workspace .dashboard-control-panel,
  .dashboard-workspace .session-dashboard {
    grid-column: span 6;
  }

  .dashboard-workspace .chart-panel,
  .dashboard-workspace .negative-section {
    grid-column: 1 / -1;
  }

  .live-panel,
  .settings-panel {
    min-height: auto;
  }

  .settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-control-panel .settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trend-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .side-rail {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    padding: 16px;
  }

  .rail-nav {
    display: flex;
    min-width: max-content;
  }

  .rail-note {
    display: none;
  }

  .command-bar {
    padding-top: 8px;
  }
}

@media (max-width: 860px) {
  .early-access {
    padding: 16px;
    place-items: stretch;
  }

  .early-access-frame {
    min-height: calc(100vh - 32px);
    padding: 22px;
    gap: 34px;
  }

  .early-access-brand,
  .early-access-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .early-code-row {
    grid-template-columns: 1fr;
  }

  .early-code-row button {
    width: 100%;
  }

  .entry-shell {
    padding: 16px;
  }

  .entry-hero {
    min-height: calc(100vh - 32px);
    padding: 18px;
  }

  .entry-brandbar,
  .entry-actions,
  .entry-console-head,
  .entry-progress div {
    display: grid;
    justify-content: stretch;
  }

  .entry-status,
  .entry-action {
    width: 100%;
  }

  .entry-executive-login {
    padding-top: 18px;
  }

  .entry-executive-metrics {
    grid-template-columns: 1fr;
  }

  .entry-auth-card .auth-split-grid {
    grid-template-columns: 1fr;
  }

  .entry-mini-grid {
    grid-template-columns: 1fr;
  }

  .app-main {
    padding: 18px;
  }

  .dashboard-workspace {
    grid-template-columns: 1fr;
  }

  .dashboard-workspace .dashboard-control-panel,
  .dashboard-workspace .session-dashboard,
  .dashboard-workspace .chart-panel,
  .dashboard-workspace .negative-section {
    grid-column: 1 / -1;
  }

  .command-bar,
  .desk-head,
  .negative-section,
  .section-heading.inline {
    display: grid;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 28px;
  }

  .live-panel {
    padding: 24px;
  }

  .live-value {
    font-size: 66px;
  }

  .time-row {
    font-size: 22px;
  }

  .goal-progress-meta {
    display: grid;
    font-size: 20px;
  }

  .counter-metrics,
  .session-setup,
  .audit-grid,
  .timeline-grid,
  .goal-list,
  .trend-kpis,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .trend-heading {
    display: grid;
  }

  .trend-controls {
    justify-items: start;
  }

  .trend-select-control {
    justify-content: flex-start;
  }

  .trend-range-control {
    justify-content: flex-start;
  }

  .dashboard-control-panel .settings-grid {
    grid-template-columns: 1fr;
  }

  .metric-tile {
    border-left: 0;
    border-top: 1px solid rgba(245, 240, 228, .08);
  }

  .metric-tile:first-child {
    border-top: 0;
  }

  .audit-grid article {
    border-left: 0;
    border-top: 1px solid rgba(245, 240, 228, .08);
  }

  .audit-grid article:first-child {
    border-top: 0;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .negative-section {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 520px) {
  .side-rail {
    align-items: flex-start;
  }

  .brand-copy {
    min-width: 150px;
  }

  .live-value {
    font-size: 48px;
  }

  .counter-card-head,
  .counter-controls,
  .topbar-actions {
    display: grid;
  }

  .primary-action,
  .icon-button,
  .mode-switch {
    width: 100%;
  }

  .auth-split-grid,
  .auth-name-grid,
  .entry-auth-card .auth-actions {
    grid-template-columns: 1fr;
  }

  .mode-switch {
    grid-template-columns: 1fr;
  }

  .mode-option {
    min-width: 0;
  }

  .goal-popup {
    top: 14px;
    right: 14px;
    left: 14px;
    width: auto;
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 18px 46px 18px 14px;
  }

  .goal-popup-mark {
    width: 44px;
    height: 44px;
  }

  .goal-popup-title {
    font-size: 20px;
  }
}

/* Premium Auth Landing */
.auth-entry-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(18px, 3.4vw, 54px);
  background:
    radial-gradient(circle at 52% 62%, rgba(201, 168, 92, .18), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(120, 145, 170, .14), transparent 28%),
    radial-gradient(circle at 14% 18%, rgba(23, 45, 68, .46), transparent 34%),
    linear-gradient(145deg, #020303 0%, #07090c 48%, #101114 100%);
}

.auth-entry-shell::before,
.auth-entry-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.auth-entry-shell::before {
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, .72), transparent 72%);
}

.auth-entry-shell::after {
  width: min(760px, 60vw);
  height: min(760px, 60vw);
  right: -18vw;
  bottom: -24vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 202, 135, .2), rgba(232, 202, 135, .05) 42%, transparent 70%);
  filter: blur(10px);
}

.auth-landing {
  width: min(1500px, 100%);
  min-height: calc(100vh - clamp(36px, 6.8vw, 108px));
  margin: 0 auto;
  padding: clamp(24px, 4.6vw, 64px);
  border: 1px solid rgba(245, 240, 228, .12);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .018) 42%, rgba(215, 181, 109, .045)),
    rgba(4, 5, 7, .82);
  box-shadow:
    0 44px 140px rgba(0, 0, 0, .68),
    inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.auth-landing::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 42%, rgba(245, 240, 228, .1), transparent 30%),
    radial-gradient(circle at 74% 46%, rgba(51, 70, 94, .24), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 34%);
  opacity: .92;
}

.auth-landing::after {
  content: "";
  position: absolute;
  inset: auto 12% 0;
  height: 1px;
  display: block;
  background: linear-gradient(90deg, transparent, rgba(232, 202, 135, .68), transparent);
  box-shadow: 0 0 38px rgba(232, 202, 135, .28);
}

.auth-brandbar {
  position: relative;
  z-index: 2;
}

.auth-brandbar .entry-logo-mark {
  width: 58px;
  height: 58px;
  border-color: rgba(232, 202, 135, .28);
  border-radius: 16px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .42);
}

.auth-brandbar .brand-copy strong {
  color: var(--porcelain);
  font-size: 14px;
  line-height: 1.2;
}

.auth-brandbar .brand-copy span {
  color: rgba(245, 240, 228, .58);
  font-size: 13px;
}

.auth-live-status {
  min-height: 44px;
  padding: 0 16px;
  border-color: rgba(245, 240, 228, .14);
  background: rgba(255, 255, 255, .045);
  color: rgba(245, 240, 228, .78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.auth-live-status span {
  color: var(--emerald);
}

.auth-landing-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, .72fr);
  gap: clamp(34px, 7vw, 112px);
  align-items: center;
}

.auth-hero-copy {
  max-width: 760px;
  justify-items: start;
  text-align: left;
  gap: clamp(16px, 2.4vw, 24px);
}

.auth-hero-copy h1 {
  max-width: 760px;
  color: #fbf7ee;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 7vw, 112px);
  font-weight: 700;
  line-height: .94;
}

.auth-hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(215, 181, 109, .24);
  border-radius: 999px;
  background: rgba(215, 181, 109, .07);
  color: var(--champagne);
}

.auth-hero-copy .entry-lead {
  max-width: 700px;
  color: rgba(245, 240, 228, .88);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.48;
}

.auth-hero-copy .entry-subline {
  max-width: 610px;
  color: rgba(245, 240, 228, .62);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.75;
}

.auth-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}

.auth-hero-actions .entry-action {
  min-width: 164px;
  min-height: 56px;
  border-radius: 999px;
  padding: 0 24px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.auth-hero-actions .entry-action.primary,
.auth-premium-card .auth-button.primary,
.auth-premium-card .entry-action.primary {
  background: linear-gradient(135deg, #f7e6b7, #d7b56d 48%, #a97d2b);
  color: #10100d;
  box-shadow: 0 18px 54px rgba(215, 181, 109, .22);
}

.auth-hero-actions .entry-action.secondary {
  background: rgba(255, 255, 255, .045);
  color: rgba(245, 240, 228, .76);
}

.auth-proof {
  justify-content: flex-start;
  gap: 10px;
  padding-top: 10px;
}

.auth-proof span {
  min-height: 38px;
  padding: 0 14px;
  border-color: rgba(245, 240, 228, .12);
  background: rgba(255, 255, 255, .035);
  color: rgba(245, 240, 228, .68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.auth-premium-card {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 580px;
  gap: 18px;
  padding: clamp(22px, 3vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(245, 240, 228, .15);
  border-radius: 24px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .035) 44%, rgba(215, 181, 109, .06)),
    rgba(9, 11, 14, .72);
  box-shadow:
    0 32px 110px rgba(0, 0, 0, .64),
    inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}

.auth-premium-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 240, 228, .68), transparent);
}

.auth-card-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(245, 240, 228, .1);
}

.auth-premium-card .auth-state {
  justify-items: start;
  text-align: left;
  gap: 7px;
  padding: 0;
  border-bottom: 0;
}

.auth-premium-card .auth-state span,
.auth-premium-card .auth-section-head span {
  color: var(--champagne);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-premium-card .auth-state strong {
  color: #fffaf0;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.05;
}

.auth-premium-card .auth-state small {
  max-width: 360px;
  color: rgba(245, 240, 228, .62);
  font-size: 13px;
  line-height: 1.55;
}

.auth-security-badge {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(53, 214, 139, .22);
  border-radius: 999px;
  background: rgba(53, 214, 139, .07);
  color: #6df0af;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.auth-premium-card .auth-split-grid {
  grid-template-columns: 1fr;
  gap: 14px;
}

.auth-premium-card .auth-section {
  gap: 13px;
  padding: clamp(18px, 2.2vw, 24px);
  border-radius: 18px;
  border-color: rgba(245, 240, 228, .12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)),
    rgba(0, 0, 0, .2);
}

.auth-premium-card .auth-section-register {
  border-color: rgba(215, 181, 109, .28);
  background:
    linear-gradient(180deg, rgba(215, 181, 109, .09), rgba(255, 255, 255, .02)),
    rgba(0, 0, 0, .24);
}

.auth-premium-card .auth-section-head {
  gap: 5px;
  padding-bottom: 4px;
}

.auth-premium-card .auth-section-head strong {
  color: #fffaf0;
  font-size: 22px;
  line-height: 1.12;
}

.auth-premium-card .auth-section-head small {
  color: rgba(245, 240, 228, .6);
  font-size: 13px;
  line-height: 1.45;
}

.auth-premium-card .auth-form input {
  min-height: 54px;
  border: 1px solid rgba(245, 240, 228, .14);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .018)),
    rgba(0, 0, 0, .34);
  color: var(--porcelain);
  padding: 0 16px;
  font-size: 15px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.auth-premium-card .auth-form input::placeholder {
  color: rgba(245, 240, 228, .42);
}

.auth-premium-card .auth-form input:focus {
  border-color: rgba(232, 202, 135, .7);
  box-shadow: 0 0 0 4px rgba(215, 181, 109, .1);
  background: rgba(0, 0, 0, .42);
}

.auth-premium-card .auth-consent {
  min-height: auto;
  padding: 14px;
  border: 1px solid rgba(245, 240, 228, .1);
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
  color: rgba(245, 240, 228, .66);
  font-size: 12px;
}

.auth-premium-card .auth-consent input {
  border-radius: 6px;
}

.auth-premium-card .auth-button {
  min-height: 56px;
  border-radius: 999px;
  border-color: rgba(245, 240, 228, .14);
  background: rgba(255, 255, 255, .055);
  color: rgba(245, 240, 228, .78);
  font-size: 15px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.auth-premium-card .auth-button:not(:disabled):hover,
.auth-hero-actions .entry-action:hover {
  transform: translateY(-1px);
  border-color: rgba(232, 202, 135, .4);
}

.auth-premium-card .auth-button.primary:not(:disabled):hover,
.auth-hero-actions .entry-action.primary:hover {
  box-shadow: 0 20px 64px rgba(215, 181, 109, .28);
}

.auth-premium-card .auth-button:disabled {
  opacity: .48;
}

.auth-launch-actions {
  justify-content: stretch;
}

.auth-premium-card .auth-launch-actions .entry-action,
.auth-premium-card .auth-launch-actions .auth-logout {
  width: 100%;
}

@media (max-width: 1120px) {
  .auth-landing-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .auth-hero-copy {
    max-width: 860px;
    justify-items: center;
    text-align: center;
    margin: 0 auto;
  }

  .auth-hero-copy .entry-lead,
  .auth-hero-copy .entry-subline {
    margin-left: auto;
    margin-right: auto;
  }

  .auth-hero-actions,
  .auth-proof {
    justify-content: center;
  }

  .auth-premium-card {
    justify-self: center;
    max-width: 760px;
  }
}

@media (max-width: 680px) {
  .auth-entry-shell {
    padding: 12px;
  }

  .auth-landing {
    min-height: calc(100vh - 24px);
    padding: 18px;
    border-radius: 18px;
  }

  .auth-brandbar {
    display: grid;
    gap: 14px;
  }

  .auth-live-status {
    width: 100%;
    justify-content: center;
  }

  .auth-landing-grid {
    gap: 26px;
    align-items: start;
  }

  .auth-hero-copy {
    gap: 15px;
    padding-top: 8px;
  }

  .auth-hero-copy h1 {
    font-size: clamp(43px, 13vw, 64px);
    line-height: .98;
  }

  .auth-hero-copy .entry-lead {
    font-size: 18px;
    line-height: 1.55;
  }

  .auth-hero-copy .entry-subline {
    font-size: 14px;
  }

  .auth-hero-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .auth-hero-actions .entry-action {
    width: 100%;
  }

  .auth-proof {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .auth-proof span {
    justify-content: center;
  }

  .auth-premium-card {
    padding: 16px;
    border-radius: 18px;
  }

  .auth-card-top {
    grid-template-columns: 1fr;
  }

  .auth-security-badge {
    justify-self: start;
  }

  .auth-premium-card .auth-section {
    padding: 16px;
    border-radius: 16px;
  }

  .auth-name-grid {
    grid-template-columns: 1fr;
  }
}

/* MoneyCounter Market Terminal Refresh */
.counter-page {
  background:
    radial-gradient(circle at 76% 8%, rgba(53, 214, 139, .08), transparent 28%),
    linear-gradient(135deg, #050606 0%, #0c0f10 48%, #070807 100%);
}

.counter-page::before {
  background:
    linear-gradient(rgba(245, 240, 228, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 240, 228, .026) 1px, transparent 1px),
    linear-gradient(135deg, transparent, rgba(53, 214, 139, .035));
  background-size: 56px 56px, 56px 56px, 100% 100%;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .76), rgba(0, 0, 0, .2));
}

.counter-page .app-shell {
  grid-template-columns: 300px minmax(0, 1fr);
}

.counter-page .side-rail {
  gap: 22px;
  border-right-color: rgba(245, 240, 228, .09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .026), rgba(255, 255, 255, 0)),
    rgba(3, 4, 4, .96);
}

.counter-page .brand-mark {
  background:
    linear-gradient(145deg, rgba(239, 207, 131, .16), rgba(53, 214, 139, .05)),
    #080908;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.counter-page .sync-status,
.counter-page .auth-card,
.counter-page .rail-note {
  background: rgba(255, 255, 255, .028);
  box-shadow: none;
}

.counter-page .app-main {
  padding: 24px;
}

.counter-page .command-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px 16px;
  border: 1px solid rgba(245, 240, 228, .1);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .016)),
    rgba(7, 9, 10, .86);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .28);
}

.counter-page .command-bar h1 {
  margin-bottom: 2px;
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.05;
  font-weight: 900;
}

.counter-page .topbar-copy {
  display: block;
  max-width: 760px;
  color: rgba(245, 240, 228, .58);
  font-size: 13px;
  line-height: 1.45;
}

.counter-page .counter-workspace {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.counter-page .desk-head {
  grid-column: 1 / -1;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid rgba(245, 240, 228, .1);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(53, 214, 139, .08), transparent 36%),
    rgba(5, 6, 7, .78);
}

.counter-page .desk-head h2 {
  font-size: clamp(22px, 2.2vw, 30px);
}

.counter-page .desk-meta {
  justify-content: flex-end;
}

.counter-page .desk-meta span {
  min-height: 28px;
  border-color: rgba(245, 240, 228, .12);
  background: rgba(255, 255, 255, .035);
  color: rgba(245, 240, 228, .66);
  font-size: 11px;
  text-transform: uppercase;
}

.counter-page .session-setup {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(170px, .8fr) repeat(3, minmax(130px, 1fr)) minmax(132px, .65fr);
  gap: 10px;
  align-items: end;
  padding: 10px;
  border-color: rgba(245, 240, 228, .1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)),
    rgba(8, 10, 11, .88);
  box-shadow: none;
}

.counter-page .setup-heading {
  display: grid;
  align-content: center;
  gap: 2px;
  min-height: 44px;
  padding: 0 8px;
}

.counter-page .setup-heading .eyebrow {
  margin-bottom: 0;
}

.counter-page .setup-heading strong {
  color: var(--porcelain);
  font-size: 15px;
  letter-spacing: 0;
}

.counter-page .session-setup label,
.counter-page .session-setup .check-control {
  min-width: 0;
  gap: 7px;
}

.counter-page .session-setup span,
.counter-page .check-control span {
  color: rgba(245, 240, 228, .52);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.counter-page .session-setup input {
  min-height: 40px;
  border-color: rgba(245, 240, 228, .12);
  background: rgba(0, 0, 0, .32);
  color: var(--porcelain);
  font-size: 16px;
  font-weight: 800;
}

.counter-page .check-control {
  min-height: 40px;
  justify-content: center;
  border-color: rgba(245, 240, 228, .12);
  background: rgba(0, 0, 0, .24);
}

.counter-page .live-panel {
  grid-column: span 8;
  min-height: 520px;
  align-content: start;
  grid-template-columns: minmax(0, 1.08fr) minmax(220px, .92fr);
  gap: 16px;
  padding: 22px;
  overflow: hidden;
  border-color: rgba(245, 240, 228, .13);
  background:
    linear-gradient(rgba(245, 240, 228, .026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 240, 228, .02) 1px, transparent 1px),
    radial-gradient(circle at 96% 0%, rgba(53, 214, 139, .12), transparent 30%),
    linear-gradient(135deg, rgba(9, 13, 15, .98), rgba(12, 15, 17, .96) 54%, rgba(7, 8, 8, .98));
  background-size: 42px 42px, 42px 42px, 100% 100%, 100% 100%;
  box-shadow: 0 26px 90px rgba(0, 0, 0, .34);
}

.counter-page .counter-card-head {
  grid-column: 1 / -1;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(245, 240, 228, .09);
}

.counter-page .market-symbol {
  display: grid;
  gap: 3px;
}

.counter-page .market-symbol .eyebrow {
  margin-bottom: 0;
  color: var(--emerald);
  font-size: 11px;
}

.counter-page .market-symbol strong {
  color: var(--porcelain);
  font-size: 20px;
  line-height: 1.1;
}

.counter-page .market-symbol small {
  color: rgba(245, 240, 228, .48);
  font-size: 12px;
}

.counter-page .status-pill {
  min-height: 30px;
  border-color: rgba(53, 214, 139, .28);
  background: rgba(53, 214, 139, .08);
  font-size: 12px;
}

.counter-page .counter-readout {
  grid-column: 1;
  align-self: start;
  gap: 8px;
  padding: 6px 0 2px;
}

.counter-page .quote-line,
.counter-page .progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(245, 240, 228, .46);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.counter-page .counter-workspace .live-value {
  color: var(--porcelain);
  font-size: clamp(50px, 4.6vw, 68px);
  line-height: .98;
  font-weight: 900;
  text-shadow: none;
}

.counter-page .live-value::first-letter {
  color: rgba(245, 240, 228, .58);
}

.counter-page .live-value.is-negative {
  color: #ff9b90;
}

.counter-page .time-row {
  align-items: center;
  gap: 10px;
  color: rgba(245, 240, 228, .45);
  font-size: 15px;
}

.counter-page .time-row span:first-child {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(245, 240, 228, .1);
  border-radius: 999px;
  background: rgba(0, 0, 0, .24);
  color: rgba(245, 240, 228, .82);
  font-size: 16px;
}

.counter-page .goal-progress {
  grid-column: 2;
  align-self: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(245, 240, 228, .09);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .18);
}

.counter-page .progress-track {
  height: 7px;
  background: rgba(245, 240, 228, .1);
}

.counter-page .progress-track span {
  background: linear-gradient(90deg, var(--emerald), var(--gold));
}

.counter-page .goal-progress-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  color: rgba(245, 240, 228, .68);
  font-size: 12px;
}

.counter-page .goal-progress-meta span {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(245, 240, 228, .08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .025);
}

.counter-page .goal-progress-meta.muted {
  display: grid;
}

.counter-page .counter-metrics {
  grid-column: 1 / -1;
  order: 5;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  border: 0;
  overflow: visible;
  background: transparent;
}

.counter-page .metric-tile {
  min-height: 82px;
  align-content: start;
  gap: 9px;
  padding: 13px;
  border: 1px solid rgba(245, 240, 228, .09);
  border-left: 1px solid rgba(245, 240, 228, .09);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)),
    rgba(0, 0, 0, .18);
}

.counter-page .metric-tile:first-child {
  border-left: 1px solid rgba(245, 240, 228, .09);
}

.counter-page .metric-tile span {
  color: rgba(245, 240, 228, .48);
  font-size: 11px;
}

.counter-page .metric-tile strong {
  color: var(--porcelain);
  font-size: clamp(20px, 1.8vw, 25px);
  font-weight: 850;
}

.counter-page .metric-tile small,
.counter-page .counter-metrics small {
  display: block;
  color: rgba(245, 240, 228, .42);
  font-size: 11px;
}

.counter-page .live-panel .counter-controls {
  grid-column: 1 / -1;
  order: 4;
  display: grid;
  grid-template-columns: auto auto auto minmax(250px, 1fr);
  align-items: center;
  gap: 9px;
  padding-top: 4px;
}

.counter-page .primary-action,
.counter-page .live-panel .icon-button,
.counter-page .mode-option {
  min-height: 40px;
  border-color: rgba(245, 240, 228, .11);
  background: rgba(255, 255, 255, .04);
  font-size: 13px;
  font-weight: 850;
}

.counter-page .primary-action {
  min-width: 136px;
  padding: 0 18px;
  border-color: rgba(239, 207, 131, .42);
  background: linear-gradient(180deg, rgba(239, 207, 131, .95), rgba(197, 155, 69, .96));
  color: #0a0a08;
  box-shadow: 0 14px 34px rgba(215, 181, 109, .18);
}

.counter-page .live-panel .icon-button.success {
  border-color: rgba(53, 214, 139, .28);
  color: var(--emerald);
}

.counter-page .mode-switch {
  justify-self: end;
  width: min(360px, 100%);
  min-height: 46px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 3px;
  border-color: rgba(245, 240, 228, .1);
  background: rgba(0, 0, 0, .24);
}

.counter-page .mode-option {
  min-height: 34px;
  padding: 0 10px;
}

.counter-page .mode-option small {
  color: rgba(245, 240, 228, .48);
}

.counter-page .money-activity-visual {
  grid-column: 1 / -1;
  order: 6;
  width: min(96%, 980px);
  justify-self: center;
  display: grid;
  gap: 10px;
  min-height: 218px;
  padding: 14px;
  border: 1px solid rgba(239, 207, 131, .16);
  border-radius: 12px;
  background:
    linear-gradient(rgba(245, 240, 228, .024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 240, 228, .018) 1px, transparent 1px),
    radial-gradient(circle at 100% 0%, rgba(239, 207, 131, .1), transparent 38%),
    rgba(0, 0, 0, .22);
  background-size: 64px 64px, 64px 64px, auto, auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.counter-page .money-activity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.counter-page .money-activity-head div {
  display: grid;
  gap: 2px;
}

.counter-page .money-activity-head span {
  color: rgba(239, 207, 131, .86);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.counter-page .money-activity-head strong {
  color: rgba(245, 240, 228, .92);
  font-size: 18px;
  line-height: 1.05;
}

.counter-page .money-activity-head small {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(239, 207, 131, .24);
  border-radius: 999px;
  background: rgba(239, 207, 131, .075);
  color: rgba(255, 238, 190, .88);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.counter-page .money-activity-shell {
  min-height: 170px;
  overflow: hidden;
  border: 1px solid rgba(245, 240, 228, .075);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .018), rgba(255, 255, 255, .004)),
    rgba(2, 5, 6, .44);
}

.counter-page .money-activity-empty {
  min-height: 170px;
  display: grid;
  place-items: center;
  padding: 18px;
  color: rgba(245, 240, 228, .52);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.counter-page .money-live-chart {
  width: 100%;
  min-height: 170px;
  display: block;
}

.counter-page .money-chart-grid line {
  stroke: rgba(245, 240, 228, .08);
  stroke-width: 1;
}

.counter-page .money-chart-grid text,
.counter-page .money-chart-axis text {
  fill: rgba(245, 240, 228, .58);
  font-size: 11px;
  font-weight: 850;
}

.counter-page .money-chart-axis text:last-child {
  fill: rgba(255, 238, 190, .9);
  font-weight: 900;
}

.counter-page .money-chart-pause-band {
  fill: rgba(53, 214, 139, .07);
}

.counter-page .money-chart-area {
  fill: url(#moneyChartFill);
}

.counter-page .money-chart-line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 10px 22px rgba(239, 207, 131, .18));
}

.counter-page .money-chart-point {
  fill: var(--gold);
  stroke: rgba(5, 7, 8, .92);
  stroke-width: 2.5;
}

.counter-page .money-live-chart.is-negative .money-chart-line {
  stroke: var(--ruby);
  filter: drop-shadow(0 10px 22px rgba(232, 113, 99, .18));
}

.counter-page .money-live-chart.is-negative .money-chart-point {
  fill: var(--ruby);
}

.counter-page .counter-goals {
  grid-column: span 4;
  width: 100%;
  max-width: none;
  align-self: stretch;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(245, 240, 228, .1);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)),
    rgba(8, 10, 11, .86);
  box-shadow: 0 26px 90px rgba(0, 0, 0, .26);
}

.counter-page .counter-goals .section-heading {
  max-width: none;
  margin-bottom: 12px;
}

.counter-page .counter-goals .section-heading h2 {
  font-size: 22px;
}

.counter-page .counter-goals .section-heading p {
  display: none;
}

.counter-page .goal-list {
  grid-template-columns: 1fr;
  gap: 10px;
}

.counter-page .goal-item {
  min-height: 90px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 12px;
  border-color: rgba(245, 240, 228, .09);
  background:
    linear-gradient(90deg, rgba(53, 214, 139, .055), transparent 54%),
    rgba(0, 0, 0, .18);
}

.counter-page .goal-item header {
  margin-bottom: 0;
}

.counter-page .goal-item strong {
  color: var(--porcelain);
  font-size: 21px;
  font-weight: 850;
}

.counter-page .goal-item div,
.counter-page .goal-item small {
  color: rgba(245, 240, 228, .5);
  font-size: 12px;
}

.counter-page .goal-item .progress-track {
  height: 6px;
  margin: 4px 0 2px;
}

@media (min-width: 1440px) {
  .counter-page .live-panel {
    grid-column: span 9;
  }

  .counter-page .counter-goals {
    grid-column: span 3;
  }
}

@media (max-width: 1120px) {
  .counter-page .side-rail {
    height: auto;
  }
}

@media (max-width: 860px) {
  .counter-page .app-main {
    padding: 14px;
  }

  .counter-page .command-bar,
  .counter-page .desk-head {
    grid-template-columns: 1fr;
    display: grid;
    gap: 12px;
  }

  .counter-page .desk-meta {
    justify-content: flex-start;
  }

  .counter-page .session-setup,
  .counter-page .counter-metrics,
  .counter-page .goal-progress-meta,
  .counter-page .live-panel .counter-controls {
    grid-template-columns: 1fr;
  }

  .counter-page .live-panel {
    min-height: auto;
    padding: 18px;
  }

  .counter-page .counter-workspace .live-value {
    font-size: clamp(40px, 13vw, 58px);
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .counter-page .counter-card-head,
  .counter-page .quote-line,
  .counter-page .progress-label {
    display: grid;
    gap: 8px;
  }

  .counter-page .counter-card-head {
    justify-items: start;
  }

  .counter-page .mode-switch,
  .counter-page .primary-action,
  .counter-page .live-panel .icon-button {
    width: 100%;
    justify-self: stretch;
  }

  .counter-page .counter-goals {
    padding: 16px;
  }
}

@media (max-width: 520px) {
  .counter-page .side-rail {
    padding: 12px;
  }

  .counter-page .command-bar h1 {
    font-size: 30px;
  }

  .counter-page .counter-workspace .live-value {
    font-size: 39px;
  }

  .counter-page .time-row {
    align-items: flex-start;
    display: grid;
  }

  .counter-page .mode-switch {
    grid-template-columns: 1fr;
  }
}

/* Dashboard Market Terminal Refresh */
.dashboard-page {
  background:
    radial-gradient(circle at 74% 6%, rgba(53, 214, 139, .075), transparent 30%),
    linear-gradient(135deg, #050606 0%, #0c0f10 50%, #070807 100%);
}

.dashboard-page::before {
  background:
    linear-gradient(rgba(245, 240, 228, .032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 240, 228, .024) 1px, transparent 1px),
    linear-gradient(135deg, transparent, rgba(53, 214, 139, .032));
  background-size: 56px 56px, 56px 56px, 100% 100%;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .74), rgba(0, 0, 0, .18));
}

.dashboard-page .app-shell {
  grid-template-columns: 300px minmax(0, 1fr);
}

.dashboard-page .side-rail {
  gap: 22px;
  border-right-color: rgba(245, 240, 228, .09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .026), rgba(255, 255, 255, 0)),
    rgba(3, 4, 4, .96);
}

.dashboard-page .brand-mark {
  background:
    linear-gradient(145deg, rgba(239, 207, 131, .16), rgba(53, 214, 139, .05)),
    #080908;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.dashboard-page .sync-status,
.dashboard-page .auth-card,
.dashboard-page .rail-note {
  background: rgba(255, 255, 255, .028);
  box-shadow: none;
}

.dashboard-page .app-main {
  padding: 24px;
}

.dashboard-page .command-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px 16px;
  border: 1px solid rgba(245, 240, 228, .1);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .016)),
    rgba(7, 9, 10, .86);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .28);
}

.dashboard-page .command-bar h1 {
  margin-bottom: 2px;
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.05;
  font-weight: 900;
}

.dashboard-page .topbar-copy {
  display: block;
  max-width: 760px;
  color: rgba(245, 240, 228, .58);
  font-size: 13px;
  line-height: 1.45;
}

.dashboard-page .topbar-actions {
  align-items: center;
}

.dashboard-page .topbar-actions .icon-button {
  min-height: 40px;
  border-color: rgba(245, 240, 228, .12);
  background: rgba(255, 255, 255, .04);
  font-size: 13px;
  font-weight: 850;
}

.dashboard-page .dashboard-workspace {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  margin-top: 0;
}

.dashboard-page .desk-head {
  grid-column: 1 / -1;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid rgba(245, 240, 228, .1);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(53, 214, 139, .08), transparent 36%),
    rgba(5, 6, 7, .78);
}

.dashboard-page .desk-head h2 {
  font-size: clamp(22px, 2.2vw, 30px);
}

.dashboard-page .desk-meta {
  justify-content: flex-end;
}

.dashboard-page .desk-meta span {
  min-height: 28px;
  border-color: rgba(245, 240, 228, .12);
  background: rgba(255, 255, 255, .035);
  color: rgba(245, 240, 228, .66);
  font-size: 11px;
  text-transform: uppercase;
}

.dashboard-page .panel,
.dashboard-page .trend-section,
.dashboard-page .negative-section,
.dashboard-page .table-shell {
  border-color: rgba(245, 240, 228, .1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)),
    rgba(8, 10, 11, .86);
  box-shadow: 0 24px 82px rgba(0, 0, 0, .24);
}

.dashboard-page .panel-heading h2,
.dashboard-page .section-heading h2 {
  font-size: 22px;
  line-height: 1.08;
}

.dashboard-page .chart-total {
  min-height: 30px;
  border-color: rgba(53, 214, 139, .28);
  background: rgba(53, 214, 139, .08);
  font-size: 12px;
}

.dashboard-page .dashboard-control-panel {
  grid-column: span 4;
  min-height: 0;
  padding: 18px;
}

.dashboard-page .dashboard-control-panel .settings-grid {
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

.dashboard-page .settings-grid span {
  color: rgba(245, 240, 228, .5);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.dashboard-page .settings-grid input {
  min-height: 40px;
  border-color: rgba(245, 240, 228, .11);
  background: rgba(0, 0, 0, .28);
  color: var(--porcelain);
  font-size: 14px;
  font-weight: 800;
}

.dashboard-page .mini-button {
  min-width: 40px;
  min-height: 40px;
  border-color: rgba(239, 207, 131, .34);
  background: rgba(239, 207, 131, .08);
  color: var(--gold);
}

.dashboard-page .session-dashboard {
  grid-column: span 8;
  padding: 18px;
}

.dashboard-page .session-dashboard .audit-grid {
  grid-template-columns: minmax(300px, 1.45fr) repeat(3, minmax(124px, .72fr));
  gap: 12px;
  margin-top: 14px;
}

.dashboard-page .session-dashboard .audit-grid article {
  min-height: 86px;
  padding: 13px;
  border-color: rgba(245, 240, 228, .09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)),
    rgba(0, 0, 0, .2);
}

.dashboard-page .session-dashboard .audit-grid article:first-child {
  padding: 13px;
}

.dashboard-page .audit-grid span,
.dashboard-page .timeline-item span {
  color: rgba(245, 240, 228, .48);
  font-size: 11px;
}

.dashboard-page .session-dashboard .audit-grid strong {
  color: var(--porcelain);
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 850;
}

.dashboard-page .session-dashboard .audit-range {
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(245, 240, 228, .08);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(239, 207, 131, .055), rgba(38, 224, 143, .035)),
    rgba(0, 0, 0, .18);
}

.dashboard-page .session-dashboard .audit-point {
  padding: 9px 10px;
  border: 0;
  border-left: 1px solid rgba(245, 240, 228, .07);
  border-radius: 0;
  background: transparent;
}

.dashboard-page .session-dashboard .audit-point:first-child {
  border-left: 0;
}

.dashboard-page .session-dashboard .audit-point small {
  color: rgba(239, 207, 131, .72);
  font-size: 9px;
}

.dashboard-page .session-dashboard .audit-point strong {
  font-size: 13px;
}

.dashboard-page .session-dashboard .audit-point em {
  font-size: 12px;
}

.dashboard-page .session-dashboard .timeline-grid {
  gap: 10px;
  margin-top: 12px;
}

.dashboard-page .timeline-grid h3 {
  margin-bottom: 8px;
  color: rgba(245, 240, 228, .78);
  font-size: 14px;
  text-transform: uppercase;
}

.dashboard-page .timeline-empty,
.dashboard-page .timeline-item {
  padding: 12px;
  border-color: rgba(245, 240, 228, .08);
  background: rgba(0, 0, 0, .18);
  color: rgba(245, 240, 228, .48);
  font-size: 13px;
}

.dashboard-page .timeline-item {
  grid-template-columns: 1fr;
  gap: 10px;
  min-height: 92px;
}

.dashboard-page .timeline-empty {
  display: flex;
  align-items: center;
  min-height: 92px;
  color: rgba(245, 240, 228, .56);
}

.dashboard-page .timeline-range {
  gap: 8px;
}

.dashboard-page .timeline-point {
  padding: 9px 10px;
  border: 1px solid rgba(245, 240, 228, .075);
  background: rgba(255, 255, 255, .024);
}

.dashboard-page .timeline-point small {
  font-size: 9px;
}

.dashboard-page .timeline-point strong {
  font-size: 14px;
}

.dashboard-page .timeline-duration {
  min-height: 26px;
  color: rgba(245, 240, 228, .72);
  font-size: 12px;
  font-weight: 850;
}

.dashboard-page .trend-section {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(245, 240, 228, .1);
  border-radius: var(--radius);
}

.dashboard-page .trend-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  width: 100%;
  max-width: none;
  margin-bottom: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(245, 240, 228, .075);
}

.dashboard-page .trend-controls {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(245, 240, 228, .08);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)),
    rgba(0, 0, 0, .18);
}

.dashboard-page .trend-select-control,
.dashboard-page .trend-view-shell {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.dashboard-page .trend-view-shell > span,
.dashboard-page .trend-select-control span {
  color: rgba(245, 240, 228, .46);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.dashboard-page .trend-select-control {
  justify-content: stretch;
  gap: 6px;
}

.dashboard-page .trend-select-control select,
.dashboard-page .trend-view-control {
  border-color: rgba(245, 240, 228, .12);
  background: rgba(0, 0, 0, .3);
}

.dashboard-page .trend-select-control select {
  min-width: 168px;
  min-height: 38px;
  border-radius: 10px;
  color: var(--gold);
  font-size: 13px;
}

.dashboard-page .trend-view-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  width: 174px;
  min-height: 38px;
  padding: 3px;
  border-radius: 10px;
}

.dashboard-page .trend-view-button {
  min-width: 0;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 12px;
  transform: none;
}

.dashboard-page .trend-view-button:hover {
  transform: none;
  border-color: rgba(245, 240, 228, .1);
  background: rgba(255, 255, 255, .035);
}

.dashboard-page .trend-view-button.is-active {
  border-color: rgba(53, 214, 139, .28);
  background: rgba(53, 214, 139, .08);
  color: var(--emerald);
}

.dashboard-page .trend-kpis {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-page .trend-kpis article {
  min-height: 82px;
  gap: 7px;
  padding: 13px;
  border-color: rgba(245, 240, 228, .09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .038), rgba(255, 255, 255, .01)),
    rgba(0, 0, 0, .2);
}

.dashboard-page .trend-kpis article:first-child {
  border-color: rgba(239, 207, 131, .14);
  background:
    linear-gradient(180deg, rgba(239, 207, 131, .055), rgba(255, 255, 255, .01)),
    rgba(0, 0, 0, .2);
}

.dashboard-page .trend-kpis span {
  color: rgba(245, 240, 228, .48);
  font-size: 11px;
}

.dashboard-page .trend-kpis strong {
  color: var(--porcelain);
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 850;
}

.dashboard-page .trend-progress-card .progress-track,
.dashboard-page .progress-track {
  height: 7px;
  background: rgba(245, 240, 228, .1);
}

.dashboard-page .progress-track span {
  background: linear-gradient(90deg, var(--emerald), var(--gold));
}

.dashboard-page .trend-chart-panel {
  min-height: 330px;
  padding: 16px;
  background:
    linear-gradient(rgba(245, 240, 228, .026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 240, 228, .02) 1px, transparent 1px),
    radial-gradient(circle at 96% 0%, rgba(53, 214, 139, .12), transparent 30%),
    rgba(5, 7, 8, .88);
  background-size: 42px 42px, 42px 42px, 100% 100%, 100% 100%;
}

.dashboard-page .trend-chart-panel canvas,
.dashboard-page .chart-panel canvas {
  min-height: 240px;
  height: 280px;
  margin-top: 12px;
  border-color: rgba(245, 240, 228, .09);
  background:
    linear-gradient(rgba(245, 240, 228, .026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 240, 228, .02) 1px, transparent 1px),
    rgba(0, 0, 0, .18);
  background-size: 36px 36px, 36px 36px, 100% 100%;
}

.dashboard-page .chart-panel {
  grid-column: span 8;
  padding: 18px;
}

.dashboard-page .negative-section {
  grid-column: span 4;
  display: grid;
  grid-template-columns: 1fr;
  align-content: space-between;
  gap: 14px;
  min-height: 100%;
  margin-top: 0;
  padding: 18px;
  border: 1px solid rgba(232, 113, 99, .18);
  border-radius: var(--radius);
}

.dashboard-page .negative-section h2 {
  font-size: 22px;
  line-height: 1.12;
}

.dashboard-page .negative-section p {
  color: rgba(245, 240, 228, .54);
  font-size: 13px;
  line-height: 1.55;
}

.dashboard-page .cost-card {
  min-height: 150px;
  padding: 16px;
  border-color: rgba(232, 113, 99, .24);
  background:
    linear-gradient(180deg, rgba(232, 113, 99, .1), rgba(232, 113, 99, .035)),
    rgba(0, 0, 0, .18);
}

.dashboard-page .cost-card strong {
  font-size: clamp(30px, 3vw, 42px);
}

.dashboard-page .sessions-section {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(245, 240, 228, .1);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012)),
    rgba(8, 10, 11, .84);
  box-shadow: 0 24px 82px rgba(0, 0, 0, .24);
}

.dashboard-page .sessions-section .section-heading {
  max-width: none;
  margin-bottom: 12px;
}

.dashboard-page .table-shell {
  border-color: rgba(245, 240, 228, .09);
  background: rgba(0, 0, 0, .18);
  box-shadow: none;
}

.dashboard-page .sessions-section table {
  min-width: 1220px;
}

.dashboard-page th,
.dashboard-page td {
  padding: 13px 14px;
  border-bottom-color: rgba(245, 240, 228, .07);
}

.dashboard-page th {
  color: rgba(245, 240, 228, .48);
  font-size: 11px;
}

.dashboard-page td {
  color: rgba(245, 240, 228, .7);
  font-size: 14px;
}

.dashboard-page tr.is-selected td {
  background: rgba(53, 214, 139, .035);
}

.dashboard-page .history-select-cell {
  width: 42px;
  padding-inline: 10px;
  text-align: center;
}

.dashboard-page .history-select-cell input {
  width: 16px;
  height: 16px;
  accent-color: var(--emerald);
  cursor: pointer;
}

.dashboard-page .history-share-button {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(53, 214, 139, .22);
  border-radius: 9px;
  background: rgba(53, 214, 139, .065);
  color: var(--emerald);
  font-size: 12px;
  font-weight: 850;
}

.dashboard-page .history-share-button:hover {
  border-color: rgba(53, 214, 139, .38);
  background: rgba(53, 214, 139, .1);
}

.dashboard-page .history-action-group {
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
}

.dashboard-page .session-ledger-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.dashboard-page .session-selection-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(245, 240, 228, .075);
  border-radius: 999px;
  background: rgba(255, 255, 255, .025);
  color: rgba(245, 240, 228, .52);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-page .session-ledger-toolbar .table-actions {
  justify-content: flex-end;
}

@media (max-width: 1280px) {
  .dashboard-page .trend-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .dashboard-page .app-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-page .side-rail {
    height: auto;
  }
}

@media (max-width: 860px) {
  .dashboard-page .app-main {
    padding: 14px;
  }

  .dashboard-page .command-bar,
  .dashboard-page .desk-head,
  .dashboard-page .panel-heading,
  .dashboard-page .section-heading.inline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .dashboard-page .desk-meta,
  .dashboard-page .topbar-actions,
  .dashboard-page .trend-controls {
    justify-content: flex-start;
    justify-items: start;
  }

  .dashboard-page .topbar-actions,
  .dashboard-page .trend-controls,
  .dashboard-page .trend-select-control,
  .dashboard-page .trend-view-shell,
  .dashboard-page .trend-view-control {
    width: 100%;
  }

  .dashboard-page .topbar-actions .icon-button,
  .dashboard-page .trend-select-control select,
  .dashboard-page .trend-view-control {
    width: 100%;
  }

  .dashboard-page .session-dashboard .audit-grid,
  .dashboard-page .timeline-grid,
  .dashboard-page .trend-kpis,
  .dashboard-page .dashboard-control-panel .settings-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-page .trend-section,
  .dashboard-page .chart-panel,
  .dashboard-page .negative-section,
  .dashboard-page .sessions-section {
    padding: 14px;
  }

  .dashboard-page .trend-chart-panel canvas,
  .dashboard-page .chart-panel canvas {
    height: 240px;
    min-height: 220px;
  }

  .dashboard-page .session-ledger-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    justify-content: stretch;
  }

  .dashboard-page .session-ledger-toolbar .table-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dashboard-page .session-ledger-toolbar .icon-button,
  .dashboard-page .session-selection-status {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .dashboard-page .command-bar h1 {
    font-size: 30px;
  }

  .dashboard-page .trend-view-control {
    display: grid;
    border-radius: var(--radius);
  }

  .dashboard-page .trend-view-button {
    width: 100%;
  }
}

/* Mobile Trading Terminal Refinement */
@media (max-width: 860px) {
  .counter-page,
  .dashboard-page {
    background:
      radial-gradient(circle at 50% 0%, rgba(53, 214, 139, .08), transparent 240px),
      linear-gradient(180deg, #050606 0%, #090b0c 46%, #050606 100%);
  }

  .counter-page::before,
  .dashboard-page::before {
    background-size: 44px 44px, 44px 44px, 100% 100%;
    opacity: .68;
  }

  .counter-page .app-shell,
  .dashboard-page .app-shell {
    display: block;
  }

  .counter-page .side-rail,
  .dashboard-page .side-rail {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(180px, 1fr);
    gap: 12px;
    max-height: none;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(245, 240, 228, .09);
    background: rgba(3, 4, 4, .94);
    backdrop-filter: blur(16px);
  }

  .counter-page .brand,
  .dashboard-page .brand {
    min-height: 46px;
  }

  .counter-page .brand-mark,
  .dashboard-page .brand-mark {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .counter-page .brand-copy strong,
  .dashboard-page .brand-copy strong {
    font-size: 14px;
  }

  .counter-page .brand-copy span,
  .dashboard-page .brand-copy span {
    font-size: 12px;
  }

  .counter-page .rail-nav,
  .dashboard-page .rail-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    min-width: 0;
    width: 100%;
  }

  .counter-page .nav-link,
  .dashboard-page .nav-link {
    min-height: 42px;
    justify-content: center;
    gap: 6px;
    padding: 0 8px;
    font-size: 12px;
  }

  .counter-page .nav-icon,
  .dashboard-page .nav-icon {
    width: 17px;
    height: 17px;
  }

  .counter-page .sync-status,
  .dashboard-page .sync-status {
    min-height: 44px;
    padding: 10px;
  }

  .counter-page .sync-status small,
  .dashboard-page .sync-status small,
  .counter-page .auth-card,
  .dashboard-page .auth-card,
  .counter-page .rail-note,
  .dashboard-page .rail-note {
    display: none;
  }

  .counter-page .app-main,
  .dashboard-page .app-main {
    padding: 12px;
  }

  .counter-page .command-bar,
  .dashboard-page .command-bar {
    margin-bottom: 10px;
    padding: 13px;
  }

  .counter-page .command-bar h1,
  .dashboard-page .command-bar h1 {
    font-size: clamp(27px, 8vw, 34px);
    line-height: 1.05;
  }

  .counter-page .topbar-copy,
  .dashboard-page .topbar-copy {
    display: none;
  }

  .counter-page .topbar-actions,
  .dashboard-page .topbar-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .counter-page .topbar-actions {
    grid-template-columns: 1fr;
  }

  .counter-page .topbar-actions .icon-button,
  .dashboard-page .topbar-actions .icon-button {
    width: 100%;
    min-height: 42px;
  }

  .counter-page .counter-workspace,
  .dashboard-page .dashboard-workspace {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .counter-page .desk-head,
  .counter-page .live-panel,
  .counter-page .session-setup,
  .counter-page .counter-goals,
  .dashboard-page .desk-head,
  .dashboard-page .trend-section,
  .dashboard-page .dashboard-control-panel,
  .dashboard-page .session-dashboard,
  .dashboard-page .chart-panel,
  .dashboard-page .negative-section {
    grid-column: 1 / -1;
  }

  .counter-page .desk-head,
  .dashboard-page .desk-head {
    order: 1;
    padding: 12px;
  }

  .counter-page .desk-head h2,
  .dashboard-page .desk-head h2 {
    font-size: 23px;
  }

  .counter-page .desk-meta,
  .dashboard-page .desk-meta {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 7px;
    padding-bottom: 1px;
  }

  .counter-page .desk-meta span,
  .dashboard-page .desk-meta span {
    flex: 0 0 auto;
    min-height: 27px;
    font-size: 10px;
  }

  .counter-page .session-setup {
    order: 2;
  }

  .counter-page .live-panel {
    order: 3;
    display: grid;
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 14px;
  }

  .counter-page .counter-card-head {
    grid-column: 1;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    padding-bottom: 11px;
  }

  .counter-page .market-symbol strong {
    font-size: 18px;
  }

  .counter-page .market-symbol small {
    display: none;
  }

  .counter-page .status-pill {
    min-height: 28px;
    padding: 0 9px;
    font-size: 11px;
  }

  .counter-page .counter-readout {
    order: 2;
    grid-column: 1;
    padding: 0;
  }

  .counter-page .quote-line {
    display: flex;
    font-size: 10px;
  }

  .counter-page .counter-workspace .live-value {
    font-size: clamp(43px, 15vw, 60px);
    line-height: 1;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .counter-page .time-row {
    display: flex;
    align-items: center;
    font-size: 13px;
  }

  .counter-page .time-row span:first-child {
    min-height: 28px;
    font-size: 14px;
  }

  .counter-page .live-panel .counter-controls {
    order: 3;
    grid-column: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .counter-page .primary-action {
    grid-column: 1 / -1;
    min-height: 50px;
    font-size: 15px;
  }

  .counter-page .live-panel .icon-button {
    width: 100%;
    min-height: 44px;
  }

  .counter-page .mode-switch {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 48px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .counter-page .goal-progress {
    order: 4;
    grid-column: 1;
    padding: 11px;
  }

  .counter-page .progress-label {
    display: flex;
    font-size: 10px;
  }

  .counter-page .goal-progress-meta,
  .counter-page .goal-progress-meta.muted {
    grid-template-columns: 1fr;
  }

  .counter-page .goal-progress-meta span {
    padding: 9px;
  }

  .counter-page .counter-metrics {
    order: 5;
    grid-column: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .counter-page .metric-tile {
    min-height: 78px;
    padding: 12px;
  }

  .counter-page .metric-tile strong {
    font-size: 20px;
  }

  .counter-page .session-setup {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
  }

  .counter-page .setup-heading {
    grid-column: 1 / -1;
    min-height: auto;
    padding: 0;
  }

  .counter-page .session-setup input,
  .counter-page .check-control {
    min-height: 42px;
  }

  .counter-page .check-control {
    justify-content: start;
  }

  .counter-page .counter-goals {
    order: 4;
    padding: 14px;
  }

  .counter-page .counter-goals .section-heading h2 {
    font-size: 21px;
  }

  .counter-page .counter-goals .section-heading p {
    display: none;
  }

  .counter-page .goal-list {
    grid-template-columns: 1fr;
  }

  .counter-page .goal-item {
    min-height: 86px;
    padding: 12px;
  }

  .dashboard-page .desk-head {
    order: 1;
  }

  .dashboard-page .trend-section {
    order: 2;
    padding: 14px;
  }

  .dashboard-page .dashboard-control-panel {
    order: 3;
    padding: 14px;
  }

  .dashboard-page .session-dashboard {
    order: 4;
    padding: 14px;
  }

  .dashboard-page .chart-panel {
    order: 5;
    padding: 14px;
  }

  .dashboard-page .negative-section {
    order: 6;
    padding: 14px;
  }

  .dashboard-page .trend-heading {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .dashboard-page .trend-controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
    padding: 8px;
  }

  .dashboard-page .trend-select-control {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    width: 100%;
  }

  .dashboard-page .trend-view-shell {
    width: 100%;
  }

  .dashboard-page .trend-select-control select {
    min-width: 0;
    width: 100%;
  }

  .dashboard-page .trend-view-control {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    border-radius: var(--radius);
  }

  .dashboard-page .trend-view-button {
    min-width: 0;
    width: 100%;
  }

  .dashboard-page .trend-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .dashboard-page .trend-kpis article {
    min-height: 76px;
    padding: 11px;
  }

  .dashboard-page .trend-progress-card {
    grid-column: 1 / -1;
  }

  .dashboard-page .trend-kpis strong {
    font-size: 18px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .dashboard-page .trend-chart-panel {
    min-height: auto;
    padding: 12px;
  }

  .dashboard-page .trend-chart-panel canvas,
  .dashboard-page .chart-panel canvas {
    height: 210px;
    min-height: 210px;
    margin-top: 10px;
  }

  .dashboard-page .dashboard-control-panel .settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .dashboard-page .dashboard-control-panel .settings-grid label:last-child {
    grid-column: 1 / -1;
  }

  .dashboard-page .settings-grid input {
    min-height: 42px;
  }

  .dashboard-page .session-dashboard .audit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .dashboard-page .session-dashboard .audit-grid article:first-child {
    grid-column: 1 / -1;
  }

  .dashboard-page .session-dashboard .audit-grid article {
    min-height: 76px;
    padding: 11px;
  }

  .dashboard-page .session-dashboard .audit-grid strong {
    font-size: 16px;
  }

  .dashboard-page .timeline-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-page .timeline-item {
    grid-template-columns: 1fr;
  }

  .dashboard-page .audit-range,
  .dashboard-page .timeline-range {
    grid-template-columns: 1fr;
  }

  .dashboard-page .timeline-duration {
    justify-self: start;
    text-align: left;
  }

  .dashboard-page .timeline-point {
    padding: 9px 10px;
    border: 1px solid rgba(245, 240, 228, .075);
  }

  .dashboard-page .cost-card {
    min-height: 118px;
  }

  .dashboard-page .sessions-section {
    order: 7;
    padding: 14px;
  }

  .dashboard-page .table-shell {
    border-radius: var(--radius);
  }

  .dashboard-page table {
    min-width: 860px;
  }
}

@media (max-width: 520px) {
  .counter-page .app-main,
  .dashboard-page .app-main {
    padding: 10px;
  }

  .counter-page .side-rail,
  .dashboard-page .side-rail {
    padding: 10px;
  }

  .counter-page .rail-nav,
  .dashboard-page .rail-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .counter-page .nav-link,
  .dashboard-page .nav-link {
    justify-content: flex-start;
    min-height: 40px;
  }

  .counter-page .command-bar,
  .dashboard-page .command-bar,
  .counter-page .desk-head,
  .dashboard-page .desk-head,
  .counter-page .live-panel,
  .counter-page .session-setup,
  .counter-page .counter-goals,
  .dashboard-page .trend-section,
  .dashboard-page .dashboard-control-panel,
  .dashboard-page .session-dashboard,
  .dashboard-page .chart-panel,
  .dashboard-page .negative-section,
  .dashboard-page .sessions-section {
    border-radius: 7px;
  }

  .counter-page .command-bar h1,
  .dashboard-page .command-bar h1 {
    font-size: 27px;
  }

  .counter-page .desk-head h2,
  .dashboard-page .desk-head h2 {
    font-size: 21px;
  }

  .counter-page .counter-workspace .live-value {
    font-size: clamp(40px, 16vw, 52px);
  }

  .counter-page .live-panel .counter-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .counter-page .primary-action,
  .counter-page .mode-switch {
    grid-column: 1 / -1;
  }

  .counter-page .mode-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .counter-page .counter-metrics,
  .dashboard-page .trend-kpis,
  .dashboard-page .dashboard-control-panel .settings-grid,
  .dashboard-page .session-dashboard .audit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .counter-page .session-setup {
    grid-template-columns: 1fr;
  }

  .dashboard-page .trend-progress-card,
  .dashboard-page .dashboard-control-panel .settings-grid label:last-child {
    grid-column: 1 / -1;
  }

  .dashboard-page .panel-heading h2,
  .dashboard-page .section-heading h2,
  .dashboard-page .negative-section h2 {
    font-size: 20px;
  }
}

@media (max-width: 360px) {
  .counter-page .live-panel .counter-controls,
  .counter-page .counter-metrics,
  .counter-page .mode-switch,
  .dashboard-page .trend-kpis,
  .dashboard-page .dashboard-control-panel .settings-grid,
  .dashboard-page .session-dashboard .audit-grid {
    grid-template-columns: 1fr;
  }

  .counter-page .primary-action,
  .counter-page .mode-switch,
  .dashboard-page .trend-progress-card,
  .dashboard-page .dashboard-control-panel .settings-grid label:last-child {
    grid-column: auto;
  }
}

/* Mobile Priority Cut */
@media (max-width: 860px) {
  .counter-page .side-rail,
  .dashboard-page .side-rail {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 9px 10px;
  }

  .counter-page .brand,
  .dashboard-page .brand {
    grid-column: 1;
    min-height: 40px;
    gap: 9px;
  }

  .counter-page .brand-mark,
  .dashboard-page .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    font-size: 15px;
  }

  .counter-page .brand-copy,
  .dashboard-page .brand-copy {
    gap: 0;
  }

  .counter-page .brand-copy strong,
  .dashboard-page .brand-copy strong {
    font-size: 13px;
    line-height: 1.15;
  }

  .counter-page .brand-copy span,
  .dashboard-page .brand-copy span {
    font-size: 11px;
  }

  .counter-page .sync-status,
  .dashboard-page .sync-status {
    grid-column: 2;
    width: 40px;
    min-height: 40px;
    height: 40px;
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0;
    border-radius: 999px;
  }

  .counter-page .sync-status div,
  .dashboard-page .sync-status div {
    display: none;
  }

  .counter-page .sync-dot,
  .dashboard-page .sync-dot {
    width: 11px;
    height: 11px;
  }

  .counter-page .rail-nav,
  .dashboard-page .rail-nav {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
  }

  .counter-page .rail-nav a[href="index.html"],
  .dashboard-page .rail-nav a[href="index.html"] {
    display: none;
  }

  .counter-page .nav-link,
  .dashboard-page .nav-link {
    min-height: 38px;
    justify-content: center;
    padding: 0 10px;
    font-size: 13px;
  }

  .counter-page .command-bar,
  .counter-page .desk-head,
  .dashboard-page .command-bar,
  .dashboard-page .desk-head {
    display: none;
  }

  .counter-page .app-main,
  .dashboard-page .app-main {
    padding-top: 10px;
  }

  .counter-page .live-panel {
    padding-top: 13px;
  }

  .counter-page .counter-card-head {
    padding-bottom: 9px;
  }

  .counter-page .market-symbol .eyebrow {
    font-size: 10px;
  }

  .counter-page .market-symbol strong {
    font-size: 17px;
  }

  .counter-page .counter-readout {
    gap: 6px;
  }

  .counter-page .counter-workspace .live-value {
    font-size: clamp(42px, 14vw, 56px);
  }

  .counter-page .time-row {
    margin-top: 2px;
  }

  .counter-page .primary-action {
    min-height: 48px;
  }

  .counter-page .live-panel .icon-button {
    min-height: 42px;
  }

  .counter-page .mode-switch {
    min-height: 44px;
  }

  .counter-page .goal-progress,
  .counter-page .counter-metrics {
    margin-top: 2px;
  }

  .dashboard-page .trend-section {
    margin-top: 0;
  }
}

/* Desktop Priority Cut */
@media (min-width: 861px) {
  .counter-page .desk-head {
    display: none;
  }

  .counter-page .command-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 74px;
    margin-bottom: 14px;
    padding: 13px 16px;
    border-color: rgba(245, 240, 228, .09);
    border-radius: 13px;
    background:
      linear-gradient(90deg, rgba(53, 214, 139, .07), transparent 31%),
      linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)),
      rgba(5, 7, 8, .86);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .045),
      0 18px 48px rgba(0, 0, 0, .18);
  }

  .counter-page .command-bar > div:first-child {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "eyebrow eyebrow"
      "title meta";
    align-items: end;
    column-gap: 16px;
    row-gap: 8px;
    min-width: 0;
  }

  .counter-page .command-bar .eyebrow {
    grid-area: eyebrow;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(239, 207, 131, .82);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .07em;
    line-height: 1.1;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .counter-page .command-bar h1 {
    grid-area: title;
    margin: 0;
    color: rgba(245, 240, 228, .95);
    font-size: clamp(21px, 1.65vw, 29px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .counter-page .topbar-copy {
    grid-area: meta;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    max-width: none;
    min-width: 0;
    margin: 0;
    line-height: 1;
  }

  .counter-page .topbar-copy span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border: 1px solid rgba(245, 240, 228, .08);
    border-radius: 999px;
    background: rgba(255, 255, 255, .028);
    color: rgba(245, 240, 228, .56);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .counter-page .topbar-actions .icon-button {
    min-height: 42px;
    padding-inline: 14px;
    border-color: rgba(245, 240, 228, .105);
    border-radius: 10px;
    background: rgba(255, 255, 255, .026);
    color: rgba(245, 240, 228, .7);
    font-size: 13px;
  }

  .counter-page .topbar-actions .icon-button svg {
    width: 15px;
    height: 15px;
  }

  .counter-page .app-main {
    padding-top: 24px;
  }

  .counter-page .counter-workspace {
    align-items: stretch;
  }

  .counter-page .live-panel {
    order: 2;
  }

  .counter-page .counter-goals {
    order: 3;
  }

  .counter-page .session-setup {
    order: 1;
    margin-top: 0;
    padding: 9px 10px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .032), rgba(255, 255, 255, .01)),
      rgba(5, 7, 8, .72);
  }

  .counter-page .setup-heading {
    min-height: 38px;
  }

  .counter-page .setup-heading .eyebrow {
    display: none;
  }

  .counter-page .setup-heading strong {
    color: rgba(245, 240, 228, .66);
    font-size: 12px;
    text-transform: uppercase;
  }

  .counter-page .session-setup span,
  .counter-page .check-control span {
    font-size: 10px;
  }

  .counter-page .session-setup input,
  .counter-page .check-control {
    min-height: 36px;
  }

  @media (max-width: 1180px) {
    .counter-page .topbar-copy {
      display: none;
    }
  }

  .dashboard-page .command-bar {
    min-height: 58px;
    margin-bottom: 12px;
    padding: 10px 14px;
  }

  .dashboard-page .command-bar .eyebrow,
  .dashboard-page .topbar-copy,
  .dashboard-page .desk-head {
    display: none;
  }

  .dashboard-page .command-bar h1 {
    margin: 0;
    font-size: clamp(22px, 2vw, 28px);
  }

  .dashboard-page .topbar-actions .icon-button {
    min-height: 38px;
  }
}

/* Worktime Tracker */
.worktime-page .worktime-setup {
  grid-template-columns: minmax(150px, .9fr) repeat(5, minmax(116px, 1fr)) minmax(126px, .7fr) minmax(150px, .8fr);
}

.worktime-page .command-bar {
  align-items: center;
  border-color: rgba(53, 214, 139, .14);
  background:
    linear-gradient(90deg, rgba(53, 214, 139, .08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .014)),
    rgba(7, 10, 10, .88);
}

.worktime-page .command-bar h1 {
  font-size: clamp(25px, 2vw, 33px);
}

.worktime-page .topbar-copy {
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: none;
  color: rgba(245, 240, 228, .58);
}

.worktime-page .topbar-copy span {
  border-color: rgba(53, 214, 139, .14);
  background: rgba(53, 214, 139, .045);
  color: rgba(226, 255, 242, .68);
}

.worktime-page .worktime-workspace {
  gap: 16px;
  align-items: stretch;
}

.worktime-page .desk-head {
  order: 0;
  grid-column: 1 / -1;
  border-color: rgba(53, 214, 139, .12);
  background:
    linear-gradient(90deg, rgba(53, 214, 139, .07), transparent 42%),
    rgba(5, 7, 8, .78);
}

.worktime-page .desk-head h2 {
  font-size: clamp(22px, 2vw, 30px);
}

.worktime-page .worktime-session-summary {
  order: 1;
  grid-column: 1 / -1;
  grid-template-columns: minmax(150px, .68fr) repeat(3, minmax(132px, 1fr)) minmax(118px, .62fr) minmax(142px, .72fr);
  gap: 10px;
  align-items: end;
  padding: 10px;
  border-color: rgba(53, 214, 139, .12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012)),
    rgba(6, 9, 10, .82);
}

.worktime-page .worktime-session-summary .setup-heading {
  min-height: 44px;
  padding-inline: 8px;
}

.worktime-page .worktime-session-summary .setup-heading strong {
  color: rgba(245, 240, 228, .9);
  font-size: 15px;
}

.worktime-page .worktime-session-summary label,
.worktime-page .worktime-session-summary .check-control {
  min-width: 0;
  gap: 7px;
}

.worktime-page .worktime-session-summary span,
.worktime-page .worktime-session-summary .check-control span {
  color: rgba(245, 240, 228, .52);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.worktime-page .worktime-session-summary input {
  min-height: 40px;
  border-color: rgba(53, 214, 139, .16);
  background: rgba(0, 0, 0, .32);
  color: var(--porcelain);
  font-size: 16px;
  font-weight: 850;
}

.worktime-page .worktime-session-summary .check-control {
  min-height: 40px;
  justify-content: center;
  border-color: rgba(53, 214, 139, .15);
  background: rgba(53, 214, 139, .045);
}

.worktime-page .worktime-session-summary .check-control input {
  accent-color: var(--emerald);
}

.worktime-page .worktime-session-save {
  min-width: 0;
  min-height: 40px;
  align-self: end;
  justify-content: center;
  border-color: rgba(53, 214, 139, .26);
  background: rgba(53, 214, 139, .075);
  color: rgba(181, 255, 221, .92);
  white-space: nowrap;
}

.worktime-page .worktime-param-card {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 58px;
  padding: 11px 12px;
  border: 1px solid rgba(245, 240, 228, .09);
  border-radius: 11px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)),
    rgba(0, 0, 0, .22);
}

.worktime-page .worktime-param-card span {
  color: rgba(239, 207, 131, .8);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.worktime-page .worktime-param-card strong {
  color: rgba(245, 240, 228, .93);
  font-size: 16px;
  line-height: 1.05;
}

.worktime-page .worktime-param-card small {
  color: rgba(245, 240, 228, .52);
  font-size: 12px;
  line-height: 1.35;
}

.worktime-page .worktime-live-panel {
  order: 2;
  grid-column: span 8;
  min-height: 510px;
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(300px, 1.04fr);
  align-content: start;
  gap: 16px;
  padding: clamp(20px, 2vw, 26px);
  border-color: rgba(53, 214, 139, .24);
  background:
    linear-gradient(rgba(245, 240, 228, .026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 240, 228, .02) 1px, transparent 1px),
    radial-gradient(circle at 96% 0%, rgba(53, 214, 139, .15), transparent 30%),
    linear-gradient(135deg, rgba(8, 13, 14, .98), rgba(10, 15, 15, .96) 54%, rgba(7, 8, 8, .98));
}

.worktime-page .worktime-live-panel .counter-card-head {
  grid-column: 1 / -1;
}

.worktime-page .worktime-live-panel .market-symbol .eyebrow,
.worktime-page .worktime-live-panel .live-value {
  color: var(--emerald);
}

.worktime-page .worktime-live-panel .counter-readout {
  grid-column: 1;
  min-width: 0;
  align-self: start;
}

.worktime-page .worktime-live-panel .live-value {
  font-size: clamp(54px, 4.9vw, 82px);
  line-height: .95;
}

.worktime-page .worktime-live-panel .live-value::first-letter {
  color: var(--emerald);
}

.worktime-page .worktime-live-panel .goal-progress {
  grid-column: 2;
  align-self: stretch;
  padding: 14px;
  border: 1px solid rgba(53, 214, 139, .12);
  border-radius: calc(var(--radius) - 4px);
  background:
    radial-gradient(circle at 100% 0%, rgba(53, 214, 139, .08), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012)),
    rgba(0, 0, 0, .18);
}

.worktime-page .worktime-live-panel .metric-grid {
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.worktime-page .worktime-live-panel .counter-controls {
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, max-content);
  justify-content: start;
  padding-top: 4px;
}

.worktime-page .worktime-live-panel .primary-action {
  min-width: 168px;
}

.worktime-page .worktime-activity-visual {
  grid-column: 1 / -1;
  width: min(96%, 980px);
  justify-self: center;
  display: grid;
  gap: 10px;
  min-height: 218px;
  padding: 14px;
  border: 1px solid rgba(53, 214, 139, .13);
  border-radius: 12px;
  background:
    linear-gradient(rgba(245, 240, 228, .024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 240, 228, .018) 1px, transparent 1px),
    radial-gradient(circle at 100% 0%, rgba(53, 214, 139, .08), transparent 38%),
    rgba(0, 0, 0, .2);
  background-size: 64px 64px, 64px 64px, auto, auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.worktime-page .worktime-activity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.worktime-page .worktime-activity-head div {
  display: grid;
  gap: 2px;
}

.worktime-page .worktime-activity-head span {
  color: rgba(239, 207, 131, .82);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.worktime-page .worktime-activity-head strong {
  color: rgba(245, 240, 228, .9);
  font-size: 18px;
  line-height: 1.05;
}

.worktime-page .worktime-activity-head small {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(53, 214, 139, .2);
  border-radius: 999px;
  background: rgba(53, 214, 139, .07);
  color: rgba(181, 255, 221, .82);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.worktime-page .worktime-activity-shell {
  min-height: 170px;
  overflow: hidden;
  border: 1px solid rgba(245, 240, 228, .075);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .018), rgba(255, 255, 255, .004)),
    rgba(2, 5, 6, .42);
}

.worktime-page .worktime-activity-empty {
  min-height: 170px;
  display: grid;
  place-items: center;
  padding: 18px;
  color: rgba(245, 240, 228, .52);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.worktime-page .worktime-live-chart {
  width: 100%;
  min-height: 170px;
  display: block;
}

.worktime-page .worktime-chart-grid line {
  stroke: rgba(245, 240, 228, .08);
  stroke-width: 1;
}

.worktime-page .worktime-chart-grid text,
.worktime-page .worktime-chart-axis text {
  fill: rgba(245, 240, 228, .58);
  font-size: 11px;
  font-weight: 850;
}

.worktime-page .worktime-chart-axis text:last-child {
  fill: rgba(181, 255, 221, .82);
  font-weight: 900;
}

.worktime-page .worktime-chart-pause-band {
  fill: rgba(239, 207, 131, .08);
}

.worktime-page .worktime-chart-area {
  fill: url(#worktimeChartFill);
}

.worktime-page .worktime-chart-line {
  fill: none;
  stroke: var(--emerald);
  stroke-width: 2.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 10px 22px rgba(53, 214, 139, .2));
}

.worktime-page .worktime-chart-point {
  fill: var(--emerald);
  stroke: rgba(5, 7, 8, .92);
  stroke-width: 2.5;
}

.worktime-page .worktime-goals {
  border-color: rgba(53, 214, 139, .14);
}

.worktime-page .worktime-audit-panel {
  order: 2;
  grid-column: span 4;
  min-height: 510px;
  padding: 18px;
  align-content: start;
  border-color: rgba(245, 240, 228, .1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012)),
    rgba(8, 10, 11, .84);
}

.worktime-page .worktime-audit-panel .audit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.worktime-page .worktime-audit-panel .audit-grid article:first-child {
  grid-column: 1 / -1;
}

.worktime-page .worktime-audit-panel .timeline-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

.worktime-page .worktime-audit-panel .timeline-list {
  max-height: 188px;
  overflow: auto;
}

.worktime-page .worktime-audit-panel .timeline-card {
  padding: 12px;
}

.worktime-table-shell table {
  min-width: 1120px;
}

.worktime-table-shell .asset-delete-button {
  border-color: rgba(232, 113, 99, .24);
  background: rgba(232, 113, 99, .07);
  color: #ffc1ba;
}

.worktime-page .worktime-audit-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-color: rgba(245, 240, 228, .075);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .028), rgba(255, 255, 255, .008)),
    rgba(6, 8, 9, .78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 18px 58px rgba(0, 0, 0, .2);
}

.worktime-page .worktime-audit-panel .panel-heading {
  margin: 0;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(245, 240, 228, .07);
}

.worktime-page .worktime-audit-panel .panel-heading h2 {
  color: rgba(245, 240, 228, .9);
  font-size: clamp(18px, 1.35vw, 22px);
  line-height: 1.05;
}

.worktime-page .worktime-audit-panel .panel-heading .eyebrow {
  color: rgba(239, 207, 131, .76);
  font-size: 10px;
  letter-spacing: .04em;
}

.worktime-page .worktime-audit-panel .audit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(245, 240, 228, .075);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .022), rgba(255, 255, 255, .006)),
    rgba(0, 0, 0, .18);
}

.worktime-page .worktime-audit-panel .audit-grid article {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(106px, .72fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border-left: 0;
  border-bottom: 1px solid rgba(245, 240, 228, .06);
  background: transparent;
}

.worktime-page .worktime-audit-panel .audit-grid article:last-child {
  border-bottom: 0;
}

.worktime-page .worktime-audit-panel .audit-grid article:first-child {
  grid-column: auto;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 8px;
  padding-bottom: 13px;
}

.worktime-page .worktime-audit-panel .audit-grid span {
  color: rgba(245, 240, 228, .43);
  font-size: 10px;
  letter-spacing: .025em;
}

.worktime-page .worktime-audit-panel .audit-grid strong {
  color: rgba(245, 240, 228, .88);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.05;
  text-align: right;
  white-space: nowrap;
}

.worktime-page .worktime-audit-panel .audit-range {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.worktime-page .worktime-audit-panel .audit-point {
  min-height: 60px;
  padding: 10px 11px;
  border: 1px solid rgba(245, 240, 228, .065);
  border-radius: 10px;
  background: rgba(255, 255, 255, .018);
}

.worktime-page .worktime-audit-panel .audit-point small {
  color: rgba(239, 207, 131, .68);
  font-size: 9px;
  letter-spacing: .03em;
}

.worktime-page .worktime-audit-panel .audit-point strong {
  font-size: 14px;
  text-align: left;
}

.worktime-page .worktime-audit-panel .audit-point em {
  color: rgba(245, 240, 228, .5);
  font-size: 12px;
}

.worktime-page .worktime-audit-panel .timeline-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 0;
}

.worktime-page .worktime-audit-panel .timeline-grid section {
  min-width: 0;
}

.worktime-page .worktime-audit-panel .timeline-grid h3 {
  margin: 0 0 8px;
  color: rgba(245, 240, 228, .78);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.15;
}

.worktime-page .worktime-audit-panel .timeline-list {
  max-height: 162px;
  gap: 7px;
  padding-right: 4px;
}

.worktime-page .worktime-audit-panel .timeline-item,
.worktime-page .worktime-audit-panel .timeline-empty {
  padding: 10px 11px;
  border-color: rgba(245, 240, 228, .07);
  border-radius: 10px;
  background: rgba(0, 0, 0, .16);
}

.worktime-page .worktime-audit-panel .timeline-head {
  gap: 8px;
}

.worktime-page .worktime-audit-panel .timeline-label {
  color: rgba(245, 240, 228, .58);
  font-size: 10px;
}

.worktime-page .worktime-audit-panel .timeline-duration {
  min-width: 70px;
  min-height: 22px;
  padding: 0 8px;
  color: rgba(245, 240, 228, .64);
  font-size: 11px;
  font-weight: 800;
}

.worktime-page .worktime-audit-panel .timeline-range {
  gap: 6px;
}

.worktime-page .worktime-audit-panel .timeline-point {
  min-height: 52px;
  padding: 9px;
  border-color: rgba(245, 240, 228, .055);
  border-radius: 9px;
}

.worktime-page .worktime-audit-panel .timeline-point small {
  font-size: 9px;
}

.worktime-page .worktime-audit-panel .timeline-point strong {
  font-size: 12px;
}

.worktime-page .worktime-audit-panel .timeline-point em {
  font-size: 11px;
}

.dashboard-switcher {
  max-width: 1540px;
  margin: 0 auto 18px;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid rgba(245, 240, 228, .1);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(53, 214, 139, .075), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)),
    rgba(5, 7, 8, .86);
  box-shadow: 0 24px 82px rgba(0, 0, 0, .24);
}

.dashboard-switcher .section-heading {
  max-width: none;
  margin-bottom: 18px;
}

.dashboard-switcher .section-heading h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 3vw, 42px);
}

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

.dashboard-choice-card {
  min-height: 190px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(245, 240, 228, .1);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012)),
    rgba(0, 0, 0, .2);
  color: var(--porcelain);
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.dashboard-choice-card:hover,
.dashboard-choice-card.is-active {
  transform: translateY(-1px);
  border-color: rgba(53, 214, 139, .34);
  background:
    linear-gradient(180deg, rgba(53, 214, 139, .08), rgba(255, 255, 255, .012)),
    rgba(0, 0, 0, .2);
}

.dashboard-choice-card span {
  color: var(--champagne);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-choice-card strong {
  max-width: 520px;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.05;
}

.dashboard-choice-card small {
  color: rgba(245, 240, 228, .58);
  font-size: 14px;
  line-height: 1.5;
}

.dashboard-page .worktime-dashboard-workspace {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.dashboard-page .worktime-dashboard-settings {
  order: 2;
  grid-column: 1 / -1;
  grid-template-columns: minmax(170px, .8fr) repeat(5, minmax(118px, 1fr)) minmax(120px, .65fr) minmax(150px, .75fr);
  align-items: end;
  gap: 10px;
  padding: 12px;
  border-color: rgba(53, 214, 139, .16);
  background:
    linear-gradient(90deg, rgba(53, 214, 139, .055), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012)),
    rgba(8, 10, 11, .84);
}

.dashboard-page .worktime-dashboard-settings .setup-heading {
  display: grid;
  align-content: center;
  gap: 2px;
  min-height: 44px;
  padding: 0 8px;
}

.dashboard-page .worktime-dashboard-settings .setup-heading strong {
  color: var(--porcelain);
  font-size: 15px;
}

.dashboard-page .worktime-dashboard-settings label,
.dashboard-page .worktime-dashboard-settings .check-control {
  gap: 6px;
}

.dashboard-page .worktime-dashboard-settings span {
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.dashboard-page .worktime-dashboard-settings input,
.dashboard-page .worktime-dashboard-settings .check-control {
  min-height: 40px;
}

.dashboard-page .worktime-summary-panel {
  order: 1;
  grid-column: 1 / -1;
}

.dashboard-page .worktime-dashboard-audit {
  order: 3;
  grid-column: span 8;
}

.dashboard-page .worktime-dashboard-goals {
  order: 4;
  grid-column: span 4;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(245, 240, 228, .1);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)),
    rgba(8, 10, 11, .86);
}

.dashboard-page .worktime-dashboard-goals .section-heading {
  margin-bottom: 12px;
}

.dashboard-page .worktime-dashboard-goals .section-heading h2 {
  font-size: 22px;
}

.dashboard-page .worktime-dashboard-goals .section-heading p {
  display: none;
}

.dashboard-page .worktime-dashboard-goals .goal-list {
  grid-template-columns: 1fr;
  gap: 10px;
}

.dashboard-page .worktime-dashboard-goals .goal-item {
  min-height: 90px;
  padding: 12px;
}

.dashboard-page .worktime-dashboard-sessions {
  order: 5;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(245, 240, 228, .1);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012)),
    rgba(8, 10, 11, .84);
  box-shadow: 0 24px 82px rgba(0, 0, 0, .24);
}

@media (max-width: 1280px) {
  .worktime-page .worktime-setup,
  .worktime-page .worktime-session-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .worktime-page .worktime-live-panel,
  .worktime-page .worktime-audit-panel,
  .dashboard-page .worktime-dashboard-settings,
  .dashboard-page .worktime-dashboard-audit,
  .dashboard-page .worktime-dashboard-goals {
    grid-column: 1 / -1;
  }

  .dashboard-page .worktime-dashboard-settings {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .worktime-page .worktime-live-panel {
    grid-template-columns: 1fr;
  }

  .worktime-page .worktime-live-panel .counter-readout,
  .worktime-page .worktime-live-panel .goal-progress {
    grid-column: 1 / -1;
  }

  .worktime-page .worktime-session-summary .setup-heading {
    grid-column: 1 / -1;
    min-height: 44px;
  }
}

@media (max-width: 860px) {
  .worktime-page .worktime-setup,
  .worktime-page .worktime-session-summary,
  .dashboard-page .worktime-dashboard-settings,
  .dashboard-choice-grid,
  .dashboard-page .worktime-kpis {
    grid-template-columns: 1fr;
  }

  .worktime-page .worktime-live-panel .counter-controls {
    grid-template-columns: 1fr;
  }

  .worktime-page .worktime-live-panel .metric-grid,
  .worktime-page .worktime-audit-panel .audit-grid {
    grid-template-columns: 1fr;
  }

  .worktime-page .worktime-audit-panel .audit-grid article:first-child {
    grid-column: auto;
  }

  .dashboard-switcher,
  .dashboard-page .worktime-dashboard-sessions {
    padding: 14px;
  }

  .dashboard-choice-card {
    min-height: 160px;
    padding: 18px;
  }

  .dashboard-choice-card strong {
    font-size: 24px;
  }
}

@media (max-width: 520px) {
  .dashboard-switcher,
  .dashboard-page .worktime-dashboard-sessions {
    border-radius: 7px;
  }
}

.assets-page .side-rail,
.assets-page .command-bar,
.assets-page .panel,
.assets-page .table-shell,
.assets-page .asset-disclaimer,
.assets-page .desk-head {
  border-color: rgba(245, 240, 228, .1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)),
    rgba(8, 10, 11, .88);
  box-shadow: 0 24px 82px rgba(0, 0, 0, .24);
}

.assets-page .app-main {
  padding: 24px;
}

.assets-page .command-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(245, 240, 228, .1);
  border-radius: var(--radius);
}

.assets-page .command-bar h1 {
  margin-bottom: 2px;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.05;
  font-weight: 900;
}

.assets-page .topbar-copy {
  max-width: 760px;
  color: rgba(245, 240, 228, .62);
  font-size: 13px;
  line-height: 1.45;
}

.asset-status-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(245, 240, 228, .12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .035);
  color: rgba(245, 240, 228, .74);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
}

.asset-status-pill.is-live {
  border-color: rgba(53, 214, 139, .32);
  background: rgba(53, 214, 139, .08);
  color: var(--emerald);
}

.asset-status-pill.is-cache,
.asset-status-pill.is-loading {
  border-color: rgba(239, 207, 131, .34);
  background: rgba(239, 207, 131, .08);
  color: var(--gold);
}

.asset-status-pill.is-error {
  border-color: rgba(232, 113, 99, .34);
  background: rgba(232, 113, 99, .08);
  color: var(--ruby);
}

.assets-workspace {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.assets-page .assets-head,
.asset-kpi-grid,
.asset-market-panel,
.asset-table-panel,
.asset-disclaimer {
  grid-column: 1 / -1;
}

.assets-page .assets-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(245, 240, 228, .1);
  border-radius: var(--radius);
}

.assets-page .assets-head h2 {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 30px);
}

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

.asset-kpi,
.metal-price-card {
  min-height: 116px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  padding: 15px;
  border: 1px solid rgba(245, 240, 228, .1);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)),
    rgba(5, 6, 7, .74);
}

.asset-kpi.primary {
  border-color: rgba(239, 207, 131, .28);
  background:
    linear-gradient(135deg, rgba(239, 207, 131, .12), rgba(255, 255, 255, .018)),
    rgba(5, 6, 7, .78);
}

.asset-kpi span,
.metal-price-card span,
.asset-form-grid span {
  color: rgba(245, 240, 228, .5);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.asset-kpi strong,
.metal-price-card strong {
  color: var(--porcelain);
  font-size: clamp(18px, 1.7vw, 25px);
  line-height: 1.05;
  font-weight: 900;
}

.asset-kpi.is-positive strong {
  color: var(--emerald);
}

.asset-kpi.is-negative strong {
  color: var(--ruby);
}

.asset-kpi.is-neutral strong {
  color: var(--porcelain);
}

.asset-market-panel {
  padding: 18px;
}

.metal-price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.metal-price-card small,
.metal-price-card em {
  color: rgba(245, 240, 228, .58);
  font-size: 12px;
  font-style: normal;
}

.metal-price-card b {
  color: var(--porcelain);
  font-weight: 850;
}

.metal-price-card.is-up em {
  color: var(--emerald);
}

.metal-price-card.is-down em {
  color: var(--ruby);
}

.metal-price-card.is-unavailable {
  opacity: .72;
}

.metal-price-card {
  cursor: pointer;
}

.metal-price-card:focus-visible {
  outline: 2px solid rgba(239, 207, 131, .72);
  outline-offset: 3px;
}

.asset-chart-panel {
  grid-column: span 8;
  padding: 18px;
  min-width: 0;
}

.asset-chart-panel canvas {
  width: 100%;
  height: 320px;
  display: block;
  margin-top: 14px;
  border: 1px solid rgba(245, 240, 228, .09);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .24);
}

.asset-metal-breakdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.asset-metal-summary {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(245, 240, 228, .09);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .22);
  cursor: pointer;
}

.asset-metal-summary.is-active {
  border-color: rgba(239, 207, 131, .42);
  background: rgba(239, 207, 131, .08);
}

.asset-metal-summary span {
  color: rgba(245, 240, 228, .48);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.asset-metal-summary strong {
  color: var(--porcelain);
  font-size: 17px;
  line-height: 1.1;
}

.asset-metal-summary small,
.asset-metal-summary em {
  color: rgba(245, 240, 228, .58);
  font-size: 11px;
  font-style: normal;
}

.asset-form-panel {
  grid-column: span 4;
  padding: 18px;
}

.asset-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

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

.asset-form-grid label.wide,
.asset-form-actions {
  grid-column: 1 / -1;
}

.asset-form-grid input,
.asset-form-grid select,
.asset-form-grid textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(245, 240, 228, .11);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .28);
  color: var(--porcelain);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  outline: none;
}

.asset-form-grid input,
.asset-form-grid select {
  padding: 0 12px;
}

.asset-form-grid textarea {
  min-height: 82px;
  padding: 12px;
  resize: vertical;
}

.asset-form-grid input:focus,
.asset-form-grid select:focus,
.asset-form-grid textarea:focus {
  border-color: rgba(239, 207, 131, .52);
  box-shadow: 0 0 0 3px rgba(239, 207, 131, .1);
}

.asset-form-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}

.asset-form-actions p {
  margin: 0;
  color: rgba(245, 240, 228, .58);
  font-size: 12px;
  line-height: 1.45;
}

.asset-table-panel {
  grid-column: span 8;
  min-width: 0;
}

.asset-table-shell {
  margin-top: 12px;
  overflow-x: auto;
}

.asset-metal-holdings {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.asset-holding-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(245, 240, 228, .09);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .2);
}

.asset-holding-card header {
  display: grid;
  gap: 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(245, 240, 228, .07);
}

.asset-holding-card header span {
  color: rgba(245, 240, 228, .48);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.asset-holding-card header strong {
  color: var(--porcelain);
  font-size: 16px;
}

.asset-holding-card p {
  margin: 0;
  color: rgba(245, 240, 228, .48);
  font-size: 12px;
}

.asset-holding-row {
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(245, 240, 228, .06);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .024);
  cursor: pointer;
}

.asset-holding-row strong {
  color: var(--porcelain);
  font-size: 12px;
}

.asset-holding-row span,
.asset-holding-row em,
.asset-holding-row small {
  color: rgba(245, 240, 228, .58);
  font-size: 11px;
  font-style: normal;
}

.asset-table-shell table {
  min-width: 1180px;
}

.asset-row-name {
  display: block;
  color: var(--porcelain);
  font-size: 13px;
}

.asset-row-meta {
  display: block;
  max-width: 260px;
  margin-top: 4px;
  color: rgba(245, 240, 228, .48);
  font-size: 11px;
  line-height: 1.35;
}

.amount-neutral {
  color: rgba(245, 240, 228, .72);
}

.asset-disclaimer {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(239, 207, 131, .18);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(239, 207, 131, .075), transparent 42%),
    rgba(8, 10, 11, .86);
}

.asset-disclaimer strong {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.asset-disclaimer p {
  max-width: 1080px;
  margin: 0;
  color: rgba(245, 240, 228, .64);
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 1280px) {
  .asset-kpi-grid,
  .metal-price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .asset-chart-panel,
  .asset-form-panel,
  .asset-table-panel {
    grid-column: 1 / -1;
  }

  .asset-metal-breakdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .asset-metal-holdings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .assets-page .app-main {
    padding: 14px;
  }

  .assets-page .command-bar,
  .asset-form-actions {
    grid-template-columns: 1fr;
  }

  .assets-page .assets-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .asset-status-pill {
    justify-content: flex-start;
    white-space: normal;
  }

  .asset-kpi-grid,
  .metal-price-grid,
  .asset-metal-breakdown,
  .asset-metal-holdings,
  .asset-form-grid {
    grid-template-columns: 1fr;
  }

  .asset-form-grid label,
  .asset-form-grid label.wide {
    grid-column: 1;
  }

  .asset-form-actions .icon-button {
    width: 100%;
    justify-content: center;
  }
}

/* Assets page design refresh */
body.assets-page {
  background:
    linear-gradient(135deg, #050706 0%, #081016 46%, #10100d 100%);
}

body.assets-page::before {
  background:
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .014) 1px, transparent 1px),
    linear-gradient(135deg, rgba(18, 35, 52, .22), transparent 44%, rgba(215, 181, 109, .055));
  background-size: 92px 92px, 92px 92px, auto;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .82), rgba(0, 0, 0, .22));
}

.assets-page .app-main {
  max-width: 1680px;
  padding: clamp(18px, 2.2vw, 34px);
}

.assets-page .side-rail {
  background:
    linear-gradient(180deg, rgba(16, 25, 31, .72), rgba(7, 8, 7, .92)),
    rgba(7, 8, 7, .92);
  box-shadow: 18px 0 60px rgba(0, 0, 0, .2);
}

.assets-page .command-bar,
.assets-page .assets-head,
.assets-page .panel,
.assets-page .table-shell,
.assets-page .asset-disclaimer {
  border-color: rgba(245, 240, 228, .105);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .014)),
    rgba(8, 10, 11, .9);
  box-shadow: 0 18px 70px rgba(0, 0, 0, .24);
}

.assets-page .command-bar {
  min-height: 132px;
  padding: clamp(20px, 2.2vw, 30px);
  margin-bottom: 24px;
  border-color: rgba(215, 181, 109, .16);
  background:
    linear-gradient(135deg, rgba(16, 31, 45, .72), rgba(10, 11, 12, .78) 46%, rgba(215, 181, 109, .055)),
    rgba(5, 6, 7, .92);
}

.assets-page .command-bar > div:first-child {
  display: grid;
  gap: 8px;
  align-content: center;
}

.assets-page .command-bar .eyebrow {
  margin: 0;
}

.assets-page .command-bar h1 {
  margin: 0;
  font-size: clamp(36px, 4vw, 62px);
  line-height: 1.02;
}

.assets-page .topbar-copy {
  margin: 2px 0 0;
  max-width: 840px;
  color: rgba(245, 240, 228, .7);
  font-size: 14px;
  line-height: 1.55;
}

.asset-status-pill {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.assets-workspace {
  gap: 16px;
  align-items: stretch;
}

.assets-page .assets-head {
  padding: 18px 20px;
}

.assets-page .assets-head h2 {
  font-size: clamp(28px, 2.6vw, 42px);
}

.assets-page .desk-meta span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(245, 240, 228, .09);
  border-radius: 999px;
  background: rgba(255, 255, 255, .025);
  color: rgba(245, 240, 228, .62);
  font-size: 12px;
  font-weight: 850;
}

.asset-kpi-grid {
  gap: 14px;
}

.asset-kpi {
  position: relative;
  min-height: 126px;
  overflow: hidden;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01)),
    rgba(6, 8, 9, .86);
}

.asset-kpi::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, rgba(245, 240, 228, .18), transparent 65%);
}

.asset-kpi.primary {
  border-color: rgba(239, 207, 131, .34);
  background:
    linear-gradient(135deg, rgba(239, 207, 131, .135), rgba(12, 15, 18, .82) 54%),
    rgba(6, 8, 9, .9);
}

.asset-kpi.primary::before {
  background: linear-gradient(90deg, rgba(239, 207, 131, .74), rgba(239, 207, 131, .08));
}

.asset-kpi span,
.metal-price-card span,
.asset-form-grid span {
  color: rgba(245, 240, 228, .52);
  font-size: 10px;
  font-weight: 900;
}

.asset-kpi strong {
  align-self: end;
  color: #fffaf0;
  font-size: clamp(22px, 2.2vw, 34px);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

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

.metal-price-grid {
  gap: 12px;
}

.metal-price-card {
  position: relative;
  min-height: 138px;
  padding: 18px;
  overflow: hidden;
  border-color: rgba(245, 240, 228, .1);
  background:
    linear-gradient(160deg, rgba(16, 31, 45, .28), rgba(255, 255, 255, .012) 48%),
    rgba(5, 6, 7, .76);
}

.metal-price-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 2px;
  background: rgba(245, 240, 228, .08);
}

.metal-price-card:hover,
.asset-metal-summary:hover,
.asset-holding-card:hover,
.asset-holding-row:hover {
  border-color: rgba(239, 207, 131, .32);
  background:
    linear-gradient(180deg, rgba(239, 207, 131, .07), rgba(255, 255, 255, .018)),
    rgba(5, 6, 7, .78);
}

.metal-price-card strong {
  color: #fffaf0;
  font-size: clamp(24px, 2.05vw, 34px);
  font-variant-numeric: tabular-nums;
}

.metal-price-card small {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.metal-price-card em {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  color: rgba(245, 240, 228, .62);
  font-weight: 850;
}

.metal-price-card.is-up em {
  background: rgba(53, 214, 139, .08);
}

.metal-price-card.is-down em {
  background: rgba(232, 113, 99, .08);
}

.asset-chart-panel {
  grid-column: span 7;
  display: flex;
  flex-direction: column;
  min-height: 574px;
  padding: 16px;
  align-self: stretch;
}

.asset-form-panel {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  min-height: 574px;
  padding: 16px;
  align-self: stretch;
}

.asset-chart-panel canvas {
  flex: 1 1 340px;
  min-height: 340px;
  height: auto;
  border-color: rgba(245, 240, 228, .11);
  background:
    linear-gradient(180deg, rgba(16, 31, 45, .28), rgba(0, 0, 0, .18)),
    rgba(0, 0, 0, .3);
}

.asset-chart-ranges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.asset-chart-ranges button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(245, 240, 228, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .025);
  color: rgba(245, 240, 228, .66);
  font-size: 11px;
  font-weight: 900;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.asset-chart-ranges button:hover,
.asset-chart-ranges button.is-active {
  border-color: rgba(239, 207, 131, .45);
  background: rgba(239, 207, 131, .1);
  color: #fffaf0;
}

.asset-chart-ranges button:hover {
  transform: translateY(-1px);
}

.asset-portfolio-chart-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 13px;
  padding: 18px;
  border-color: rgba(53, 214, 139, .18);
  background:
    radial-gradient(circle at 96% 6%, rgba(53, 214, 139, .1), transparent 30%),
    radial-gradient(circle at 8% 100%, rgba(239, 207, 131, .07), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)),
    rgba(6, 8, 9, .88);
}

.asset-portfolio-chart-panel .panel-heading.compact {
  align-items: flex-start;
}

.asset-portfolio-chart-topline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.asset-portfolio-chart-topline article {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 13px 14px;
  border: 1px solid rgba(245, 240, 228, .09);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .008)),
    rgba(0, 0, 0, .22);
}

.asset-portfolio-chart-topline span {
  color: rgba(245, 240, 228, .52);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.asset-portfolio-chart-topline strong {
  color: #fffaf0;
  font-size: clamp(18px, 1.8vw, 27px);
  line-height: 1.04;
  font-variant-numeric: tabular-nums;
}

.asset-portfolio-chart-topline strong.amount-positive {
  color: var(--emerald);
}

.asset-portfolio-chart-topline strong.amount-negative {
  color: #ff9b90;
}

.asset-portfolio-chart-panel canvas {
  width: 100%;
  min-height: 360px;
  height: 360px;
  display: block;
  border: 1px solid rgba(245, 240, 228, .1);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(16, 31, 45, .22), rgba(0, 0, 0, .2)),
    rgba(0, 0, 0, .3);
}

.asset-portfolio-chart-note {
  margin: 0;
  color: rgba(245, 240, 228, .58);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.45;
}

.asset-metal-breakdown {
  flex: 0 0 auto;
  gap: 10px;
}

.asset-metal-summary {
  min-height: 86px;
  padding: 12px;
  border-color: rgba(245, 240, 228, .1);
  background: rgba(255, 255, 255, .022);
}

.asset-metal-summary.is-active {
  border-color: rgba(239, 207, 131, .5);
  box-shadow: inset 0 0 0 1px rgba(239, 207, 131, .08);
}

.asset-metal-summary strong {
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.asset-form-grid {
  flex: 1;
  align-content: start;
  gap: 10px;
}

.asset-form-grid label {
  min-width: 0;
}

.asset-form-grid input,
.asset-form-grid select,
.asset-form-grid textarea {
  min-height: 44px;
  border-color: rgba(245, 240, 228, .12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .028), rgba(255, 255, 255, .008)),
    rgba(0, 0, 0, .32);
  font-size: 14px;
  font-weight: 800;
}

.asset-form-grid textarea {
  min-height: 88px;
}

.asset-form-actions {
  gap: 12px;
  align-self: end;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(245, 240, 228, .075);
}

.asset-form-actions .icon-button {
  min-width: 190px;
  min-height: 44px;
  border-color: rgba(53, 214, 139, .38);
  background: rgba(53, 214, 139, .08);
  color: #62efaa;
  font-weight: 900;
}

.assets-page .panel,
.asset-kpi,
.metal-price-card,
.asset-metal-summary,
.asset-holding-card,
.asset-holding-row,
.asset-position-card,
.asset-position-metric,
.asset-position-actions .history-share-button,
.asset-table-shell tr,
.asset-form-grid input,
.asset-form-grid select,
.asset-form-grid textarea,
.asset-form-actions .icon-button {
  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease,
    box-shadow .18s ease,
    color .18s ease,
    opacity .18s ease;
}

.asset-kpi:hover,
.metal-price-card:hover,
.asset-metal-summary:hover,
.asset-holding-card:hover,
.asset-holding-row:hover {
  transform: translateY(-1px);
}

.asset-form-actions .icon-button:hover {
  background: rgba(53, 214, 139, .13);
}

.asset-table-panel {
  grid-column: 1 / -1;
  margin-top: 10px;
  min-width: 0;
}

.asset-table-panel .section-heading.inline {
  align-items: center;
  margin-bottom: 14px;
}

.asset-table-panel .section-heading h2 {
  font-size: clamp(30px, 2.8vw, 44px);
}

.assets-page .session-selection-status {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(245, 240, 228, .09);
  border-radius: 999px;
  background: rgba(255, 255, 255, .025);
  color: rgba(245, 240, 228, .72);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.asset-metal-holdings {
  gap: 10px;
}

.asset-holding-card {
  min-height: 104px;
  padding: 12px;
  border-color: rgba(245, 240, 228, .1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .026), rgba(255, 255, 255, .006)),
    rgba(5, 6, 7, .64);
  cursor: pointer;
}

.asset-holding-card.is-active {
  border-color: rgba(239, 207, 131, .46);
  background:
    linear-gradient(180deg, rgba(239, 207, 131, .07), rgba(255, 255, 255, .012)),
    rgba(6, 8, 9, .72);
}

.asset-holding-card header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding-bottom: 8px;
}

.asset-holding-card header strong {
  color: #fffaf0;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.asset-holding-compact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.asset-holding-compact span,
.asset-holding-card > em {
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid rgba(245, 240, 228, .07);
  border-radius: 10px;
  background: rgba(255, 255, 255, .018);
  color: rgba(245, 240, 228, .64);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.asset-holding-card > em {
  display: block;
  color: rgba(245, 240, 228, .7);
}

.asset-holding-card > em.amount-positive {
  color: var(--emerald);
}

.asset-holding-card > em.amount-negative {
  color: #ff9b90;
}

.asset-holding-row {
  padding: 11px;
  border-color: rgba(245, 240, 228, .08);
  background: rgba(255, 255, 255, .02);
}

.asset-holding-row strong {
  font-size: 13px;
}

.asset-holding-row em {
  overflow-wrap: anywhere;
  font-weight: 850;
  line-height: 1.45;
}

.asset-holding-row small {
  font-weight: 850;
  line-height: 1.35;
}

.asset-position-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.asset-position-card,
.asset-position-empty {
  min-width: 0;
  border: 1px solid rgba(245, 240, 228, .105);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .038), rgba(255, 255, 255, .01)),
    rgba(6, 8, 9, .84);
  box-shadow: 0 16px 46px rgba(0, 0, 0, .18);
}

.asset-position-card {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.asset-position-card:hover {
  border-color: rgba(239, 207, 131, .3);
  background:
    linear-gradient(180deg, rgba(239, 207, 131, .06), rgba(255, 255, 255, .014)),
    rgba(6, 8, 9, .86);
  transform: translateY(-1px);
}

.asset-position-card header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, auto);
  gap: 18px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(245, 240, 228, .075);
}

.asset-position-title,
.asset-position-value {
  min-width: 0;
}

.asset-position-title {
  display: grid;
  gap: 5px;
}

.asset-position-title span,
.asset-position-metric span {
  color: rgba(239, 207, 131, .86);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.asset-position-title strong {
  color: #fffaf0;
  font-size: clamp(18px, 1.55vw, 24px);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.asset-position-title small {
  color: rgba(245, 240, 228, .58);
  font-size: 13px;
  font-weight: 850;
}

.asset-position-value {
  display: grid;
  gap: 5px;
  justify-items: end;
  text-align: right;
}

.asset-position-value strong {
  color: #fffaf0;
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.asset-position-value em {
  font-style: normal;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.asset-position-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.asset-position-metric {
  min-width: 0;
  min-height: 66px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 11px 12px;
  border: 1px solid rgba(245, 240, 228, .075);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .022);
}

.asset-position-metric strong {
  color: rgba(245, 240, 228, .86);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.asset-position-card-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding-top: 2px;
}

.asset-position-card-foot p {
  margin: 0;
  color: rgba(245, 240, 228, .54);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.asset-position-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.asset-position-actions .history-share-button {
  min-width: 112px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(53, 214, 139, .28);
  border-radius: var(--radius);
  background: rgba(53, 214, 139, .075);
  color: #62efaa;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.asset-position-actions .history-share-button:hover {
  border-color: rgba(53, 214, 139, .48);
  background: rgba(53, 214, 139, .13);
}

.asset-position-actions .asset-delete-button {
  border-color: rgba(232, 113, 99, .24);
  background: rgba(232, 113, 99, .07);
  color: #ffaca2;
}

.asset-position-actions .asset-delete-button:hover {
  border-color: rgba(232, 113, 99, .45);
  background: rgba(232, 113, 99, .13);
}

.asset-position-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  min-height: 120px;
  align-content: center;
  padding: 18px;
  color: rgba(245, 240, 228, .62);
}

.asset-position-empty strong {
  color: #fffaf0;
  font-size: 20px;
}

.asset-position-empty span {
  font-size: 13px;
  font-weight: 750;
}

.asset-table-shell {
  display: none;
  margin-top: 14px;
  overflow-x: auto;
  background:
    linear-gradient(180deg, rgba(16, 31, 45, .18), rgba(255, 255, 255, .006)),
    rgba(6, 8, 9, .88);
}

.asset-table-shell table {
  min-width: min(1120px, 100%);
  table-layout: fixed;
}

.asset-table-shell th,
.asset-table-shell td {
  padding: 16px 14px;
}

.asset-table-shell th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(14, 17, 18, .96);
  color: rgba(245, 240, 228, .5);
  font-size: 11px;
  font-weight: 900;
}

.asset-table-shell tbody tr {
  transition: background .18s ease;
}

.asset-table-shell tbody tr:hover {
  background: rgba(239, 207, 131, .035);
}

.asset-table-shell td {
  color: rgba(245, 240, 228, .74);
  font-size: 14px;
  line-height: 1.35;
  vertical-align: middle;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.asset-table-shell th:nth-child(1),
.asset-table-shell td:nth-child(1),
.asset-table-shell th:nth-child(2),
.asset-table-shell td:nth-child(2),
.asset-table-shell th:nth-child(4),
.asset-table-shell td:nth-child(4),
.asset-table-shell th:nth-child(5),
.asset-table-shell td:nth-child(5) {
  width: 86px;
}

.asset-table-shell th:nth-child(3),
.asset-table-shell td:nth-child(3) {
  width: 190px;
}

.asset-table-shell th:nth-child(13),
.asset-table-shell td:nth-child(13) {
  width: 150px;
}

.asset-row-name {
  font-size: 14px;
}

.asset-table-shell .history-action-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.asset-table-shell .history-share-button {
  min-width: 96px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(53, 214, 139, .24);
  border-radius: var(--radius);
  background: rgba(53, 214, 139, .07);
  color: #62efaa;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.asset-table-shell .history-share-button:hover {
  border-color: rgba(53, 214, 139, .44);
  background: rgba(53, 214, 139, .12);
}

.asset-table-shell .asset-delete-button {
  border-color: rgba(232, 113, 99, .22);
  background: rgba(232, 113, 99, .065);
  color: #ffaca2;
}

.asset-table-shell .asset-delete-button:hover {
  border-color: rgba(232, 113, 99, .42);
  background: rgba(232, 113, 99, .12);
}

.asset-disclaimer {
  border-color: rgba(239, 207, 131, .2);
  background:
    linear-gradient(90deg, rgba(239, 207, 131, .08), rgba(16, 31, 45, .12) 62%, transparent),
    rgba(8, 10, 11, .88);
}

@media (min-width: 1380px) {
  .asset-kpi-grid {
    grid-template-columns: 1.12fr repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .asset-position-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1280px) {
  .asset-chart-panel,
  .asset-form-panel {
    grid-column: 1 / -1;
    min-height: auto;
  }

  .asset-chart-panel canvas {
    flex-basis: 320px;
    min-height: 320px;
  }

  .asset-chart-ranges {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .asset-chart-ranges button {
    width: 100%;
    padding: 0 6px;
  }

  .asset-portfolio-chart-topline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .assets-page .side-rail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    height: auto;
    overflow: visible;
    padding: 10px;
  }

  .assets-page .brand,
  .assets-page .sync-status,
  .assets-page .auth-card {
    width: 100%;
    min-width: 0;
  }

  .assets-page .rail-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
    width: 100%;
  }

  .assets-page .nav-link {
    min-width: 0;
    justify-content: flex-start;
  }

  .assets-page .command-bar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: auto;
  }

  .assets-page .command-bar > * {
    min-width: 0;
    width: 100%;
  }

  .assets-page .command-bar h1 {
    font-size: clamp(34px, 12vw, 48px);
    overflow-wrap: anywhere;
  }

  .assets-page .section-heading.inline {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .asset-status-pill,
  .assets-page .chart-total,
  .assets-page .session-selection-status,
  .assets-page .desk-meta span {
    max-width: 100%;
    white-space: normal;
  }

  .asset-kpi {
    min-height: 110px;
  }

  .asset-portfolio-chart-panel {
    padding: 14px;
  }

  .asset-portfolio-chart-topline {
    grid-template-columns: 1fr;
  }

  .asset-portfolio-chart-panel canvas {
    min-height: 300px;
    height: 300px;
  }

  .asset-position-card {
    padding: 14px;
  }

  .asset-position-card header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .asset-position-value {
    justify-items: start;
    text-align: left;
  }

  .asset-position-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .asset-position-card-foot {
    grid-template-columns: 1fr;
  }

  .asset-position-actions {
    justify-content: flex-start;
  }

  .asset-table-shell {
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .asset-table-shell table,
  .asset-table-shell thead,
  .asset-table-shell tbody,
  .asset-table-shell tr,
  .asset-table-shell td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .asset-table-shell thead {
    display: none;
  }

  .asset-table-shell tbody {
    display: grid;
    gap: 12px;
  }

  .asset-table-shell tr {
    border: 1px solid rgba(245, 240, 228, .1);
    border-radius: var(--radius);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012)),
      rgba(6, 8, 9, .86);
  }

  .asset-table-shell td {
    display: grid;
    grid-template-columns: minmax(112px, .7fr) minmax(0, 1fr);
    gap: 10px;
    padding: 11px 13px;
    border-bottom: 1px solid rgba(245, 240, 228, .07);
  }

  .asset-table-shell td::before {
    content: attr(data-label);
    color: rgba(245, 240, 228, .46);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .asset-table-shell td:last-child {
    border-bottom: 0;
  }

  .asset-table-shell .history-action-group {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .asset-position-cards {
    gap: 12px;
  }

  .asset-holding-compact {
    grid-template-columns: 1fr;
  }

  .asset-position-meta {
    grid-template-columns: 1fr;
  }

  .asset-position-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .asset-position-actions .history-share-button {
    width: 100%;
  }
}

@media (max-width: 1440px) {
  .asset-table-shell {
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .asset-table-shell table,
  .asset-table-shell thead,
  .asset-table-shell tbody,
  .asset-table-shell tr,
  .asset-table-shell td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .asset-table-shell thead {
    display: none;
  }

  .asset-table-shell tbody {
    display: grid;
    gap: 12px;
  }

  .asset-table-shell tr {
    border: 1px solid rgba(245, 240, 228, .1);
    border-radius: var(--radius);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012)),
      rgba(6, 8, 9, .86);
  }

  .asset-table-shell td {
    display: grid;
    grid-template-columns: minmax(120px, .45fr) minmax(0, 1fr);
    gap: 12px;
    width: 100%;
    padding: 11px 13px;
    border-bottom: 1px solid rgba(245, 240, 228, .07);
  }

  .asset-table-shell th:nth-child(1),
  .asset-table-shell td:nth-child(1),
  .asset-table-shell th:nth-child(2),
  .asset-table-shell td:nth-child(2),
  .asset-table-shell th:nth-child(3),
  .asset-table-shell td:nth-child(3),
  .asset-table-shell th:nth-child(4),
  .asset-table-shell td:nth-child(4),
  .asset-table-shell th:nth-child(5),
  .asset-table-shell td:nth-child(5),
  .asset-table-shell th:nth-child(13),
  .asset-table-shell td:nth-child(13) {
    width: 100%;
  }

  .asset-table-shell td::before {
    content: attr(data-label);
    color: rgba(245, 240, 228, .46);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .asset-table-shell td[colspan] {
    display: block;
    width: 100%;
  }

  .asset-table-shell td[colspan]::before {
    display: none;
  }

  .asset-table-shell td:last-child {
    border-bottom: 0;
  }
}

@media print {
  @page {
    size: A4;
    margin: 10mm 9mm;
  }

  body {
    background: white;
    color: #111;
  }

  .app-shell,
  .toast,
  .goal-popup {
    display: none !important;
  }

  .print-report {
    display: block;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #111;
    line-height: 1.25;
  }

  .print-report,
  .print-report * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .report-page {
    display: grid;
    gap: 8px;
  }

  .report-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 18px;
    align-items: center;
    min-height: 92px;
    padding: 16px 18px;
    border: 1px solid #d8d3c9;
    border-top: 6px solid #111512;
    border-radius: 0;
    background:
      linear-gradient(90deg, #fbfaf6 0%, #fffefa 62%, #f0f3ec 100%);
    color: #121411;
  }

  .report-hero-copy {
    min-width: 0;
  }

  .report-kicker {
    margin: 0 0 7px;
    color: #8c6f31;
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
  }

  .print-report h1 {
    margin: 0;
    color: #121411;
    font-size: 31px;
    line-height: 1;
    letter-spacing: 0;
  }

  .report-subtitle {
    margin: 7px 0 0;
    color: #52544f;
    font-size: 12px;
  }

  .report-hero-aside {
    min-height: 70px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 3px;
    padding: 8px;
    border: 1px solid #c6a85f;
    color: #121411;
    text-align: center;
  }

  .report-hero-aside span,
  .report-hero-aside small {
    color: #65665f;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  .report-hero-aside strong {
    color: #8c6f31;
    font-size: 30px;
    line-height: .9;
    font-weight: 900;
  }

  .report-meta,
  .report-positioning,
  .report-summary-grid,
  .report-intel-grid,
  .report-manager-brief {
    display: grid;
    gap: 8px;
  }

  .report-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 8px 12px;
    border: 0;
    background: #111512;
    color: #f3eee3;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .report-positioning {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: stretch;
    padding: 11px 12px;
    border: 1px solid #d7d4cc;
    border-left: 4px solid #c8a85d;
    background: #fbfaf6;
  }

  .report-positioning article {
    display: grid;
    align-content: center;
    gap: 5px;
    padding-right: 14px;
    border-right: 1px solid #d8d2c5;
  }

  .report-positioning span {
    color: #8c6f31;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .report-positioning p {
    margin: 0;
    color: #2c2f2b;
    font-size: 11px;
    line-height: 1.42;
  }

  .report-positioning dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    margin: 0;
    padding-left: 6px;
  }

  .report-positioning div {
    display: grid;
    gap: 2px;
  }

  .report-positioning dt {
    color: #71736d;
    font-size: 8.5px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  .report-positioning dd {
    margin: 0;
    color: #111512;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.25;
  }

  .report-manager-brief {
    grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
    padding: 0;
    border: 1px solid #d7d4cc;
    border-top: 3px solid #111512;
    background: #fffefa;
  }

  .report-manager-brief article {
    display: grid;
    gap: 5px;
    min-height: 72px;
    align-content: center;
    padding: 10px 12px;
    border-left: 1px solid #d8d2c5;
    background: #fffefa;
  }

  .report-manager-brief article:first-child {
    border-left: 0;
    background: #111512;
  }

  .report-manager-brief span,
  .report-manager-brief small {
    color: #62645e;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .03em;
    text-transform: uppercase;
  }

  .report-manager-brief strong {
    color: #111512;
    font-size: 19px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
  }

  .report-manager-brief p {
    margin: 0;
    color: #4f514c;
    font-size: 10px;
    line-height: 1.35;
  }

  .report-brief-primary strong {
    color: #f7f1e4;
    font-size: 24px;
  }

  .report-manager-brief article:first-child span {
    color: #d1ad5f;
  }

  .report-manager-brief article:first-child p {
    color: #d8d2c6;
  }

  .report-brief-primary.is-negative strong,
  .report-manager-brief article:nth-child(3) strong {
    color: #8f2d25;
  }

  .report-brief-primary.is-positive strong {
    color: #176f45;
  }

  .report-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .report-intel-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .report-summary-card,
  .report-intel-grid article {
    min-height: 56px;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 9px 11px;
    border: 1px solid #d7d4cc;
    border-top: 0;
    background: #fbfaf6;
  }

  .report-summary-card span,
  .report-intel-grid span {
    color: #686a64;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .03em;
    text-transform: uppercase;
  }

  .report-summary-card strong,
  .report-intel-grid strong {
    color: #111;
    font-size: 18px;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
  }

  .report-summary-card.is-negative strong,
  .report-amount.is-negative {
    color: #9b2f25;
  }

  .report-summary-card.is-positive strong,
  .report-amount.is-positive {
    color: #176f45;
  }

  .report-section {
    margin-top: 6px;
    break-inside: avoid;
  }

  .report-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "kicker meta"
      "title meta";
    align-items: end;
    gap: 4px 16px;
    margin: 1px 0 7px;
    padding: 9px 0 8px;
    border-top: 2px solid #161712;
    border-bottom: 1px solid #cfcac0;
    background: #fffefa;
  }

  .report-section-head p {
    grid-area: kicker;
    margin: 0;
    color: #8a6b2a;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .print-report h2 {
    grid-area: title;
    margin: 0;
    color: #111;
    font-size: 22px;
    line-height: 1.1;
  }

  .report-section-head span {
    grid-area: meta;
    max-width: 260px;
    color: #555;
    font-size: 10px;
    font-weight: 700;
    text-align: right;
    line-height: 1.35;
  }

  .report-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    border: 1px solid #d7d4cc;
    font-size: 9.7px;
  }

  .report-table th,
  .report-table td {
    padding: 6.5px 8px;
    border-bottom: 1px solid #dedbd3;
    color: #111;
    vertical-align: top;
  }

  .report-table th {
    background: #111512;
    color: #f7f1e4;
    font-size: 8.6px;
    font-weight: 900;
    letter-spacing: .03em;
    text-transform: uppercase;
  }

  .report-table tbody tr:nth-child(even) td {
    background: #f6f4ee;
  }

  .report-table th:nth-child(4),
  .report-table th:nth-child(5),
  .report-table th:nth-child(6),
  .report-table td:nth-child(4),
  .report-table td:nth-child(5),
  .report-table td:nth-child(6) {
    text-align: right;
  }

  .report-table tr {
    break-inside: avoid;
  }

  .report-footer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 2px;
    padding-top: 7px;
    border-top: 1px solid #cfcac0;
    color: #686a64;
    font-size: 8.5px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .report-footer span:nth-child(2) {
    text-align: center;
  }

  .report-footer span:last-child {
    text-align: right;
  }
}

/* Securities / stocks, ETFs and funds */
.securities-page .command-bar {
  border-color: rgba(139, 199, 255, .16);
  background:
    linear-gradient(90deg, rgba(139, 199, 255, .08), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, .046), rgba(255, 255, 255, .014)),
    rgba(7, 9, 10, .9);
}

.securities-workspace {
  max-width: 1540px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.securities-head,
.security-kpi-grid,
.security-market-panel,
.security-table-panel,
.security-disclaimer {
  grid-column: 1 / -1;
}

.security-form-panel {
  grid-column: span 7;
}

.security-detail-panel {
  grid-column: span 5;
}

.security-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.security-market-panel,
.security-form-panel,
.security-detail-panel {
  padding: 18px;
  border-color: rgba(139, 199, 255, .13);
  background:
    radial-gradient(circle at 100% 0%, rgba(139, 199, 255, .08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012)),
    rgba(7, 10, 12, .88);
}

.security-status-grid,
.security-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.security-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.security-status-grid article,
.security-detail-grid article {
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(245, 240, 228, .09);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)),
    rgba(0, 0, 0, .2);
}

.security-status-grid span,
.security-detail-grid span {
  color: rgba(245, 240, 228, .52);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.security-status-grid strong,
.security-detail-grid strong {
  color: rgba(245, 240, 228, .92);
  font-size: 15px;
  line-height: 1.25;
}

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

.security-form-grid label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.security-form-grid label.wide,
.security-search-field,
.security-search-results,
.security-form-grid .asset-form-actions {
  grid-column: 1 / -1;
}

.security-form-grid span {
  color: rgba(245, 240, 228, .55);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.security-form-grid input,
.security-form-grid select,
.security-form-grid textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(245, 240, 228, .12);
  border-radius: 10px;
  background: rgba(0, 0, 0, .32);
  color: var(--porcelain);
  font: inherit;
  font-weight: 800;
}

.security-form-grid textarea {
  min-height: 96px;
  padding-block: 13px;
  resize: vertical;
}

.security-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.security-search-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-height: 0;
}

.security-search-results p {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(245, 240, 228, .58);
  font-size: 13px;
}

.security-search-results button {
  display: grid;
  gap: 3px;
  min-height: 70px;
  padding: 12px;
  border: 1px solid rgba(245, 240, 228, .1);
  border-radius: 10px;
  background: rgba(255, 255, 255, .025);
  color: var(--porcelain);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.security-search-results button:hover {
  transform: translateY(-1px);
  border-color: rgba(139, 199, 255, .32);
  background: rgba(139, 199, 255, .06);
}

.security-search-results strong {
  color: var(--champagne);
  font-size: 14px;
}

.security-search-results span,
.security-search-results small {
  color: rgba(245, 240, 228, .64);
  font-size: 12px;
}

.security-position-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.security-position-card {
  border-color: rgba(139, 199, 255, .12);
}

.security-table-shell table {
  min-width: 1320px;
}

.security-table-shell tbody tr.is-selected {
  background: rgba(139, 199, 255, .045);
}

@media (max-width: 1280px) {
  .security-form-panel,
  .security-detail-panel {
    grid-column: 1 / -1;
  }

  .security-kpi-grid,
  .security-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .securities-workspace {
    gap: 12px;
  }

  .security-kpi-grid,
  .security-status-grid,
  .security-detail-grid,
  .security-form-grid,
  .security-search-results,
  .security-position-cards {
    grid-template-columns: 1fr;
  }

  .security-search-row {
    grid-template-columns: 1fr;
  }
}

/* Simplified securities input flow */
.security-add-panel {
  grid-column: span 8;
  padding: 20px;
  border-color: rgba(214, 183, 106, .16);
  background:
    radial-gradient(circle at 100% 0%, rgba(214, 183, 106, .08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)),
    rgba(7, 10, 12, .9);
}

.securities-page .security-market-panel {
  grid-column: span 4;
}

.security-search-hero {
  display: grid;
  gap: 12px;
}

.security-search-field {
  display: grid;
  gap: 9px;
}

.security-search-field > span,
.security-simple-form span,
.security-advanced-grid span {
  color: rgba(245, 240, 228, .56);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.securities-page .security-search-row {
  grid-template-columns: minmax(0, 1fr) minmax(150px, auto);
  gap: 10px;
}

.securities-page .security-search-row input,
.security-simple-form input,
.security-simple-form select,
.security-simple-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(245, 240, 228, .12);
  border-radius: 10px;
  background: rgba(0, 0, 0, .34);
  color: var(--porcelain);
  font: inherit;
  font-weight: 800;
}

.securities-page .security-search-row input {
  min-height: 58px;
  font-size: 16px;
}

.securities-page .security-search-results {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.securities-page .security-search-results button {
  min-height: 96px;
  align-content: start;
  padding: 15px;
  border-radius: 12px;
}

.security-result-name {
  color: rgba(245, 240, 228, .9) !important;
  font-size: 14px !important;
  font-weight: 900;
}

.security-simple-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(245, 240, 228, .1);
}

.security-selected-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, .6fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(214, 183, 106, .2);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(214, 183, 106, .075), rgba(255, 255, 255, .018)),
    rgba(0, 0, 0, .22);
}

.security-selected-card > div {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
}

.security-selected-card strong {
  color: var(--porcelain);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.05;
}

.security-selected-card small {
  color: rgba(245, 240, 228, .58);
  font-weight: 700;
}

.security-entry-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.security-entry-mode legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: rgba(245, 240, 228, .76);
  font-weight: 900;
}

.security-entry-mode label {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid rgba(245, 240, 228, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
  cursor: pointer;
}

.security-entry-mode input {
  width: 18px;
  height: 18px;
  accent-color: var(--emerald);
}

.security-entry-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, .85fr) minmax(250px, 1fr);
  gap: 12px;
  align-items: stretch;
}

.security-entry-grid label {
  display: grid;
  gap: 8px;
}

.security-entry-grid em {
  color: rgba(245, 240, 228, .42);
  font-style: normal;
  text-transform: none;
}

.security-live-preview {
  display: grid;
  align-content: center;
  gap: 7px;
  min-height: 112px;
  padding: 16px;
  border: 1px solid rgba(43, 229, 151, .18);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(43, 229, 151, .08), rgba(255, 255, 255, .015)),
    rgba(0, 0, 0, .24);
}

.security-live-preview strong {
  color: var(--emerald);
  font-size: clamp(24px, 2.7vw, 36px);
  line-height: 1;
}

.security-live-preview small {
  color: rgba(245, 240, 228, .58);
  font-weight: 750;
}

.security-advanced {
  border: 1px solid rgba(245, 240, 228, .1);
  border-radius: 12px;
  background: rgba(0, 0, 0, .18);
}

.security-advanced summary {
  min-height: 50px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: var(--champagne);
  font-weight: 900;
  cursor: pointer;
}

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

.security-advanced-grid label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.security-advanced-grid label.wide {
  grid-column: 1 / -1;
}

.security-simple-form textarea {
  min-height: 92px;
  padding-block: 13px;
  resize: vertical;
}

.securities-page .security-table-shell table {
  min-width: 980px;
}

.securities-page .security-table-shell th,
.securities-page .security-table-shell td {
  vertical-align: middle;
}

.securities-page .security-table-panel,
.securities-page .security-disclaimer {
  grid-column: 1 / -1;
}

.securities-page .asset-form-actions {
  align-items: center;
}

@media (max-width: 1280px) {
  .security-add-panel,
  .securities-page .security-market-panel {
    grid-column: 1 / -1;
  }

  .securities-page .security-search-results {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .securities-page .security-search-row,
  .securities-page .security-search-results,
  .security-selected-card,
  .security-entry-mode,
  .security-entry-grid,
  .security-advanced-grid {
    grid-template-columns: 1fr;
  }

  .security-add-panel {
    padding: 16px;
  }

  .security-selected-card strong {
    font-size: 22px;
  }

  .security-entry-mode label,
  .securities-page .security-search-row input {
    min-height: 52px;
  }

  .securities-page .asset-kpi strong {
    font-size: 20px;
  }
}

/* Broker-grade securities dashboard layout */
.securities-page .command-bar {
  min-height: 116px;
  border-color: rgba(139, 199, 255, .13);
  background:
    radial-gradient(circle at 86% 20%, rgba(43, 229, 151, .08), transparent 28%),
    linear-gradient(90deg, rgba(139, 199, 255, .085), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .014)),
    rgba(7, 9, 10, .92);
}

.securities-page .command-bar h1 {
  font-size: clamp(34px, 3.8vw, 58px);
  line-height: .98;
}

.securities-page .securities-head {
  min-height: 76px;
  padding: 16px 18px;
  border-color: rgba(245, 240, 228, .09);
  background:
    linear-gradient(90deg, rgba(245, 240, 228, .04), transparent 55%),
    rgba(7, 10, 12, .7);
}

.securities-page .desk-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.securities-page .desk-meta span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(245, 240, 228, .1);
  border-radius: 999px;
  background: rgba(0, 0, 0, .24);
  color: rgba(245, 240, 228, .72);
  font-size: 12px;
  font-weight: 850;
}

.securities-page .security-kpi-grid {
  grid-column: span 8;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(118px, auto);
  align-self: stretch;
  gap: 10px;
}

.securities-page .security-kpi-grid .asset-kpi {
  min-height: 118px;
  padding: 16px;
  border-color: rgba(139, 199, 255, .11);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .046), rgba(255, 255, 255, .012)),
    rgba(6, 8, 10, .82);
}

.securities-page .security-kpi-grid .asset-kpi.primary {
  grid-column: span 2;
  grid-row: auto;
  min-height: 118px;
  padding: 17px 18px;
  border-color: rgba(239, 207, 131, .34);
  background:
    radial-gradient(circle at 88% 12%, rgba(239, 207, 131, .13), transparent 38%),
    linear-gradient(135deg, rgba(239, 207, 131, .13), rgba(139, 199, 255, .035)),
    rgba(6, 8, 10, .88);
}

.securities-page .security-kpi-grid .asset-kpi.primary strong {
  font-size: clamp(28px, 3.1vw, 46px);
  line-height: .96;
}

.securities-page .security-kpi-grid .asset-kpi:not(.primary) strong {
  font-size: clamp(18px, 1.8vw, 28px);
}

.securities-page .security-kpi-grid .asset-kpi.is-unavailable {
  border-color: rgba(245, 240, 228, .075);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .032), rgba(255, 255, 255, .01)),
    rgba(5, 6, 7, .68);
}

.securities-page .security-kpi-grid .asset-kpi.is-unavailable strong {
  display: inline-flex;
  align-self: end;
  width: fit-content;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(245, 240, 228, .09);
  border-radius: 999px;
  background: rgba(255, 255, 255, .026);
  color: rgba(245, 240, 228, .54);
  font-size: clamp(12px, .86vw, 14px);
  line-height: 1;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
}

.securities-page .security-kpi-grid .asset-kpi.primary.is-unavailable {
  min-height: 118px;
}

.securities-page .security-kpi-grid .asset-kpi.primary.is-unavailable strong {
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1;
}

.securities-page #securityPositionPreview.is-unavailable-value {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(245, 240, 228, .09);
  border-radius: 999px;
  background: rgba(255, 255, 255, .026);
  color: rgba(245, 240, 228, .54);
  font-size: 13px;
  line-height: 1;
  font-weight: 850;
  text-transform: uppercase;
}

.securities-page .security-add-panel {
  grid-column: span 4;
  align-self: start;
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 18px;
  border-color: rgba(43, 229, 151, .15);
  background:
    radial-gradient(circle at 100% 0%, rgba(43, 229, 151, .09), transparent 32%),
    radial-gradient(circle at 0% 100%, rgba(139, 199, 255, .07), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .046), rgba(255, 255, 255, .012)),
    rgba(7, 10, 12, .92);
}

.securities-page .security-market-panel {
  grid-column: 1 / -1;
  padding: 20px 22px 22px;
}

.securities-page .security-market-panel .panel-heading.compact {
  align-items: flex-start;
  margin-bottom: 18px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(245, 240, 228, .075);
}

.securities-page .security-market-panel .panel-heading.compact h2 {
  line-height: 1.05;
}

.securities-page .security-market-panel .chart-total {
  margin-top: 2px;
}

.securities-page .security-status-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.securities-page .security-status-grid article {
  min-height: 70px;
  padding: 15px 16px;
}

.securities-page .security-search-hero {
  gap: 10px;
}

.securities-page .security-search-row input {
  min-height: 50px;
  border-color: rgba(245, 240, 228, .13);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)),
    rgba(0, 0, 0, .36);
}

.securities-page .security-search-results {
  grid-template-columns: 1fr;
  max-height: 226px;
  overflow: auto;
  padding-right: 2px;
  transition: max-height .22s ease, opacity .18s ease, margin .18s ease;
}

.securities-page .security-search-results button {
  min-height: 62px;
  padding: 12px 14px;
  border-color: rgba(245, 240, 228, .09);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .042), rgba(255, 255, 255, .012)),
    rgba(0, 0, 0, .22);
}

.securities-page .security-search-results button:hover,
.securities-page .security-search-results button:focus-visible {
  border-color: rgba(43, 229, 151, .34);
  background:
    linear-gradient(135deg, rgba(43, 229, 151, .07), rgba(139, 199, 255, .035)),
    rgba(0, 0, 0, .24);
  outline: none;
}

.securities-page .security-add-panel.has-selection .security-search-results {
  max-height: 0;
  margin-top: -8px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.securities-page .security-add-panel.has-selection .security-search-row input {
  min-height: 46px;
}

.securities-page .security-simple-form {
  gap: 12px;
  margin-top: 12px;
}

.securities-page .security-selected-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 13px;
  border-color: rgba(43, 229, 151, .18);
  background:
    linear-gradient(135deg, rgba(43, 229, 151, .07), rgba(139, 199, 255, .035)),
    rgba(0, 0, 0, .24);
}

.securities-page .security-selected-card strong {
  font-size: clamp(18px, 1.35vw, 24px);
  line-height: 1.08;
}

.securities-page .security-selected-card > div:last-child {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(245, 240, 228, .08);
}

.securities-page .security-selected-card > div:last-child span,
.securities-page .security-selected-card > div:last-child small {
  grid-column: 1;
}

.securities-page .security-selected-card > div:last-child strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  justify-self: end;
  color: rgba(245, 240, 228, .9);
  font-size: 16px;
  white-space: nowrap;
}

.securities-page .security-entry-mode label {
  min-height: 46px;
  padding: 10px 12px;
  transition: border-color .18s ease, background .18s ease;
}

.securities-page .security-entry-mode label:has(input:checked) {
  border-color: rgba(43, 229, 151, .34);
  background: rgba(43, 229, 151, .08);
}

.securities-page .security-entry-grid {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.securities-page .security-live-preview {
  grid-column: 1 / -1;
  min-height: 76px;
  padding: 13px;
  border-color: rgba(245, 240, 228, .1);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)),
    rgba(0, 0, 0, .22);
}

.securities-page .security-live-preview strong {
  color: rgba(245, 240, 228, .94);
  font-size: clamp(18px, 1.6vw, 25px);
}

.securities-page .asset-form-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.securities-page .security-portfolio-chart-panel {
  grid-column: span 8;
  min-height: 560px;
  padding: 18px;
  border-color: rgba(139, 199, 255, .14);
  background:
    radial-gradient(circle at 100% 0%, rgba(139, 199, 255, .08), transparent 30%),
    radial-gradient(circle at 0% 100%, rgba(214, 183, 106, .06), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012)),
    rgba(7, 10, 12, .9);
}

.securities-page .security-portfolio-chart-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.securities-page .security-portfolio-chart-summary span {
  min-width: 148px;
  min-height: 54px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 9px 12px;
  border: 1px solid rgba(245, 240, 228, .09);
  border-radius: 12px;
  background: rgba(0, 0, 0, .23);
}

.securities-page .security-portfolio-chart-summary small {
  color: rgba(245, 240, 228, .48);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.securities-page .security-portfolio-chart-summary strong {
  color: rgba(245, 240, 228, .92);
  font-size: 16px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.securities-page .security-portfolio-chart-summary strong.is-positive,
.securities-page .security-portfolio-chart-side strong.is-positive {
  color: var(--emerald);
}

.securities-page .security-portfolio-chart-summary strong.is-negative,
.securities-page .security-portfolio-chart-side strong.is-negative {
  color: var(--ruby);
}

.securities-page .security-portfolio-chart-summary strong.is-unavailable,
.securities-page .security-portfolio-chart-side strong.is-unavailable {
  color: rgba(245, 240, 228, .48);
}

.securities-page .security-portfolio-chart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 12px;
  align-items: stretch;
}

.securities-page .security-portfolio-chart-shell {
  min-height: 390px;
}

.securities-page .security-portfolio-chart-shell .security-chart-empty {
  min-height: 390px;
}

.securities-page .security-portfolio-chart-shell .security-history-chart {
  min-height: 390px;
}

.securities-page .security-portfolio-chart-side {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.securities-page .security-portfolio-chart-side article {
  min-height: 116px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(245, 240, 228, .09);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)),
    rgba(0, 0, 0, .24);
}

.securities-page .security-portfolio-chart-side span {
  color: rgba(245, 240, 228, .48);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.securities-page .security-portfolio-chart-side strong {
  color: rgba(245, 240, 228, .92);
  font-size: clamp(18px, 1.7vw, 28px);
  font-weight: 950;
  line-height: 1;
}

.securities-page .security-portfolio-chart-side small {
  color: rgba(245, 240, 228, .56);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.25;
}

.securities-page .security-portfolio-history-chart .portfolio-chart-area {
  fill: url("#securityPortfolioChartFill");
}

.securities-page .security-add-panel {
  padding: 18px;
  border-color: rgba(245, 240, 228, .1);
  background:
    radial-gradient(circle at 100% 0%, rgba(43, 229, 151, .07), transparent 30%),
    radial-gradient(circle at 0% 100%, rgba(214, 183, 106, .055), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .038), rgba(255, 255, 255, .01)),
    rgba(7, 10, 12, .94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
}

.securities-page .security-add-panel .panel-heading.compact {
  align-items: start;
  gap: 12px;
  margin-bottom: 13px;
}

.securities-page .security-add-panel .panel-heading.compact h2 {
  font-size: clamp(22px, 1.7vw, 28px);
  line-height: 1.02;
}

.securities-page .security-search-hero {
  gap: 12px;
}

.securities-page .security-search-field {
  gap: 8px;
}

.securities-page .security-search-row {
  grid-template-columns: minmax(0, 1fr) minmax(118px, auto);
  gap: 10px;
}

.securities-page .security-search-row input {
  min-height: 52px;
  padding-inline: 15px;
  border-radius: 12px;
  border-color: rgba(245, 240, 228, .16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)),
    rgba(0, 0, 0, .42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  outline: none;
}

.securities-page .security-search-row input:focus {
  border-color: rgba(214, 183, 106, .58);
  box-shadow:
    0 0 0 3px rgba(214, 183, 106, .1),
    inset 0 1px 0 rgba(255, 255, 255, .05);
}

.securities-page .security-search-row input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.securities-page .security-search-row .icon-button {
  min-height: 52px;
  border-radius: 12px;
}

.securities-page .security-search-results {
  position: relative;
  grid-template-columns: 1fr;
  gap: 7px;
  max-height: min(292px, calc(100vh - 360px));
  min-height: 0;
  padding: 0 4px 0 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 240, 228, .22) rgba(255, 255, 255, .04);
}

.securities-page .security-search-results::-webkit-scrollbar {
  width: 6px;
}

.securities-page .security-search-results::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
}

.securities-page .security-search-results::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(245, 240, 228, .22);
}

.securities-page .security-search-results p {
  padding: 12px 13px;
  border: 1px solid rgba(245, 240, 228, .08);
  border-radius: 12px;
  background: rgba(0, 0, 0, .2);
  color: rgba(245, 240, 228, .58);
  font-size: 13px;
}

.securities-page .security-search-results button.security-result-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 12px;
  border-radius: 14px;
  border-color: rgba(245, 240, 228, .085);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .032), rgba(255, 255, 255, .01)),
    rgba(0, 0, 0, .2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.securities-page .security-search-results button.security-result-card:hover,
.securities-page .security-search-results button.security-result-card:focus-visible {
  transform: none;
  border-color: rgba(214, 183, 106, .34);
  background:
    linear-gradient(135deg, rgba(214, 183, 106, .075), rgba(43, 229, 151, .035)),
    rgba(0, 0, 0, .24);
}

.securities-page .security-result-symbol {
  width: 44px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(214, 183, 106, .22);
  border-radius: 12px;
  background: rgba(214, 183, 106, .08);
  color: var(--champagne);
  font-size: 11px;
  font-weight: 950;
  overflow: hidden;
}

.securities-page .security-result-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.securities-page .security-result-name {
  overflow: hidden;
  color: rgba(245, 240, 228, .92) !important;
  font-size: 14px !important;
  font-weight: 900;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.securities-page .security-result-copy small {
  overflow: hidden;
  color: rgba(245, 240, 228, .54) !important;
  font-size: 12px !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.securities-page .security-result-action {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(43, 229, 151, .18);
  border-radius: 999px;
  color: rgba(43, 229, 151, .86) !important;
  font-size: 11px !important;
  font-weight: 900;
  white-space: nowrap;
}

.securities-page .security-add-panel.has-selection .security-search-results {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.securities-page .security-add-panel.has-selection .security-search-row {
  grid-template-columns: minmax(0, 1fr);
}

.securities-page .security-add-panel.has-selection .security-search-row .icon-button {
  display: none;
}

.securities-page .security-table-panel {
  order: 5;
  padding: 18px;
  border-color: rgba(245, 240, 228, .1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012)),
    rgba(6, 8, 10, .78);
}

.securities-page .security-disclaimer {
  order: 7;
}

.securities-page .security-market-panel {
  order: 6;
}

.securities-page .section-heading.inline {
  margin-bottom: 16px;
}

.securities-page .security-position-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

.securities-page .security-position-card {
  position: relative;
  min-height: 224px;
  border-color: rgba(139, 199, 255, .12);
  background:
    radial-gradient(circle at 100% 0%, rgba(139, 199, 255, .06), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .044), rgba(255, 255, 255, .012)),
    rgba(6, 8, 10, .86);
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.securities-page .security-position-card:hover {
  border-color: rgba(239, 207, 131, .36);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .28);
}

.securities-page .security-position-card.is-pending-sync {
  border-color: rgba(239, 207, 131, .32);
}

.security-card-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.security-sync-badge {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.security-sync-badge.is-synced {
  border: 1px solid rgba(43, 229, 151, .24);
  color: var(--emerald);
  background: rgba(43, 229, 151, .08);
}

.security-sync-badge.is-pending {
  border: 1px solid rgba(239, 207, 131, .32);
  color: var(--gold);
  background: rgba(239, 207, 131, .08);
}

.securities-page .security-table-shell {
  border-radius: 12px;
}

.securities-page .security-table-shell table {
  min-width: 1120px;
}

.securities-page .security-table-shell th {
  height: 54px;
  color: rgba(245, 240, 228, .54);
  font-size: 11px;
}

.securities-page .security-table-shell td {
  padding-block: 18px;
}

.securities-page .security-table-shell tbody tr.is-pending-sync {
  background: rgba(239, 207, 131, .035);
}

.securities-page .security-kpi-grid {
  order: 1;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(98px, auto);
}

.securities-page .security-kpi-grid .asset-kpi {
  min-height: 98px;
  padding: 14px 15px;
}

.securities-page .security-kpi-grid .asset-kpi.primary {
  grid-column: span 2;
  min-height: 98px;
}

.securities-page .security-kpi-grid .asset-kpi.primary strong {
  font-size: clamp(26px, 2.5vw, 40px);
}

.securities-page .security-add-panel {
  order: 2;
  grid-column: 1 / -1;
  position: static;
  top: auto;
  max-height: none;
  overflow: visible;
  display: grid;
  grid-template-columns: minmax(260px, .55fr) minmax(0, 1.45fr);
  gap: 16px 18px;
  align-items: start;
  padding: 18px;
  border-color: rgba(214, 183, 106, .16);
  background:
    radial-gradient(circle at 94% 8%, rgba(43, 229, 151, .08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012)),
    rgba(7, 10, 12, .9);
}

.securities-page .security-add-panel .panel-heading.compact {
  margin: 0;
  padding: 0;
  align-items: start;
}

.securities-page .security-add-panel .panel-heading.compact h2 {
  max-width: 360px;
  font-size: clamp(24px, 2vw, 32px);
}

.securities-page .security-search-hero {
  min-width: 0;
  gap: 10px;
}

.securities-page .security-search-row {
  grid-template-columns: minmax(0, 1fr) minmax(128px, auto);
}

.securities-page .security-search-results {
  max-height: 230px;
}

.securities-page .security-add-panel.has-selection {
  grid-template-columns: minmax(220px, .42fr) minmax(0, 1.58fr);
}

.securities-page .security-add-panel.has-selection .security-search-hero {
  align-self: stretch;
}

.securities-page .security-add-panel.has-selection .security-search-results {
  margin-top: 0;
}

.securities-page .security-simple-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(280px, 1fr) minmax(220px, .72fr);
  gap: 14px;
  margin-top: 2px;
  padding-top: 14px;
}

.securities-page .security-selected-card,
.securities-page .security-entry-mode,
.securities-page .security-entry-grid {
  min-width: 0;
}

.securities-page .security-entry-mode {
  align-content: start;
}

.securities-page .security-entry-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.securities-page .security-advanced,
.securities-page .asset-form-actions {
  grid-column: 1 / -1;
}

.securities-page .asset-form-actions {
  padding-top: 2px;
  border-top: 1px solid rgba(245, 240, 228, .08);
}

.securities-page .security-portfolio-chart-panel {
  order: 3;
  grid-column: 1 / -1;
  min-height: 0;
  padding: 20px;
}

.securities-page .security-portfolio-chart-layout {
  grid-template-columns: minmax(0, 1fr) minmax(190px, 240px);
}

.securities-page .security-portfolio-chart-shell,
.securities-page .security-portfolio-chart-shell .security-chart-empty,
.securities-page .security-portfolio-chart-shell .security-history-chart {
  min-height: 430px;
}

.securities-page .security-portfolio-chart-side article {
  min-height: 132px;
}

.securities-page .security-table-panel {
  order: 4;
  padding: 22px;
}

.securities-page .security-position-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.securities-page .security-position-card {
  min-height: 0;
}

.securities-page .security-market-panel {
  order: 5;
}

.securities-page .security-disclaimer {
  order: 6;
}

@media (max-width: 1320px) {
  .securities-page .security-kpi-grid,
  .securities-page .security-portfolio-chart-panel,
  .securities-page .security-add-panel {
    grid-column: 1 / -1;
  }

  .securities-page .security-search-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .securities-page .security-position-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .securities-page .command-bar h1 {
    font-size: 36px;
  }

  .securities-page .securities-head,
  .securities-page .desk-meta {
    align-items: stretch;
  }

  .securities-page .desk-meta {
    justify-content: flex-start;
  }

  .securities-page .security-kpi-grid,
  .securities-page .security-status-grid,
  .securities-page .security-search-results,
  .securities-page .security-entry-grid,
  .securities-page .security-portfolio-chart-layout,
  .securities-page .security-position-cards {
    grid-template-columns: 1fr;
  }

  .securities-page .security-portfolio-chart-panel {
    min-height: 0;
    padding: 16px;
  }

  .securities-page .security-portfolio-chart-summary {
    justify-content: flex-start;
  }

  .securities-page .security-portfolio-chart-summary span {
    min-width: min(100%, 180px);
  }

  .securities-page .security-portfolio-chart-side {
    grid-template-columns: 1fr;
  }

  .securities-page .security-search-row {
    grid-template-columns: 1fr;
  }

  .securities-page .security-search-row .icon-button {
    width: 100%;
  }

  .securities-page .security-search-results button.security-result-card {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .securities-page .security-result-symbol {
    width: 40px;
    height: 38px;
  }

  .securities-page .security-result-action {
    display: none;
  }

  .securities-page .security-kpi-grid .asset-kpi.primary {
    grid-column: auto;
    grid-row: auto;
    min-height: 154px;
  }

  .securities-page .security-kpi-grid .asset-kpi.primary strong {
    font-size: 40px;
  }

  .securities-page .security-table-shell {
    display: none;
  }

  .securities-page .security-position-card {
    min-height: 0;
  }
}

@media (max-width: 1320px) {
  .securities-page .security-add-panel,
  .securities-page .security-add-panel.has-selection {
    grid-template-columns: 1fr;
  }

  .securities-page .security-simple-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .securities-page .security-selected-card,
  .securities-page .security-entry-mode,
  .securities-page .asset-form-actions {
    grid-column: 1 / -1;
  }

  .securities-page .security-portfolio-chart-layout {
    grid-template-columns: 1fr;
  }

  .securities-page .security-portfolio-chart-side {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
  }
}

@media (max-width: 860px) {
  .securities-page .security-add-panel,
  .securities-page .security-portfolio-chart-panel,
  .securities-page .security-table-panel {
    padding: 16px;
  }

  .securities-page .security-simple-form,
  .securities-page .security-entry-grid,
  .securities-page .security-portfolio-chart-side,
  .securities-page .security-position-cards {
    grid-template-columns: 1fr;
  }

  .securities-page .security-portfolio-chart-summary {
    display: grid;
    grid-template-columns: 1fr;
  }

  .securities-page .security-portfolio-chart-summary span {
    min-width: 0;
  }

  .securities-page .security-portfolio-chart-shell,
  .securities-page .security-portfolio-chart-shell .security-chart-empty,
  .securities-page .security-portfolio-chart-shell .security-history-chart {
    min-height: 330px;
  }

.securities-page .security-kpi-grid .asset-kpi.primary {
    min-height: 118px;
  }
}

.securities-page .security-portfolio-chart-layout {
  grid-template-columns: minmax(0, 1fr) minmax(150px, 188px);
  gap: 14px;
}

.securities-page .security-portfolio-chart-side {
  gap: 8px;
  grid-template-rows: repeat(3, minmax(88px, auto));
  align-content: start;
}

.securities-page .security-portfolio-chart-side article {
  min-height: 0;
  align-content: start;
  gap: 6px;
  padding: 12px 13px;
  border-color: rgba(245, 240, 228, .065);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .026), rgba(255, 255, 255, .008)),
    rgba(0, 0, 0, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

.securities-page .security-portfolio-chart-side span {
  color: rgba(245, 240, 228, .42);
  font-size: 9.5px;
  letter-spacing: .02em;
}

.securities-page .security-portfolio-chart-side strong {
  max-width: 100%;
  color: rgba(245, 240, 228, .88);
  font-size: clamp(15px, 1vw, 21px);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.securities-page .security-portfolio-chart-side strong.is-positive,
.securities-page .security-portfolio-chart-side strong.is-negative {
  font-size: clamp(18px, 1.2vw, 24px);
  font-weight: 900;
}

.securities-page .security-portfolio-chart-side strong.is-unavailable,
.securities-page #securityPortfolioChartStatus {
  color: rgba(245, 240, 228, .62);
  font-size: clamp(13px, .95vw, 16px);
  font-weight: 800;
  line-height: 1.18;
  text-transform: none;
}

.securities-page .security-portfolio-chart-side small {
  color: rgba(245, 240, 228, .5);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.3;
}

@media (max-width: 1320px) {
  .securities-page .security-portfolio-chart-layout {
    grid-template-columns: 1fr;
  }

  .securities-page .security-portfolio-chart-side {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
  }
}

@media (max-width: 860px) {
  .securities-page .security-portfolio-chart-side {
    grid-template-columns: 1fr;
  }
}

/* Individual security chart page */
.security-detail-page .security-detail-hero {
  align-items: center;
}

.security-detail-page .security-detail-workspace {
  align-items: start;
}

.security-detail-page .security-detail-kpis {
  grid-column: 1 / -1;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.security-detail-page .security-detail-kpis .asset-kpi {
  min-height: 104px;
  padding: 15px 16px;
  border-color: rgba(245, 240, 228, .085);
}

.security-detail-page .security-detail-kpis .asset-kpi strong {
  letter-spacing: 0;
  font-size: clamp(22px, 2vw, 34px);
}

.security-detail-page .security-detail-kpis .asset-kpi.is-unavailable {
  border-color: rgba(245, 240, 228, .075);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .032), rgba(255, 255, 255, .01)),
    rgba(5, 6, 7, .68);
}

.security-detail-page .security-detail-kpis .asset-kpi.is-unavailable strong {
  display: inline-flex;
  align-self: end;
  width: fit-content;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(245, 240, 228, .09);
  border-radius: 999px;
  background: rgba(255, 255, 255, .026);
  color: rgba(245, 240, 228, .54);
  font-size: clamp(12px, .86vw, 14px);
  line-height: 1;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
}

.security-chart-panel {
  grid-column: span 8;
  min-height: 560px;
  padding: 18px;
  border-color: rgba(139, 199, 255, .14);
  background:
    radial-gradient(circle at 100% 0%, rgba(139, 199, 255, .09), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, .042), rgba(255, 255, 255, .012)),
    rgba(7, 10, 12, .9);
}

.security-detail-side {
  grid-column: span 4;
  padding: 18px;
  border-color: rgba(214, 183, 106, .16);
  background:
    radial-gradient(circle at 0% 0%, rgba(214, 183, 106, .08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012)),
    rgba(7, 10, 12, .88);
}

.security-detail-side .panel-heading {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(245, 240, 228, .08);
}

.security-detail-side .panel-heading h2 {
  font-size: clamp(22px, 1.7vw, 30px);
  line-height: 1;
}

.security-chart-heading {
  align-items: start;
  gap: 14px;
}

.security-range-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.security-range-tabs button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(245, 240, 228, .11);
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  color: rgba(245, 240, 228, .76);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease;
}

.security-range-tabs button:hover,
.security-range-tabs button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(139, 199, 255, .38);
  color: var(--porcelain);
  outline: none;
}

.security-range-tabs button.is-active {
  border-color: rgba(239, 207, 131, .58);
  background: rgba(239, 207, 131, .1);
  color: var(--porcelain);
}

.security-chart-shell {
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(245, 240, 228, .1);
  border-radius: 10px;
  background:
    linear-gradient(rgba(255, 255, 255, .026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px),
    rgba(8, 12, 14, .84);
  background-size: 72px 72px;
}

.security-chart-empty {
  min-height: 430px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: rgba(245, 240, 228, .58);
  font-size: 15px;
  font-weight: 850;
  text-align: center;
}

.security-history-chart {
  display: block;
  width: 100%;
  height: auto;
  min-height: 430px;
}

.security-chart-grid line {
  stroke: rgba(245, 240, 228, .09);
  stroke-width: 1;
}

.security-chart-grid text {
  fill: rgba(245, 240, 228, .58);
  font-size: 12px;
  font-weight: 850;
  text-anchor: start;
}

.security-chart-grid .security-chart-ylabel {
  fill: rgba(245, 240, 228, .7);
  font-size: 12px;
  font-weight: 900;
}

.security-chart-previous line {
  stroke: rgba(245, 240, 228, .42);
  stroke-width: 1;
  stroke-dasharray: 4 5;
}

.security-chart-previous text {
  fill: rgba(245, 240, 228, .56);
  font-size: 11px;
  font-weight: 850;
  text-anchor: start;
}

.security-chart-area {
  fill: url("#securityChartFill");
}

.security-chart-line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 8px 18px rgba(53, 214, 139, .14));
}

.security-chart-point {
  fill: var(--gold);
  stroke: rgba(7, 8, 7, .88);
  stroke-width: 3;
}

.security-chart-xaxis text {
  fill: rgba(245, 240, 228, .58);
  font-size: 12px;
  font-weight: 850;
  text-anchor: middle;
}

.security-detail-side .security-detail-grid {
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(245, 240, 228, .085);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .028), rgba(255, 255, 255, .008)),
    rgba(0, 0, 0, .2);
}

.security-detail-side .security-detail-grid article {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(96px, .72fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 0;
  border-bottom: 1px solid rgba(245, 240, 228, .065);
  border-radius: 0;
  background: transparent;
}

.security-detail-side .security-detail-grid article:last-child {
  border-bottom: 0;
}

.security-detail-side .security-detail-grid span {
  color: rgba(245, 240, 228, .43);
  font-size: 10px;
  letter-spacing: .02em;
}

.security-detail-side .security-detail-grid strong {
  min-width: 0;
  color: rgba(245, 240, 228, .9);
  font-size: 15px;
  font-weight: 900;
  text-align: right;
  overflow-wrap: anywhere;
}

.security-table-shell tbody tr[data-security-detail],
.security-position-card[data-security-detail] {
  cursor: pointer;
}

.security-table-shell tbody tr[data-security-detail]:hover {
  background:
    linear-gradient(90deg, rgba(139, 199, 255, .07), rgba(214, 183, 106, .025)),
    rgba(255, 255, 255, .018);
}

.security-table-shell tbody tr[data-security-detail]:focus-visible,
.security-position-card[data-security-detail]:focus-visible {
  outline: 2px solid rgba(139, 199, 255, .55);
  outline-offset: -2px;
}

@media (max-width: 1280px) {
  .security-detail-page .security-detail-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .security-chart-panel,
  .security-detail-side {
    grid-column: 1 / -1;
  }

  .security-detail-side .security-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .security-detail-page .security-detail-kpis,
  .security-detail-side .security-detail-grid {
    grid-template-columns: 1fr;
  }

  .security-chart-panel,
  .security-detail-side {
    padding: 16px;
  }

  .security-chart-shell,
  .security-chart-empty,
  .security-history-chart {
    min-height: 330px;
  }

  .security-detail-page .security-detail-hero {
    align-items: stretch;
  }
}

.mobile-nav-toggle {
  display: none;
}

@media (max-width: 860px) {
  body:not(.entry-body) .app-shell,
  .counter-page .app-shell,
  .dashboard-page .app-shell,
  .assets-page .app-shell {
    display: block;
  }

  body:not(.entry-body) .side-rail,
  .counter-page .side-rail,
  .dashboard-page .side-rail,
  .assets-page .side-rail {
    position: sticky;
    top: 0;
    z-index: 80;
    height: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(245, 240, 228, .1);
    background:
      linear-gradient(180deg, rgba(9, 12, 13, .98), rgba(4, 5, 5, .96)),
      rgba(5, 6, 6, .96);
    backdrop-filter: blur(18px);
  }

  body:not(.entry-body) .side-rail .brand,
  .counter-page .side-rail .brand,
  .dashboard-page .side-rail .brand,
  .assets-page .side-rail .brand {
    grid-column: 1;
    min-height: 48px;
    min-width: 0;
  }

  body:not(.entry-body) .side-rail .brand-mark,
  .counter-page .side-rail .brand-mark,
  .dashboard-page .side-rail .brand-mark,
  .assets-page .side-rail .brand-mark {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  body:not(.entry-body) .side-rail .brand-copy strong,
  .counter-page .side-rail .brand-copy strong,
  .dashboard-page .side-rail .brand-copy strong,
  .assets-page .side-rail .brand-copy strong {
    font-size: 14px;
  }

  body:not(.entry-body) .side-rail .brand-copy span,
  .counter-page .side-rail .brand-copy span,
  .dashboard-page .side-rail .brand-copy span,
  .assets-page .side-rail .brand-copy span {
    font-size: 12px;
  }

  .mobile-nav-toggle {
    grid-column: 2;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 11px 0 13px;
    border: 1px solid rgba(215, 181, 109, .24);
    border-radius: 999px;
    background:
      linear-gradient(180deg, rgba(245, 240, 228, .055), rgba(245, 240, 228, .016)),
      rgba(0, 0, 0, .24);
    color: var(--porcelain);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
  }

  .mobile-nav-toggle-copy {
    display: grid;
    gap: 1px;
    text-align: left;
  }

  .mobile-nav-toggle small {
    color: var(--champagne);
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
  }

  .mobile-nav-toggle strong {
    max-width: 118px;
    overflow: hidden;
    color: rgba(245, 240, 228, .92);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-nav-chevron {
    width: 19px;
    height: 19px;
    fill: currentColor;
    opacity: .78;
    transition: transform .18s ease;
  }

  .mobile-nav-toggle[aria-expanded="true"] .mobile-nav-chevron {
    transform: rotate(180deg);
  }

  body:not(.entry-body) .side-rail .rail-nav,
  .counter-page .side-rail .rail-nav,
  .dashboard-page .side-rail .rail-nav,
  .assets-page .side-rail .rail-nav {
    grid-column: 1 / -1;
    display: none;
    grid-template-columns: 1fr;
    gap: 6px;
    width: 100%;
    min-width: 0;
    margin: 2px 0 0;
    padding: 8px;
    border: 1px solid rgba(245, 240, 228, .09);
    border-radius: 14px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)),
      rgba(0, 0, 0, .34);
  }

  body:not(.entry-body) .side-rail.mobile-nav-open .rail-nav,
  .counter-page .side-rail.mobile-nav-open .rail-nav,
  .dashboard-page .side-rail.mobile-nav-open .rail-nav,
  .assets-page .side-rail.mobile-nav-open .rail-nav {
    display: grid;
    animation: mobile-nav-dropdown .16s ease-out;
  }

  body:not(.entry-body) .side-rail .nav-link,
  .counter-page .side-rail .nav-link,
  .dashboard-page .side-rail .nav-link,
  .assets-page .side-rail .nav-link {
    min-height: 44px;
    justify-content: flex-start;
    gap: 10px;
    padding: 0 11px;
    border-radius: 10px;
    font-size: 14px;
  }

  body:not(.entry-body) .side-rail .nav-link.is-active,
  .counter-page .side-rail .nav-link.is-active,
  .dashboard-page .side-rail .nav-link.is-active,
  .assets-page .side-rail .nav-link.is-active {
    background:
      linear-gradient(135deg, rgba(215, 181, 109, .13), rgba(43, 229, 151, .045)),
      rgba(255, 255, 255, .025);
  }

  body:not(.entry-body) .side-rail .nav-icon,
  .counter-page .side-rail .nav-icon,
  .dashboard-page .side-rail .nav-icon,
  .assets-page .side-rail .nav-icon {
    width: 18px;
    height: 18px;
  }

  body:not(.entry-body) .side-rail .sync-status,
  body:not(.entry-body) .side-rail .auth-card,
  body:not(.entry-body) .side-rail .rail-note,
  .counter-page .side-rail .sync-status,
  .counter-page .side-rail .auth-card,
  .counter-page .side-rail .rail-note,
  .dashboard-page .side-rail .sync-status,
  .dashboard-page .side-rail .auth-card,
  .dashboard-page .side-rail .rail-note,
  .assets-page .side-rail .sync-status,
  .assets-page .side-rail .auth-card,
  .assets-page .side-rail .rail-note {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
  }

  body:not(.entry-body) .side-rail.mobile-nav-open .sync-status,
  body:not(.entry-body) .side-rail.mobile-nav-open .auth-card,
  body:not(.entry-body) .side-rail.mobile-nav-open .rail-note,
  .counter-page .side-rail.mobile-nav-open .sync-status,
  .counter-page .side-rail.mobile-nav-open .auth-card,
  .counter-page .side-rail.mobile-nav-open .rail-note,
  .dashboard-page .side-rail.mobile-nav-open .sync-status,
  .dashboard-page .side-rail.mobile-nav-open .auth-card,
  .dashboard-page .side-rail.mobile-nav-open .rail-note,
  .assets-page .side-rail.mobile-nav-open .sync-status,
  .assets-page .side-rail.mobile-nav-open .auth-card,
  .assets-page .side-rail.mobile-nav-open .rail-note {
    display: grid;
  }
}

@media (max-width: 420px) {
  .mobile-nav-toggle {
    min-width: 46px;
    padding-inline: 12px;
  }

  .mobile-nav-toggle-copy {
    display: none;
  }
}

@keyframes mobile-nav-dropdown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* MoneyCounter live panel follows the Arbeitszeit live structure */
.counter-page .live-panel {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(300px, 1.04fr);
  align-content: start;
  gap: 16px;
  min-height: 510px;
  padding: clamp(20px, 2vw, 26px);
  border-color: rgba(53, 214, 139, .22);
  background:
    linear-gradient(rgba(245, 240, 228, .026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 240, 228, .02) 1px, transparent 1px),
    radial-gradient(circle at 96% 0%, rgba(53, 214, 139, .14), transparent 30%),
    linear-gradient(135deg, rgba(8, 13, 14, .98), rgba(10, 15, 15, .96) 54%, rgba(7, 8, 8, .98));
  background-size: 42px 42px, 42px 42px, 100% 100%, 100% 100%;
}

.counter-page .live-panel .counter-card-head {
  order: 1;
  grid-column: 1 / -1;
}

.counter-page .live-panel .market-symbol .eyebrow,
.counter-page .live-panel .live-value:not(.is-negative) {
  color: var(--emerald);
}

.counter-page .live-panel .live-value::first-letter {
  color: var(--emerald);
}

.counter-page .live-panel .counter-readout {
  order: 2;
  grid-column: 1;
  min-width: 0;
  align-self: start;
}

.counter-page .live-panel .live-value {
  font-size: clamp(54px, 4.9vw, 82px);
  line-height: .95;
}

.counter-page .live-panel .goal-progress {
  order: 2;
  grid-column: 2;
  align-self: stretch;
  padding: 14px;
  border: 1px solid rgba(53, 214, 139, .12);
  border-radius: calc(var(--radius) - 4px);
  background:
    radial-gradient(circle at 100% 0%, rgba(53, 214, 139, .08), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012)),
    rgba(0, 0, 0, .18);
}

.counter-page .live-panel .money-activity-visual {
  order: 3;
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  justify-self: stretch;
  border-color: rgba(53, 214, 139, .13);
  background:
    linear-gradient(rgba(245, 240, 228, .024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 240, 228, .018) 1px, transparent 1px),
    radial-gradient(circle at 100% 0%, rgba(53, 214, 139, .08), transparent 38%),
    rgba(0, 0, 0, .2);
  background-size: 64px 64px, 64px 64px, auto, auto;
}

.counter-page .live-panel .money-activity-head small {
  border-color: rgba(53, 214, 139, .2);
  background: rgba(53, 214, 139, .07);
  color: rgba(181, 255, 221, .82);
}

.counter-page .live-panel .money-chart-pause-band {
  fill: rgba(239, 207, 131, .08);
}

.counter-page .live-panel .money-chart-line {
  stroke: var(--emerald);
  filter: drop-shadow(0 10px 22px rgba(53, 214, 139, .2));
}

.counter-page .live-panel .money-chart-point {
  fill: var(--emerald);
}

.counter-page .live-panel .money-live-chart.is-negative .money-chart-line {
  stroke: var(--ruby);
  filter: drop-shadow(0 10px 22px rgba(232, 113, 99, .18));
}

.counter-page .live-panel .money-live-chart.is-negative .money-chart-point {
  fill: var(--ruby);
}

.counter-page .live-panel .counter-controls {
  order: 4;
  grid-column: 1 / -1;
  padding-top: 4px;
}

.counter-page .live-panel .counter-metrics {
  order: 5;
  grid-column: 1 / -1;
}

@media (max-width: 1180px) {
  .counter-page .live-panel {
    grid-template-columns: 1fr;
  }

  .counter-page .live-panel .counter-readout,
  .counter-page .live-panel .goal-progress {
    grid-column: 1;
  }
}

@media (max-width: 860px) {
  .counter-page .live-panel .money-activity-visual {
    width: 100%;
  }
}

.counter-page .live-panel .live-value.is-live-ticking {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", ui-monospace, monospace;
  font-size: clamp(44px, 4.2vw, 70px);
  font-kerning: none;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1, "kern" 0;
  letter-spacing: 0;
  text-shadow: 0 0 30px rgba(53, 214, 139, .16);
  white-space: nowrap;
  overflow-wrap: normal;
  text-rendering: geometricPrecision;
}

.counter-page .live-panel .live-value.is-live-ticking.is-negative {
  text-shadow: 0 0 30px rgba(232, 113, 99, .15);
}

@media (max-width: 1180px) {
  .counter-page .live-panel .live-value.is-live-ticking {
    font-size: clamp(40px, 8vw, 66px);
  }
}

@media (max-width: 520px) {
  .counter-page .live-panel .live-value.is-live-ticking {
    font-size: clamp(30px, 9.6vw, 39px);
  }
}

/* Arbeitszeit panel sequence: timer, live chart, overview */
.worktime-page .worktime-live-panel .counter-card-head {
  order: 1;
}

.worktime-page .worktime-live-panel .counter-readout,
.worktime-page .worktime-live-panel .goal-progress {
  order: 2;
}

.worktime-page .worktime-live-panel .worktime-activity-visual {
  order: 3;
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  justify-self: stretch;
}

.worktime-page .worktime-live-panel .metric-grid {
  order: 4;
  grid-column: 1 / -1;
}

.worktime-page .worktime-live-panel .counter-controls {
  order: 5;
  grid-column: 1 / -1;
}

/* Professional sidebar refresh */
body:not(.entry-body) .app-shell,
.counter-page .app-shell,
.dashboard-page .app-shell,
.assets-page .app-shell {
  grid-template-columns: 292px minmax(0, 1fr);
}

body:not(.entry-body) .side-rail,
.counter-page .side-rail,
.dashboard-page .side-rail,
.assets-page .side-rail {
  gap: 18px;
  padding: 28px 24px 22px;
  border-right: 1px solid rgba(245, 240, 228, .08);
  background:
    linear-gradient(180deg, rgba(139, 199, 255, .045), transparent 24%),
    linear-gradient(90deg, rgba(255, 255, 255, .026), rgba(255, 255, 255, 0)),
    rgba(4, 6, 7, .97);
  box-shadow:
    inset -1px 0 0 rgba(255, 255, 255, .025),
    24px 0 70px rgba(0, 0, 0, .22);
}

body:not(.entry-body) .side-rail .brand,
.counter-page .side-rail .brand,
.dashboard-page .side-rail .brand,
.assets-page .side-rail .brand {
  min-height: 60px;
  gap: 13px;
  padding-bottom: 19px;
  border-bottom: 1px solid rgba(245, 240, 228, .085);
}

body:not(.entry-body) .side-rail .brand-mark,
.counter-page .side-rail .brand-mark,
.dashboard-page .side-rail .brand-mark,
.assets-page .side-rail .brand-mark {
  width: 50px;
  height: 50px;
  flex-basis: 50px;
  border-radius: 10px;
  border-color: rgba(215, 181, 109, .28);
  background:
    linear-gradient(145deg, rgba(215, 181, 109, .17), rgba(245, 240, 228, .035)),
    rgba(10, 11, 10, .94);
  color: var(--gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
}

body:not(.entry-body) .side-rail .brand-copy strong,
.counter-page .side-rail .brand-copy strong,
.dashboard-page .side-rail .brand-copy strong,
.assets-page .side-rail .brand-copy strong {
  color: rgba(245, 240, 228, .96);
  font-size: 15px;
  line-height: 1.2;
}

body:not(.entry-body) .side-rail .brand-copy span,
.counter-page .side-rail .brand-copy span,
.dashboard-page .side-rail .brand-copy span,
.assets-page .side-rail .brand-copy span {
  color: rgba(245, 240, 228, .52);
  font-size: 12px;
}

body:not(.entry-body) .side-rail .rail-nav,
.counter-page .side-rail .rail-nav,
.dashboard-page .side-rail .rail-nav,
.assets-page .side-rail .rail-nav {
  gap: 4px;
  padding: 3px 0 16px;
  border-bottom: 1px solid rgba(245, 240, 228, .07);
}

body:not(.entry-body) .side-rail .rail-nav::before,
.counter-page .side-rail .rail-nav::before,
.dashboard-page .side-rail .rail-nav::before,
.assets-page .side-rail .rail-nav::before {
  content: "Navigation";
  display: block;
  margin: 0 0 8px;
  padding: 0 4px;
  color: rgba(215, 181, 109, .74);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

body:not(.entry-body) .side-rail .nav-icon,
.counter-page .side-rail .nav-icon,
.dashboard-page .side-rail .nav-icon,
.assets-page .side-rail .nav-icon {
  display: none !important;
}

body:not(.entry-body) .side-rail .nav-link,
.counter-page .side-rail .nav-link,
.dashboard-page .side-rail .nav-link,
.assets-page .side-rail .nav-link {
  position: relative;
  min-height: 42px;
  gap: 0;
  padding: 0 13px 0 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: rgba(245, 240, 228, .68);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.1;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

body:not(.entry-body) .side-rail .nav-link > span:not(.nav-icon),
.counter-page .side-rail .nav-link > span:not(.nav-icon),
.dashboard-page .side-rail .nav-link > span:not(.nav-icon),
.assets-page .side-rail .nav-link > span:not(.nav-icon) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not(.entry-body) .side-rail .nav-link:hover,
.counter-page .side-rail .nav-link:hover,
.dashboard-page .side-rail .nav-link:hover,
.assets-page .side-rail .nav-link:hover {
  border-color: rgba(245, 240, 228, .1);
  background: rgba(255, 255, 255, .035);
  color: rgba(245, 240, 228, .9);
  transform: translateX(2px);
}

body:not(.entry-body) .side-rail .nav-link.is-active,
.counter-page .side-rail .nav-link.is-active,
.dashboard-page .side-rail .nav-link.is-active,
.assets-page .side-rail .nav-link.is-active {
  border-color: rgba(215, 181, 109, .28);
  background:
    linear-gradient(90deg, rgba(215, 181, 109, .13), rgba(215, 181, 109, .035)),
    rgba(255, 255, 255, .018);
  color: rgba(245, 240, 228, .98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .045),
    0 12px 34px rgba(0, 0, 0, .18);
}

body:not(.entry-body) .side-rail .nav-link.is-active::before,
.counter-page .side-rail .nav-link.is-active::before,
.dashboard-page .side-rail .nav-link.is-active::before,
.assets-page .side-rail .nav-link.is-active::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 999px;
  background: var(--gold);
}

body:not(.entry-body) .side-rail .sync-status,
body:not(.entry-body) .side-rail .auth-card,
body:not(.entry-body) .side-rail .rail-note,
.counter-page .side-rail .sync-status,
.counter-page .side-rail .auth-card,
.counter-page .side-rail .rail-note,
.dashboard-page .side-rail .sync-status,
.dashboard-page .side-rail .auth-card,
.dashboard-page .side-rail .rail-note,
.assets-page .side-rail .sync-status,
.assets-page .side-rail .auth-card,
.assets-page .side-rail .rail-note {
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .032), rgba(255, 255, 255, .01)),
    rgba(0, 0, 0, .22);
  box-shadow: none;
}

body:not(.entry-body) .side-rail .sync-status,
.counter-page .side-rail .sync-status,
.dashboard-page .side-rail .sync-status,
.assets-page .side-rail .sync-status {
  padding: 12px;
}

body:not(.entry-body) .side-rail .auth-card,
.counter-page .side-rail .auth-card,
.dashboard-page .side-rail .auth-card,
.assets-page .side-rail .auth-card {
  padding: 14px;
}

body:not(.entry-body) .side-rail .rail-note,
.counter-page .side-rail .rail-note,
.dashboard-page .side-rail .rail-note,
.assets-page .side-rail .rail-note {
  margin-top: auto;
  padding: 15px;
  border-color: rgba(53, 214, 139, .18);
  background:
    linear-gradient(180deg, rgba(53, 214, 139, .07), rgba(53, 214, 139, .025)),
    rgba(0, 0, 0, .18);
}

@media (max-width: 860px) {
  body:not(.entry-body) .app-shell,
  .counter-page .app-shell,
  .dashboard-page .app-shell,
  .assets-page .app-shell {
    display: block;
  }

  body:not(.entry-body) .side-rail,
  .counter-page .side-rail,
  .dashboard-page .side-rail,
  .assets-page .side-rail {
    padding: 10px 12px;
  }

  body:not(.entry-body) .side-rail .brand,
  .counter-page .side-rail .brand,
  .dashboard-page .side-rail .brand,
  .assets-page .side-rail .brand {
    padding-bottom: 0;
    border-bottom: 0;
  }

  body:not(.entry-body) .side-rail .rail-nav,
  .counter-page .side-rail .rail-nav,
  .dashboard-page .side-rail .rail-nav,
  .assets-page .side-rail .rail-nav {
    padding: 8px;
    border-bottom: 0;
  }

  body:not(.entry-body) .side-rail .rail-nav::before,
  .counter-page .side-rail .rail-nav::before,
  .dashboard-page .side-rail .rail-nav::before,
  .assets-page .side-rail .rail-nav::before {
    margin: 2px 3px 6px;
  }

  body:not(.entry-body) .side-rail .nav-link,
  .counter-page .side-rail .nav-link,
  .dashboard-page .side-rail .nav-link,
  .assets-page .side-rail .nav-link {
    min-height: 42px;
    padding: 0 12px;
    transform: none;
  }
}
