*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
}

:root {
  --red: #b01020;
  --red-hover: #8d0c19;
  --red-deep: #6d0a14;
  --red-soft: #f8ecec;
  --ink: #1b1b1b;
  --ink-2: #3a3a3a;
  --muted: #5e5e5e;
  --line: #ddd9d4;
  --line-2: #eeebe6;
  --paper: #f4f1ec;
  --white: #ffffff;
  --up: #146c43;
  --down: #b01020;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  --header-h: 64px;
  --ticker-h: 34px;
  --util-h: 32px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--red);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a, button, input, select, textarea, label {
  touch-action: manipulation;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.wrap-wide {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.serif {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
}

.up {
  color: var(--up);
}

.down {
  color: var(--down);
}

.muted {
  color: var(--muted);
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
}

.skip:focus {
  left: 8px;
  background: #fff;
  padding: 8px 12px;
  z-index: 100;
}

/* Top utility */
.util {
  background: #111;
  color: #d8d8d8;
  font-size: 12px;
  height: var(--util-h);
  display: flex;
  align-items: center;
}

.util .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: min(1280px, calc(100% - 32px));
}

.util a {
  color: #d8d8d8;
  margin-right: 16px;
}

.util a:hover {
  color: #fff;
  text-decoration: none;
}

.util-right {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2ecc71;
  display: inline-block;
  margin-right: 6px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid #3a3a3a;
  margin-right: 4px;
}

.lang-switch a {
  margin: 0 !important;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #b8b8b8 !important;
  text-decoration: none !important;
  border-right: 1px solid #3a3a3a;
}

.lang-switch a:last-child {
  border-right: 0;
}

.lang-switch a.on,
.lang-switch a:hover {
  color: #fff !important;
  background: #b01020;
}

.footer .lang-switch {
  margin-top: 14px;
  border-color: #d8d4ce;
}

.footer .lang-switch a {
  color: var(--ink-2) !important;
  border-right-color: #d8d4ce;
}

.footer .lang-switch a.on,
.footer .lang-switch a:hover {
  color: #fff !important;
  background: #b01020;
}

.dash .lang-switch {
  border-color: #3a3a3a;
}

/* Header */
.header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-row {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand-lockup {
  display: block;
  height: 54px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.header .brand-lockup {
  height: 52px;
  max-width: min(340px, 62vw);
}

.mark {
  width: 34px;
  height: 34px;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}

.mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mark:has(img) {
  width: 44px;
  height: 44px;
  background: transparent;
  overflow: hidden;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 16.5px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.brand-text span {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.header .brand-text strong {
  font-size: 15px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.header .brand-text .brand-partner {
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: none;
  white-space: nowrap;
  color: var(--muted);
}

.header .brand-text .brand-partner span {
  color: var(--red);
  letter-spacing: 0.02em;
  text-transform: none;
}

.nav {
  display: flex;
  align-items: stretch;
  height: 100%;
  flex: 1;
}

.nav > a,
.nav .has-menu > button,
.nav .has-menu > a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 13px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.nav > a:hover,
.nav .has-menu:hover > button,
.nav .has-menu:hover > a,
.nav > a:focus,
.nav .has-menu > button:focus,
.nav .has-menu > a:focus {
  color: var(--red);
  border-bottom-color: var(--red);
  text-decoration: none;
}

.has-menu {
  position: relative;
  display: flex;
  align-items: stretch;
}

.menu {
  display: none;
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  background: #fff;
  border: 1px solid var(--line);
  min-width: 280px;
  padding: 10px 0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.has-menu:hover .menu,
.has-menu:focus-within .menu {
  display: block;
}

.menu a {
  display: block;
  padding: 8px 16px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
}

.menu a:hover {
  background: var(--paper);
  color: var(--red);
  text-decoration: none;
}

.menu small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn:hover {
  text-decoration: none;
}

.btn-red {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.btn-red:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  color: #fff;
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: #bbb;
  color: var(--ink);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.btn-dark:hover {
  background: #000;
  color: #fff;
}

.btn-lg {
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  width: 38px;
  height: 34px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 5px 8px;
}

/* Ticker */
.ticker {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  height: var(--ticker-h);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  gap: 28px;
  white-space: nowrap;
  animation: tick 42s linear infinite;
  padding-left: 16px;
}

.ticker-item {
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  text-decoration: none;
}

a.ticker-item:hover {
  color: var(--ink);
  text-decoration: none;
}

.ticker-item b {
  margin-right: 6px;
  color: var(--ink);
}

@keyframes tick {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.news-tape {
  height: 58px;
}

.news-tape .ticker-track {
  animation-duration: 150s;
  gap: 48px;
  padding-left: 20px;
}

.news-tape .ticker-item {
  font-size: 17px;
}

.news-tape .ticker-item b {
  font-size: 17px;
  font-weight: 650;
}

.news-tape .ticker-item span {
  margin-left: 10px;
  font-size: 15px;
  color: #8a847c;
}

.news-tape:hover .ticker-track,
.news-tape:focus-within .ticker-track {
  animation-play-state: paused;
}

.ov-hero {
  display: flex;
  align-items: stretch;
  gap: 16px;
  margin: 0 0 28px;
}

.ov-banner {
  flex: 0 0 auto;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
}

.ov-banner img {
  display: block;
  width: 1024px;
  height: auto;
  max-width: 100%;
}

.ov-reds {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-width: 0;
  background: #9a0108;
}

.ov-down {
  display: flex;
  color: #fff;
  line-height: 0;
}

.ov-down svg {
  display: block;
  width: 44px;
  height: 44px;
}

.ov-reds > * {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.ov-redbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  margin: 0;
  white-space: nowrap;
  padding: 20px 44px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-family: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  transform: scale(1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ov-redbox:hover {
  background: #fff;
  color: #111;
  transform: scale(1.08);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
}

.ov-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  margin: 0 0 28px;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
}

.ov-wide {
  min-width: 0;
  background: #fff;
  border: 0;
  overflow: hidden;
}

.ov-wide-img {
  display: block;
  width: 100%;
  height: auto;
}

.ov-wide-empty {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 128px;
}

.ov-line {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 28px 36px 8px;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  text-align: center;
}

.ov-line span {
  display: block;
}

.ov-wide-empty .ov-ask {
  margin-top: 0;
  padding: 12px 14px 14px;
}

.ov-doors {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.ov-doors .ov-door {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 0;
  padding: 18px 18px 22px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 450;
  line-height: 1.45;
  text-align: left;
  cursor: default;
  transform-origin: center center;
  transition: transform 0.85s cubic-bezier(0.22, 0.7, 0.25, 1), box-shadow 0.85s cubic-bezier(0.22, 0.7, 0.25, 1);
}

.ov-doors .ov-door:hover {
  z-index: 3;
  transform: scale(1.06);
  box-shadow: 0 16px 36px rgba(27, 27, 27, 0.14);
}

@media (prefers-reduced-motion: reduce) {
  .ov-doors .ov-door {
    transition: none;
  }

  .ov-doors .ov-door:hover {
    transform: none;
  }
}

.ov-doors .ov-door-title {
  font-size: 17px;
  font-weight: 650;
  line-height: 1.25;
}

.ov-door-copy {
  margin: 14px 0 0;
  max-width: 36em;
  color: #5c564f;
  font-size: 14px;
  font-weight: 450;
  line-height: 1.55;
}

.ov-plan {
  width: 100%;
  margin-top: 22px;
}

.ov-plan-name {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.ov-plan-rule {
  height: 1px;
  margin: 12px 0 4px;
  border: 0;
  background: var(--line);
}

.ov-plan-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ov-plan-list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 550;
}

.ov-doors .ov-door.ov-door-poster {
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}

.ov-poster {
  display: block;
  width: 100%;
  height: auto;
}

.ov-door-poster .ov-ask {
  flex: 0 0 auto;
  margin-top: 0;
  padding: 12px 14px 14px;
}

.ov-ask {
  margin-top: auto;
  width: 100%;
}

.ov-ask button,
.ov-ask a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--red);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.ov-ask button:hover,
.ov-ask a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  text-decoration: none;
}

/* Flash */
.flash-wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 12px auto 0;
}

.flash {
  padding: 10px 12px;
  border: 1px solid var(--line);
  margin-bottom: 8px;
  font-size: 14px;
}

.flash-error {
  background: #fdf2f2;
  border-color: #e8c4c4;
  color: #7a1212;
}

.flash-success {
  background: #eef7f1;
  border-color: #c9e4d3;
  color: #146c43;
}

/* Hero */
.hero {
  background:
    linear-gradient(180deg, #fff 0%, #f7f4ef 100%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  gap: 48px;
  padding: 48px 0 36px;
  align-items: start;
}

.hero .btn-lg {
  margin-top: 18px;
}

.hero-points {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.hero-points li {
  position: relative;
  padding-left: 26px;
  font-weight: 600;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.risk-box {
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 18px;
  background: #fff;
  padding: 28px 28px 22px;
}

.risk-box h2 {
  margin-top: 0;
}

.risk-box ul {
  margin: 14px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.faq {
  max-width: 820px;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--red);
  font-size: 22px;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 10px 0 0;
}

.kicker {
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.hero h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 46px;
  line-height: 1.12;
  font-weight: 650;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.lede {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 540px;
  margin: 0 0 22px;
}

.hero-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.fine {
  font-size: 12.5px;
  color: var(--muted);
  max-width: 520px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.stats div {
  padding: 16px 18px 0 0;
}

.stats strong {
  display: block;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stats span {
  color: var(--muted);
  font-size: 12.5px;
}

.snapshot {
  background: #fff;
  border: 1px solid var(--line);
}

.snapshot-h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #faf8f5;
}

.snapshot-h h2 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.snapshot-h span {
  font-size: 12px;
  color: var(--muted);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

table.data th,
table.data td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-2);
  font-size: 13.5px;
}

table.data th {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

table.data td.r,
table.data th.r {
  text-align: right;
}

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

table.data tbody tr:hover {
  background: #fbfaf8;
}

/* Quote strip */
.tools {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.tools-row {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 0;
}

.tool {
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}

.tool:last-child {
  border-right: 0;
}

.tool label,
.tool .tl {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.quote-form {
  display: flex;
  gap: 0;
}

.quote-form input {
  flex: 1;
  border: 1px solid var(--line);
  border-right: 0;
  padding: 8px 10px;
  outline: none;
}

.quote-form input:focus {
  border-color: #bbb;
}

.quote-form button {
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 600;
}

.tool p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}

.tool a.inline {
  font-weight: 700;
  color: var(--red);
}

/* Sections */
.section {
  padding: 56px 0;
}

.section.alt {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-h {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 24px;
}

.section-h h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 30px;
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.section-h p {
  margin: 6px 0 0;
  color: var(--muted);
  max-width: 560px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 18px 18px 16px;
}

.card h3 {
  margin: 8px 0 6px;
  font-size: 16px;
}

.card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
}

.icon-line {
  width: 28px;
  height: 3px;
  background: var(--red);
}

.card a.more,
a.card .more {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
}

a.card {
  color: inherit;
  text-decoration: none;
  display: block;
}

a.card.story {
  display: grid;
}

a.card:hover {
  text-decoration: none;
  border-color: #bdb7b0;
}

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

a.kpi:hover {
  text-decoration: none;
  border-color: #bdb7b0;
}

.crumb {
  font-size: 12.5px;
  color: #cfcfcf;
  margin: 0 0 10px;
}

.crumb a {
  color: #cfcfcf;
}

.crumb a:hover {
  color: #fff;
}

.related {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.related h3 {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.related-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prod-icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--red);
  font-weight: 700;
  font-size: 13px;
}

/* Platform */
.platform {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: center;
}

.platform-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.apple-panel {
  width: 100%;
  background: #f5f5f7;
  border-radius: 28px;
  padding: 28px 28px 22px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #1d1d1f;
}

.apple-kicker {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #6e6e73;
}

.apple-line {
  width: 100%;
  height: auto;
  display: block;
  margin: 18px 0;
}

.apple-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.apple-pills span {
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.apple-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 28px 0;
}

.apple-split div {
  background: #fff;
  border-radius: 18px;
  padding: 22px 18px 18px;
}

.apple-split small {
  display: block;
  color: #6e6e73;
  font-size: 13px;
  margin-bottom: 8px;
}

.apple-split strong {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 42px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1;
}

.apple-note {
  margin: 0;
  color: #6e6e73;
  font-size: 14px;
  max-width: 36ch;
}

.wait-page {
  background: #f3f1ee;
  min-height: 100vh;
}

.wait-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.wait-card {
  width: min(460px, 100%);
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 22px 60px rgba(27, 27, 27, 0.14);
  padding: 36px 32px 28px;
  text-align: center;
}

.wait-card img {
  height: 34px;
  width: auto;
}

.wait-card h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 650;
  margin: 22px 0 10px;
  letter-spacing: -0.02em;
}

.wait-card p {
  margin: 0 auto;
  max-width: 34ch;
  color: var(--ink-2);
}

.wait-spin {
  width: 28px;
  height: 28px;
  margin: 22px auto 14px;
  border-radius: 50%;
  border: 3px solid #f3d5d8;
  border-top-color: var(--red);
  animation: wait-spin 0.75s linear infinite;
}

.wait-fine {
  color: var(--muted);
  font-size: 13px;
}

@keyframes wait-spin {
  to { transform: rotate(360deg); }
}

.thanks-card {
  width: min(640px, 100%);
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(27, 27, 27, 0.12);
  padding: 56px 48px 48px;
  text-align: center;
}

.thanks-card h1 {
  margin: 0;
  color: #8d8d93;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.thanks-sub {
  margin: 14px 0 0;
  color: #b0b0b6;
  font-size: 18px;
}

.thanks-stay {
  margin: 36px auto 0;
  max-width: 42ch;
  color: #6f6f76;
  font-size: 18px;
  line-height: 1.45;
}

.thanks-clock {
  margin: 36px 0 0;
  color: #8a8a90;
  font-size: 84px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.thanks-unit {
  margin: 8px 0 0;
  color: #8a8a90;
  font-size: 22px;
}

.thanks-ready {
  margin: 28px 0 0;
  color: #6f6f76;
  font-size: 18px;
  font-style: italic;
}

.thanks-risk {
  margin: 28px auto 0;
  max-width: 48ch;
  color: #6f6f76;
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .thanks-card {
    padding: 36px 22px 32px;
    border-radius: 22px;
  }

  .thanks-card h1 {
    font-size: 26px;
  }

  .thanks-clock {
    font-size: 64px;
  }
}

.fx-chart {
  margin-top: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 16px 12px;
}

.fx-chart-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin: 0 4px 6px;
}

.fx-chart-bar strong {
  display: block;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.fx-chart-bar span,
.fx-chart-note {
  color: var(--muted);
  font-size: 12px;
}

.fx-chart-last {
  text-align: right;
}

.fx-chart-last b {
  display: block;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.fx-chart-last span {
  display: inline-block;
  margin-top: 4px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ececee;
}

.fx-chart-last span.up {
  color: #0d6b38;
  background: #e5f6eb;
}

.fx-chart-last span.down {
  color: #b01020;
  background: #fde8ea;
}

.fx-chart-last small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.fx-chart svg {
  width: 100%;
  height: auto;
  display: block;
}

.fx-chart-note {
  margin: 4px 4px 0;
}

.apple-stage {
  margin-top: 22px;
  background: #f5f5f7;
  border-radius: 28px;
  padding: 28px 22px 18px;
}

.apple-stage svg {
  width: 100%;
  height: auto;
  display: block;
}

.apple-stage .apple-pills {
  margin-top: 6px;
}

.apple-chain {
  display: grid;
  gap: 10px;
}

.apple-block {
  background: #fff;
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.apple-block b {
  font-size: 15px;
}

.apple-block span {
  color: #6e6e73;
  font-size: 13px;
}

.checklist {
  list-style: none;
  margin: 16px 0 22px;
  padding: 0;
}

.checklist li {
  padding: 8px 0 8px 22px;
  position: relative;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-2);
}

.checklist li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--red);
  position: absolute;
  left: 0;
  top: 14px;
}

.terminal {
  background: #161616;
  color: #ececec;
  border: 1px solid #2a2a2a;
  min-height: 340px;
}

.terminal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #1e1e1e;
  border-bottom: 1px solid #2d2d2d;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b7b7b7;
}

.term-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
}

.chart-box {
  padding: 10px 8px 6px;
  border-right: 1px solid #2d2d2d;
}

.mini-list {
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.mini-list div {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid #2a2a2a;
}

/* Insights */
.story {
  display: grid;
  grid-template-rows: 118px 1fr;
  min-height: 250px;
}

.story-art {
  background: #8d0c19;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 10px 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.story-art.s2 {
  background: #3d0d12;
}

.story-art.s3 {
  background: #1b1b1b;
}

.story .body {
  padding: 14px 16px 16px;
}

.story h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 650;
}

.meta {
  font-size: 12px;
  color: var(--muted);
}

/* Pricing table */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
}

.price-table th,
.price-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-2);
  text-align: left;
  font-size: 14px;
}

.price-table th {
  background: #faf8f5;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-table td:nth-child(2),
.price-table th:nth-child(2) {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* Accounts */
.acct {
  border-top: 3px solid var(--red);
}

.acct ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 14px;
}

/* CTA band */
.cta {
  background: var(--red);
  color: #fff;
}

.cta .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 36px 0;
}

.cta h2 {
  margin: 0 0 6px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 28px;
  font-weight: 650;
}

.cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.cta .btn-ghost {
  background: #fff;
  color: var(--red);
  border-color: #fff;
}

.cta .btn-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

/* Auth pages */
.auth-page {
  background: var(--paper);
  min-height: calc(100vh - 180px);
  padding: 36px 0 60px;
}

.auth-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 28px;
  align-items: start;
}

.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px 28px 24px;
}

.auth-card h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 28px;
  margin: 0 0 6px;
}

.auth-card .sub {
  margin: 0 0 22px;
  color: var(--muted);
}

.mfa-qr {
  display: flex;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px;
  margin: 0 0 14px;
}

.mfa-qr svg {
  width: 220px;
  height: 220px;
}

.mfa-secret {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.06em;
  word-break: break-all;
  margin: 0 0 16px;
}

.mfa-codes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 18px;
}

.mfa-codes code {
  display: block;
  padding: 8px 10px;
  background: #f6f3ee;
  border: 1px solid var(--line);
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  height: 40px;
  border: 1px solid #cfcac3;
  padding: 0 10px;
  background: #fff;
  outline: none;
  font: inherit;
}

.field textarea {
  height: auto;
  padding: 8px 10px;
  resize: vertical;
}

.account-card {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 18px 14px;
}

.account-card .field {
  margin-bottom: 10px;
}

.account-card .btn {
  width: 100%;
  margin-top: 4px;
}

.account-card .fine {
  margin: 10px 0 12px;
  max-width: none;
}

.account-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  width: min(440px, calc(100vw - 32px));
}

.account-dialog::backdrop {
  background: rgba(20, 16, 14, 0.55);
}

.account-dialog .account-card {
  box-shadow: 0 22px 60px rgba(27, 27, 27, 0.2);
  padding: 22px 22px 18px;
}

.account-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.account-dialog-head .kicker {
  margin-bottom: 0;
}

.account-close {
  border: 0;
  background: transparent;
  color: #1d1d1f;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.stay-banner {
  margin: -22px -22px 16px;
  padding: 26px 22px 22px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(176, 16, 32, 0.55), transparent 55%),
    #141414;
  color: #fff;
  border-radius: 18px 18px 0 0;
}

.stay-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f3c1c6;
}

.stay-line {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 30px;
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.account-dialog.is-stay .account-card {
  position: relative;
}

.account-dialog.is-stay .stay-banner {
  padding-right: 48px;
}

.account-dialog.is-stay .account-dialog-head {
  position: absolute;
  top: 14px;
  right: 14px;
}

.account-dialog.is-stay .account-close {
  color: #fff;
}

.hero-grid-open {
  padding-bottom: 28px;
}

.live-wrap {
  padding-bottom: 36px;
}

.live-board {
  margin-top: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 14px 12px;
}

.live-board-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0 2px 8px;
}

.live-board-head p {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--red);
}

.live-board-head span {
  font-size: 11px;
  color: var(--muted);
}

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

.live-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "sym pct"
    "price pct";
  column-gap: 8px;
  align-items: center;
  padding: 8px 10px;
  background: #f5f5f7;
  border-radius: 12px;
}

.live-sym {
  grid-area: sym;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.live-sym small {
  display: block;
  margin-top: 2px;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.live-price {
  grid-area: price;
  margin-top: 3px;
  font-size: 12px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.live-pct {
  grid-area: pct;
  justify-self: end;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 4px 7px;
  border-radius: 999px;
  background: #ececee;
  color: #666;
}

.live-pct.up {
  color: #0d6b38;
  background: #e5f6eb;
}

.live-pct.down {
  color: #b01020;
  background: #fde8ea;
}

.live-note {
  margin: 8px 2px 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .live-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

.field input:focus,
.field select:focus {
  border-color: #8a8a8a;
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--ink-2);
  margin: 8px 0 16px;
}

.check input {
  margin-top: 3px;
}

.auth-side {
  padding: 8px 8px 0 8px;
}

.auth-side h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 26px;
  margin: 0 0 10px;
}

.note-box {
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px 16px;
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.switch {
  margin-top: 16px;
  font-size: 14px;
}

/* Inner pages */
.page-hero {
  background: #111;
  color: #fff;
  padding: 36px 0 32px;
}

.page-hero h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 36px;
  margin: 0 0 8px;
}

.page-hero p {
  margin: 0;
  color: #cfcfcf;
  max-width: 640px;
}

.page-hero .hero-grid {
  padding: 8px 0 4px;
  gap: 28px;
}

.page-hero .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: #6a6a6a;
}

.page-hero .snapshot,
.page-hero .snapshot td,
.page-hero .snapshot h2 {
  color: var(--ink);
}

.page-hero .snapshot-h span {
  color: var(--muted);
}

.prose {
  max-width: 820px;
}

.desk-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: start;
}

.desk-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.desk-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 18px 18px 8px;
}

.desk-card h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 22px;
  margin: 0 0 10px;
}

.desk-card p,
.desk-card li {
  color: var(--ink-2);
  font-size: 14.5px;
}

.desk-card ul {
  margin: 8px 0 14px;
  padding-left: 18px;
}

.desk-card li {
  margin: 5px 0;
}

.desk-cards .desk-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.desk-rail {
  background: #161616;
  color: #e6e6e6;
  padding: 18px 16px 16px;
  position: sticky;
  top: 12px;
}

.desk-rail .kicker {
  color: #f0c9c9;
}

.desk-rail h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 24px;
  margin: 0 0 10px;
  color: #fff;
}

.desk-rail p {
  margin: 0 0 8px;
  color: #cfcfcf;
  font-size: 14px;
}

.desk-rail a {
  color: #fff;
}

.desk-rail .btn {
  display: block;
  text-align: center;
  margin-top: 10px;
}

.desk-rail .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: #5a5a5a;
}

.rail-links {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #2d2d2d;
}

.rail-links a {
  display: block;
  margin: 7px 0;
  color: #d7d7d7;
  font-size: 14px;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 28px;
}

.cover-grid a {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px 14px 12px;
  color: inherit;
  min-height: 132px;
}

.cover-grid a:hover {
  text-decoration: none;
  border-color: #bdb7b0;
}

.cover-grid h3 {
  margin: 8px 0 6px;
  font-size: 16px;
}

.cover-grid p {
  margin: 0;
  color: var(--ink-2);
  font-size: 13.5px;
}

.step-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 28px;
}

.step {
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px;
}

.step b {
  display: block;
  color: var(--red);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.step h3 {
  margin: 6px 0;
  font-size: 16px;
}

.step p {
  margin: 0;
  color: var(--ink-2);
  font-size: 13.5px;
}

.page-band {
  background: #111;
  color: #fff;
  padding: 28px 0;
}

.page-band h2 {
  font-family: "Source Serif 4", Georgia, serif;
  margin: 0 0 8px;
}

.page-band p {
  margin: 0;
  color: #cfcfcf;
  max-width: 640px;
}

.page-band .hero-cta {
  margin-top: 14px;
}

@media (max-width: 980px) {
  .desk-layout,
  .desk-cards,
  .cover-grid,
  .step-row {
    grid-template-columns: 1fr;
  }
  .desk-rail {
    position: static;
  }
  .desk-cards .desk-card:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

.prose h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 24px;
  margin: 28px 0 8px;
}

.prose p,
.prose li {
  color: var(--ink-2);
}

.prose ul {
  margin: 8px 0 16px;
  padding-left: 18px;
}

.prose li {
  margin: 4px 0;
}

.fact-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 28px;
}

.fact-row div {
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px 14px;
}

.fact-row span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.fact-row strong {
  display: block;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
}

@media (max-width: 800px) {
  .fact-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Footer */
.footer {
  background: #111;
  color: #cfcfcf;
  padding: 42px 0 18px;
  font-size: 13.5px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid #2a2a2a;
}

.footer .brand-text strong,
.footer .brand {
  color: #fff;
}

.footer a {
  color: #cfcfcf;
  display: block;
  margin: 6px 0;
}

.footer a:hover {
  color: #fff;
}

.footer h4 {
  color: #fff;
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pay-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 4px 0 18px;
  padding: 14px 16px;
  border: 1px solid #2c2c2c;
  background: linear-gradient(180deg, #1a1a1a 0%, #121212 100%);
}

.pay-lock {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.pay-lock svg {
  flex: 0 0 auto;
}

.pay-lock strong {
  display: block;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pay-lock span {
  display: block;
  margin-top: 3px;
  color: #9a9a9a;
  font-size: 12.5px;
}

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

.pay-mark {
  height: 38px;
  min-width: 72px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 7px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset;
}

.pay-mark svg {
  display: block;
}

@media (max-width: 800px) {
  .pay-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .pay-logos {
    justify-content: flex-start;
  }
}

.legal {
  padding-top: 16px;
  font-size: 12px;
  color: #9a9a9a;
  line-height: 1.55;
}

.legal p {
  margin: 0 0 10px;
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: #8d8d8d;
  font-size: 12px;
}

/* Dashboard */
.dash {
  background:
    radial-gradient(980px 420px at 100% -120px, rgba(176, 16, 32, 0.08), transparent 58%),
    linear-gradient(180deg, #f7f4ef 0%, #efece6 100%);
  min-height: 100vh;
}

.dash .util {
  position: sticky;
  top: 0;
  z-index: 60;
}

.dash-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - var(--util-h));
}

.side {
  background: linear-gradient(180deg, #121212 0%, #171717 48%, #121212 100%);
  color: #d4d4d4;
  padding: 16px 0 24px;
  overflow-y: auto;
  position: sticky;
  top: var(--util-h);
  align-self: start;
  height: calc(100vh - var(--util-h));
  z-index: 40;
  border-right: 1px solid #262626;
}

.side .brand {
  padding: 2px 16px 16px;
  border-bottom: 1px solid #2a2a2a;
  margin: 0 10px 12px;
  color: #fff;
}

.side .brand-text span {
  color: #9a9a9a;
}

.side a.item {
  display: block;
  color: #c8c8c8;
  margin: 1px 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  border-left: 0;
}

.side a.item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.side a.item.active {
  background: linear-gradient(90deg, rgba(176, 16, 32, 0.72), rgba(176, 16, 32, 0.28));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.side .grp {
  margin: 12px 16px 4px;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a8a8a;
}

.pref-chip {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  background: #f6f3ee;
}

.pref-chip:hover {
  text-decoration: none;
  background: #fff;
  border-color: #ddd6cc;
}

.dash-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.dash-tabs a {
  padding: 9px 14px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.dash-tabs a:hover,
.dash-tabs a.active {
  color: var(--red);
  border-bottom-color: var(--red);
  text-decoration: none;
}

.set-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pref-block {
  margin-bottom: 22px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-2);
}

.pref-block h4 {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.main {
  min-width: 0;
}

.topbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(27, 27, 27, 0.06);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 16px;
  position: sticky;
  top: var(--util-h);
  z-index: 35;
  box-shadow: 0 8px 24px rgba(27, 27, 27, 0.03);
}

.search {
  flex: 1;
  max-width: 420px;
}

.search input {
  width: 100%;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 16px;
  background: #f6f3ee;
  outline: none;
}

.search input:focus {
  background: #fff;
  border-color: #ddd6cc;
  box-shadow: 0 0 0 3px rgba(176, 16, 32, 0.08);
}

.who {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.dash .btn {
  border-radius: 0;
}

.who b {
  display: block;
}

.acct-no {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.work {
  padding: 22px 22px 40px;
}

.kpi-row {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.kpi {
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px 16px;
}

.dash .kpi {
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 16px 16px 15px;
}

.kpi .lbl {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.kpi .val {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin-top: 4px;
}

.kpi.hero .val {
  font-size: 30px;
  font-family: "Source Serif 4", Georgia, serif;
}

.dash .kpi.hero {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.bal-split {
  display: grid;
  grid-template-columns: minmax(200px, 0.72fr) minmax(280px, 1.15fr) minmax(240px, 1fr);
  gap: 8px;
  margin-top: 14px;
  align-items: stretch;
}

.bal-pnl-body {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 8px 12px 24px;
}

.bal-pnl-val {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(68px, 6.4vw, 108px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

.bal-pie-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 280px;
  padding: 22px 16px 18px;
}

.bal-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  width: min(240px, 100%);
}

.bal-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 14px;
  font-weight: 650;
}

.bal-legend b {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.bal-donut {
  width: min(230px, 86%);
  height: auto;
}

.bal-donut circle {
  stroke-linecap: butt;
}

.tone-forex { stroke: #b01020; background: #b01020; }
.tone-metal { stroke: #c45c26; background: #c45c26; }
.tone-stock { stroke: #1b1b1b; background: #1b1b1b; }
.tone-crypto { stroke: #7a3048; background: #7a3048; }
.tone-cash { stroke: #d5cfc8; background: #d5cfc8; }

.bal-swatch {
  width: 28px;
  padding-right: 0;
}

.bal-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
}

.bal-break .data {
  width: 100%;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 14px;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
}

.dash .panel {
  border: 1px solid var(--line);
  border-radius: 0;
}

.panel h3 {
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-2);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #3f3f3f;
}

.panel .pad {
  padding: 8px 0;
}

canvas#equityChart {
  width: 100%;
  height: 220px;
  display: block;
}

.price-chart-wrap {
  position: relative;
  background: #fff;
  width: 100%;
  min-height: 160px;
}

.pc-tools {
  position: absolute;
  top: 8px;
  right: 78px;
  z-index: 3;
  display: flex;
  gap: 4px;
}

.pc-tools[hidden] {
  display: none !important;
}

.pc-tool {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #d8d2cb;
  background: #fff;
  color: #1c1c1c;
  font-size: 16px;
  line-height: 26px;
  cursor: pointer;
}

.pc-tool:hover {
  border-color: #b01020;
  color: #b01020;
}

.price-chart-wrap.embed {
  background: transparent;
  min-height: 0;
}

.price-chart-wrap.is-display .price-chart {
  cursor: default;
  touch-action: pan-y;
}

.price-chart-wrap.is-display .pc-tools,
.price-chart-wrap.is-display .pc-cross {
  display: none !important;
}

.chart-box .pc-bg {
  fill: #161616;
}

.chart-box .pc-grid line {
  stroke: #2a2a2a;
}

.chart-box .pc-axis text {
  fill: #8f8a84;
}

.quote-chart-wrap .price-chart-wrap.is-display {
  background: #fff;
}

.price-chart {
  display: block;
  width: 100%;
  height: auto;
  min-height: 160px;
  cursor: crosshair;
  touch-action: none;
  user-select: none;
}

.price-chart.is-drag {
  cursor: grabbing;
}

.price-chart .pc-cross {
  display: none;
  pointer-events: none;
}

.price-chart.is-hover .pc-cross:not([hidden]) {
  display: inline;
}

.price-chart .pc-cross[hidden],
.price-chart .pc-cross [hidden] {
  display: none !important;
}

.price-chart.is-hover .pc-last {
  display: none;
}

.chart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--line-2);
}

.chart-head .sym-pick-wrap {
  flex: 1 1 220px;
}

.chart-spans {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid #d8d2cb;
  background: #fff;
}

.chart-span {
  appearance: none;
  margin: 0;
  border: 0;
  border-right: 1px solid #d8d2cb;
  background: #fff;
  color: #1c1c1c;
  padding: 8px 12px;
  font: 600 12px/1 inherit;
  letter-spacing: 0;
  cursor: pointer;
}

.chart-span:last-child {
  border-right: 0;
}

.chart-span.is-on {
  background: #b01020;
  color: #fff;
}

.chart-head-k {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 10px;
}

.sym-pick-wrap {
  display: grid;
  gap: 6px;
  position: relative;
}

.sym-pick-wrap .sym-pick-lbl + .sym-pick-lbl,
.sym-pick-wrap .sym-cat-sel + .sym-pick-lbl {
  margin-top: 4px;
}

.sym-pick-lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.sym-cat-sel {
  width: 100%;
  min-height: 36px;
  height: 36px;
  font-size: 13px;
  font-weight: 600;
  padding: 0 32px 0 10px;
  border: 1px solid #1b1b1b;
  border-radius: 0;
  background-color: #fff;
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #1b1b1b 50%),
    linear-gradient(135deg, #1b1b1b 50%, transparent 50%);
  background-position: calc(100% - 16px) 14px, calc(100% - 11px) 14px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.ticket .sym-cat-sel,
.it-form .sym-cat-sel {
  height: 44px;
  min-height: 44px;
}

.sym-combo {
  position: relative;
}

.sym-pick-q {
  width: 100%;
  min-height: 36px;
  height: 36px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0 10px;
  border: 1px solid #1b1b1b;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
}

.ticket .sym-pick-q,
.it-form .sym-pick-q {
  height: 44px;
  min-height: 44px;
}

.sym-pick {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.sym-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  min-width: 280px;
  background: #fff;
  border: 1px solid #1b1b1b;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-height: 320px;
  flex-direction: column;
}

.sym-menu[hidden] {
  display: none !important;
}

.sym-menu:not([hidden]) {
  display: flex;
}

.sym-list {
  overflow: auto;
  max-height: 300px;
  scrollbar-width: thin;
}

.sym-group-h {
  padding: 6px 10px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: #fff;
}

.sym-row {
  display: grid;
  grid-template-columns: minmax(72px, auto) 1fr auto;
  gap: 8px;
  align-items: baseline;
  width: 100%;
  text-align: left;
  border: 0;
  border-top: 1px solid var(--line-2);
  background: #fff;
  padding: 8px 10px;
  cursor: pointer;
  color: #1b1b1b;
}

.sym-row:hover,
.sym-row.is-on {
  background: #f8ecec;
}

.sym-row b {
  font-size: 13px;
}

.sym-row span {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sym-row em {
  font-style: normal;
  font-size: 10px;
  color: #8a847c;
}

.sym-empty {
  padding: 14px 10px;
  color: var(--muted);
  font-size: 13px;
}

.quote-pick {
  max-width: 440px;
  margin: 14px 0 18px;
}

.page-hero .sym-pick-lbl {
  color: #cfcfcf;
}

.page-hero .sym-pick-q,
.page-hero .sym-cat-sel {
  background: #1c1c1c;
  color: #fff;
  border-color: #3a3a3a;
}

.page-hero .sym-cat-sel {
  background-image:
    linear-gradient(45deg, transparent 50%, #fff 50%),
    linear-gradient(135deg, #fff 50%, transparent 50%);
}

.quote-chart-wrap {
  background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 16px;
}

.quote-chart-wrap .price-chart {
  min-height: 220px;
}

.chart-caption {
  margin: 0;
  padding: 8px 12px 10px;
  color: var(--muted);
}

.chart-term-lbl {
  margin: 0;
  padding: 4px 8px 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #b7b7b7;
}

.ticket {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.ticket .xfer-bank {
  display: grid;
  gap: 10px;
}

.ticket .xfer-bank[hidden] {
  display: none;
}

.sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.sides button {
  height: 36px;
  border: 1px solid #1b1b1b;
  border-radius: 0;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}

.sides button.buy.on,
.sides button.buy:hover {
  background: var(--up);
  color: #fff;
  border-color: var(--up);
}

.sides button.sell.on,
.sides button.sell:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.ticket label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.ticket input,
.ticket select {
  width: 100%;
  height: 36px;
  border: 1px solid #1b1b1b;
  border-radius: 0;
  padding: 0 10px;
  background: #fff;
}

.ticket select,
.dash-shell select {
  padding-right: 32px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, transparent 50%, #1b1b1b 50%),
    linear-gradient(135deg, #1b1b1b 50%, transparent 50%);
  background-position: calc(100% - 16px) 14px, calc(100% - 11px) 14px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.dash-shell select option,
.sym-pick option {
  font-size: 13px;
  font-weight: 500;
  background: #fff;
  color: #1b1b1b;
}

.news a {
  display: block;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink);
}

.news a:hover {
  background: #fbfaf8;
  text-decoration: none;
}

.news span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.status {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status.filled {
  color: var(--up);
}

.status.working {
  color: #9a6b12;
}

.status.cancelled {
  color: var(--muted);
}

.status.rejected {
  color: var(--down);
}

.status.open {
  color: var(--up);
}

.status.closed {
  color: var(--muted);
}

.data td.pnl {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.data td form {
  margin: 0;
}

.mobile-only {
  display: none;
}

.show-xs {
  display: none;
}

.nav-backdrop {
  display: none;
}

.icon-btn {
  display: none;
  background: #fff;
  border: 1px solid var(--line);
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.icon-btn span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 6px 10px;
}

.side-overlay {
  display: none;
}

.dash-bottom {
  display: none;
}

.panel {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

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

@media (max-width: 1100px) {
  .nav {
    display: none;
  }

  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    height: auto;
    max-height: min(75vh, 640px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 60;
    padding: 8px 0 18px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  }

  .nav.open > a,
  .nav.open .has-menu > a {
    height: 44px;
    padding: 0 20px;
  }

  .nav.open .has-menu {
    flex-direction: column;
    align-items: stretch;
  }

  .nav.open .menu {
    display: block;
    position: static;
    border: 0;
    box-shadow: none;
    min-width: 0;
    width: 100%;
    padding: 0 8px 8px 12px;
  }

  .nav.open .menu a {
    padding: 10px 16px;
    min-height: 44px;
  }

  .nav-toggle {
    display: inline-block;
    min-width: 40px;
    min-height: 40px;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.4);
    z-index: 35;
  }

  .nav-backdrop[hidden] {
    display: none;
  }

  body.nav-lock {
    overflow: hidden;
  }

  .header-row {
    gap: 12px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-grid,
  .platform,
  .auth-grid,
  .tools-row,
  .grid-4,
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .kpi-row,
  .dash-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .side-toggle {
    display: inline-block;
  }

  .side {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(300px, 88vw);
    height: 100%;
    max-height: none;
    z-index: 90;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    padding-top: max(14px, env(safe-area-inset-top));
    padding-bottom: env(safe-area-inset-bottom);
  }

  .dash-shell.menu-open .side {
    transform: translateX(0);
  }

  .side-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.45);
    z-index: 80;
  }

  .side-overlay[hidden] {
    display: none;
  }

.dash-bottom {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(27, 27, 27, 0.06);
  box-shadow: 0 -10px 28px rgba(27, 27, 27, 0.06);
  z-index: 50;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}

  .dash-bottom a,
  .dash-bottom button {
    appearance: none;
    background: none;
    border: 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
    text-decoration: none;
    min-height: 44px;
    padding: 8px 4px;
    cursor: pointer;
    font-family: inherit;
  }

  .dash-bottom a.active,
  .dash-bottom a:hover,
  .dash-bottom button:hover {
    color: var(--red);
    text-decoration: none;
  }

  .hide-phone {
    display: none !important;
  }

  .who-name {
    display: none;
  }

  .topbar {
    height: auto;
    min-height: 56px;
    padding: 8px 12px;
    gap: 8px;
    position: sticky;
    top: var(--util-h);
    z-index: 35;
  }

  .search {
    max-width: none;
  }

  .work {
    padding: 12px 12px 96px;
  }

  .dash .util a {
    margin-right: 10px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 56px;
    --util-h: 36px;
  }

  .wrap,
  .wrap-wide,
  .util .wrap,
  .header-row {
    width: calc(100% - 24px);
  }

  .util {
    font-size: 11px;
    min-height: var(--util-h);
    height: auto;
    padding: 6px 0;
    padding-top: max(6px, env(safe-area-inset-top));
  }

  .util a {
    margin-right: 10px;
  }

  .util-right {
    gap: 8px;
  }

  .util-right span {
    display: none;
  }

  .lang-switch {
    flex-shrink: 0;
  }

  .header-actions .btn {
    min-height: 40px;
    padding: 0 10px;
    font-size: 13px;
  }

  .show-xs {
    display: inline;
  }

  .hide-xs {
    display: none;
  }

  .hide-sm {
    display: none !important;
  }

  .hero {
    padding-bottom: 8px;
  }

  .hero-grid,
  .platform,
  .auth-grid,
  .dash-grid,
  .grid-4,
  .grid-3,
  .grid-2,
  .tools-row,
  .foot-grid,
  .cta .wrap,
  .row-2,
  .kpi-row,
  .term-grid,
  .stats,
  .set-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding: 28px 0 32px;
    gap: 24px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 28px;
    line-height: 1.15;
  }

  .page-hero {
    padding: 24px 0 20px;
  }

  .section {
    padding: 36px 0;
  }

  .section-h {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .stats div {
    padding: 12px 0 0;
  }

  .tool {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .cta .wrap {
    padding: 28px 0;
  }

  .cta h2 {
    font-size: 22px;
  }

  .auth-page {
    padding: 20px 0 40px;
  }

  .auth-card {
    padding: 20px 16px 18px;
  }

  .auth-card h1 {
    font-size: 24px;
  }

  .flash-wrap {
    width: calc(100% - 24px);
  }

  table.data,
  .price-table {
    min-width: 520px;
  }

  .kpi.hero .val {
    font-size: 26px;
  }

  .foot-bottom {
    flex-direction: column;
  }

  .btn,
  .btn-lg {
    min-height: 44px;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .quote-form input,
  .quote-form button,
  .field input,
  .field select,
  .ticket input,
  .ticket select,
  .search input {
    height: 44px;
    font-size: 16px;
  }

  .sides button {
    height: 44px;
  }
}

@media (max-width: 420px) {
  .hero-cta {
    grid-template-columns: 1fr;
  }

  .mark {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }

  .header .brand-lockup {
    height: 42px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.nav-badge {
  display: inline-block;
  min-width: 16px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  vertical-align: middle;
}

.live-chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 12px;
  align-items: start;
}

.live-chat,
.chat-info {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-top: 2px solid var(--red);
}

.live-chat {
  height: calc(100vh - 220px);
  min-height: 360px;
  max-height: calc(100vh - 200px);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 2px solid var(--red);
}

.panel.chat-info {
  overflow: visible;
}

.live-chat-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  flex-shrink: 0;
}

.live-chat-id {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.live-chat-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.04em;
}

.live-chat-h strong {
  display: block;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.2;
}

.live-chat-k {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  border: 1px solid #c9e6d4;
  background: #f2faf5;
  color: var(--up);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 9px;
  white-space: nowrap;
}

.live-pill:has(#chat-status.down) {
  border-color: #e4c9cc;
  background: var(--red-soft);
  color: var(--red);
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ecc71;
  flex-shrink: 0;
}

.live-pill:has(#chat-status.down) .live-dot {
  background: var(--red);
}

#chat-status.down {
  color: var(--red);
}

.live-chat-log {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 14px;
  background:
    linear-gradient(#f7f6f2, #f7f6f2) padding-box,
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 27px,
      rgba(0, 0, 0, 0.015) 28px
    );
}

.chat-empty {
  margin: 28px 12px;
  color: var(--ink-2);
  text-align: center;
  font-size: 13.5px;
}

.chat-welcome {
  max-width: 100%;
  margin: 0;
  padding: 16px 16px 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.chat-welcome[hidden] {
  display: none !important;
}

.chat-welcome-k {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.chat-welcome h4 {
  margin: 0 0 8px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.25;
  color: var(--ink);
}

.chat-welcome p {
  margin: 0;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.45;
}

.chat-info h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding: 12px 28px 12px 28px;
}

.chat-info h3 span {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.panel.chat-info .chat-info-body {
  display: flex;
  flex-direction: column;
  padding: 4px 28px 20px 28px;
  overflow: visible;
  flex: 1;
}

.chat-facts {
  margin: 0;
}

.chat-facts > div {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 20px;
  padding: 10px 0 10px 4px;
  border-bottom: 1px solid var(--line-2);
}

.chat-facts dt {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 2px;
}

.chat-facts dd {
  margin: 0;
  padding-left: 4px;
}

.chat-facts dd b {
  display: block;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.chat-facts dd span {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--ink-2);
  font-weight: 400;
  line-height: 1.4;
}

.chat-mail {
  color: var(--ink);
  font-weight: 650;
  font-size: 13.5px;
  word-break: break-all;
}

.chat-mail:hover {
  color: var(--red);
  text-decoration: none;
}

.chat-callout {
  margin: 14px 0 8px;
  padding: 10px 14px;
  background: var(--paper);
  border-left: 2px solid var(--red);
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
}

.chat-mail-note {
  margin: 0 0 16px;
}

.chat-info h4 {
  margin: 4px 0 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.chat-chips span {
  display: inline-block;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.chat-info-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.chat-bubble {
  width: fit-content;
  max-width: min(82%, 420px);
  margin-bottom: 10px;
  padding: 8px 12px 9px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.chat-bubble.theirs {
  border-left: 2px solid var(--red);
}

.chat-bubble.mine {
  margin-left: auto;
  background: #f7eef0;
  border-color: #e4c9cc;
}

.chat-bubble .who {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.chat-bubble .who b {
  font-weight: 700;
}

.chat-bubble .who time {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  font-weight: 600;
  color: var(--muted);
  text-transform: none;
}

.chat-bubble p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.live-chat-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 10px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line);
  background: #fafaf8;
  flex-shrink: 0;
}

.live-chat-form textarea {
  width: 100%;
  flex: 1 1 100%;
  min-height: 52px;
  max-height: 120px;
  border: 1px solid #cfcac3;
  background: #fff;
  padding: 9px 11px;
  font: inherit;
  line-height: 1.4;
  resize: vertical;
}

.live-chat-form textarea:focus {
  outline: 2px solid rgba(176, 16, 32, 0.18);
  outline-offset: 0;
  border-color: #c4a3a6;
}

.live-chat-hint {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}

.live-chat-form .btn {
  margin-left: auto;
  min-width: 92px;
}

.chat-dock {
  position: fixed;
  z-index: 65;
  right: 18px;
  bottom: 18px;
  width: 54px;
  height: 54px;
}

.chat-presence {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.chat-presence.is-on {
  color: #1f9d45;
}

.chat-presence.is-off {
  color: #d01222;
}

.chat-presence-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.chat-launcher {
  position: relative;
  z-index: 65;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 22px rgba(80, 8, 16, 0.28);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.chat-launcher:hover,
.chat-launcher[aria-expanded="true"] {
  background: var(--red-hover);
}

.chat-launcher .nav-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  margin: 0;
  background: #fff;
  color: var(--red);
  border: 1px solid var(--red);
}

.chat-pop {
  position: fixed;
  z-index: 66;
  right: 18px;
  bottom: 106px;
  width: 340px;
  height: 460px;
  max-height: calc(100vh - 110px);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(27, 27, 27, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-pop[hidden] {
  display: none;
}

.chat-pop .live-chat {
  height: 100%;
  min-height: 0;
  max-height: none;
  border: 0;
}

.chat-pop .live-chat-form textarea {
  min-height: 44px;
}

.chat-pop-x {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 860px) {
  .chat-dock {
    right: 12px;
    bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .chat-pop {
    left: auto;
    right: 12px;
    width: min(340px, calc(100% - 24px));
    bottom: calc(160px + env(safe-area-inset-bottom));
    height: min(460px, calc(100dvh - 210px));
    max-height: calc(100dvh - 190px);
  }

  .chat-pop .live-chat-form textarea {
    font-size: 16px;
  }

  body.chat-open {
    overflow: hidden;
  }
}

body.desk {
  height: 100vh;
  overflow: hidden;
}

body.desk #main {
  height: calc(100vh - var(--util-h));
  overflow: hidden;
}

body.desk .util .wrap {
  width: 100%;
  padding: 0 18px;
}

.desk-shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #f4f1ec;
}

.desk-side {
  display: flex;
  flex-direction: column;
  background: #111;
  color: #d4d4d4;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 16px 0 0;
  border-right: 1px solid #000;
}

.desk-side .brand,
.desk-side .grp,
.desk-side .desk-search,
.desk-nav {
  flex-shrink: 0;
}

.desk-side .brand {
  padding: 0 18px 14px;
  margin: 0;
  color: #fff;
  border-bottom: 1px solid #2a2a2a;
}

.desk-side .brand-text span {
  color: #9a9a9a;
}

.desk-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  border-bottom: 1px solid #2a2a2a;
}

.desk-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  color: #e8e8e8;
  font-size: 13.5px;
  font-weight: 650;
  text-decoration: none;
}

.desk-nav a:hover {
  background: #1c1c1c;
  color: #fff;
  text-decoration: none;
}

.desk-nav a.on {
  background: var(--red);
  color: #fff;
}

.desk-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.desk-nav a.on .desk-count {
  background: #fff;
  color: var(--red);
}

.desk-side .grp {
  margin: 14px 18px 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8d8d8d;
}

.desk-clients-block {
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  min-height: 0;
  max-height: 42%;
  border-top: 1px solid #2a2a2a;
  background: #161616;
}

.desk-clients-block .grp {
  margin-top: 12px;
}

.desk-search {
  display: block;
  width: calc(100% - 28px);
  margin: 0 14px 8px;
  height: 34px;
  border: 1px solid #333;
  background: #1a1a1a;
  color: #fff;
  padding: 0 10px;
  font: inherit;
}

.desk-search::placeholder {
  color: #8a8a8a;
}

.desk-list {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.desk-clients-block .desk-list {
  max-height: 220px;
}

.desk-blank {
  margin: 8px 18px;
  color: #8a8a8a;
  font-size: 12px;
}

.desk-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-left: 3px solid transparent;
  color: #d4d4d4;
  padding: 9px 16px 10px;
  cursor: pointer;
  font: inherit;
}

.desk-item .desk-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.desk-item strong {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 650;
}

.desk-item time {
  flex-shrink: 0;
  color: #8a8a8a;
  font-size: 11px;
}

.desk-item .nav-badge {
  flex-shrink: 0;
  margin-left: 0;
}

.desk-item small {
  display: block;
  color: #8a8a8a;
  font-size: 11.5px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.desk-item:hover,
.desk-item.on {
  background: #1c1c1c;
  color: #fff;
  border-left-color: var(--red);
}

.desk-item:focus-visible,
.desk-nav a:focus-visible,
.desk-search:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
}

.desk-main {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #f4f1ec;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.desk-main.desk-requests {
  overflow: auto;
}

.desk-requests-body {
  width: 100%;
  margin: 0 auto;
  padding: 16px 28px 40px;
}

.desk-request-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.desk-request-box {
  background: #fff;
  border: 1px solid #e4e0d8;
  border-top: 3px solid var(--red);
  min-height: 180px;
  padding: 14px 14px 18px;
}

.desk-request-box.is-closed {
  border-top-color: #8a8a8a;
}

.desk-request-box.is-closed .desk-request {
  border-left-color: #8a8a8a;
}

.desk-request-box h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 22px;
  font-weight: 650;
}

.desk-request-box .desk-count {
  background: #111;
}

.desk-request-box .fine {
  margin: 12px 2px 0;
}

.desk-request header form {
  margin-left: auto;
}

.desk-request header select {
  height: 30px;
  border: 1px solid #cfcac3;
  background: #fff;
  padding: 0 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.desk-request {
  border: 1px solid #e4e0d8;
  border-left: 3px solid var(--red);
  background: #fff;
  padding: 14px 18px 16px;
  margin-top: 12px;
}

.desk-request header {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  color: #6b675f;
  font-size: 12px;
}

.desk-request header .status {
  margin-left: auto;
  border: 1px solid currentColor;
  padding: 2px 7px;
  letter-spacing: 0.08em;
  font-size: 10.5px;
}

.desk-request h3 {
  margin: 8px 0 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.desk-request .who {
  margin: 6px 0 0;
  font-size: 13px;
  color: #3a3a3a;
}

.desk-request .fine {
  margin: 8px 0 0;
}

.desk-request .msg {
  margin: 8px 0 0;
  white-space: pre-wrap;
  line-height: 1.5;
}

.desk-main .live-chat-h,
.desk-main .live-chat-log,
.desk-main .live-chat-form {
  width: 100%;
}

.desk .live-chat-h {
  background: #fff;
  padding: 12px 22px;
  min-height: 68px;
  border-bottom: 1px solid var(--line);
}

.desk .live-chat-h strong {
  font-size: 16px;
}

.desk-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: #111;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}

.desk-avatar[hidden] {
  display: none !important;
}

.desk .live-chat-log {
  padding: 20px 28px 16px;
  background: #f4f1ec;
}

.desk .live-chat-log:has(.desk-empty) {
  display: flex;
  align-items: center;
  justify-content: center;
}

.desk .chat-bubble {
  max-width: min(72%, 560px);
}

.desk-empty {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 48px 20px;
  color: var(--muted);
}

.desk-empty .mark {
  width: 42px;
  height: 42px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
}

.desk-empty h2 {
  margin: 4px 0 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.desk .chat-empty {
  margin: 48px auto;
  max-width: 360px;
  text-align: center;
}

.desk .live-chat-form {
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 10px;
  padding: 12px 18px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.desk .live-chat-form[hidden] {
  display: none !important;
}

.desk .live-chat-form textarea {
  width: auto;
  flex: 1 1 auto;
  min-height: 46px;
  max-height: 120px;
  resize: none;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 12px;
}

.desk .live-chat-form .btn {
  margin-left: 0;
  min-width: 96px;
  height: 46px;
}

@media (max-width: 1024px) {
  .live-chat-layout {
    grid-template-columns: 1fr;
  }

  .live-chat {
    height: min(560px, calc(100vh - 240px));
    min-height: 320px;
    max-height: calc(100vh - 200px);
  }

  .panel.chat-info {
    overflow: visible;
  }

  .chat-facts > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .chat-info h3 span {
    display: none;
  }
}

@media (max-width: 560px) {
  .live-chat-h {
    flex-wrap: wrap;
  }

  .live-pill {
    margin-left: auto;
  }
}

@media (max-width: 900px) {
  body.desk {
    height: auto;
    overflow: auto;
  }

  body.desk #main {
    height: auto;
    overflow: visible;
  }

  .desk-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: calc(100vh - var(--util-h));
  }

  .desk-side {
    height: auto;
    max-height: 46vh;
  }

  .desk-clients-block,
  .desk-clients-block .desk-list {
    max-height: none;
  }

  #desk-convos,
  #desk-clients {
    max-height: 160px;
  }

  .desk-main {
    height: min(68vh, 560px);
    min-height: 340px;
  }

  .desk-main.desk-requests {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .desk-request-cols {
    grid-template-columns: 1fr;
  }

  .desk .live-chat-form {
    flex-wrap: wrap;
  }

  .desk .live-chat-form textarea {
    width: 100%;
    flex-basis: 100%;
  }
}

.it-ops {
  background: #efeee9;
  min-height: calc(100vh - var(--util-h));
}

.it-page {
  padding: 22px 0 40px;
}

.it-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 16px;
}

.it-head h1 {
  margin: 4px 0 6px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 28px;
  font-weight: 650;
}

.it-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.it-pill {
  border: 1px solid var(--line);
  background: #fff;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.it-pill.on {
  border-color: #c9e6d4;
  background: #f2faf5;
  color: var(--up);
}

.it-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.it-form {
  padding: 16px 18px 18px;
}

.it-form .check {
  grid-column: 1 / -1;
}

.it-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.it-mail-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 10px;
}

.quote-live {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cdebd8;
}

@media (max-width: 900px) {
  .it-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .it-grid,
  .it-mail-grid {
    grid-template-columns: 1fr;
  }
}

.admin-search {
  display: flex;
  gap: 8px;
  padding: 12px 14px 0;
}

.admin-search input {
  flex: 1;
}

.admin-pw {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.02em;
  background: #f7f7f7;
  border: 1px solid var(--line);
  padding: 8px 10px;
  margin: 0;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-actions form {
  margin: 0;
}

.scg-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 16px;
}

.scg-modal[hidden] {
  display: none;
}

.scg-modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.48);
}

.scg-modal-box {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  width: min(440px, 100%);
  padding: 22px 22px 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.scg-modal-box .kicker {
  margin: 0 0 6px;
}

.scg-modal-box h3 {
  margin: 0 0 8px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.scg-modal-box p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.45;
}

.scg-modal-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

body.modal-lock {
  overflow: hidden;
}

/* Client center: white field, red accents */
body.dash:not(.it-ops):not(.desk) {
  background: #ececec;
}

body.dash:not(.it-ops):not(.desk) .util {
  background: #111;
  color: #d8d8d8;
  border-bottom: none;
}

body.dash:not(.it-ops):not(.desk) .util a {
  color: #d8d8d8;
}

body.dash:not(.it-ops):not(.desk) .util a:hover {
  color: #fff;
}

.dash-shell {
  grid-template-columns: 236px 1fr;
  --dash-head-h: 60px;
  --dash-accent: 3px;
}

.dash-shell .side {
  background: #fff;
  color: var(--ink);
  border-right: 1px solid #efe7e3;
  padding-top: 0;
  min-height: 0;
  height: calc(100vh - var(--util-h));
  max-height: calc(100vh - var(--util-h));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dash-shell .side .side-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: scroll;
  overscroll-behavior: contain;
  background: #fff;
  scrollbar-width: thin;
  scrollbar-color: #8d8680 #f3eeeb;
}

.dash-shell .side .side-nav::-webkit-scrollbar {
  width: 12px;
  height: 12px;
  display: block;
}

.dash-shell .side .side-nav::-webkit-scrollbar-track {
  background: #f3eeeb;
}

.dash-shell .side .side-nav::-webkit-scrollbar-thumb {
  background: #8d8680;
  border: 2px solid #f3eeeb;
}

.dash-shell .side .side-nav::-webkit-scrollbar-thumb:hover {
  background: #5c564f;
}

.dash-shell .side .brand {
  flex: 0 0 var(--dash-head-h);
  position: relative;
  z-index: 6;
  background: #fff;
  color: var(--ink);
  box-sizing: border-box;
  height: var(--dash-head-h);
  margin: 0;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #efe7e3;
}

body.dash:not(.it-ops) .dash-shell .side .brand::after {
  content: none;
}

@media (min-width: 861px) {
  body.dash:not(.it-ops) .dash-shell .side {
    overflow: visible;
    border-right: none;
  }
  body.dash:not(.it-ops) .dash-shell .side .side-nav {
    border-right: 1px solid #efe7e3;
  }
}

.dash-shell .side .brand-lockup,
.desk-side .brand-lockup {
  height: 48px;
  width: auto;
  max-width: 100%;
}

.footer .brand-lockup {
  height: 72px;
  width: auto;
  max-width: 280px;
}

.dash-shell .side .brand .mark {
  background: #fff;
  color: var(--red);
}

.dash-shell .side .brand .mark:has(img) {
  background: transparent;
}

.dash-shell .side .brand-text strong {
  color: #fff;
}

.dash-shell .side .brand-text span {
  color: rgba(255, 255, 255, 0.88);
}

.dash-shell .side .grp {
  color: #b3a8a2;
  margin-top: 16px;
}

.dash-shell .side a.item {
  color: #3d3d3d;
  border-radius: 0;
  padding: 8px 12px;
}

.dash-shell .side a.item:hover {
  background: #fff5f5;
  color: var(--red);
}

.dash-shell .side a.item.active {
  background: var(--red);
  color: #fff;
  box-shadow: none;
}

.dash-shell .side a.item.active .nav-badge {
  background: #fff;
  color: var(--red);
}

.dash-shell .topbar {
  box-sizing: border-box;
  height: var(--dash-head-h);
  display: flex;
  align-items: center;
  background: var(--red);
  color: #fff;
  border-bottom: var(--dash-accent) solid var(--red-deep);
  box-shadow: none;
  padding: 0 20px;
}

@media (min-width: 861px) {
  body.dash:not(.it-ops) .dash-shell .topbar {
    position: sticky;
    top: var(--util-h);
    overflow: hidden;
    margin-top: 0;
    margin-left: 0;
    border-bottom: none;
    background: #9a0108;
  }

  body.dash:not(.it-ops) .dash-shell .topbar::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: calc(var(--dash-head-h) * 1024 / 769);
    background: url("../bar-shade.jpg?v=6") left center / 100% 100% no-repeat;
    pointer-events: none;
    z-index: 2;
  }

  body.dash:not(.it-ops) .dash-shell .topbar > * {
    position: relative;
    z-index: 3;
  }
}

.dash-shell .search {
  flex: none;
  width: min(420px, 36vw);
  max-width: none;
  margin-left: 94px;
}

.dash-shell .who {
  margin-left: auto;
}

.dash-shell .who-name,
.dash-shell .who-name b {
  color: #fff;
}

.dash-shell .search input {
  background: #fff;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 0;
}

.dash-shell .search input:focus {
  border-color: #e3b4b8;
  box-shadow: 0 0 0 3px rgba(176, 16, 32, 0.12);
}

.dash-shell .who-name b {
  font-family: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 650;
}

.dash-shell .acct-no {
  display: block;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.85);
}

.dash-shell .pref-chip {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  border-radius: 0;
}

.dash-shell .pref-chip:hover {
  border-color: #fff;
  background: transparent;
  color: #fff;
}

.dash-shell .topbar .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.dash-shell .topbar .btn-ghost:hover {
  border-color: #fff;
  color: #fff;
  background: transparent;
}

.dash-shell .topbar .icon-btn {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
}

.dash-shell .topbar .icon-btn span {
  background: #fff;
}

.dash-shell .btn-red {
  box-shadow: none;
  border-radius: 0;
}

.dash-shell .work {
  padding: 22px 24px 48px;
}

.dash-hello {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  margin: 2px 0 18px;
}

.dash-hello .kicker {
  margin: 0 0 4px;
}

.dash-hello h1 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.dash-shell .work {
  padding: 16px 18px 40px;
}

.section-lead {
  margin: -2px 0 12px;
  max-width: 72ch;
  color: #5c564f;
  font-size: 14.5px;
  line-height: 1.5;
}

.inner-note {
  padding: 14px 16px 16px;
  color: #3d3d3d;
  font-size: 14px;
  line-height: 1.5;
}

.inner-note p {
  margin: 0;
}

.inner-note p + p {
  margin-top: 8px;
}

.sec-top {
  align-items: stretch;
}

.sec-top > .panel,
.sec-top > div,
.sec-top .panel {
  height: 100%;
}

.sec-top .panel {
  display: flex;
  flex-direction: column;
}

.sec-top .inner-note,
.sec-top form {
  flex: 1;
}

.sec-board {
  margin-top: 14px;
  padding-bottom: 92px;
}

.sec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sec-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  padding: 16px 18px 18px;
  min-width: 0;
}

.sec-card h4 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.3;
}

.sec-card p {
  margin: 0;
  color: #5c564f;
  font-size: 14px;
  line-height: 1.55;
}

.sec-card.is-wide {
  grid-column: 1 / -1;
}

.sec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.sec-pills li {
  margin: 0;
  padding: 6px 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
}

.sec-close {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  background: #fbf8f7;
}

.sec-close form {
  flex: none;
}

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

  .sec-close {
    flex-direction: column;
    align-items: stretch;
  }

  .sec-close .btn {
    width: 100%;
  }
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  background: #f6f1ee;
  border: 1px solid #efe7e3;
  font-size: 12px;
  font-weight: 650;
  color: #5c564f;
}

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

.dash-shell .desk-head h1 {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.2;
  color: var(--ink);
}

.acct-strip {
  display: grid;
  grid-template-columns: 1.25fr repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 12px;
}

.acct-strip .cell {
  display: block;
  min-width: 0;
  padding: 11px 14px 12px;
  border-right: 1px solid #eee;
  color: inherit;
  text-decoration: none;
}

.acct-strip a.cell:hover {
  background: #fafafa;
}

.acct-strip .cell:last-child {
  border-right: 0;
}

.acct-strip .lbl {
  font-size: 12px;
  font-weight: 600;
  color: #6d675f;
}

.acct-strip .val {
  margin-top: 2px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.qbar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  padding: 12px 16px 2px;
}

.qbar-sym strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.qbar-sym span {
  color: #6d675f;
  font-size: 12px;
}

.qbar-px {
  font-size: 22px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.qbar-chg {
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.qbar-flag {
  margin-left: auto;
  align-self: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #146c43;
}

.qbar-flag.paper {
  color: #6d675f;
}

.trade-desk {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 12px;
  align-items: stretch;
}

.trade-main,
.trade-side {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.chart-compact .qbar {
  padding: 10px 14px 0;
}

.chart-compact .qbar-px {
  font-size: 18px;
}

.chart-compact .chart-head {
  padding: 10px 14px 8px;
}

.price-chart-wrap.candles .price-chart {
  min-height: 220px;
}

.chart-compact .price-chart,
.chart-compact .price-chart-wrap {
  min-height: 220px;
}

.dash-shell .panel h3 a {
  color: inherit;
  text-decoration: none;
}

.dash-shell .panel h3 a:hover {
  color: var(--red);
}

.dash-shell table.data td.quiet {
  color: #6d675f;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desk-links a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-2);
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.desk-links a:last-child {
  border-bottom: 0;
}

.desk-links a:hover {
  background: #fafafa;
}

.desk-links a span {
  color: #5c564f;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.acct-mini {
  display: grid;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-2);
}

.acct-mini div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.acct-mini span {
  color: #6d675f;
}

.acct-mini b {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.ticket-est {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line-2);
}

.ticket-est div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.ticket-est dt {
  color: #6d675f;
  font-weight: 500;
}

.ticket-est dd {
  margin: 0;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.dash-shell .kpi,
.dash-shell .panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.dash-shell p.kpi {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  background: transparent;
}

.dash-shell .kpi.hero {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.dash-shell .kpi.hero .lbl,
.dash-shell .kpi.hero .muted {
  color: var(--muted);
}

.dash-shell .kpi.hero .up {
  color: var(--up);
}

.dash-shell .kpi.hero .down {
  color: var(--down);
}

.dash-shell a.kpi:hover {
  transform: none;
  box-shadow: none;
  border-color: #1b1b1b;
}

.dash-shell .panel h3 {
  color: var(--ink);
  background: #fff;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.dash-shell .panel h3::before {
  content: none;
}

.dash-shell table.data th {
  background: #fbf8f7;
  color: #5c564f;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: none;
}

.dash-shell .ticket label,
.dash-shell .field label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #3a3a3a;
  margin-bottom: 6px;
}

.dash-shell .fine {
  font-size: 13px;
  line-height: 1.5;
  color: #6b6560;
  max-width: 42em;
}

.dash-shell table.data tbody tr:hover {
  background: #fff6f6;
}

.dash-shell .chart-head {
  border-bottom-color: #f3ece8;
}

.dash-shell .chart-head-k {
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 0;
}

.dash-shell .news a:hover {
  background: #fff6f6;
}

.dash-shell .dash-bottom {
  background: #fff;
  border-top: 1px solid #efe7e3;
}

.dash-shell .dash-bottom a.active {
  color: var(--red);
}

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

  .dash-shell .main {
    min-width: 0;
  }

  .dash-shell .work {
    padding: 14px 12px 108px;
  }

  .dash-shell .live-chat {
    height: calc(100vh - 300px);
    max-height: calc(100vh - 270px);
    min-height: 280px;
  }

  .dash-shell .side {
    padding-top: 0;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
  }

  .dash-shell .side .brand {
    margin: 0;
    height: var(--dash-head-h);
    padding: 0 12px;
    padding-top: 0;
    background: #fff;
    border-bottom: 1px solid #efe7e3;
  }

  body.dash:not(.it-ops) .dash-shell .topbar,
  .dash-shell .topbar {
    height: var(--dash-head-h);
    min-height: var(--dash-head-h);
    display: flex;
    margin-left: 0;
    padding: 0 10px;
    gap: 8px;
    background: var(--red);
  }
  body.dash:not(.it-ops) .dash-shell .topbar {
    border-bottom: none;
  }
  .dash-shell .topbar {
    border-bottom: var(--dash-accent) solid var(--red-deep);
  }

  .dash-shell .search {
    grid-column: auto;
    flex: 1;
    width: auto;
    max-width: none;
    min-width: 0;
    margin-left: 0;
  }

  .dash-shell .who {
    grid-column: auto;
  }

  .dash-shell .pref-chip {
    display: none;
  }

  .dash-hello {
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    margin-bottom: 14px;
  }

  .dash-hello h1,
  .dash-shell .desk-head h1 {
    font-size: 18px;
  }

  .ov-hero {
    flex-direction: column;
  }

  .ov-reds {
    min-height: 140px;
  }

  .ov-split {
    grid-template-columns: 1fr;
  }

  .ov-doors {
    grid-template-columns: 1fr;
  }

  .ov-doors .ov-door {
    min-height: 0;
  }

  .acct-strip {
    grid-template-columns: 1fr 1fr;
  }

  .acct-strip .cell:first-child {
    grid-column: 1 / -1;
  }

  .acct-strip .cell {
    border-bottom: 1px solid #eee;
  }

  .acct-strip .cell:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .desk-head {
    flex-wrap: wrap;
  }

  .dash-hello .btn {
    min-height: 40px;
    margin-left: auto;
  }

  .dash-shell .kpi-row,
  .dash-shell .dash-grid,
  .dash-shell .bal-split,
  .trade-desk {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .trade-desk {
    display: flex;
    flex-direction: column;
  }

  .trade-main,
  .trade-side {
    display: contents;
  }

  .chart-compact { order: 1; }
  .trade-ticket-box { order: 2; }
  .trade-orders { order: 3; }
  .trade-acct { order: 4; }
  .trade-pos { order: 5; }
  .trade-watch { order: 6; }

  .dash-shell .kpi .val,
  .dash-shell .kpi.hero .val {
    font-size: 26px;
    overflow-wrap: anywhere;
  }

  .dash-shell .chart-head {
    padding: 12px;
  }

  .dash-shell .chart-head-k {
    margin-bottom: 0;
  }

  .dash-shell .price-chart,
  .dash-shell .price-chart-wrap {
    min-height: 0;
  }

  .dash-shell .panel h3 {
    letter-spacing: 0;
  }

  .dash-shell .dash-bottom {
    background: #111;
    border-top: 2px solid var(--red);
    box-shadow: none;
  }

  .dash-shell .dash-bottom a,
  .dash-shell .dash-bottom button {
    color: #c8c8c8;
    font-size: 10px;
    line-height: 1.25;
    letter-spacing: 0;
    padding: 8px 2px;
    white-space: normal;
  }

  .dash-shell .dash-bottom a.active,
  .dash-shell .dash-bottom a:hover,
  .dash-shell .dash-bottom button:hover {
    color: #fff;
  }

  body.dash:not(.it-ops):not(.desk) .util {
    height: auto;
    min-height: var(--util-h);
  }

  body.dash:not(.it-ops):not(.desk) .util .wrap {
    width: calc(100% - 20px);
    gap: 8px;
  }

  body.dash:not(.it-ops):not(.desk) .util .wrap > div:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Phone: every page stays inside the screen and wide tables scroll in place */
@media (max-width: 860px) {
  .hero-grid > *,
  .platform > *,
  .auth-grid > *,
  .tools-row > *,
  .grid-4 > *,
  .grid-3 > *,
  .grid-2 > *,
  .foot-grid > *,
  .kpi-row > *,
  .dash-grid > *,
  .dash-shell > *,
  .desk-shell > *,
  .term-grid > *,
  .stats > *,
  .set-grid > *,
  .row-2 > *,
  .live-chat-layout > *,
  .it-grid > *,
  .it-mail-grid > *,
  .cta .wrap > * {
    min-width: 0;
  }

  .snapshot,
  .panel,
  .quote-chart-wrap,
  .terminal,
  .card,
  .auth-card,
  .auth-side {
    max-width: 100%;
    min-width: 0;
  }

  .snapshot,
  .quote-chart-wrap,
  .terminal,
  .section > .wrap,
  .it-page > .wrap,
  .auth-side {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hero-grid,
  .platform,
  .auth-grid,
  .tools-row,
  .term-grid {
    width: min(1180px, calc(100% - 24px));
  }

  .quote-form {
    width: 100%;
    min-width: 0;
  }

  .quote-form input {
    min-width: 0;
    width: auto;
    flex: 1 1 auto;
  }

  .quote-form button {
    flex: none;
  }

  .header-row {
    height: auto;
    min-height: 56px;
    padding: 8px 0;
    gap: 8px;
    width: calc(100% - 20px);
  }

  .brand {
    min-width: 0;
  }

  .brand-text span {
    letter-spacing: 0.06em;
  }

  .header-actions {
    gap: 6px;
    flex-shrink: 0;
  }

  .header-actions .btn {
    padding: 0 8px;
  }

  .util {
    height: auto;
  }

  .util .wrap {
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    width: calc(100% - 20px);
    padding: 6px 0;
  }

  .util a {
    margin-right: 8px;
  }

  .util-right {
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    white-space: normal;
    gap: 6px 8px;
  }

  .platform .btn {
    margin: 8px 8px 0 0;
  }

  .cta .wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .cta .wrap > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .cta .btn {
    width: 100%;
  }

  .page-hero h1,
  .hero h1,
  .it-head h1 {
    overflow-wrap: anywhere;
  }

  .crumb {
    overflow-wrap: anywhere;
  }

  .dash-shell .topbar .who {
    min-width: 0;
  }

  .dash-shell .search,
  .dash-shell .search input {
    min-width: 0;
    width: 100%;
  }

  .mini-list span,
  .acct-no,
  .fine,
  .lede,
  p,
  li,
  td,
  th {
    overflow-wrap: anywhere;
  }

  th,
  td {
    overflow-wrap: normal;
  }

  body:not(.dash) .site-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 80;
    background: #111;
  }

  body:not(.dash) .header {
    position: relative;
    top: auto;
  }

  body:not(.dash) {
    padding-top: var(--site-top-h, 104px);
  }

  body:not(.dash) .util {
    height: 36px;
    min-height: 36px;
    overflow: hidden;
    padding: 0;
  }

  body:not(.dash) .util .wrap {
    flex-wrap: nowrap;
    height: 36px;
    padding: 0;
  }

  body:not(.dash) .hero-grid {
    padding-top: 22px;
    padding-bottom: 28px;
    gap: 18px;
  }

  body:not(.dash) .hero .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 16px;
  }

  body:not(.dash) .hero .stats div {
    padding: 12px 8px 0 0;
  }

  body:not(.dash) .hero .stats span {
    display: block;
    font-size: 11px;
  }
}

body.dash.it-ops {
  background: #f3f0eb;
}

body.dash.it-ops .admin-shell,
body.dash.it-ops .admin-client {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  width: 100%;
  min-height: calc(100vh - var(--util-h));
  --dash-head-h: 60px;
  --dash-accent: 3px;
}

body.dash.it-ops .admin-shell .side,
body.dash.it-ops .admin-client .side {
  background: #111;
  color: #d4d4d4;
  border-right: 1px solid #1c1c1c;
  padding-top: 0;
}

body.dash.it-ops .admin-shell .side .side-nav,
body.dash.it-ops .admin-client .side .side-nav {
  background: #111;
  scrollbar-color: #6e6e6e #1a1a1a;
}

body.dash.it-ops .admin-shell .side .side-nav::-webkit-scrollbar-track,
body.dash.it-ops .admin-client .side .side-nav::-webkit-scrollbar-track {
  background: #1a1a1a;
}

body.dash.it-ops .admin-shell .side .side-nav::-webkit-scrollbar-thumb,
body.dash.it-ops .admin-client .side .side-nav::-webkit-scrollbar-thumb {
  background: #6e6e6e;
  border-color: #1a1a1a;
}

body.dash.it-ops .admin-shell .side .brand,
body.dash.it-ops .admin-client .side .brand {
  background: #111;
  color: #fff;
  border-bottom: var(--dash-accent) solid var(--red-deep);
  margin: 0;
  padding: 18px 16px 16px;
}

body.dash.it-ops .dash-shell .side .brand-lockup {
  display: block;
  height: auto;
  width: 100%;
  max-width: 100%;
}

body.dash.it-ops .admin-shell .side .brand-text span,
body.dash.it-ops .admin-client .side .brand-text span {
  color: rgba(255, 255, 255, 0.82);
}

body.dash.it-ops .admin-shell .side .grp,
body.dash.it-ops .admin-client .side .grp {
  color: #8a8a8a;
  margin: 16px 14px 6px;
  padding-top: 12px;
  border-top: 1px solid #2a2a2a;
  letter-spacing: 0.1em;
}

body.dash.it-ops .admin-shell .side .side-nav > .grp:first-child,
body.dash.it-ops .admin-client .side .side-nav > .grp:first-child {
  border-top: none;
  padding-top: 4px;
  margin-top: 12px;
}

body.dash.it-ops .admin-shell .side a.item,
body.dash.it-ops .admin-client .side a.item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #d0d0d0;
  margin: 2px 8px;
  padding: 10px 12px;
  font-size: 13.5px;
  border-radius: 0;
}

body.dash.it-ops .admin-shell .side a.item:hover,
body.dash.it-ops .admin-client .side a.item:hover {
  background: #1c1c1c;
  color: #fff;
}

body.dash.it-ops .admin-shell .side a.item.active,
body.dash.it-ops .admin-client .side a.item.active {
  background: #1c1c1c;
  color: #fff;
  box-shadow: inset 3px 0 0 var(--red);
}

body.dash.it-ops .admin-client .who,
body.dash.it-ops .admin-shell .who {
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

body.dash.it-ops .admin-client .who-name,
body.dash.it-ops .admin-shell .who-name {
  margin-right: auto;
}

body.dash.it-ops .admin-shell .work {
  max-width: 1120px;
}

body.dash.it-ops .admin-client .work {
  max-width: 1040px;
}

body.dash.it-ops .dash-shell .topbar {
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  height: 64px;
}

body.dash.it-ops .dash-shell .who-name,
body.dash.it-ops .dash-shell .who-name b {
  color: var(--ink);
}

body.dash.it-ops .dash-shell .acct-no {
  color: #6d675f;
}

body.dash.it-ops .dash-shell .pref-chip {
  background: #f6f3ee;
  border-color: #e4ddd4;
  color: var(--ink);
}

body.dash.it-ops .dash-shell .pref-chip:hover {
  background: #fff;
  border-color: #1a1a1a;
  color: var(--ink);
}

body.dash.it-ops .dash-shell .topbar .btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: #d9d3cb;
}

body.dash.it-ops .dash-shell .topbar .btn-ghost:hover {
  background: #fff;
  color: var(--ink);
  border-color: #1a1a1a;
}

body.dash.it-ops .dash-shell .topbar .icon-btn {
  background: #fff;
  border-color: #d9d3cb;
}

body.dash.it-ops .dash-shell .topbar .icon-btn span {
  background: var(--ink);
}

body.dash.it-ops .dash-shell .work {
  padding: 20px 24px 56px;
}

body.dash.it-ops .dash-shell .desk-head {
  margin-bottom: 16px;
}

body.dash.it-ops .dash-shell .desk-head h1 {
  font-size: 22px;
}

body.dash.it-ops .admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

body.dash.it-ops .admin-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 88px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

body.dash.it-ops .admin-stat:hover {
  border-color: #1a1a1a;
  text-decoration: none;
}

body.dash.it-ops .admin-stat b {
  font-size: 28px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

body.dash.it-ops .admin-stat span {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6d675f;
}

body.dash.it-ops .admin-stat.alert b {
  color: var(--red);
}

body.dash.it-ops .admin-search {
  align-items: center;
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-2);
  background: #fff;
}

body.dash.it-ops .admin-search input {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  font-size: 14px;
}

body.dash.it-ops .dash-shell table.data th,
body.dash.it-ops .dash-shell table.data td {
  padding: 12px 16px;
  vertical-align: middle;
}

body.dash.it-ops .client-link {
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

body.dash.it-ops .client-link:hover {
  color: var(--red);
}

body.dash.it-ops td.row-actions {
  width: 1%;
  text-align: right;
  white-space: nowrap;
}

body.dash.it-ops td.row-actions .admin-actions {
  justify-content: flex-end;
}

body.dash.it-ops td.row-actions .btn {
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

body.dash.it-ops .ticket.it-form > .btn,
body.dash.it-ops .it-actions .btn {
  justify-self: start;
  min-width: 148px;
}

.admin-when {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.admin-when input[type="date"] {
  min-width: 0;
  flex: 1 1 160px;
}

.admin-when select {
  width: 88px;
  flex: 0 0 auto;
}

.admin-close-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.admin-close-row input {
  width: 110px;
  min-width: 0;
  height: 36px;
}

.admin-id-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

@media (max-width: 860px) {
  body.dash.it-ops .admin-shell,
  body.dash.it-ops .admin-client {
    grid-template-columns: 1fr;
  }

  body.dash.it-ops .admin-client .work,
  body.dash.it-ops .admin-shell .work {
    max-width: none;
    padding-bottom: 36px;
  }

  body.dash.it-ops .admin-stats {
    grid-template-columns: 1fr;
  }
}

.dash .id-box { margin-top: 12px; }
.dash .id-status {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
}
.dash .id-status.wait { border-left: 3px solid #161616; }
.dash .id-status.ok { border-left: 3px solid #146c43; color: #146c43; }
.dash .id-status.bad { border-left: 3px solid #b01020; color: #b01020; }
.dash input[type="file"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px;
  border-radius: 0;
  font: inherit;
}
.data form.watch-rm { margin: 0; }
.data form.watch-rm .btn { padding: 4px 10px; font-size: 12px; }

@media (max-width: 860px) {
  html {
    touch-action: pan-x pan-y;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }
}

body.guest-desk {
  --util-h: 54px;
}

body.guest-desk .util {
  height: var(--util-h);
}

body.guest-desk .guest-auth-pair {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
}

body.guest-desk .util a.guest-auth {
  margin-right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

body.guest-desk .util a.guest-auth-login {
  color: #fff;
  background: transparent;
  border: 1.5px solid #fff;
}

body.guest-desk .util a.guest-auth-login:hover {
  color: #111;
  background: #fff;
}

body.guest-desk .util a.guest-auth-open {
  color: #fff;
  background: var(--red);
  border: 1.5px solid var(--red);
}

body.guest-desk .util a.guest-auth-open:hover {
  color: #fff;
  background: var(--red-hover);
  border-color: var(--red-hover);
}

@media (max-width: 720px) {
  body.guest-desk {
    --util-h: 48px;
  }

  body.guest-desk .util a.guest-auth {
    min-height: 32px;
    padding: 0 12px;
    font-size: 13px;
  }
}


.hero-grid.hero-grid-form {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  max-width: none;
}

.hero-form .account-card {
  box-shadow: 0 18px 48px rgba(27, 27, 27, 0.12);
  padding: 22px 22px 18px;
}

@media (max-width: 900px) {
  .hero-grid.hero-grid-form {
    grid-template-columns: minmax(0, 1fr);
  }
}
