:root {
  --ink: #2f2a24;
  --muted: #7a7167;
  --line: #e8dfd2;
  --paper: #fbf7ef;
  --panel: #fffdf8;
  --brand: #175d49;
  --brand-2: #a97a34;
  --danger: #9f3a2f;
  --ok: #2f7d53;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f4efe6;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.auth-screen {
  display: none;
}

.admin-locked {
  display: block;
}

.admin-locked .auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(18, 63, 53, 0.96), rgba(23, 93, 73, 0.9)),
    #123f35;
}

.admin-locked .side,
.admin-locked .admin-shell {
  display: none;
}

.auth-card {
  width: min(100%, 460px);
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid rgba(246, 223, 173, 0.3);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.auth-brand small {
  color: var(--muted);
}

.auth-kicker {
  margin: 8px 0 4px;
  color: var(--brand-2);
  font-size: 13px;
  font-weight: 800;
}

.auth-card h1 {
  margin: 0;
  font-size: 25px;
  letter-spacing: 0;
}

.auth-copy,
.auth-footnote {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.auth-card label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.auth-card input,
.auth-card select {
  min-height: 40px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf7ef;
  color: var(--ink);
  padding: 0 11px;
}

.account-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf7ef;
}

.account-mode-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.account-mode-tabs button.active {
  background: var(--brand);
  color: #fff;
}

.auth-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.auth-actions button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: white;
  font-weight: 800;
}

.auth-actions button:first-child {
  background: #f6dfad;
  color: #133b32;
}

.auth-error {
  margin: 0;
}

.side {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  background: #fffdf8;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.brand,
.client-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-seal {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(174, 131, 57, 0.55);
  background: #f8efd9;
  color: #224237;
  font-weight: 800;
  border-radius: 8px;
}

.brand strong,
.client-brand strong {
  display: block;
  font-size: 18px;
}

.brand small,
.client-brand small {
  color: rgba(255, 248, 232, 0.72);
}

.side .brand {
  padding: 7px 8px 10px;
}

.side .brand small {
  color: var(--muted);
}

.side nav {
  display: grid;
  gap: 16px;
}

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

.admin-page:not(.role-menu-ready) .side-nav-group:not(:first-child),
.admin-page:not(.role-menu-ready) .side nav [data-nav-section],
.admin-page:not(.role-menu-ready) .side nav [data-menu-permissions] {
  display: none;
}

.side-nav-group p {
  margin: 0 8px 2px;
  color: #8b8174;
  font-size: 11px;
  font-weight: 900;
}

.side nav button,
.seed-button,
.client-link,
.admin-top button,
.composer button,
.ask-card button {
  border: 0;
  border-radius: 8px;
  min-height: 40px;
}

.side nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  color: #4d463d;
  background: transparent;
  padding: 9px 11px;
  font-weight: 800;
}

.side nav button::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #c8b99d;
}

.side nav button.active,
.seed-button {
  color: #133b32;
  background: #f1eadb;
}

.side nav button.active {
  box-shadow: inset 3px 0 0 var(--brand);
}

.side nav button.active::before {
  background: var(--brand);
}

.side nav button:hover {
  background: #f7f1e6;
}

.side nav button[hidden] {
  display: none;
}

.seed-button.secondary {
  background: #fffdf8;
  color: #4d463d;
  border: 1px solid var(--line);
}

.seed-button.danger {
  background: #fff2ee;
  color: var(--danger);
  border: 1px solid rgba(159, 58, 47, 0.22);
}

.client-link {
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--brand);
  border: 1px solid rgba(23, 93, 73, 0.18);
  background: #eef6ef;
}

.session-panel,
.side-ops {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf7ef;
}

.side-ops {
  gap: 8px;
  padding: 10px;
}

.session-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.session-title strong {
  font-size: 14px;
}

.session-title span,
.session-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.session-compact {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid rgba(23, 93, 73, 0.12);
  border-radius: 8px;
  background: #fffdf8;
}

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

.session-compact strong {
  color: var(--brand);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.session-panel label {
  display: grid;
  gap: 4px;
}

.session-panel label span {
  color: var(--muted);
  font-size: 12px;
}

.session-panel input,
.session-panel select {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: #133b32;
  padding: 0 9px;
}

.session-save {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: #f6dfad;
  color: #133b32;
  font-weight: 800;
}

.account-box {
  display: grid;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 248, 232, 0.16);
}

.debug-session {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.debug-session summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.debug-session[open] {
  gap: 9px;
}

.debug-session[open] summary {
  margin-bottom: 7px;
}

.session-divider {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.account-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 6px;
}

.account-actions button,
.notification-item button {
  min-height: 32px;
  border: 1px solid rgba(23, 93, 73, 0.14);
  border-radius: 8px;
  background: rgba(23, 93, 73, 0.08);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.account-actions button:first-child {
  background: #f6dfad;
  color: #133b32;
}

.notification-list {
  display: grid;
  gap: 8px;
}

.notification-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 8px;
  align-items: start;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf1;
}

.notification-item.unread {
  border-color: rgba(169, 122, 52, 0.42);
  background: #fff4d8;
}

.notification-item strong,
.notification-item span {
  display: block;
  overflow-wrap: anywhere;
}

.notification-item strong {
  margin-bottom: 3px;
  font-size: 13px;
}

.notification-item span {
  color: var(--muted);
  font-size: 11px;
}

.notification-item p {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.45;
}

.notification-center-board,
.notification-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 16px;
}

.notification-center-board .notification-list {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.side-ops summary {
  cursor: pointer;
  color: #4d463d;
  font-size: 12px;
  font-weight: 900;
}

.side-ops[open] summary {
  margin-bottom: 2px;
}

.admin-shell {
  padding: 18px 26px 26px;
  min-width: 0;
}

.admin-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  margin-bottom: 12px;
}

.admin-top > div:first-child {
  min-width: 0;
}

.admin-top p {
  margin: 0 0 6px;
  color: var(--brand-2);
  font-weight: 700;
}

.admin-top h1 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
}

.admin-top button,
.composer button,
.ask-card button {
  padding: 0 16px;
  background: var(--brand);
  color: white;
}

.admin-top button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
  align-self: start;
  justify-self: end;
  min-width: 0;
}

.top-search {
  width: clamp(180px, 18vw, 300px);
  flex: 0 1 300px;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--muted);
  font-size: 12px;
}

.top-search span {
  color: var(--brand);
  font-weight: 900;
}

.top-search input {
  min-width: 0;
  flex: 1;
  min-height: 30px;
  border: 0;
  background: transparent;
  outline: none;
  color: var(--ink);
}

.top-account {
  min-height: 40px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 6px 5px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.88);
  color: var(--muted);
  font-size: 12px;
}

.top-user-text {
  min-width: 104px;
  display: grid;
  gap: 2px;
}

.top-user-text span,
.top-user-text strong {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-user-text span {
  color: var(--brand-2);
  font-weight: 800;
}

.top-user-text strong {
  color: var(--ink);
  font-size: 13px;
}

.top-icon-button,
.avatar-button {
  width: 40px;
  height: 40px;
  min-height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--brand);
  position: relative;
}

.admin-top .top-icon-button,
.admin-top .avatar-button {
  padding: 0;
  background: rgba(255, 253, 248, 0.92);
  color: var(--brand);
}

.top-icon-button:hover,
.avatar-button:hover,
.top-icon-button[aria-expanded="true"],
.avatar-button[aria-expanded="true"] {
  border-color: rgba(169, 122, 52, 0.42);
  background: #fff6df;
}

.top-icon-button.has-unread {
  border-color: rgba(159, 58, 47, 0.28);
  color: var(--danger);
}

.top-icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.top-badge {
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--danger);
  color: white;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  position: absolute;
  top: -5px;
  right: -5px;
}

.top-notification,
.avatar-menu {
  position: relative;
}

.top-popover {
  width: 320px;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(47, 42, 36, 0.16);
}

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

.notification-float {
  right: 0;
}

.popover-head,
.avatar-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.popover-head strong {
  font-size: 15px;
}

.popover-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.top-notification-list {
  max-height: 320px;
  display: grid;
  gap: 8px;
  overflow-y: auto;
}

.top-notification-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
}

.top-notification-row.unread {
  border-color: rgba(169, 122, 52, 0.42);
  background: #fff4d8;
}

.top-notification-row strong,
.top-notification-row span,
.top-notification-row p {
  display: block;
  overflow-wrap: anywhere;
}

.top-notification-row strong {
  font-size: 13px;
}

.top-notification-row span,
.top-notification-row p,
.top-empty {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.top-notification-row p,
.top-empty {
  margin: 4px 0 0;
}

.top-notification-row button {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(23, 93, 73, 0.16);
  border-radius: 8px;
  background: rgba(23, 93, 73, 0.08);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.admin-top .top-notification-row button {
  padding: 0 9px;
  background: rgba(23, 93, 73, 0.08);
  color: var(--brand);
}

.top-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #175d49, #a97a34);
  color: #fffdf8;
  font-size: 14px;
  font-weight: 900;
}

.top-avatar.large {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  font-size: 18px;
}

.avatar-dropdown {
  width: 360px;
}

.avatar-profile {
  justify-content: flex-start;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.avatar-profile div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.avatar-profile strong,
.avatar-profile span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.top-menu-item,
.popover-link {
  width: 100%;
  min-height: 36px;
  justify-content: flex-start;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-weight: 800;
}

.admin-top .top-menu-item,
.admin-top .popover-link {
  padding: 0 10px;
  background: transparent;
  color: var(--ink);
}

.top-menu-item:hover,
.popover-link:hover {
  border-color: var(--line);
  background: #f8efd9;
}

.top-menu-item.danger {
  color: var(--danger);
}

.top-account-form {
  display: grid;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.top-account-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.top-account-form input,
.top-account-form select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  padding: 0 10px;
}

.admin-top .top-account-form .account-actions button {
  padding: 0 9px;
  border: 1px solid rgba(23, 93, 73, 0.14);
  background: rgba(23, 93, 73, 0.08);
  color: var(--brand);
}

.admin-top .top-account-form .account-actions button:first-child {
  background: #f6dfad;
  color: #133b32;
}

.admin-top .top-account-form .account-actions button:last-child {
  color: var(--danger);
}

.auth-gate {
  min-height: 280px;
  display: grid;
  align-content: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 28px;
  border: 1px solid rgba(23, 93, 73, 0.18);
  border-radius: 8px;
  background: var(--panel);
}

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

.auth-gate h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

.auth-gate p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.error-banner {
  margin: 0 0 14px;
  padding: 11px 12px;
  border: 1px solid rgba(159, 58, 47, 0.24);
  border-radius: 8px;
  background: #fff2ee;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.45;
}

.error-banner strong {
  display: block;
  margin-bottom: 3px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.metric {
  min-height: 78px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
}

.metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.metric strong {
  display: block;
  margin-top: 5px;
  font-size: 22px;
  line-height: 1.05;
}

.metric small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.access-board,
.role-workbench-board,
.pilot-ops-board,
.customer-ops-board,
.chairman-dashboard-board,
.growth-radar-board,
.automation-board,
.business-board,
.ops-board {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 16px;
}

.access-grid,
.role-workbench-grid,
.pilot-ops-grid,
.customer-ops-grid,
.chairman-dashboard-grid,
.growth-radar-grid,
.automation-grid,
.business-grid,
.ops-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.role-workbench-board {
  border-color: rgba(23, 93, 73, 0.22);
  background: #fffdf8;
  box-shadow: 0 8px 24px rgba(47, 42, 36, 0.035);
  padding: 10px 12px 12px;
  margin-bottom: 12px;
  min-width: 0;
}

.role-workbench-board .section-title {
  margin-bottom: 8px;
}

.role-workbench-board .section-title h2 {
  font-size: 15px;
}

.role-workbench-board .business-card {
  min-height: 0;
  min-width: 0;
  background: #fffaf1;
  padding: 10px;
}

.role-workbench-board .business-card > strong {
  margin-bottom: 7px;
  font-size: 13px;
}

.role-workbench-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

.role-profile-card {
  grid-column: span 3;
}

.role-workbench-grid > .business-card:nth-child(2) {
  grid-column: span 6;
}

.role-workbench-grid > .business-card:nth-child(3) {
  grid-column: span 12;
  order: 4;
}

.role-workbench-grid > .business-card:nth-child(4) {
  grid-column: span 3;
}

.role-profile-card p {
  margin: -1px 0 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#roleProfileMeta,
#roleHandoffList {
  display: grid;
  gap: 5px;
}

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

#roleProfileMeta .business-item {
  display: block;
  min-width: 0;
  border: 1px solid rgba(232, 223, 210, 0.84);
  border-radius: 7px;
  background: #fffdf8;
  padding: 5px 6px;
}

#roleProfileMeta .business-item strong {
  display: none;
}

#roleProfileMeta .business-item span {
  display: block;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#roleFocusCards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.role-focus-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 6px;
  min-height: 42px;
  padding: 7px 8px;
  border: 1px solid rgba(232, 223, 210, 0.84);
  border-radius: 8px;
  background: #fffaf1;
}

.role-focus-item span,
.role-focus-item small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.role-focus-item strong {
  font-size: 20px;
  line-height: 1;
  color: var(--brand);
}

.role-focus-item small {
  display: none;
}

#roleEntryList {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.role-entry {
  width: 100%;
  display: grid;
  align-content: center;
  gap: 2px;
  text-align: left;
  margin: 0;
  min-height: 36px;
  padding: 7px 8px;
  border: 1px solid rgba(23, 93, 73, 0.2);
  border-radius: 8px;
  background: #f3eadb;
  color: var(--ink);
}

.role-entry:hover {
  border-color: rgba(23, 93, 73, 0.42);
  background: #efe0c8;
}

.role-entry strong {
  font-size: 12px;
  line-height: 1.25;
}

.role-entry span {
  display: none;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workflow-map {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.workflow-lane {
  min-height: 38px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-content: center;
  align-items: center;
  gap: 2px 5px;
  padding: 6px 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf1;
}

.workflow-lane:not(.active) {
  background: #fffdf8;
}

.workflow-lane.active {
  border-color: rgba(23, 93, 73, 0.5);
  background: #eef6ef;
  box-shadow: inset 0 2px 0 var(--brand);
}

.workflow-lane span,
.workflow-lane small,
.workflow-lane p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
}

.workflow-lane strong {
  font-size: 12px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-lane b {
  font-size: 15px;
  color: var(--brand);
}

.workflow-lane small {
  display: none;
}

.workflow-lane p {
  display: none;
}

#roleHandoffList {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.role-chip,
.role-action-note {
  min-width: 0;
  display: grid;
  gap: 2px;
  align-content: center;
  min-height: 28px;
  padding: 4px;
  border: 1px solid rgba(232, 223, 210, 0.84);
  border-radius: 8px;
  background: #fffdf8;
}

.role-chip {
  padding: 3px 2px;
  text-align: center;
}

.role-chip strong,
.role-action-note strong {
  font-size: 11px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-chip strong {
  font-size: 10px;
}

.role-chip span,
.role-action-note span {
  display: none;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.role-action-note {
  grid-column: 1 / -1;
  text-align: left;
  background: #eef6ef;
  border-color: rgba(23, 93, 73, 0.18);
}

.role-workbench-grid > .business-card:nth-child(3) .inline-action {
  min-height: 28px;
  margin-top: 7px;
  padding: 0 12px;
}

.operator-home-shell {
  grid-template-columns: 236px minmax(0, 1fr);
  background: #fffefb;
}

.operator-home-shell .side {
  padding: 17px 13px;
  gap: 18px;
  background: #fffdf8;
}

.operator-home-shell .brand-seal {
  width: 42px;
  height: 42px;
  background: #fffaf1;
}

.operator-home-shell .side nav {
  gap: 14px;
}

.operator-home-shell .side-nav-group {
  gap: 4px;
}

.operator-home-shell .side-nav-group p {
  margin-bottom: 4px;
  color: #8b8174;
}

.operator-home-shell .side nav button {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #312d28;
  font-size: 14px;
}

.operator-home-shell .side nav button::before {
  width: 7px;
  height: 7px;
}

.operator-home-shell .side nav button.active {
  color: #075f49;
  background: #edf5ef;
  box-shadow: inset 4px 0 0 var(--brand);
}

.operator-home-shell .session-panel,
.operator-home-shell .side-ops,
.operator-home-shell .client-link {
  display: none;
}

.operator-home-shell .admin-shell {
  padding: 18px 18px 24px 26px;
  background: #fffefb;
}

.operator-home-shell .admin-top {
  align-items: flex-start;
  margin-bottom: 14px;
}

.operator-home-shell .admin-top > div:first-child {
  display: flex;
  flex-direction: column;
}

.operator-home-shell .admin-top h1 {
  order: 1;
  font-size: 27px;
  line-height: 1.15;
}

.operator-home-shell .admin-top p {
  order: 2;
  margin: 7px 0 0;
  color: #171411;
  font-size: 15px;
  font-weight: 500;
}

.operator-home-shell .top-search,
.operator-home-shell #topBroadcastButton {
  display: none;
}

.operator-home-shell .top-actions {
  gap: 8px;
}

.operator-home-shell .admin-top button,
.operator-home-shell .top-account {
  min-height: 38px;
  border: 1px solid rgba(232, 223, 210, 0.88);
  background: #fffdf8;
  color: #171411;
  box-shadow: 0 8px 20px rgba(48, 42, 35, 0.04);
}

.operator-home-shell #refreshData {
  background: #fffdf8;
  color: #171411;
}

.operator-home-shell .top-account {
  padding-left: 10px;
}

.operator-home-shell .role-workbench-board {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.operator-workbench {
  --operator-green: #087a50;
  --operator-green-soft: #eef8f2;
  --operator-orange: #e46e20;
  --operator-orange-soft: #fff5e9;
  --operator-red: #d9472b;
  --operator-red-soft: #fff0ed;
  --operator-blue: #326bd9;
  --operator-blue-soft: #eef4ff;
  --operator-purple: #6848c8;
  --operator-purple-soft: #f3efff;
  display: grid;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.operator-home-shell .operator-workbench {
  gap: 12px;
}

.operator-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  min-height: 0;
  padding: 0;
}

.operator-home-shell .operator-head {
  display: none;
}

.operator-head > div:first-child {
  display: grid;
  gap: 3px;
}

.operator-head span,
.operator-head small {
  color: var(--muted);
  font-size: 12px;
}

.operator-head strong {
  color: var(--brand);
  font-size: 13px;
  line-height: 1.15;
}

.operator-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.operator-head-actions button {
  min-height: 34px;
  border: 1px solid rgba(23, 93, 73, 0.18);
  border-radius: 8px;
  padding: 0 14px;
  background: #fffdf8;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.operator-head-actions button:first-child {
  border-color: transparent;
  background: var(--brand);
  color: #fffdf8;
}

.operator-kpi-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}

.operator-kpi-card {
  min-width: 0;
  min-height: 104px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-content: center;
  gap: 5px 9px;
  padding: 12px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 8px 24px rgba(47, 42, 36, 0.04);
}

.operator-kpi-icon {
  grid-row: 1 / span 3;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--operator-green-soft);
  border: 9px solid rgba(8, 122, 80, 0.12);
}

.operator-kpi-card.tone-danger .operator-kpi-icon {
  background: var(--operator-red-soft);
  border-color: rgba(217, 71, 43, 0.16);
}

.operator-kpi-card.tone-warn .operator-kpi-icon {
  background: var(--operator-orange-soft);
  border-color: rgba(228, 110, 32, 0.16);
}

.operator-kpi-card.tone-info .operator-kpi-icon {
  background: var(--operator-blue-soft);
  border-color: rgba(50, 107, 217, 0.16);
}

.operator-kpi-card:hover,
.operator-center-card:hover,
.operator-quick-grid button:hover {
  border-color: rgba(23, 93, 73, 0.36);
  background: #f4faf5;
}

.operator-kpi-card span,
.operator-kpi-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.operator-kpi-card strong {
  color: var(--brand);
  font-size: 29px;
  line-height: 1;
}

.operator-kpi-card strong b,
.operator-kpi-card small em {
  margin-left: 3px;
  font-size: 12px;
  font-style: normal;
}

.operator-kpi-card small em {
  color: #d9472b;
  font-weight: 900;
}

.operator-kpi-card.tone-danger strong,
.operator-priority-row.tone-danger em {
  color: var(--operator-red);
}

.operator-kpi-card.tone-warn strong,
.operator-priority-row.tone-warn em {
  color: var(--operator-orange);
}

.operator-kpi-card.tone-info strong,
.operator-priority-row.tone-info em {
  color: var(--operator-blue);
}

.operator-process-panel {
  display: grid;
  gap: 10px;
  padding: 11px 16px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(47, 42, 36, 0.035);
}

.operator-process-centers {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr) 32px minmax(0, 1fr) 32px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.operator-process-centers button,
.operator-process-steps button {
  min-width: 0;
  min-height: 36px;
  border: 1px solid rgba(23, 93, 73, 0.14);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.operator-process-centers button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
}

.operator-process-centers button.active {
  color: var(--brand);
  background: #f4faf5;
}

.operator-process-centers small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.operator-process-centers i {
  height: 1px;
  background: var(--brand);
  position: relative;
}

.operator-process-centers i::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -4px;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--brand);
  border-right: 1px solid var(--brand);
  transform: rotate(45deg);
}

.operator-process-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.operator-process-steps button {
  min-height: 32px;
  color: #171411;
  background: #fffdf8;
  font-size: 12px;
}

.operator-main-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.operator-priority-panel,
.operator-side-stack article,
.operator-support-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(47, 42, 36, 0.035);
}

.operator-priority-panel {
  overflow: hidden;
}

.operator-left-stack {
  grid-column: 1 / span 9;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.operator-side-stack {
  grid-column: 10 / span 3;
  display: grid;
  gap: 10px;
}

.operator-side-stack article {
  display: grid;
  gap: 7px;
  padding: 10px 12px;
}

.operator-side-stack article:nth-child(1) {
  order: 2;
}

.operator-side-stack article:nth-child(2) {
  order: 1;
}

.operator-side-stack article:nth-child(3) {
  order: 3;
}

.operator-side-stack article:nth-child(4) {
  order: 4;
}

.operator-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(232, 223, 210, 0.74);
}

.operator-card-title.compact {
  padding: 0;
  border-bottom: 0;
}

.operator-card-title > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.operator-card-title strong,
.operator-side-stack > article > strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.operator-card-title span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.operator-card-title button,
.operator-confirm-list button,
.operator-priority-row button {
  min-height: 30px;
  border: 1px solid rgba(23, 93, 73, 0.16);
  border-radius: 8px;
  padding: 0 11px;
  background: #f4faf5;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.operator-priority-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.operator-priority-filters button {
  min-height: 28px;
  padding: 0 10px;
  background: #fffdf8;
}

.operator-priority-filters button.active {
  border-color: transparent;
  background: var(--brand);
  color: #fffdf8;
}

.operator-table-head,
.operator-priority-row {
  display: grid;
  grid-template-columns: 1.45fr 1fr 0.92fr 0.82fr 0.8fr 0.9fr 1.75fr 72px;
  gap: 8px;
  align-items: center;
}

.operator-table-head {
  padding: 8px 14px;
  background: #fffaf1;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.operator-priority-list {
  display: grid;
}

.operator-priority-row {
  min-height: 48px;
  padding: 8px 14px;
  border-top: 1px solid rgba(232, 223, 210, 0.68);
}

.operator-priority-row:first-child {
  border-top: 0;
}

.operator-priority-row strong,
.operator-priority-row span,
.operator-priority-row small,
.operator-priority-row em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.operator-priority-row strong {
  font-size: 13px;
  line-height: 1.25;
}

.operator-priority-row span,
.operator-priority-row small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.operator-priority-row em {
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.operator-priority-row.tone-danger {
  background: linear-gradient(90deg, var(--operator-red-soft), #fffdf8 18%);
}

.operator-priority-row.tone-warn {
  background: linear-gradient(90deg, var(--operator-orange-soft), #fffdf8 18%);
}

.operator-empty {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 148px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.operator-confirm-list,
.operator-ai-list,
.operator-notice-list,
.operator-todo-list {
  display: grid;
  gap: 7px;
}

.operator-confirm-list div,
.operator-todo-list div {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.2fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 30px;
}

.operator-confirm-list span,
.operator-confirm-list strong,
.operator-confirm-list p,
.operator-todo-list span,
.operator-todo-list strong,
.operator-todo-list p {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  white-space: nowrap;
}

.operator-confirm-list span,
.operator-confirm-list p,
.operator-todo-list span,
.operator-todo-list p {
  color: var(--muted);
}

.operator-todo-list button {
  min-height: 28px;
  border: 1px solid rgba(23, 93, 73, 0.16);
  border-radius: 8px;
  background: #f4faf5;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.operator-ai-list {
  margin: 0;
  padding-left: 16px;
}

.operator-ai-list li {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.38;
}

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

.operator-quick-grid button {
  min-height: 34px;
  border: 1px solid rgba(23, 93, 73, 0.14);
  border-radius: 8px;
  background: #fffaf1;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.operator-flow-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.operator-center-card {
  min-width: 0;
  min-height: 82px;
  display: grid;
  gap: 4px;
  align-content: center;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  text-align: left;
}

.operator-center-card.active {
  border-color: rgba(23, 93, 73, 0.45);
  background: var(--operator-green-soft);
  box-shadow: inset 0 3px 0 var(--brand);
}

.operator-center-card span,
.operator-center-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.operator-center-card strong {
  color: var(--brand);
  font-size: 24px;
  line-height: 1;
}

.operator-principle-line {
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 93, 73, 0.15);
  border-radius: 8px;
  background: #f4faf5;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.operator-process-panel .operator-principle-line {
  min-height: 20px;
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: 13px;
}

.operator-support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr;
  gap: 12px;
}

.operator-support-grid article {
  display: grid;
  gap: 10px;
  padding: 13px;
  min-height: 162px;
}

.operator-bar-list,
.operator-distribution-list {
  display: grid;
  gap: 9px;
}

.operator-bar-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 8px;
  align-items: center;
}

.operator-bar-list span,
.operator-bar-list strong,
.operator-notice-list span,
.operator-notice-list p {
  font-size: 12px;
  line-height: 1.35;
}

.operator-bar-list span,
.operator-notice-list span,
.operator-notice-list p {
  color: var(--muted);
}

.operator-bar-list i {
  grid-column: 1 / -1;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--operator-green) var(--value), #efe8dc var(--value));
}

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

.operator-distribution-list span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
  padding: 7px 9px;
  border-radius: 8px;
  background: #fffaf1;
  color: var(--muted);
  font-size: 12px;
}

.operator-distribution-list b {
  color: var(--ink);
}

.operator-distribution-list .tone-danger {
  background: var(--operator-red-soft);
}

.operator-distribution-list .tone-warn {
  background: var(--operator-orange-soft);
}

.operator-distribution-list .tone-info {
  background: var(--operator-blue-soft);
}

.operator-notice-list span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.operator-notice-list small {
  white-space: nowrap;
}

.finance-workbench {
  --finance-green: #087a50;
  --finance-green-soft: #eef8f2;
  --finance-blue: #2563eb;
  --finance-blue-soft: #eef4ff;
  --finance-orange: #e46e20;
  --finance-orange-soft: #fff5e9;
  --finance-red: #da4a2f;
  --finance-red-soft: #fff0ed;
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.finance-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.finance-head > div {
  display: grid;
  gap: 4px;
}

.finance-head strong {
  color: var(--brand);
  font-size: 16px;
}

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

.finance-search {
  width: min(100%, 340px);
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--muted);
  font-size: 12px;
}

.finance-search span {
  color: var(--brand);
  font-weight: 900;
}

.finance-search input {
  min-width: 0;
  flex: 1;
  min-height: 30px;
  border: 0;
  outline: 0;
  background: transparent;
}

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

.finance-kpi-card {
  min-width: 0;
  min-height: 94px;
  display: grid;
  gap: 6px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fffdf8;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 8px 24px rgba(47, 42, 36, 0.035);
}

.finance-kpi-card span,
.finance-kpi-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.finance-kpi-card strong {
  color: #17130f;
  font-size: 24px;
  line-height: 1.05;
}

.finance-kpi-card.tone-blue {
  border-color: rgba(37, 99, 235, 0.16);
}

.finance-kpi-card.tone-green {
  border-color: rgba(8, 122, 80, 0.18);
}

.finance-kpi-card.tone-orange {
  border-color: rgba(228, 110, 32, 0.18);
}

.finance-kpi-card.tone-red {
  border-color: rgba(218, 74, 47, 0.18);
}

.finance-kpi-card.active,
.finance-filter-tabs .active {
  border-color: rgba(8, 122, 80, 0.26);
  background: var(--finance-green-soft);
}

.finance-main-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.finance-queue-panel,
.finance-detail-panel,
.finance-exception-card,
.finance-writeback-card,
.finance-analysis-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 8px 24px rgba(47, 42, 36, 0.035);
}

.finance-queue-panel {
  grid-column: 1 / span 9;
  overflow: hidden;
}

.finance-detail-panel {
  grid-column: 10 / span 3;
  grid-row: 1 / span 2;
  padding: 12px;
}

.finance-exception-card {
  grid-column: 1 / span 2;
  padding: 12px;
}

.finance-writeback-card {
  grid-column: 3 / span 4;
  padding: 12px;
}

.finance-analysis-card {
  grid-column: 7 / span 3;
  padding: 12px;
}

.finance-card-title {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.finance-card-title.compact {
  min-height: 32px;
  margin: 0 0 10px;
  padding: 0;
  border-bottom: 0;
}

.finance-card-title strong {
  font-size: 15px;
}

.finance-card-title span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.finance-card-title button,
.finance-actions button,
.finance-table button,
.finance-exception-list button,
.finance-ai-card button {
  min-height: 30px;
  border: 1px solid rgba(23, 93, 73, 0.2);
  border-radius: 8px;
  background: #f4faf5;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.finance-card-title.compact button {
  min-height: 0;
  border: 0;
  background: transparent;
}

.finance-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.finance-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
}

.finance-filter-tabs button {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 11px;
  background: #fffdf8;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.finance-table {
  overflow-x: auto;
}

.finance-table-head,
.finance-row {
  min-width: 790px;
  display: grid;
  grid-template-columns: 22px 42px minmax(62px, 0.7fr) minmax(72px, 0.78fr) minmax(108px, 1.12fr) 76px 72px 76px 74px 66px 58px;
  gap: 6px;
  align-items: center;
}

.finance-table-head {
  padding: 9px 14px;
  background: #f8f3ea;
  color: #665b4e;
  font-size: 12px;
  font-weight: 900;
}

.finance-row {
  padding: 10px 14px;
  border-top: 1px solid rgba(232, 223, 210, 0.72);
  font-size: 12px;
}

.finance-row.active {
  background: #f4faf5;
}

.finance-row strong,
.finance-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-row > span,
.finance-row label {
  color: var(--muted);
}

.finance-row input {
  width: 14px;
  height: 14px;
  accent-color: var(--brand);
}

.finance-priority,
.finance-status {
  display: inline-grid;
  min-width: 44px;
  min-height: 24px;
  place-items: center;
  border-radius: 7px;
  padding: 0 7px;
  font-style: normal;
  font-weight: 900;
}

.finance-priority.tone-high {
  background: var(--finance-red-soft);
  color: var(--finance-red);
}

.finance-priority.tone-medium {
  background: var(--finance-orange-soft);
  color: var(--finance-orange);
}

.finance-priority.tone-low {
  background: var(--finance-green-soft);
  color: var(--finance-green);
}

.finance-status.status-pending {
  background: var(--finance-blue-soft);
  color: var(--finance-blue);
}

.finance-status.status-voucher_missing,
.finance-status.status-returned {
  background: var(--finance-orange-soft);
  color: var(--finance-orange);
}

.finance-status.status-amount_issue {
  background: var(--finance-red-soft);
  color: var(--finance-red);
}

.finance-status.status-confirmed {
  background: var(--finance-green-soft);
  color: var(--finance-green);
}

.finance-pagination {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.finance-pagination strong {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--brand);
  color: #fffdf8;
}

.finance-detail-section {
  display: grid;
  gap: 7px;
  padding: 10px 0;
  border-top: 1px solid rgba(232, 223, 210, 0.72);
  font-size: 12px;
}

.finance-detail-section.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 0;
}

.finance-detail-section span,
.finance-detail-section b {
  display: block;
  min-width: 0;
}

.finance-detail-section span {
  color: var(--muted);
}

.finance-detail-section b {
  margin-top: 2px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-amount-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 10px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.finance-amount-grid span {
  display: grid;
  gap: 4px;
  padding: 10px 8px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.finance-amount-grid span:last-child {
  border-right: 0;
}

.finance-amount-grid b {
  color: var(--ink);
  font-size: 13px;
}

.finance-amount-grid .ok {
  color: var(--finance-green);
}

.finance-amount-grid .danger {
  color: var(--finance-red);
}

.finance-voucher-box {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}

.finance-voucher-box > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.finance-receipt-thumb,
.finance-receipt-missing {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbf7ef;
  font-size: 11px;
}

.finance-receipt-thumb strong {
  font-size: 14px;
}

.finance-receipt-thumb small,
.finance-receipt-missing span {
  color: var(--muted);
}

.finance-receipt-missing {
  grid-column: 1 / -1;
  place-items: center;
  border-style: dashed;
  color: var(--muted);
}

.finance-receipt-missing strong {
  color: var(--brand);
  font-size: 22px;
  line-height: 1;
}

.finance-ai-card {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  border: 1px solid rgba(8, 122, 80, 0.18);
  border-radius: 8px;
  padding: 10px;
  background: #f4faf5;
  font-size: 12px;
}

.finance-ai-card p {
  margin: 0;
  line-height: 1.55;
}

.finance-ai-card span {
  color: var(--muted);
}

.finance-ai-card button {
  justify-self: start;
  min-height: 0;
  border: 0;
  background: transparent;
  padding: 0;
}

.finance-detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.finance-detail-actions button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--brand);
  font-weight: 900;
}

.finance-detail-actions button:first-child {
  grid-column: span 2;
  border-color: transparent;
  background: var(--brand);
  color: #fffdf8;
}

.finance-exception-list {
  display: grid;
  gap: 8px;
}

.finance-exception-list span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50px 62px;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  font-size: 12px;
}

.finance-exception-list strong {
  color: var(--finance-red);
}

.finance-exception-list button {
  min-height: 28px;
}

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

.finance-writeback-flow span {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  background: #fbf7ef;
  text-align: center;
}

.finance-writeback-flow b,
.finance-writeback-flow em {
  overflow-wrap: anywhere;
}

.finance-writeback-flow b {
  font-size: 12px;
}

.finance-writeback-flow em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.finance-writeback-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.finance-analysis-card .finance-card-title div {
  display: flex;
  gap: 6px;
}

.finance-analysis-grid {
  display: grid;
  gap: 10px;
}

.finance-mini-chart {
  height: 126px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  padding-top: 20px;
}

.finance-mini-chart span {
  grid-column: 1 / -1;
  align-self: start;
  color: var(--muted);
  font-size: 11px;
}

.finance-mini-chart i {
  min-height: 10px;
  border-radius: 7px 7px 0 0;
  background: var(--finance-green);
}

.finance-rank-list {
  display: grid;
  gap: 7px;
}

.finance-rank-list span {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 62px;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.finance-rank-list i {
  height: 8px;
  border-radius: 999px;
  background: var(--finance-green);
}

.finance-rank-list em {
  color: var(--muted);
  font-style: normal;
  text-align: right;
}

.finance-donut-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.finance-donut {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: conic-gradient(var(--finance-green) 0 42%, var(--finance-orange) 42% 70%, #b7dbc9 70% 85%, #d8d1c7 85% 100%);
  color: #fffdf8;
  text-align: center;
}

.finance-donut strong,
.finance-donut span {
  grid-area: 1 / 1;
}

.finance-donut strong {
  align-self: center;
  font-size: 12px;
}

.finance-donut span {
  align-self: end;
  margin-bottom: 20px;
  font-size: 10px;
}

.finance-donut-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.manager-decision-workbench {
  --manager-green: #087a50;
  --manager-green-soft: #eef8f2;
  --manager-orange: #d97706;
  --manager-orange-soft: #fff7ed;
  --manager-red: #c2410c;
  --manager-red-soft: #fff1ed;
  display: grid;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.manager-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.manager-head > div:first-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.manager-head span,
.manager-head small {
  color: var(--muted);
  font-size: 12px;
}

.manager-head strong {
  color: var(--ink);
  font-size: 21px;
  line-height: 1.15;
}

.manager-head-actions,
.manager-ai-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.manager-head-actions button,
.manager-ai-actions button,
.manager-card-title button,
.manager-decision-row button {
  min-height: 32px;
  border: 1px solid rgba(23, 93, 73, 0.17);
  border-radius: 8px;
  padding: 0 12px;
  background: #f4faf5;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.manager-head-actions button:first-child,
.manager-decision-row.tone-red button {
  border-color: transparent;
  background: var(--brand);
  color: #fffdf8;
}

.manager-kpi-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.manager-kpi-card,
.manager-center-card,
.manager-ai-panel,
.manager-decision-panel,
.manager-target-panel,
.manager-side-stack article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 8px 24px rgba(47, 42, 36, 0.035);
}

.manager-kpi-card {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px;
  color: var(--ink);
  text-align: left;
}

.manager-kpi-card:hover,
.manager-center-card:hover,
.manager-red-item:hover,
.manager-quick-grid button:hover {
  border-color: rgba(23, 93, 73, 0.34);
  background: #f4faf5;
}

.manager-kpi-card span,
.manager-kpi-card small,
.manager-center-card span,
.manager-ai-panel p,
.manager-ai-priority li,
.manager-card-title span,
.manager-decision-row span,
.manager-decision-row small,
.manager-target-row span,
.manager-target-row small,
.manager-red-item span,
.manager-red-item small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.38;
}

.manager-kpi-card strong {
  color: var(--brand);
  font-size: 24px;
  line-height: 1;
}

.manager-kpi-card.tone-red strong,
.manager-decision-row.tone-red b,
.manager-decision-row.tone-red em,
.manager-target-row.tone-red b,
.manager-red-item.tone-red strong {
  color: var(--manager-red);
}

.manager-kpi-card.tone-yellow strong,
.manager-decision-row.tone-yellow b,
.manager-decision-row.tone-yellow em,
.manager-target-row.tone-yellow b,
.manager-red-item.tone-yellow strong {
  color: var(--manager-orange);
}

.manager-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.72fr);
  gap: 14px;
  align-items: stretch;
}

.manager-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(232, 223, 210, 0.74);
}

.manager-card-title.compact {
  padding: 0;
  border-bottom: 0;
}

.manager-card-title > div:first-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.manager-card-title strong,
.manager-side-stack > article > strong {
  color: var(--ink);
  font-size: 14px;
}

.manager-center-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.manager-center-card {
  display: grid;
  gap: 9px;
  align-content: start;
  padding: 12px;
  color: var(--ink);
  text-align: left;
}

.manager-center-card strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
}

.manager-center-card strong::after {
  content: "绿";
  flex: 0 0 auto;
  min-width: 24px;
  border-radius: 999px;
  padding: 2px 6px;
  background: var(--manager-green-soft);
  color: var(--manager-green);
  font-size: 11px;
  text-align: center;
}

.manager-center-card.tone-yellow strong::after {
  content: "黄";
  background: var(--manager-orange-soft);
  color: var(--manager-orange);
}

.manager-center-card.tone-red strong::after {
  content: "红";
  background: var(--manager-red-soft);
  color: var(--manager-red);
}

.manager-center-card div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.manager-center-card b {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 7px;
  border-radius: 8px;
  background: #fffaf1;
  color: var(--ink);
  font-size: 14px;
}

.manager-center-card b small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.manager-center-card em {
  color: var(--brand);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.manager-ai-panel,
.manager-side-stack article {
  display: grid;
  gap: 11px;
  padding: 13px;
}

.manager-ai-panel p {
  margin: 0;
  padding: 10px;
  border-radius: 8px;
  background: #f4faf5;
  color: #315b4b;
}

.manager-ai-priority {
  display: grid;
  gap: 8px;
}

.manager-ai-priority strong {
  color: var(--ink);
  font-size: 13px;
}

.manager-ai-priority ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.manager-ai-actions {
  justify-content: stretch;
  margin-left: 0;
}

.manager-ai-actions button {
  flex: 1 1 92px;
}

.manager-decision-panel {
  overflow: hidden;
}

.manager-decision-head,
.manager-decision-row {
  display: grid;
  grid-template-columns: 0.54fr 0.9fr 1.6fr 1.1fr 0.78fr 0.72fr 1.7fr 0.72fr 72px;
  gap: 8px;
  align-items: center;
}

.manager-decision-head {
  padding: 9px 14px;
  background: #fffaf1;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.manager-decision-list {
  display: grid;
}

.manager-decision-row {
  min-height: 52px;
  padding: 10px 14px;
  border-top: 1px solid rgba(232, 223, 210, 0.68);
}

.manager-decision-row:first-child {
  border-top: 0;
}

.manager-decision-row.tone-red {
  background: linear-gradient(90deg, var(--manager-red-soft), #fffdf8 18%);
}

.manager-decision-row.tone-yellow {
  background: linear-gradient(90deg, var(--manager-orange-soft), #fffdf8 18%);
}

.manager-decision-row strong,
.manager-decision-row span,
.manager-decision-row small,
.manager-decision-row em,
.manager-target-row strong,
.manager-target-row span,
.manager-target-row small,
.manager-target-row em,
.manager-red-item strong,
.manager-red-item span,
.manager-red-item small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.manager-decision-row strong {
  font-size: 13px;
  line-height: 1.25;
}

.manager-decision-row b,
.manager-decision-row em {
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.manager-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  gap: 14px;
  align-items: start;
}

.manager-target-panel {
  display: grid;
  gap: 10px;
  padding: 13px;
}

.manager-target-head,
.manager-target-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.88fr 0.7fr 0.9fr 1.3fr 0.76fr 1.25fr;
  gap: 8px;
  align-items: center;
}

.manager-target-head {
  padding: 8px 10px;
  border-radius: 8px;
  background: #fffaf1;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.manager-target-list {
  display: grid;
  gap: 6px;
}

.manager-target-row {
  min-height: 44px;
  border: 1px solid rgba(232, 223, 210, 0.7);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fffdf8;
  color: var(--ink);
  text-align: left;
}

.manager-target-row.tone-red {
  border-color: rgba(194, 65, 12, 0.22);
  background: var(--manager-red-soft);
}

.manager-target-row.tone-yellow {
  border-color: rgba(217, 119, 6, 0.22);
  background: var(--manager-orange-soft);
}

.manager-target-row strong,
.manager-target-row b,
.manager-target-row em {
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.manager-side-stack {
  display: grid;
  gap: 12px;
}

.manager-red-list {
  display: grid;
  gap: 8px;
}

.manager-red-item {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(232, 223, 210, 0.76);
  border-radius: 8px;
  padding: 9px;
  background: #fffdf8;
  color: var(--ink);
  text-align: left;
}

.manager-red-item.tone-red {
  border-color: rgba(194, 65, 12, 0.22);
  background: var(--manager-red-soft);
}

.manager-red-item.tone-yellow {
  border-color: rgba(217, 119, 6, 0.22);
  background: var(--manager-orange-soft);
}

.manager-red-item strong {
  font-size: 12px;
  line-height: 1.25;
}

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

.manager-quick-grid button {
  min-height: 34px;
  border: 1px solid rgba(23, 93, 73, 0.14);
  border-radius: 8px;
  background: #fffaf1;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.sales-workbench {
  display: grid;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.sales-hero-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.sales-hero-line strong {
  color: var(--brand);
  font-size: 15px;
}

.sales-hero-line span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.sales-primary-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.sales-primary-actions button {
  min-height: 36px;
  border: 1px solid rgba(23, 93, 73, 0.18);
  border-radius: 8px;
  padding: 0 16px;
  background: #fffdf8;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.sales-primary-actions button:first-child,
.sales-primary-actions button:nth-child(2) {
  border-color: transparent;
  background: var(--brand);
  color: #fffdf8;
}

.sales-kpi-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.sales-kpi-card {
  min-width: 0;
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 8px 24px rgba(47, 42, 36, 0.04);
}

.sales-kpi-card > span {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #eef6ef;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.sales-kpi-card:nth-child(2) > span,
.sales-kpi-card:nth-child(4) > span,
.sales-kpi-card:nth-child(5) > span {
  background: #fff2df;
  color: #b35d16;
}

.sales-kpi-card:nth-child(6) > span {
  background: #f0edff;
  color: #6653a8;
}

.sales-kpi-card small,
.sales-kpi-card em {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
  font-style: normal;
}

.sales-kpi-card strong {
  display: block;
  margin: 2px 0;
  font-size: 24px;
  line-height: 1;
}

.sales-flow-track {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(23, 93, 73, 0.15);
  border-radius: 8px;
  background: #f4faf5;
}

.sales-flow-track button {
  min-width: 0;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #2d5c4c;
  font-size: 12px;
  font-weight: 800;
}

.sales-flow-track button:hover {
  background: #e6f2e8;
}

.sales-flow-track b {
  color: var(--brand);
}

.sales-workbench-main {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.sales-priority-table,
.sales-side-panel article,
.sales-insight-row article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 8px 24px rgba(47, 42, 36, 0.035);
}

.sales-priority-table {
  grid-column: 1 / span 9;
  min-height: 322px;
  overflow: hidden;
}

.sales-table-body {
  min-height: 235px;
}

.sales-side-panel {
  grid-column: 10 / span 3;
  grid-row: 1 / span 3;
}

.sales-card-title {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.sales-card-title strong,
.sales-side-panel article > strong,
.sales-insight-row article > strong {
  font-size: 15px;
}

.sales-card-title button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sales-table-head,
.sales-customer-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.4fr) 108px 110px minmax(120px, 1fr) 96px;
  gap: 10px;
  align-items: center;
}

.sales-table-head {
  padding: 9px 14px;
  background: #f8f0e4;
  color: #665b4e;
  font-size: 12px;
  font-weight: 900;
}

.sales-customer-row {
  padding: 11px 14px;
  border-top: 1px solid rgba(232, 223, 210, 0.72);
  font-size: 12px;
}

.sales-customer-name {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.sales-customer-name > b {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--brand);
  color: #fffdf8;
  font-size: 13px;
}

.sales-customer-name strong,
.sales-customer-name span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-customer-name span,
.sales-customer-row > span {
  color: var(--muted);
}

.sales-stage-pill {
  justify-self: start;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 7px;
  background: #eef6ef;
  color: var(--brand) !important;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-risk {
  color: #b35d16;
  font-size: 12px;
}

.sales-customer-row button,
.sales-todo-item button {
  min-height: 30px;
  border: 1px solid rgba(23, 93, 73, 0.22);
  border-radius: 8px;
  background: #f4faf5;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.sales-side-panel {
  display: grid;
  gap: 12px;
}

.sales-side-panel article {
  padding: 12px;
}

.sales-side-panel .sales-card-title {
  min-height: 34px;
  margin: -4px 0 8px;
  padding: 0;
}

.sales-side-panel .sales-card-title button {
  padding: 0;
}

.sales-side-panel article > strong {
  display: block;
  margin-bottom: 10px;
}

.sales-suggestion-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sales-suggestion-list li {
  position: relative;
  padding-left: 14px;
  color: #3f473f;
  font-size: 12px;
  line-height: 1.55;
}

.sales-suggestion-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand);
}

.sales-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.sales-quick-grid button {
  min-height: 34px;
  border: 1px solid rgba(23, 93, 73, 0.18);
  border-radius: 8px;
  background: #fffdf8;
  color: #2d5c4c;
  font-size: 12px;
  font-weight: 900;
}

.sales-todo-list {
  display: grid;
  gap: 8px;
}

.sales-todo-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.sales-todo-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-voice-bar {
  grid-column: 1 / span 9;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(174, 131, 57, 0.24);
  border-radius: 8px;
  background: #fff7e6;
  color: #594934;
  font-size: 13px;
  font-weight: 800;
}

.sales-voice-bar button {
  min-height: 30px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: var(--brand);
  color: #fffdf8;
  font-weight: 900;
}

.sales-insight-row {
  grid-column: 1 / span 9;
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 14px;
}

.sales-insight-row article {
  display: grid;
  gap: 9px;
  padding: 13px 14px;
}

.sales-insight-line,
.sales-funnel-row,
.sales-notice-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.sales-funnel-row {
  position: relative;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 7px;
  overflow: hidden;
}

.sales-funnel-row::before {
  content: "";
  position: absolute;
  inset: 3px auto 3px 0;
  width: calc(var(--level) * 14%);
  min-width: 34%;
  border-radius: 7px;
  background: rgba(23, 93, 73, 0.14);
}

.sales-funnel-row span,
.sales-funnel-row b,
.sales-notice-line span,
.sales-notice-line small {
  position: relative;
  z-index: 1;
}

.sales-notice-line span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-empty {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 12px;
}

.sales-table-empty {
  min-height: 235px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.sales-table-empty strong {
  color: var(--ink);
  font-size: 16px;
}

.sales-table-empty div {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.sales-table-empty button {
  min-height: 32px;
  border: 1px solid rgba(23, 93, 73, 0.2);
  border-radius: 8px;
  padding: 0 12px;
  background: #f4faf5;
  color: var(--brand);
  font-weight: 900;
}

.class-advisor-workbench {
  --class-green: #087a50;
  --class-green-soft: #eef8f2;
  --class-blue: #356fe8;
  --class-blue-soft: #eef4ff;
  --class-orange: #e46e20;
  --class-orange-soft: #fff5e9;
  --class-purple: #754bd6;
  --class-purple-soft: #f4efff;
  --class-red: #da4a2f;
  --class-red-soft: #fff0ed;
  display: grid;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.class-advisor-head {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.class-advisor-head > div {
  display: grid;
  gap: 4px;
}

.class-advisor-head strong {
  color: var(--brand);
  font-size: 15px;
}

.class-advisor-head span {
  color: var(--muted);
  font-size: 12px;
}

.class-advisor-search {
  width: min(100%, 280px);
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--muted);
  font-size: 12px;
}

.class-advisor-search span {
  color: var(--brand);
  font-weight: 900;
}

.class-advisor-search input {
  min-width: 0;
  flex: 1;
  min-height: 30px;
  border: 0;
  background: transparent;
  outline: none;
}

.class-kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 12px;
}

.class-kpi-card {
  min-width: 0;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 8px 24px rgba(47, 42, 36, 0.035);
}

.class-kpi-card small,
.class-kpi-card em {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  font-style: normal;
}

.class-kpi-card strong {
  display: block;
  margin: 4px 0;
  color: #17130f;
  font-size: 25px;
  line-height: 1;
}

.class-kpi-card > span {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--class-green-soft);
  color: var(--class-green);
  font-size: 13px;
  font-weight: 900;
}

.class-kpi-card.tone-orange > span {
  background: var(--class-orange-soft);
  color: var(--class-orange);
}

.class-kpi-card.tone-blue > span {
  background: var(--class-blue-soft);
  color: var(--class-blue);
}

.class-kpi-card.tone-purple > span {
  background: var(--class-purple-soft);
  color: var(--class-purple);
}

.class-kpi-card.tone-danger > span {
  background: var(--class-red-soft);
  color: var(--class-red);
}

.class-flow-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.class-flow-track button {
  min-width: 0;
  min-height: 50px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.class-flow-track button > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--class-green-soft);
  color: var(--brand);
  font-weight: 900;
}

.class-flow-track strong,
.class-flow-track small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.class-flow-track strong {
  font-size: 13px;
}

.class-flow-track small,
.class-flow-track b {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.class-advisor-main {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.class-student-board,
.class-side-panel article,
.class-chart-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 8px 24px rgba(47, 42, 36, 0.035);
}

.class-student-board {
  grid-column: 1 / span 9;
  overflow: hidden;
}

.class-card-title {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.class-card-title.compact {
  min-height: 34px;
  margin: -2px 0 10px;
  padding: 0;
  border-bottom: 0;
}

.class-card-title strong,
.class-side-panel article > strong,
.class-chart-card > strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.class-card-title span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.class-card-title button,
.class-more-button {
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.class-table-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.class-table-tools select {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--muted);
  padding: 0 10px;
  font-size: 12px;
}

.class-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
}

.class-filter-tabs button {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 11px;
  background: #fffdf8;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.class-filter-tabs .active {
  border-color: rgba(23, 93, 73, 0.2);
  background: var(--class-green-soft);
  color: var(--brand);
}

.class-table-head,
.class-student-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.35fr) minmax(110px, 1fr) minmax(116px, 1fr) 92px minmax(128px, 1.1fr) 96px 96px;
  gap: 10px;
  align-items: center;
}

.class-table-head {
  padding: 9px 14px;
  background: #f8f3ea;
  color: #665b4e;
  font-size: 12px;
  font-weight: 900;
}

.class-student-row {
  padding: 11px 14px;
  border-top: 1px solid rgba(232, 223, 210, 0.72);
  font-size: 12px;
}

.class-student-name {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.class-student-name > b {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(145deg, #e8f4ee, #d6e8df);
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.class-student-name strong,
.class-student-name span,
.class-student-row > span,
.class-student-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.class-student-name span,
.class-student-row > span,
.class-student-row small {
  color: var(--muted);
}

.class-student-row small {
  margin-top: 3px;
  font-size: 11px;
}

.class-pill,
.class-status,
.class-action-button {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 0 9px;
  border: 1px solid rgba(23, 93, 73, 0.12);
  background: var(--class-green-soft);
  color: var(--brand);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.class-pill.tone-warn,
.class-action-button.tone-warn,
.class-status.tone-warn {
  border-color: rgba(228, 110, 32, 0.2);
  background: var(--class-orange-soft);
  color: var(--class-orange);
}

.class-pill.tone-danger,
.class-status.tone-danger {
  border-color: rgba(218, 74, 47, 0.22);
  background: var(--class-red-soft);
  color: var(--class-red);
}

.class-action-button.tone-info,
.class-status.tone-info {
  border-color: rgba(53, 111, 232, 0.2);
  background: var(--class-blue-soft);
  color: var(--class-blue);
}

.class-action-button.tone-mentor,
.class-status.tone-mentor {
  border-color: rgba(117, 75, 214, 0.2);
  background: var(--class-purple-soft);
  color: var(--class-purple);
}

.class-more-button {
  width: 100%;
  min-height: 36px;
  border-top: 1px solid var(--line);
  background: #fffdf8;
}

.class-side-panel {
  grid-column: 10 / span 3;
  grid-row: 1 / span 2;
  display: grid;
  gap: 14px;
}

.class-side-panel article {
  padding: 14px;
}

.class-ai-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.class-ai-list li {
  position: relative;
  padding-left: 14px;
  color: #3f473f;
  font-size: 12px;
  line-height: 1.6;
}

.class-ai-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--class-green);
}

.class-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.class-quick-grid button {
  min-height: 52px;
  border: 1px solid rgba(23, 93, 73, 0.15);
  border-radius: 8px;
  background: #f7fbf8;
  color: var(--brand);
  font-weight: 900;
}

.class-quick-grid button:nth-child(2) {
  border-color: rgba(228, 110, 32, 0.2);
  background: var(--class-orange-soft);
  color: var(--class-orange);
}

.class-quick-grid button:nth-child(3) {
  border-color: rgba(53, 111, 232, 0.2);
  background: var(--class-blue-soft);
  color: var(--class-blue);
}

.class-quick-grid button:nth-child(4) {
  border-color: rgba(117, 75, 214, 0.2);
  background: var(--class-purple-soft);
  color: var(--class-purple);
}

.class-todo-list {
  display: grid;
  gap: 8px;
}

.class-todo-item {
  display: grid;
  grid-template-columns: 18px 42px minmax(0, 1fr) 64px;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.class-todo-item input {
  width: 14px;
  height: 14px;
  accent-color: var(--brand);
}

.class-todo-item strong {
  min-width: 0;
  overflow: hidden;
  color: #3b342d;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.class-todo-item button {
  min-height: 28px;
  border: 1px solid rgba(23, 93, 73, 0.16);
  border-radius: 7px;
  background: #f4faf5;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.class-insight-row {
  grid-column: 1 / span 9;
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1fr 1fr;
  gap: 14px;
}

.class-chart-card {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.class-chart-card > small {
  color: var(--muted);
  font-size: 11px;
}

.class-donut-wrap {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.class-donut {
  width: 108px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: conic-gradient(var(--donut));
  position: relative;
}

.class-donut::after {
  content: "";
  position: absolute;
  inset: 23px;
  border-radius: 999px;
  background: #fffdf8;
}

.class-donut span,
.class-donut b {
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;
}

.class-donut span {
  color: var(--muted);
  font-size: 11px;
}

.class-donut b {
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.class-chart-legend {
  display: grid;
  gap: 6px;
}

.class-chart-legend span,
.class-notice-list span {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.class-chart-legend i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
}

.class-chart-legend b {
  color: var(--ink);
}

.class-line-chart {
  height: 132px;
  position: relative;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(to top, rgba(232, 223, 210, 0.48) 1px, transparent 1px) 0 0 / 100% 33%,
    #fffdf8;
  overflow: hidden;
}

.class-line-chart span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--class-green);
  transform: translate(-50%, -50%);
}

.class-line-chart b {
  position: absolute;
  left: 7%;
  right: 10%;
  height: 2px;
  border-radius: 999px;
  transform-origin: left center;
}

.class-line-chart .line-one {
  top: 47%;
  background: var(--class-green);
  transform: rotate(-5deg);
}

.class-line-chart .line-two {
  top: 64%;
  background: #5f8df7;
  transform: rotate(-7deg);
}

.class-line-chart em,
.class-line-chart i {
  position: absolute;
  right: 4px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.class-line-chart em {
  top: 31%;
  color: var(--class-green);
}

.class-line-chart i {
  top: 61%;
  color: #5f8df7;
}

.class-notice-list {
  display: grid;
  gap: 8px;
}

.class-notice-list span {
  grid-template-columns: 8px minmax(0, 1fr) auto;
}

.class-notice-list span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--class-blue);
}

.class-notice-list .tone-ok::before {
  background: var(--class-green);
}

.class-notice-list .tone-danger::before {
  background: var(--class-red);
}

.class-notice-list .tone-muted::before {
  background: #a8b0b8;
}

.class-notice-list small {
  color: var(--muted);
  font-size: 11px;
}

.delivery-mentor-workbench {
  --delivery-green: #087a50;
  --delivery-green-soft: #edf8f1;
  --delivery-orange: #e97823;
  --delivery-orange-soft: #fff4e7;
  --delivery-red: #dc4d35;
  --delivery-red-soft: #fff0ec;
  --delivery-blue: #2476d8;
  --delivery-blue-soft: #eef6ff;
  --delivery-purple: #7551d5;
  --delivery-purple-soft: #f4efff;
  display: grid;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.delivery-mentor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.delivery-mentor-head > div {
  display: grid;
  gap: 4px;
}

.delivery-mentor-head strong {
  color: var(--brand);
  font-size: 15px;
}

.delivery-mentor-head span,
.delivery-search,
.delivery-card-title span {
  color: var(--muted);
  font-size: 12px;
}

.delivery-search {
  width: min(100%, 320px);
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.delivery-search span {
  color: var(--brand);
  font-weight: 900;
}

.delivery-search input {
  min-width: 0;
  flex: 1;
  min-height: 30px;
  border: 0;
  background: transparent;
  outline: none;
}

.delivery-kpi-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.delivery-kpi-card {
  min-width: 0;
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 8px 24px rgba(47, 42, 36, 0.035);
}

.delivery-kpi-card > span {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--delivery-green-soft);
  color: var(--delivery-green);
  font-size: 13px;
  font-weight: 900;
}

.delivery-kpi-card.tone-orange > span {
  background: var(--delivery-orange-soft);
  color: var(--delivery-orange);
}

.delivery-kpi-card.tone-danger > span {
  background: var(--delivery-red-soft);
  color: var(--delivery-red);
}

.delivery-kpi-card.tone-blue > span {
  background: var(--delivery-blue-soft);
  color: var(--delivery-blue);
}

.delivery-kpi-card.tone-purple > span {
  background: var(--delivery-purple-soft);
  color: var(--delivery-purple);
}

.delivery-kpi-card small,
.delivery-kpi-card em {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-kpi-card strong {
  display: block;
  margin: 3px 0;
  color: #17130f;
  font-size: 25px;
  line-height: 1;
}

.delivery-kpi-card.active {
  border-color: rgba(8, 122, 80, 0.34);
  background: #f4fbf6;
}

.delivery-flow-track {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid rgba(23, 93, 73, 0.14);
  border-radius: 8px;
  background: #fffdf8;
}

.delivery-flow-track button {
  min-width: 0;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #416053;
  font-size: 12px;
  font-weight: 900;
}

.delivery-flow-track button.active {
  background: var(--delivery-green-soft);
  color: var(--delivery-green);
}

.delivery-flow-track b {
  color: #9ca79f;
  font-size: 11px;
}

.delivery-main-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.delivery-queue-panel,
.delivery-focus-panel,
.delivery-side-panel article,
.delivery-timeline-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 8px 24px rgba(47, 42, 36, 0.035);
}

.delivery-queue-panel {
  grid-column: 1 / span 3;
  overflow: hidden;
}

.delivery-focus-panel {
  grid-column: 4 / span 6;
  padding: 14px;
}

.delivery-side-panel {
  grid-column: 10 / span 3;
  display: grid;
  gap: 14px;
}

.delivery-side-panel article {
  padding: 14px;
}

.delivery-timeline-panel {
  grid-column: 1 / -1;
  overflow: hidden;
}

.delivery-card-title {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.delivery-card-title.compact {
  min-height: 32px;
  margin: -2px 0 9px;
  padding: 0;
  border-bottom: 0;
}

.delivery-card-title strong,
.delivery-side-panel article > strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.delivery-card-title button {
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.delivery-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px 14px;
}

.delivery-filter-tabs button {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  background: #fffdf8;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.delivery-filter-tabs button.active {
  border-color: rgba(8, 122, 80, 0.22);
  background: var(--delivery-green-soft);
  color: var(--delivery-green);
}

.delivery-student-list {
  display: grid;
}

.delivery-student-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 18px 36px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 10px 14px;
  border: 0;
  border-top: 1px solid rgba(232, 223, 210, 0.72);
  background: #fffdf8;
  color: var(--ink);
  text-align: left;
}

.delivery-student-item.active,
.delivery-student-item:hover {
  background: #f7fbf8;
}

.delivery-student-item > b {
  color: #d69020;
  font-size: 14px;
}

.delivery-avatar,
.delivery-profile-avatar {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(145deg, #e8f4ee, #d6e8df);
  color: var(--delivery-green);
  font-size: 12px;
  font-weight: 900;
}

.delivery-avatar {
  width: 34px;
  height: 34px;
}

.delivery-student-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.delivery-student-main strong,
.delivery-student-main small,
.delivery-student-main em,
.delivery-student-flags small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-student-main small,
.delivery-student-main em,
.delivery-student-flags small {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.delivery-student-flags {
  grid-column: 3 / 4;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.delivery-student-flags i,
.delivery-mini-list em {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 0 7px;
  background: var(--delivery-green-soft);
  color: var(--delivery-green);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.delivery-mentor-workbench .tone-danger {
  background: var(--delivery-red-soft) !important;
  color: var(--delivery-red) !important;
}

.delivery-mentor-workbench .tone-warn {
  background: var(--delivery-orange-soft) !important;
  color: var(--delivery-orange) !important;
}

.delivery-mentor-workbench .tone-info {
  background: var(--delivery-blue-soft) !important;
  color: var(--delivery-blue) !important;
}

.delivery-mentor-workbench .tone-ok {
  background: var(--delivery-green-soft) !important;
  color: var(--delivery-green) !important;
}

.delivery-mentor-workbench .tone-muted {
  background: #f1f3f1 !important;
  color: var(--muted) !important;
}

.delivery-student-profile {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(23, 93, 73, 0.12);
  border-radius: 8px;
  background: #f8fcf8;
}

.delivery-profile-avatar {
  width: 56px;
  height: 56px;
  font-size: 16px;
}

.delivery-student-profile h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}

.delivery-student-profile p,
.delivery-student-profile strong {
  display: block;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.delivery-student-profile strong {
  color: #315447;
}

.delivery-student-profile button,
.delivery-work-cards footer button,
.delivery-handoff-list button,
.delivery-opportunity-card footer button {
  min-height: 32px;
  border: 1px solid rgba(8, 122, 80, 0.22);
  border-radius: 8px;
  padding: 0 12px;
  background: #f4faf5;
  color: var(--delivery-green);
  font-size: 12px;
  font-weight: 900;
}

.delivery-student-profile button,
.delivery-work-cards footer button:first-child,
.delivery-opportunity-card footer button:first-child {
  border-color: transparent;
  background: var(--delivery-green);
  color: #fffdf8;
}

.delivery-work-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.delivery-work-cards article {
  min-width: 0;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.delivery-mini-list,
.delivery-action-list,
.delivery-handoff-list,
.delivery-ai-list {
  display: grid;
  gap: 8px;
}

.delivery-mini-list > div,
.delivery-handoff-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.delivery-mini-list span,
.delivery-handoff-list span {
  min-width: 0;
  color: #3e443f;
  font-weight: 800;
}

.delivery-mini-list small,
.delivery-handoff-list small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-work-cards footer,
.delivery-opportunity-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.delivery-action-list span {
  display: grid;
  grid-template-columns: 24px 54px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.delivery-action-list b {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--delivery-green-soft);
  color: var(--delivery-green);
  font-size: 10px;
}

.delivery-action-list strong,
.delivery-action-list em {
  min-width: 0;
  overflow: hidden;
  color: #3e443f;
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-action-list small {
  color: var(--muted);
  font-size: 11px;
}

.delivery-ai-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.delivery-ai-list li {
  position: relative;
  padding-left: 14px;
  color: #3f473f;
  font-size: 12px;
  line-height: 1.6;
}

.delivery-ai-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--delivery-green);
}

.delivery-ai-list.compact {
  margin: 8px 0 10px;
}

.delivery-opportunity-card {
  position: relative;
  overflow: hidden;
}

.delivery-score-ring {
  width: 86px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 6px auto 8px;
  border-radius: 999px;
  background: conic-gradient(var(--delivery-green) calc(var(--score) * 1%), #e4ece5 0);
  position: relative;
}

.delivery-score-ring::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 999px;
  background: #fffdf8;
}

.delivery-score-ring span,
.delivery-score-ring strong,
.delivery-score-ring small {
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;
}

.delivery-score-ring span {
  color: var(--delivery-green);
  font-size: 11px;
  font-weight: 900;
}

.delivery-score-ring strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.delivery-score-ring small {
  color: var(--muted);
  font-size: 10px;
}

.delivery-opportunity-card > b {
  display: block;
  color: var(--delivery-orange);
  font-size: 14px;
  text-align: center;
}

.delivery-timeline {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 0;
  padding: 18px 14px 16px;
}

.delivery-timeline span {
  min-width: 0;
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
}

.delivery-timeline span::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(8, 122, 80, 0.28);
}

.delivery-timeline span:first-child::before {
  left: 50%;
}

.delivery-timeline span:last-child::before {
  right: 50%;
}

.delivery-timeline b {
  width: 18px;
  height: 18px;
  position: relative;
  z-index: 1;
  display: block;
  border: 4px solid var(--delivery-green-soft);
  border-radius: 999px;
  background: var(--delivery-green);
}

.delivery-timeline strong,
.delivery-timeline small,
.delivery-timeline em {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-timeline strong {
  color: #314139;
  font-size: 12px;
}

.delivery-timeline em {
  color: var(--muted);
  font-style: normal;
}

.sales-action-panel {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}

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

.sales-action-scrim {
  position: absolute;
  inset: 0;
  background: rgba(28, 24, 20, 0.24);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.sales-action-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(520px, 100vw);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fffdf8;
  border-left: 1px solid rgba(23, 93, 73, 0.16);
  box-shadow: -20px 0 46px rgba(47, 42, 36, 0.16);
  transform: translateX(100%);
  transition: transform 0.22s ease;
}

.sales-action-panel.open {
  pointer-events: auto;
}

.sales-action-panel.open .sales-action-scrim {
  opacity: 1;
}

.sales-action-panel.open .sales-action-drawer {
  transform: translateX(0);
}

.sales-action-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--line);
  background: #fffaf0;
}

.sales-action-header span {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.sales-action-header h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.sales-action-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(23, 93, 73, 0.16);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--brand);
  font-size: 22px;
  line-height: 1;
}

.sales-action-feedback {
  margin: 12px 22px 0;
  padding: 9px 11px;
  border-radius: 8px;
  background: #eef6ef;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.sales-action-feedback.error {
  background: #fff2df;
  color: #a54812;
}

.sales-action-body {
  min-height: 0;
  flex: 1;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px 22px 24px;
  overflow-y: auto;
}

.sales-action-form,
.sales-action-section {
  display: grid;
  gap: 12px;
}

.sales-action-form label {
  display: grid;
  gap: 6px;
  color: #51483e;
  font-size: 12px;
  font-weight: 900;
}

.sales-action-form input,
.sales-action-form select,
.sales-action-form textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(23, 93, 73, 0.16);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
}

.sales-action-form textarea {
  resize: vertical;
  line-height: 1.55;
}

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

.sales-action-form footer {
  position: sticky;
  bottom: -24px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 4px -22px -24px;
  padding: 12px 22px;
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(10px);
}

.sales-action-form footer button,
.sales-action-row button {
  min-height: 34px;
  border: 1px solid rgba(23, 93, 73, 0.2);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--brand);
  color: #fffdf8;
  font-size: 13px;
  font-weight: 900;
}

.sales-action-list {
  display: grid;
  gap: 8px;
}

.sales-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.sales-action-row strong,
.sales-action-row span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.sales-action-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.sales-action-row-buttons {
  display: flex;
  gap: 6px;
}

.sales-action-row-buttons button + button {
  background: #fffdf8;
  color: #a54812;
  border-color: rgba(179, 93, 22, 0.22);
}

.sales-action-empty {
  padding: 18px;
  border: 1px dashed rgba(23, 93, 73, 0.2);
  border-radius: 8px;
  background: #f8fbf7;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.action-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 110;
  max-width: min(360px, calc(100vw - 44px));
  padding: 12px 14px;
  border: 1px solid rgba(23, 93, 73, 0.2);
  border-radius: 8px;
  background: #0f614f;
  color: #fffdf8;
  box-shadow: 0 16px 36px rgba(47, 42, 36, 0.16);
  font-size: 13px;
  font-weight: 900;
}

.action-toast[hidden] {
  display: none;
}

.role-primary-section {
  border-color: rgba(23, 93, 73, 0.22);
}

.ops-grid {
  grid-template-columns: 1.1fr 1fr 1.1fr;
}

.pilot-ops-grid {
  grid-template-columns: 1.1fr 1.2fr 0.9fr;
}

.customer-ops-grid {
  grid-template-columns: 1.35fr 0.95fr 0.95fr 1.05fr;
}

.growth-radar-grid {
  grid-template-columns: 1.15fr 1.15fr 0.9fr;
}

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

.stage-column {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  padding: 8px;
}

.stage-column strong {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
}

.stage-customer {
  display: grid;
  gap: 3px;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid rgba(232, 223, 210, 0.72);
}

.stage-customer span,
.customer-alert span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.stage-customer button {
  min-height: 28px;
  border: 0;
  border-radius: 8px;
  background: #f6dfad;
  color: #133b32;
  font-weight: 700;
}

.customer-alert {
  display: grid;
  gap: 4px;
  padding: 8px 0;
  border-top: 1px solid rgba(232, 223, 210, 0.72);
}

.customer-alert:first-child {
  border-top: 0;
  padding-top: 0;
}

.customer-alert.high strong {
  color: #9f2d22;
}

.management-report-text {
  margin: 8px 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.management-recommendation {
  display: grid;
  gap: 3px;
  padding: 8px 0;
  border-top: 1px solid rgba(232, 223, 210, 0.72);
}

.management-recommendation strong {
  font-size: 13px;
}

.management-recommendation span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.radar-customer,
.radar-action {
  display: grid;
  gap: 4px;
  padding: 8px 0;
  border-top: 1px solid rgba(232, 223, 210, 0.72);
}

.radar-customer:first-child,
.radar-action:first-child {
  border-top: 0;
  padding-top: 0;
}

.radar-customer strong,
.radar-action strong {
  font-size: 13px;
}

.radar-customer span,
.radar-action span,
.radar-cell span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.radar-score-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.radar-score-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 7px;
  background: #fffdfa;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

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

.radar-cell {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  padding: 8px;
}

.radar-cell strong {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}

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

.chairman-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.chairman-controls select,
.chairman-controls button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  color: var(--ink);
  font-size: 12px;
}

.chairman-controls select {
  min-width: 126px;
  padding: 0 8px;
}

.chairman-controls button {
  padding: 0 10px;
  font-weight: 700;
}

.chairman-metric {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  padding: 9px;
  display: grid;
  align-content: space-between;
  gap: 6px;
}

.chairman-metric span,
.chairman-decision span,
.unit-light-row span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.chairman-metric strong {
  font-size: 18px;
}

.chairman-decision,
.unit-light-row,
.chairman-trend-row,
.unit-drilldown-row,
.operating-alert-row,
.operating-review-row {
  display: grid;
  gap: 4px;
  padding: 8px 0;
  border-top: 1px solid rgba(232, 223, 210, 0.72);
}

.chairman-decision:first-child,
.unit-light-row:first-child,
.chairman-trend-row:first-child,
.unit-drilldown-row:first-child,
.operating-alert-row:first-child,
.operating-review-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.chairman-decision.high strong,
.unit-light-row.red strong,
.operating-alert-row.red strong {
  color: #9f2d22;
}

.chairman-decision.medium strong,
.unit-light-row.yellow strong,
.operating-alert-row.yellow strong {
  color: #926600;
}

.unit-light-row {
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 8px;
}

.unit-light-row.selectable {
  width: 100%;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.unit-light-row.selectable.active {
  background: rgba(246, 223, 173, 0.34);
  border-radius: 8px;
  padding-left: 6px;
  padding-right: 6px;
}

.unit-light-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.unit-light-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #a8a29e;
}

.unit-light-row.red .unit-light-dot {
  background: #c2410c;
}

.unit-light-row.yellow .unit-light-dot {
  background: #d97706;
}

.unit-light-row.green .unit-light-dot {
  background: #15803d;
}

.chairman-trend-row strong,
.unit-drilldown-row strong,
.operating-alert-row strong,
.operating-review-row strong {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}

.chairman-trend-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee0c7;
}

.chairman-trend-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #1d6b56;
}

.chairman-trend-row.red .chairman-trend-bar span {
  background: #c2410c;
}

.chairman-trend-row.yellow .chairman-trend-bar span {
  background: #d97706;
}

.unit-drilldown-row span,
.chairman-trend-row span,
.operating-alert-row span,
.operating-alert-row small,
.operating-review-row span,
.operating-review-row small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.operating-alert-row.pending_confirmation small {
  color: #926600;
}

.operating-alert-row.task_created small {
  color: #1d6b56;
}

.operating-alert-row.feedback_completed small {
  color: #315b4b;
}

.operating-feedback-form {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(232, 223, 210, 0.72);
}

.operating-review-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 10px;
}

.operating-review-stat {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 8px;
  border: 1px solid rgba(232, 223, 210, 0.72);
  border-radius: 8px;
  background: #fffdf8;
}

.operating-review-stat span {
  color: var(--muted);
  font-size: 11px;
}

.operating-review-stat strong {
  color: var(--brand);
  font-size: 16px;
}

.operating-review-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}

.operating-review-columns b {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 12px;
}

.operating-review-row.red strong {
  color: #9f2d22;
}

.operating-review-row.yellow strong {
  color: #926600;
}

.operating-insight-summary {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
  padding: 9px;
  border: 1px solid rgba(23, 93, 73, 0.12);
  border-radius: 8px;
  background: var(--class-green-soft);
}

.operating-insight-summary strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.operating-insight-summary span {
  color: var(--muted);
  font-size: 12px;
}

.operating-report-card pre {
  max-height: 220px;
  overflow: auto;
  margin: 10px 0 0;
  padding: 10px;
  border: 1px solid rgba(232, 223, 210, 0.72);
  border-radius: 8px;
  background: #fffdf8;
  color: #3b342c;
  white-space: pre-wrap;
  word-break: break-word;
  font: 12px/1.55 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.automation-grid {
  grid-template-columns: 1.1fr 1fr 1.1fr;
}

.automation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.business-card {
  min-height: 160px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf1;
  padding: 12px;
}

.business-card > strong {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
}

.business-item {
  display: grid;
  gap: 3px;
  padding: 8px 0;
  border-top: 1px solid rgba(232, 223, 210, 0.72);
}

.business-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.business-item strong {
  font-size: 13px;
}

.business-item span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.mini-form {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.mini-form input,
.mini-form select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 0 10px;
}

.mini-form button,
.inline-action {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: white;
  font-weight: 700;
}

.inline-action {
  margin-top: 6px;
  padding: 0 10px;
  background: #f6dfad;
  color: #133b32;
}

.form-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.workspace-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) minmax(260px, 300px);
  gap: 12px;
  align-items: start;
}

.customer-list,
.workspace-panel,
.right-rail {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  min-width: 0;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.section-title h2 {
  margin: 0;
  font-size: 16px;
}

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

.compact {
  margin-top: 16px;
}

.customer-row,
.request-row,
.run-row,
.task-row {
  width: 100%;
  text-align: left;
  display: grid;
  gap: 4px;
  padding: 11px;
  border: 1px solid var(--line);
  background: #fffaf1;
  border-radius: 8px;
  margin-bottom: 8px;
  color: var(--ink);
}

.customer-row.active {
  border-color: var(--brand);
  box-shadow: inset 3px 0 0 var(--brand);
}

.customer-row strong,
.request-row strong,
.run-row strong {
  font-size: 14px;
}

.customer-row span,
.request-row span,
.run-row span,
.message span {
  color: var(--muted);
  font-size: 12px;
}

.message-list {
  height: 380px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf4e8;
}

.message {
  max-width: 82%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
}

.message.assistant {
  margin-left: auto;
  background: #ecf5ef;
  border-color: #cfe5d7;
}

.message.system {
  max-width: none;
  text-align: center;
  color: var(--muted);
  background: transparent;
  border: 0;
}

.composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 10px;
}

.business-action-panel,
.growth-action-panel,
.customer-journey-panel {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.business-action-form,
.growth-action-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.business-action-form input,
.business-action-form select,
.growth-action-form input,
.growth-action-form select {
  min-width: 0;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 0 10px;
}

.business-action-form button,
.growth-action-form button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: var(--brand-2);
  color: white;
  font-weight: 800;
}

.composer input,
.ask-card input {
  min-width: 0;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 0 12px;
  min-height: 42px;
}

.ai-composer button {
  background: var(--brand-2);
}

.request-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.request-filter-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.request-filter-form select,
.batch-request-actions input {
  min-width: 0;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 0 9px;
}

.batch-request-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.batch-request-actions button {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: white;
  font-weight: 800;
  padding: 0 10px;
}

.batch-request-actions button:last-child {
  background: #8b5e34;
}

.request-select-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.request-select-line input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

.journey-list {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
  padding: 4px 2px 4px 10px;
  border-left: 2px solid #d8c9b8;
}

.journey-item {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf1;
}

.journey-item::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand);
}

.journey-item strong {
  font-size: 13px;
}

.journey-item span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.request-actions button {
  min-height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
}

.request-actions button:first-child {
  background: var(--brand);
  color: white;
}

.client-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #e8dfd3;
}

.phone-shell {
  width: min(430px, 100%);
  min-height: 900px;
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  background: var(--paper);
  border: 8px solid #181715;
  box-shadow: 0 22px 60px rgba(45, 35, 23, 0.32);
  padding-bottom: 78px;
}

.statusbar {
  display: flex;
  justify-content: space-between;
  padding: 14px 24px 6px;
  font-weight: 700;
  font-size: 13px;
}

.xiaoru-hero {
  position: relative;
  min-height: 305px;
  padding: 14px 24px;
  overflow: hidden;
}

.client-brand small {
  color: var(--muted);
}

.hero-copy {
  width: 58%;
  margin-top: 28px;
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.16;
  letter-spacing: 0;
}

.hero-copy p {
  margin: 0;
  color: #5f554b;
  line-height: 1.7;
  font-size: 13px;
}

.xiaoru-hero img {
  position: absolute;
  right: -8px;
  bottom: -12px;
  width: 230px;
  max-height: 290px;
  object-fit: contain;
}

.ask-card,
.sage-section,
.tool-section,
.client-answer,
.client-growth {
  margin: 0 16px 12px;
  padding: 14px;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.growth-panel {
  display: grid;
  gap: 8px;
}

.growth-row {
  display: grid;
  gap: 2px;
  padding: 8px 0;
  border-top: 1px solid rgba(232, 223, 210, 0.72);
}

.growth-row:first-child {
  border-top: 0;
}

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

.growth-row span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.ask-card h2 {
  margin: 0 0 10px;
  font-size: 16px;
}

.ask-card form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 8px;
}

.quick-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.quick-chips button {
  background: #f4ead9;
  color: var(--ink);
}

.sage-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.sage-row article,
.tool-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf1;
  padding: 10px;
}

.sage-row strong,
.tool-grid strong {
  display: block;
  font-size: 13px;
}

.sage-row span,
.tool-grid span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.client-messages {
  display: grid;
  gap: 8px;
  max-height: 150px;
  overflow: auto;
}

.client-msg {
  padding: 10px;
  border-radius: 8px;
  background: #f7efe1;
  line-height: 1.55;
  font-size: 13px;
}

.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 66px;
  background: rgba(255, 253, 248, 0.95);
  border-top: 1px solid var(--line);
}

.bottom-nav button {
  border: 0;
  background: transparent;
  color: var(--muted);
}

.bottom-nav .active {
  color: var(--brand);
  font-weight: 800;
}

@media (max-width: 1020px) {
  .admin-page {
    grid-template-columns: 1fr;
  }

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

  .admin-top {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .top-actions {
    width: auto;
    justify-content: flex-end;
  }

  .top-search {
    width: clamp(150px, 22vw, 240px);
    flex-basis: 240px;
  }

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

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

  .access-grid,
  .pilot-ops-grid,
  .customer-ops-grid,
  .chairman-dashboard-grid,
  .growth-radar-grid,
  .automation-grid,
  .business-grid,
  .operating-review-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .role-profile-card,
  .role-workbench-grid > .business-card:nth-child(2),
  .role-workbench-grid > .business-card:nth-child(3),
  .role-workbench-grid > .business-card:nth-child(4) {
    grid-column: span 6;
  }

  #roleFocusCards,
  #roleEntryList,
  #roleHandoffList {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

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

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

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

  .manager-main-grid,
  .manager-bottom-grid {
    grid-template-columns: 1fr;
  }

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

  .operator-main-grid,
  .operator-support-grid {
    grid-template-columns: 1fr;
  }

  .operator-priority-panel,
  .operator-left-stack,
  .operator-side-stack {
    grid-column: 1 / -1;
  }

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

  .operator-process-centers {
    display: flex;
    overflow-x: auto;
  }

  .operator-process-centers button {
    flex: 0 0 190px;
  }

  .operator-process-centers i {
    flex: 0 0 28px;
    align-self: center;
  }

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

  .sales-flow-track {
    display: flex;
    overflow-x: auto;
  }

  .class-flow-track {
    display: flex;
    overflow-x: auto;
  }

  .delivery-flow-track {
    display: flex;
    overflow-x: auto;
  }

  .sales-flow-track button {
    flex: 0 0 132px;
  }

  .class-flow-track button {
    flex: 0 0 178px;
  }

  .delivery-flow-track button {
    flex: 0 0 104px;
  }

  .sales-workbench-main {
    grid-template-columns: 1fr;
  }

  .class-advisor-main {
    grid-template-columns: 1fr;
  }

  .delivery-main-grid {
    grid-template-columns: 1fr;
  }

  .sales-priority-table,
  .sales-side-panel,
  .sales-voice-bar,
  .sales-insight-row {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .class-student-board,
  .class-side-panel,
  .class-insight-row {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .delivery-queue-panel,
  .delivery-focus-panel,
  .delivery-side-panel,
  .delivery-timeline-panel {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .sales-priority-table {
    min-height: 0;
  }

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

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

  .delivery-timeline {
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    overflow-x: auto;
  }

  .sales-table-head {
    display: none;
  }

  .class-table-head {
    display: none;
  }

  .operator-table-head {
    display: none;
  }

  .manager-decision-head,
  .manager-target-head {
    display: none;
  }

  .sales-customer-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .class-student-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .operator-priority-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 10px;
  }

  .manager-decision-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 10px;
  }

  .manager-target-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 10px;
  }

  .sales-customer-row > span,
  .sales-risk {
    grid-column: 1 / -1;
  }

  .class-student-row > span,
  .class-status {
    grid-column: 1 / -1;
  }

  .operator-priority-row > span,
  .operator-priority-row > small,
  .operator-priority-row > em {
    grid-column: 1 / -1;
  }

  .manager-decision-row > span,
  .manager-decision-row > small,
  .manager-decision-row > em,
  .manager-target-row > span,
  .manager-target-row > small,
  .manager-target-row > em {
    grid-column: 1 / -1;
  }

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

@media (max-width: 520px) {
  .client-page {
    padding: 0;
  }

  .phone-shell {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .access-grid,
  .role-workbench-grid,
  .pilot-ops-grid,
  .customer-ops-grid,
  .chairman-dashboard-grid,
  .chairman-card-grid,
  .growth-radar-grid,
  .stage-board,
  .radar-matrix,
  .automation-grid,
  .business-grid,
  .ops-grid,
  .operating-review-summary,
  .operating-review-columns,
  .metric-grid,
  .workflow-map,
  .business-action-form,
    .growth-action-form,
    .request-filter-form,
    .batch-request-actions,
    .operator-kpi-strip,
    .operator-flow-map,
    .operator-process-steps,
    .operator-support-grid,
    .operator-main-grid,
    .manager-kpi-strip,
    .manager-main-grid,
    .manager-center-grid,
    .manager-bottom-grid,
    .manager-quick-grid,
    .delivery-kpi-strip,
    .delivery-work-cards {
    grid-template-columns: 1fr;
  }

  .manager-head {
    align-items: stretch;
  }

  .manager-head-actions {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .manager-head-actions button {
    flex: 1 1 130px;
  }

  .manager-card-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .manager-decision-row,
  .manager-target-row {
    grid-template-columns: 1fr;
  }

  .manager-decision-row > span,
  .manager-decision-row > small,
  .manager-decision-row > em,
  .manager-decision-row > button,
  .manager-target-row > span,
  .manager-target-row > small,
  .manager-target-row > em {
    grid-column: 1 / -1;
  }

  .operator-head {
    align-items: stretch;
  }

  .operator-head-actions {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .operator-head-actions button {
    flex: 1 1 120px;
  }

  .operator-card-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .operator-priority-filters {
    width: 100%;
    justify-content: flex-start;
  }

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

  .operator-priority-row > span,
  .operator-priority-row > small,
  .operator-priority-row > em,
  .operator-priority-row > button {
    grid-column: 1 / -1;
  }

  .operator-confirm-list div {
    grid-template-columns: 1fr;
  }

  .operator-quick-grid,
  .operator-distribution-list {
    grid-template-columns: 1fr;
  }

  .delivery-mentor-head,
  .delivery-student-profile {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .delivery-profile-avatar {
    width: 48px;
    height: 48px;
  }

  .delivery-card-title,
  .delivery-student-profile,
  .delivery-work-cards article,
  .delivery-side-panel article {
    padding-inline: 12px;
  }

  .delivery-student-item {
    grid-template-columns: 18px 32px minmax(0, 1fr);
    padding-inline: 12px;
  }

  .delivery-action-list span {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .delivery-action-list em,
  .delivery-action-list small {
    grid-column: 2 / -1;
  }

  .delivery-timeline {
    grid-template-columns: repeat(9, 120px);
  }

  .admin-shell {
    padding: 16px;
  }

  #roleFocusCards,
  #roleEntryList,
  #roleHandoffList {
    grid-template-columns: 1fr;
  }

  .role-profile-card,
  .role-workbench-grid > .business-card:nth-child(2),
  .role-workbench-grid > .business-card:nth-child(3),
  .role-workbench-grid > .business-card:nth-child(4) {
    grid-column: span 1;
  }

  .side {
    position: sticky;
    top: 0;
    z-index: 20;
    height: auto;
    min-width: 0;
    gap: 8px;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: visible;
  }

  .side .brand {
    padding: 0;
  }

  .brand-seal {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 16px;
  }

  .side nav {
    display: flex;
    gap: 8px;
    max-width: 100%;
    margin: 0 -12px;
    padding: 0 12px 2px;
    overflow-x: auto;
  }

  .side-nav-group {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
  }

  .side-nav-group p,
  .session-panel,
  .side-ops {
    display: none;
  }

  .side nav button {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 7px 10px;
    white-space: nowrap;
  }

  .admin-top h1 {
    font-size: 21px;
    line-height: 1.25;
  }

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

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

  #roleFocusCards,
  #roleEntryList,
  .workflow-map {
    display: flex;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .role-focus-item {
    flex: 0 0 118px;
  }

  #roleEntryList .role-entry {
    flex: 0 0 128px;
  }

  .workflow-lane {
    flex: 0 0 112px;
  }

  .admin-top {
    grid-template-columns: 1fr;
  }

  .top-actions {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    width: 100%;
  }

  .top-account,
  .top-search,
  .top-actions > #refreshData {
    width: 100%;
    flex: 1 1 100%;
  }

  .top-actions > .top-icon-button,
  .top-notification {
    flex: 0 0 40px;
  }

  .top-account {
    order: 3;
    justify-content: space-between;
  }

  .top-actions > #refreshData {
    order: 4;
  }

  .sales-hero-line span {
    white-space: normal;
  }

  .sales-kpi-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .class-advisor-head {
    align-items: stretch;
    flex-direction: column;
  }

  .class-advisor-search {
    width: 100%;
  }

  .class-kpi-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .sales-kpi-card {
    flex: 0 0 168px;
    min-height: 78px;
  }

  .class-kpi-card {
    flex: 0 0 174px;
    min-height: 82px;
  }

  .sales-kpi-card > span {
    width: 34px;
    height: 34px;
  }

  .class-kpi-card > span {
    width: 36px;
    height: 36px;
  }

  .sales-flow-track {
    padding: 6px;
  }

  .class-flow-track {
    padding: 6px;
  }

  .sales-flow-track button {
    flex-basis: 118px;
  }

  .class-flow-track button {
    flex-basis: 158px;
  }

  .sales-priority-table,
  .sales-side-panel article,
  .sales-insight-row article,
  .class-student-board,
  .class-side-panel article,
  .class-chart-card {
    box-shadow: none;
  }

  .sales-card-title,
  .class-card-title {
    min-height: 38px;
    padding: 0 10px;
  }

  .class-card-title {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px;
  }

  .class-table-tools {
    width: 100%;
  }

  .class-table-tools select {
    flex: 1;
  }

  .sales-customer-row {
    padding: 10px;
  }

  .class-filter-tabs,
  .class-student-row {
    padding: 10px;
  }

  .sales-customer-row button {
    min-width: 74px;
  }

  .class-action-button {
    min-width: 86px;
  }

  .sales-quick-grid,
  .sales-kpi-strip,
  .sales-flow-track,
  .class-quick-grid,
  .class-kpi-strip,
  .class-flow-track {
    scrollbar-width: thin;
  }

  .class-side-panel {
    grid-template-columns: 1fr;
  }

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

  .class-donut-wrap {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .class-donut {
    width: 96px;
  }

  .class-todo-item {
    grid-template-columns: 18px 40px minmax(0, 1fr);
  }

  .class-todo-item button {
    grid-column: 3;
    justify-self: start;
  }

  .sales-action-drawer {
    width: 100vw;
  }

  .sales-action-header,
  .sales-action-body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .sales-action-grid,
  .sales-action-row {
    grid-template-columns: 1fr;
  }

  .sales-action-row-buttons,
  .sales-action-form footer {
    justify-content: stretch;
  }

  .sales-action-row-buttons button,
  .sales-action-form footer button {
    flex: 1 1 0;
  }

  .top-user-text {
    min-width: 0;
  }

  .top-user-text span,
  .top-user-text strong {
    max-width: calc(100vw - 128px);
  }

  .top-popover {
    width: min(320px, calc(100vw - 48px));
  }
}

/* 第九阶段客户侧原型精修 */
.client-page {
  background:
    linear-gradient(180deg, #dfe8df 0%, #f2eadb 48%, #e9efea 100%);
  align-items: start;
}

.phone-shell {
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #f9f3e8;
  scrollbar-width: none;
}

.phone-shell::-webkit-scrollbar {
  display: none;
}

.statusbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(249, 243, 232, 0.94);
  backdrop-filter: blur(12px);
}

.xiaoru-hero {
  min-height: 356px;
  padding: 16px 22px 20px;
  background:
    linear-gradient(120deg, rgba(255, 252, 244, 0.96), rgba(235, 242, 235, 0.84)),
    url("/static/assets/xiaoru-ip.png");
  background-repeat: no-repeat;
  background-position: right -30px bottom -22px;
  background-size: 260px auto;
  border-bottom: 1px solid rgba(33, 70, 58, 0.12);
}

.xiaoru-hero::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 14px;
  height: 1px;
  background: rgba(169, 122, 52, 0.32);
}

.xiaoru-hero img {
  right: -18px;
  bottom: 8px;
  width: 260px;
  max-height: 330px;
  filter: drop-shadow(0 18px 24px rgba(38, 54, 45, 0.22));
}

.client-brand {
  position: relative;
  z-index: 2;
}

.client-brand .brand-seal {
  width: 38px;
  height: 38px;
  border-color: rgba(23, 93, 73, 0.28);
  background: #fff8e8;
}

.hero-badge {
  position: absolute;
  top: 72px;
  left: 22px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(23, 93, 73, 0.18);
  border-radius: 8px;
  color: var(--brand);
  background: rgba(255, 252, 244, 0.86);
  font-size: 12px;
  font-weight: 700;
}

.hero-copy {
  z-index: 2;
  width: 54%;
  margin-top: 54px;
}

.hero-copy h1 {
  font-size: 35px;
  line-height: 1.12;
}

.hero-copy p {
  color: #4e5b50;
  font-size: 13px;
}

.hero-proof {
  position: absolute;
  left: 22px;
  right: 148px;
  bottom: 34px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.hero-proof span {
  min-width: 0;
  padding: 7px 6px;
  border: 1px solid rgba(23, 93, 73, 0.16);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.74);
  color: #28483d;
  font-size: 11px;
  text-align: center;
  white-space: nowrap;
}

.hero-side-note {
  position: absolute;
  z-index: 2;
  writing-mode: vertical-rl;
  letter-spacing: 0;
  color: #f6efe2;
  background: #175d49;
  border-radius: 6px;
  padding: 8px 5px;
  font-size: 12px;
}

.hero-side-note.left {
  left: 174px;
  top: 132px;
}

.hero-side-note.right {
  right: 16px;
  top: 154px;
  background: #a97a34;
}

.ask-card,
.sage-section,
.tool-section,
.recommend-section,
.client-answer,
.client-growth {
  margin: 0 14px 12px;
  padding: 13px;
  border-radius: 8px;
  border: 1px solid rgba(218, 207, 190, 0.88);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 8px 22px rgba(52, 42, 31, 0.06);
}

.ask-card {
  margin-top: -6px;
}

.ask-card form {
  grid-template-columns: minmax(0, 1fr) 52px;
}

.ask-card input {
  background: #fbf8f2;
  border-color: rgba(23, 93, 73, 0.14);
}

.ask-card button[type="submit"] {
  background: #175d49;
  font-weight: 800;
}

.quick-chips button {
  min-height: 34px;
  padding: 0 8px;
  background: #eef4ed;
  color: #21463a;
  border: 1px solid rgba(23, 93, 73, 0.12);
  font-size: 12px;
}

.sage-row article {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 4px;
  background: #fffaf0;
}

.sage-row b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #f9f3e8;
  background: #28483d;
  font-size: 18px;
}

.tool-grid article,
.recommend-row article {
  background: #f8fbf5;
  border-color: rgba(23, 93, 73, 0.13);
}

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

.recommend-row article {
  min-height: 84px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(218, 207, 190, 0.88);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(239, 244, 235, 0.86));
}

.recommend-row strong {
  display: block;
  font-size: 12px;
  line-height: 1.35;
}

.recommend-row span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.client-msg {
  background: #edf4eb;
  border: 1px solid rgba(23, 93, 73, 0.1);
}

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

.growth-row {
  min-height: 58px;
  padding: 8px;
  border: 1px solid rgba(232, 223, 210, 0.72);
  border-radius: 8px;
  background: #fffaf1;
}

.growth-row:first-child {
  border-top: 1px solid rgba(232, 223, 210, 0.72);
}

.bottom-nav {
  position: sticky;
  z-index: 6;
  height: 68px;
  background: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(14px);
}

.bottom-nav button {
  display: grid;
  place-items: center;
  min-height: 66px;
  font-size: 12px;
}

.bottom-nav .active span {
  min-width: 42px;
  padding: 7px 8px;
  border-radius: 8px;
  background: #eef4ed;
}

@media (max-width: 520px) {
  .phone-shell {
    max-height: none;
    min-height: 100vh;
  }

  .xiaoru-hero {
    min-height: 340px;
    background-position: right -54px bottom -12px;
    background-size: 252px auto;
  }

  .xiaoru-hero img {
    right: -42px;
    width: 252px;
  }

  .hero-copy {
    width: 58%;
  }

  .hero-copy h1 {
    font-size: 31px;
  }

  .hero-proof {
    right: 126px;
  }

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

  .growth-panel {
    grid-template-columns: 1fr;
  }
}
