:root {
  --ink: #242420;
  --ink-soft: #50504b;
  --teal-900: #111111;
  --teal-700: #8b6a2c;
  --teal-100: #f4ecd9;
  --amber: #cfad67;
  --amber-soft: #fff4d8;
  --red: #b94040;
  --red-soft: #ffeded;
  --green: #16725f;
  --surface: #ffffff;
  --canvas: #f5f5f4;
  --line: #e5e5e1;
  --muted: #74746e;
  --sidebar-width: 244px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  letter-spacing: 0;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
button, input, select { font: inherit; letter-spacing: 0; }
a { color: var(--teal-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: 28px; line-height: 1.25; }
h2 { margin-bottom: 6px; font-size: 18px; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); background: var(--teal-900); color: white; padding: 24px 16px; display: flex; flex-direction: column; z-index: 30; }
.brand { display: flex; align-items: center; gap: 12px; color: white; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand-logo { display: block; width: 100%; max-width: 220px; aspect-ratio: 3 / 1; object-fit: contain; }
.brand.large .brand-logo { max-width: 320px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.42); background: var(--amber); color: #172523; font-weight: 900; font-family: Georgia, serif; font-size: 22px; }
.brand strong, .brand small { display: block; letter-spacing: 0; }
.brand strong { font-size: 15px; }
.brand small { margin-top: 3px; font-size: 8px; color: #b9d3ce; }
.brand.large .brand-mark { width: 46px; height: 46px; font-size: 26px; }
.environment { margin: 28px 0 20px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.14); font-size: 12px; color: #cfe0dd; display: flex; gap: 8px; align-items: center; }
.environment span { width: 8px; height: 8px; border-radius: 50%; background: #60d5a7; box-shadow: 0 0 0 3px rgba(96,213,167,.14); }
.nav-list { display: grid; gap: 5px; }
.nav-list a { min-height: 54px; padding: 9px 10px; color: #cfe0dd; display: flex; gap: 12px; align-items: center; border-left: 3px solid transparent; }
.nav-list a:hover { background: rgba(255,255,255,.07); color: white; text-decoration: none; }
.nav-list a.active { background: #29251c; color: white; border-left-color: var(--amber); }
.nav-list a span:last-child { font-size: 13px; }
.nav-list small { display: block; margin-top: 2px; color: #8eb6af; font-size: 8px; }
.nav-symbol { width: 29px; height: 29px; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.sidebar-footer { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid rgba(255,255,255,.12); color: #d6e4e1; font-size: 10px; }
.sidebar-footer small { display: block; color: #7fa8a1; margin-top: 4px; font-size: 8px; }
.main-column { grid-column: 2; min-width: 0; }
.topbar { height: 72px; padding: 0 32px; background: white; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20; }
.topbar-title strong, .topbar-title small { display: block; }
.topbar-title strong { font-size: 15px; }
.topbar-title small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.user-menu { display: flex; align-items: center; gap: 12px; font-size: 12px; }
.user-menu form { margin: 0; }
.role-tag { background: var(--amber-soft); color: #78500f; padding: 5px 8px; border: 1px solid #efd8a3; }
.icon-text-button, .menu-button { border: 0; background: transparent; cursor: pointer; color: var(--ink-soft); }
.icon-text-button { padding: 7px; }
.menu-button { display: none; width: 38px; height: 38px; font-size: 20px; }
.content { padding: 32px; max-width: 1500px; margin: 0 auto; }
.page-heading { margin-bottom: 26px; }
.page-heading p:last-child { color: var(--muted); margin-bottom: 0; font-size: 13px; }
.split-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.eyebrow { color: var(--teal-700); font-size: 10px; font-weight: 800; margin-bottom: 8px; }
.primary-button, .secondary-button, .danger-button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; border: 1px solid transparent; border-radius: 4px; font-weight: 700; font-size: 13px; cursor: pointer; text-decoration: none; }
.primary-button { background: var(--teal-700); color: white; }
.primary-button:hover { background: #06695f; text-decoration: none; }
.secondary-button { background: white; color: var(--teal-900); border-color: #afc3bf; }
.secondary-button:hover { border-color: var(--teal-700); text-decoration: none; }
.danger-button { background: white; color: var(--red); border-color: #dfa6a6; }
.full { width: 100%; }
button:disabled { opacity: .48; cursor: not-allowed; }
.flash-stack { display: grid; gap: 8px; margin-bottom: 18px; }
.flash { padding: 12px 14px; border: 1px solid; border-radius: 4px; font-size: 13px; }
.flash.error { color: #842f2f; background: var(--red-soft); border-color: #efc1c1; }
.flash.success { color: #0e5b4d; background: #e5f5ef; border-color: #b8dfd2; }
.metric-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: white; border: 1px solid var(--line); margin-bottom: 34px; }
.metric-strip div { padding: 18px 20px; border-right: 1px solid var(--line); }
.metric-strip div:last-child { border-right: 0; }
.metric-strip span, .metric-strip strong { display: block; }
.metric-strip span { font-size: 11px; color: var(--muted); }
.metric-strip strong { margin-top: 8px; font-size: 26px; }
.section-heading { margin: 24px 0 14px; display: flex; justify-content: space-between; align-items: end; }
.section-heading h2 { margin: 0; }
.section-heading a { font-size: 12px; }
.balance-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.balance-card { min-height: 164px; padding: 18px; background: white; border: 1px solid var(--line); border-radius: 6px; display: flex; flex-direction: column; }
.balance-card.primary-account { border-top: 3px solid var(--teal-700); }
.balance-card-head { display: flex; justify-content: space-between; align-items: center; }
.currency-badge { min-width: 43px; min-height: 28px; display: inline-flex; align-items: center; justify-content: center; background: var(--teal-100); color: var(--teal-900); font-weight: 800; font-size: 12px; margin-right: 9px; }
.status-dot { font-size: 10px; color: var(--muted); }
.status-dot::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; background: var(--red); }
.status-dot.ok::before { background: var(--green); }
.balance-card > strong { font-size: 24px; margin-top: 22px; overflow-wrap: anywhere; }
.balance-card .muted { font-size: 10px; color: var(--muted); margin-top: 4px; }
.balance-card small { margin-top: auto; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }
.table-section { background: white; border: 1px solid var(--line); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { background: #f8faf9; color: var(--muted); text-align: left; font-size: 10px; font-weight: 700; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
td strong, td small { display: block; }
td small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.account-table td:first-child { min-width: 145px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.empty-state { color: var(--muted); text-align: center; padding: 36px; }
.status-pill { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 8px; border: 1px solid var(--line); background: #f6f8f7; color: var(--ink-soft); font-size: 10px; white-space: nowrap; }
.status-pill.large { min-height: 34px; padding: 6px 12px; font-size: 12px; }
.status-pending_review { background: var(--amber-soft); border-color: #ebd39a; color: #775010; }
.status-completed, .status-submitted { background: #e3f4ee; border-color: #addbcd; color: #0e5f50; }
.status-bank_rejected, .status-rejected, .status-failed { background: var(--red-soft); border-color: #edbdbd; color: #8d3232; }
.form-surface { max-width: 720px; background: white; border: 1px solid var(--line); padding: 24px; }
.form-surface.narrow { max-width: 520px; }
.form-stack { display: grid; gap: 16px; }
label { display: grid; gap: 7px; font-size: 11px; font-weight: 700; color: var(--ink-soft); }
input, select { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #bcc8c6; border-radius: 3px; background: white; color: var(--ink); outline: none; }
input:focus, select:focus { border-color: var(--teal-700); box-shadow: 0 0 0 3px rgba(8,127,114,.11); }
.fx-workspace { max-width: 680px; margin: 0 auto; padding: 16px; background: #e9efed; border: 1px solid #d4dfdc; }
.fx-form { background: white; border: 1px solid var(--line); padding: 24px; }
.fx-form-header { display: flex; justify-content: space-between; gap: 18px; align-items: start; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.fx-form-header p { color: var(--muted); font-size: 11px; margin: 0; }
.countdown { padding: 6px 8px; background: var(--amber-soft); color: #745014; font-size: 10px; white-space: nowrap; }
.currency-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; margin-top: 18px; }
.amount-field input { text-align: right; font-size: 24px; font-weight: 800; min-height: 60px; }
.quote-output { min-height: 60px; padding: 9px 12px; border: 1px solid #bcc8c6; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; }
.quote-output span { font-size: 10px; color: var(--muted); }
.quote-output strong { font-size: 23px; margin-top: 4px; }
.account-hint { color: var(--muted); font-size: 9px; margin: 7px 0 0; }
.swap-button { display: grid; place-items: center; width: 38px; height: 38px; margin: 10px auto -8px; border: 1px solid #a9bfbb; border-radius: 50%; background: var(--teal-900); color: white; cursor: pointer; font-size: 18px; }
.segmented-control { display: grid; grid-template-columns: 1fr 1fr; margin: 20px 0 14px; border: 1px solid var(--line); }
.segmented-control label { display: block; cursor: pointer; }
.segmented-control input { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; overflow: hidden; clip-path: inset(50%); opacity: 0; }
.segmented-control input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: -3px; }
.segmented-control span { min-height: 40px; display: grid; place-items: center; background: white; font-size: 11px; }
.segmented-control label + label span { border-left: 1px solid var(--line); }
.segmented-control input:checked + span { background: var(--teal-100); color: var(--teal-900); }
.quote-message { min-height: 42px; margin-bottom: 12px; padding: 12px; background: var(--amber-soft); color: #765114; font-size: 11px; }
.fx-form .primary-button { margin-top: 10px; }
.review-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.review-heading h1 { margin-bottom: 0; }
.queue-count { display: inline-flex; align-items: center; min-height: 32px; padding: 0 11px; background: var(--amber-soft); border: 1px solid #ebd39a; color: #775010; font-size: 11px; font-weight: 700; white-space: nowrap; }
.review-table-section { border-top: 3px solid var(--amber); }
.review-table { min-width: 1260px; }
.review-table tbody tr:hover td { background: #fbfcfc; }
.review-table th, .review-table td { padding: 12px; }
.review-table th:nth-child(1) { width: 190px; }
.review-table th:nth-child(2) { width: 105px; }
.review-table th:nth-child(3) { width: 150px; }
.review-table th:nth-child(4) { width: 105px; }
.review-table th:nth-child(5) { width: 230px; }
.review-table th:nth-child(6) { width: 150px; }
.review-order-cell > a { display: block; font-weight: 800; color: var(--teal-900); overflow-wrap: anywhere; }
.currency-pair { font-size: 14px; white-space: nowrap; }
.amount-summary strong { white-space: nowrap; }
.amount-summary small { margin-top: 4px; }
.rate-value { font-size: 13px; }
.account-summary small { margin: 0 0 2px; }
.account-summary small:not(:first-child) { margin-top: 7px; }
.account-summary span { display: block; white-space: nowrap; }
.review-action-head, .review-action-cell { position: sticky; right: 0; min-width: 250px; background: white; border-left: 1px solid var(--line); }
.review-action-head { z-index: 2; background: #f8faf9; }
.review-action-cell { display: grid; grid-template-columns: 72px 1fr 48px; gap: 7px; align-items: center; box-shadow: -6px 0 10px rgba(18,60,56,.04); }
.review-action-cell form { margin: 0; }
.reject-inline-form { display: grid; grid-template-columns: minmax(96px, 1fr) 64px; gap: 6px; }
.reject-inline-form input { min-height: 34px; padding: 6px 8px; font-size: 11px; }
.compact-button { width: 100%; min-height: 34px; padding: 0 10px; font-size: 11px; }
.detail-link { text-align: center; font-size: 11px; }
.empty-panel { padding: 40px; background: white; border: 1px solid var(--line); text-align: center; }
.empty-panel p { color: var(--muted); font-size: 12px; margin-bottom: 0; }
.detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: white; border: 1px solid var(--line); }
.detail-grid > div { min-height: 100px; padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-grid > div:nth-child(4n) { border-right: 0; }
.detail-grid span, .detail-grid strong { display: block; }
.detail-grid span { color: var(--muted); font-size: 10px; }
.detail-grid strong { margin-top: 10px; font-size: 13px; overflow-wrap: anywhere; }
.review-actions { margin-top: 24px; padding: 22px; background: white; border: 1px solid var(--line); border-left: 3px solid var(--amber); }
.action-forms { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.action-forms form { display: grid; gap: 10px; }
.detail-actions { margin-top: 16px; display: flex; justify-content: flex-end; }
.audit-section { margin-top: 30px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 12px 1fr; gap: 10px; padding: 0 0 18px; }
.timeline li > span { width: 9px; height: 9px; border-radius: 50%; background: var(--teal-700); margin-top: 4px; }
.timeline strong { font-size: 12px; }
.timeline p { color: var(--muted); font-size: 10px; margin: 4px 0 0; }
.error-panel { max-width: 600px; padding: 50px; background: white; border: 1px solid var(--line); text-align: center; margin: 10vh auto; }
.error-panel > strong { font-size: 50px; color: var(--teal-700); }
.login-body { background: var(--teal-900); }
.login-layout { min-height: 100vh; display: grid; grid-template-columns: 1.2fr .8fr; }
.login-brand { padding: 54px 7vw; color: white; display: flex; flex-direction: column; background: var(--teal-900); }
.login-copy { margin: auto 0; max-width: 620px; }
.login-copy .eyebrow { color: #75cdbd; }
.login-copy h1 { font-size: 46px; max-width: 520px; }
.login-copy p:last-child { color: #c8ddda; line-height: 1.8; max-width: 560px; }
.trust-row { display: flex; gap: 24px; color: #9fc3bd; font-size: 10px; }
.login-panel { background: #f4f7f6; display: grid; place-items: center; padding: 30px; }
.login-form-wrap { width: min(390px, 100%); }
.login-form-wrap h2 { font-size: 26px; margin-bottom: 24px; }
.security-note { color: var(--muted); font-size: 10px; margin: 16px 0 0; }
.sidebar-scrim { display: none; }

.login-slide { gap: 4px; }
.login-slide > span { color: var(--muted); font-size: 12px; }
.login-slide input[type="range"] {
  appearance: none; -webkit-appearance: none; width: 100%; height: 44px;
  min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0;
  background: transparent; cursor: pointer; accent-color: #cfad67;
}
.login-slide input::-webkit-slider-runnable-track { height: 4px; background: #e5dfd2; border-radius: 2px; }
.login-slide input::-moz-range-track { height: 4px; background: #e5dfd2; border-radius: 2px; }
.login-slide input::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none; width: 30px; height: 22px;
  margin-top: -9px; border: 1px solid #b58d42; border-radius: 4px;
  background: #cfad67; box-shadow: 0 2px 4px #11111112;
}
.login-slide input::-moz-range-thumb {
  width: 30px; height: 22px; border: 1px solid #b58d42;
  border-radius: 4px; background: #cfad67;
}
.login-slide input:focus-visible { outline: 2px solid #cfad67; outline-offset: 3px; }

@media (max-width: 1050px) {
  .balance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid > div:nth-child(2n) { border-right: 0; }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; }
  .menu-open .sidebar { transform: translateX(0); }
  .sidebar-scrim { position: fixed; inset: 0; background: rgba(10,28,26,.48); z-index: 25; }
  .menu-open .sidebar-scrim { display: block; }
  .main-column { width: 100%; }
  .topbar { height: 62px; padding: 0 14px; }
  .menu-button { display: block; }
  .topbar-title { margin-right: auto; margin-left: 8px; }
  .user-name { display: none; }
  .content { padding: 20px 14px 40px; }
  h1 { font-size: 24px; }
  .split-heading { align-items: flex-start; flex-direction: column; }
  .metric-strip { grid-template-columns: 1fr 1fr; }
  .metric-strip div:nth-child(2) { border-right: 0; }
  .metric-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .balance-grid { grid-template-columns: 1fr 1fr; }
  .currency-row, .action-forms { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid > div { border-right: 0; }
  .review-heading { align-items: flex-start; }
  .login-layout { grid-template-columns: 1fr; }
  .login-brand { min-height: 38vh; padding: 30px; }
  .login-copy { margin: 46px 0 30px; }
  .login-copy h1 { font-size: 31px; }
  .trust-row { flex-wrap: wrap; gap: 12px; }
  .login-panel { min-height: 62vh; }
}

/* Production login: layered operations-console treatment and a tactile verifier. */
.login-body {
  min-height: 100vh;
  color: #eef2f1;
  background:
    radial-gradient(circle at 16% 22%, rgba(211, 178, 91, .16), transparent 30%),
    radial-gradient(circle at 82% 68%, rgba(54, 207, 191, .1), transparent 28%),
    linear-gradient(138deg, #060807 0%, #0d1211 48%, #090c0c 100%);
  position: relative;
  isolation: isolate;
}
.login-body::before,
.login-body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; }
.login-body::before {
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(120deg, #000, transparent 72%);
}
.login-body::after {
  background: linear-gradient(110deg, transparent 0 49.8%, rgba(208,183,117,.22) 50%, transparent 50.2%);
}
.login-body .login-topbar { background: rgba(7, 10, 9, .86); border-bottom-color: rgba(208,183,117,.25); backdrop-filter: blur(16px); }
.login-body .login-layout {
  border-color: rgba(208,183,117,.28);
  border-top: 1px solid rgba(208,183,117,.55);
  border-radius: 14px;
  background: rgba(12, 16, 15, .78);
  box-shadow: 0 32px 90px rgba(0,0,0,.46), inset 0 1px rgba(255,255,255,.04);
  backdrop-filter: blur(18px);
}
.login-body .login-brand {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255,255,255,.028), transparent 42%),
    linear-gradient(160deg, rgba(14,18,17,.96), rgba(5,7,7,.97));
}
.login-body .login-brand::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -190px;
  bottom: -175px;
  border: 1px solid rgba(208,183,117,.28);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(208,183,117,.025), 0 0 0 84px rgba(208,183,117,.018);
}
.login-body .login-panel { background: rgba(244,247,246,.965); position: relative; }
.login-body .login-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, #d0b775 48%, #4bbdad, transparent);
  opacity: .72;
}
.login-bank-status { display: inline-flex; align-items: center; gap: 8px; letter-spacing: .08em; color: #9c9d94; }
.login-bank-status > span { width: 7px; height: 7px; border-radius: 50%; background: #4fd5aa; box-shadow: 0 0 12px #4fd5aa; }
.login-form-wrap .primary-button {
  border: 1px solid #ddc785;
  background: linear-gradient(110deg, #b99748, #e1cd8c 48%, #b18c3b);
  color: #151611;
  box-shadow: 0 10px 28px rgba(174,137,50,.24), inset 0 1px rgba(255,255,255,.38);
  letter-spacing: .14em;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.login-form-wrap .primary-button:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 14px 34px rgba(174,137,50,.32), 0 0 0 1px rgba(208,183,117,.25); }
.login-form-wrap .primary-button:active { transform: translateY(0); }
.login-form-wrap .login-slide { --slide-progress: 0%; display: grid; gap: 9px; }
.login-slide-header { display: flex; justify-content: space-between; align-items: center; color: #4a4a43; font-size: 12px; }
.login-slide-header strong { color: #9a803f; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.login-slide-shell {
  position: relative;
  display: grid;
  align-items: center;
  height: 54px;
  overflow: hidden;
  border: 1px solid #d8d8d0;
  border-radius: 9px;
  background:
    linear-gradient(90deg, rgba(208,183,117,.22) 0 var(--slide-progress), transparent var(--slide-progress)),
    repeating-linear-gradient(135deg, #f5f6f3 0 8px, #f0f1ed 8px 16px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.75);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.login-slide-instruction { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; gap: 10px; color: #77776e; font-size: 11px; letter-spacing: .08em; pointer-events: none; }
.login-slide-instruction b { color: #b4964e; font-size: 17px; letter-spacing: -.08em; animation: login-slide-pulse 1.5s ease-in-out infinite; }
.login-slide input[type="range"] { position: relative; z-index: 2; width: 100%; height: 54px; margin: 0; padding: 0 5px; border: 0; background: transparent; appearance: none; -webkit-appearance: none; cursor: grab; }
.login-slide input[type="range"]:active { cursor: grabbing; }
.login-slide input::-webkit-slider-runnable-track { height: 44px; background: transparent; border-radius: 7px; }
.login-slide input::-moz-range-track { height: 44px; background: transparent; border-radius: 7px; }
.login-slide input::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 46px;
  height: 44px;
  margin-top: 0;
  border: 1px solid #c9ad64;
  border-radius: 7px;
  background: linear-gradient(145deg, #e0ca88, #ac8738);
  box-shadow: 0 5px 14px rgba(92,68,16,.28), inset 0 1px rgba(255,255,255,.45);
}
.login-slide input::-moz-range-thumb { width: 46px; height: 44px; border: 1px solid #c9ad64; border-radius: 7px; background: linear-gradient(145deg, #e0ca88, #ac8738); box-shadow: 0 5px 14px rgba(92,68,16,.28); }
.login-slide input:focus-visible { outline: 2px solid #b99a50; outline-offset: 3px; }
.login-slide.is-complete .login-slide-shell { border-color: #55bda5; box-shadow: 0 0 0 3px rgba(54,181,153,.12), inset 0 0 18px rgba(54,181,153,.12); }
.login-slide.is-complete .login-slide-header strong { color: #21836e; }
.login-slide.is-complete .login-slide-instruction { color: #287c6a; font-weight: 650; }
@keyframes login-slide-pulse { 50% { opacity: .35; transform: translateX(4px); } }

@media (prefers-reduced-motion: reduce) { .login-slide-instruction b { animation: none; } }
@media (max-width: 760px) {
  .login-body .login-layout { background: rgba(12,16,15,.9); }
  .login-body .login-brand { background: linear-gradient(135deg, rgba(19,24,22,.98), rgba(7,9,9,.98)); }
  .login-body .login-panel { background: rgba(250,251,249,.98); }
}

@media (max-width: 460px) {
  .balance-grid { grid-template-columns: 1fr; }
  .user-menu { gap: 6px; }
  .role-tag { display: none; }
  .fx-workspace { padding: 8px; }
  .fx-form { padding: 17px; }
}

/* Shared black-and-gold surfaces and a compact, responsive sign-in. */
.primary-button { background: #d0b775; color: #25231c; border-radius: 7px; min-height: 44px; }
.primary-button:hover { background: #c3a55f; }
.secondary-button, .danger-button { border-radius: 7px; min-height: 44px; }
input, select { border-color: #dcdcd6; border-radius: 7px; min-height: 46px; }
input:focus, select:focus { border-color: #b79a55; box-shadow: 0 0 0 3px #b79a5517; }
.sidebar { padding: 20px 14px; }
.sidebar .brand-logo { max-width: 210px; }
.environment { border: 0; border-radius: 6px; background: #ffffff07; color: #bfbdb5; padding: 12px; font-size: 11px; }
.environment span { background: #d0b775; box-shadow: none; flex: none; }
.nav-list { gap: 8px; }
.nav-list a { border-radius: 7px; padding: 13px 16px; color: #e0ded6; }
.nav-list a.active { background: #d0b77519; }
.nav-list a span:last-child { font-size: 14px; font-weight: 600; }
.nav-list small { color: #99988e; font-size: 9px; font-weight: 400; }
.nav-list a.active small { color: #d0b775; }
.nav-symbol { display: none; }
.sidebar-footer, .sidebar-footer small { color: #95958c; }
.role-tag, .queue-count, .status-pill { border-radius: 5px; }
.topbar { height: 76px; }
.topbar-title strong { font-size: 16px; }
.topbar-title small { font-size: 11px; }
.fx-workspace { max-width: 800px; padding: 0; border: 0; background: transparent; }
.fx-form { padding: 28px; border: 1px solid #e8e8e3; border-radius: 8px; box-shadow: 0 8px 28px #20201805; }
.fx-form-header { padding-bottom: 20px; }
.fx-form-header h2 { font-size: 21px; }
.currency-row { gap: 18px; margin-top: 24px; }
.currency-row select { min-height: 60px; font-size: 17px; font-weight: 650; }
.amount-field input { font-size: 28px; }
.quote-output { border-color: #e4e4df; border-radius: 7px; background: #fafaf8; }
.account-hint { font-size: 11px; overflow-wrap: anywhere; }
.segmented-control { border-radius: 7px; overflow: hidden; }
.quote-message { border-radius: 7px; background: #faf6e9; }
.metric-strip, .table-section, .detail-grid, .form-surface { border-color: #e6e6e1; }
.review-action-cell { box-shadow: -4px 0 12px #11111105; }
.compact-button { min-height: 36px; }
.login-body { background: #f4f4f2; }
.login-topbar { background: #111111; border-bottom: 1px solid #d0b77530; }
.login-topbar-inner { max-width: 1200px; min-height: 84px; margin: auto; display: flex; align-items: center; gap: 26px; padding: 0 24px; }
.login-topbar .brand-logo { width: 202px; height: 68px; max-width: 202px; }
.login-product { color: #f4f2eb; padding-left: 26px; border-left: 1px solid #615638; font-size: 16px; font-weight: 600; }
.login-region { margin-left: auto; color: #d0b775; font-size: 12px; }
.login-layout { width: calc(100% - 64px); max-width: 1152px; min-height: 640px; margin: 40px auto 0; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #e2e2dd; border-top: 4px solid #c4a662; border-radius: 8px; overflow: hidden; box-shadow: 0 16px 44px #23231908; }
.login-brand { padding: 56px 44px 32px; background: #111111; }
.login-copy { margin: 0; }
.login-copy .eyebrow { color: #d0b775; margin-bottom: 30px; font-size: 11px; }
.login-copy h1 { font-size: 46px; line-height: 1.2; color: #f5f4ed; }
.login-copy h1 span { display: block; color: #d0b775; font-size: 34px; margin-top: 14px; }
.login-copy p:last-child { color: #b4b4aa; font-size: 16px; margin-top: 24px; }
.login-currencies { margin-top: auto; padding: 28px 0; border-bottom: 1px solid #474334; display: flex; align-items: center; gap: 24px; }
.login-currencies strong { color: #d0b775; font-size: 22px; }
.login-currencies span { color: #dad8cd; font-size: 13px; }
.trust-row { color: #c1b389; font-size: 11px; gap: 28px; padding-top: 24px; }
.login-bank-status { font-size: 10px; color: #929087; margin: 24px 0 0; }
.login-panel { background: white; padding: 48px; min-height: 0; }
.login-form-wrap { width: 100%; max-width: 390px; }
.login-form-wrap .eyebrow { color: #967b3a; margin-bottom: 22px; }
.login-form-wrap h2 { color: #282823; font-size: 30px; margin-bottom: 32px; }
.login-form-wrap label { font-size: 13px; color: #42423c; gap: 10px; }
.login-form-wrap .form-stack { gap: 24px; }
.login-form-wrap input:not([type=range]):not([type=hidden]) { min-height: 52px; background: #fcfcfb; padding: 12px 14px; }
.login-form-wrap .primary-button { min-height: 52px; font-size: 15px; }
.login-form-wrap .login-slide { gap: 0; }
.login-slide > span { font-size: 11px; color: #967b3a; }
.login-form-wrap .security-note { margin-top: 22px; line-height: 1.7; }
.login-footer { padding: 24px; text-align: center; color: #888880; font-size: 11px; }
@media (max-width: 900px) {
  .login-layout { width: calc(100% - 40px); }
  .login-brand { padding: 44px 28px 28px; }
  .login-panel { padding: 36px 28px; }
  .login-copy h1 { font-size: 38px; }
  .login-copy h1 span { font-size: 29px; }
}
@media (max-width: 760px) {
  .login-topbar-inner { min-height: 72px; padding: 0 18px; gap: 12px; }
  .login-topbar .brand-logo { width: 166px; height: 56px; }
  .login-product { display: none; }
  .login-region { font-size: 10px; }
  .login-layout { width: calc(100% - 32px); margin-top: 20px; min-height: 0; grid-template-columns: minmax(0, 1fr); }
  .login-brand { min-height: 0; padding: 24px; }
  .login-copy .eyebrow { display: none; }
  .login-copy h1 { font-size: 28px; margin: 0; }
  .login-copy h1 span { font-size: 22px; margin-top: 6px; }
  .login-copy p:last-child { font-size: 12px; margin: 12px 0 0; }
  .login-currencies, .trust-row, .login-bank-status { display: none; }
  .login-panel { padding: 30px 24px; }
  .login-form-wrap h2 { font-size: 25px; margin-bottom: 24px; }
  .login-form-wrap .eyebrow { margin-bottom: 12px; font-size: 9px; }
  .login-form-wrap .form-stack { gap: 18px; }
  .login-footer { padding: 20px 12px; font-size: 10px; }
  .fx-form { padding: 20px 16px; }
  .topbar { height: 64px; }
  .review-table-section { border: 0; background: transparent; }
  .review-table { min-width: 0; display: block; }
  .review-table thead { display: none; }
  .review-table tbody { display: grid; gap: 16px; }
  .review-table tr { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: white; }
  .review-table td { display: block; min-width: 0; border-bottom: 1px solid var(--line); padding: 14px; }
  .review-table td::before { display: block; color: var(--muted); font-size: 10px; font-weight: 500; margin-bottom: 8px; }
  .review-table td:nth-child(1), .review-table td:nth-child(5), .review-table td:nth-child(6), .review-table td:nth-child(7), .review-table td.empty-state { grid-column: 1 / -1; }
  .review-table td:nth-child(1)::before { content: '交易指令'; }
  .review-table td:nth-child(2)::before { content: '换汇方向'; }
  .review-table td:nth-child(3)::before { content: '金额'; }
  .review-table td:nth-child(4)::before { content: '银行报价'; }
  .review-table td:nth-child(5)::before { content: '买卖账户'; }
  .review-table td:nth-child(6)::before { content: '经办信息'; }
  .review-table td.empty-state::before { content: none; }
  .review-table .review-action-cell { position: static; min-width: 0; display: grid; grid-template-columns: 1fr auto; gap: 12px; box-shadow: none; border-left: 0; }
  .review-action-cell > form:first-child { grid-column: 1 / -1; }
  .review-action-cell .compact-button { min-height: 44px; }
  .review-action-cell .reject-inline-form { min-width: 0; grid-template-columns: minmax(0,1fr) 64px; }
  .review-table .mono, .amount-summary strong, .account-summary span { white-space: normal; overflow-wrap: anywhere; }
}

/* Keep the production login canvas above legacy shared surface defaults. */
.login-body {
  min-height: 100vh;
  color: #eef2f1;
  background:
    radial-gradient(circle at 16% 22%, rgba(211, 178, 91, .16), transparent 30%),
    radial-gradient(circle at 82% 68%, rgba(54, 207, 191, .1), transparent 28%),
    linear-gradient(138deg, #060807 0%, #0d1211 48%, #090c0c 100%);
}
