:root {
  --bo-navy-950: #07182c;
  --bo-navy-900: #0b203a;
  --bo-navy-800: #123454;
  --bo-teal-700: #0a7e91;
  --bo-teal-600: #1097aa;
  --bo-teal-500: #48b5c3;
  --bo-teal-100: #dff5f7;
  --bo-blue-600: #2563eb;
  --bo-blue-50: #eff6ff;
  --bo-green-600: #0b8b67;
  --bo-green-50: #ecfdf5;
  --bo-amber-600: #c96b12;
  --bo-amber-50: #fff8eb;
  --bo-red-600: #c83c4a;
  --bo-red-50: #fff1f2;
  --bo-white: #ffffff;
  --bo-surface: #f6f8fb;
  --bo-ink: #122033;
  --bo-muted: #66758a;
  --bo-border: #dce4ed;
  --bo-border-strong: #c5d0dd;
  --bo-shadow-sm: 0 1px 2px rgba(7, 24, 44, .04), 0 8px 24px rgba(7, 24, 44, .06);
  --bo-shadow-lg: 0 24px 72px rgba(7, 24, 44, .16);
  --bo-radius-sm: 8px;
  --bo-radius-md: 14px;
  --bo-radius-lg: 22px;
  --bo-focus: 0 0 0 4px rgba(16, 151, 170, .18);
  --bo-header-height: 60px;
  --bo-workspace-header-height: var(--bo-header-height);
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--bo-ink);
  background: var(--bo-surface);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { min-width: 320px; overflow-x: hidden; background: var(--bo-surface); }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bo-surface);
  color: var(--bo-ink);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button.brand { padding: 0; border: 0; background: transparent; text-align: left; }

:focus-visible {
  outline: 2px solid var(--bo-teal-600);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  color: var(--bo-white);
  background: var(--bo-navy-900);
  border-radius: var(--bo-radius-sm);
  transform: translateY(-160%);
  transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); }

.app-shell, #app-main { min-height: 100vh; }

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--bo-navy-900);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .02em;
}
.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 2px solid var(--bo-teal-500);
  border-radius: 50%;
  overflow: hidden;
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  left: -7px;
  width: 50px;
  height: 15px;
  border: 2px solid var(--bo-teal-500);
  border-radius: 50%;
  transform: rotate(-22deg);
}
.brand-mark::before { top: 5px; transform: rotate(-22deg) scale(.78); transform-origin: left center; }
.brand-mark::after { top: 15px; transform: rotate(-22deg) scale(.78); transform-origin: left center; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: 13px; }
.brand-copy span { margin-top: 3px; color: var(--bo-muted); font-size: 7px; font-weight: 600; letter-spacing: .16em; }

.site-header {
  height: var(--bo-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 3vw, 46px);
  border-bottom: 1px solid rgba(197, 208, 221, .72);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(18px);
}
.site-header { position: sticky; top: 0; z-index: 45; }
.site-header-right { min-width: 0; display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.site-header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; }
.site-header .btn { min-height: 38px; padding: 0 14px; border-radius: 8px; }
.header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; }

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--bo-ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  color: var(--bo-white);
  background: var(--bo-navy-900);
  box-shadow: 0 8px 20px rgba(11, 32, 58, .18);
}
.btn-primary:hover { background: var(--bo-navy-800); }
.btn-teal { color: var(--bo-white); background: var(--bo-teal-700); box-shadow: 0 8px 20px rgba(10, 126, 145, .2); }
.btn-teal:hover { background: #086f80; }
.btn-outline { border-color: var(--bo-border-strong); background: var(--bo-white); }
.btn-outline:hover { border-color: var(--bo-teal-500); background: #f8feff; }
.btn-ghost:hover { background: #edf3f7; }
.btn-block { width: 100%; }
.btn[disabled] { cursor: not-allowed; opacity: .55; transform: none; }
.btn i, .icon-button i { width: 18px; height: 18px; }

.icon-button {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: var(--bo-muted);
  background: transparent;
  font-size: 24px;
}
.icon-button:hover { color: var(--bo-ink); background: #edf3f7; }
.language-wrap { position: relative; }
.language-button { color: var(--bo-navy-900); }
.language-switch { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 8px; color: var(--bo-muted); background: transparent; transition: color .18s ease, background .18s ease; }
.language-switch:hover { color: var(--bo-teal-700); background: #f1f5f8; }
.language-switch i, .language-switch svg { width: 19px; height: 19px; stroke-width: 1.75; }
.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 90;
  width: 160px;
  padding: 7px;
  border: 1px solid var(--bo-border);
  border-radius: 12px;
  background: var(--bo-white);
  box-shadow: var(--bo-shadow-lg);
}
.language-menu button { width: 100%; min-height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border: 0; border-radius: 8px; color: #425268; background: transparent; font-size: 13px; text-align: left; }
.language-menu button:hover { background: #f0f5f8; }
.language-menu button.active { color: var(--bo-navy-900); background: #e9f5f7; font-weight: 700; }
.language-menu button i { width: 16px; height: 16px; color: var(--bo-teal-700); }

.login-page {
  min-height: calc(100vh - var(--bo-header-height));
  display: grid;
  place-items: start center;
  padding: clamp(52px, 7vh, 86px) 24px 80px;
  background: #fbfcfe;
}
.login-card {
  width: 100%;
  max-width: 480px;
  padding: 46px 52px 40px;
  border: 1px solid #edf1f5;
  border-radius: 24px;
  background: #f8fafc;
  box-shadow: 0 28px 70px rgba(7, 24, 44, .10);
}
.forgot-card { position: relative; text-align: center; }
.forgot-card form { margin-top: 26px; text-align: left; }
.auth-back-button { position: absolute; top: 18px; left: 18px; }
.forgot-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 10px auto 20px; border-radius: 16px; color: var(--bo-teal-700); background: var(--bo-teal-100); }
.forgot-icon i { width: 26px; height: 26px; }
.forgot-security-note { display: flex; align-items: flex-start; gap: 10px; margin: 24px 0; padding: 13px 14px; border-radius: 10px; color: #4d6870; background: #f2f7f8; font-size: 12px; line-height: 1.6; text-align: left; }
.forgot-security-note i { width: 18px; height: 18px; flex: 0 0 auto; color: var(--bo-teal-700); }
.login-card h2 { margin: 0; color: var(--bo-navy-950); font-size: 31px; line-height: 1.2; text-align: center; letter-spacing: -.03em; }
.login-subtitle { margin: 12px 0 30px; color: var(--bo-muted); font-size: 13px; text-align: center; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.label-row .text-link { margin-bottom: 8px; font-size: 12px; }
.login-checkbox { margin: -2px 0 20px; }
.login-submit { min-height: 50px; border-radius: 99px; }
.login-card .auth-register { margin: 24px 0 30px; }
.terms-check { display: flex; align-items: flex-start; gap: 9px; color: #7b899b; font-size: 12px; line-height: 1.6; }
.terms-check input { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 2px; accent-color: var(--bo-navy-900); }
.terms-check a { color: #52647a; font-weight: 600; }

.auth-layout {
  min-height: calc(100vh - var(--bo-header-height));
  display: grid;
  grid-template-columns: minmax(380px, 1.04fr) minmax(480px, .96fr);
}
.auth-visual {
  min-width: 0;
  position: relative;
  min-height: 660px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: clamp(44px, 6vw, 86px);
  color: var(--bo-white);
  background:
    linear-gradient(135deg, rgba(7, 24, 44, .96), rgba(8, 75, 94, .82)),
    radial-gradient(circle at 72% 25%, rgba(72, 181, 195, .65), transparent 26%),
    var(--bo-navy-900);
}
.auth-visual::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  top: -160px;
  right: -140px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255,255,255,.035), 0 0 0 140px rgba(255,255,255,.025);
}
.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .26;
  background-image:
    linear-gradient(rgba(255,255,255,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom right, black, transparent 70%);
}
.auth-visual-content { position: relative; z-index: 1; max-width: 620px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; opacity: .7; }
.auth-visual h1 { max-width: 680px; margin: 0; overflow-wrap: anywhere; font-size: clamp(38px, 5vw, 70px); line-height: 1.08; letter-spacing: -.045em; }
.auth-visual p { max-width: 570px; margin: 24px 0 0; color: rgba(255,255,255,.78); font-size: 17px; line-height: 1.75; }
.trust-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 36px; color: rgba(255,255,255,.86); font-size: 13px; }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row i { width: 17px; height: 17px; color: #8ce0e7; }

.auth-panel {
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 52px clamp(28px, 7vw, 110px);
  background: var(--bo-white);
}
.auth-card { width: 100%; min-width: 0; max-width: 440px; }
.auth-card h2 { margin: 0; color: var(--bo-navy-900); font-size: 28px; letter-spacing: -.025em; }
.auth-card > p { margin: 12px 0 30px; color: var(--bo-muted); line-height: 1.65; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; color: #304157; font-size: 13px; font-weight: 600; }
.form-control {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--bo-border-strong);
  border-radius: 10px;
  background: var(--bo-white);
  color: var(--bo-ink);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.form-control:focus { border-color: var(--bo-teal-600); outline: none; box-shadow: var(--bo-focus); }
.input-wrap { position: relative; }
.input-wrap .form-control { padding-right: 48px; }
.input-action { position: absolute; top: 2px; right: 2px; border-radius: 8px; }
.form-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: -2px 0 24px; }
.checkbox { display: inline-flex; align-items: center; gap: 9px; color: var(--bo-muted); font-size: 13px; }
.checkbox input { width: 17px; height: 17px; accent-color: var(--bo-teal-700); }
.text-link { color: var(--bo-teal-700); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 26px 0; color: #93a0b0; font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--bo-border); }
.auth-register { text-align: center; color: var(--bo-muted); font-size: 13px; }
.form-error { display: none; margin: 8px 0 0; color: var(--bo-red-600); font-size: 13px; }
.has-error .form-control { border-color: var(--bo-red-600); }
.has-error .form-error { display: block; }
.help-foot { margin-top: 32px; color: #8a98a8; font-size: 12px; text-align: center; }

.center-page {
  min-height: calc(100vh - var(--bo-header-height));
  padding: 64px 24px 96px;
  background:
    radial-gradient(circle at 50% -20%, rgba(72,181,195,.18), transparent 36%),
    var(--bo-surface);
}
.page-intro { max-width: 720px; margin: 0 auto 38px; text-align: center; }
.page-intro .kicker { color: var(--bo-teal-700); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.page-intro h1 { margin: 10px 0 12px; color: var(--bo-navy-900); font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.035em; }
.page-intro p { margin: 0; color: var(--bo-muted); line-height: 1.7; }

.choice-grid { max-width: 900px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0 auto; }
.choice-card {
  position: relative;
  min-height: 280px;
  padding: 28px;
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius-lg);
  background: var(--bo-white);
  box-shadow: var(--bo-shadow-sm);
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.choice-card:hover { transform: translateY(-3px); border-color: var(--bo-teal-500); box-shadow: 0 18px 46px rgba(7, 24, 44, .11); }
.choice-card:active { transform: translateY(-1px); }
.choice-card.selected { border-color: var(--bo-teal-600); box-shadow: var(--bo-focus), var(--bo-shadow-sm); }
.choice-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  border-radius: 14px;
  color: var(--bo-teal-700);
  background: var(--bo-teal-100);
}
.choice-icon i { width: 25px; height: 25px; }
.choice-card h2, .identity-card h2 { margin: 0; color: var(--bo-navy-900); font-size: 18px; }
.choice-card p { min-height: 64px; margin: 12px 0 24px; color: var(--bo-muted); font-size: 13px; line-height: 1.6; }
.choice-arrow { display: inline-flex; align-items: center; gap: 7px; color: var(--bo-teal-700); font-size: 13px; font-weight: 700; }
.choice-arrow i { width: 17px; height: 17px; }
.back-row { max-width: 900px; margin: 0 auto 20px; }

.registration-page { min-height: calc(100vh - var(--bo-header-height)); padding: 38px 24px 88px; background: linear-gradient(180deg, #f8fafc, #f2f6f9); }
.registration-shell { width: 100%; max-width: 1120px; margin: 0 auto; }
.registration-topline { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; color: var(--bo-muted); font-size: 12px; font-weight: 600; }
.registration-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 24px;
  padding: 5px;
  border: 1px solid var(--bo-border);
  border-radius: 16px;
  background: rgba(237, 243, 247, .76);
  list-style: none;
}
.registration-context-banner { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin: 18px 0 12px; padding: 14px 16px; border: 1px solid #bfe6df; border-radius: 12px; color: #195f58; background: #f1fbf9; }
.registration-context-banner > i { width: 20px; height: 20px; margin-top: 1px; }
.registration-context-banner strong { display: block; font-size: 13px; }
.registration-context-banner p { margin: 4px 0 0; color: #4d6e6a; font-size: 12px; line-height: 1.6; }
.registration-context-banner.is-rejected { border-color: #f0c7c7; color: #9f2f37; background: #fff6f6; }
.registration-context-banner.is-rejected p { color: #79545a; }
.registration-stepper li {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-radius: 11px;
  color: #8794a6;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}
.registration-stepper li + li::before {
  content: "";
  position: absolute;
  top: 13px;
  bottom: 13px;
  left: -3px;
  width: 1px;
  background: rgba(197, 208, 221, .72);
}
.registration-step-status {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #7e8b9d;
  background: rgba(255, 255, 255, .7);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.registration-step-status i { width: 15px; height: 15px; }
.registration-step-copy { min-width: 0; display: grid; gap: 2px; }
.registration-step-copy small { color: inherit; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.registration-step-copy strong { overflow: hidden; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.registration-stepper li.active { color: var(--bo-navy-900); background: var(--bo-white); box-shadow: 0 3px 12px rgba(7, 24, 44, .08); }
.registration-stepper li.active::after { content: ""; position: absolute; right: 14px; bottom: 7px; left: 53px; height: 2px; border-radius: 99px; background: var(--bo-teal-600); }
.registration-stepper li.active .registration-step-status { color: var(--bo-white); background: var(--bo-navy-900); }
.registration-stepper li.complete { color: var(--bo-teal-700); }
.registration-stepper li.complete .registration-step-status { color: var(--bo-teal-700); background: var(--bo-teal-100); }
#customer-registration-form { overflow: hidden; border: 1px solid var(--bo-border); border-radius: 20px; background: var(--bo-white); box-shadow: var(--bo-shadow-sm); }
.registration-section { padding: 32px 36px 24px; }
.registration-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.registration-section-head > div > span { color: var(--bo-teal-700); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.registration-section-head h2 { margin: 7px 0 7px; color: var(--bo-navy-900); font-size: 24px; letter-spacing: -.025em; }
.registration-section-head p { margin: 0; color: var(--bo-muted); font-size: 13px; line-height: 1.6; }
.registration-section-head > i { width: 42px; height: 42px; padding: 10px; border-radius: 12px; color: var(--bo-teal-700); background: var(--bo-teal-100); }
.registration-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.registration-grid.three-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.registration-grid.compact-top { margin-top: 18px; }
.registration-field { min-width: 0; }
.registration-field.span-full { grid-column: 1 / -1; }
.registration-field > label { min-height: 20px; display: block; margin-bottom: 7px; color: #304157; font-size: 12px; font-weight: 600; }
.required-mark { margin-right: 4px; color: var(--bo-red-600); }
.registration-control-wrap, .registration-input-wrap { position: relative; }
.registration-leading-icon { position: absolute; top: 50%; left: 14px; z-index: 2; width: 17px; height: 17px; color: #8391a3; pointer-events: none; transform: translateY(-50%); transition: color .16s ease; }
.registration-control-wrap:focus-within .registration-leading-icon, .registration-input-wrap:focus-within .registration-leading-icon { color: var(--bo-teal-700); }
.registration-field .form-control { min-height: 46px; padding-left: 42px; font-size: 13px; }
.registration-input-wrap .form-control { padding-right: 48px; }
.registration-field select.form-control { padding-right: 34px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, #718096 50%), linear-gradient(135deg, #718096 50%, transparent 50%); background-position: calc(100% - 17px) 20px, calc(100% - 12px) 20px; background-size: 5px 5px; background-repeat: no-repeat; }
.registration-error { display: none; margin: 6px 0 0; color: var(--bo-red-600); font-size: 11px; }
.was-validated input:invalid, .was-validated select:invalid { border-color: var(--bo-red-600); background-color: #fffafa; }
.was-validated input:invalid ~ .registration-error, .was-validated select:invalid ~ .registration-error,
.was-validated .registration-control-wrap:has(input:invalid, select:invalid) ~ .registration-error,
.was-validated .input-wrap:has(input:invalid) ~ .registration-error,
.was-validated .verification-row:has(input:invalid) ~ .registration-error { display: block; }
.registration-upload-error { margin: 7px 0 0; color: var(--bo-red-600); font-size: 12px; line-height: 1.5; }
.registration-error-summary { margin: 24px 36px 0; padding: 14px 16px; border: 1px solid #f1b8bf; border-radius: 10px; color: #8d2531; background: var(--bo-red-50); }
.registration-error-summary strong, .registration-error-summary span { display: block; }
.registration-error-summary strong { font-size: 13px; }
.registration-error-summary span { margin-top: 4px; font-size: 12px; }
.verification-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.verification-row .btn { min-width: 128px; }
.registration-notice { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin: -4px 0 24px; padding: 16px; border: 1px solid #f0d39f; border-radius: 12px; color: #7b5317; background: var(--bo-amber-50); }
.registration-notice > i { width: 20px; height: 20px; margin-top: 1px; }
.registration-notice strong { display: block; font-size: 12px; }
.registration-notice p { margin: 5px 0 0; font-size: 12px; line-height: 1.65; }
.upload-control { min-height: 76px !important; display: grid !important; grid-template-columns: auto 1fr; align-items: center; gap: 12px; padding: 12px 14px; border: 1px dashed var(--bo-border-strong); border-radius: 11px; background: #fafcfd; cursor: pointer; transition: border-color .16s ease, background .16s ease; }
.upload-control:hover { border-color: var(--bo-teal-500); background: #f7fdfe; }
.upload-control input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.upload-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--bo-teal-700); background: var(--bo-teal-100); }
.upload-icon i { width: 18px; height: 18px; }
.upload-copy { min-width: 0; }
.upload-copy strong, .upload-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-copy strong { color: var(--bo-navy-900); font-size: 12px; }
.upload-copy small { margin-top: 5px; color: var(--bo-muted); font-size: 10px; font-weight: 400; }
.was-validated .registration-upload-field:has(input:invalid) .upload-control { border-color: var(--bo-red-600); background: #fffafa; }
.was-validated .registration-upload-field:has(input:invalid) .registration-error { display: block; }
.registration-subhead { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 28px 0 16px; padding-top: 24px; border-top: 1px solid #edf1f5; }
.registration-subhead h3 { margin: 0; color: var(--bo-navy-900); font-size: 15px; }
.registration-subhead p { margin: 5px 0 0; color: var(--bo-muted); font-size: 11px; }
.inline-checkbox { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: #415167; font-size: 12px; cursor: pointer; }
.inline-checkbox input, .declaration-item input { width: 17px; height: 17px; flex: 0 0 17px; accent-color: var(--bo-teal-700); }
.registration-field.is-derived .form-control { color: #5f6f83; background: #f2f5f8; cursor: not-allowed; }
.declaration-list { display: grid; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid #edf1f5; }
.declaration-item { display: flex; align-items: flex-start; gap: 11px; padding: 14px 16px; border: 1px solid var(--bo-border); border-radius: 11px; color: #4d5d71; font-size: 12px; line-height: 1.6; cursor: pointer; }
.declaration-item input { margin-top: 2px; }
.declaration-item strong { display: block; margin-bottom: 3px; color: var(--bo-navy-900); font-size: 12px; }
.was-validated .declaration-item:has(input:invalid) { border-color: var(--bo-red-600); background: #fffafa; }
.inline-link { padding: 0; border: 0; color: var(--bo-teal-700); background: transparent; font-size: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.registration-actions { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 36px; border-top: 1px solid var(--bo-border); background: #fbfcfd; }
.registration-actions > div { display: flex; align-items: center; gap: 16px; }
.registration-save-note { display: inline-flex; align-items: center; gap: 6px; color: var(--bo-muted); font-size: 11px; }
.registration-save-note i { width: 14px; height: 14px; }
.registration-login-link { margin: 0; padding: 0 36px 24px; color: var(--bo-muted); background: #fbfcfd; font-size: 12px; text-align: center; }
body.modal-open { overflow: hidden; }
.legal-modal { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; padding: 24px; }
.legal-backdrop { position: absolute; inset: 0; background: rgba(7,24,44,.52); backdrop-filter: blur(4px); }
.legal-dialog { position: relative; width: 100%; max-width: 720px; max-height: min(760px, calc(100vh - 48px)); display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; border-radius: 18px; background: var(--bo-white); box-shadow: var(--bo-shadow-lg); }
.legal-dialog-head, .legal-dialog-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; }
.legal-dialog-head { border-bottom: 1px solid var(--bo-border); }
.legal-dialog-head span { color: var(--bo-teal-700); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.legal-dialog-head h2 { margin: 5px 0 0; font-size: 21px; }
.legal-body { overflow-y: auto; padding: 24px; color: #536176; font-size: 13px; line-height: 1.75; }
.legal-body h3 { margin: 24px 0 6px; color: var(--bo-navy-900); font-size: 14px; }
.legal-body h3:first-of-type { margin-top: 0; }
.legal-body p { margin: 0; }
.legal-draft-note { display: flex; gap: 9px; margin-bottom: 22px; padding: 12px 14px; border-radius: 9px; color: #7b5317; background: var(--bo-amber-50); }
.legal-draft-note i { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 2px; }
.legal-dialog-foot { justify-content: flex-end; border-top: 1px solid var(--bo-border); background: #fbfcfd; }

.supplier-registration-shell { max-width: 900px; }
.supplier-registration-card { overflow: hidden; border: 1px solid var(--bo-border); border-radius: 20px; background: var(--bo-white); box-shadow: var(--bo-shadow-sm); }
.supplier-registration-head { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 32px 36px 26px; border-bottom: 1px solid #edf1f5; }
.supplier-registration-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: var(--bo-teal-700); background: var(--bo-teal-100); }
.supplier-registration-icon i { width: 23px; height: 23px; }
.supplier-registration-head .kicker { color: var(--bo-teal-700); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.supplier-registration-head h1 { margin: 7px 0 7px; color: var(--bo-navy-900); font-size: 25px; letter-spacing: -.025em; }
.supplier-registration-head p { max-width: 660px; margin: 0; color: var(--bo-muted); font-size: 13px; line-height: 1.65; }
.supplier-fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; padding: 28px 36px 0; }
.supplier-verification-field { grid-column: 1 / -1; }
.supplier-verification-field .verification-row { max-width: 620px; }
.supplier-control-wrap .input-action { right: 4px; }
.supplier-control-wrap:has(.input-action) .form-control { padding-right: 48px; }
.supplier-password-rule { display: flex; align-items: flex-start; gap: 9px; margin: 18px 36px 0; padding: 12px 14px; border-radius: 10px; color: #516276; background: #f5f8fa; font-size: 11px; line-height: 1.6; }
.supplier-password-rule i { width: 17px; height: 17px; flex: 0 0 17px; color: var(--bo-teal-700); }
.unified-account-notice { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin: 28px 36px 0; padding: 16px; border: 1px solid #bfe6df; border-radius: 12px; color: #195f58; background: #f1fbf9; }
.unified-account-notice > i { width: 21px; height: 21px; margin-top: 1px; }
.unified-account-notice strong { display: block; font-size: 13px; }
.unified-account-notice p { margin: 5px 0 0; color: #4d6e6a; font-size: 12px; line-height: 1.65; }
.supplier-account-summary { margin: 18px 36px 0; padding: 22px; border: 1px solid var(--bo-border); border-radius: 14px; background: #fbfcfd; }
.supplier-summary-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.supplier-summary-head h2 { margin: 0; color: var(--bo-navy-900); font-size: 15px; }
.supplier-summary-head p { margin: 5px 0 0; color: var(--bo-muted); font-size: 11px; }
.supplier-account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; overflow: hidden; border: 1px solid var(--bo-border); border-radius: 11px; background: var(--bo-border); }
.supplier-account-grid > div { min-width: 0; padding: 14px 16px; background: var(--bo-white); }
.supplier-account-grid dt { display: flex; align-items: center; gap: 7px; color: var(--bo-muted); font-size: 10px; font-weight: 600; }
.supplier-account-grid dt i { width: 14px; height: 14px; }
.supplier-account-grid dd { overflow: hidden; margin: 7px 0 0; color: var(--bo-navy-900); font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.supplier-agreement-area { margin: 26px 36px 0; padding-top: 22px; border-top: 1px solid #edf1f5; }
.supplier-agreement { margin: 0; }
.supplier-registration-actions { display: flex; justify-content: flex-end; padding: 20px 36px 26px; }
.supplier-registration-actions .btn { min-width: 240px; }
.supplier-registration-actions .btn i { width: 17px; height: 17px; }
.status-success { color: #19735d; background: #e9f8f2; }
.supplier-result-card { max-width: 600px; }

.identity-grid { max-width: 1000px; display: grid; gap: 14px; margin: 0 auto; }
.identity-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius-md);
  background: var(--bo-white);
  box-shadow: 0 3px 14px rgba(7, 24, 44, .04);
  text-align: left;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.identity-card:hover { transform: translateY(-1px); border-color: var(--bo-teal-500); box-shadow: var(--bo-shadow-sm); }
.identity-avatar { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; color: var(--bo-navy-900); background: #eaf4f6; }
.identity-avatar i { width: 24px; height: 24px; }
.identity-meta { display: flex; align-items: center; gap: 10px; margin-top: 7px; color: var(--bo-muted); font-size: 13px; }
.identity-selector { min-height: calc(100vh - var(--bo-workspace-header-height)); padding: 54px 24px 88px; background: #f6f8fb; }
.selector-shell { width: 100%; max-width: 980px; margin: 0 auto; }
.selector-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.selector-kicker { color: var(--bo-teal-700); font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.selector-intro h1 { margin: 8px 0 7px; color: var(--bo-navy-900); font-size: 30px; line-height: 1.2; letter-spacing: -.025em; }
.selector-intro p { margin: 0; color: var(--bo-muted); font-size: 13px; }
.identity-count { flex: 0 0 auto; color: var(--bo-muted); font-size: 12px; }
.identity-options { display: grid; gap: 12px; }
.identity-option { width: 100%; min-height: 104px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 18px 20px; border: 1px solid var(--bo-border); border-radius: 14px; color: var(--bo-ink); background: var(--bo-white); box-shadow: 0 2px 8px rgba(7,24,44,.025); text-align: left; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.identity-option:hover { border-color: #9fcbd2; background: #fbfeff; box-shadow: 0 10px 28px rgba(7,24,44,.07); }
.identity-option.is-recent { border-color: #acd9df; background: linear-gradient(90deg, #f5fcfd 0, #fff 28%); }
.identity-option-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 13px; }
.identity-option-icon i { width: 23px; height: 23px; }
.identity-option-icon.type-client { color: #0a7182; background: #e1f5f7; }
.identity-option-icon.type-supplier { color: #8b6210; background: #fff4d9; }
.identity-option-icon.type-warehouse { color: #285894; background: #eaf2ff; }
.identity-option-content { min-width: 0; display: grid; gap: 9px; }
.identity-option-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.identity-option-title strong { overflow: hidden; color: var(--bo-navy-900); font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.recent-badge { min-height: 23px; display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; border-radius: 99px; color: #0a7182; background: #e3f6f7; font-size: 10px; font-weight: 700; }
.recent-badge i { width: 13px; height: 13px; }
.identity-option-meta { display: flex; align-items: center; gap: 9px; color: var(--bo-muted); font-size: 12px; }
.identity-enter { min-width: 118px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; color: var(--bo-navy-900); font-size: 13px; font-weight: 700; }
.identity-enter i { width: 18px; height: 18px; transition: transform .18s ease; }
.identity-option:hover .identity-enter i { transform: translateX(3px); }
.selector-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; padding: 0 4px; color: var(--bo-muted); font-size: 12px; }
.selector-footer > span { display: inline-flex; align-items: center; gap: 7px; }
.selector-footer > span i { width: 16px; height: 16px; }
.text-button { min-height: 40px; display: inline-flex; align-items: center; gap: 7px; padding: 0 4px; border: 0; color: var(--bo-teal-700); background: transparent; font-size: 12px; font-weight: 700; }
.text-button i { width: 15px; height: 15px; }
.tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 99px; font-size: 11px; font-weight: 700; }
.tag-client { color: #0b6b7e; background: #e1f5f7; }
.tag-supplier { color: #77520d; background: #fff4d9; }
.tag-warehouse { color: #254f8e; background: #eaf2ff; }
.tag-success { color: var(--bo-green-600); background: var(--bo-green-50); }
.tag-pending { color: var(--bo-amber-600); background: var(--bo-amber-50); }
.tag-danger { color: var(--bo-red-600); background: var(--bo-red-50); }

.workspace { min-height: 100vh; background: #f4f7fa; }
.account-button {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 8px 5px 6px;
  border: 1px solid var(--bo-border);
  border-radius: 12px;
  background: var(--bo-white);
}
.account-button:hover { border-color: var(--bo-teal-500); }
.account-button:active { background: #f3f7f9; }
.account-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--bo-white); background: linear-gradient(135deg, var(--bo-navy-800), var(--bo-teal-600)); font-size: 12px; font-weight: 700; }
.account-copy { display: grid; gap: 2px; text-align: left; }
.account-copy strong { max-width: 180px; overflow: hidden; color: var(--bo-ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.account-copy span { color: var(--bo-muted); font-size: 11px; }
.account-button > i { width: 16px; height: 16px; color: var(--bo-muted); }
.compact-account-button { min-height: 38px; gap: 7px; padding: 3px 5px 3px 4px; border-color: transparent; border-radius: 9px; background: transparent; }
.compact-account-button:hover { border-color: transparent; background: #f1f5f8; }
.compact-account-button .account-avatar { width: 28px; height: 28px; border-radius: 8px; font-size: 10px; }
.compact-account-button .account-copy strong { max-width: 154px; font-size: 12px; }
.compact-account-button > i { width: 14px; height: 14px; }
.compact-header-icon { width: 38px; height: 38px; border-radius: 8px; }
.compact-header-icon i { width: 17px; height: 17px; }
.account-wrap { position: relative; }
.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  width: 280px;
  padding: 8px;
  border: 1px solid var(--bo-border);
  border-radius: 14px;
  background: var(--bo-white);
  box-shadow: var(--bo-shadow-lg);
}
.menu-summary { padding: 12px; border-bottom: 1px solid var(--bo-border); }
.menu-summary strong { display: block; font-size: 13px; }
.menu-summary span { display: block; margin-top: 4px; color: var(--bo-muted); font-size: 12px; }
.menu-item {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  color: #304157;
  background: transparent;
  font-size: 13px;
  text-align: left;
}
.menu-item:hover { color: var(--bo-ink); background: #f0f5f8; }
.menu-item i { width: 17px; height: 17px; }
.menu-item.danger { color: var(--bo-red-600); }
.menu-separator { height: 1px; margin: 6px 4px; background: var(--bo-border); }

.workspace-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: calc(100vh - var(--bo-workspace-header-height)); }
.workspace-layout.is-sidebar-collapsed { grid-template-columns: 76px minmax(0, 1fr); }
.sidebar { position: relative; z-index: 12; padding: 16px; border-right: 1px solid var(--bo-border); background: var(--bo-white); }
.sidebar-tools { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 16px; padding: 0 2px 12px 12px; border-bottom: 1px solid #edf1f5; }
.sidebar-tools-label { overflow: hidden; color: #728096; font-size: 11px; font-weight: 700; letter-spacing: .08em; white-space: nowrap; }
.sidebar-toggle { width: 44px; height: 44px; display: grid; flex: 0 0 44px; place-items: center; padding: 0; border: 0; border-radius: 9px; color: #6b7a8f; background: transparent; cursor: pointer; }
.sidebar-toggle:hover { color: var(--bo-navy-900); background: #f0f5f8; }
.sidebar-toggle:focus-visible { outline: 2px solid var(--bo-teal-500); outline-offset: 2px; }
.sidebar-toggle i { width: 18px; height: 18px; }
.sidebar.is-collapsed { padding-right: 10px; padding-left: 10px; }
.sidebar.is-collapsed .sidebar-tools { justify-content: center; padding-right: 0; padding-left: 0; }
.sidebar.is-collapsed .sidebar-tools-label,
.sidebar.is-collapsed .side-title,
.sidebar.is-collapsed .side-link-label { display: none; }
.sidebar.is-collapsed .side-section { margin-bottom: 14px; }
.sidebar.is-collapsed .side-link { width: 44px; justify-content: center; gap: 0; margin: 0 auto 4px; padding: 0; }
.sidebar.is-collapsed .side-link i { width: 19px; height: 19px; }
.side-section { margin-bottom: 24px; }
.side-title { margin: 0 12px 8px; color: #94a1b2; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.side-link { position: relative; width: 100%; min-height: 44px; display: flex; align-items: center; gap: 11px; padding: 0 12px; border: 0; border-radius: 9px; color: #536176; background: transparent; font-size: 13px; font-weight: 500; text-align: left; cursor: pointer; }
.side-link:hover { color: var(--bo-navy-900); background: #f2f7f9; }
.side-link:focus-visible { outline: 2px solid var(--bo-teal-500); outline-offset: 2px; }
.side-link i { width: 18px; height: 18px; }
.side-link.active { color: var(--bo-navy-900); background: #e9f5f7; font-weight: 700; }
.side-nav-group { margin-bottom: 12px; }
.side-link-parent > .side-link-label { min-width: 0; flex: 1; text-align: left; }
.side-link-parent .side-chevron { width: 14px; height: 14px; margin-left: auto; color: #8c99a8; transition: transform 180ms cubic-bezier(.2,.75,.25,1), color 150ms ease; }
.side-link-parent.active-parent { color: var(--bo-navy-900); font-weight: 700; }
.side-nav-group:not(.is-open) .side-chevron { transform: rotate(-90deg); }
.side-subnav-wrap { display: grid; grid-template-rows: 1fr; overflow: hidden; padding: 8px 0 12px; opacity: 1; transition: grid-template-rows 220ms cubic-bezier(.2,.75,.25,1), padding 220ms cubic-bezier(.2,.75,.25,1), opacity 150ms ease; }
.side-nav-group:not(.is-open) .side-subnav-wrap { grid-template-rows: 0fr; padding-top: 0; padding-bottom: 0; opacity: 0; pointer-events: none; }
.side-subnav { min-height: 0; display: grid; gap: 8px; margin: 0 6px 0 16px; padding: 2px 0 2px 12px; border-left: 1px solid #dce5ea; }
.side-sublink { width: 100%; min-height: 44px; display: grid; grid-template-columns: 18px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 0 10px; border: 0; border-radius: 9px; color: #667589; background: transparent; font-size: 13px; font-weight: 500; text-align: left; cursor: pointer; }
.side-sublink:hover { color: var(--bo-navy-900); background: #f2f7f9; }
.side-sublink:focus-visible { outline: 2px solid var(--bo-teal-500); outline-offset: 2px; }
.side-sublink > i, .side-sublink > svg { width: 18px; height: 18px; flex: none; }
.side-sublink > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-sublink > b { min-width: 24px; height: 22px; display: grid; place-items: center; padding: 0 6px; border-radius: 99px; color: #596b7d; background: #e7edf1; font-size: 10px; }
.side-sublink.active { color: #135f6c; background: #e8f5f7; font-weight: 700; }
.side-sublink.active > b { color: #fff; background: #167888; }
.sidebar.is-collapsed .side-nav-group { margin-bottom: 4px; }
.sidebar.is-collapsed .side-link-parent .side-chevron,
.sidebar.is-collapsed .side-subnav-wrap { display: none; }
@media (prefers-reduced-motion: reduce) {
  .side-link-parent .side-chevron, .side-subnav-wrap { transition: none; }
}
.sidebar.is-collapsed .side-link::after,
.account-side.is-collapsed .account-side-links button::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 50%;
  left: calc(100% + 12px);
  z-index: 30;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 7px;
  color: #fff;
  background: #10253d;
  box-shadow: 0 8px 22px rgba(7,24,44,.18);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translate(4px,-50%);
  transition: opacity .16s ease, transform .16s ease;
  white-space: nowrap;
}
.sidebar.is-collapsed .side-link:hover::after,
.sidebar.is-collapsed .side-link:focus-visible::after,
.account-side.is-collapsed .account-side-links button:hover::after,
.account-side.is-collapsed .account-side-links button:focus-visible::after { opacity: 1; transform: translate(0,-50%); }
.mobile-sidebar-trigger, .sidebar-scrim { display: none; }
.workspace-main { padding: 32px; }
.workspace-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.workspace-head h1 { margin: 0; color: var(--bo-navy-900); font-size: 26px; }
.workspace-head p { margin: 8px 0 0; color: var(--bo-muted); font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat-card { padding: 22px; border: 1px solid var(--bo-border); border-radius: var(--bo-radius-md); background: var(--bo-white); box-shadow: 0 3px 12px rgba(7,24,44,.035); }
.stat-card span { color: var(--bo-muted); font-size: 12px; }
.stat-card strong { display: block; margin-top: 14px; color: var(--bo-navy-900); font-size: 26px; }
.dashboard-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; margin-top: 16px; }
.panel { min-height: 280px; padding: 22px; border: 1px solid var(--bo-border); border-radius: var(--bo-radius-md); background: var(--bo-white); }
.panel-head { display: flex; align-items: center; justify-content: space-between; }
.panel-head h2 { margin: 0; font-size: 16px; }
.activity-list { margin: 20px 0 0; padding: 0; list-style: none; }
.activity-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid #edf1f5; }
.activity-list li:last-child { border-bottom: 0; }
.activity-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bo-teal-500); }
.activity-list strong { display: block; font-size: 13px; }
.activity-list span { color: var(--bo-muted); font-size: 12px; }

.account-center { min-height: 100vh; background: var(--bo-surface); }
.account-shell { max-width: 1160px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; margin: 0 auto; padding: 42px 24px 80px; }
.account-shell.is-sidebar-collapsed { grid-template-columns: 76px minmax(0, 1fr); }
.account-side { position: relative; align-self: start; padding: 14px; border: 1px solid var(--bo-border); border-radius: var(--bo-radius-md); background: var(--bo-white); }
.account-side .sidebar-tools { padding-left: 8px; }
.account-side-links { display: grid; gap: 2px; }
.account-side button { position: relative; width: 100%; min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 0; border-radius: 9px; color: var(--bo-muted); background: transparent; text-align: left; cursor: pointer; }
.account-side button:hover { color: var(--bo-navy-900); background: #f2f7f9; }
.account-side button:focus-visible { outline: 2px solid var(--bo-teal-500); outline-offset: 2px; }
.account-side button.active { color: var(--bo-navy-900); background: #e9f5f7; font-weight: 700; }
.account-side button i { width: 18px; height: 18px; }
.account-side.is-collapsed { padding-right: 10px; padding-left: 10px; }
.account-side.is-collapsed .sidebar-tools { justify-content: center; padding-right: 0; padding-left: 0; }
.account-side.is-collapsed .sidebar-tools-label,
.account-side.is-collapsed .account-side-label { display: none; }
.account-side.is-collapsed .account-side-links button { width: 44px; justify-content: center; gap: 0; margin: 0 auto; padding: 0; }
.account-content h1 { margin: 0; color: var(--bo-navy-900); font-size: 28px; }
.account-content > p { margin: 10px 0 28px; color: var(--bo-muted); }
.section-card { margin-bottom: 18px; padding: 24px; border: 1px solid var(--bo-border); border-radius: var(--bo-radius-md); background: var(--bo-white); box-shadow: 0 3px 12px rgba(7,24,44,.035); }
.section-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.section-card-head h2 { margin: 0; font-size: 17px; }
.section-card-head p { margin: 6px 0 0; color: var(--bo-muted); font-size: 13px; }
.application-status-card { position: relative; overflow: hidden; }
.application-status-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--bo-amber-500); }
.application-status-card.is-rejected::before { background: var(--bo-red-600); }
.application-status-card .section-card-head { margin-bottom: 16px; }
.application-status-eyebrow { display: block; margin-bottom: 7px; color: var(--bo-teal-700); font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.tag-rejected { color: #a73442; background: #fff0f1; }
.application-status-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 14px; border-top: 1px solid #edf1f5; color: var(--bo-muted); font-size: 11px; }
.application-status-meta span { display: inline-flex; align-items: center; gap: 7px; }
.application-status-meta i { width: 15px; height: 15px; }
.application-status-actions { display: flex; justify-content: flex-end; margin-top: 18px; }
.application-status-card.is-approved::before { background: var(--bo-teal-600); }
.client-review-feedback { margin-top: 16px; padding: 14px 16px; border: 1px solid #f0c7c7; border-radius: 10px; background: #fff6f6; text-align: left; }
.client-review-feedback strong { font-size: 13px; color: #9f2f37; }
.client-review-feedback p { margin: 8px 0 0; color: #643f45; font-size: 14px; line-height: 1.7; }
.client-review-note { white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; }
.status-detail > div > strong { min-width: 0; max-width: 75%; }
.client-application-history { margin-top: 20px; border-top: 1px solid var(--bo-border); padding-top: 16px; text-align: left; }
.client-application-history summary { cursor: pointer; padding: 8px 0; font-size: 13px; font-weight: 600; }
.client-application-history ol { padding: 0 0 0 18px; }
.client-application-history li { padding: 10px 0; color: var(--bo-muted); font-size: 12px; }
.client-application-history li > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; }
.client-application-history li strong { color: var(--bo-navy-900); font-size: 13px; }
.client-application-history li p { margin: 7px 0 0; color: var(--bo-navy-900); line-height: 1.6; }
.registration-account-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; padding: 16px; margin: 0 0 24px; border-radius: 10px; background: #f5f8fb; }
.registration-account-summary dt { margin-bottom: 6px; color: var(--bo-muted); font-size: 12px; }
.registration-account-summary dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.registration-context-banner .client-review-note { display: block; margin: 6px 0; font-size: 14px; line-height: 1.7; }
@media(max-width:640px) { .registration-account-summary { grid-template-columns: 1fr; } .status-detail > div > strong { max-width: 100%; } .application-status-actions .btn { white-space: normal; } }
.identity-list { display: grid; gap: 12px; }
.account-empty-state { min-height: 112px; display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px dashed var(--bo-border-strong); border-radius: 12px; background: #f9fbfc; }
.account-empty-state > span { width: 44px; height: 44px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 12px; color: var(--bo-teal-700); background: var(--bo-teal-100); }
.account-empty-state > span i { width: 21px; height: 21px; }
.account-empty-state h3 { margin: 0; font-size: 14px; }
.account-empty-state p { margin: 5px 0 0; color: var(--bo-muted); font-size: 12px; }
.application-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.identity-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 16px; border: 1px solid #e5ebf1; border-radius: 12px; }
.identity-row h3 { margin: 0; font-size: 14px; }
.identity-row p { margin: 5px 0 0; color: var(--bo-muted); font-size: 12px; }
.identity-row-actions { display: flex; align-items: center; gap: 10px; }
.definition-list { display: grid; margin: 0; }
.definition-row { display: grid; grid-template-columns: 160px 1fr auto; align-items: center; min-height: 58px; border-bottom: 1px solid #edf1f5; }
.definition-row:last-child { border-bottom: 0; }
.definition-row dt { color: var(--bo-muted); font-size: 13px; }
.definition-row dd { margin: 0; font-size: 13px; font-weight: 600; }
.settings-form { max-width: 720px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.settings-field { min-width: 0; }
.settings-field .form-control { min-height: 46px; }
.form-control.read-only { color: #617085; background: #f3f6f8; cursor: not-allowed; }
.field-help { margin: 7px 0 0; color: var(--bo-muted); font-size: 12px; line-height: 1.55; }
.current-email-summary { max-width: 820px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; padding: 14px 16px; border: 1px solid var(--bo-border); border-radius: 10px; background: #f8fafb; }
.current-email-summary span { color: var(--bo-muted); font-size: 12px; }
.current-email-summary strong { font-size: 13px; overflow-wrap: anywhere; }
.email-verification-grid { max-width: 820px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.email-verification-actions { margin-top: 20px; }
.tag i { width: 14px; height: 14px; margin-right: 5px; }
.password-form { max-width: 560px; display: grid; gap: 18px; }
.form-actions { display: flex; justify-content: flex-start; padding-top: 2px; }
.profile-save-actions { margin-top: 20px; }
.login-history { display: grid; }
.login-history-row { min-height: 76px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; border-bottom: 1px solid #edf1f5; }
.login-history-row:last-child { border-bottom: 0; }
.history-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; color: var(--bo-teal-700); background: var(--bo-teal-100); }
.history-icon i { width: 20px; height: 20px; }
.login-history-row strong { display: block; font-size: 13px; }
.login-history-row p { margin: 5px 0 0; color: var(--bo-muted); font-size: 12px; }
.history-time { display: flex; align-items: center; gap: 10px; color: var(--bo-muted); font-size: 12px; }

.status-page { min-height: calc(100vh - var(--bo-header-height)); display: grid; place-items: center; padding: 42px 24px 96px; background: var(--bo-surface); }
.status-card { width: 100%; max-width: 640px; padding: 42px; border: 1px solid var(--bo-border); border-radius: var(--bo-radius-lg); background: var(--bo-white); box-shadow: var(--bo-shadow-sm); text-align: center; }
.status-icon { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 24px; border-radius: 50%; }
.status-icon i { width: 30px; height: 30px; }
.status-pending { color: var(--bo-amber-600); background: var(--bo-amber-50); }
.status-rejected { color: var(--bo-red-600); background: var(--bo-red-50); }
.status-neutral { color: var(--bo-navy-800); background: #edf3f7; }
.status-card h1 { margin: 0; color: var(--bo-navy-900); font-size: 26px; }
.status-card > p { max-width: 480px; margin: 14px auto 0; color: var(--bo-muted); line-height: 1.7; }
.status-detail { margin: 28px 0; padding: 18px; border-radius: 12px; background: #f7f9fb; text-align: left; }
.status-detail div { display: flex; justify-content: space-between; gap: 20px; padding: 7px 0; font-size: 13px; }
.status-detail span { color: var(--bo-muted); }
.status-detail strong { text-align: right; }
.status-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

.portal-hero { position: relative; min-height: calc(100vh - var(--bo-header-height)); display: grid; align-items: center; overflow: hidden; padding: 80px clamp(28px, 7vw, 110px); color: var(--bo-white); background: linear-gradient(90deg, rgba(4,23,42,.94), rgba(5,42,60,.48)), radial-gradient(circle at 72% 42%, #267c89, #092338 58%, #061a2f); }
.portal-hero::after { content: ""; position: absolute; width: min(45vw, 650px); aspect-ratio: 1; right: 4vw; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 60px rgba(255,255,255,.03), 0 0 0 120px rgba(255,255,255,.02); }
.portal-copy { position: relative; z-index: 1; max-width: 780px; }
.portal-copy h1 { margin: 0; font-size: clamp(40px, 5.5vw, 76px); line-height: 1.05; letter-spacing: -.045em; }
.portal-copy p { margin: 24px 0 0; color: rgba(255,255,255,.78); font-size: 16px; }
.site-navigation { display: flex; align-items: center; gap: clamp(18px, 2vw, 30px); }
.site-navigation button { min-height: 40px; padding: 7px 0; border: 0; color: #334155; background: transparent; font-size: 13px; font-weight: 600; white-space: nowrap; }
.site-navigation button:hover { color: var(--bo-teal-700); }

.portal-placeholder { min-height: calc(100vh - var(--bo-header-height)); display: grid; place-items: center; padding: 64px 24px 100px; background: linear-gradient(180deg, #fbfcfe, #f3f7fa); }
.placeholder-card { width: 100%; max-width: 620px; padding: 54px; border: 1px solid var(--bo-border); border-radius: 22px; background: var(--bo-white); box-shadow: var(--bo-shadow-sm); text-align: center; }
.placeholder-icon { width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto 22px; border-radius: 17px; color: var(--bo-teal-700); background: var(--bo-teal-100); }
.placeholder-icon i { width: 27px; height: 27px; }
.placeholder-eyebrow { color: var(--bo-teal-700); font-size: 11px; font-weight: 700; letter-spacing: .15em; }
.placeholder-card h1 { margin: 10px 0 14px; color: var(--bo-navy-900); font-size: 30px; }
.placeholder-card p { max-width: 500px; margin: 0 auto 28px; color: var(--bo-muted); line-height: 1.75; }

.prototype-trigger {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 140;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 99px;
  color: var(--bo-white);
  background: rgba(7, 24, 44, .92);
  box-shadow: 0 12px 36px rgba(7,24,44,.25);
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}
.prototype-trigger-dot { width: 7px; height: 7px; border-radius: 50%; background: #60d6c5; box-shadow: 0 0 0 4px rgba(96,214,197,.14); }
.prototype-nav { position: fixed; right: 18px; bottom: 68px; z-index: 150; width: min(320px, calc(100vw - 36px)); padding: 10px; border: 1px solid var(--bo-border); border-radius: 16px; background: var(--bo-white); box-shadow: var(--bo-shadow-lg); }
.prototype-nav-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 10px 10px; }
.prototype-nav-head strong, .prototype-nav-head span { display: block; }
.prototype-nav-head strong { font-size: 13px; }
.prototype-nav-head span { margin-top: 3px; color: var(--bo-muted); font-size: 11px; }
.prototype-nav > button:not(.icon-button) { width: 100%; min-height: 38px; padding: 0 10px; border: 0; border-radius: 8px; color: #415167; background: transparent; font-size: 12px; text-align: left; }
.prototype-nav > button:not(.icon-button):hover { color: var(--bo-navy-900); background: #edf3f7; }

.toast { position: fixed; top: 92px; left: 50%; z-index: 120; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid #bfe6db; border-radius: 10px; color: #075e48; background: #effcf7; box-shadow: var(--bo-shadow-sm); font-size: 13px; transform: translate(-50%, -16px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast i { width: 17px; height: 17px; }

@media (max-width: 1040px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-visual { min-height: 360px; align-items: center; }
  .auth-visual h1 { font-size: clamp(36px, 7vw, 58px); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .site-navigation { display: none; }
  .registration-grid.three-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  :root { --bo-header-height: 58px; }
  .site-header { padding: 0 18px; }
  .brand-copy span { display: none; }
  .auth-visual { min-height: 300px; padding: 42px 24px; }
  .auth-visual p, .trust-row { display: none; }
  .auth-panel { padding: 40px 24px 80px; }
  .choice-grid { grid-template-columns: 1fr; }
  .choice-card { min-height: 230px; }
  .identity-card { grid-template-columns: auto 1fr; }
  .identity-card .btn { grid-column: 1 / -1; }
  .header-actions > .btn-ghost { display: none; }
  body.sidebar-drawer-open { overflow: hidden; }
  .workspace-layout, .workspace-layout.is-sidebar-collapsed { grid-template-columns: minmax(0, 1fr); }
  .mobile-sidebar-trigger { min-height: 48px; display: flex; align-items: center; justify-content: flex-start; gap: 9px; margin: 14px 18px 0; padding: 0 14px; border: 1px solid var(--bo-border); border-radius: 10px; color: var(--bo-navy-900); background: var(--bo-white); box-shadow: var(--bo-shadow-sm); font-size: 13px; font-weight: 700; cursor: pointer; }
  .mobile-sidebar-trigger:hover { border-color: var(--bo-teal-500); background: #f8fbfc; }
  .mobile-sidebar-trigger:focus-visible { outline: 2px solid var(--bo-teal-500); outline-offset: 2px; }
  .mobile-sidebar-trigger i { width: 19px; height: 19px; }
  .sidebar-scrim { position: fixed; inset: var(--bo-workspace-header-height) 0 0; z-index: 89; display: block; border: 0; background: rgba(7,24,44,.36); backdrop-filter: blur(2px); cursor: pointer; }
  .sidebar-scrim[hidden] { display: none; }
  .sidebar,
  .sidebar.is-collapsed,
  .account-side,
  .account-side.is-collapsed { position: fixed; top: var(--bo-workspace-header-height); bottom: 0; left: 0; z-index: 90; width: min(288px, calc(100vw - 48px)); display: block; overflow-y: auto; padding: 16px; border: 0; border-right: 1px solid var(--bo-border); border-radius: 0; box-shadow: 18px 0 40px rgba(7,24,44,.16); transform: translateX(-105%); transition: transform .2s ease; }
  .sidebar.is-mobile-open,
  .account-side.is-mobile-open { transform: translateX(0); }
  .sidebar.is-collapsed .sidebar-tools,
  .account-side.is-collapsed .sidebar-tools { justify-content: space-between; padding-right: 2px; padding-left: 12px; }
  .sidebar.is-collapsed .sidebar-tools-label,
  .sidebar.is-collapsed .side-title,
  .sidebar.is-collapsed .side-link-label,
  .account-side.is-collapsed .sidebar-tools-label,
  .account-side.is-collapsed .account-side-label { display: block; }
  .sidebar.is-collapsed .side-section { margin-bottom: 24px; }
  .sidebar.is-collapsed .side-link,
  .account-side.is-collapsed .account-side-links button { width: 100%; justify-content: flex-start; gap: 11px; margin: 0; padding: 0 12px; }
  .sidebar.is-collapsed .side-link::after,
  .account-side.is-collapsed .account-side-links button::after { display: none; }
  .workspace-main { padding: 22px 18px 80px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .account-copy { display: none; }
  .account-shell, .account-shell.is-sidebar-collapsed { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 10px; }
  .account-shell .mobile-sidebar-trigger { margin-right: 0; margin-left: 0; }
  .definition-row { grid-template-columns: 1fr auto; gap: 8px; padding: 12px 0; }
  .definition-row dd { grid-column: 1 / -1; }
  .identity-row { grid-template-columns: auto 1fr; }
  .identity-row-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .portal-hero { padding: 54px 24px; }
  .portal-hero::after { right: -22vw; width: 90vw; }
  .registration-page { padding: 24px 14px 72px; }
  .registration-stepper { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 5px; }
  .registration-stepper li:nth-child(3)::before { display: none; }
  .registration-step-copy strong { max-width: 150px; }
  .registration-section { padding: 26px 20px 20px; }
  .registration-error-summary { margin: 20px 20px 0; }
  .registration-grid, .registration-grid.three-columns { grid-template-columns: 1fr; }
  .registration-actions { align-items: stretch; flex-direction: column-reverse; padding: 18px 20px; }
  .registration-actions > div { align-items: stretch; flex-direction: column; }
  .registration-actions .btn { width: 100%; }
  .registration-login-link { padding: 0 20px 22px; }
  .supplier-registration-head { padding: 26px 20px 22px; }
  .supplier-fields-grid, .supplier-account-grid { grid-template-columns: 1fr; }
  .supplier-verification-field { grid-column: auto; }
  .supplier-fields-grid { padding: 24px 20px 0; }
  .supplier-password-rule, .unified-account-notice, .supplier-account-summary, .supplier-agreement-area { margin-right: 20px; margin-left: 20px; }
  .supplier-summary-head { align-items: flex-start; flex-direction: column; }
  .supplier-registration-actions { padding: 18px 20px 24px; }
  .supplier-registration-actions .btn { width: 100%; min-width: 0; }
}

@media (max-width: 480px) {
  .brand-mark { width: 36px; height: 36px; flex-basis: 36px; }
  .brand-copy strong { font-size: 13px; }
  .public-header .brand-copy strong { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header-actions .btn { padding: 0 13px; }
  .auth-visual h1 { font-size: 33px; }
  .auth-card h2 { font-size: 27px; }
  .form-meta { align-items: flex-start; flex-direction: column; }
  .stats { grid-template-columns: 1fr; }
  .status-card { padding: 32px 22px; }
  .status-detail div { flex-direction: column; gap: 5px; }
  .status-detail strong { text-align: left; }
  .account-menu { position: fixed; top: 76px; right: 12px; left: 12px; width: auto; }
  .registration-topline > span, .registration-save-note { display: none; }
  .registration-stepper li { gap: 8px; padding: 10px; }
  .registration-step-status { width: 26px; height: 26px; flex-basis: 26px; }
  .registration-step-copy strong { font-size: 10px; }
  .registration-step-copy small { display: none; }
  .registration-stepper li.active::after { left: 44px; }
  .registration-section-head > i { display: none; }
  .registration-subhead { align-items: flex-start; flex-direction: column; gap: 6px; }
  .verification-row { grid-template-columns: 1fr; }
  .email-verification-grid { grid-template-columns: 1fr; }
  .current-email-summary { align-items: flex-start; flex-direction: column; }
  .legal-modal { padding: 10px; }
  .supplier-registration-head { grid-template-columns: 1fr; }
  .supplier-registration-icon { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
:root .compact-header-icon:disabled { opacity:.4;cursor:not-allowed; }

.status-detail > .client-rejection-row{display:block;border-top:1px solid var(--bo-border);margin-top:8px;padding-top:14px}.status-detail > .client-rejection-row > strong{display:block;text-align:left;max-width:100%;margin-top:8px;line-height:1.7;font-weight:500}
