:root {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #24382f;
  background: #f5f7f4;
  font-size: 14px;
  line-height: 1.6;
  font-synthesis: none;
  --green: #256149;
  --muted: #78847d;
  --line: #e4e9e3;
  --red: #b74742;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #8ac6a9;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -0.8px;
  line-height: 1.4;
  font-weight: 650;
}
h2 {
  font-size: 19px;
  font-weight: 650;
}
h3 {
  font-size: 14px;
  font-weight: 600;
}
label {
  display: block;
  font-weight: 500;
  margin: 22px 0 8px;
}
input,
select {
  border: 1px solid #dce3dc;
  background: #fff;
  color: #24382f;
  border-radius: 8px;
  padding: 11px 13px;
  min-width: 0;
  outline: none;
  width: 100%;
}
input:focus,
select:focus {
  border-color: #4a8d6e;
  box-shadow: 0 0 0 3px #e5f0e8;
}
input::placeholder {
  color: #929d94;
}
button {
  border: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.mono {
  font-family: "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.4px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.6px;
  color: #789081;
  font-weight: 600;
  margin-bottom: 9px;
}
.primary,
.secondary {
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 500;
  white-space: nowrap;
}
.primary {
  background: var(--green);
  color: white;
  border: 1px solid var(--green);
}
.primary:hover {
  background: #1b4a36;
}
.secondary {
  background: white;
  border: 1px solid #dbe3db;
  color: #3c5546;
}
.secondary:hover {
  background: #f0f5f0;
  border-color: #b4c7b7;
}
.text-button {
  background: transparent;
  padding: 5px 8px;
  color: var(--green);
  font-size: 13px;
}
.text-button:hover {
  text-decoration: underline;
}
.error {
  color: var(--red);
  font-size: 13px;
  margin-top: 10px;
}
.error:empty {
  display: none;
}
.danger {
  color: var(--red);
  border-color: #edcdcb;
}
.align-right {
  text-align: right;
}
.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;
}
.workspace {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #edf2ea;
  border-right: 1px solid #e2e9de;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 20px;
  font-weight: 650;
  margin-bottom: 48px;
  padding-left: 9px;
}
.brand small {
  display: block;
  color: #7f8b80;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3px;
}
.brand-icon {
  display: block;
  width: 43px;
  height: 43px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 14px;
}
.nav-label {
  font-size: 11px;
  color: #8a978a;
  letter-spacing: 2px;
  margin: 0 14px 12px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 12px 15px;
  color: #718172;
  text-align: left;
  border-radius: 8px;
  background: transparent;
  margin-bottom: 6px;
}
.nav-item.active {
  background: #dfe9d9;
  color: #31583e;
  font-weight: 600;
}
.nav-item span {
  width: 16px;
  font-size: 18px;
}
.nav-item:hover {
  background: #e3ebdf;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 20px 12px 0;
  color: #849281;
  font-size: 12px;
}
.sidebar-bottom p {
  overflow-wrap: anywhere;
  margin-top: 8px;
}
.sidebar-bottom button {
  padding-left: 0;
  margin-top: 12px;
}
.status-dot {
  display: inline-block;
  background: #77a47a;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 7px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 44px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  background: #fafbf8;
}
.topbar > span:first-child {
  display: flex;
  gap: 15px;
  color: #6f8173;
}
.admin-badge {
  display: flex;
  gap: 14px;
  align-items: center;
  color: #79877b;
}
.avatar {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: #eaf0e5;
  color: #72916b;
  font-size: 14px;
}
.avatar.mini {
  width: 30px;
  height: 30px;
  font-size: 12px;
}
.content {
  max-width: 1550px;
  margin: auto;
  padding: 40px 44px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}
.page-heading .muted {
  margin-top: 8px;
  font-size: 13px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 3px 7px #263c2610;
  overflow: hidden;
}
.filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 22px;
}
.filter-bar label {
  margin: 0;
  min-width: 130px;
}
.filter-bar .search-field {
  flex: 1;
  min-width: 160px;
}
.filter-bar input,
.filter-bar select {
  font-size: 12px;
  padding: 10px 12px;
}
.filter-bar button {
  font-size: 12px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  white-space: nowrap;
}
th {
  text-align: left;
  color: #869080;
  font-weight: 500;
  padding: 12px 22px;
  background: #f8faf6;
  border-top: 1px solid #edf1e9;
  border-bottom: 1px solid #edf1e9;
}
td {
  padding: 19px 22px;
  border-bottom: 1px solid #edf1e9;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fcfdfb;
}
.user-name {
  display: flex;
  align-items: center;
  gap: 11px;
  max-width: 230px;
}
.user-name > div {
  overflow: hidden;
}
.user-name strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-name small {
  display: block;
  color: #9ba298;
  font-size: 10px;
  margin-top: 2px;
}
.badge {
  display: inline-block;
  border-radius: 5px;
  background: #f0f3eb;
  color: #778763;
  font-size: 11px;
  padding: 3px 7px;
  margin: 2px 4px 2px 0;
}
.badge.enabled {
  background: #eaf4ed;
  color: #4f8965;
}
.badge.disabled {
  background: #f9eeee;
  color: #b7716c;
}
.group-cell {
  white-space: normal;
  min-width: 130px;
  max-width: 230px;
}
.pagination {
  padding: 18px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  font-size: 12px;
}
.pagination button {
  font-size: 12px;
  padding: 6px 11px;
  margin-left: 6px;
}
.empty {
  padding: 70px 20px;
  text-align: center;
  color: #94a090;
}
.padded {
  padding: 0 22px 18px;
}
.footnote {
  margin: 20px 2px;
}
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.panel-body {
  padding: 28px;
}
.panel-body > p.muted {
  font-size: 12px;
  margin-top: 8px;
}
.panel-body > button {
  margin-top: 22px;
}
.panel-body > input {
  display: block;
}
.group-list {
  margin-top: 20px;
}
.group-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.group-row:last-child {
  border: 0;
}
.group-row small {
  display: block;
  color: #8a948c;
}
.group-row strong {
  font-weight: 500;
}
.mode-panel {
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.mode-panel h2 {
  font-size: 25px;
  margin: 8px 0;
}
.mode-panel p {
  font-size: 12px;
}
.tools {
  margin-top: 26px;
}
.card-number {
  display: block;
  color: #a6b4a0;
  font:
    12px Consolas,
    monospace;
  margin-bottom: 12px;
}
.result {
  border-top: 1px dashed #d5dfd3;
  margin-top: 26px;
  padding-top: 18px;
}
.result output {
  display: block;
  font-size: 24px;
  letter-spacing: 2px;
  margin-top: 8px;
}
.result-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.result-row output {
  flex: 1;
  min-width: 0;
  font-size: 22px;
  letter-spacing: 2px;
}
.result-row button {
  flex-shrink: 0;
}
.lock-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 15% 10%, #e7eedf, transparent 55%), #f5f7f2;
}
.unlock-card {
  width: 420px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 38px;
  box-shadow: 0 25px 80px #3c5a3410;
}
.unlock-card .brand-icon {
  margin-bottom: 30px;
}
.unlock-card > p.muted {
  margin-top: 10px;
}
.unlock-card .primary {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin: 24px 0;
}
.unlock-card .small {
  line-height: 1.8;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  width: min(460px, calc(100vw - 32px));
  color: inherit;
  box-shadow: 0 20px 100px #122b2626;
  max-height: 90vh;
  overflow-y: auto;
}
dialog::backdrop {
  background: #1b322d55;
  backdrop-filter: blur(3px);
}
dialog h2 {
  margin-bottom: 12px;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 26px;
}
.user-dialog {
  width: min(510px, calc(100vw - 32px));
}
.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.icon-button {
  background: #f2f5f0;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  color: #768b77;
  font-size: 21px;
}
.detail-section {
  border-top: 1px solid var(--line);
  margin-top: 23px;
  padding-top: 23px;
}
.detail-section h3 {
  margin-bottom: 8px;
}
.detail-section .result-row {
  margin-top: 10px;
}
.status-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.membership-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #244f3c;
  color: white;
  border-radius: 9px;
  padding: 12px 24px;
  box-shadow: 0 8px 28px #244f3c30;
  z-index: 10;
  font-size: 13px;
  max-width: 90vw;
}
@media (min-width: 1500px) {
  .content {
    padding-top: 50px;
  }
  td {
    padding-top: 23px;
    padding-bottom: 23px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
/* 运营工作台：桌面留白与移动端抽屉导航共用同一套内容。 */
:root {
  --green: #175d50;
  --muted: #7b8582;
  --line: #e7ebe7;
  color: #253730;
  background: #f5f6f3;
  font-family:
    "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0.1px;
}
textarea {
  font: inherit;
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 15px;
  color: inherit;
  background: #fff;
  line-height: 1.8;
}
textarea:focus {
  outline: 2px solid #b4d4c6;
  border-color: #51846d;
}
input,
select {
  min-height: 44px;
}
button {
  min-height: 40px;
}
a {
  color: var(--green);
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
.sidebar {
  background: #182e29;
  color: #d5dfd9;
  width: 232px;
  padding: 32px 19px 20px;
  overflow-y: auto;
}
.sidebar .brand {
  color: #f6f9f4;
  margin: 0 10px 30px;
}
.sidebar .brand small {
  color: #91a79b;
  font-size: 11px;
  letter-spacing: 3px;
}
.sidebar .brand-icon {
  border-radius: 14px;
}
.sidebar .nav-label {
  color: #8caa99;
  font-size: 10px;
  letter-spacing: 2px;
  margin: 24px 16px 10px;
}
.nav-item {
  color: #b8c8be;
  border-radius: 9px;
  margin: 3px 0;
  padding: 10px 15px;
  min-height: 44px;
  font-weight: 500;
}
.nav-item span {
  display: inline-grid;
  place-items: center;
  width: 20px;
  color: #85a796;
  font-size: 19px;
  margin-right: 12px;
}
.nav-item:hover {
  background: #274237;
  color: #fff;
}
.nav-item.active {
  box-shadow: 0 2px 8px #11261b22;
}
.nav-item.active span {
  color: #203c2c;
}
.sidebar-bottom {
  border-color: #3a4e43;
  color: #91a79b;
  position: relative;
  margin-top: 32px;
  padding-top: 22px;
  font-size: 11px;
}
.sidebar-bottom .text-button {
  color: #c7d7c7;
}
.workspace {
  grid-template-columns: 232px minmax(0, 1fr);
}
.workspace main {
  margin-left: 0;
  min-width: 0;
}
.topbar {
  height: 76px;
  padding: 0 42px;
  border-bottom: 1px solid #e3e8df;
  background: #f8f9f6;
}
.content {
  max-width: 1440px;
  padding: 38px 42px 64px;
  margin: auto;
}
.page-heading {
  margin-bottom: 30px;
  gap: 14px;
  align-items: center;
}
.page-heading h1 {
  font-size: 29px;
  letter-spacing: -1px;
  font-weight: 650;
}
.page-heading .muted {
  margin-top: 9px;
  font-size: 13px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 600;
  color: #76917f;
  margin-bottom: 9px;
}
.panel {
  background: #fff;
  border: 1px solid #e3e8df;
  border-radius: 16px;
  box-shadow: 0 4px 18px #1b3b2403;
  overflow: hidden;
}
.panel-body {
  padding: 28px;
}
.panel h2 {
  font-size: 17px;
  font-weight: 600;
}
.panel-title {
  padding: 24px 26px 8px;
}
.panel + .panel {
  margin-top: 24px;
}
.primary {
  background: #1b594a;
  border-radius: 9px;
  border: 1px solid #1b594a;
  color: #fff;
  font-weight: 550;
  padding: 10px 18px;
}
.primary:hover {
  background: #124839;
}
.secondary {
  background: #fff;
  color: #435b4d;
  border: 1px solid #dce4da;
  border-radius: 9px;
  padding: 9px 15px;
  font-weight: 500;
}
.text-button {
  color: #28614f;
  padding: 6px 9px;
}
.filter-bar {
  padding: 20px 24px;
  gap: 12px;
}
thead th {
  background: #f7f9f5;
  color: #7c897f;
  font-size: 11px;
  letter-spacing: 0.5px;
  font-weight: 500;
  padding: 14px 24px;
}
td {
  padding: 19px 24px;
  font-size: 13px;
  border-bottom: 1px solid #edf0e9;
}
tbody tr:hover {
  background: #fafbf8;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.pagination {
  padding: 16px 24px;
  border-top: 1px solid #edf0e9;
  font-size: 11px;
  gap: 10px;
}
.pagination button {
  font-size: 11px;
  min-height: 34px;
  padding: 6px 12px;
}
.pagination > div {
  display: flex;
  gap: 8px;
}
.badge {
  font-size: 10px;
  white-space: nowrap;
  border-radius: 6px;
  background: #f1f4ee;
  color: #70806e;
  padding: 4px 8px;
}
.badge.completed,
.badge.delivered,
.badge.resolved,
.badge.enabled {
  background: #eaf3e7;
  color: #487143;
}
.badge.ready,
.badge.reviewing,
.badge.running {
  background: #edf1fc;
  color: #5a70a6;
}
.badge.received,
.badge.preparing,
.badge.paused {
  background: #fbf3e4;
  color: #9b7a3d;
}
.badge.failed,
.badge.disabled {
  background: #fbeceb;
  color: #b56059;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0;
}
.metric-card {
  padding: 23px 25px;
  background: #fff;
  border: 1px solid #e3e8df;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.metric-label {
  font-size: 12px;
  color: #738276;
}
.metric-number {
  font-size: 38px;
  font-weight: 550;
  letter-spacing: -1.6px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.metric-card small {
  font-size: 10px;
}
.dashboard-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.dashboard-hero {
  padding: 31px 35px;
  background: #e6eccf;
  border: 1px solid #dfe7c7;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  min-height: 142px;
}
.hero-title {
  font-size: 27px;
  font-weight: 500;
  letter-spacing: 1px;
  color: #354c36;
}
.hero-subtitle {
  font-size: 11px;
  letter-spacing: 3px;
  color: #7a8c66;
  margin-top: 12px;
}
.hero-mark {
  display: flex;
  align-items: center;
  height: 80px;
  opacity: 0.45;
  margin-right: 20px;
}
.hero-mark span {
  font-family: Georgia, serif;
  font-size: 124px;
  line-height: 0.8;
  color: #8ba46d;
  transform: rotate(-20deg);
}
.hero-mark span + span {
  margin-left: -45px;
}
.two-columns {
  gap: 22px;
  margin-bottom: 24px;
}
.usage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #edf0e9;
  padding: 17px 0;
  gap: 14px;
  font-size: 12px;
}
.usage-row:last-child {
  border: 0;
}
.usage-row small {
  font-size: 10px;
}
.usage-row strong {
  font-weight: 500;
}
.panel-body > p.muted {
  font-size: 11px;
  margin-top: 8px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 18px 0;
  font-size: 12px;
  font-weight: 500;
}
.field small {
  font-weight: 400;
  font-size: 11px;
}
.field input,
.field select {
  margin: 0;
}
.compose-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 26px;
  align-items: start;
}
.message-preview {
  position: sticky;
  top: 24px;
  padding: 24px;
}
.message-preview > .eyebrow {
  text-align: center;
}
.preview-phone {
  background: #f1f4ed;
  border: 7px solid #e5e9df;
  border-radius: 30px;
  min-height: 390px;
  overflow: hidden;
  margin: 20px auto;
  max-width: 330px;
  box-shadow: 0 15px 35px #243b2410;
}
.preview-appbar {
  padding: 28px 15px 17px;
  text-align: center;
  background: #fafbf8;
  border-bottom: 1px solid #e4e9df;
  font-size: 12px;
  font-weight: 600;
}
.preview-chat {
  display: flex;
  gap: 9px;
  padding: 25px 14px;
  align-items: flex-start;
}
.loop-avatar {
  background: #c5dcbc;
  color: #487845;
  width: 31px;
  height: 31px;
  border-radius: 12px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-weight: 600;
}
.chat-bubble {
  background: #fff;
  border-radius: 0 12px 12px 12px;
  padding: 12px 15px;
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.notification-preview {
  margin: 25px 15px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
}
.notification-preview h3 {
  font-size: 15px;
  margin-bottom: 12px;
}
.notification-preview p {
  font-size: 12px;
}
.preview-link {
  display: block;
  margin-top: 16px;
  font-size: 11px;
  color: #588447;
}
.message-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.9;
  margin: 16px 0;
}
.excerpt {
  max-width: 260px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
}
.ops-dialog {
  width: min(760px, calc(100vw - 30px));
  max-height: 90dvh;
  padding: 28px;
  border: 1px solid #dfe5d9;
  border-radius: 20px;
}
.ops-dialog .panel {
  margin-top: 20px;
}
.ops-dialog .dialog-heading h2 {
  font-size: 21px;
}
.ops-dialog::backdrop {
  background: #182e2970;
  backdrop-filter: blur(4px);
}
.dialog-actions {
  flex-wrap: wrap;
}
.summary-strip {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
  margin: 20px 0;
  font-size: 12px;
}
.task-progress {
  min-width: 100px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
progress {
  appearance: none;
  width: 110px;
  height: 5px;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #edf2e6;
}
progress::-webkit-progress-bar {
  background: #edf2e6;
}
progress::-webkit-progress-value {
  background: #91b67d;
}
.task-progress small {
  font-size: 10px;
}
.break-all {
  overflow-wrap: anywhere;
}
.attachment-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.feedback-image {
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
}
.attachment-link {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
  font-size: 12px;
}
.frame-fields {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.image-options {
  padding: 15px;
  background: #f7f9f4;
  border-radius: 12px;
}
.journey-preview {
  background: #f4f6ef;
  padding: 25px;
  border-radius: 13px;
  text-align: center;
  margin: 24px 0;
}
.journey-preview img {
  max-width: 100%;
  max-height: 340px;
  object-fit: contain;
}
.preview-button {
  display: inline-block;
  background: #235d4d;
  color: #fff;
  border-radius: 8px;
  padding: 8px 30px;
  margin-top: 14px;
  font-size: 12px;
}
.audience-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.export-panel {
  margin-bottom: 25px;
}
.export-panel button {
  margin-top: 18px;
}
.export-panel textarea {
  margin-top: 10px;
}
.export-panel label {
  display: block;
  margin-top: 20px;
  font-size: 12px;
}
.group-list .pagination {
  padding-left: 0;
  padding-right: 0;
}
.lock-screen {
  background:
    radial-gradient(ellipse at 20% 0%, #dce5c9 0%, transparent 60%), #f4f6ef;
}
.unlock-card {
  box-shadow: 0 24px 80px #243b2410;
  border-radius: 24px;
  padding: 42px;
}
.unlock-card h1 {
  font-size: 32px;
}
.unlock-card .brand-icon {
  border-radius: 15px;
}
.footnote {
  line-height: 1.9;
  margin-top: 18px;
}
.padded {
  padding: 0 24px;
}
.error:empty {
  display: none;
}
#menu-toggle {
  display: none;
}
.skeleton {
  color: #99a390;
  min-height: 154px;
}
.group-row small {
  display: block;
}
@media (min-width: 1700px) {
  .content {
    padding-top: 48px;
  }
}
@media (max-width: 1150px) {
  .content {
    padding: 28px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .metrics-grid {
    gap: 12px;
  }
  .metric-card {
    padding: 20px 17px;
  }
  .hero-mark {
    display: none;
  }
  .compose-layout {
    grid-template-columns: 1fr;
  }
  .message-preview {
    position: static;
    display: block;
  }
  td,
  thead th {
    padding: 16px;
  }
}
@media (max-width: 760px) {
  .workspace {
    display: block;
  }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 250px;
    z-index: 30;
    height: 100dvh;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.2s;
    box-shadow: none;
  }
  .nav-open .sidebar {
    visibility: visible;
    transform: translateX(0);
    box-shadow: 40px 0 80px #18322440;
  }
  .workspace main {
    margin-left: 0;
    width: 100%;
  }
  .topbar {
    height: 64px;
    padding: 0 17px;
    gap: 10px;
  }
  .topbar > span:first-of-type {
    flex: 1;
    font-size: 11px;
  }
  .admin-badge {
    font-size: 10px;
  }
  .content {
    padding: 25px 17px 45px;
  }
  #menu-toggle {
    display: block;
    min-width: 35px;
    z-index: 31;
  }
  .nav-open #menu-toggle {
    position: fixed;
    left: 255px;
    top: 12px;
    background: #fff;
  }
  .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 22px;
  }
  .page-heading > div {
    width: 100%;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .page-heading p.muted {
    font-size: 12px;
  }
  .page-heading > button {
    font-size: 11px;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin: 17px 0;
  }
  .metric-card {
    padding: 18px 16px;
  }
  .metric-number {
    font-size: 32px;
  }
  .metric-label {
    font-size: 11px;
  }
  .metric-card small {
    font-size: 9px;
  }
  .dashboard-hero {
    padding: 26px 23px;
    min-height: 125px;
  }
  .hero-title {
    font-size: 21px;
    letter-spacing: 0.4px;
  }
  .hero-subtitle {
    font-size: 10px;
  }
  .two-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 16px;
  }
  .panel-body {
    padding: 22px;
  }
  .filter-bar {
    padding: 17px;
    flex-wrap: wrap;
  }
  .filter-bar > * {
    min-width: 0;
  }
  .filter-bar .search-field {
    width: 100%;
    flex-basis: 100%;
  }
  .filter-bar label {
    flex: 1;
  }
  .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table-scroll table {
    min-width: 640px;
  }
  .pagination {
    padding: 14px 16px;
    flex-wrap: wrap;
  }
  .pagination > div {
    margin-left: auto;
  }
  .ops-dialog {
    padding: 23px 18px;
    width: calc(100vw - 20px);
    max-height: 94dvh;
    border-radius: 18px;
  }
  .ops-dialog .table-scroll table {
    min-width: 460px;
  }
  .frame-fields {
    grid-template-columns: repeat(2, 1fr);
  }
  .usage-row {
    flex-wrap: wrap;
  }
  .usage-row small {
    flex-basis: 100%;
  }
  .usage-row > strong {
    flex: 1;
  }
  .mode-panel {
    padding: 22px;
    gap: 15px;
    align-items: flex-start;
  }
  .mode-panel h2 {
    font-size: 18px;
  }
  .mode-panel p {
    font-size: 11px;
  }
  .mode-panel button {
    width: 100%;
  }
  .group-row {
    gap: 12px;
  }
  .group-row .mono {
    font-size: 10px;
  }
  .unlock-card {
    width: calc(100vw - 34px);
    padding: 32px 25px;
  }
  .lock-screen {
    padding: 20px 0;
  }
  .summary-strip {
    font-size: 11px;
  }
  .dialog-actions button {
    flex: 1;
  }
  .user-dialog {
    width: calc(100vw - 24px);
  }
  .export-panel textarea {
    min-height: 130px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 600px) {
  .sidebar nav {
    display: block;
  }
  .nav-item {
    justify-content: flex-start;
  }
  .table-scroll {
    overflow: visible;
  }
  .table-scroll table,
  .ops-dialog .table-scroll table {
    min-width: 0;
    white-space: normal;
    display: block;
  }
  .table-scroll thead {
    display: none;
  }
  .table-scroll tbody {
    display: block;
  }
  .table-scroll tr {
    display: block;
    padding: 13px 17px;
    border-bottom: 1px solid var(--line);
  }
  .table-scroll td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 7px 0;
    border: 0;
    min-width: 0;
    font-size: 12px;
    text-align: right;
  }
  .table-scroll td::before {
    content: attr(data-label);
    font-size: 10px;
    color: #8a968c;
    white-space: nowrap;
    text-align: left;
  }
  .table-scroll td > p {
    margin: 0;
    text-align: right;
  }
  .table-scroll .user-name {
    text-align: left;
  }
  .table-scroll td > button {
    margin-left: auto;
  }
  .table-scroll .user-name small {
    display: none;
  }
  .table-scroll .task-progress {
    align-items: flex-end;
  }
  .table-scroll .excerpt {
    max-width: 70%;
    -webkit-line-clamp: 2;
  }
  .frame-fields {
    grid-template-columns: 1fr 1fr;
  }
}

.legal-body { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 45vh; overflow-y: auto; padding: 20px; border-radius: 12px; background: var(--bg, #f6f7f3); font: inherit; line-height: 1.8; }

/* 用户表增加运营列后保持信息可读，窄屏仍沿用逐行卡片。 */
@media (min-width: 601px) {
  #page-users th, #page-users td { padding-left: 12px; padding-right: 12px; }
  #page-users td:nth-child(5), #page-users td:nth-child(7), #page-users td:nth-child(8) {
    white-space: normal; min-width: 95px; max-width: 145px; line-height: 1.6;
  }
}
.pet-fieldset { border: 1px solid var(--line); border-radius: 12px; margin: 12px 0; padding: 14px; min-width: 0; }
.pet-fieldset legend { font-weight: 600; padding: 0 6px; }
.pet-fieldset label, .pet-command label { display: inline-flex; flex-direction: column; vertical-align: top; width: min(100%, 220px); margin: 6px 12px 6px 0; }
.pet-fieldset input, .pet-command input { width: 100%; }
.pet-command { border-top: 1px solid var(--line); padding: 12px 0; }
.pet-command h4 { margin: 0 0 8px; }
