:root {
  color-scheme: light;
  --bg: #f7f8f7;
  --surface: #ffffff;
  --surface-2: #f7faf8;
  --ink: #172027;
  --muted: #697781;
  --line: #d9e5df;
  --nav: #0d241d;
  --blue: #167a54;
  --cyan: #248a78;
  --green: #0f8a5f;
  --amber: #b97800;
  --red: #c74736;
  --shadow: 0 8px 20px rgba(19, 32, 42, 0.06);
  --radius: 12px;
  --font-ja: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif;
  --font-zh: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-en: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-family: var(--font-ja);
}

html[lang="ja"] {
  font-family: var(--font-ja);
}

html[lang="zh-CN"] {
  font-family: var(--font-zh);
}

html[lang="en"] {
  font-family: var(--font-en);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 42px);
  overflow: auto;
  background:
    linear-gradient(rgba(247, 250, 248, 0.92), rgba(247, 250, 248, 0.96)),
    linear-gradient(rgba(14, 70, 51, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 70, 51, 0.055) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
}

.login-screen.hidden {
  display: none;
}

.login-panel {
  display: grid;
  grid-template-columns: minmax(320px, .95fr) minmax(360px, 1.05fr);
  width: min(1080px, 100%);
  min-height: min(680px, calc(100vh - 72px));
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(9, 24, 20, 0.12);
  overflow: hidden;
}

.login-hero {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(30px, 4.2vw, 52px);
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(243, 249, 246, 0.96)),
    linear-gradient(90deg, rgba(15, 138, 95, .1), transparent);
  border-right: 1px solid var(--line);
}

.login-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 138, 95, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 138, 95, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, #000, transparent 92%);
}

.login-brand-block,
.login-hero-copy,
.login-proof-grid {
  position: relative;
  z-index: 1;
}

.login-logo {
  width: min(220px, 76%);
  height: auto;
}

.login-brand-block p {
  margin: 12px 0 0;
  color: var(--green);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.login-hero-copy {
  max-width: 500px;
  padding: 58px 0;
}

.login-hero-copy h1 {
  max-width: 440px;
  margin: 12px 0 18px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: 0;
}

.login-hero-copy p:last-child {
  max-width: 470px;
  margin: 0;
  color: #53645d;
  font-size: 16px;
  line-height: 1.8;
}

.login-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .72);
}

.login-proof-grid span {
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 16px;
  color: #17342a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-right: 1px solid var(--line);
}

.login-proof-grid span:last-child {
  border-right: 0;
}

.login-card-stack {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(24px, 4vw, 48px);
  background: #fff;
}

.login-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 4px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.login-language-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  background: #fff;
}

.login-language-switch button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: #52625b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
  cursor: pointer;
}

.login-language-switch button:last-child {
  border-right: 0;
}

.login-language-switch button.active {
  background: var(--nav);
  color: #fff;
}

.login-card {
  display: grid;
  gap: 16px;
  width: 100%;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.register-card {
  background: #f8fbf9;
}

.login-card h1,
.login-card h2 {
  margin: 0;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.1;
}

.login-card .muted {
  margin-top: 8px;
  font-size: 13px;
}

.login-card label {
  display: grid;
  gap: 7px;
  color: #24332d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.identity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: #fff;
}

.identity-card {
  min-height: 104px;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 14px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.identity-card:last-child {
  border-right: 0;
}

.identity-card strong {
  font-size: 13px;
  line-height: 1.35;
}

.identity-card span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: 0;
}

.identity-card.active {
  background: #eef8f3;
  box-shadow: inset 0 0 0 2px var(--green);
}

.login-card input,
.login-card select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  outline: none;
}

.login-card input:focus,
.login-card select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15, 138, 95, .12);
}

.text-action {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
}

.reset-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #f7faf8;
}

.security-note {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-left: 3px solid var(--green);
  background: #f4faf7;
  color: #34473f;
}

.security-note strong {
  color: var(--ink);
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.security-note span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

body.auth-locked .app-shell {
  display: none;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 14px;
  overflow-y: auto;
  background: var(--nav);
  color: #edf5f7;
}

.brand,
.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #116f4d, #27a674);
  font-weight: 900;
}

.brand-logo {
  width: 150px;
  max-width: 56%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}

.login-card .brand-logo {
  width: 168px;
  max-width: 58%;
}

.sidebar .brand-logo {
  width: 166px;
  max-width: 72%;
}

.brand strong,
.sidebar-footer strong {
  display: block;
  font-size: 15px;
  line-height: 1.3;
}

.brand span,
.sidebar-footer span {
  display: block;
  margin-top: 3px;
  color: #9fb2bc;
  font-size: 12px;
}

.brand .brand-vision {
  max-width: 230px;
  margin-top: 6px;
  color: #d7e5df;
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: .02em;
}

.login-card .brand-vision {
  color: #425650;
}

.nav-list {
  display: grid;
  gap: 5px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 10px;
  background: transparent;
  color: #c4d1d8;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
  text-align: left;
}

.nav-item:hover,
.nav-item.active {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.nav-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.sidebar-footer {
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #24c886;
  box-shadow: 0 0 0 5px rgba(36, 200, 134, 0.16);
}

.workspace {
  min-width: 0;
  padding: 18px 20px;
}

.topbar {
  display: grid;
  grid-template-columns: auto minmax(200px, 300px) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.topbar-title {
  min-width: 0;
}

.topbar-title .eyebrow {
  margin-bottom: 2px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: none;
}

.topbar-title h1 {
  max-width: 300px;
  overflow: hidden;
  margin: 0;
  color: var(--blue);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: 30px;
  line-height: 1.2;
}

h2 {
  margin-bottom: 0;
  font-size: 25px;
  line-height: 1.3;
}

h3 {
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.35;
}

p {
  line-height: 1.7;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  margin-left: auto;
  min-width: 0;
}

.version-switch {
  display: grid;
  gap: 0;
  min-height: 34px;
  width: 132px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  background: var(--surface);
}

.version-switch span {
  display: none;
}

.version-switch select {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  width: 100%;
  min-height: 32px;
  height: 32px;
  padding: 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 32px;
}

.version-switch select option {
  font-size: 13px;
  line-height: 1.4;
  padding: 6px 10px;
}

.user-menu {
  position: relative;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  max-width: 160px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}

.user-chip strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chip span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  display: grid;
  gap: 10px;
  width: 260px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.user-popover[hidden] {
  display: none;
}

.language-switch,
.segmented {
  display: flex;
  gap: 3px;
  min-height: 34px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.language-switch button,
.segmented button {
  min-width: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.language-switch button.active,
.segmented button.active {
  background: var(--blue);
  color: #ffffff;
}

.search {
  display: flex;
  align-items: center;
  gap: 6px;
  width: clamp(160px, 20vw, 240px);
  min-width: 140px;
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.search span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  font-size: 12px;
}

.topbar-primary {
  min-height: 34px;
  border-radius: 999px;
  padding: 0 13px;
  font-size: 12px;
  white-space: nowrap;
}

.section {
  display: none;
}

.section.active {
  display: block;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-action,
.secondary-action,
.danger-action,
.ghost-action {
  min-height: 44px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 15px;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.3;
}

.primary-action {
  background: var(--blue);
  color: #ffffff;
}

.secondary-action {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.primary-action:hover {
  background: #0f6847;
}

.secondary-action:hover {
  border-color: rgba(22, 122, 84, 0.45);
  background: #f3faf6;
  color: var(--blue);
}

.danger-action {
  background: #fff0ed;
  color: var(--red);
}

.ghost-action {
  background: #edf3f6;
  color: var(--ink);
}

.grid-4,
.grid-3,
.grid-2,
.dashboard-grid,
.form-grid,
.portal-grid,
.action-grid {
  display: grid;
  gap: 14px;
}

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

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

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

.partner-visual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 14px;
  margin-bottom: 14px;
}

.rule-flow {
  display: grid;
  gap: 10px;
}

.rule-step {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  min-height: 64px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.rule-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 32px;
  bottom: -11px;
  width: 2px;
  height: 10px;
  background: var(--line);
}

.rule-step-number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #e9f1ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.rule-step strong,
.waterfall-row strong {
  display: block;
  line-height: 1.4;
}

.rule-step small,
.waterfall-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.waterfall {
  display: grid;
  gap: 8px;
}

.waterfall-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.waterfall-row b {
  color: var(--ink);
  font-size: 15px;
  white-space: nowrap;
}

.waterfall-row.negative b {
  color: var(--red);
}

.waterfall-row.total {
  border-color: rgba(22, 122, 84, 0.28);
  background: #e8f5ee;
}

.internal-rule-panel .muted {
  margin-bottom: 14px;
}

.internal-levels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.internal-level-card {
  display: grid;
  gap: 9px;
  align-content: start;
  min-height: 184px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.level-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 32px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0;
}

.internal-level-card strong {
  font-size: 15px;
}

.internal-level-card span,
.level-meta small {
  color: var(--muted);
  line-height: 1.45;
}

.level-meta {
  display: grid;
  gap: 4px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.level-meta b {
  color: var(--blue);
}

.platform-pool-rule {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.panel-head.compact {
  margin-bottom: 10px;
}

.founder-rule {
  background: #fbfcff;
  border-radius: var(--radius);
  padding: 14px;
}

.card,
.panel,
.kpi-card,
.external-preview,
.submission-card,
.action-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.card,
.panel,
.kpi-card,
.external-preview,
.submission-card,
.action-card {
  padding: 16px;
}

.kpi-card span,
.kpi-card small,
.muted,
.panel-head span,
.status-line,
.submission-card span,
.doc-row span,
.mini-list span,
.timeline span {
  color: var(--muted);
}

.muted {
  font-size: 14px;
  line-height: 1.65;
}

.card h3,
.action-card h3,
.role-card h3,
.roadmap-card h3 {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.4;
}

.card p,
.action-card p {
  line-height: 1.65;
}

.submission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 300px;
}

.submission-actions button {
  min-height: 34px;
  padding: 0 10px;
  white-space: nowrap;
}

.kpi-card strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 34px;
  line-height: 1;
}

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

.panel-head h3 {
  color: #10271f;
  font-size: 17px;
  font-weight: 900;
}

.panel-head span {
  padding-top: 3px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
  text-align: right;
}

.user-management-panel {
  margin-top: 14px;
}

.user-create-form,
.user-admin-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(220px, 1.4fr) minmax(150px, 1fr) minmax(140px, 0.8fr) auto;
  gap: 8px;
  align-items: center;
}

.user-create-form {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.user-admin-list {
  display: grid;
  gap: 8px;
  overflow-x: auto;
}

.user-admin-row {
  grid-template-columns: minmax(140px, 1fr) minmax(220px, 1.4fr) minmax(150px, 1fr) minmax(140px, 0.8fr) minmax(240px, 1.5fr) minmax(320px, 1.8fr) auto auto;
  min-width: 1420px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.user-permission-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.user-permission-checks label {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.user-permission-checks input {
  width: auto;
  min-height: 0;
}

.danger-action:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 10px;
  overflow-x: auto;
}

.pipeline-step {
  min-height: 118px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.pipeline-step strong {
  display: block;
  margin: 8px 0;
  font-size: 27px;
  line-height: 1.1;
}

.timeline {
  display: grid;
  gap: 11px;
}

.timeline div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface-2);
}

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

label {
  display: grid;
  gap: 8px;
  color: #3f544a;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.4;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(22, 122, 84, 0.12);
}

textarea {
  min-height: 112px;
  padding-top: 12px;
  padding-bottom: 12px;
  resize: vertical;
}

.mobile-intake {
  display: grid;
  gap: 14px;
}

.line-import-panel {
  margin-bottom: 14px;
}

.line-import-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 14px;
}

.line-import-layout textarea {
  min-height: 190px;
}

.line-import-summary {
  min-height: 190px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.line-import-summary ul {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

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

.form-progress span {
  display: grid;
  min-height: 30px;
  place-items: center;
  border-radius: 999px;
  background: #e9eef1;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.form-progress .active {
  background: var(--blue);
  color: #ffffff;
}

.mobile-intake fieldset {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.mobile-intake legend {
  padding: 0 8px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.deal-type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.choice-card {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
}

.full {
  grid-column: 1 / -1;
}

.external-preview {
  display: grid;
  gap: 12px;
}

.source-progress-panel,
.client-pool-visual {
  margin-bottom: 14px;
  border: 1px solid rgba(22, 122, 84, 0.16);
  background: linear-gradient(180deg, #ffffff 0%, #f6fbf8 100%);
}

.external-partner-mode {
  margin-bottom: 14px;
  border: 1px solid rgba(22, 122, 84, 0.16);
  background: #fff;
}

.external-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.external-mode-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  cursor: pointer;
}

.external-mode-card strong {
  color: var(--ink);
}

.external-mode-card span {
  color: var(--muted);
  line-height: 1.55;
}

.source-progress-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 12px;
}

.source-progress-card,
.source-progress-empty {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.source-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.source-progress-card h4 {
  margin: 12px 0 6px;
  font-size: 17px;
}

.source-progress-card p,
.source-progress-empty span {
  color: var(--muted);
  line-height: 1.5;
}

.source-step-line {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 12px 0;
}

.source-step-line span {
  padding: 6px 4px;
  border-radius: 999px;
  background: #edf2f0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.source-step-line span.done {
  background: #e8f7f0;
  color: var(--green);
}

.material-stage-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: -4px 0 12px;
}

.material-stage-line span {
  padding: 6px 4px;
  border-radius: 10px;
  background: #f6f1e8;
  color: #8b6b2d;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.material-stage-line span.done {
  background: #fff3d4;
  color: #9a6512;
}

.document-stage-upload {
  padding: 14px;
  border: 1px solid rgba(22, 122, 84, 0.16);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf9 100%);
}

.document-stage-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.document-stage-head strong {
  color: var(--ink);
}

.document-stage-head span {
  color: var(--muted);
  font-size: 13px;
}

.document-stage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.document-stage-card {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.document-stage-card b {
  color: var(--green);
}

.document-stage-card small {
  min-height: 38px;
  color: var(--muted);
  line-height: 1.45;
}

.client-pool-summary,
.client-type-grid,
.client-next-list {
  display: grid;
  gap: 10px;
}

.client-pool-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.client-pool-summary div,
.client-type-grid div,
.client-next-list div {
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.client-pool-summary span,
.client-pool-summary small,
.client-type-grid span,
.client-next-list span {
  display: block;
  color: var(--muted);
}

.client-pool-summary strong {
  display: block;
  margin: 6px 0;
  color: var(--blue);
  font-size: 30px;
}

.privacy-notice {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid rgba(154, 101, 18, 0.22);
  border-radius: var(--radius);
  background: #fff8e8;
  color: #7c5b19;
}

.privacy-notice strong {
  color: #5f4310;
}

.privacy-notice span {
  color: #7c5b19;
  line-height: 1.5;
}

.hidden-sensitive {
  display: none !important;
}

.privacy-action-note {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff8e8;
  color: #7c5b19;
  font-weight: 800;
}

.client-type-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 10px;
}

.client-next-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
}

.checklist {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

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

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1.45;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f5faf7;
  color: #53685e;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

tbody tr:hover {
  background: #f8fcfa;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.blue {
  background: #e8f5ee;
  color: var(--blue);
}

.green {
  background: #e8f7f0;
  color: var(--green);
}

.amber {
  background: #fff4df;
  color: var(--amber);
}

.red {
  background: #fff0ed;
  color: var(--red);
}

.kanban {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 14px;
  overflow-x: auto;
}

.kanban-column {
  min-height: 360px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eef3f5;
}

.deal-card {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.doc-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.doc-tabs button {
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-weight: 850;
}

.doc-tabs button.active {
  border-color: var(--blue);
  background: #e8f5ee;
  color: var(--blue);
}

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

.doc-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.doc-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}

.doc-row-actions button {
  min-height: 34px;
  padding: 0 10px;
}

.dataroom-current-permissions,
.dataroom-permission-matrix {
  margin-bottom: 14px;
}

.permission-on {
  background: #e8f7f0 !important;
  color: var(--green) !important;
}

.permission-off {
  background: #fff0ed !important;
  color: var(--red) !important;
}

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

.mini-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface-2);
  line-height: 1.45;
}

.mini-list strong {
  font-size: 14px;
  line-height: 1.45;
}

.mini-list span {
  font-size: 13px;
  line-height: 1.45;
  text-align: right;
}

.finance-summary-grid,
.finance-fund-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.finance-summary-grid strong {
  display: block;
  margin: 8px 0 4px;
  font-size: clamp(24px, 3vw, 36px);
}

.finance-summary-grid p,
.finance-next {
  margin: 0;
  color: var(--muted);
}

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

.finance-fund-card {
  display: grid;
  gap: 14px;
}

.finance-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.finance-metrics div {
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.finance-metrics span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

.finance-metrics strong {
  font-size: 18px;
}

.simple-steps-panel {
  margin-top: 14px;
}

.simple-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.simple-step-grid div {
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.simple-step-grid span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-weight: 900;
}

.simple-step-grid strong {
  display: block;
  margin-bottom: 6px;
}

.simple-step-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

#dashboard .section-head {
  align-items: flex-end;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 20%, rgba(47, 178, 118, 0.32), transparent 34%),
    linear-gradient(135deg, #0d241d 0%, #143a2c 58%, #1a5f45 100%);
  color: #fff;
  box-shadow: 0 22px 54px rgba(13, 36, 29, 0.22);
}

#dashboard .section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  color: #fff;
}

#dashboard .section-head .eyebrow {
  color: #8de1b3;
}

#dashboard .section-actions .secondary-action {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

#dashboard .section-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
  width: min(560px, 100%);
}

#dashboard .section-actions button {
  min-height: 56px;
  border-radius: 14px;
  font-weight: 900;
}

#dashboard > .grid-4 {
  margin-top: 16px;
}

#dashboard .kpi-card {
  position: relative;
  min-height: 132px;
  overflow: hidden;
  border: 1px solid rgba(22, 122, 84, 0.18);
  background:
    linear-gradient(180deg, #ffffff 0%, #f4fbf7 100%);
  box-shadow: 0 18px 34px rgba(19, 32, 42, 0.1);
}

#dashboard .kpi-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(22, 122, 84, 0.1);
}

#dashboard .kpi-card span {
  font-weight: 900;
  letter-spacing: 0.02em;
}

#dashboard .kpi-card strong {
  color: #10271f;
  font-size: clamp(32px, 4vw, 44px);
}

#dashboard .dashboard-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  align-items: stretch;
}

#dashboard .dashboard-grid > .panel {
  border: 1px solid rgba(22, 122, 84, 0.16);
  box-shadow: 0 18px 34px rgba(19, 32, 42, 0.08);
}

#dashboard .pipeline {
  position: relative;
  gap: 12px;
  padding-bottom: 4px;
}

#dashboard .pipeline-step {
  position: relative;
  min-height: 132px;
  border-color: rgba(22, 122, 84, 0.18);
  background:
    linear-gradient(180deg, #ffffff 0%, #eef8f2 100%);
}

#dashboard .pipeline-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -10px;
  width: 18px;
  height: 2px;
  background: rgba(22, 122, 84, 0.3);
}

#dashboard .pipeline-step strong {
  color: var(--blue);
}

#dashboard .timeline div {
  border-left: 4px solid var(--blue);
  background: #f6faf8;
}

.internal-management-visual {
  margin-top: 14px;
  border: 1px solid rgba(22, 122, 84, 0.18);
  background:
    linear-gradient(180deg, #ffffff 0%, #f6fbf8 100%);
  box-shadow: 0 18px 34px rgba(19, 32, 42, 0.08);
}

.internal-visual-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
}

.internal-visual-card {
  min-height: 118px;
  border: 1px solid rgba(22, 122, 84, 0.18);
  border-radius: var(--radius);
  padding: 12px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
}

.internal-management-visual > .internal-visual-card {
  display: inline-block;
  width: min(220px, 100%);
  margin-top: 10px;
  margin-right: 10px;
  vertical-align: top;
}

.internal-visual-card span,
.internal-visual-card small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.internal-visual-card strong {
  display: block;
  margin: 8px 0;
  color: var(--blue);
  font-size: 32px;
  line-height: 1;
}

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

.internal-alert {
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border-left: 4px solid var(--blue);
}

.internal-alert.amber {
  border-left-color: var(--amber);
}

.internal-alert.green {
  border-left-color: var(--green);
}

.internal-alert strong,
.internal-alert span {
  display: block;
}

.internal-alert span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.project-manager-visual {
  margin-top: 14px;
  border: 1px solid rgba(36, 138, 120, 0.2);
  background:
    linear-gradient(180deg, #ffffff 0%, #f3faf8 100%);
  box-shadow: 0 18px 34px rgba(19, 32, 42, 0.08);
}

.pm-focus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 12px;
}

.pm-workbench {
  margin-top: 14px;
  border: 1px solid rgba(22, 122, 84, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #f6fbf8 100%);
}

.pm-metrics,
.pm-workflow-grid,
.pm-priority-list {
  display: grid;
  gap: 12px;
}

.pm-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.pm-metrics div,
.pm-rhythm,
.pm-stage-gates {
  padding: 14px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.pm-metrics span,
.pm-metrics small {
  display: block;
  color: var(--muted);
}

.pm-metrics strong {
  display: block;
  margin: 6px 0;
  color: var(--green);
  font-size: 28px;
}

.pm-workflow-grid {
  grid-template-columns: 1fr 1.1fr;
  margin-bottom: 14px;
}

.pm-rhythm h4,
.pm-stage-gates h4 {
  margin: 0 0 10px;
}

.pm-rhythm ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.pm-rhythm b {
  color: var(--ink);
}

.pm-stage-gates {
  display: grid;
  gap: 10px;
}

.pm-stage-gates div {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 4px 10px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  background: var(--surface-2);
}

.pm-stage-gates div span {
  display: grid;
  width: 32px;
  height: 32px;
  grid-row: span 2;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #ffffff;
  font-weight: 900;
}

.pm-stage-gates small {
  color: var(--muted);
}

.pm-priority-list {
  grid-template-columns: repeat(5, minmax(160px, 1fr));
}

.pm-priority-card {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 170px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.pm-priority-card:hover {
  border-color: rgba(22, 122, 84, 0.35);
  transform: translateY(-1px);
}

.pm-priority-card strong {
  line-height: 1.35;
}

.pm-priority-card small,
.pm-priority-card em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.45;
}

.pm-priority-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pm-priority-card b {
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef7f2;
  color: var(--green);
  font-size: 12px;
}

.pm-project-card {
  min-height: 156px;
  border: 1px solid rgba(22, 122, 84, 0.2);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.pm-project-card strong {
  display: block;
  margin: 12px 0 6px;
  font-size: 17px;
  line-height: 1.35;
}

.pm-project-card small {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}

.pm-status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.pm-status-line b {
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef8f2;
  color: var(--blue);
  font-size: 12px;
}

.pm-action-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.pm-action-grid button {
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface-2);
  color: var(--ink);
  text-align: left;
}

.pm-action-grid strong,
.pm-action-grid span {
  display: block;
}

.pm-action-grid span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

#dashboard .simple-steps-panel {
  margin-top: 0;
}

#external .portal-grid {
  grid-template-columns: minmax(0, 760px) minmax(280px, 0.75fr);
}

.simple-intake {
  display: grid;
  gap: 16px;
}

.simple-intake-help {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: #f2f7f4;
  color: var(--muted);
}

.simple-intake-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.simple-intake-grid .full {
  grid-column: 1 / -1;
}

.simple-intake-grid input,
.simple-intake-grid select,
.simple-intake-grid textarea {
  min-height: 48px;
  margin-top: 6px;
}

.simple-intake-grid textarea {
  min-height: 110px;
}

.advanced-intake {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.advanced-intake summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 900;
}

.advanced-intake .simple-intake-grid {
  margin-top: 12px;
}

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

.action-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.action-card button {
  width: 100%;
}

.link-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 900;
  text-align: left;
}

.dense-table th,
.dense-table td {
  padding: 12px 14px;
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.detail-header h2 {
  font-size: 26px;
  font-weight: 900;
}

.detail-header p {
  margin: 6px 0 0;
  font-size: 14px;
}

.detail-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 14px;
  padding-bottom: 4px;
}

.detail-tabs button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: var(--surface);
  white-space: nowrap;
  font-weight: 800;
}

.detail-tabs button.active {
  border-color: var(--blue);
  background: #e8f5ee;
  color: var(--blue);
}

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

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

.fact-grid div {
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.fact-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.fact-grid strong {
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.investor-filter {
  width: fit-content;
  margin-bottom: 14px;
}

.investor-intake-panel {
  margin-bottom: 14px;
}

.investor-profile-form,
.investor-profile-form fieldset {
  display: grid;
  gap: 14px;
}

.investor-profile-form fieldset {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.investor-profile-form legend {
  padding: 0 8px;
  color: var(--ink);
  font-weight: 900;
}

.identity-choice-grid,
.relationship-choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

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

.investor-card-heading,
.identity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.identity-tags span {
  padding: 5px 8px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.investor-requirement-summary {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.investor-requirement-summary span {
  color: var(--muted);
}

.investor-profile-pdf {
  width: 100%;
  margin-top: 14px;
}

.document-audit-panel {
  margin-top: 14px;
}

.document-audit-panel .secondary-action {
  min-width: 104px;
  white-space: nowrap;
}

.investor-browser {
  display: grid;
  gap: 12px;
}

.investor-project-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.investor-project-card h3 {
  margin-top: 10px;
}

.investor-card-side {
  display: grid;
  min-width: 220px;
  gap: 8px;
  align-content: center;
  text-align: right;
}

.investor-card-side span {
  color: var(--muted);
}

.roadmap-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.roadmap-summary {
  margin-bottom: 14px;
}

.roadmap-summary p {
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.7;
}

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

.roadmap-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.roadmap-card ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 18px;
  color: #34434c;
}

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

.phase-list div {
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.phase-list span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.split-calculator {
  display: grid;
  gap: 10px;
}

.split-calculator div {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.split-calculator span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: #dfe8ee;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.split-calculator .highlight {
  border: 1px solid rgba(22, 122, 84, 0.28);
  background: #e8f5ee;
}

.split-calculator .highlight span {
  background: var(--blue);
  color: #ffffff;
}

.role-journey-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.role-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.role-card ol {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 20px;
}

.role-card li {
  color: #34434c;
}

.habit-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.habit-list div {
  min-height: 72px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.copilot-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.teaser-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.75fr);
  gap: 14px;
}

.teaser-preview {
  position: relative;
  min-height: 620px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.pdf-label {
  position: absolute;
  top: 18px;
  right: 18px;
  min-width: 48px;
  min-height: 30px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--red);
  color: #ffffff;
  font-weight: 900;
}

.teaser-preview h2 {
  margin: 12px 0;
  font-size: 30px;
  line-height: 1.3;
}

.teaser-preview p {
  color: #34434c;
  font-size: 15px;
  line-height: 1.65;
}

.teaser-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.teaser-metrics div {
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.teaser-metrics span,
.teaser-preview dt {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.teaser-metrics strong {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.35;
}

.teaser-preview dl {
  display: grid;
  gap: 12px;
}

.teaser-preview dd {
  margin: 4px 0 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: #34434c;
  font-size: 14px;
  line-height: 1.6;
}

.map-layout,
.health-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 14px;
}

.japan-map {
  min-height: 560px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.map-backdrop {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(23, 32, 39, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(23, 32, 39, 0.07) 1px, transparent 1px),
    #eef6f7;
  background-size: 44px 44px;
}

.map-backdrop::before {
  content: "";
  position: absolute;
  width: 42%;
  height: 84%;
  left: 36%;
  top: 8%;
  border-radius: 52% 42% 58% 46%;
  border: 2px solid rgba(22, 122, 84, 0.32);
  background: linear-gradient(180deg, rgba(22, 122, 84, 0.08), rgba(15, 138, 95, 0.12));
  transform: rotate(18deg);
}

.map-backdrop::after {
  content: "Japan BESS Map";
  position: absolute;
  left: 18px;
  bottom: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.map-pin {
  position: absolute;
  z-index: 1;
  display: grid;
  gap: 3px;
  min-width: 190px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px 10px 34px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
}

.map-pin strong {
  font-size: 14px;
  line-height: 1.35;
}

.map-pin span {
  position: absolute;
  left: 12px;
  top: 15px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(22, 122, 84, 0.16);
}

.map-pin small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.map-pin-google {
  border-color: rgba(22, 122, 84, 0.42);
}

.map-pin-google span {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(15, 138, 95, 0.16);
}

.map-google-list {
  margin-top: 14px;
}

.map-google-list div {
  align-items: center;
}

.project-timeline {
  position: relative;
  display: grid;
  gap: 14px;
  padding-left: 20px;
}

.project-timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}

.timeline-event {
  position: relative;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.timeline-event::before {
  content: "";
  position: absolute;
  left: -23px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(15, 159, 170, 0.16);
}

.timeline-event time {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.timeline-event p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.health-score {
  display: grid;
  min-height: 260px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at center, rgba(22, 122, 84, 0.12), transparent 34%),
    var(--surface);
}

.health-score span,
.health-score small {
  color: var(--muted);
  font-weight: 850;
}

.health-score strong {
  font-size: 86px;
  line-height: 0.9;
  color: var(--blue);
}

.detail-documents {
  margin-top: 14px;
}

.deal-document-library {
  margin-bottom: 14px;
  border-left: 4px solid var(--blue);
}

.contract-user-flow {
  margin-bottom: 14px;
}

.contract-flow-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 10px;
}

.contract-flow-grid div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.contract-flow-grid div.active {
  border-color: rgba(22, 122, 84, 0.35);
  background: #eef8f2;
}

.contract-flow-grid span {
  display: inline-grid;
  width: 24px;
  height: 24px;
  margin-bottom: 8px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.contract-flow-grid strong,
.contract-flow-grid em {
  display: block;
}

.contract-flow-grid em {
  margin: 4px 0 8px;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.contract-flow-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.document-template-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.document-template-note {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.6;
}

.project-contract-stack,
.contract-ledger-panel {
  margin-top: 14px;
}

.contract-upload-grid input[type="file"] {
  padding: 13px;
  background: #fff;
}

.contract-ledger-panel td:last-child {
  white-space: nowrap;
}

.simple-usage-guide {
  margin-bottom: 14px;
}

.usage-step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

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

.usage-step-grid strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
}

.usage-step-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  max-width: min(420px, calc(100vw - 48px));
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #ffffff;
  box-shadow: var(--shadow);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1120px) {
  .login-panel {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .login-hero {
    min-height: auto;
  }

  .login-hero-copy {
    padding: 42px 0 10px;
  }

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

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    z-index: 20;
    width: 292px;
    transform: translateX(-100%);
    transition: transform 180ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .grid-4,
  .grid-3,
  .dashboard-grid,
  .portal-grid,
  .action-grid,
  .role-journey-grid,
  .habit-list,
  .partner-visual-grid,
  .internal-levels,
  .finance-summary-grid,
  .finance-fund-grid,
  .finance-metrics,
  .simple-step-grid,
  .contract-flow-grid,
  .internal-visual-grid,
  .internal-alert-row,
  .pm-metrics,
  .pm-workflow-grid,
  .pm-priority-list,
  .pm-focus-grid,
  .pm-action-grid,
  .source-progress-grid,
  .external-mode-grid,
  .document-stage-grid,
  .client-pool-summary,
  .client-type-grid,
  .client-next-list,
  .roadmap-grid,
  .phase-list,
  .teaser-layout,
  .map-layout,
  .health-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar {
    grid-template-columns: auto minmax(180px, 1fr);
    align-items: center;
  }

  .topbar-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .login-screen {
    align-items: flex-start;
    padding: 0;
  }

  .login-panel {
    width: 100%;
    min-height: 100vh;
    grid-template-columns: 1fr;
    border: 0;
    box-shadow: none;
  }

  .login-hero {
    padding: 28px;
  }

  .login-brand-block {
    gap: 16px;
  }

  .login-hero-copy h1 {
    font-size: clamp(2rem, 10vw, 2.75rem);
    line-height: 1.05;
  }

  .login-proof-grid {
    grid-template-columns: 1fr;
  }

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

  .identity-card {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .identity-card:last-child {
    border-bottom: 0;
  }

  .login-proof-grid span {
    min-height: 52px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .login-proof-grid span:last-child {
    border-bottom: 0;
  }

  .login-card-stack {
    padding: 18px;
  }

  .login-card {
    padding: 22px;
  }

  .workspace {
    padding: 16px;
  }

  .section-head,
  .doc-row {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .topbar-title h1 {
    max-width: none;
  }

  .section-head {
    gap: 12px;
  }

  .card,
  .panel,
  .kpi-card,
  .external-preview,
  .submission-card,
  .action-card {
    padding: 16px;
  }

  .panel-head {
    gap: 8px;
  }

  .panel-head span,
  .mini-list span {
    text-align: left;
  }

  .topbar-actions,
  .language-switch,
  .search,
  .user-menu,
  .user-chip,
  .primary-action,
  .secondary-action,
  .danger-action,
  .ghost-action {
    width: 100%;
  }

  .language-switch button {
    flex: 1;
  }

  #dashboard .section-actions {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  #dashboard .section-actions button {
    min-width: 0;
  }

  #dashboard .pipeline {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }

  #dashboard .pipeline-step:not(:last-child)::after {
    display: none;
  }

  .user-popover {
    position: static;
    width: 100%;
    margin-top: 8px;
  }

  .grid-4,
  .grid-3,
  .grid-2,
  .dashboard-grid,
  .form-grid,
  .detail-grid,
  .fact-grid,
  .portal-grid,
  .action-grid,
  .role-journey-grid,
  .habit-list,
  .pm-metrics,
  .pm-workflow-grid,
  .pm-priority-list,
  .source-progress-grid,
  .external-mode-grid,
  .document-stage-grid,
  .material-stage-line,
  .client-pool-summary,
  .client-type-grid,
  .client-next-list,
  .roadmap-grid,
  .phase-list,
  .teaser-layout,
  .map-layout,
  .health-layout,
  .partner-visual-grid,
  .doc-tabs {
    grid-template-columns: 1fr;
  }

  .grid-2 > *,
  .partner-visual-grid > * {
    min-width: 0;
  }

  .map-filter {
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    border-radius: var(--radius);
  }

  .map-filter button {
    flex: 1 1 90px;
  }

  .user-create-form,
  .user-admin-row {
    grid-template-columns: 1fr;
  }

  .user-admin-row {
    min-width: 0;
  }

  .doc-row-actions,
  .doc-row-actions button {
    width: 100%;
  }

  .line-import-layout {
    grid-template-columns: 1fr;
  }

  .deal-type-grid,
  .identity-choice-grid,
  .relationship-choice-grid,
  .teaser-metrics {
    grid-template-columns: 1fr;
  }

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

  .waterfall-row b {
    justify-self: start;
  }

  .detail-header,
  .investor-project-card,
  .privacy-notice {
    align-items: stretch;
    flex-direction: column;
  }

  .investor-card-side {
    min-width: 0;
    text-align: left;
  }

  .copilot-box {
    grid-template-columns: 1fr;
  }

  .teaser-preview {
    min-height: auto;
    padding: 24px;
  }

  .map-pin {
    min-width: 160px;
    max-width: 210px;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 22px;
  }

  h3 {
    font-size: 17px;
  }
}

/* Root deployment override: premium VANTORA login */
body.auth-locked {
  background: #f7faf8;
}

body.auth-locked .login-screen {
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  background:
    linear-gradient(90deg, rgba(247, 250, 248, 0.98) 0%, rgba(247, 250, 248, 0.92) 44%, rgba(247, 250, 248, 0.55) 70%, rgba(247, 250, 248, 0.18) 100%),
    linear-gradient(rgba(0, 107, 79, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 107, 79, 0.055) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  background-position: center;
}

body.auth-locked .login-panel {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(420px, 0.88fr);
  border: 0;
  box-shadow: none;
  background: transparent;
}

body.auth-locked .login-hero {
  padding: clamp(36px, 5vw, 72px);
  border-right: 0;
  background: transparent;
}

body.auth-locked .login-hero::after {
  opacity: 0;
}

body.auth-locked .login-logo {
  width: min(300px, 82%);
}

body.auth-locked .login-brand-block p {
  margin-top: 18px;
  color: #008f68;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

body.auth-locked .login-hero-copy {
  max-width: 760px;
  padding: 66px 0 44px;
}

body.auth-locked .login-hero-copy .eyebrow,
body.auth-locked .login-card .eyebrow {
  color: #008f68;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

body.auth-locked .login-hero-copy h1 {
  max-width: 760px;
  margin: 16px 0 26px;
  color: #061c16;
  font-size: clamp(58px, 7.2vw, 116px);
  line-height: 0.9;
  letter-spacing: -0.045em;
}

body.auth-locked .login-hero-copy p:last-child {
  max-width: 680px;
  color: #61736e;
  font-size: clamp(18px, 1.8vw, 25px);
  line-height: 1.8;
}

body.auth-locked .login-proof-grid {
  width: min(760px, 100%);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #dbe7e2;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(12px);
}

body.auth-locked .login-proof-grid span {
  min-height: 88px;
  padding: 20px 22px;
  color: #061c16;
  font-size: 13px;
}

body.auth-locked .login-card-stack {
  align-content: center;
  gap: 18px;
  padding: clamp(24px, 4.4vw, 64px);
  background: rgba(255, 255, 255, 0.86);
  border-left: 1px solid rgba(219, 231, 226, 0.86);
  backdrop-filter: blur(18px);
}

body.auth-locked .login-language-switch button {
  min-width: 56px;
  min-height: 42px;
}

body.auth-locked .login-language-switch button.active {
  background: #061c16;
  color: #fff;
}

body.auth-locked .login-card {
  border: 1px solid #dbe7e2;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(6, 28, 22, 0.1);
}

body.auth-locked .login-card h2 {
  color: #061c16;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.035em;
}

body.auth-locked .identity-grid {
  grid-template-columns: 1fr;
}

body.auth-locked .identity-card {
  position: relative;
  min-height: 92px;
  padding: 22px 22px 22px 76px;
  border-color: #dbe7e2;
  background: #fff;
}

body.auth-locked .identity-card::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 26px;
  width: 28px;
  height: 28px;
  border: 2px solid #008f68;
  border-radius: 999px;
  box-shadow: inset 0 0 0 8px #fff, 0 0 0 1px rgba(0, 143, 104, 0.18);
}

body.auth-locked .identity-card:hover {
  border-color: #008f68;
  transform: translateY(-2px);
}

body.auth-locked .login-card input,
body.auth-locked .login-card select {
  height: 54px;
  border-radius: 0;
  border-color: #dbe7e2;
}

body.auth-locked .primary-action,
body.auth-locked .secondary-action {
  border-radius: 0;
  min-height: 50px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

body.auth-locked .primary-action {
  background: #061c16;
  border-color: #061c16;
}

body.auth-locked .secondary-action {
  border-color: #061c16;
  color: #061c16;
}

@media (max-width: 980px) {
  body.auth-locked .login-panel {
    grid-template-columns: 1fr;
  }

  body.auth-locked .login-card-stack {
    border-left: 0;
  }
}

@media (max-width: 640px) {
  body.auth-locked .login-hero-copy h1 {
    font-size: clamp(42px, 14vw, 68px);
  }

  body.auth-locked .login-proof-grid {
    grid-template-columns: 1fr;
  }
}

/* FINAL: selected marketplace hub landing */
body.auth-locked .login-screen {
  position: fixed;
  inset: 0;
  display: block;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  background: linear-gradient(180deg, #fff 0%, #f7fbfa 100%);
}

body.auth-locked .public-nav {
  height: 92px;
  padding: 0 clamp(24px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(190px, 240px) 1fr auto;
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(7, 45, 37, 0.12);
  backdrop-filter: blur(14px);
}

body.auth-locked .public-logo img {
  width: 220px;
  max-width: 100%;
}

body.auth-locked .public-links {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2.25vw, 42px);
}

body.auth-locked .public-links a {
  white-space: nowrap;
  font-size: clamp(13px, 0.9vw, 15px);
  line-height: 1.2;
  letter-spacing: 0;
  font-weight: 850;
  color: #172d27;
}

body.auth-locked .public-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

body.auth-locked .public-actions a,
body.auth-locked .trust-cta-row a {
  min-height: 48px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
}

body.auth-locked .public-register {
  color: #fff;
  background: #f25a00;
  border: 1px solid #f25a00;
  box-shadow: 0 10px 22px rgba(242, 90, 0, 0.18);
}

body.auth-locked .public-login {
  color: #fff;
  background: #021f1a;
  border: 1px solid #021f1a;
}

body.auth-locked .login-panel {
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 92px);
  margin: 0;
  padding: clamp(38px, 4vw, 64px) clamp(24px, 4vw, 64px) 34px;
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(520px, 1.18fr) minmax(330px, 0.82fr);
  gap: clamp(24px, 3.2vw, 56px);
  align-items: center;
  border: 0;
  box-shadow: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,.76) 56%, rgba(255,255,255,.96)),
    linear-gradient(rgba(4,55,44,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(4,55,44,.07) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
}

body.auth-locked .login-hero {
  display: contents;
  padding: 0;
  background: transparent;
}

body.auth-locked .login-brand-block,
body.auth-locked .login-proof-grid,
body.auth-locked .access-actions,
body.auth-locked .login-hero::after {
  display: none;
}

body.auth-locked .login-hero-copy {
  grid-column: 1;
  max-width: 440px;
  padding: 0;
}

body.auth-locked .login-hero-copy .eyebrow {
  margin: 0 0 20px;
  color: #008c68;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 900;
}

body.auth-locked .login-hero-copy h1 {
  margin: 0;
  max-width: 440px;
  color: #041d18;
  font-size: clamp(42px, 5vw, 78px);
  line-height: 1.06;
  letter-spacing: 0;
  font-weight: 950;
}

body.auth-locked .login-hero-copy p:last-child {
  margin: 28px 0 0;
  color: #51625d;
  font-size: clamp(17px, 1.35vw, 22px);
  line-height: 1.8;
  font-weight: 600;
}

body.auth-locked .hero-benefits {
  grid-column: 1;
  display: grid;
  gap: 22px;
  margin-top: 18px;
}

body.auth-locked .hero-benefits span {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 18px;
  color: #31423d;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 800;
}

body.auth-locked [data-icon] {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #eaf4f1;
  color: #006f55;
  border: 1px solid rgba(0,111,85,.14);
}

body.auth-locked [data-icon]::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 3px solid currentColor;
  border-radius: 4px;
}

body.auth-locked [data-icon="trust"]::before,
body.auth-locked [data-icon="shield"]::before {
  border-radius: 50% 50% 44% 44%;
  border-top-width: 4px;
}

body.auth-locked [data-icon="visible"]::before,
body.auth-locked [data-icon="global"]::before {
  border-radius: 50%;
}

body.auth-locked [data-icon="secure"]::before {
  border-radius: 4px;
  border-top: 7px solid currentColor;
}

body.auth-locked [data-icon="people"]::before {
  border-radius: 50%;
  box-shadow: -11px 8px 0 -5px currentColor, 11px 8px 0 -5px currentColor;
}

body.auth-locked .ecosystem-visual {
  grid-column: 2;
  grid-row: 1 / span 3;
  width: min(100%, 680px);
  aspect-ratio: 1.05;
  margin: 0 auto;
  position: relative;
  border: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(3,43,35,.08), transparent 35%),
    radial-gradient(circle at 55% 45%, rgba(0,151,109,.1), transparent 29%);
  box-shadow: none;
}

body.auth-locked .ecosystem-visual::before {
  content: "";
  position: absolute;
  inset: 10% 7% 8% 13%;
  opacity: .24;
  background-image: radial-gradient(#57736c 1.25px, transparent 1.25px);
  background-size: 8px 8px;
  clip-path: polygon(47% 1%,69% 7%,77% 22%,67% 34%,78% 46%,65% 61%,74% 77%,58% 95%,44% 83%,28% 94%,20% 77%,7% 66%,20% 53%,11% 37%,27% 26%,31% 11%);
}

body.auth-locked .ecosystem-orbit {
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  border: 1px solid rgba(0,111,85,.2);
  animation: orbitPulse 5.4s ease-in-out infinite;
}

body.auth-locked .orbit-two {
  inset: 25%;
  border-color: rgba(226,18,39,.18);
  animation-delay: 1s;
}

body.auth-locked .ecosystem-hub {
  position: absolute;
  inset: 36%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #12614f, #021f1a 72%);
  color: #fff;
  display: grid;
  place-items: center;
  align-content: center;
  box-shadow: 0 26px 58px rgba(2,31,26,.22);
  z-index: 3;
}

body.auth-locked .ecosystem-hub strong {
  font-size: clamp(22px, 2.2vw, 33px);
  line-height: 1;
  letter-spacing: .05em;
}

body.auth-locked .ecosystem-hub span {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 900;
  opacity: .9;
}

body.auth-locked .ecosystem-node {
  position: absolute;
  width: clamp(124px, 12vw, 150px);
  min-height: 116px;
  padding: 20px 16px;
  border-radius: 50%;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(6,62,51,.14);
  box-shadow: 0 18px 36px rgba(3,47,38,.08);
  color: #082922;
  display: grid;
  place-items: center;
  text-align: center;
  align-content: center;
  z-index: 4;
}

body.auth-locked .ecosystem-node b {
  display: block;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 950;
}

body.auth-locked .ecosystem-node small {
  display: block;
  margin-top: 6px;
  color: #51625d;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 800;
}

body.auth-locked .node-source { top: 2%; left: 28%; }
body.auth-locked .node-grid { top: 2%; right: 19%; }
body.auth-locked .node-capital { top: 41%; right: 3%; }
body.auth-locked .node-exec { bottom: 4%; right: 18%; }
body.auth-locked .node-data { bottom: 4%; left: 24%; }
body.auth-locked .node-equipment { top: 42%; left: 2%; }

body.auth-locked .login-card-stack {
  grid-column: 3;
  grid-row: 1 / span 3;
  align-self: center;
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 0;
  background: transparent;
  border-left: 0;
  backdrop-filter: none;
}

body.auth-locked .login-topline {
  order: 2;
  justify-content: flex-end;
}

body.auth-locked .login-topline > span {
  display: none;
}

body.auth-locked .role-entry-card {
  order: 1;
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid rgba(6,62,51,.14);
  background: rgba(255,255,255,.94);
  border-radius: 6px;
  box-shadow: 0 24px 50px rgba(3,47,38,.08);
}

body.auth-locked .role-entry-card .eyebrow,
body.auth-locked .role-entry-card .muted {
  display: none;
}

body.auth-locked .role-entry-card h2 {
  margin: 0 0 26px;
  color: #172d27;
  font-size: clamp(22px, 1.7vw, 28px);
  line-height: 1.35;
  font-weight: 950;
  letter-spacing: 0;
}

body.auth-locked .identity-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

body.auth-locked .identity-card {
  position: relative;
  min-height: 86px;
  padding: 18px 52px 18px 76px;
  border: 1px solid rgba(0,127,96,.18);
  border-radius: 5px;
  background: linear-gradient(90deg, #fbfffd, #fff);
  text-align: left;
  color: #09241f;
}

body.auth-locked .identity-card:nth-child(2) {
  border-color: rgba(0,85,160,.2);
  background: linear-gradient(90deg, #f6fbff, #fff);
}

body.auth-locked .identity-card:nth-child(3) {
  border-color: rgba(242,90,0,.22);
  background: linear-gradient(90deg, #fffaf5, #fff);
}

body.auth-locked .identity-card::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 50%;
  width: 32px;
  height: 32px;
  transform: translateY(-50%);
  border: 3px solid #007f60;
  border-radius: 6px;
  box-shadow: none;
}

body.auth-locked .identity-card:nth-child(2)::before {
  border-color: #0055a0;
  border-radius: 50%;
}

body.auth-locked .identity-card:nth-child(3)::before {
  border-color: #e9781f;
  border-radius: 2px;
}

body.auth-locked .identity-card::after {
  content: "›";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: #007f60;
  font-size: 36px;
  line-height: 1;
  font-weight: 400;
}

body.auth-locked .identity-card strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 950;
}

body.auth-locked .identity-card span {
  display: block;
  margin-top: 5px;
  color: #465955;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 800;
}

body.auth-locked .role-note {
  margin: 18px 0 0;
  color: #66746f;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 800;
  text-align: center;
}

body.auth-locked #loginForm,
body.auth-locked #registerForm {
  display: none;
  order: 3;
  scroll-margin-top: 110px;
}

body.auth-locked #loginForm:target,
body.auth-locked #registerForm:target {
  display: grid;
}

body.auth-locked .trust-section {
  padding: 34px clamp(24px, 4vw, 64px) 56px;
  border-top: 1px solid rgba(7,45,37,.12);
  background: #fff;
}

body.auth-locked .trust-wrap {
  max-width: 1480px;
  margin: 0 auto;
}

body.auth-locked .trust-section h2 {
  margin: 0 0 24px;
  text-align: center;
  color: #213b35;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.2;
  font-weight: 950;
  letter-spacing: .04em;
}

body.auth-locked .partner-logo-row {
  display: grid;
  grid-template-columns: repeat(8, minmax(88px, 1fr));
  gap: 18px;
  align-items: center;
  opacity: .72;
}

body.auth-locked .partner-logo-row span {
  min-height: 52px;
  display: grid;
  place-items: center;
  align-content: center;
  color: #6b7474;
  font-size: clamp(16px, 1.4vw, 26px);
  font-weight: 950;
  line-height: 1;
  filter: grayscale(1);
}

body.auth-locked .partner-logo-row small {
  margin-top: 6px;
  color: #7d8787;
  font-size: 10px;
  line-height: 1.1;
  font-weight: 800;
}

body.auth-locked .trust-feature-strip {
  margin-top: 28px;
  border: 1px solid rgba(6,62,51,.12);
  border-radius: 6px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fbfdfc;
}

body.auth-locked .trust-feature-strip article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 18px 24px;
  align-items: center;
  border-right: 1px solid rgba(6,62,51,.1);
}

body.auth-locked .trust-feature-strip article:last-child {
  border-right: 0;
}

body.auth-locked .trust-feature-strip i {
  grid-row: 1 / span 2;
}

body.auth-locked .trust-feature-strip strong,
body.auth-locked .trust-feature-strip span {
  grid-column: 2;
}

body.auth-locked .trust-feature-strip strong {
  color: #172d27;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 950;
}

body.auth-locked .trust-feature-strip span {
  color: #66746f;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 750;
}

body.auth-locked .trust-cta-row {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

body.auth-locked .trust-outline {
  color: #071f1a;
  background: #fff;
  border: 1px solid rgba(7,31,26,.42);
}

@keyframes orbitPulse {
  0%, 100% { transform: scale(1); opacity: .75; }
  50% { transform: scale(1.035); opacity: 1; }
}

@media (max-width: 1180px) {
  body.auth-locked .public-nav { grid-template-columns: 190px 1fr; }
  body.auth-locked .public-links { display: none; }
  body.auth-locked .public-actions { justify-self: end; }
  body.auth-locked .login-panel { grid-template-columns: 1fr; min-height: 0; }
  body.auth-locked .login-hero-copy,
  body.auth-locked .hero-benefits,
  body.auth-locked .ecosystem-visual,
  body.auth-locked .login-card-stack {
    grid-column: 1;
    grid-row: auto;
  }
  body.auth-locked .ecosystem-visual { width: min(100%, 620px); }
  body.auth-locked .login-card-stack { width: min(100%, 620px); margin: 0 auto; }
  body.auth-locked .partner-logo-row { grid-template-columns: repeat(4, 1fr); }
  body.auth-locked .trust-feature-strip { grid-template-columns: 1fr; }
  body.auth-locked .trust-feature-strip article {
    border-right: 0;
    border-bottom: 1px solid rgba(6,62,51,.1);
  }
  body.auth-locked .trust-feature-strip article:last-child { border-bottom: 0; }
}

@media (max-width: 640px) {
  body.auth-locked .public-nav {
    height: auto;
    padding: 18px;
    grid-template-columns: 1fr;
  }
  body.auth-locked .public-logo img { width: 190px; }
  body.auth-locked .public-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  body.auth-locked .public-actions a {
    padding: 0 12px;
    min-height: 44px;
    font-size: 13px;
  }
  body.auth-locked .login-panel {
    padding: 28px 18px;
    gap: 28px;
  }
  body.auth-locked .login-hero-copy h1 { font-size: 42px; }
  body.auth-locked .ecosystem-visual { aspect-ratio: .88; }
  body.auth-locked .ecosystem-node {
    width: 112px;
    min-height: 92px;
    padding: 14px 10px;
  }
  body.auth-locked .ecosystem-node b { font-size: 12px; }
  body.auth-locked .ecosystem-node small { font-size: 10px; }
  body.auth-locked .partner-logo-row { grid-template-columns: repeat(2, 1fr); }
}

/* FINAL QA polish: production marketplace composition */
body.auth-locked .login-screen {
  background:
    radial-gradient(circle at 50% 34%, rgba(0, 128, 96, 0.08), transparent 38rem),
    linear-gradient(180deg, #ffffff 0%, #f8fbfa 100%);
}

body.auth-locked .public-nav {
  position: relative;
  height: 88px;
  padding: 0 clamp(28px, 3.8vw, 56px);
  grid-template-columns: 220px minmax(0, 1fr) minmax(240px, auto);
  max-width: 1600px;
  margin: 0 auto;
  border-bottom: 0;
}

body.auth-locked .public-nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(7, 45, 37, 0.12);
}

body.auth-locked .public-links {
  display: none;
}

body.auth-locked .public-links a {
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

body.auth-locked .public-actions a {
  min-width: 132px;
  min-height: 46px;
  padding: 0 24px;
}

body.auth-locked .public-nav {
  grid-template-columns: 220px 1fr auto;
}

body.auth-locked .public-actions {
  grid-column: 3;
  justify-self: end;
}

@media (max-width: 1440px) {
  body.auth-locked .public-nav {
    grid-template-columns: 200px 1fr minmax(220px, auto);
    gap: 24px;
  }

  body.auth-locked .public-logo img {
    width: 190px;
  }

  body.auth-locked .public-actions {
    gap: 10px;
  }

  body.auth-locked .public-actions a {
    min-width: 112px;
    padding: 0 18px;
    font-size: 13px;
  }
}

body.auth-locked .login-panel {
  max-width: 1600px;
  min-height: 610px;
  margin: 0 auto;
  padding: 46px clamp(28px, 3.8vw, 56px) 40px;
  grid-template-columns: minmax(300px, 360px) minmax(520px, 640px) minmax(330px, 390px);
  gap: clamp(28px, 3.2vw, 54px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.78) 58%, rgba(255, 255, 255, 0.98) 100%),
    linear-gradient(rgba(4, 55, 44, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(4, 55, 44, 0.055) 1px, transparent 1px);
  background-size: auto, 52px 52px, 52px 52px;
}

body.auth-locked .login-hero-copy {
  align-self: center;
}

body.auth-locked .login-hero-copy .eyebrow {
  margin-bottom: 18px;
  font-size: 13px;
  letter-spacing: 0.07em;
}

body.auth-locked .login-hero-copy h1 {
  max-width: 360px;
  font-size: clamp(43px, 4.25vw, 66px);
  line-height: 1.08;
  font-weight: 950;
}

body.auth-locked .login-hero-copy p:last-child {
  margin-top: 24px;
  max-width: 360px;
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.85;
}

body.auth-locked .hero-benefits {
  align-self: start;
  margin-top: 10px;
  gap: 18px;
}

body.auth-locked .hero-benefits span {
  grid-template-columns: 44px 1fr;
  gap: 16px;
  font-size: 14px;
}

body.auth-locked [data-icon] {
  width: 44px;
  height: 44px;
}

body.auth-locked .ecosystem-visual {
  width: min(100%, 620px);
  aspect-ratio: 1.08;
  filter: drop-shadow(0 22px 44px rgba(3, 47, 38, 0.08));
}

body.auth-locked .ecosystem-visual::before {
  inset: 7% 5% 5% 9%;
  opacity: 0.3;
  background-size: 7px 7px;
}

body.auth-locked .ecosystem-visual::after {
  content: "";
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 0 20%, rgba(0, 127, 96, 0.42) 20% 80%, transparent 80%),
    linear-gradient(0deg, transparent 0 20%, rgba(0, 127, 96, 0.42) 20% 80%, transparent 80%);
  mask: radial-gradient(circle, transparent 0 29%, #000 30% 31%, transparent 32% 100%);
  opacity: 0.58;
  z-index: 1;
}

body.auth-locked .ecosystem-orbit {
  inset: 12%;
  border-color: rgba(0, 127, 96, 0.22);
}

body.auth-locked .orbit-two {
  inset: 24%;
}

body.auth-locked .ecosystem-hub {
  inset: 35.5%;
  z-index: 5;
}

body.auth-locked .ecosystem-node {
  width: clamp(112px, 9vw, 132px);
  min-height: 104px;
  padding: 18px 13px;
  border-color: rgba(6, 62, 51, 0.18);
  z-index: 6;
}

body.auth-locked .ecosystem-node b {
  font-size: 13px;
}

body.auth-locked .ecosystem-node small {
  font-size: 10px;
}

body.auth-locked .node-source { top: 1%; left: 30%; }
body.auth-locked .node-grid { top: 2%; right: 18%; }
body.auth-locked .node-capital { top: 41%; right: 2%; }
body.auth-locked .node-exec { bottom: 5%; right: 17%; }
body.auth-locked .node-data { bottom: 5%; left: 24%; }
body.auth-locked .node-equipment { top: 42%; left: 1%; }

body.auth-locked .role-entry-card {
  padding: 30px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 46px rgba(3, 47, 38, 0.09);
}

body.auth-locked .role-entry-card h2 {
  margin-bottom: 22px;
  font-size: 22px;
  line-height: 1.45;
}

body.auth-locked .identity-card {
  min-height: 82px;
  padding: 16px 48px 16px 70px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

body.auth-locked .identity-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(3, 47, 38, 0.08);
}

body.auth-locked .identity-card::before {
  left: 20px;
  width: 30px;
  height: 30px;
}

body.auth-locked .identity-card strong {
  font-size: 14px;
}

body.auth-locked .identity-card span {
  font-size: 11px;
}

body.auth-locked .login-topline {
  margin-top: 8px;
}

body.auth-locked .trust-section {
  padding-top: 36px;
}

body.auth-locked .trust-wrap {
  max-width: 1400px;
}

body.auth-locked .trust-section h2 {
  margin-bottom: 22px;
  font-size: 24px;
  letter-spacing: 0.04em;
}

body.auth-locked .partner-logo-row {
  gap: 12px;
}

body.auth-locked .partner-logo-row span {
  min-height: 46px;
  font-size: clamp(15px, 1.15vw, 22px);
  color: #7b8585;
}

body.auth-locked .trust-feature-strip {
  margin: 24px auto 0;
  max-width: 1260px;
}

body.auth-locked .trust-feature-strip article {
  padding: 16px 22px;
}

body.auth-locked .trust-cta-row {
  margin-top: 26px;
}

@media (max-width: 1360px) {
  body.auth-locked .public-links {
    gap: 20px;
  }

  body.auth-locked .login-panel {
    grid-template-columns: minmax(280px, 340px) minmax(460px, 1fr) minmax(320px, 360px);
    gap: 28px;
  }

  body.auth-locked .ecosystem-node {
    width: 112px;
  }
}

@media (max-width: 640px) {
  body.auth-locked .public-nav {
    height: auto;
    padding: 18px 22px;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body.auth-locked .public-logo img {
    width: 190px;
  }

  body.auth-locked .public-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    justify-self: stretch;
  }

  body.auth-locked .public-actions a {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0 10px;
    font-size: 13px;
  }

  body.auth-locked .login-panel {
    padding: 34px 28px 32px;
    gap: 30px;
    background:
      linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.94)),
      linear-gradient(rgba(4, 55, 44, 0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(4, 55, 44, 0.05) 1px, transparent 1px);
    background-size: auto, 48px 48px, 48px 48px;
  }

  body.auth-locked .login-hero-copy h1 {
    max-width: 100%;
    font-size: 42px;
    line-height: 1.1;
  }

  body.auth-locked .login-hero-copy p:last-child {
    font-size: 15px;
  }

  body.auth-locked .hero-benefits {
    gap: 16px;
  }

  body.auth-locked .hero-benefits span {
    grid-template-columns: 42px 1fr;
    gap: 14px;
    font-size: 13px;
  }

  body.auth-locked [data-icon] {
    width: 42px;
    height: 42px;
  }

  body.auth-locked .ecosystem-visual {
    width: 100%;
    min-height: 500px;
    aspect-ratio: auto;
    margin-top: 4px;
  }

  body.auth-locked .ecosystem-visual::before {
    inset: 7% 5% 39%;
    opacity: 0.22;
  }

  body.auth-locked .ecosystem-visual::after,
  body.auth-locked .ecosystem-orbit {
    display: none;
  }

  body.auth-locked .ecosystem-hub {
    inset: 16px auto auto 50%;
    width: 158px;
    height: 158px;
    transform: translateX(-50%);
  }

  body.auth-locked .ecosystem-hub strong {
    font-size: 24px;
  }

  body.auth-locked .ecosystem-node {
    width: calc(50% - 8px);
    min-height: 86px;
    border-radius: 10px;
    padding: 14px 10px;
  }

  body.auth-locked .ecosystem-node b {
    font-size: 12px;
  }

  body.auth-locked .ecosystem-node small {
    font-size: 10px;
  }

  body.auth-locked .node-source { top: 210px; left: 0; }
  body.auth-locked .node-grid { top: 210px; right: 0; }
  body.auth-locked .node-equipment { top: 306px; left: 0; }
  body.auth-locked .node-capital { top: 306px; right: 0; }
  body.auth-locked .node-data { top: 402px; left: 0; }
  body.auth-locked .node-exec { top: 402px; right: 0; }

  body.auth-locked .role-entry-card {
    padding: 24px;
  }

  body.auth-locked .trust-section {
    padding: 32px 28px 44px;
  }

  body.auth-locked .partner-logo-row {
    grid-template-columns: repeat(2, 1fr);
  }

  body.auth-locked .trust-feature-strip {
    grid-template-columns: 1fr;
  }
}
