/*
  Hentrad Control — the admin site, in the Doji look (the same language
  as the website and the trader portal): Hentrad blue and gold, soft
  rounded white cards on light grey, black pill buttons, Outfit type with
  the slanted wordmark, and Doji on the login. Green and red keep their
  meaning: gains and losses. IBM Plex Mono for figures. Tables are the
  main surface here, so rows are roomy and every money figure is tabular.

  Laptop first, but it works on a phone: below 960px the sidebar
  becomes a slide-in menu under a top bar.
*/

:root {
  color-scheme: light;
  --ink: #14182A;
  --muted: #5A6075;
  --faint: #8D93A8;
  --paper: #F0F1F4;          /* the working area */
  --tint: #F6F7FA;           /* quiet fills: table heads, inputs */
  --card: #FFFFFF;
  --line: rgba(20, 24, 42, 0.08);
  --line-strong: rgba(20, 24, 42, 0.14);
  --track: #E3E6EE;
  --brand: #2F5BFF;          /* Hentrad blue */
  --brand-deep: #1B3BCC;
  --gold: #FFC83D;
  --pill: #0B0D14;           /* black pill buttons, as on the website */
  --blue: #2F5BFF;
  --blue-deep: #1B3BCC;
  --blue-soft: rgba(47, 91, 255, 0.09);
  --green: #2FAE66;
  --green-deep: #1C7A47;
  --green-soft: rgba(47, 174, 102, 0.12);
  --green-light: #7CE0A3;
  --red: #E5484D;
  --red-deep: #B4232A;
  --red-soft: rgba(229, 72, 77, 0.09);
  --amber-soft: #FFF6DE;
  --amber-line: #F3DC9C;
  --amber-ink: #7A5A0F;
  --hover: rgba(20, 24, 42, 0.04);
  --card-shadow: 0 18px 40px -30px rgba(20, 24, 42, 0.3);
  --display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --body: "Outfit", "Segoe UI", system-ui, sans-serif;
  --figures: "Outfit", "Segoe UI", system-ui, sans-serif; /* numbers: the body font, every digit the same width */
  --wordmark: "Fredoka", "Outfit", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 14.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
h1, h2, h3, p { margin: 0; }
a { color: var(--blue-deep); font-weight: 600; text-decoration: none; }
a:hover { color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--figures); font-weight: 600; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.up { color: var(--green-deep); }
.down { color: var(--red-deep); }
.icon { display: inline-flex; align-items: center; justify-content: center; line-height: 0; flex-shrink: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* --- Buttons & fields --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 20px; border-radius: 14px; border: 1px solid transparent; font-family: var(--display); font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:disabled { background: #C9CDD8 !important; border-color: #C9CDD8 !important; color: #fff !important; cursor: not-allowed; }
.btn-primary { background: var(--pill); color: #fff; border-color: var(--pill); }
.btn-primary:hover:not(:disabled) { background: var(--pill); color: #fff; transform: scale(1.02); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover:not(:disabled) { background: var(--tint); color: var(--ink); }
.btn-danger { background: var(--card); color: var(--red-deep); border-color: var(--line-strong); }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 7px 13px; font-size: 13.5px; }
.link-btn { background: none; border: 0; padding: 8px; color: var(--blue-deep); font-family: var(--body); font-weight: 600; font-size: 14px; cursor: pointer; align-self: center; }
.link-btn:hover { text-decoration: underline; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; flex-shrink: 0; }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; }
input, select { width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--tint); color: var(--ink); font-family: var(--body); font-size: 15px; }
input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 91, 255, 0.18); background: var(--card); }
.code-input { font-family: var(--figures); font-size: 24px; letter-spacing: 0.45em; text-align: center; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.checkbox-row input { width: 20px; height: 20px; min-height: 0; margin: 0; flex-shrink: 0; accent-color: var(--blue); }
.error { color: var(--red-deep); font-size: 13.5px; }
.error:empty { display: none; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

/* --- Pills, cards, KPI tiles --- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill-neutral { background: var(--paper); color: var(--muted); border: 1px solid var(--line); }
.pill-blue { background: var(--blue-soft); color: var(--blue-deep); }
.pill-green { background: var(--green-soft); color: var(--green-deep); }
.pill-red { background: var(--red-soft); color: var(--red-deep); }
.pill-amber { background: var(--amber-soft); color: var(--amber-ink); border: 1px solid var(--amber-line); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--card-shadow); }
.section-title { font-family: var(--display); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; box-shadow: var(--card-shadow); }
.kpi.warn { background: var(--amber-soft); border-color: var(--amber-line); }
.kpi-value { font-family: var(--figures); font-size: 26px; letter-spacing: -0.02em; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi-sub { font-size: 12.5px; color: var(--muted); }
.kpi-section { display: flex; flex-direction: column; gap: 10px; }
.kpi-section + .kpi-section { margin-top: 18px; }
.split > .kpi-section, .split > section { margin-top: 0; }
.kpi-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bar { height: 6px; border-radius: 999px; background: var(--track); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 999px; background: var(--blue); }
.bar.green > span { background: var(--green); }
.bar.red > span { background: var(--red); }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.note .icon { color: var(--blue-deep); }
.alert { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 12px; font-size: 14px; border: 1px solid; margin-bottom: 10px; }
.alert .grow { flex: 1; }
.alert.amber { background: var(--amber-soft); border-color: var(--amber-line); }
.alert.amber .icon { color: var(--amber-ink); }
.alert.blue { background: var(--blue-soft); border-color: rgba(47, 91, 255, 0.25); }
.alert.blue .icon { color: var(--blue-deep); }
.alert.red { background: var(--red-soft); border-color: rgba(180, 35, 42, 0.25); }
.alert.red .icon { color: var(--red-deep); }
.alert.green { background: var(--green-soft); border-color: rgba(19, 112, 58, 0.25); }
.alert.green .icon { color: var(--green-deep); }

/* --- Tables --- */
.table-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--card-shadow); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { padding: 11px 16px; text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); background: var(--tint); white-space: nowrap; }
td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
td.end, th.end { text-align: right; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--hover); }
tr.selected td { background: var(--blue-soft); }
.empty { padding: 22px 16px; color: var(--muted); font-size: 14px; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who-avatar { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 11px; background: var(--blue-soft); color: var(--blue-deep); font-size: 12.5px; font-weight: 600; flex-shrink: 0; }
.who-text { display: flex; flex-direction: column; min-width: 0; }
.who-text strong { font-size: 14px; }
.who-text span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.days { display: flex; gap: 4px; }
.day { width: 18px; height: 18px; border-radius: 5px; }
.day.win { background: var(--green); }
.day.loss { background: var(--red); }
.day.flat { background: var(--track); }
.day.rest { border: 1.5px dashed rgba(20, 24, 42, 0.3); }
.dims { display: flex; gap: 10px; }
.dim { width: 64px; display: flex; flex-direction: column; gap: 3px; }
.dim-head { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.dim-head .mono { color: var(--ink); font-size: 11px; }
.copy-btn { display: inline-flex; border: 0; background: none; color: var(--blue-deep); padding: 4px; cursor: pointer; vertical-align: middle; }

/* --- Chips --- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-family: var(--body); font-size: 13.5px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chip .mono { font-size: 12px; }
.chip.active { background: var(--pill); border-color: var(--pill); color: #fff; }

/* --- Two-column pages with a detail panel --- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 14px; align-items: start; }
.split.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.detail { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 20px; box-shadow: var(--card-shadow); }
.stage-track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; list-style: none; margin: 0; padding: 0; }
.stage-track li { display: flex; flex-direction: column; gap: 6px; font-size: 11px; font-weight: 600; color: var(--muted); }
.stage-track li::before { content: ""; height: 6px; border-radius: 999px; background: var(--track); }
.stage-track li.done { color: var(--ink); }
.stage-track li.done::before { background: var(--green); }
.stage-track li.current { color: var(--ink); }
.stage-track li.current::before { background: var(--blue); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.facts .mono { font-size: 14px; }
.activity-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.activity-row:first-of-type { border-top: 0; }
.principles { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.6; white-space: pre-line; }

/* --- The daily line --- */
.gauge { display: flex; flex-direction: column; gap: 8px; }
.gauge-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.gauge-value { font-family: var(--figures); font-size: 18px; font-weight: 600; color: var(--ink); }
.gauge-value.up { color: var(--green-deep); }
.gauge-value.down { color: var(--red-deep); }
.gauge-track { position: relative; height: 8px; border-radius: 999px; background: var(--track); border: 1px solid var(--line); }
.gauge-fill { position: absolute; top: 0; bottom: 0; border-radius: 999px; }
.gauge-zero { position: absolute; top: -4px; bottom: -4px; left: 50%; width: 2px; margin-left: -1px; background: var(--ink); opacity: 0.35; }
.gauge-dot { position: absolute; top: -6px; width: 18px; height: 18px; margin-left: -9px; border-radius: 999px; background: #fff; border: 3px solid var(--green); }

/* --- Funnel & levels --- */
.funnel { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; align-items: end; }
.funnel-step { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.funnel-bar { border-radius: 8px 8px 0 0; background: var(--blue); min-height: 6px; }
.funnel-bar.green { background: var(--green); }
.funnel-name { font-size: 12.5px; font-weight: 600; }
.funnel-sub { font-size: 12px; color: var(--muted); min-height: 18px; }
.level-row { display: flex; align-items: center; gap: 12px; font-size: 13.5px; }
.level-row > span:first-child { width: 58px; }
.level-row .bar { flex: 1; }

/* --- Master account --- */
.minimum-bar { position: relative; height: 14px; border-radius: 999px; background: var(--track); }
.minimum-bar > span { display: block; height: 100%; border-radius: 999px; }
.minimum-mark { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--ink); }

/* --- Requests --- */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.checklist li:first-child { border-top: 0; }
.checklist input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; accent-color: var(--green); flex-shrink: 0; }

/* --- Log in: blue, with Doji, like the portal's --- */
.login { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; background: var(--paper); }
.login-side { background: var(--brand); color: #fff; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; border-radius: 0 40px 40px 0; }
.login-pitch { display: flex; flex-direction: column; gap: 14px; max-width: 480px; }
.login-pitch h1 { font-family: var(--display); font-size: 56px; font-weight: 700; letter-spacing: -0.045em; line-height: 0.98; }
.login-pitch p { font-size: 17px; color: rgba(255, 255, 255, 0.85); }
.login-doji { width: 200px; height: 250px; object-fit: contain; align-self: center; }
.login-fine { font-size: 13px; color: rgba(255, 255, 255, 0.78); max-width: 460px; }
.login-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.login-form { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 16px; background: var(--card); padding: 28px; border-radius: 28px; box-shadow: var(--card-shadow); }
.login-form h2 { font-family: var(--display); font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.login-mark { width: 64px; height: 80px; object-fit: contain; }
.step-icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 16px; background: var(--blue-soft); color: var(--blue-deep); }
.step-icon.green { background: var(--green-soft); color: var(--green-deep); }
.setup-steps { list-style: none; counter-reset: setup; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.setup-steps li { counter-increment: setup; position: relative; padding-left: 36px; display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.setup-steps li::before { content: counter(setup); position: absolute; left: 0; top: 0; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 800; }
.setup-steps strong { color: var(--ink); }
.key-box { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--tint); border: 1px solid var(--line-strong); }
.key-box .mono { flex: 1; font-size: 14px; letter-spacing: 0.06em; word-break: normal; overflow-wrap: anywhere; color: var(--ink); }
.qr { display: block; width: 200px; height: 200px; padding: 10px; background: #fff; border: 1px solid var(--line-strong); border-radius: 16px; }
.cant-scan summary { cursor: pointer; color: var(--blue-deep); font-weight: 600; }
.cant-scan[open] { display: flex; flex-direction: column; gap: 8px; }
.cant-scan[open] summary { margin-bottom: 2px; }
.recovery-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; padding: 16px; border-radius: 16px; background: var(--tint); border: 1px solid var(--line-strong); font-size: 15px; }
.wm { font-family: var(--wordmark); font-weight: 700; letter-spacing: -0.03em; display: inline-block; transform: skewX(-9deg); color: var(--brand); line-height: 1; font-size: 28px; }
.brand-row { display: flex; align-items: center; gap: 10px; }
.brand-tag { padding: 3px 10px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }
.login-side .wm { color: #fff; font-size: 34px; }

/* --- Shell: a white sidebar, as in the trader portal --- */
/* The gradient carries the sidebar's white down long pages. */
.shell { display: grid; grid-template-columns: 256px minmax(0, 1fr); align-items: start; min-height: 100vh; background: linear-gradient(to right, var(--card) 255px, var(--line) 255px, var(--line) 256px, var(--paper) 256px); }
.sidebar { background: var(--card); border-right: 1px solid var(--line); padding: 24px 14px 16px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar > .brand-row { padding: 0 12px 24px; }
#side-nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 13px; color: var(--muted); font-size: 14.5px; font-weight: 600; }
.nav-item:hover { color: var(--ink); background: var(--hover); }
.nav-item.active { background: linear-gradient(90deg, rgba(47, 91, 255, 0.16), rgba(47, 91, 255, 0.04)); color: var(--ink); box-shadow: inset 2px 0 0 var(--blue); }
.nav-item.active .icon { color: var(--blue); }
.nav-count { margin-left: auto; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--red-soft); color: var(--red-deep); }
.nav-count:empty { display: none; }
.side-foot { margin-top: auto; padding: 12px; border-radius: 16px; background: var(--tint); border: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.avatar { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.side-foot-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.side-foot-text strong { color: var(--ink); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot-text span { color: var(--muted); font-size: 12px; }
.icon-btn.dark { background: var(--card); border-color: var(--line); color: var(--muted); }
#admin-logout-btn:hover { color: var(--red-deep); }
.mobile-bar { display: none; }
.main { padding: 32px 40px 56px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.topbar h1 { font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.search { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); width: 300px; }
.search input { border: 0; min-height: 42px; padding: 0; font-size: 14px; background: transparent; }
.search input:focus { outline: 0; }
.page { display: none; flex-direction: column; gap: 16px; }
.page.active { display: flex; }

@media (max-width: 1200px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .detail { position: static; }
  .funnel { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; align-content: start; background: var(--paper); }
  .mobile-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: rgba(240, 241, 244, 0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
  .mobile-bar .wm { font-size: 24px; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; height: auto; z-index: 40; transform: translateX(-100%); transition: transform 180ms ease; visibility: hidden; }
  .sidebar.open { transform: translateX(0); visibility: visible; box-shadow: 0 0 40px rgba(20, 24, 42, 0.25); }
  .main { padding: 18px 16px 40px; }
  .topbar { flex-direction: column; }
  .search { width: 100%; }
  .split.even { grid-template-columns: minmax(0, 1fr); }
  .login { grid-template-columns: minmax(0, 1fr); }
  .login-side { padding: 28px 24px; gap: 14px; border-radius: 0 0 32px 32px; }
  .login-doji { display: none; }
  .login-form { padding: 22px 18px; }
  .login-pitch h1 { font-size: 36px; }
  .login-pitch p { font-size: 15px; }
  .login-main { padding: 28px 20px 40px; align-items: flex-start; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  input, select { font-size: 16px; }
}

@media (max-width: 560px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 14px; }
  .kpi-value { font-size: 19px; }
  .funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar h1 { font-size: 24px; }
}

/* Support */
tr.unread td { font-weight: 600; }
.strong { font-weight: 600; color: var(--ink); }
.support-detail { max-height: calc(100vh - 40px); overflow-y: auto; }
.ctx { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; background: var(--paper); }
.ctx summary { cursor: pointer; font-weight: 600; font-size: 13.5px; }
.ctx-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; margin: 10px 0; }
.ctx-facts dt { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ctx-facts dd { margin: 2px 0 0; font-size: 13.5px; }
.ctx-list { margin: 4px 0 8px; padding-left: 18px; font-size: 13px; display: grid; gap: 3px; }
.sup-thread { display: flex; flex-direction: column; gap: 8px; max-height: 340px; overflow-y: auto; }
.sup-msg { max-width: 88%; padding: 10px 12px; border-radius: 14px; }
.sup-msg p { margin: 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.sup-msg small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.sup-msg.trader { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); }
.sup-msg.admin { align-self: flex-end; background: var(--blue-soft, rgba(47, 91, 255, .09)); }
.sup-reply { display: flex; flex-direction: column; gap: 8px; }
.sup-reply textarea { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-strong); font: inherit; font-size: 14px; resize: vertical; }

.rate-note { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; }
