:root {
  color-scheme: light;
  --ink: #102a43;
  --body: #334155;
  --muted: #64748b;
  --line: #dfe8ee;
  --paper: #ffffff;
  --page: #f5fbfa;
  --soft: #eefbf8;
  --teal: #12bfb3;
  --teal-dark: #008f86;
  --blue: #2b73d6;
  --gold: #ffb020;
  --red: #ef4444;
  --shadow: 0 18px 44px rgba(15, 42, 67, 0.1);
  --shadow-soft: 0 10px 28px rgba(15, 42, 67, 0.07);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(135deg, #f7fbfb 0%, #eefaf8 100%);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

button {
  font: inherit;
  cursor: pointer;
}

input,
textarea {
  font: inherit;
}

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

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

.admin-shell[hidden],
.login-screen[hidden] {
  display: none;
}

.login-screen {
  min-height: 100vh;
  padding: clamp(22px, 4vw, 48px);
  display: grid;
  place-items: center;
}

.login-card {
  width: 100%;
  max-width: 520px;
  display: grid;
  gap: 18px;
}

.login-brand {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  font-weight: 820;
  white-space: nowrap;
}

.login-brand img {
  width: 104px;
}

.sidebar {
  min-width: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-right: 1px solid rgba(223, 232, 238, 0.82);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  min-height: 42px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 780;
}

.brand img {
  width: 88px;
}

.sidebar-nav {
  display: grid;
  gap: 18px;
}

.sidebar-nav__group {
  display: grid;
  gap: 7px;
}

.sidebar-nav__label {
  padding: 0 6px;
  color: #8aa0b5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.sidebar-nav__item {
  width: 100%;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
}

.sidebar-nav__item:hover,
.sidebar-nav__item.is-active {
  color: var(--teal-dark);
  border-color: rgba(18, 191, 179, 0.24);
  background: rgba(18, 191, 179, 0.09);
}

.sidebar-card {
  margin-top: auto;
  padding: 15px;
  border: 1px solid rgba(18, 191, 179, 0.22);
  border-radius: 8px;
  background: #f2fffc;
}

.sidebar-card span,
.sidebar-card strong {
  display: block;
}

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

.sidebar-card strong {
  margin-top: 4px;
  color: var(--teal-dark);
  font-size: 16px;
}

.sidebar-card p {
  margin: 8px 0 0;
  color: var(--body);
  font-size: 13px;
}

.workspace {
  min-width: 0;
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 28px clamp(22px, 4vw, 48px) 56px;
}

.topbar {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 820;
  line-height: 1.35;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.12;
  font-weight: 840;
}

h2 {
  margin-bottom: 0;
  font-size: 25px;
  line-height: 1.2;
  font-weight: 820;
}

h3 {
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
}

.topbar__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.env-pill,
.admin-user,
.access-note,
.session-trust {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  color: var(--body);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.env-pill {
  color: var(--teal-dark);
  border-color: rgba(18, 191, 179, 0.26);
  background: rgba(18, 191, 179, 0.1);
}

.access-note {
  color: #8a5c00;
  border-color: rgba(255, 176, 32, 0.28);
  background: rgba(255, 176, 32, 0.11);
}

.session-trust {
  color: var(--teal-dark);
  border-color: rgba(18, 191, 179, 0.28);
  background: rgba(18, 191, 179, 0.09);
}

.notice-panel {
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid rgba(18, 191, 179, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.auth-panel {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(18, 191, 179, 0.2);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 18px;
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.login-screen .auth-panel {
  margin-bottom: 0;
  padding: clamp(24px, 4vw, 34px);
  grid-template-columns: 1fr;
  box-shadow: var(--shadow);
}

.login-screen h1 {
  margin-bottom: 10px;
  font-size: 31px;
}

.auth-panel[hidden] {
  display: none;
}

.auth-panel p {
  margin-bottom: 0;
  color: var(--body);
}

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

.auth-form label,
.review-note-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.auth-form label > small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.auth-form input,
.review-note-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

.auth-form input {
  height: 42px;
  padding: 0 12px;
}

.review-note-field textarea {
  min-height: 108px;
  padding: 12px;
  resize: vertical;
}

.auth-form input:focus,
.review-note-field textarea:focus {
  border-color: rgba(18, 191, 179, 0.58);
  box-shadow: 0 0 0 3px rgba(18, 191, 179, 0.12);
}

.auth-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 10px;
}

.sensitive-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 122px;
  gap: 10px;
}

.sensitive-code-field input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

.sensitive-code-field input:focus {
  border-color: rgba(18, 191, 179, 0.58);
  box-shadow: 0 0 0 3px rgba(18, 191, 179, 0.12);
}

.sensitive-code-field small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.auth-form label.remember-device {
  margin-top: 2px;
  padding: 12px;
  border: 1px solid rgba(18, 191, 179, 0.18);
  border-radius: 8px;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: flex-start;
  gap: 10px;
  color: var(--body);
  background: rgba(18, 191, 179, 0.06);
}

.auth-form label.remember-device input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--teal);
}

.remember-device span {
  display: grid;
  gap: 2px;
}

.remember-device strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.remember-device small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
  line-height: 1.45;
}

.primary-action,
.secondary-action,
.danger-action,
.muted-action {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 820;
}

.primary-action {
  border: 1px solid var(--teal);
  color: #ffffff;
  background: var(--teal);
  box-shadow: 0 12px 24px rgba(18, 191, 179, 0.18);
}

.secondary-action {
  border: 1px solid rgba(18, 191, 179, 0.28);
  color: var(--teal-dark);
  background: rgba(18, 191, 179, 0.08);
}

.danger-action {
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #b4232a;
  background: rgba(239, 68, 68, 0.08);
}

.muted-action {
  border: 1px solid var(--line);
  color: var(--body);
  background: #ffffff;
}

.primary-action:disabled,
.secondary-action:disabled,
.danger-action:disabled,
.muted-action:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.message-bar {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 70;
  width: min(420px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid rgba(18, 191, 179, 0.22);
  border-radius: 8px;
  color: var(--body);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  font-weight: 700;
}

.message-bar.is-error {
  border-color: rgba(239, 68, 68, 0.26);
  color: #9f1d24;
  background: #fff7f7;
}

.notice-panel strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.notice-panel p {
  margin-bottom: 0;
  color: var(--body);
}

.notice-panel > span {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: rgba(18, 191, 179, 0.1);
  font-size: 12px;
  font-weight: 800;
}

.admin-section {
  display: none;
}

.admin-section.is-active {
  display: block;
}

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

.section-head > p {
  width: min(520px, 50%);
  margin-bottom: 0;
  color: var(--muted);
  text-align: right;
}

.section-subhead {
  margin: 22px 0 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.section-subhead > p {
  width: min(520px, 50%);
  margin-bottom: 0;
  color: var(--muted);
  text-align: right;
}

.section-subhead--compact {
  margin-top: 0;
}

.module-section-nav {
  margin: 0 0 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.module-section-nav__card {
  min-height: 116px;
  padding: 16px;
  border: 1px solid rgba(223, 232, 238, 0.92);
  border-radius: 8px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 12px;
  color: var(--body);
  background: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.module-section-nav__card span {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--teal-dark);
  background: rgba(18, 191, 179, 0.1);
  font-size: 12px;
  font-weight: 900;
  grid-row: span 3;
}

.module-section-nav__card strong,
.module-section-nav__card small,
.module-section-nav__card em {
  min-width: 0;
  display: block;
}

.module-section-nav__card strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.2;
}

.module-section-nav__card small {
  color: var(--body);
  font-size: 12px;
  font-weight: 850;
}

.module-section-nav__card em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 720;
  line-height: 1.45;
}

.module-section-nav__card:hover,
.module-section-nav__card:focus-visible {
  border-color: rgba(18, 191, 179, 0.34);
  transform: translateY(-1px);
  outline: none;
}

.module-section-nav__card--data {
  background: linear-gradient(135deg, rgba(232, 252, 249, 0.96), rgba(255, 255, 255, 0.92));
}

.module-section-nav__card--list {
  background: linear-gradient(135deg, rgba(246, 249, 252, 0.98), rgba(255, 255, 255, 0.92));
}

.module-section-nav__card--function {
  background: linear-gradient(135deg, rgba(255, 247, 223, 0.92), rgba(255, 255, 255, 0.92));
}

.module-section-nav__card--function span {
  color: #8a5c00;
  background: rgba(255, 176, 32, 0.16);
}

.module-workbench-section {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(223, 232, 238, 0.92);
  border-radius: 12px;
  scroll-margin-top: 18px;
}

.module-workbench-section--data {
  background: linear-gradient(135deg, rgba(232, 252, 249, 0.82), rgba(255, 255, 255, 0.66));
}

.module-workbench-section--list {
  background: linear-gradient(135deg, rgba(248, 251, 253, 0.92), rgba(255, 255, 255, 0.72));
}

.module-workbench-section--function {
  border-color: rgba(255, 176, 32, 0.24);
  background: linear-gradient(135deg, rgba(255, 248, 230, 0.72), rgba(255, 255, 255, 0.72));
}

.module-workbench-section__head {
  margin-bottom: 14px;
}

.module-workbench-section__title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.module-workbench-section__index {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--teal-dark);
  background: rgba(18, 191, 179, 0.1);
  font-size: 13px;
  font-weight: 900;
}

.module-workbench-section--function .module-workbench-section__index {
  color: #8a5c00;
  background: rgba(255, 176, 32, 0.16);
}

.section-head-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.section-head-meta p {
  width: min(560px, 100%);
  margin: 0;
  color: var(--muted);
  text-align: right;
}

.section-rule-row {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.section-rule-row span {
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: rgba(18, 191, 179, 0.1);
  font-size: 12px;
  font-weight: 850;
}

.module-workbench-section--function .section-rule-row span {
  color: #8a5c00;
  background: rgba(255, 176, 32, 0.14);
}

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

.status-card,
.metric-card,
.module-card,
.panel {
  border: 1px solid rgba(223, 232, 238, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.status-card {
  min-height: 138px;
  padding: 18px;
}

.metric-card {
  min-height: 132px;
  padding: 18px;
}

.status-card span,
.metric-card span,
.module-card__status {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: rgba(18, 191, 179, 0.1);
  font-size: 12px;
  font-weight: 800;
}

.status-card strong {
  display: block;
  margin-top: 16px;
  font-size: 23px;
  line-height: 1.15;
}

.metric-card strong {
  display: block;
  margin-top: 14px;
  font-size: 26px;
  line-height: 1.12;
}

.status-card p {
  margin: 8px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.metric-card p {
  margin: 8px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.metric-card b {
  color: var(--ink);
  font-weight: 820;
}

.baoflow-governance-panel {
  margin-top: 14px;
  overflow: hidden;
}

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

.baoflow-governance-list article {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(207, 220, 228, 0.82);
  border-radius: 7px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  background: rgba(248, 251, 252, 0.84);
}

.baoflow-governance-list strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.baoflow-governance-list p,
.baoflow-governance-note {
  margin: 5px 0 0;
  color: var(--muted);
}

.baoflow-governance-list article > span {
  padding: 5px 8px;
  border-radius: 5px;
  color: #805b12;
  background: #fff4d7;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.baoflow-governance-note {
  padding-top: 12px;
  border-top: 1px solid rgba(207, 220, 228, 0.72);
  font-size: 12px;
}

.baoflow-operation-jump {
  text-decoration: none;
}

.baoflow-audit-table__head {
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 1fr 1.2fr 1fr 0.7fr;
  gap: 10px;
  color: var(--muted);
  background: rgba(245, 249, 251, 0.9);
  font-size: 11px;
  font-weight: 850;
}

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

.stats-window {
  margin-bottom: 14px;
}

.stats-window__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.stats-window__head p {
  margin-bottom: 0;
  color: var(--muted);
}

.range-control {
  min-width: min(560px, 100%);
  padding: 5px;
  border: 1px solid rgba(223, 232, 238, 0.92);
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  background: rgba(248, 253, 252, 0.88);
}

.range-control button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--body);
  background: transparent;
  font-size: 13px;
  font-weight: 820;
}

.range-control button:hover,
.range-control button.is-active {
  color: var(--teal-dark);
  border-color: rgba(18, 191, 179, 0.26);
  background: rgba(18, 191, 179, 0.1);
}

.custom-range {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(223, 232, 238, 0.82);
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.custom-range[hidden] {
  display: none;
}

.custom-range label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.custom-range input {
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

.window-chip {
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(43, 115, 214, 0.1);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.baoflow-analytics-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.7fr);
  gap: 14px;
}

.baoflow-analytics-grid > .panel {
  min-width: 0;
  overflow: hidden;
}

.trend-stack {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.trend-stack h4 {
  margin: 0 0 10px;
  color: var(--body);
  font-size: 14px;
}

.trend-stack section {
  min-width: 0;
}

.chart-empty,
.table-empty {
  min-height: 120px;
  padding: 22px;
  border: 1px dashed rgba(18, 191, 179, 0.28);
  border-radius: 8px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: var(--muted);
  background: rgba(18, 191, 179, 0.04);
  text-align: center;
}

.chart-empty--compact {
  min-height: 220px;
}

.chart-empty strong,
.table-empty strong {
  color: var(--body);
  font-size: 14px;
}

.chart-empty p,
.table-empty p {
  width: min(520px, 100%);
  margin: 0;
}

.trend-bars {
  min-height: 118px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-bottom: 4px;
  display: flex;
  gap: 8px;
  align-items: end;
  overflow-x: auto;
  overflow-y: hidden;
}

.trend-bars .empty-state {
  width: 100%;
  flex: 1 0 100%;
}

.trend-bar {
  min-width: 0;
  flex: 1 0 30px;
  height: 118px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 18px;
  gap: 6px;
  align-items: end;
}

.trend-bar span {
  width: 100%;
  min-height: 1px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--teal), #75d8d2);
}

.trend-bar small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  text-align: center;
  white-space: nowrap;
}

.plan-bars {
  display: grid;
  gap: 12px;
}

.distribution-stack {
  display: grid;
  gap: 18px;
}

.distribution-stack h4 {
  margin: 0 0 10px;
  color: var(--body);
  font-size: 14px;
}

.data-source-note {
  margin: 2px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 176, 32, 0.22);
  border-radius: 8px;
  color: #8a5c00;
  background: rgba(255, 176, 32, 0.08);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.55;
}

.plan-bar {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(120px, 1fr) 42px;
  gap: 12px;
  align-items: center;
}

.plan-bar strong,
.plan-bar span {
  display: block;
}

.plan-bar strong {
  font-size: 14px;
}

.plan-bar span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.plan-bar__track {
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(18, 191, 179, 0.1);
}

.plan-bar__track span {
  height: 100%;
  border-radius: inherit;
  display: block;
  background: var(--blue);
}

.plan-bar b {
  color: var(--ink);
  text-align: right;
}

.company-panel {
  padding: 0;
  overflow: hidden;
}

.company-panel__head {
  margin: 0;
  padding: 18px;
  border-bottom: 1px solid rgba(223, 232, 238, 0.82);
}

.account-toolbar {
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(520px, 1.28fr);
  gap: 18px;
  align-items: end;
}

.account-toolbar p {
  margin-bottom: 0;
  color: var(--muted);
}

.account-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(130px, 0.42fr) auto;
  gap: 12px;
  align-items: end;
}

.account-filters label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.account-filters input,
.account-filters select {
  width: 100%;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

.account-filters input:focus,
.account-filters select:focus {
  border-color: rgba(18, 191, 179, 0.58);
  box-shadow: 0 0 0 3px rgba(18, 191, 179, 0.12);
}

.account-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.account-workspace {
  display: grid;
  gap: 14px;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 14px;
  align-items: start;
}

.account-list-panel {
  padding: 0;
  overflow: hidden;
}

.account-list-panel .panel__head {
  margin: 0;
  padding: 18px;
  border-bottom: 1px solid rgba(223, 232, 238, 0.82);
}

.account-table {
  display: grid;
  overflow-x: auto;
}

.account-table__head,
.account-row {
  min-width: 920px;
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) minmax(150px, 0.75fr) minmax(170px, 0.85fr) minmax(100px, 0.5fr) minmax(210px, 1fr);
  gap: 12px;
}

.account-table__head {
  padding: 13px 18px;
  color: var(--muted);
  background: rgba(18, 191, 179, 0.06);
  font-size: 12px;
  font-weight: 850;
}

.account-row {
  width: 100%;
  padding: 15px 18px;
  border: 0;
  border-top: 1px solid rgba(223, 232, 238, 0.82);
  align-items: start;
  color: inherit;
  background: rgba(255, 255, 255, 0.76);
  text-align: left;
}

.account-row:hover,
.account-row.is-selected {
  background: rgba(18, 191, 179, 0.06);
}

.account-row.is-selected {
  box-shadow: inset 3px 0 0 var(--teal);
}

.account-row strong,
.account-row small {
  display: block;
}

.account-row strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.account-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.account-detail-panel {
  position: sticky;
  top: 18px;
}

.account-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(14, 28, 44, 0.28);
}

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

.account-detail-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 41;
  width: min(540px, calc(100vw - 28px));
  padding: 18px;
  border: 1px solid rgba(223, 232, 238, 0.94);
  border-right: 0;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: -18px 0 42px rgba(24, 42, 56, 0.16);
}

.account-detail-drawer[hidden] {
  display: none;
}

.account-detail-empty {
  min-height: 280px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  text-align: center;
}

.account-detail-empty p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.account-detail-head__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-detail-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.account-phone-card {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(18, 191, 179, 0.22);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: rgba(18, 191, 179, 0.05);
}

.account-phone-card span,
.account-phone-card strong,
.account-phone-card small {
  display: block;
}

.account-phone-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.account-phone-card strong {
  margin-top: 4px;
  font-size: 20px;
  line-height: 1.2;
}

.account-phone-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

.account-detail-grid article {
  min-height: 74px;
  padding: 12px;
  border: 1px solid rgba(223, 232, 238, 0.88);
  border-radius: 8px;
  background: #fbfefd;
}

.account-detail-grid span,
.account-detail-grid strong {
  display: block;
}

.account-detail-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.account-detail-grid strong {
  margin-top: 7px;
  font-size: 22px;
  line-height: 1.15;
}

.account-detail-meta {
  margin-bottom: 14px;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

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

.company-mini-list__head,
.company-mini-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.company-mini-list__head {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.company-mini-list__head strong {
  color: var(--ink);
  font-size: 14px;
}

.company-mini-row {
  padding: 12px;
  border: 1px solid rgba(223, 232, 238, 0.88);
  border-radius: 8px;
  background: #ffffff;
}

.company-mini-row strong,
.company-mini-row span {
  display: block;
}

.company-mini-row strong {
  font-size: 13px;
}

.company-mini-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.word-game-workspace {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}

.word-game-tabs {
  overflow-x: auto;
}

.word-game-panel {
  min-width: 0;
  display: none;
}

.word-game-panel.is-active {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(340px, 0.78fr);
  gap: 14px;
  align-items: start;
}

.word-game-panel[data-word-game-panel="mail"].is-active,
.word-game-panel[data-word-game-panel="ledger"].is-active {
  grid-template-columns: 1fr;
}

.word-game-panel[data-word-game-panel="codes"].is-active,
.word-game-panel[data-word-game-panel="attributions"].is-active {
  grid-template-columns: 1fr;
}

.word-game-panel > .panel {
  min-width: 0;
  overflow: hidden;
}

.inline-filter {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(130px, 0.45fr) auto auto;
  gap: 10px;
  align-items: center;
}

.inline-filter input,
.inline-filter select,
.word-game-form input,
.word-game-form select,
.word-game-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

.inline-filter input,
.inline-filter select,
.word-game-form input,
.word-game-form select {
  height: 38px;
  padding: 0 11px;
}

.word-game-form textarea {
  min-height: 116px;
  padding: 11px;
  resize: vertical;
}

.inline-filter input:focus,
.inline-filter select:focus,
.word-game-form input:focus,
.word-game-form select:focus,
.word-game-form textarea:focus {
  border-color: rgba(18, 191, 179, 0.58);
  box-shadow: 0 0 0 3px rgba(18, 191, 179, 0.12);
}

.word-game-table {
  display: grid;
  overflow-x: auto;
}

.word-game-function-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.word-game-function-grid > .panel {
  min-width: 0;
  overflow: hidden;
}

.word-game-function-panel {
  align-self: start;
}

.word-game-operation-panel {
  margin-top: 0;
}

.word-game-operation-panel .operation-record-list {
  max-height: 460px;
  overflow: auto;
}

.word-game-operation-panel .operation-record-row {
  cursor: default;
}

.word-game-function-grid .reward-builder__controls {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.word-game-function-grid .reward-builder__controls button {
  grid-column: 1 / -1;
  justify-self: end;
}

.word-game-selection-bar {
  min-height: 48px;
  margin: -4px 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(18, 191, 179, 0.18);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(18, 191, 179, 0.05);
}

.word-game-selection-bar span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.word-game-selection-bar strong {
  color: var(--teal-dark);
  font-size: 15px;
}

.word-game-selection-bar div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.word-game-table__head,
.word-game-row {
  min-width: 920px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
}

.word-game-table__head {
  padding: 13px 18px;
  grid-template-columns: 52px minmax(210px, 1.1fr) minmax(150px, 0.75fr) minmax(150px, 0.75fr) minmax(150px, 0.75fr) minmax(160px, 0.8fr);
  color: var(--muted);
  background: rgba(18, 191, 179, 0.06);
  font-size: 12px;
  font-weight: 850;
}

.word-game-row {
  width: 100%;
  padding: 15px 18px;
  border: 0;
  border-top: 1px solid rgba(223, 232, 238, 0.82);
  align-items: start;
  color: inherit;
  background: rgba(255, 255, 255, 0.76);
  text-align: left;
}

.word-game-select-cell {
  min-height: 36px;
  display: grid;
  place-items: center;
}

.word-game-select-cell input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.word-game-row__content {
  min-width: 0;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: minmax(210px, 1.1fr) minmax(150px, 0.75fr) minmax(150px, 0.75fr) minmax(150px, 0.75fr) minmax(160px, 0.8fr);
  gap: 12px;
  color: inherit;
  background: transparent;
  text-align: left;
}

.word-game-row__actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.word-game-row:hover,
.word-game-row.is-selected {
  background: rgba(18, 191, 179, 0.06);
}

.word-game-row.is-selected {
  box-shadow: inset 3px 0 0 var(--teal);
}

.word-game-row strong,
.word-game-row small {
  display: block;
}

.word-game-row strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.word-game-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.copy-chip {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(18, 191, 179, 0.24);
  border-radius: 999px;
  color: var(--teal-dark);
  background: rgba(18, 191, 179, 0.08);
  font-size: 12px;
  font-weight: 820;
  line-height: 1;
}

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

.word-game-form label {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.word-game-form label > span {
  min-width: 0;
}

.word-game-form__wide,
.word-game-form__actions {
  grid-column: 1 / -1;
}

.word-game-form__actions {
  display: flex;
  justify-content: flex-end;
}

.reward-builder {
  padding: 14px;
  border: 1px solid rgba(18, 191, 179, 0.2);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  background: rgba(18, 191, 179, 0.045);
}

.reward-builder__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.reward-builder__head strong,
.reward-builder__head span {
  display: block;
}

.reward-builder__head strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.reward-builder__head span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.45;
}

.reward-builder__head small {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: rgba(18, 191, 179, 0.12);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.reward-builder__controls {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(180px, 1.25fr) minmax(100px, 0.5fr) auto;
  gap: 10px;
  align-items: end;
}

.reward-builder__controls label {
  min-width: 0;
}

.reward-builder__controls button {
  min-height: 38px;
  white-space: nowrap;
}

.reward-builder__list {
  min-height: 70px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.reward-builder__empty {
  grid-column: 1 / -1;
  padding: 16px;
  border: 1px dashed rgba(18, 191, 179, 0.35);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 780;
  text-align: center;
}

.reward-chip {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(223, 232, 238, 0.92);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: center;
  background: #ffffff;
}

.reward-chip__thumb {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--teal-dark);
  background: rgba(18, 191, 179, 0.13);
  font-size: 16px;
  font-weight: 950;
}

.reward-chip__thumb.is-item {
  color: #8a4b00;
  background: rgba(245, 158, 11, 0.16);
}

.reward-chip__thumb.is-cosmetic {
  color: #3154b9;
  background: rgba(59, 130, 246, 0.14);
}

.reward-chip__thumb.is-red {
  color: #a91b34;
  background: rgba(239, 68, 68, 0.13);
}

.reward-chip strong,
.reward-chip small {
  display: block;
  min-width: 0;
}

.reward-chip strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reward-chip small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.4;
}

.reward-builder__json {
  padding-top: 4px;
}

.reward-builder__json summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.reward-builder__json textarea {
  margin-top: 8px;
  min-height: 96px;
  color: #31526e;
  background: rgba(248, 251, 252, 0.88);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.word-game-selected-summary {
  min-height: 54px;
  padding: 12px;
  border: 1px solid rgba(18, 191, 179, 0.18);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(18, 191, 179, 0.05);
  font-size: 12px;
  font-weight: 760;
}

.word-game-selected-summary strong,
.word-game-selected-summary span {
  display: block;
}

.word-game-selected-summary strong {
  color: var(--ink);
  font-size: 13px;
}

.word-game-list--stacked {
  margin-top: 14px;
}

.word-game-selected-summary span {
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.word-game-list {
  max-height: min(640px, 68vh);
  overflow: auto;
  display: grid;
  gap: 10px;
  align-content: start;
  padding-right: 4px;
}

.word-game-card {
  padding: 14px;
  border: 1px solid rgba(223, 232, 238, 0.88);
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
}

.word-game-card[data-word-game-attribution-row] {
  cursor: pointer;
}

.word-game-card[data-word-game-attribution-row]:hover {
  border-color: rgba(18, 191, 179, 0.32);
  background: rgba(18, 191, 179, 0.04);
}

.word-game-card strong,
.word-game-card span,
.word-game-card p,
.word-game-card small {
  display: block;
}

.word-game-card strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.word-game-card span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.4;
}

.word-game-card p {
  margin: 7px 0 0;
  color: var(--body);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.word-game-card small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.word-game-card__side {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  gap: 10px;
}

.word-game-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.word-game-card__actions .primary-action,
.word-game-card__actions .secondary-action,
.word-game-card__actions .danger-action,
.word-game-card__actions .muted-action {
  min-height: 34px;
  padding: 0 11px;
}

.word-game-card--compact {
  align-items: center;
}

.word-game-card--compact small {
  min-width: 70px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
  text-align: right;
}

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

.word-game-identity-grid {
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.word-game-identity-grid article {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(18, 191, 179, 0.18);
  border-radius: 8px;
  background: rgba(18, 191, 179, 0.05);
}

.word-game-identity-grid span,
.word-game-identity-grid strong {
  display: block;
}

.word-game-identity-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.word-game-identity-grid strong {
  margin: 7px 0 10px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.word-game-detail-grid article,
.word-game-detail-sections article {
  padding: 12px;
  border: 1px solid rgba(223, 232, 238, 0.88);
  border-radius: 8px;
  background: #fbfefd;
}

.word-game-detail-grid span,
.word-game-detail-grid strong,
.word-game-detail-sections strong,
.word-game-detail-sections span {
  display: block;
}

.word-game-detail-grid span,
.word-game-detail-sections span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.word-game-detail-grid strong {
  margin-top: 7px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.word-game-detail-sections {
  margin-top: 12px;
  display: grid;
  gap: 9px;
}

.word-game-detail-sections strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 13px;
}

.word-game-claims {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(223, 232, 238, 0.82);
  display: grid;
  gap: 10px;
}

.word-game-claims__head {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.word-game-claims__head strong {
  color: var(--ink);
  font-size: 14px;
}

.compact-tabs {
  flex: 0 0 auto;
}

.info-list-tabs {
  width: fit-content;
  margin-bottom: 12px;
  padding: 4px;
  border: 1px solid rgba(223, 232, 238, 0.94);
  border-radius: 8px;
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.78);
}

.info-list-tab {
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.info-list-tab:hover,
.info-list-tab:focus-visible {
  color: var(--teal-dark);
  outline: none;
}

.info-list-tab.is-active {
  border-color: rgba(18, 191, 179, 0.26);
  color: var(--teal-dark);
  background: rgba(18, 191, 179, 0.08);
}

[data-baoflow-info-panel][hidden] {
  display: none;
}

.baoflow-account-panel__head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.baoflow-account-filters {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(223, 232, 238, 0.82);
  background: rgba(248, 251, 253, 0.72);
}

.account-phone-card--readonly > .status-badge {
  white-space: nowrap;
}

.company-table {
  display: grid;
}

.company-table__head,
.company-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.25fr) minmax(120px, 0.8fr) minmax(160px, 1fr) minmax(180px, 1.15fr) minmax(150px, 0.95fr);
  gap: 12px;
}

.company-table__head {
  padding: 13px 18px;
  color: var(--muted);
  background: rgba(18, 191, 179, 0.06);
  font-size: 12px;
  font-weight: 850;
}

.table-empty {
  margin: 18px;
}

.company-row {
  width: 100%;
  padding: 16px 18px;
  border: 0;
  border-top: 1px solid rgba(223, 232, 238, 0.82);
  align-items: start;
  color: inherit;
  background: rgba(255, 255, 255, 0.76);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.company-row:hover,
.company-row.is-selected {
  background: rgba(18, 191, 179, 0.06);
}

.company-row.is-selected {
  box-shadow: inset 3px 0 0 var(--teal);
}

.company-row strong,
.company-row span,
.company-row small {
  display: block;
}

.company-row strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.company-row span,
.company-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.baoflow-company-detail-drawer .company-mini-list + .company-mini-list,
.baoflow-account-detail-drawer .company-mini-list + .company-mini-list {
  margin-top: 14px;
}

.baoflow-account-detail-drawer .data-source-note {
  margin: 0 0 14px;
}

.content-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
  gap: 14px;
}

.panel {
  padding: 18px;
}

.panel--wide {
  min-height: 320px;
}

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

.roadmap {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
  counter-reset: roadmap;
}

.roadmap li {
  min-height: 56px;
  padding: 12px 12px 12px 50px;
  border: 1px solid rgba(223, 232, 238, 0.84);
  border-radius: 8px;
  position: relative;
  background: #fbfefd;
  counter-increment: roadmap;
}

.roadmap li::before {
  content: counter(roadmap);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--teal);
  font-size: 12px;
  font-weight: 820;
}

.roadmap strong,
.roadmap span {
  display: block;
}

.roadmap strong {
  font-size: 15px;
}

.roadmap span {
  margin-top: 3px;
  color: var(--muted);
}

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

.plain-list li {
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid rgba(223, 232, 238, 0.84);
  border-radius: 8px;
  display: flex;
  align-items: center;
  color: var(--body);
  background: #fbfefd;
  font-weight: 700;
}

.scope-list {
  display: grid;
}

.scope-list article {
  min-height: 74px;
  padding: 14px 0;
  border-top: 1px solid rgba(223, 232, 238, 0.82);
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
}

.scope-list article:first-child {
  border-top: 0;
  padding-top: 0;
}

.scope-list article:last-child {
  padding-bottom: 0;
}

.scope-list article > span {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(18, 191, 179, 0.24);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--teal-dark);
  background: rgba(18, 191, 179, 0.08);
  font-size: 12px;
  font-weight: 850;
}

.scope-list strong,
.data-plan strong,
.phase-card strong {
  display: block;
}

.scope-list p,
.data-plan p,
.phase-card p {
  margin: 5px 0 0;
  color: var(--muted);
}

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

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

.function-card {
  min-height: 150px;
  padding: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.function-card--live {
  border-color: rgba(18, 191, 179, 0.22);
  background: rgba(255, 255, 255, 0.94);
}

.function-card h4 {
  margin: 4px 0 7px;
  color: var(--ink);
  font-size: 17px;
}

.function-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 720;
  line-height: 1.6;
}

.function-card .secondary-action {
  flex: 0 0 auto;
  text-decoration: none;
}

.phase-card {
  min-height: 170px;
  padding: 18px;
  border: 1px solid rgba(223, 232, 238, 0.92);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.phase-card--now {
  border-color: rgba(18, 191, 179, 0.32);
  background: #f2fffc;
}

.phase-card__head {
  display: grid;
  gap: 9px;
}

.phase-card__head span {
  width: fit-content;
  min-height: 25px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(43, 115, 214, 0.1);
  font-size: 12px;
  font-weight: 830;
}

.phase-card--now .phase-card__head span {
  color: var(--teal-dark);
  background: rgba(18, 191, 179, 0.12);
}

.data-plan {
  margin-top: 22px;
}

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

.data-plan__grid article {
  min-height: 142px;
  padding: 18px;
  border: 1px solid rgba(223, 232, 238, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.roadmap-panel {
  margin-top: 14px;
}

.operation-record-panel {
  margin-top: 14px;
  overflow: hidden;
}

.operation-filter-row {
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(160px, 0.8fr) minmax(220px, 1fr);
  gap: 12px;
}

.operation-filter-row label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.operation-filter-row input,
.operation-filter-row select {
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
}

.operation-filter-row input:disabled,
.operation-filter-row select:disabled {
  color: rgba(102, 122, 145, 0.78);
  background: rgba(246, 249, 251, 0.92);
}

.operation-filter-row--buttons {
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
}

.operation-filter-row--buttons button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--body);
  background: #ffffff;
  font-weight: 850;
}

.operation-filter-row--buttons button:hover,
.operation-filter-row--buttons button.is-active {
  border-color: rgba(18, 191, 179, 0.28);
  color: var(--teal-dark);
  background: rgba(18, 191, 179, 0.1);
}

.operation-record-list {
  display: grid;
  overflow-x: auto;
}

.operation-record-table__head,
.operation-record-row {
  min-width: 760px;
  display: grid;
  grid-template-columns: minmax(140px, 0.74fr) minmax(220px, 1.1fr) minmax(160px, 0.86fr) minmax(90px, 0.42fr);
  gap: 12px;
}

.operation-record-table__head {
  padding: 12px 14px;
  color: var(--muted);
  background: rgba(255, 176, 32, 0.08);
  font-size: 12px;
  font-weight: 850;
}

.operation-record-row {
  width: 100%;
  padding: 13px 14px;
  border: 0;
  border-top: 1px solid rgba(223, 232, 238, 0.82);
  align-items: center;
  color: inherit;
  background: rgba(255, 255, 255, 0.78);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.operation-record-row:hover,
.operation-record-row.is-selected {
  background: rgba(255, 176, 32, 0.08);
}

.operation-record-row.is-selected {
  box-shadow: inset 3px 0 0 #f0a62b;
}

.operation-record-row strong,
.operation-record-row small {
  display: block;
}

.operation-record-row strong {
  color: var(--ink);
  font-size: 14px;
}

.operation-record-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.operation-result {
  width: fit-content;
  min-height: 25px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.operation-result.is-succeeded {
  color: var(--teal-dark);
  background: rgba(18, 191, 179, 0.1);
}

.operation-result.is-failed {
  color: #b42318;
  background: rgba(239, 68, 68, 0.12);
}

.module-card {
  min-height: 166px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.module-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.module-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--teal-dark);
  background: rgba(18, 191, 179, 0.1);
  font-size: 17px;
  font-weight: 850;
}

.module-card h3 {
  font-size: 17px;
}

.module-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.module-card__footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(223, 232, 238, 0.78);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.module-card__footer button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(18, 191, 179, 0.28);
  border-radius: 8px;
  color: var(--teal-dark);
  background: rgba(18, 191, 179, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.module-card__footer button:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

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

.approval-workspace {
  margin-bottom: 14px;
  display: grid;
  gap: 14px;
}

.approval-switcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.approval-tabs {
  min-width: 0;
  padding: 4px;
  border: 1px solid rgba(223, 232, 238, 0.9);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.78);
}

.approval-tab {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  background: transparent;
  font-weight: 850;
  white-space: nowrap;
}

.approval-tab span {
  min-width: 28px;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: var(--muted);
  background: rgba(235, 243, 249, 0.95);
  font-size: 12px;
  line-height: 1;
}

.approval-tab.is-active {
  color: var(--teal-dark);
  background: rgba(18, 191, 179, 0.1);
  box-shadow: inset 0 0 0 1px rgba(18, 191, 179, 0.18);
}

.approval-tab.is-active span {
  color: var(--teal-dark);
  background: rgba(18, 191, 179, 0.14);
}

.review-panel {
  min-height: 360px;
}

.approval-panel {
  display: none;
}

.approval-panel.is-active {
  display: grid;
  gap: 16px;
}

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

.approval-list {
  align-content: start;
  max-height: min(620px, 66vh);
  overflow: auto;
  padding-right: 4px;
}

.approval-group {
  display: grid;
  gap: 10px;
}

.approval-group + .approval-group {
  padding-top: 14px;
  border-top: 1px solid rgba(223, 232, 238, 0.82);
}

.approval-group__head {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.approval-group__head strong {
  color: var(--ink);
  font-size: 14px;
}

.approval-group__head span {
  min-width: 28px;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: rgba(18, 191, 179, 0.1);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.affiliate-info-workspace {
  display: grid;
  gap: 14px;
}

.affiliate-info-tabs {
  overflow-x: auto;
}

.affiliate-info-panel {
  display: none;
}

.affiliate-info-panel.is-active {
  display: grid;
  gap: 14px;
}

.affiliate-info-list {
  max-height: min(640px, 68vh);
  overflow: auto;
  display: grid;
  gap: 10px;
  align-content: start;
  padding-right: 4px;
}

.affiliate-info-row {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(223, 232, 238, 0.88);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  color: inherit;
  background: #ffffff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.affiliate-info-row:hover,
.affiliate-info-row:focus-visible {
  border-color: rgba(18, 191, 179, 0.34);
  background: rgba(18, 191, 179, 0.045);
  outline: none;
}

.affiliate-info-row__head,
.affiliate-info-row__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.affiliate-info-row__head {
  justify-content: space-between;
}

.affiliate-info-row__head strong {
  min-width: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.affiliate-info-row__meta {
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
}

.affiliate-info-row p {
  margin: 0;
  color: var(--body);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

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

.drawer-head h3 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.drawer-body {
  display: grid;
  gap: 14px;
}

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

.affiliate-detail-grid article {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(223, 232, 238, 0.88);
  border-radius: 8px;
  background: #fbfefd;
}

.affiliate-detail-grid span,
.affiliate-detail-grid strong {
  display: block;
}

.affiliate-detail-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.affiliate-detail-grid strong {
  margin-top: 7px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.affiliate-info-detail-drawer .config-rule-note {
  margin-top: 0;
}

.affiliate-operation-panel {
  margin-top: 14px;
}

.affiliate-operation-panel .operation-record-list {
  max-height: 460px;
  overflow: auto;
}

.affiliate-operation-panel .operation-record-row {
  cursor: default;
}

.affiliate-config-plan {
  margin-bottom: 14px;
}

.affiliate-config-workspace {
  margin-bottom: 14px;
  display: grid;
  gap: 14px;
}

.config-tabs {
  padding: 4px;
  border: 1px solid rgba(223, 232, 238, 0.9);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.78);
}

.config-tab {
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 850;
}

.config-tab.is-active {
  color: var(--teal-dark);
  background: rgba(18, 191, 179, 0.1);
  box-shadow: inset 0 0 0 1px rgba(18, 191, 179, 0.18);
}

.config-panel {
  min-width: 0;
  display: none;
}

.config-panel.is-active {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  gap: 16px;
  align-items: start;
}

.config-panel .panel__head {
  grid-column: 1 / -1;
}

.config-panel__tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.config-list {
  min-width: 0;
  max-height: min(640px, 68vh);
  overflow: auto;
  display: grid;
  gap: 10px;
  align-content: start;
  padding-right: 4px;
}

.config-item {
  padding: 14px;
  border: 1px solid rgba(223, 232, 238, 0.88);
  border-radius: 8px;
  background: #fbfefd;
}

.config-item.is-editing {
  border-color: rgba(18, 191, 179, 0.5);
  background: rgba(18, 191, 179, 0.06);
  box-shadow: inset 3px 0 0 rgba(18, 191, 179, 0.72);
}

.config-item__head,
.config-item__meta,
.config-item__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.config-item__head {
  justify-content: space-between;
}

.config-item__head > div {
  min-width: 0;
}

.config-item__head h4 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.config-item__head span,
.config-item__meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  overflow-wrap: anywhere;
}

.config-item__meta {
  margin-top: 9px;
  flex-wrap: wrap;
}

.config-item__copy {
  margin: 10px 0 0;
  color: var(--body);
  font-size: 13px;
}

.config-item__actions {
  margin-top: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.config-form {
  min-width: 0;
  position: sticky;
  top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.config-form label {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.config-form__intro,
.config-generated-key {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(223, 232, 238, 0.9);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  background: rgba(246, 249, 251, 0.86);
}

.config-form__intro {
  grid-column: 1 / -1;
}

.config-form__intro strong,
.config-generated-key strong {
  color: var(--ink);
  font-size: 13px;
}

.config-form__intro span,
.config-generated-key span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.config-generated-key strong {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.config-form input,
.config-form select {
  width: 100%;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

.config-form input:focus,
.config-form select:focus {
  border-color: rgba(18, 191, 179, 0.58);
  box-shadow: 0 0 0 3px rgba(18, 191, 179, 0.12);
}

.config-form input:disabled,
.config-form select:disabled {
  cursor: not-allowed;
  color: rgba(102, 122, 145, 0.82);
  background: rgba(246, 249, 251, 0.92);
  border-color: rgba(223, 232, 238, 0.98);
}

.config-check {
  min-height: 38px;
  padding: 9px 10px;
  border: 1px solid rgba(18, 191, 179, 0.18);
  border-radius: 8px;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  background: rgba(18, 191, 179, 0.05);
}

.config-check input {
  width: 17px;
  height: 17px;
  padding: 0;
  accent-color: var(--teal);
}

.config-rule-note {
  padding: 12px;
  border: 1px solid rgba(18, 191, 179, 0.2);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  background: rgba(18, 191, 179, 0.06);
}

.config-rule-note strong {
  color: var(--ink);
  font-size: 13px;
}

.config-rule-note span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.config-form__wide,
.config-actions {
  grid-column: 1 / -1;
}

.config-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.review-item {
  padding: 14px;
  border: 1px solid rgba(223, 232, 238, 0.88);
  border-radius: 8px;
  background: #fbfefd;
}

.review-item__head,
.review-item__meta,
.review-item__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-item__head {
  justify-content: space-between;
}

.review-item h4 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}

.review-item__meta {
  margin-top: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.review-item__copy {
  margin: 10px 0 0;
  color: var(--body);
}

.review-item__actions {
  margin-top: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.status-badge {
  min-height: 25px;
  padding: 4px 9px;
  border-radius: 999px;
  flex: 0 0 auto;
  color: var(--teal-dark);
  background: rgba(18, 191, 179, 0.1);
  font-size: 12px;
  font-weight: 820;
  white-space: nowrap;
}

.status-badge.is-pending {
  color: #8a5c00;
  background: rgba(255, 176, 32, 0.13);
}

.status-badge.is-active {
  color: var(--teal-dark);
  background: rgba(18, 191, 179, 0.12);
}

.status-badge.is-draft,
.status-badge.is-inactive,
.status-badge.is-disabled,
.status-badge.is-paused,
.status-badge.is-retired {
  color: var(--body);
  background: rgba(100, 116, 139, 0.12);
}

.status-badge.is-pending_review {
  color: #8a5c00;
  background: rgba(255, 176, 32, 0.13);
}

.status-badge.is-verified {
  color: var(--blue);
  background: rgba(43, 115, 214, 0.1);
}

.status-badge.is-closed,
.status-badge.is-suspended,
.status-badge.is-rejected,
.status-badge.is-ended,
.status-badge.is-canceled {
  color: #9f1d24;
  background: rgba(239, 68, 68, 0.1);
}

.empty-state {
  min-height: 96px;
  padding: 22px;
  border: 1px dashed rgba(18, 191, 179, 0.28);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(18, 191, 179, 0.04);
  text-align: center;
  font-weight: 720;
}

.empty-state--inline {
  min-height: 74px;
  padding: 14px;
}

.review-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.42);
}

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

.review-modal__panel {
  width: min(520px, 100%);
  padding: 20px;
  border: 1px solid rgba(223, 232, 238, 0.92);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.review-modal__head,
.review-modal__actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.review-modal__copy {
  margin: 14px 0;
  color: var(--body);
}

.review-modal__actions {
  margin-top: 16px;
  justify-content: flex-end;
}

.icon-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #ffffff;
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 1080px) {
  .admin-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .sidebar-nav {
    align-items: start;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar-card {
    margin-top: 0;
  }

  .status-grid,
  .module-grid,
  .module-section-nav,
  .baoflow-metric-grid,
  .phase-grid,
  .data-plan__grid,
  .function-area-grid,
  .operation-filter-row,
  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .config-panel.is-active {
    grid-template-columns: 1fr;
  }

  .word-game-panel.is-active {
    grid-template-columns: 1fr;
  }

  .word-game-function-grid {
    grid-template-columns: 1fr;
  }

  .config-form {
    position: static;
  }

  .baoflow-analytics-grid {
    grid-template-columns: 1fr;
  }

  .stats-window__head {
    flex-direction: column;
  }

  .range-control {
    min-width: 0;
  }

  .account-toolbar,
  .account-layout {
    grid-template-columns: 1fr;
  }

  .account-detail-panel {
    position: static;
  }

  .company-table__head {
    display: none;
  }

  .account-table__head {
    display: none;
  }

  .word-game-table__head {
    display: none;
  }

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

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

  .word-game-row {
    min-width: 0;
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .word-game-row__content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .workspace {
    padding: 20px 16px 40px;
  }

  .login-screen {
    align-items: start;
  }

  .login-screen .auth-panel {
    grid-template-columns: 1fr;
  }

  .topbar,
  .auth-panel,
  .notice-panel,
  .section-head,
  .section-subhead {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-head > p,
  .section-subhead > p {
    width: 100%;
    text-align: left;
  }

  .section-head-meta {
    justify-items: start;
  }

  .section-head-meta p {
    text-align: left;
  }

  .section-rule-row {
    justify-content: flex-start;
  }

  .baoflow-governance-list,
  .baoflow-governance-list article {
    grid-template-columns: 1fr;
  }

  .baoflow-audit-table__head {
    display: none;
  }

  .function-card {
    align-items: stretch;
    flex-direction: column;
  }

  .sidebar-nav,
  .status-grid,
  .module-grid,
  .module-section-nav,
  .content-grid,
  .baoflow-metric-grid,
  .baoflow-analytics-grid,
  .phase-grid,
  .data-plan__grid,
  .function-area-grid,
  .operation-filter-row,
  .review-grid,
  .affiliate-config-workspace,
  .config-form,
  .word-game-function-grid,
  .word-game-form,
  .inline-filter {
    grid-template-columns: 1fr;
  }

  .approval-switcher {
    align-items: stretch;
    flex-direction: column;
  }

  .config-tabs,
  .approval-tabs {
    overflow-x: auto;
  }

  .config-tab,
  .approval-tab {
    flex: 0 0 auto;
  }

  .range-control {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .info-list-tabs {
    width: 100%;
  }

  .info-list-tab {
    min-width: 0;
    flex: 1 1 0;
    padding-inline: 10px;
  }

  .custom-range,
  .account-filters,
  .operation-filter-row--buttons {
    grid-template-columns: 1fr;
  }

  .account-actions,
  .account-phone-card,
  .company-mini-list__head,
  .company-mini-row,
  .word-game-selection-bar,
  .word-game-card,
  .word-game-card__side,
  .word-game-form__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .word-game-card__side {
    justify-items: stretch;
  }

  .word-game-card__actions {
    justify-content: flex-start;
  }

  .reward-builder__head,
  .reward-builder__controls {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .reward-builder__head {
    display: grid;
  }

  .reward-builder__head small {
    justify-self: start;
  }

  .reward-builder__list {
    grid-template-columns: 1fr;
  }

  .account-detail-drawer {
    width: 100vw;
    padding: 16px;
    border-left: 0;
  }

  .account-phone-card {
    grid-template-columns: 1fr;
  }

  .plan-bar {
    grid-template-columns: 1fr;
  }

  .plan-bar b {
    text-align: left;
  }

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

  .account-row,
  .account-detail-grid,
  .word-game-detail-grid,
  .word-game-identity-grid {
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .word-game-row {
    min-width: 0;
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .word-game-row__content {
    grid-template-columns: 1fr;
  }

  .account-table__head,
  .word-game-table__head {
    min-width: 0;
  }

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

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

.section-head--map {
  align-items: flex-start;
}

.platform-map-entry {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.platform-map-entry__hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(125, 211, 205, 0.42);
  border-radius: 24px;
  padding: 28px;
  background: linear-gradient(135deg, #fff 0%, #effbfa 100%);
  box-shadow: 0 22px 60px rgba(16, 57, 77, 0.1);
}

.platform-map-entry__hero h3 {
  margin: 4px 0 10px;
  color: #12324a;
  font-size: 28px;
  line-height: 1.15;
}

.platform-map-entry__hero p:last-child {
  max-width: 680px;
  margin: 0;
  color: #61748c;
  font-weight: 700;
  line-height: 1.7;
}

.platform-map-entry__button {
  border: 0;
  border-radius: 16px;
  background: #11bfb4;
  color: #fff;
  padding: 14px 18px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(17, 191, 180, 0.22);
  white-space: nowrap;
}

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

.platform-map-entry__cards article {
  border: 1px solid #dbe7ef;
  border-radius: 20px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 14px 34px rgba(16, 57, 77, 0.07);
}

.platform-map-entry__cards span {
  color: #078b82;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.platform-map-entry__cards strong {
  display: block;
  margin-top: 8px;
  color: #12324a;
  font-size: 18px;
}

.platform-map-entry__cards p {
  margin: 8px 0 0;
  color: #61748c;
  font-weight: 700;
  line-height: 1.6;
}

body.is-platform-map-open {
  overflow: hidden;
}

.platform-map-workbench {
  --platform-detail-width: 420px;
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background: #edf8f8;
  color: #12324a;
}

.platform-map-workbench.is-open {
  display: flex;
}

.platform-map-workbench__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(125, 211, 205, 0.42);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 46px rgba(16, 57, 77, 0.12);
}

.platform-map-workbench__bar h2 {
  margin: 2px 0 0;
  color: #12324a;
  font-size: 24px;
  line-height: 1.1;
}

.platform-map-workbench__back {
  border: 0;
  border-radius: 14px;
  background: #12324a;
  color: #fff;
  padding: 12px 16px;
  font-weight: 900;
  cursor: pointer;
}

.platform-map-workbench__status {
  border-radius: 999px;
  background: #e5fbf5;
  color: #078b82;
  padding: 9px 12px;
  font-weight: 900;
  white-space: nowrap;
}

.platform-map-toolbar--workbench {
  flex-shrink: 0;
  margin: 0;
  grid-template-columns: minmax(400px, 1fr) minmax(300px, 420px) minmax(210px, 280px) auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(125, 211, 205, 0.42);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(16, 57, 77, 0.1);
}

.platform-map-workbench__back--toolbar {
  align-self: center;
  min-width: 120px;
  min-height: 38px;
  border-radius: 12px;
  background: #12324a;
  color: #fff;
}

.platform-map-workbench__body {
  min-height: 0;
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.platform-map-workbench .platform-map-stage {
  min-height: 0;
  height: 100%;
}

.platform-map-workbench .platform-map-detail {
  position: fixed;
  right: 12px;
  top: 68px;
  bottom: 10px;
  z-index: 1002;
  width: min(var(--platform-detail-width), calc(100vw - 24px));
  min-height: 0;
  overflow: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(100% + 24px));
  transition:
    transform 0.22s ease,
    opacity 0.18s ease;
}

.platform-map-workbench .platform-map-detail.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.platform-map-workbench .platform-detail-card {
  position: relative;
  top: 0;
  min-height: 100%;
  box-shadow: -16px 0 52px rgba(16, 57, 77, 0.16);
}

.platform-map-list--workbench {
  flex-shrink: 0;
  margin-top: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.platform-map-toolbar {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 320px) auto;
  gap: 8px;
  align-items: center;
  margin: 18px 0;
  padding: 10px;
  border: 1px solid rgba(125, 211, 205, 0.38);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 42px rgba(16, 57, 77, 0.08);
}

.platform-map-toolbar__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-map-toolbar button,
.platform-map-zoom button {
  border: 1px solid rgba(29, 203, 191, 0.28);
  background: #fff;
  color: #12324a;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
}

.platform-map-toolbar button.is-active {
  background: #11bfb4;
  color: #fff;
  border-color: #11bfb4;
  box-shadow: 0 10px 20px rgba(17, 191, 180, 0.2);
}

.platform-map-status-filters {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(360px, 1.15fr);
  gap: 8px;
  min-width: 0;
}

.platform-status-filter-group {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.platform-status-filter-group > span {
  color: #8ea2b7;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.platform-status-filter-group > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.platform-map-toolbar .platform-status-filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  border: 1px solid rgba(113, 137, 164, 0.36);
  border-radius: 9px;
  background: #101827;
  color: #dce7f3;
  padding: 7px 9px;
  text-align: left;
  box-shadow: none;
}

.platform-status-filter span {
  display: block;
  color: #8ea2b7;
  font-size: 11px;
  font-weight: 900;
}

.platform-status-filter strong {
  display: block;
  margin-top: 0;
  color: #f8fafc;
  font-size: 15px;
  line-height: 1;
}

.platform-status-filter small {
  display: block;
  margin-top: 0;
  color: #8ea2b7;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.platform-map-toolbar .platform-status-filter.is-active {
  border-color: #14b8a6;
  background: rgba(20, 184, 166, 0.16);
  color: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(20, 184, 166, 0.16);
}

.platform-map-toolbar .platform-status-filter--risk.is-active {
  border-color: #eab308;
  background: rgba(234, 179, 8, 0.14);
}

.platform-map-toolbar .platform-status-filter--draft.is-active {
  border-color: #94a3b8;
  background: rgba(148, 163, 184, 0.14);
}

.platform-map-toolbar .platform-status-filter--pending.is-active {
  border-color: #60a5fa;
  background: rgba(96, 165, 250, 0.14);
}

.platform-map-toolbar .platform-status-filter--broken.is-active {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.14);
}

.platform-map-toolbar .platform-status-filter--requested.is-active {
  border-color: #eab308;
  background: rgba(234, 179, 8, 0.14);
}

.platform-map-toolbar .platform-status-filter--pending_review.is-active {
  border-color: #60a5fa;
  background: rgba(96, 165, 250, 0.14);
}

.platform-map-toolbar .platform-status-filter--approved.is-active {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.14);
}

.platform-map-search {
  display: grid;
  gap: 6px;
  color: #8ea2b7;
  font-size: 12px;
  font-weight: 800;
}

.platform-map-search input {
  border: 1px solid rgba(113, 137, 164, 0.42);
  border-radius: 8px;
  padding: 11px 13px;
  color: #dce7f3;
  background: #0f1724;
  font: inherit;
}

.platform-map-zoom {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.platform-map-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: stretch;
}

.platform-map-stage {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  border: 1px solid rgba(91, 112, 137, 0.54);
  border-radius: 10px;
  background:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    #090f18;
  background-size: 140px 140px, 140px 140px, 28px 28px, 28px 28px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 22px 60px rgba(0, 0, 0, 0.3);
  cursor: grab;
}

.platform-map-stage.is-panning {
  cursor: grabbing;
}

.platform-map-canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 1800px;
  height: 1050px;
  transform-origin: 0 0;
  transition: transform 0.08s ease-out;
}

.platform-map-zones,
.platform-map-nodes,
.platform-map-lines,
.platform-map-link-points {
  position: absolute;
  inset: 0;
}

.platform-map-zones {
  z-index: 1;
}

.platform-map-lines {
  width: 1800px;
  height: 1050px;
  pointer-events: none;
  z-index: 2;
}

.platform-map-nodes {
  z-index: 3;
}

.platform-map-link-points {
  z-index: 4;
}

.platform-zone {
  position: absolute;
  border-radius: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.34);
  padding: 24px;
  background: rgba(15, 23, 35, 0.34);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  transition: opacity 0.18s ease;
}

.platform-zone.is-muted {
  opacity: 0.28;
}

.platform-zone strong {
  display: block;
  margin-bottom: 8px;
  color: rgba(226, 232, 240, 0.88);
  font-size: 28px;
}

.platform-zone span {
  color: #94a3b8;
  font-weight: 700;
}

.platform-zone--red {
  border-color: rgba(248, 113, 113, 0.34);
}

.platform-zone--blue {
  border-color: rgba(96, 165, 250, 0.34);
}

.platform-zone--green {
  border-color: rgba(74, 222, 128, 0.34);
}

.platform-zone--teal {
  border-color: rgba(45, 212, 191, 0.34);
}

.platform-zone--purple {
  border-color: rgba(192, 132, 252, 0.34);
}

.platform-zone--gray {
  border-color: rgba(148, 163, 184, 0.34);
}

.platform-link path {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(20, 184, 166, 0.16));
}

.platform-link text {
  font-size: 16px;
  font-weight: 900;
  fill: #cbd5e1;
  paint-order: stroke;
  stroke: #090f18;
  stroke-linejoin: round;
  stroke-width: 6px;
}

.platform-link--healthy path {
  stroke: #15bfb4;
}

.platform-link--risk path {
  stroke: #f2a93b;
  stroke-dasharray: 10 10;
}

.platform-link--draft path {
  stroke: #93a4b8;
  stroke-dasharray: 7 10;
}

.platform-link--pending path {
  stroke: #a8b3c2;
  stroke-dasharray: 4 12;
}

.platform-link.is-muted {
  opacity: 0.18;
}

.platform-map-link-points {
  pointer-events: none;
}

.platform-link-point {
  position: absolute;
  z-index: 4;
  width: 22px;
  height: 22px;
  border: 2px solid #0f172a;
  border-radius: 999px;
  background: #2dd4bf;
  box-shadow: 0 0 0 5px rgba(45, 212, 191, 0.18), 0 0 22px rgba(45, 212, 191, 0.34);
  transform: translate(-50%, -50%);
  cursor: pointer;
  pointer-events: auto;
}

.platform-link-point span {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  display: none;
  transform: translateX(-50%);
  border-radius: 7px;
  padding: 5px 8px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.92);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.platform-link-point:hover span,
.platform-link-point.is-active span {
  display: block;
}

.platform-link-point--risk {
  background: #eab308;
  box-shadow: 0 0 0 5px rgba(234, 179, 8, 0.16), 0 0 22px rgba(234, 179, 8, 0.32);
}

.platform-link-point--draft {
  background: #94a3b8;
  box-shadow: 0 0 0 5px rgba(148, 163, 184, 0.16), 0 0 22px rgba(148, 163, 184, 0.28);
}

.platform-link-point--pending {
  background: #60a5fa;
  box-shadow: 0 0 0 5px rgba(96, 165, 250, 0.16), 0 0 22px rgba(96, 165, 250, 0.28);
}

.platform-link-point.is-muted {
  opacity: 0.2;
  pointer-events: none;
}

.platform-link-point.is-active {
  border-color: #f8fafc;
}

.platform-link-popover {
  position: absolute;
  z-index: 8;
  width: 240px;
  border: 1px solid rgba(113, 137, 164, 0.52);
  border-radius: 10px;
  padding: 12px;
  color: #dce7f3;
  background: rgba(15, 23, 35, 0.96);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.44);
  pointer-events: auto;
}

.platform-link-popover p,
.platform-link-popover strong,
.platform-link-popover span {
  display: block;
}

.platform-link-popover p {
  margin: 0 0 6px;
  color: #5eead4;
  font-size: 12px;
  font-weight: 900;
}

.platform-link-popover strong {
  color: #f8fafc;
  font-size: 16px;
}

.platform-link-popover span {
  margin-top: 7px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.5;
}

.platform-link-popover div {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

.platform-link-popover button {
  flex: 1;
  border: 1px solid rgba(45, 212, 191, 0.34);
  border-radius: 7px;
  padding: 8px;
  color: #ccfbf1;
  background: rgba(20, 184, 166, 0.12);
  font-weight: 850;
}

.platform-node {
  position: absolute;
  width: 216px;
  min-height: 92px;
  border: 1px solid rgba(91, 112, 137, 0.72);
  border-radius: 10px;
  background: rgba(16, 24, 36, 0.96);
  color: #e2e8f0;
  text-align: left;
  padding: 14px 16px 13px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    opacity 0.16s ease,
    border-color 0.16s ease;
}

.platform-node:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.36);
}

.platform-node.is-selected {
  border-color: #2dd4bf;
  box-shadow:
    0 0 0 3px rgba(45, 212, 191, 0.24),
    0 0 28px rgba(45, 212, 191, 0.16),
    0 22px 48px rgba(0, 0, 0, 0.36);
}

.platform-node.is-muted {
  opacity: 0.18;
}

.platform-node strong,
.platform-node small,
.platform-node em {
  display: block;
}

.platform-node strong {
  margin-top: 10px;
  font-size: 19px;
  line-height: 1.2;
}

.platform-node small {
  margin-top: 5px;
  color: #94a3b8;
  font-weight: 800;
}

.platform-node em {
  margin-top: 10px;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.platform-node__badges {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.platform-node__runtime,
.platform-node__change {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.platform-node__runtime--healthy {
  background: rgba(20, 184, 166, 0.16);
  color: #5eead4;
}

.platform-node__runtime--risk {
  background: rgba(234, 179, 8, 0.16);
  color: #fde68a;
}

.platform-node__runtime--broken {
  background: rgba(239, 68, 68, 0.16);
  color: #fecaca;
}

.platform-node__change {
  background: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
}

.platform-node__change--requested {
  background: rgba(234, 179, 8, 0.14);
  color: #fde68a;
}

.platform-node__change--draft {
  background: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
}

.platform-node__change--pending_review {
  background: rgba(96, 165, 250, 0.16);
  color: #bfdbfe;
}

.platform-node__change--approved {
  background: rgba(34, 197, 94, 0.16);
  color: #bbf7d0;
}

.platform-map-detail {
  min-height: 650px;
}

.platform-detail-card {
  position: sticky;
  top: 22px;
  border: 1px solid rgba(91, 112, 137, 0.58);
  border-radius: 12px;
  padding: 24px;
  background: rgba(15, 23, 35, 0.96);
  color: #dce7f3;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.32);
}

.platform-detail-resizer {
  position: absolute;
  left: -8px;
  top: 0;
  width: 14px;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: col-resize;
}

.platform-detail-resizer::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.34);
}

body.is-platform-detail-resizing,
body.is-platform-detail-resizing * {
  cursor: col-resize !important;
  user-select: none;
}

.platform-detail-card__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: flex-start;
  gap: 18px;
}

.platform-detail-card__head p {
  margin: 0 0 8px;
  color: #5eead4;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.1;
}

.platform-detail-card__head h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: 0;
}

.platform-detail-card__head span {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(20, 184, 166, 0.16);
  color: #5eead4;
  font-weight: 900;
  white-space: nowrap;
}

.platform-detail-card__badges {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.platform-detail-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.platform-detail-card__head .platform-detail-badge {
  padding: 5px 9px;
}

.platform-detail-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin-top: 15px;
  border: 1px solid rgba(113, 137, 164, 0.22);
  border-radius: 12px;
  padding: 4px;
  background: rgba(8, 13, 22, 0.28);
}

.platform-detail-tabs button {
  min-width: 0;
  height: 30px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.platform-detail-tabs button:hover,
.platform-detail-tabs button.is-active {
  background: rgba(20, 184, 166, 0.16);
  color: #5eead4;
}

.platform-detail-panels {
  margin-top: 12px;
}

.platform-detail-panel {
  display: none;
}

.platform-detail-panel.is-active {
  display: block;
}

.platform-detail-panel .platform-detail-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.platform-detail-card--risk .platform-detail-card__head span {
  background: rgba(234, 179, 8, 0.16);
  color: #fde68a;
}

.platform-detail-card--broken .platform-detail-card__head span {
  background: rgba(239, 68, 68, 0.16);
  color: #fecaca;
}

.platform-detail-badge--healthy {
  background: rgba(20, 184, 166, 0.16);
  color: #5eead4;
}

.platform-detail-badge--risk,
.platform-detail-badge--requested {
  background: rgba(234, 179, 8, 0.16);
  color: #fde68a;
}

.platform-detail-badge--broken {
  background: rgba(239, 68, 68, 0.16);
  color: #fecaca;
}

.platform-detail-badge--draft {
  background: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
}

.platform-detail-badge--pending_review {
  background: rgba(96, 165, 250, 0.16);
  color: #bfdbfe;
}

.platform-detail-badge--approved {
  background: rgba(34, 197, 94, 0.16);
  color: #bbf7d0;
}

.platform-detail-section {
  border-top: 1px solid rgba(113, 137, 164, 0.24);
  padding: 16px 0;
}

.platform-detail-section--intro {
  margin-top: 18px;
}

.platform-detail-section h4 {
  margin: 0 0 10px;
  color: #f8fafc;
  font-size: 16px;
}

.platform-detail-text-scroll {
  max-height: 92px;
  overflow: auto;
  padding-right: 6px;
}

.platform-detail-text-scroll p {
  margin: 0;
  color: #a9b8c8;
  font-weight: 760;
  line-height: 1.7;
}

.platform-detail-status-line {
  display: grid;
  gap: 7px;
}

.platform-detail-status-line strong {
  color: #f8fafc;
  font-size: 20px;
}

.platform-detail-status-line p {
  margin: 0;
  max-height: 78px;
  overflow: auto;
  padding-right: 6px;
  color: #94a3b8;
  font-weight: 760;
  line-height: 1.6;
}

.platform-detail-record-list {
  display: grid;
  gap: 10px;
  max-height: 150px;
  overflow: auto;
  padding-right: 6px;
}

.platform-detail-record-list article {
  border: 1px solid rgba(113, 137, 164, 0.28);
  border-radius: 10px;
  padding: 11px 12px;
  background: rgba(8, 13, 22, 0.34);
}

.platform-detail-record-list div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.platform-detail-record-list strong {
  color: #f8fafc;
}

.platform-detail-record-list span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.platform-detail-record-list p {
  margin: 7px 0 0;
  color: #a9b8c8;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.55;
}

.platform-detail-section--plan {
  padding-bottom: 0;
}

.platform-detail-card__meta {
  border-top: 1px solid rgba(113, 137, 164, 0.24);
  border-bottom: 1px solid rgba(113, 137, 164, 0.24);
  padding: 16px 0;
}

.platform-detail-card__meta strong,
.platform-change-plan strong {
  display: block;
  margin-bottom: 10px;
  color: #f8fafc;
}

.platform-detail-card__meta div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-detail-card__meta span {
  border-radius: 7px;
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  padding: 7px 10px;
  font-weight: 800;
}

.platform-change-plan {
  margin-top: 0;
}

.platform-change-plan p {
  margin: 0;
  color: #a9b8c8;
  font-weight: 760;
  line-height: 1.65;
}

.platform-change-plan__rule {
  height: 1px;
  margin: 13px 0;
  background: rgba(113, 137, 164, 0.24);
}

.platform-change-plan__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.platform-change-plan__columns div {
  border: 1px solid rgba(113, 137, 164, 0.28);
  border-radius: 10px;
  padding: 14px;
  background: rgba(8, 13, 22, 0.42);
}

.platform-change-plan__columns span {
  display: block;
  margin-bottom: 8px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 900;
}

.platform-change-plan ul {
  margin: 0;
  padding-left: 18px;
  color: #dce7f3;
  font-weight: 800;
  line-height: 1.6;
}

.platform-change-plan del {
  color: #c74444;
  text-decoration-thickness: 2px;
}

.platform-change-plan__columns div:last-child li {
  color: #5eead4;
}

.platform-approval-button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  margin-top: 16px;
  padding: 13px 16px;
  background: rgba(20, 184, 166, 0.16);
  color: #99f6e4;
  font-weight: 900;
}

.platform-map-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.platform-map-list article {
  border: 1px solid #dcebf0;
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 14px 34px rgba(16, 57, 77, 0.07);
}

.platform-map-list span {
  color: #61748c;
  font-weight: 900;
}

.platform-map-list strong {
  display: block;
  margin: 8px 0;
  color: #12324a;
  font-size: 28px;
}

.platform-map-list p {
  margin: 0;
  color: #5d7088;
  font-weight: 700;
}

@media (max-width: 1180px) {
  .platform-map-entry__hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .platform-map-entry__cards {
    grid-template-columns: 1fr;
  }

  .platform-map-workbench__body {
    grid-template-columns: 1fr;
  }

  .platform-map-workbench .platform-map-stage {
    min-height: 560px;
  }

  .platform-map-toolbar--workbench,
  .platform-map-toolbar,
  .platform-map-shell {
    grid-template-columns: 1fr;
  }

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

  .platform-map-workbench .platform-map-detail {
    right: 12px;
    top: 112px;
  }

  .platform-map-detail {
    min-height: 0;
  }

  .platform-detail-card {
    position: static;
  }

  .platform-map-workbench .platform-detail-card {
    position: relative;
  }

  .platform-map-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-map-list--workbench {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .platform-map-workbench {
    padding: 10px;
  }

  .platform-map-workbench__bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .platform-map-workbench__status {
    align-self: flex-start;
  }

  .platform-map-toolbar--workbench {
    grid-template-columns: 1fr;
  }

  .platform-map-toolbar__filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .platform-map-list {
    grid-template-columns: 1fr;
  }

  .platform-map-list--workbench {
    grid-template-columns: 1fr;
  }

  .platform-map-status-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-map-workbench .platform-map-detail {
    right: 10px;
    top: 150px;
    bottom: 10px;
    width: calc(100vw - 20px);
  }

  .platform-map-stage {
    min-height: 560px;
  }

  .platform-change-plan__columns {
    grid-template-columns: 1fr;
  }
}

/* Light platform map workbench refinements. */
.platform-map-workbench {
  gap: 8px;
  padding: 10px;
  background: #edf8f8;
  color: #12324a;
}

.platform-map-toolbar--workbench {
  grid-template-columns: minmax(520px, 1.25fr) minmax(280px, 0.72fr) minmax(240px, 0.55fr) auto auto;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 6px 8px;
  border: 1px solid rgba(125, 211, 205, 0.42);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(16, 57, 77, 0.1);
}

.platform-map-toolbar--workbench .platform-map-toolbar__filters {
  gap: 6px;
  min-width: 0;
}

.platform-map-toolbar--workbench .platform-map-toolbar__filters button,
.platform-map-toolbar--workbench .platform-map-zoom button,
.platform-map-workbench__back--toolbar {
  min-height: 34px;
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 14px;
  line-height: 1;
}

.platform-map-workbench__back--toolbar {
  min-width: 112px;
  border: 0;
  background: #12324a;
  color: #fff;
}

.platform-map-status-filters {
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  align-items: center;
  align-content: center;
  overflow: hidden;
}

.platform-status-filter-group {
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 3px;
  align-items: center;
  min-height: 16px;
}

.platform-status-filter-group > span {
  color: #61748c;
  font-size: 10px;
  line-height: 1;
  text-align: right;
}

.platform-status-filter-group > div {
  flex-wrap: nowrap;
  gap: 2px;
  overflow: hidden;
}

.platform-map-toolbar .platform-status-filter {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 16px;
  min-width: 0;
  border: 1px solid #dcebf0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.9);
  color: #12324a;
  padding: 1px 4px;
  text-align: left;
  box-shadow: none;
}

.platform-status-filter span {
  display: none;
}

.platform-status-filter strong {
  display: block;
  margin: 0;
  color: #12324a;
  font-size: 10px;
  line-height: 1;
}

.platform-status-filter small {
  display: block;
  margin: 0;
  overflow: hidden;
  color: #61748c;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-map-toolbar .platform-status-filter.is-active {
  border-color: #13beb4;
  background: #e4faf7;
  color: #12324a;
  box-shadow: 0 8px 18px rgba(17, 191, 180, 0.12);
}

.platform-map-toolbar .platform-status-filter--risk.is-active {
  border-color: #f3bd47;
  background: #fff7df;
}

.platform-map-toolbar .platform-status-filter--draft.is-active {
  border-color: #c9d6e0;
  background: #f5f8fb;
}

.platform-map-toolbar .platform-status-filter--pending.is-active {
  border-color: #a9d9ff;
  background: #edf8ff;
}

.platform-map-toolbar .platform-status-filter--broken.is-active {
  border-color: #ffb4b4;
  background: #fff1f1;
}

.platform-map-toolbar .platform-status-filter--requested.is-active {
  border-color: #f3bd47;
  background: #fff7df;
}

.platform-map-toolbar .platform-status-filter--pending_review.is-active {
  border-color: #a9d9ff;
  background: #edf8ff;
}

.platform-map-toolbar .platform-status-filter--approved.is-active {
  border-color: #91dfb0;
  background: #effbf4;
}

.platform-map-search {
  gap: 3px;
  color: #6b7c92;
  font-size: 11px;
}

.platform-map-toolbar--workbench .platform-map-search {
  gap: 0;
}

.platform-map-toolbar--workbench .platform-map-search span {
  display: none;
}

.platform-map-search input {
  min-height: 34px;
  border: 1px solid #dbe7ef;
  border-radius: 12px;
  padding: 8px 11px;
  color: #12324a;
  background: #fff;
}

.platform-map-zoom {
  gap: 6px;
}

.platform-map-zoom button {
  min-width: 36px;
  min-height: 34px;
  padding: 0 10px;
}

.platform-map-workbench__body {
  gap: 10px;
}

.platform-map-workbench .platform-map-detail {
  top: 66px;
  bottom: 10px;
}

.platform-map-stage {
  border: 1px solid rgba(125, 211, 205, 0.42);
  border-radius: 18px;
  background:
    linear-gradient(rgba(28, 145, 137, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 145, 137, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(28, 145, 137, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 145, 137, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #f8fffe 0%, #eef8fb 100%);
  background-size: 140px 140px, 140px 140px, 28px 28px, 28px 28px, auto;
  box-shadow: 0 22px 60px rgba(16, 57, 77, 0.1);
}

.platform-zone {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.46);
}

.platform-zone strong {
  color: #12324a;
}

.platform-zone span {
  color: #5d7088;
}

.platform-zone--red {
  background: linear-gradient(135deg, rgba(255, 235, 235, 0.92), rgba(255, 245, 245, 0.76));
}

.platform-zone--blue {
  background: linear-gradient(135deg, rgba(224, 242, 255, 0.92), rgba(239, 249, 255, 0.72));
}

.platform-zone--green {
  background: linear-gradient(135deg, rgba(225, 249, 238, 0.92), rgba(241, 255, 248, 0.72));
}

.platform-zone--teal {
  background: linear-gradient(135deg, rgba(219, 251, 248, 0.92), rgba(241, 255, 254, 0.72));
}

.platform-zone--purple {
  background: linear-gradient(135deg, rgba(241, 232, 255, 0.92), rgba(248, 243, 255, 0.72));
}

.platform-zone--gray {
  background: linear-gradient(135deg, rgba(238, 244, 248, 0.92), rgba(248, 251, 252, 0.72));
}

.platform-link path {
  filter: drop-shadow(0 5px 9px rgba(16, 57, 77, 0.1));
}

.platform-link text {
  fill: #61748c;
  stroke: #fff;
  stroke-width: 8px;
}

.platform-link-point {
  width: 11px;
  height: 11px;
  border-color: #fff;
  background: #15bfb4;
  box-shadow: 0 0 0 2px rgba(21, 191, 180, 0.16), 0 5px 12px rgba(21, 191, 180, 0.22);
}

.platform-link-point:hover,
.platform-link-point.is-active {
  transform: translate(-50%, -50%) scale(1.12);
}

.platform-link-point span {
  display: none;
}

.platform-link-point:hover span,
.platform-link-point.is-active span {
  display: none;
}

.platform-link-point--risk {
  background: #f2a93b;
  box-shadow: 0 0 0 2px rgba(242, 169, 59, 0.16), 0 5px 12px rgba(242, 169, 59, 0.22);
}

.platform-link-point--draft {
  background: #93a4b8;
  box-shadow: 0 0 0 2px rgba(147, 164, 184, 0.16), 0 5px 12px rgba(147, 164, 184, 0.2);
}

.platform-link-point--pending {
  background: #a8b3c2;
  box-shadow: 0 0 0 2px rgba(168, 179, 194, 0.16), 0 5px 12px rgba(168, 179, 194, 0.2);
}

.platform-link-popover {
  border: 1px solid #dbe7ef;
  color: #12324a;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 56px rgba(16, 57, 77, 0.16);
}

.platform-link-popover p {
  color: #078b82;
}

.platform-link-popover strong {
  color: #12324a;
}

.platform-link-popover span {
  color: #61748c;
}

.platform-link-popover button {
  border-color: rgba(18, 191, 179, 0.28);
  color: #078b82;
  background: rgba(18, 191, 179, 0.08);
}

.platform-node {
  border: 1px solid rgba(219, 231, 239, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: #12324a;
  box-shadow: 0 16px 34px rgba(16, 57, 77, 0.13);
}

.platform-node:hover {
  box-shadow: 0 20px 42px rgba(16, 57, 77, 0.18);
}

.platform-node.is-selected {
  border-color: #15bfb4;
  box-shadow:
    0 0 0 4px rgba(29, 203, 191, 0.18),
    0 22px 48px rgba(16, 57, 77, 0.2);
}

.platform-node small {
  color: #61748c;
}

.platform-node em {
  color: #8797aa;
}

.platform-node__runtime--healthy {
  background: #e5fbf5;
  color: #078b82;
}

.platform-node__runtime--risk {
  background: #fff3d8;
  color: #a36500;
}

.platform-node__runtime--broken {
  background: #fff1f1;
  color: #b42318;
}

.platform-node__change {
  background: #eef3f7;
  color: #5e7188;
}

.platform-node__change--requested {
  background: #fff3d8;
  color: #a36500;
}

.platform-node__change--draft {
  background: #f2f4f7;
  color: #7a8797;
}

.platform-node__change--pending_review {
  background: #edf8ff;
  color: #2f70b7;
}

.platform-node__change--approved {
  background: #effbf4;
  color: #15803d;
}

.platform-detail-card {
  border: 1px solid rgba(125, 211, 205, 0.42);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: #12324a;
  box-shadow: 0 20px 54px rgba(16, 57, 77, 0.1);
}

.platform-map-workbench .platform-detail-card {
  box-shadow: -16px 0 52px rgba(16, 57, 77, 0.16);
}

.platform-detail-resizer::before {
  background: rgba(18, 191, 179, 0.35);
}

.platform-detail-card__head p {
  color: #00998f;
  font-size: 16px;
  line-height: 1.1;
}

.platform-detail-card__head h3 {
  color: #12324a;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: 0;
}

.platform-detail-card__head span {
  background: #ecfbf8;
  color: #078b82;
}

.platform-detail-card__badges {
  gap: 12px;
}

.platform-detail-badge {
  min-width: 96px;
  padding: 5px 9px;
  background: #eef3f7;
  color: #5e7188;
  font-size: 12px;
  line-height: 1.1;
}

.platform-detail-card__head .platform-detail-badge {
  padding: 5px 9px;
}

.platform-detail-tabs {
  border-color: #dcebf0;
  background: #f6fbfb;
}

.platform-detail-tabs button {
  color: #6b7f96;
}

.platform-detail-tabs button:hover,
.platform-detail-tabs button.is-active {
  background: #dff6f3;
  color: #078b82;
}

.platform-detail-card--risk .platform-detail-card__head span {
  background: #fff3d8;
  color: #a36500;
}

.platform-detail-card--broken .platform-detail-card__head span {
  background: #fff1f1;
  color: #b42318;
}

.platform-detail-badge--healthy {
  background: #e5fbf5;
  color: #078b82;
}

.platform-detail-badge--risk,
.platform-detail-badge--requested {
  background: #fff3d8;
  color: #a36500;
}

.platform-detail-badge--broken {
  background: #fff1f1;
  color: #b42318;
}

.platform-detail-badge--draft {
  background: #f2f4f7;
  color: #7a8797;
}

.platform-detail-badge--pending_review {
  background: #edf8ff;
  color: #2f70b7;
}

.platform-detail-badge--approved {
  background: #effbf4;
  color: #15803d;
}

.platform-detail-section {
  border-top-color: #e6eef4;
}

.platform-detail-section h4 {
  color: #12324a;
}

.platform-detail-text-scroll p {
  color: #5d7088;
}

.platform-detail-status-line strong {
  color: #12324a;
}

.platform-detail-status-line p {
  color: #61748c;
}

.platform-detail-record-list article {
  border-color: #e2edf3;
  border-radius: 16px;
  background: #f7fbfc;
}

.platform-detail-record-list strong {
  color: #12324a;
}

.platform-detail-record-list span,
.platform-detail-record-list p {
  color: #61748c;
}

.platform-detail-card__meta {
  border-top-color: #e6eef4;
  border-bottom-color: #e6eef4;
}

.platform-detail-card__meta strong,
.platform-change-plan strong {
  color: #12324a;
}

.platform-detail-card__meta span {
  border-radius: 999px;
  background: #f3faf9;
  color: #50677f;
}

.platform-change-plan__columns div {
  border-color: #e2edf3;
  border-radius: 18px;
  background: #f7fbfc;
}

.platform-change-plan p {
  color: #5d7088;
}

.platform-change-plan__rule {
  background: #e6eef4;
}

.platform-change-plan__columns span {
  color: #61748c;
}

.platform-change-plan ul {
  color: #12324a;
}

.platform-change-plan__columns div:last-child li {
  color: #078b82;
}

.platform-approval-button {
  border-radius: 16px;
  background: #dff6f3;
  color: #078b82;
}

@media (max-width: 1320px) {
  .platform-map-toolbar--workbench {
    grid-template-columns: 1fr minmax(260px, 360px) auto;
  }

  .platform-map-toolbar--workbench .platform-map-toolbar__filters,
  .platform-map-status-filters {
    grid-column: span 3;
  }

  .platform-map-workbench .platform-map-detail {
    top: 116px;
  }
}

@media (max-width: 720px) {
  .platform-map-toolbar--workbench {
    grid-template-columns: 1fr;
  }

  .platform-map-toolbar--workbench .platform-map-toolbar__filters,
  .platform-map-status-filters {
    grid-column: auto;
  }

  .platform-map-workbench .platform-map-detail {
    top: 150px;
  }
}
.price-admin-status {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.price-admin-status > div {
  display: grid;
  gap: 4px;
  min-width: 150px;
}

.price-admin-status span,
.price-version-row small {
  color: var(--muted);
  font-size: 12px;
}

.price-admin-status button {
  margin-left: auto;
}

.price-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.8fr);
  gap: 20px;
  align-items: start;
}

.finance-module-grid {
  margin-top: 20px;
}

.price-admin-list,
.price-admin-form {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 6px;
  padding: 18px;
}

.price-filter {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}

.price-filter button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 6px 10px;
  cursor: pointer;
}

.price-filter button.is-active {
  color: var(--ink);
  border-color: var(--teal);
  background: var(--soft);
}

.price-version-list {
  display: grid;
  margin-top: 12px;
}

.price-version-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.1fr) minmax(150px, 0.8fr) minmax(180px, 1fr) minmax(170px, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.price-version-row > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.price-version-row__audit > div {
  display: flex;
  gap: 6px;
}

.price-version-row__audit button {
  padding: 6px 10px;
}

.price-state {
  width: fit-content;
  padding: 3px 7px;
  border: 1px solid var(--line);
  font-size: 12px;
}

.price-state--current { color: #087a55; border-color: #5fc69d; }
.price-state--future { color: #245c9e; border-color: #70a8df; }
.price-state--draft { color: #815500; border-color: #d6a94b; }
.price-state--retired,
.price-state--historical { color: var(--muted); }

.price-admin-form {
  display: grid;
  gap: 18px;
}

.price-admin-form h3,
.price-admin-form p {
  margin: 0;
}

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

.price-form-grid label {
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.price-form-grid input,
.price-form-grid select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 9px 10px;
}

@media (max-width: 1180px) {
  .price-admin-layout { grid-template-columns: 1fr; }
  .price-version-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .price-admin-status { align-items: stretch; flex-direction: column; gap: 10px; }
  .price-admin-status button { margin-left: 0; }
  .price-form-grid,
  .price-version-row { grid-template-columns: 1fr; }
}

/* Keep long information lists from pushing the following function area off-screen. */
.module-workbench-section--list .company-table,
.module-workbench-section--list .account-table,
.module-workbench-section--list .word-game-table,
.module-workbench-section--list .word-game-list,
.module-workbench-section--list .affiliate-info-list {
  max-height: min(640px, 68vh);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.module-workbench-section--list .company-table__head,
.module-workbench-section--list .account-table__head,
.module-workbench-section--list .word-game-table__head {
  position: sticky;
  top: 0;
  z-index: 2;
  box-shadow: 0 1px 0 rgba(223, 232, 238, 0.92);
}

@media (max-width: 720px) {
  .module-workbench-section--list .company-table,
  .module-workbench-section--list .account-table,
  .module-workbench-section--list .word-game-table,
  .module-workbench-section--list .word-game-list,
  .module-workbench-section--list .affiliate-info-list {
    max-height: min(520px, 60vh);
  }
}
