:root {
  --bg: #f6f8fb;
  --panel: #ffffff;
  --panel-soft: #fafbfc;
  --border: #e9edf3;
  --border-strong: #dfe5ee;
  --text: #172033;
  --muted: #6e7787;
  --subtle: #98a2b3;
  --brand: #08111f;
  --accent: #020a15;
  --accent-soft: #eef2f7;
  --blue: #2b6df6;
  --danger: #e04646;
  --green: #20a06b;
  --shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    opacity 0.18s ease;
}

button:active,
.button:active,
.menu-item:active {
  transform: translateY(1px) scale(0.99);
}

::selection {
  color: #fff;
  background: #111827;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px 0 26px;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-logo {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
  border-radius: 7px;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.04);
}

.brand-name {
  font-size: 18px;
}

.top-links {
  display: none;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.muted-link,
.top-link-button {
  border: 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.muted-link:hover,
.top-link-button:hover {
  color: var(--text);
}

.user-menu {
  position: relative;
}

.user-trigger {
  min-width: 214px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text);
  background: #fff;
  cursor: pointer;
}

.user-trigger:hover,
.user-menu.open .user-trigger {
  border-color: var(--border);
  background: #f8fafc;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.06);
}

.user-avatar {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: #111827;
  font-size: 13px;
  font-weight: 800;
}

.user-avatar.large {
  width: 40px;
  height: 40px;
  font-size: 15px;
}

.user-meta {
  min-width: 0;
  display: grid;
  gap: 1px;
  text-align: left;
}

.user-name {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.user-email {
  max-width: 130px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chevron {
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 1.5px solid #8b95a5;
  border-bottom: 1.5px solid #8b95a5;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.16s ease;
}

.user-menu.open .chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  width: 248px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0.16s ease;
  visibility: hidden;
}

.user-menu.open .user-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.dropdown-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}

.dropdown-profile strong,
.dropdown-profile small {
  display: block;
}

.dropdown-profile strong {
  font-size: 14px;
}

.dropdown-profile small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.dropdown-item {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 11px;
  border: 0;
  border-radius: 6px;
  color: #394150;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.dropdown-item:hover {
  background: #f4f6f9;
  color: var(--text);
  transform: translateX(2px);
}

.dropdown-item.logout {
  color: var(--danger);
}

.logout-banner {
  display: none;
  align-items: center;
  gap: 10px;
  max-width: 1120px;
  margin: 0 0 18px;
  padding: 13px 16px;
  border: 1px solid #d8eadf;
  border-radius: 8px;
  color: #136847;
  background: #f1fbf5;
}

.logout-banner.show {
  display: flex;
}

.logout-banner::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}

.workspace {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: calc(100vh - 64px);
}

.sidebar {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 64px);
  padding: 18px 14px 20px;
  background: var(--panel);
  border-right: 1px solid var(--border);
}

.menu {
  flex: 1;
}

.menu-section {
  margin-bottom: 8px;
}

.menu-heading {
  height: 40px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: #394150;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  text-align: left;
}

.menu-heading::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-right: 1.6px solid #9aa3b2;
  border-bottom: 1.6px solid #9aa3b2;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease;
}

.menu-heading:hover {
  color: var(--text);
  background: #f7f9fb;
}

.menu-heading:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.menu-section:not(.is-open) .menu-heading::after {
  transform: rotate(-45deg);
}

.menu-items {
  max-height: 100px;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition:
    max-height 0.22s ease,
    opacity 0.18s ease,
    transform 0.18s ease;
}

.menu-section:not(.is-open) .menu-items {
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}

.menu-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  position: relative;
}

.settings-icon {
  border: 2px solid #111827;
  border-radius: 50%;
}

.settings-icon::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #111827;
}

.billing-icon {
  border: 1.8px solid #9aa3b2;
  border-radius: 4px;
}

.billing-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 5px;
  border-top: 1.8px solid #9aa3b2;
}

.subscribe-icon {
  border-radius: 4px;
  background: linear-gradient(135deg, #a3adb9, #687386);
}

.notification-icon {
  border: 1.8px solid #9aa3b2;
  border-radius: 8px 8px 5px 5px;
}

.notification-icon::after {
  content: "";
  position: absolute;
  left: 5px;
  bottom: -3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9aa3b2;
}

.menu-item {
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
  margin: 2px 0 2px 30px;
  padding: 0 14px;
  color: #626b7b;
  border-radius: 8px;
  transition: background 0.16s ease, color 0.16s ease;
}

.menu-item:hover {
  color: var(--text);
  background: #f4f6f9;
  transform: translateX(2px);
}

.menu-item.active {
  color: var(--accent);
  background: #eef1f5;
  font-weight: 600;
}

.menu-item.active::before {
  content: "";
  position: absolute;
  left: 8px;
  width: 4px;
  height: 16px;
  border-radius: 999px;
  background: #111827;
}

.button.dark:hover,
.login-submit:hover {
  background: #172033;
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.16);
}

.community {
  margin-top: 8px;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.community-quote {
  max-width: 210px;
  margin: 16px auto 0;
  padding: 0 12px;
  color: #4a5568;
  font-size: 13px;
  line-height: 1.65;
  text-align: center;
}

.qr-image {
  width: 92px;
  height: 92px;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  border: 8px solid #fff;
  box-shadow: 0 0 0 1px var(--border);
}

.community-caption {
  font-size: 13px;
}

.content {
  min-width: 0;
  padding: 34px 42px 48px;
}

.content:focus {
  outline: none;
}

.page {
  max-width: 1120px;
  animation: pageIn 0.34s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.page-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0;
}

.page-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.section-card {
  padding: 24px;
  margin-bottom: 18px;
}

.section-card:hover,
.metric:hover,
.plan-card:hover {
  border-color: #d7dee9;
  box-shadow: 0 16px 34px rgba(16, 24, 40, 0.08);
  transform: translateY(-1px);
}

.card-title {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 700;
}

.field-list {
  display: grid;
  gap: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 46px;
}

.field-label {
  color: var(--muted);
}

.field-value {
  min-width: 0;
  color: var(--text);
  word-break: break-word;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  color: #6a7280;
  background: #f0f2f5;
  font-size: 13px;
}

.action-link {
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-weight: 600;
}

.action-link.danger {
  color: var(--danger);
}

.action-link.is-copied {
  color: var(--green);
}

.action-link:disabled {
  cursor: wait;
  opacity: 0.65;
}

.verified-note {
  color: var(--green);
  font-weight: 700;
}

.enterprise-summary {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.enterprise-summary strong {
  font-weight: 700;
}

.button {
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--text);
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.button:hover {
  border-color: #cfd7e3;
  background: #f8fafc;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.06);
  transform: translateY(-1px);
}

.button.dark {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.button:active {
  transform: translateY(1px);
}

.ui-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button.ghost {
  background: var(--panel-soft);
}

.button.danger {
  color: var(--danger);
  border-color: #f0c8c8;
  background: #fffafa;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

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

.select-box {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

.select-box:focus {
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
  outline: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.36);
}

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

.wecom-login-modal { width: min(100%, 580px); max-height: calc(100dvh - 40px); overflow-y: auto; }
.wecom-login-modal .wecom-qr img { flex: 0 0 200px; width: 200px; height: 200px; background: #fff; }
.wecom-login-modal .wecom-qr > div { min-width: 0; flex: 1; }
.wecom-login-modal .wecom-qr input { width: 100%; min-width: 0; }
.wecom-account-list { border-top: 1px solid var(--border); }
.wecom-list-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.wecom-list-header h2 { margin: 0; font-size: 16px; }
.wecom-list-header h2 span { margin-left: 8px; color: var(--muted); }
.wecom-list-header > div { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 13px; }
.wecom-account-identity { display: flex; align-items: center; gap: 12px; min-width: 180px; }
.wecom-account-identity img, .wecom-account-avatar { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 6px; object-fit: cover; }
.wecom-account-avatar { display: grid; place-items: center; background: #e8f6ef; color: #247a5e; }
.wecom-account-list table { min-width: 590px; }
.wecom-account-list th, .wecom-account-list td { padding: 14px 10px; }
.wecom-account-list th, .wecom-account-list td:nth-child(2) { white-space: nowrap; }
.wecom-account-list .task-actions { display: grid; grid-template-columns: repeat(2, 86px); align-content: center; gap: 6px; min-width: 178px; }
.wecom-account-list .task-actions .button { display: flex; width: 86px; height: 27px; padding: 0 7px; margin: 0; gap: 5px; border-radius: 4px; font-size: 11px; font-weight: 500; }
.wecom-action-icon { display: inline-block; width: 13px; height: 13px; flex: 0 0 13px; background: currentColor; mask: var(--wecom-action-image) center / contain no-repeat; -webkit-mask: var(--wecom-action-image) center / contain no-repeat; }
.wecom-action-icon.icon-details { --wecom-action-image: url("../images/lucide/file-text.svg"); }
.wecom-action-icon.icon-login { --wecom-action-image: url("../images/lucide/log-in.svg"); }
.wecom-action-icon.icon-logout { --wecom-action-image: url("../images/lucide/log-out.svg"); }
.wecom-action-icon.icon-refresh { --wecom-action-image: url("../images/lucide/refresh-cw.svg"); }
.wecom-account-list .button:disabled { color: #a3a9b2; background: #f2f3f5; border-color: #e7e9ed; cursor: not-allowed; box-shadow: none; transform: none; }
.wecom-account-list .wecom-account-identity { min-width: 150px; gap: 8px; }
.wecom-account-list .wecom-account-identity img, .wecom-account-list .wecom-account-avatar { width: 32px; height: 32px; flex-basis: 32px; }
.wecom-account-list .wecom-account-identity .table-sub { max-width: 115px; overflow: hidden; text-overflow: ellipsis; }
.wecom-detail-status { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid var(--border); font-size: 13px; }
.wecom-detail-status .button { margin-left: auto; }
.wecom-groups-section { margin: 8px 0 24px; }
.wecom-groups-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 0; }
.wecom-groups-toolbar h2 { margin: 0; font-size: 16px; }
.wecom-groups-toolbar h2 span { margin-left: 10px; font-size: 12px; font-weight: 500; color: var(--muted); }
.wecom-groups-toolbar > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wecom-groups-toolbar input { width: 200px; max-width: 100%; height: 34px; padding: 0 10px; border: 1px solid var(--border); border-radius: 5px; font: inherit; font-size: 12px; }
.wecom-groups-table { min-width: 420px; table-layout: fixed; }
.wecom-groups-table th { white-space: nowrap; }
.wecom-groups-table th:nth-child(1) { width: 64px; }
.wecom-groups-table th:nth-child(2) { width: 80px; }
.wecom-groups-table th:nth-child(4) { width: 100px; }
.wecom-groups-table td { overflow-wrap: anywhere; }
.wecom-group-thumb { display: grid; width: 42px; height: 42px; border-radius: 6px; object-fit: cover; }
.wecom-group-placeholder { place-items: center; background: #eaf0f5; color: #52697d; font-size: 16px; font-weight: 600; }
.wecom-groups-pagination { display: flex; align-items: center; gap: 14px; padding-top: 12px; color: var(--muted); font-size: 12px; flex-wrap: wrap; }
.wecom-groups-pagination > div { display: flex; gap: 8px; margin-left: auto; }
.wecom-groups-section .button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.reward-template-list { border-top: 1px solid var(--border); }
.reward-template-list-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; font-size: 13px; color: var(--muted); }
.reward-template-icon { display: block; width: 14px; height: 14px; flex: 0 0 14px; }
.button.dark .reward-template-icon { filter: invert(1); }
.reward-template-table { min-width: 640px; }
.reward-template-table th { white-space: nowrap; }
.reward-template-table td { font-size: 13px; }
.reward-template-money { color: #21765a; font-weight: 650; white-space: nowrap; }
.reward-template-remark { max-width: 260px; overflow-wrap: anywhere; white-space: pre-wrap; }
.reward-template-row-actions { display: flex; gap: 6px; }
.reward-template-row-actions .button { width: 28px; height: 28px; padding: 0; border-radius: 4px; }
.reward-template-modal { width: min(100%, 500px); max-height: calc(100dvh - 32px); overflow-y: auto; }
.reward-template-fields { display: grid; gap: 18px; }
.reward-template-fields label { display: grid; gap: 7px; min-width: 0; font-size: 13px; }
.reward-template-fields input, .reward-template-fields select, .reward-template-fields textarea { width: 100%; min-width: 0; border: 1px solid var(--border-strong); border-radius: 5px; padding: 9px 10px; font: inherit; background: #fff; color: var(--text); }
.reward-template-fields textarea { resize: vertical; min-height: 76px; }
.reward-template-field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.reward-template-validity { display: grid; grid-template-columns: minmax(0, 1fr) 78px; gap: 7px; }
.reward-template-modal .modal-actions { margin-top: 16px; }
.reward-template-modal .form-message:empty { display: none; }
.reward-template-modal .form-message { margin: 12px 0 0; }
.reward-template-danger { color: #a33737; border-color: #e4bcbc; background: #fff5f5; }
.reward-template-delete-message { overflow-wrap: anywhere; line-height: 1.6; }
.wecom-group-members-link { display: inline-block; margin-left: 12px; color: #26755b; font-size: 12px; font-weight: 500; white-space: nowrap; }
.wecom-member-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 20px 0; }
.wecom-member-toolbar h2 { margin: 0; font-size: 16px; }
.wecom-member-toolbar h2 span { margin-left: 8px; font-size: 12px; color: var(--muted); }
.wecom-member-toolbar > div { display: flex; gap: 10px; flex-wrap: wrap; }
.wecom-member-toolbar input { width: 200px; height: 34px; padding: 0 10px; border: 1px solid var(--border); border-radius: 5px; font: inherit; font-size: 12px; }
.wecom-customer-status { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--border); padding: 16px 0; flex-wrap: wrap; }
.wecom-customer-status > div { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.wecom-customer-status small { color: var(--muted); font-size: 11px; }
.wecom-member-table { min-width: 590px; }
.member-association-field { display: grid; gap: 8px; font-size: 13px; }
.member-association-field input, .member-association-field select { height: 36px; padding: 0 10px; border: 1px solid var(--border); border-radius: 5px; min-width: 0; width: 100%; background: #fff; font: inherit; }
.reward-recipient { display: flex; gap: 16px; align-items: center; margin: 0 0 20px; font-size: 13px; color: var(--muted); }
.reward-recipient strong { color: var(--text); }
.reward-template-preview { display: flex; gap: 16px; flex-wrap: wrap; margin: 16px 0; font-size: 13px; }
.reward-template-preview p { width: 100%; margin: 0; color: var(--muted); white-space: pre-wrap; }
.reward-test-notice { font-size: 12px; line-height: 1.6; color: #86652f; }
.reward-created-link { width: 100%; min-width: 0; height: 34px; border: 1px solid var(--border); border-radius: 4px; padding: 0 8px; font-size: 11px; }
.wecom-member-table th { white-space: nowrap; }
.wecom-member-table .wecom-account-identity { min-width: 170px; }
.wecom-member-table td:nth-child(5) { max-width: 240px; overflow-wrap: anywhere; }
.wecom-member-section .button:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.reward-template-modal .button:disabled, .reward-template-list .button:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }
@media (max-width: 480px) { .reward-template-field-pair { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .wecom-login-modal .wecom-qr { flex-direction: column; align-items: stretch; }
  .wecom-login-modal .wecom-qr img { flex-basis: auto; align-self: center; }
}

.modal {
  width: min(100%, 420px);
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

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

.modal-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.modal-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text);
  background: #f8fafc;
}

.enterprise-modal {
  width: min(100%, 520px);
}

.password-form,
.enterprise-form {
  display: grid;
  gap: 14px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.callout {
  display: flex;
  gap: 12px;
  padding: 15px 16px;
  border-radius: 8px;
  color: #3f4959;
  background: #f5f7fb;
  border: 1px solid var(--border);
  margin-bottom: 18px;
}

.callout-mark {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #111827;
  font-size: 12px;
  font-weight: 700;
}

.callout.send-submitted {
  color: #1f6a45;
  background: #effaf4;
  border-color: #c4e9d3;
}

.callout.send-submitted .callout-mark {
  background: #23945a;
}

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

.group-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  font-weight: 600;
}

.group-name img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--accent-soft);
}

.group-section-label {
  display: flex;
  align-items: center;
  gap: 9px;
}

.group-section-label > span {
  padding: 3px 8px;
  border-radius: 999px;
  color: #506176;
  background: #eff3f7;
  font-size: 12px;
  font-weight: 650;
}

.group-toolbar {
  align-items: flex-end;
}

.group-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.group-search {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 190px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.group-search:focus-within {
  border-color: #9ab0c9;
  box-shadow: 0 0 0 3px rgba(43, 109, 246, .1);
}

.group-search svg {
  width: 16px;
  height: 16px;
  margin-left: 11px;
  flex: 0 0 auto;
  fill: none;
  stroke: #718198;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.group-search input {
  width: 100%;
  height: 100%;
  padding: 0 10px 0 8px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
  font-size: 13px;
}

.group-search input::placeholder {
  color: #8795a8;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.group-card {
  min-height: 176px;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(145deg, #fff 0%, #fafbfd 100%);
  box-shadow: 0 1px 1px rgba(16, 24, 40, 0.02);
}

.group-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.group-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.group-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 13px;
  object-fit: cover;
  background: var(--accent-soft);
}

.group-avatar-fallback {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid #d8e1ee;
  color: #45607e;
  background: linear-gradient(145deg, #eef4fb 0%, #e3ebf5 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.group-avatar-fallback::before,
.group-avatar-fallback::after {
  content: none;
}

.group-avatar-fallback span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  color: #3f5874;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  transform: translateX(0.02em);
}

.group-card-title {
  min-width: 0;
}

.group-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.group-card-title h3 {
  overflow: hidden;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 0 5px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-name-edit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #62738b;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
}

.group-name-edit:hover {
  color: var(--accent);
  background: #edf3fa;
}

.group-name-edit svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.group-member-count {
  color: #52705f;
  font-size: 12px;
  font-weight: 650;
}

.group-card-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0 auto;
}

.group-card-details div {
  min-width: 0;
}

.group-card-details span,
.group-card-foot {
  display: block;
  color: var(--subtle);
  font-size: 11px;
}

.group-card-details strong {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: #4a5568;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-card-details strong.current-wecom {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  line-height: 22px;
}

.current-wecom-avatar {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  background: #e8eff7;
}

.current-wecom-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3f5874;
  font-size: 11px;
}

.current-wecom em {
  display: block;
  overflow: hidden;
  color: #344866;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-card-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.sync-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.group-directory-note {
  margin: 15px 0 0;
  color: var(--subtle);
  font-size: 12px;
}

.group-empty {
  min-height: 190px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}

.group-empty .empty-graphic {
  margin: 0;
}

.task-modal {
  width: min(100%, 720px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

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

.wecom-connection-card .page-subtitle {
  margin: 7px 0 0;
}

.wecom-connection-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wecom-status-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #aab4c2;
  color: #fff;
}

.wecom-status-mark .ui-icon { width: 12px; height: 12px; stroke-width: 2.5; }
.wecom-connection-status.online { color: #177c58; }
.wecom-connection-status.online .wecom-status-mark { background: #20a675; box-shadow: 0 0 0 4px #e7f7f0; }
.wecom-connection-status.offline { color: #667085; }
.wecom-connection-status small { margin-left: 3px; color: var(--muted); font-size: 12px; font-weight: 500; }

.wecom-login-modal { width: min(100%, 440px); }

.wecom-qr-content { display: grid; justify-items: center; gap: 14px; padding: 10px 0 2px; text-align: center; }

.wecom-login-qr { width: min(260px, 72vw); aspect-ratio: 1; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: #fff; object-fit: contain; }

.wecom-login-tip { margin: 0; color: var(--muted); font-size: 13px; }

.task-modal .modal-header {
  align-items: flex-start;
}

.task-form {
  display: grid;
  gap: 18px;
}

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

.group-target-picker {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.group-target-picker legend {
  padding: 0;
  color: #475467;
  font-size: 12px;
  font-weight: 650;
}

.group-target-picker > p {
  margin: 7px 0 9px;
  color: var(--subtle);
  font-size: 11px;
  line-height: 1.5;
}

.group-target-options {
  display: grid;
  max-height: 154px;
  gap: 7px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  background: #fff;
}

.task-form .group-target-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 5px 7px;
  border-radius: 5px;
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 550;
}

.task-form .group-target-option:hover { background: #f4f7fb; }

.task-form .group-target-option input {
  width: 16px;
  min-height: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  accent-color: var(--accent);
}

.task-content-fields {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.task-content-fields[hidden] {
  display: none;
}

.task-form label {
  display: grid;
  gap: 7px;
  color: #475467;
  font-size: 12px;
  font-weight: 650;
}

.task-form input,
.task-form select,
.task-form textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  outline: none;
  color: var(--text);
  background: #fff;
  resize: vertical;
}

.task-form input:focus,
.task-form select:focus,
.task-form textarea:focus {
  border-color: #7b8ba3;
  box-shadow: 0 0 0 3px rgba(43, 109, 246, 0.1);
}

.task-content-fields label:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.image-upload-field input[type="file"] {
  min-height: 44px;
  padding: 8px;
  border-style: dashed;
  cursor: pointer;
}

.image-upload-field small {
  color: var(--subtle);
  font-size: 11px;
  font-weight: 500;
}

.link-thumb-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  background: #fafbfd;
  font-size: 12px;
  font-weight: 650;
}

.link-thumb-preview img {
  width: 42px;
  height: 42px;
  border-radius: 7px;
  object-fit: cover;
  background: #fff;
}

@media (max-width: 680px) {
  .wecom-connection-card { align-items: flex-start; flex-direction: column; }

  .task-form-grid,
  .task-content-fields {
    grid-template-columns: 1fr;
  }

  .task-content-fields label:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

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

th,
td {
  padding: 15px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

th {
  color: #4a5568;
  background: #fafbfc;
  font-size: 13px;
  font-weight: 700;
}

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

.table-empty {
  height: 120px;
  color: var(--muted);
  text-align: center;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding: 18px 2px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.pagination-meta,
.pagination-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pagination-total,
.pagination-page {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}

.pagination-total {
  color: var(--muted);
  white-space: nowrap;
}

.pagination-separator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border-strong);
}

.pagination-page {
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  background: var(--panel-soft);
  font-weight: 700;
  white-space: nowrap;
}

.pagination-button {
  min-width: 92px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap !important;
}

.pagination-button:hover {
  border-color: #b8c6d9;
  color: var(--blue);
  background: #f7faff;
  box-shadow: 0 4px 10px rgba(16, 24, 40, 0.06);
}

.pagination-button:focus-visible {
  outline: 3px solid rgba(43, 109, 246, 0.18);
  outline-offset: 2px;
}

.pagination-arrow {
  color: var(--blue);
  font-size: 18px;
  font-weight: 400;
  line-height: 0.75;
}

.pagination-button:disabled {
  cursor: not-allowed;
  color: var(--subtle);
  background: #f8fafc;
  border-color: var(--border);
  opacity: 1;
  transform: none;
  box-shadow: none;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 240px;
  color: var(--muted);
  text-align: center;
}

.empty-graphic {
  width: 72px;
  height: 58px;
  border: 2px solid #dce2ea;
  border-radius: 10px;
  background:
    linear-gradient(#dce2ea, #dce2ea) 18px 20px / 36px 2px no-repeat,
    linear-gradient(#dce2ea, #dce2ea) 24px 30px / 24px 2px no-repeat,
    #fff;
}

.balance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.metric-label {
  color: var(--muted);
  margin-bottom: 14px;
}

.metric-value {
  font-size: 28px;
  font-weight: 750;
  letter-spacing: 0;
}

.metric-note {
  margin-top: 8px;
  color: var(--subtle);
  font-size: 13px;
}

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

.dashboard-metric {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.dashboard-metric > span,
.dashboard-metric > small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.dashboard-metric strong {
  display: block;
  margin: 12px 0;
  color: var(--text);
  font-size: 28px;
  letter-spacing: -0.03em;
}

.dashboard-metric a,
.dashboard-metric small {
  color: #0f5c56;
  font-size: 13px;
  font-weight: 650;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr);
  gap: 18px;
  margin-bottom: 18px;
}

.dashboard-panel {
  padding: 22px;
}

.task-list,
.progress-list {
  display: grid;
}

.task-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.task-row:last-child {
  border-bottom: 0;
}

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

.task-row strong {
  color: var(--text);
  font-size: 14px;
}

.task-row small,
.task-row time {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.task-row time {
  margin: 0;
  white-space: nowrap;
}

.task-priority {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.priority-high { background: #d05d49; }
.priority-medium { background: #c38b3c; }
.priority-low { background: #4f948a; }

.progress-list > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
}

.progress-list > div:last-child {
  border-bottom: 0;
}

.progress-list span { color: var(--text); }
.progress-list b { color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }

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

.work-link-grid a {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel-soft);
}

.work-link-grid a:hover {
  border-color: #a8c9c4;
  background: #f2f8f7;
}

.work-link-grid strong { color: var(--text); }
.work-link-grid span { color: var(--muted); font-size: 13px; line-height: 1.5; }

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: #765416;
  background: #fff8e8;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.status-chip.complete {
  color: #176155;
  background: #eaf7f4;
}

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

.plan-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.plan-card.featured {
  border-color: #101828;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.09);
}

.plan-name {
  font-size: 18px;
  font-weight: 700;
}

.plan-price {
  margin: 18px 0 8px;
  font-size: 30px;
  font-weight: 800;
}

.plan-price span {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 20px;
  padding: 0;
  list-style: none;
  color: #475467;
}

.feature-list li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--green);
  vertical-align: 1px;
}

.notice-tabs {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: #f0f2f5;
}

.notice-tab {
  height: 32px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.notice-tab.active {
  color: var(--text);
  background: #fff;
  box-shadow: 0 1px 4px rgba(16, 24, 40, 0.08);
}

.login-body {
  min-height: 100vh;
  background: #f5f7fb;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(430px, 42vw) minmax(0, 1fr);
  background: #fff;
}

.login-panel {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 42px;
  background: #fff;
  border-right: 1px solid var(--border);
  animation: loginPanelIn 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.login-header {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 750;
}

.login-region {
  color: var(--muted);
  font-size: 13px;
}

.login-card {
  width: min(100%, 390px);
  margin: auto;
  padding: 14px 0 54px;
}

.login-eyebrow,
.showcase-eyebrow {
  margin: 0 0 10px;
  color: #0f5c56;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.06em;
}

.login-title {
  margin: 0;
  color: #172033;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.login-description {
  margin: 12px 0 30px;
  color: var(--muted);
  line-height: 1.7;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-field {
  display: grid;
  gap: 8px;
  color: #475467;
  font-weight: 600;
}

.login-field em {
  margin-left: 6px;
  color: var(--subtle);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.login-field input {
  height: 46px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.login-field input:focus {
  border-color: #0f5c56;
  box-shadow: 0 0 0 3px rgba(15, 92, 86, 0.12);
}

.login-submit {
  margin-top: 8px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #0f5c56;
  cursor: pointer;
  font-weight: 700;
}

.login-submit:disabled {
  opacity: 0.68;
  cursor: wait;
}

.login-submit:active {
  transform: translateY(1px) scale(0.99);
}

.form-message {
  min-height: 20px;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.4;
}

.form-message.info {
  color: var(--muted);
}


.login-showcase {
  min-height: 100vh;
  padding: 44px;
  background: #eef5f3;
  overflow: hidden;
}

.showcase-inner {
  max-width: 900px;
  min-height: calc(100dvh - 88px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(300px, 1.22fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}

.showcase-eyebrow {
  margin-bottom: 12px;
}

.showcase-inner h2 {
  margin: 0;
  color: #101828;
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.14;
  letter-spacing: -0.045em;
}

.showcase-subtitle {
  margin: 18px 0 24px;
  color: #667085;
  font-size: 16px;
  line-height: 1.75;
}

.tax-capabilities {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #344054;
  font-weight: 650;
}

.tax-capabilities li {
  padding-left: 14px;
  border-left: 2px solid #78aaa3;
}

.tax-hero-figure {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 18px 46px rgba(24, 64, 60, 0.14);
}

.tax-hero-figure img {
  display: block;
  width: 100%;
  height: min(66vh, 680px);
  object-fit: cover;
  object-position: 62% center;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loginPanelIn {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes loginCardIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes showcaseIn {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes cardFloatIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

.model-row strong,
.model-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.model-row b {
  font-size: 15px;
}

.model-logo {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #111827;
  font-size: 13px;
  font-weight: 800;
}

.model-logo.moon {
  background: #6d7bff;
}

.model-logo.blue {
  background: #2b6df6;
}

.model-logo.dark {
  background: #101828;
}

.model-logo.google {
  background: #34a853;
}

.model-logo.red {
  background: #f04438;
}

.model-logo.seed {
  background: #7a5af8;
}

@media (max-width: 920px) {
  .topbar {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 18px;
  }

  .topbar-right {
    flex: 0 0 auto;
    justify-content: space-between;
    padding-bottom: 0;
  }

  .top-links {
    gap: 14px;
  }

  .user-trigger {
    min-width: 188px;
  }

  .workspace {
    grid-template-columns: 1fr;
    min-height: calc(100vh - 112px);
  }

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

  .content {
    padding: 24px 18px 40px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .balance-grid,
  .plan-grid,
  .dashboard-metrics,
  .dashboard-grid,
  .work-link-grid {
    grid-template-columns: 1fr;
  }

  .group-toolbar {
    align-items: stretch;
  }

  .group-toolbar-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

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

  .pagination {
    gap: 12px;
    padding-left: 0;
    padding-right: 0;
  }

  .pagination-meta,
  .pagination-actions {
    flex-shrink: 1;
  }

  .pagination-button {
    min-width: 0;
  }

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

  .login-panel {
    min-height: auto;
    padding: 22px 18px 36px;
    border-right: 0;
  }

  .login-card {
    margin: 48px auto 0;
  }

  .login-showcase {
    min-height: auto;
    padding: 28px 18px 40px;
  }

  .showcase-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .showcase-inner h2 {
    font-size: 34px;
  }

  .tax-hero-figure img {
    height: min(72vw, 540px);
  }
}

@media (max-width: 600px) {
  .group-toolbar-actions {
    justify-content: stretch;
  }

  .group-search {
    flex: 1 1 150px;
  }

  .group-toolbar-actions > .button {
    flex: 0 0 auto;
  }

  .group-directory {
    grid-template-columns: 1fr;
  }
}
.task-delete-button {
  border-color: #f0c8c8;
  color: #a33a3a;
}

.task-delete-button:hover {
  border-color: #d87a7a;
  color: #8b2929;
  background: #fff5f5;
}

.task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 260px;
}

.task-actions .button,
.task-edit-button,
.task-toggle-button {
  margin: 0;
  padding: 0 9px;
  font-size: 12px;
}

.task-edit-button { color: #3d5876; }
.task-toggle-button { color: #475467; }

/* 倍舒特销售陪练 POC 页面 */
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: #1f8a68; font-size: 15px; font-weight: 750; }
.brand-name { letter-spacing: 0; }
.compact-community { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 8px; }
.side-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #20a06b; box-shadow: 0 0 0 4px #e6f6ed; }
.poc-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.poc-metric { min-height: 132px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; }
.poc-metric > span { color: var(--muted); font-size: 13px; }
.poc-metric strong { color: var(--text); font-size: 30px; line-height: 1; letter-spacing: -.03em; }
.poc-metric small { font-size: 12px; }
.poc-metric small.up { color: #1a9868; }.poc-metric small.warn { color: #b17825; }
.poc-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr); gap: 16px; margin-bottom: 16px; }
.lower-grid { grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); }
.section-card { margin-bottom: 0; }
.card-title { margin-bottom: 0; font-size: 16px; }
.chart-panel, .task-panel, .table-card, .performance-card { min-height: 286px; }
.chart-area { height: 215px; display: flex; gap: 14px; padding: 8px 12px 4px 0; }
.chart-y { width: 28px; display: flex; flex-direction: column; justify-content: space-between; padding: 4px 0 27px; color: var(--subtle); font-size: 11px; }
.chart-main { flex: 1; position: relative; padding-bottom: 28px; }
.chart-grid { position: absolute; inset: 4px 0 28px; background: repeating-linear-gradient(to bottom, transparent 0, transparent 32%, #eef1f5 33%, transparent 34%); border-bottom: 1px solid #e7ebf0; }
.chart-bars { position: absolute; inset: 4px 0 0; display: flex; justify-content: space-around; align-items: end; gap: 10px; }
.bar-col { height: 100%; flex: 1; display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 8px; color: var(--subtle); font-size: 11px; }
.bar-col i { display: block; width: min(30px, 70%); min-height: 8px; border-radius: 5px 5px 2px 2px; background: #c9e8dc; }.bar-col:nth-child(6) i { background: #238d6d; }
.task-list { display: grid; gap: 0; }.task-row { display: flex; align-items: center; gap: 11px; padding: 15px 0; border-bottom: 1px solid #eef1f5; }.task-row:last-child { border-bottom: 0; }.task-row > span:nth-child(2) { min-width: 0; flex: 1; }.task-row b, .task-row small { display: block; }.task-row b { color: var(--text); font-size: 13px; }.task-row small { margin-top: 3px; color: var(--muted); font-size: 11px; }.task-row em { color: var(--subtle); font-style: normal; }.task-row em .ui-icon { width: 14px; }
.task-mark { width: 27px; height: 27px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 7px; color: #3c5875; background: #edf2f7; font-size: 12px; font-weight: 700; }.task-mark.warning { color: #aa7426; background: #fff5e1; }.task-mark.success { color: #1c9569; background: #e7f7ee; }
.poc-badge { display: inline-flex; align-items: center; gap: 6px; height: 25px; padding: 0 9px; border-radius: 999px; font-size: 11px; white-space: nowrap; }.poc-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }.poc-badge.success { color: #18885e; background: #e8f7ef; }.poc-badge.warning { color: #aa7426; background: #fff4dc; }.poc-badge.muted { color: #778292; background: #f0f2f5; }
.score { color: #1b9067; }.soft-tag { display: inline-flex; padding: 5px 8px; border: 0; border-radius: 6px; color: #647287; background: #f0f3f6; font: inherit; font-size: 11px; cursor: pointer; }
.performance { display: flex; align-items: center; gap: 27px; padding-top: 16px; }.performance-ring { width: 118px; height: 118px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(#2c9a76 0 78%, #eaf0ed 78%); position: relative; }.performance-ring::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #fff; }.performance-ring strong, .performance-ring span { position: relative; z-index: 1; }.performance-ring strong { margin-top: 15px; font-size: 26px; }.performance-ring span { margin-top: -15px; color: var(--muted); font-size: 10px; }.performance-list { flex: 1; display: grid; gap: 14px; }.performance-list div { display: grid; grid-template-columns: 1fr 25px; gap: 7px; align-items: center; color: var(--muted); font-size: 11px; }.performance-list b { color: var(--text); text-align: right; }.performance-list i { grid-column: 1 / -1; height: 6px; display: block; overflow: hidden; border-radius: 8px; background: #edf1f4; }.performance-list em { display: block; height: 100%; border-radius: inherit; background: #6bb99d; }
.filter-bar { display: flex; gap: 9px; margin-bottom: 18px; }.search-input, .filter-select { height: 38px; padding: 0 11px; border: 1px solid var(--border-strong); border-radius: 6px; color: var(--text); background: #fff; outline: 0; }.search-input { width: 260px; }.filter-select { min-width: 120px; }.search-input:focus, .filter-select:focus { border-color: #92cbb6; box-shadow: 0 0 0 3px rgba(32, 160, 107, .1); }
.doc-name { display: flex; align-items: center; gap: 10px; }.doc-name > span:last-child { display: grid; gap: 3px; }.doc-name small, .table-sub { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }.doc-icon { width: 30px; height: 34px; display: grid; place-items: center; border: 1px solid #dce7e2; border-radius: 6px; color: #218663; background: #eff9f4; font-size: 11px; }
.case-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }.case-summary > div { padding: 18px 20px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }.case-summary strong, .case-summary span { display: block; }.case-summary strong { font-size: 25px; }.case-summary span { margin-top: 5px; color: var(--muted); font-size: 12px; }.warning-number { color: #b17825; }
.scenario-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }.scenario-card { min-height: 250px; padding: 22px; }.scenario-card:hover { transform: translateY(-2px); }.scenario-top { display: flex; align-items: center; justify-content: space-between; }.scenario-symbol { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 7px; color: #247a5e; background: #e8f6ef; font-size: 12px; font-weight: 700; }.scenario-card h2 { margin: 20px 0 9px; font-size: 16px; }.scenario-card p { min-height: 48px; color: var(--muted); font-size: 12px; line-height: 1.7; }.scenario-meta { display: flex; justify-content: space-between; padding: 14px 0; border-top: 1px solid #edf0f3; color: var(--muted); font-size: 11px; }.scenario-actions { display: flex; gap: 16px; }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; }.editor-main { padding: 0; }.editor-tabs { display: flex; gap: 3px; padding: 13px 20px; border-bottom: 1px solid var(--border); }.editor-tabs button, .memory-tabs button { padding: 8px 12px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; cursor: pointer; font: inherit; font-size: 12px; }.editor-tabs button.active, .memory-tabs button.active { color: #1b825f; background: #e7f6ee; font-weight: 650; }.editor-panel-content { padding: 22px; }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }.form-grid label, .form-label { display: grid; gap: 7px; color: #5f6c7c; font-size: 12px; }.form-grid label.full { grid-column: 1 / -1; }.form-grid input, .form-grid textarea, .form-grid select, .form-label input, .form-label textarea { width: 100%; padding: 10px; border: 1px solid var(--border-strong); border-radius: 6px; outline: 0; color: var(--text); background: #fff; font: inherit; font-size: 13px; }.form-grid textarea, .form-label textarea { min-height: 86px; resize: vertical; }.form-section-title { margin: 23px 0 12px; padding-top: 17px; border-top: 1px solid #edf0f3; color: var(--text); font-size: 12px; font-weight: 700; }.form-section-title.first { margin-top: 0; padding-top: 0; border-top: 0; }.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; color: #5b6878; font-size: 12px; }.check-grid input { accent-color: #208b67; margin-right: 7px; }.info-box { padding: 12px 14px; border-left: 3px solid #6db899; color: #4f6a5f; background: #f1faf5; font-size: 12px; line-height: 1.7; }.toggle-line { display: flex; justify-content: space-between; padding-top: 20px; color: var(--text); font-size: 12px; }.fake-toggle { width: 35px; height: 20px; display: inline-block; border-radius: 999px; background: #dce3e8; }.fake-toggle.on { background: #2b9c77; }.score-rule, .check-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0; border-bottom: 1px solid #edf0f3; }.score-rule b, .score-rule small, .check-row b, .check-row small { display: block; }.score-rule b, .check-row b { font-size: 12px; }.score-rule small, .check-row small { margin-top: 4px; color: var(--muted); font-size: 11px; }.score-rule select { padding: 6px; border: 1px solid var(--border-strong); border-radius: 5px; color: var(--muted); background: #fff; }.check-row > span { width: 22px; height: 22px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 6px; color: #738092; background: #f0f2f5; font-size: 11px; }.check-row.done > span { color: #1b9067; background: #e7f7ef; }.check-row > div { flex: 1; }.full-button { width: 100%; margin-top: 20px; }
.replay-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 22px; }.replay-head h2 { margin: 12px 0 5px; font-size: 17px; }.replay-head p { margin: 0; color: var(--muted); font-size: 12px; }.replay-numbers { display: flex; gap: 25px; }.replay-numbers b { color: #208a67; font-size: 22px; text-align: center; }.replay-numbers small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 400; }.replay-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 16px; margin-top: 16px; }.turn-list { margin: -6px 0; }.turn { display: grid; grid-template-columns: 48px 1fr; gap: 13px; padding: 15px 0; border-bottom: 1px solid #edf0f3; }.turn:last-child { border-bottom: 0; }.turn time { padding-top: 3px; color: var(--subtle); font-size: 11px; }.turn > div { padding-left: 12px; border-left: 2px solid #dfe8e3; }.turn.attention > div { border-left-color: #d79d43; }.turn p { margin: 7px 0 5px; font-size: 12px; line-height: 1.6; }.turn small { color: var(--muted); font-size: 10px; }.review-detail { display: grid; gap: 17px; }.review-detail label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; }.review-detail strong, .review-detail p { margin: 0; font-size: 12px; line-height: 1.7; }.warning-text { color: #ad7629; }
.memory-layout { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); gap: 16px; }.memory-score p { color: var(--muted); font-size: 12px; line-height: 1.7; }.big-score { width: 145px; height: 145px; display: grid; place-items: center; margin: 20px auto 14px; border: 10px solid #dff2e8; border-right-color: #299773; border-radius: 50%; }.big-score strong { display: block; margin-top: 16px; font-size: 33px; }.big-score span { margin-top: -18px; color: var(--muted); font-size: 10px; }.memory-stats { display: flex; justify-content: space-between; margin-top: 24px; padding-top: 17px; border-top: 1px solid #edf0f3; color: var(--muted); font-size: 11px; }.memory-stats b { margin-right: 4px; color: var(--text); font-size: 16px; }.memory-tabs { display: flex; gap: 5px; margin-bottom: 12px; }.memory-item { padding: 16px 0; border-top: 1px solid #edf0f3; }.memory-item b { font-size: 13px; }.memory-item p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }.branch-grid { display: grid; grid-template-columns: minmax(300px, .85fr) minmax(0, 1.15fr); gap: 16px; }.branch-input { width: 100%; min-height: 145px; padding: 12px; border: 1px solid var(--border-strong); border-radius: 6px; resize: vertical; font: inherit; font-size: 13px; }.sample-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }.result-step { display: flex; gap: 11px; padding: 13px 0; border-top: 1px solid #edf0f3; }.result-step > span { width: 22px; height: 22px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 6px; color: #1b9067; background: #e7f7ef; font-size: 11px; }.result-step b, .result-step small { display: block; }.result-step b { font-size: 12px; }.result-step small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.5; }.audit-list { display: grid; }.audit-list > div { display: grid; grid-template-columns: 12px 1fr; column-gap: 10px; padding: 16px 0; border-top: 1px solid #edf0f3; }.audit-list > div:first-child { border-top: 0; }.audit-list b, .audit-list small { display: block; }.audit-list b { font-size: 13px; }.audit-list small { grid-column: 2; margin-top: 4px; color: var(--muted); font-size: 11px; }.audit-dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; }.audit-dot.success { background: #27a172; }.audit-dot.warning { background: #d79d43; }.toast { position: fixed; right: 28px; bottom: 28px; z-index: 50; padding: 12px 16px; border: 1px solid #dce9e2; border-radius: 7px; color: #206b53; background: #f1fbf5; box-shadow: 0 12px 30px rgba(16, 24, 40, .12); opacity: 0; transform: translateY(8px); pointer-events: none; transition: .2s ease; font-size: 13px; }.toast.show { opacity: 1; transform: translateY(0); }.clickable-row { cursor: pointer; }.clickable-row:hover td { background: #fbfdfc; }
.practice-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr); gap: 16px; }.practice-chat { min-height: 650px; display: flex; flex-direction: column; overflow: hidden; }.practice-chat-head { display: flex; justify-content: space-between; align-items: center; padding: 19px 22px; border-bottom: 1px solid var(--border); }.practice-chat-head strong, .practice-chat-head small { display: block; }.practice-chat-head small { margin-top: 4px; color: var(--muted); font-size: 11px; }.practice-messages { flex: 1; display: grid; align-content: start; gap: 22px; padding: 28px 30px; background: #fbfcfd; }.chat-message { display: flex; align-items: flex-start; gap: 10px; max-width: 78%; }.chat-message.employee { justify-self: end; flex-direction: row-reverse; text-align: right; }.chat-avatar { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #267d60; background: #e1f3eb; font-size: 11px; font-weight: 700; }.chat-message.employee .chat-avatar { color: #586a80; background: #e8edf3; }.chat-message small { color: var(--muted); font-size: 10px; }.chat-message p { margin: 5px 0 0; padding: 11px 13px; border: 1px solid #e8edf1; border-radius: 4px 12px 12px 12px; color: var(--text); background: #fff; font-size: 13px; line-height: 1.65; }.chat-message.employee p { border-color: #d6ede2; border-radius: 12px 4px 12px 12px; background: #eaf7f0; }.practice-compose { padding: 16px 20px 18px; border-top: 1px solid var(--border); background: #fff; }.practice-compose textarea { width: 100%; min-height: 66px; padding: 11px; border: 1px solid var(--border-strong); border-radius: 6px; outline: 0; resize: none; font: inherit; font-size: 13px; }.practice-compose > div { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; color: var(--muted); font-size: 11px; }.practice-side { display: grid; align-content: start; gap: 16px; }.practice-side .section-card { padding: 20px; }.practice-goal { display: flex; align-items: center; gap: 9px; padding: 13px 0; border-top: 1px solid #edf0f3; color: var(--muted); font-size: 12px; }.practice-goal span { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 6px; background: #f0f2f5; font-size: 10px; }.practice-goal.done { color: #218860; }.practice-goal.done span { background: #e6f7ed; }.practice-goal.active { color: var(--text); font-weight: 650; }.practice-goal.active span { color: #fff; background: #2a9672; }.coach-card p { margin: -4px 0 15px; color: var(--muted); font-size: 12px; line-height: 1.7; }.state-line { padding: 11px 0; border-top: 1px solid #edf0f3; }.state-line span, .state-line b { display: block; }.state-line span { color: var(--muted); font-size: 11px; }.state-line b { margin-top: 4px; font-size: 12px; }
.wecom-message-form { display: grid; gap: 18px; }
.task-form-inline { display: grid; gap: 16px; margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.task-form-inline select[multiple] { min-height: 88px; padding: 7px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; }
.form-message { color: #aa7426; font-size: 12px; }
.empty-state { padding: 28px !important; color: var(--muted); text-align: center; }
.reward-record-filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.reward-record-filters input, .reward-record-filters select { min-width: 0; height: 36px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 6px; background: white; font: inherit; font-size: 13px; }
.reward-record-filters input { flex: 1 1 200px; }
.reward-record-filters select { flex: 0 1 160px; }
.reward-record-table { min-width: 860px; }
.reward-record-table .button { min-height: 30px; padding: 5px 9px; white-space: nowrap; }
.reward-record-pagination { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; color: var(--muted); font-size: 12px; }
.reward-record-pagination > div { display: flex; gap: 8px; }
.reward-record-facts { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 12px; margin: 0 0 20px; font-size: 13px; }
.reward-record-facts dt { color: var(--muted); }
.reward-record-facts dd { margin: 0; overflow-wrap: anywhere; }
.reward-record-modal { max-height: calc(100dvh - 32px); overflow-y: auto; }
.reward-record-modal .modal-actions { flex-wrap: wrap; }
.wecom-message-section { margin-top: 28px; border-top: 1px solid var(--border); padding-top: 20px; }
.wecom-message-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-bottom: 16px; }
.wecom-message-toolbar h2 { font-size: 17px; margin: 0; }
.wecom-message-switch { display: flex; align-items: center; gap: 7px; font-size: 13px; cursor: pointer; }
.wecom-message-switch input { width: 17px; height: 17px; accent-color: #208a67; }
.wecom-message-toolbar > div { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.wecom-message-toolbar select { height: 34px; border: 1px solid var(--border-strong); border-radius: 6px; padding: 0 8px; background: white; }
.wecom-message-table { min-width: 650px; }
.wecom-message-content { max-width: 420px; overflow-wrap: anywhere; white-space: pre-wrap; }
.wecom-message-thumb { width: 76px; height: 76px; padding: 0; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; cursor: zoom-in; background: #f4f6f5; }
.wecom-message-thumb img { width: 100%; height: 100%; object-fit: contain; }
.wecom-image-preview { width: min(900px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); overflow: auto; }
.wecom-image-preview > img { display: block; width: 100%; height: auto; max-height: 75dvh; object-fit: contain; }
@media (max-width: 960px) { .poc-metrics, .scenario-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.poc-dashboard-grid, .lower-grid, .editor-layout, .replay-grid, .memory-layout, .branch-grid, .practice-layout { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .content { padding: 24px 18px 36px; }.topbar { padding: 0 18px; }.top-links { display: none; }.poc-metrics, .case-summary, .scenario-grid { grid-template-columns: 1fr; }.filter-bar { flex-wrap: wrap; }.search-input { width: 100%; }.form-grid, .check-grid { grid-template-columns: 1fr; }.form-grid label.full { grid-column: auto; }.replay-head { align-items: flex-start; flex-direction: column; }.replay-numbers { width: 100%; justify-content: space-between; }.page-header { flex-direction: column; }.page-header > .button { align-self: flex-start; } }
.wecom-status-line { display: flex; align-items: center; gap: 9px; padding: 2px 0 16px; }.wecom-status-line > span { width: 8px; height: 8px; border-radius: 50%; }.wecom-status-line .online { background: #20a06b; box-shadow: 0 0 0 4px #e6f6ed; }.wecom-status-line .offline { background: #d79d43; box-shadow: 0 0 0 4px #fff4dc; }.wecom-status-line small { margin-left: 3px; color: var(--muted); }.wecom-vid-field { display: grid; gap: 7px; max-width: 560px; color: var(--muted); font-size: 12px; }.wecom-vid-field input { height: 36px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 6px; }.wecom-qr { display: flex; align-items: center; gap: 20px; padding-top: 15px; border-top: 1px solid #edf0f3; }.wecom-qr img { width: 170px; height: 170px; object-fit: contain; border: 1px solid var(--border); }.wecom-qr > div { display: grid; gap: 9px; }.wecom-qr small { color: var(--muted); font-size: 11px; }.wecom-qr input { height: 36px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 6px; }.wecom-qr .button { justify-self: start; }.field-hint { color: var(--muted); font-size: 11px; line-height: 1.5; }.wecom-message-form select[multiple] { min-height: 82px; padding: 7px; }
