/* P21-CHALLENGE-UI-002 精英引荐挑战：沿入驻后台 aob- 视觉（浅底、细边线、单一蓝色、等宽数字），作用域 .ach-。 */
.ach-root { display: grid; gap: 12px; min-width: 0; color: var(--ink, #18202a); }
.ach-sub { margin: 4px 0 0; color: var(--muted, #6c7683); font-size: 12px; line-height: 1.6; }
.ach-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--muted-strong, #465160); }
.ach-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ach-panel { padding: 18px 20px; border: 1px solid var(--line, #dce3ea); border-radius: 12px; background: var(--panel, #fff); min-width: 0; }
.ach-panel h4 { margin: 0 0 10px; font-size: 15px; }
.ach-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.ach-head h4 { margin: 0; }
.ach-notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 10px 14px; border: 1px solid; border-radius: 10px; font-size: 13px; }
.ach-notice.info { border-color: #cbd9f2; background: #eef3fc; color: #23457f; }
.ach-notice.ok { border-color: #bfdccb; background: #e9f5ee; color: #1f5a3f; }
.ach-notice.bad { border-color: #efc2c0; background: #fbeceb; color: #7c2626; }
.ach-notice.warn { border-color: #efd3ad; background: #fbf1e3; color: #6f420f; }
.ach-error { margin: 0; padding: 8px 12px; border: 1px solid #efc2c0; border-radius: 8px; background: #fbeceb; color: #7c2626; font-size: 13px; }
.ach-errtext { margin: 4px 0 0; color: #7c2626; font-size: 12px; }
.ach-empty { margin: 0; padding: 18px; border: 1px dashed var(--line, #dce3ea); border-radius: 10px; color: var(--muted, #6c7683); font-size: 13px; text-align: center; }
.ach-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line, #dce3ea); border-radius: 8px; background: #fff; color: var(--ink, #18202a); font: inherit; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.ach-btn:hover { border-color: #c6d0da; background: var(--panel-muted, #f7f9fb); }
.ach-btn.primary { border-color: var(--blue, #2f64c8); background: var(--blue, #2f64c8); color: #fff; font-weight: 600; }
.ach-btn.primary:hover { background: #244f9f; }
.ach-btn.danger { border-color: #efc2c0; color: #7c2626; }
.ach-btn.block { width: 100%; min-height: 40px; }
.ach-btn:disabled { cursor: not-allowed; border-color: var(--line, #dce3ea); background: #e9edf2; color: #8f99a5; }
.ach-link, .ach-back { padding: 0; border: 0; background: none; color: var(--blue, #2f64c8); font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.ach-link:disabled { color: #8f99a5; cursor: not-allowed; }
.ach-btn:focus-visible, .ach-link:focus-visible, .ach-back:focus-visible, .ach-filter:focus-visible, .ach-subtabs button:focus-visible { outline: none; box-shadow: var(--focus, 0 0 0 3px rgba(47, 100, 200, 0.2)); }
.ach-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ach-subtabs { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--line, #dce3ea); border-radius: 10px; background: #f6f8fa; justify-self: start; }
.ach-subtabs button { padding: 6px 14px; border: 0; border-radius: 8px; background: none; color: var(--muted-strong, #465160); font: inherit; font-size: 13px; cursor: pointer; }
.ach-subtabs button[aria-selected="true"] { background: #fff; color: var(--ink, #18202a); font-weight: 600; box-shadow: 0 0 0 1px var(--line, #dce3ea); }
.ach-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.ach-filters { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 3px; border: 1px solid var(--line, #dce3ea); border-radius: 10px; background: #f6f8fa; }
.ach-filter { padding: 6px 12px; border: 0; border-radius: 8px; background: none; color: var(--muted-strong, #465160); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.ach-filter[aria-pressed="true"] { background: #fff; color: var(--ink, #18202a); font-weight: 600; box-shadow: 0 0 0 1px var(--line, #dce3ea); }
.ach-inline { display: inline-flex; align-items: center; gap: 8px; color: var(--muted-strong, #465160); font-size: 13px; }
.ach-inline select { min-height: 34px; padding: 4px 10px; border: 1px solid var(--line, #dce3ea); border-radius: 8px; background: #fff; font: inherit; font-size: 13px; }
.ach-table-wrap { overflow-x: auto; border: 1px solid var(--line, #dce3ea); border-radius: 12px; background: #fff; }
.ach-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ach-table th, .ach-table td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft, #e8edf2); text-align: left; vertical-align: middle; }
.ach-table th { background: #f6f8fa; color: var(--muted, #6c7683); font-weight: 600; white-space: nowrap; }
.ach-table tbody tr:last-child td { border-bottom: 0; }
.ach-tiers, .ach-compare { border: 1px solid var(--line, #dce3ea); border-radius: 10px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.ach-pager { display: flex; align-items: center; justify-content: flex-end; gap: 10px; color: var(--muted, #6c7683); font-size: 13px; }
.ach-pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border: 1px solid; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ach-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ach-pill.warn { border-color: #efd3ad; background: #fbf1e3; color: #6f420f; }
.ach-pill.wait { border-color: #cbd9f2; background: #eef3fc; color: #23457f; }
.ach-pill.ok { border-color: #bfdccb; background: #e9f5ee; color: #1f5a3f; }
.ach-pill.bad { border-color: #efc2c0; background: #fbeceb; color: #7c2626; }
.ach-pill.muted { border-color: var(--line, #dce3ea); background: #f1f4f7; color: #465160; }
.ach-diff { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px; background: #fbf1e3; color: #6f420f; font-size: 12px; font-weight: 500; }
.ach-list { margin: 10px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-soft, #e8edf2); }
.ach-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft, #e8edf2); }
.ach-row > .ach-form { grid-column: 1 / -1; }
.ach-row-main b { font-size: 14px; margin-right: 6px; }
.ach-row-act { display: flex; gap: 14px; align-items: flex-start; white-space: nowrap; }
.ach-form { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line, #dce3ea); border-radius: 10px; background: #fafbfc; }
.ach-form h4 { margin: 0 0 6px; font-size: 14px; }
.ach-field { display: grid; gap: 6px; margin: 8px 0; font-size: 13px; color: var(--muted-strong, #465160); }
.ach-field > span { font-weight: 600; }
.ach-field input, .ach-field textarea { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--line, #dce3ea); border-radius: 8px; font: inherit; font-size: 14px; color: var(--ink, #18202a); background: #fff; }
.ach-field textarea { min-height: 72px; resize: vertical; }
.ach-field input:focus-visible, .ach-field textarea:focus-visible, .ach-inline select:focus-visible { outline: none; border-color: var(--blue, #2f64c8); box-shadow: var(--focus, 0 0 0 3px rgba(47, 100, 200, 0.2)); }
.ach-req { color: #7c2626; font-style: normal; }
.ach-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
.ach-grid4 { display: grid; grid-template-columns: 120px repeat(2, minmax(0, 1fr)); gap: 0 12px; align-items: end; }
.ach-tier-label { padding-bottom: 18px; font-size: 13px; font-weight: 600; color: var(--ink, #18202a); }
.ach-radios { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0; }
.ach-radio { display: flex; gap: 8px; align-items: flex-start; padding: 8px 12px; border: 1px solid var(--line, #dce3ea); border-radius: 8px; font-size: 13px; cursor: pointer; background: #fff; }
.ach-radio.is-on { border-color: var(--blue, #2f64c8); background: #f5f8fe; }
.ach-radio b { display: block; }
.ach-radio small { display: block; color: var(--muted, #6c7683); font-size: 12px; }
[data-ach-review] .ach-radios { display: grid; }
.ach-dhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.ach-dhead h4 { margin: 0; font-size: 20px; }
.ach-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.ach-col { display: grid; gap: 14px; min-width: 0; }
.ach-act { position: sticky; top: 16px; display: grid; gap: 12px; min-width: 0; }
.ach-dl { display: grid; gap: 8px; margin: 0; }
.ach-dl div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; font-size: 13px; }
.ach-dl dt { color: var(--muted, #6c7683); }
.ach-dl dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.ach-history { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ach-history li { display: grid; grid-template-columns: 130px auto 1fr; gap: 4px 12px; font-size: 13px; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft, #e8edf2); }
.ach-history li:last-child { border-bottom: 0; }
.ach-history p { grid-column: 2 / -1; margin: 0; white-space: pre-wrap; }
/* 经纪人“我的晋升”资格卡片 */
.ach-card-wrap { margin: 0 0 16px; }
.ach-card { display: grid; gap: 8px; padding: 16px 18px; border: 1px solid var(--line, #dce3ea); border-left: 3px solid var(--blue, #2f64c8); border-radius: 10px; background: #fff; }
.ach-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ach-card-head b { font-size: 15px; }
.ach-card-state { margin: 0; font-size: 14px; color: var(--ink, #18202a); }
@media (max-width: 1180px) {
  .ach-cols { grid-template-columns: minmax(0, 1fr) 300px; }
  .ach-grid3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .ach-cols { grid-template-columns: 1fr; }
  .ach-act { position: static; }
  .ach-grid3, .ach-grid4 { grid-template-columns: 1fr; }
}
.ach-hint { font-style: normal; font-weight: 400; color: var(--muted, #6c7683); }
.ach-diff[hidden], .ach-req[hidden], .ach-hint[hidden] { display: none; }
/* 对比表/档位表在窄栏内不得撑破网格：固定布局、允许换行 */
.ach-tiers, .ach-compare { table-layout: fixed; width: 100%; }
.ach-tiers th, .ach-tiers td, .ach-compare th, .ach-compare td { white-space: normal; overflow-wrap: anywhere; }
.ach-panel { overflow-wrap: anywhere; }
.ach-root table.ach-table, .ach-card table.ach-table { min-width: 0; }
.ach-grid3 { align-items: start; }

/* P21-CHALLENGE-UI-003 业绩进度：Linear 式紧凑层级（细边线分区、单一蓝色、等宽数字），不用巨型 KPI 卡。 */
.ach-prog { display: grid; gap: 12px; }
.ach-prog > h4, .ach-prog-head h4 { margin: 0; }
.ach-prog-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.ach-prog-head .ach-sub { margin: 0; }
.ach-prog-period { margin: 0; color: var(--muted-strong, #465160); font-size: 13px; line-height: 1.6; }
.ach-prog-sum { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(220px, 0.9fr); border: 1px solid var(--line, #dce3ea); border-radius: 12px; overflow: hidden; }
.ach-prog-sum > * { padding: 14px 16px; min-width: 0; }
.ach-prog-sum > * + * { border-left: 1px solid var(--line-soft, #e8edf2); }
.ach-metric { display: grid; gap: 4px; }
.ach-metric > span { color: var(--muted, #6c7683); font-size: 12px; }
.ach-metric strong { font-size: 22px; font-weight: 650; letter-spacing: -0.3px; font-variant-numeric: tabular-nums; }
.ach-metric strong small { font-size: 13px; font-weight: 500; color: var(--muted, #6c7683); }
.ach-metric > small { color: var(--muted-strong, #465160); font-size: 12px; }
.ach-prog-counts { display: grid; align-content: center; gap: 6px; margin: 0; background: #f9fafb; font-size: 13px; }
.ach-prog-counts div { display: flex; justify-content: space-between; gap: 12px; }
.ach-prog-counts dt { color: var(--muted, #6c7683); }
.ach-prog-counts dd { margin: 0; font-variant-numeric: tabular-nums; }
.ach-prog-cov { margin: 0; padding: 8px 12px; border-left: 3px solid #cbd9f2; background: #f6f8fc; color: var(--muted-strong, #465160); font-size: 12px; line-height: 1.6; }
.ach-prog-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.ach-prog-bar .ach-sub { margin: 0; }
.ach-prog-filters button:disabled { cursor: progress; opacity: 0.7; }
.ach-root table.ach-prog-table, .ach-card table.ach-prog-table { min-width: 0; table-layout: fixed; }
.ach-prog-table th:nth-child(1) { width: 18%; } .ach-prog-table th:nth-child(2) { width: 10%; } .ach-prog-table th:nth-child(3) { width: 13%; }
.ach-prog-table th:nth-child(4) { width: 12%; } .ach-prog-table th:nth-child(5) { width: 15%; } .ach-prog-table th:nth-child(6) { width: 12%; }
.ach-prog-table th.ach-num { text-align: right; }
.ach-prog-table td { vertical-align: top; overflow-wrap: anywhere; }
.ach-prog-table td small { color: var(--muted, #6c7683); font-size: 12px; }
.ach-prog-table td.ach-num { white-space: normal; }
.ach-reason { color: var(--muted-strong, #465160); font-size: 12px; line-height: 1.6; }
.ach-late { display: inline-block; margin-top: 4px; padding: 0 6px; border-radius: 4px; background: #eef3fc; color: #23457f; font-size: 12px; font-weight: 500; white-space: nowrap; }
.ach-warn-text { color: var(--amber, #a96318); }
@media (max-width: 1180px) {
  .ach-prog-sum { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ach-prog-counts { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); border-left: 0 !important; border-top: 1px solid var(--line-soft, #e8edf2); }
  .ach-prog-counts div { justify-content: flex-start; gap: 8px; }
}
