:root {
  --ink: #263238;
  --muted: #65747b;
  --paper: #ffffff;
  --soft: #f4f7f6;
  --line: #dfe8e5;
  --sidebar: #1e3030;
  --green: #216247;
  --green-2: #2f7d59;
  --teal: #1d8a8a;
  --blue: #356f92;
  --clay: #c8652d;
  --gold: #b88a33;
  --berry: #9c2f4a;
  --shadow: 0 16px 36px rgba(38, 50, 56, 0.08);
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(47, 125, 89, 0.09), transparent 300px),
    var(--soft);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  margin: 0;
  background: transparent;
}

button,
input,
select,
textarea {
  font: inherit;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 22px 16px;
  color: #dbe9e4;
  background:
    linear-gradient(180deg, rgba(184, 138, 51, 0.22), transparent 32%),
    var(--sidebar);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-block {
  margin-bottom: 10px;
  padding: 12px 10px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.brand-block strong {
  display: block;
  color: #fff;
  font-size: 22px;
  line-height: 1.2;
}

.brand-block span {
  display: block;
  margin-top: 8px;
  color: #a9beb9;
  font-size: 13px;
}

.sidebar a {
  padding: 11px 12px;
  border-radius: 7px;
  color: #dbe9e4;
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease;
}

.sidebar a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

main {
  min-width: 0;
  padding: 30px;
}

.topbar,
.panel-head,
.workbench {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.topbar {
  margin-bottom: 18px;
}

.eyebrow,
.project-card p,
.todo-card p,
.panel-head p {
  margin: 0 0 6px;
  color: var(--muted);
}

.eyebrow {
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 31px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 18px;
}

.subline {
  max-width: 780px;
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.toolbar,
.filters,
.quick-form,
.form-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.toolbar {
  justify-content: flex-end;
}

[hidden] {
  display: none !important;
}

.toolbar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.toolbar input {
  width: 190px;
}

.session-badge {
  align-self: end;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(33, 98, 71, 0.2);
  border-radius: 999px;
  padding: 0 13px;
  color: var(--green);
  background: rgba(33, 98, 71, 0.08);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.session-badge[data-role="readonly"] {
  color: #667176;
  background: #eef3f2;
}

.session-badge[data-role="finance_order"] {
  color: var(--blue);
  background: rgba(53, 111, 146, 0.1);
}

select,
input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

select:focus,
input:focus {
  border-color: rgba(33, 98, 71, 0.55);
  box-shadow: 0 0 0 3px rgba(33, 98, 71, 0.1);
}

button {
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  padding: 0 14px;
  color: #fff;
  background: var(--green);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

button:hover {
  background: var(--green-2);
  box-shadow: 0 8px 18px rgba(33, 98, 71, 0.18);
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  color: #7a8589;
  background: #d9e2df;
  cursor: not-allowed;
  box-shadow: none;
}

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(184, 138, 51, 0.25);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  color: #4c4638;
  background: #fff9eb;
}
.demo-toolbar { display:flex; align-items:center; justify-content:space-between; gap:28px; margin:20px 0; padding:24px 28px; border:1px solid #cfe0f4; border-radius:8px; background:#f5f9ff; }
.demo-toolbar h2 { margin:4px 0 8px; font-size:20px; }.demo-toolbar p { margin:0; color:#5f6d7b; }.demo-toolbar button { flex:0 0 auto; padding:12px 18px; border:0; border-radius:6px; color:#fff; background:#286eb8; font-weight:700; cursor:pointer; }.demo-toolbar button:disabled { cursor:not-allowed; background:#aeb8c3; }
@media (max-width: 760px) { .demo-toolbar { align-items:stretch; flex-direction:column; }.demo-toolbar button { width:100%; } }

.notice strong {
  white-space: nowrap;
}

.workbench {
  margin-bottom: 18px;
}

.project-card,
.todo-card,
.cards article,
.panel {
  border: 1px solid rgba(223, 232, 229, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.project-card,
.todo-card {
  min-height: 232px;
  padding: 22px;
}

.project-card {
  flex: 1.05;
  background:
    linear-gradient(135deg, rgba(33, 98, 71, 0.09), transparent 62%),
    #fff;
}

.todo-card {
  flex: 1;
}

.project-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.project-card dt {
  color: var(--muted);
  font-size: 12px;
}

.project-card dd {
  min-height: 38px;
  margin: 6px 0 0;
  padding: 10px;
  border-radius: 7px;
  color: #244236;
  background: rgba(47, 125, 89, 0.08);
}

.project-card small {
  display: block;
  color: var(--muted);
  line-height: 1.7;
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  background: var(--clay);
  font-weight: 700;
}

.todo-card ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.todo-card li {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfdfc;
}

.todo-card strong {
  display: block;
  margin-bottom: 4px;
}

.todo-card span {
  color: var(--muted);
  font-size: 13px;
}

.launch-panel {
  margin-bottom: 18px;
}

.launch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.launch-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(38, 50, 56, 0.06);
}

.launch-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.launch-card strong {
  font-size: 16px;
}

.launch-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.launch-card small {
  margin-top: auto;
  color: #526168;
  line-height: 1.6;
}

.launch-card-head span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--green);
  background: rgba(33, 98, 71, 0.1);
  font-size: 12px;
  font-weight: 800;
}

.launch-blocked {
  border-left-color: var(--berry);
}

.launch-blocked .launch-card-head span {
  color: var(--berry);
  background: rgba(156, 47, 74, 0.1);
}

.launch-needs_decision {
  border-left-color: var(--gold);
}

.launch-needs_decision .launch-card-head span {
  color: var(--gold);
  background: rgba(184, 138, 51, 0.13);
}

.launch-waiting_user {
  border-left-color: var(--blue);
}

.launch-waiting_user .launch-card-head span {
  color: var(--blue);
  background: rgba(53, 111, 146, 0.1);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.cards article {
  min-height: 108px;
  padding: 18px;
  border-top: 4px solid var(--green);
}

.cards article:nth-child(2) {
  border-top-color: var(--clay);
}

.cards article:nth-child(3) {
  border-top-color: var(--blue);
}

.cards article:nth-child(4) {
  border-top-color: var(--berry);
}

.cards article p {
  margin: 0;
  color: var(--muted);
}

.cards article strong,
.cards article span {
  display: block;
  margin-top: 8px;
  font-size: 30px;
  font-weight: 700;
}

.cards article small {
  color: var(--muted);
}

.panel {
  margin-bottom: 18px;
  padding: 20px;
}

.panel.subdued {
  background: rgba(250, 252, 251, 0.95);
}

.panel-head {
  margin-bottom: 16px;
}

.partner-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #4c6480;
  font-size: 13px;
}

.partner-legend span {
  padding: 8px 10px;
  border: 1px solid #d9e5f2;
  border-radius: 6px;
  background: #f5f9fd;
}

.partner-legend b {
  color: #8aa0b7;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 20px;
}

.policy-grid article {
  padding: 14px;
  border: 1px solid #d9e5f2;
  border-radius: 8px;
  background: linear-gradient(135deg, #f7fbff 0%, #ffffff 100%);
}

.policy-grid strong,
.policy-grid span {
  display: block;
}

.policy-grid strong {
  margin-bottom: 8px;
  color: #18324d;
  font-size: 15px;
}

.policy-grid span {
  color: #5b6f85;
  font-size: 13px;
  line-height: 1.65;
}

.permission-policy {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.table-section-title {
  margin: 22px 0 10px;
  font-size: 16px;
}

.table-section-title.offering-title {
  margin-top: 30px;
}

.panel-head > div:first-child {
  min-width: 260px;
}

.filters input {
  width: 220px;
}

.quick-form input,
.quick-form select {
  width: 168px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.liangxing-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.liangxing-summary article {
  min-height: 86px;
  padding: 16px;
  border: 1px solid rgba(53, 111, 146, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(53, 111, 146, 0.1), rgba(255, 255, 255, 0.9));
}

.liangxing-summary strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 24px;
}

.liangxing-summary span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.liangxing-summary article.has-warning {
  border-color: rgba(198, 85, 48, 0.32);
  background: #fff8f3;
}

.liangxing-summary article.has-warning strong {
  color: #b54f2e;
}

.liangxing-panel-actions,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sync-status {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.section-heading {
  margin: 24px 0 12px;
}

.section-heading h3 {
  margin: 2px 0 4px;
  font-size: 17px;
}

.section-heading p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.liangxing-task-heading {
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.is-loading svg,
.task-detail-loading svg {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.task-user {
  min-width: 180px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.task-user > div,
.task-summary {
  min-width: 0;
}

.task-user strong,
.task-user small,
.task-summary strong,
.task-summary small {
  display: block;
}

.task-user small,
.task-summary small {
  margin-top: 4px;
  color: var(--muted);
}

.task-summary {
  max-width: 360px;
}

.task-summary strong,
.task-summary small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #1b5643;
  font-weight: 800;
  background: #dfeee8;
}

.user-avatar.large {
  width: 46px;
  height: 46px;
  font-size: 18px;
}

.technical-id {
  color: #98a39e !important;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px !important;
}

.follow-up-badge {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  color: #55635d;
  font-size: 11px;
  background: #edf1ef;
}

.follow-up-badge.is-active {
  color: #1d664e;
  background: #e1f0e9;
}

.follow-up-badge.is-warning {
  color: #a64627;
  background: #fff0e8;
}

.liangxing-summary.is-access-notice {
  display: block;
}

.liangxing-summary.is-access-notice article {
  min-height: 0;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border-color: #d7e2dd;
  background: #f7faf8;
}

.liangxing-summary.is-access-notice strong {
  margin-bottom: 4px;
  color: #173f33;
  font-size: 17px;
}

.liangxing-summary .notice-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: #25654f;
  background: #e1f0e9;
}

.liangxing-summary .notice-icon svg {
  width: 20px;
  height: 20px;
}

.liangxing-environment-hint {
  display: block;
  margin-top: 5px;
  color: #8a6731 !important;
}

.notice-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.compact-button {
  min-height: 36px;
  padding: 8px 13px;
  text-decoration: none;
  white-space: nowrap;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 16px;
}

.table-wrap.wide {
  grid-column: 1 / -1;
}

.split-tables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #506168;
  background: #f4f8f7;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

td {
  color: #2d3b41;
  line-height: 1.55;
}

tbody tr:hover {
  background: #fbfdfc;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.empty-cell {
  color: var(--muted);
  text-align: center;
}

.money {
  color: var(--clay);
  font-weight: 700;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #445158;
  background: #eef3f2;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status-published,
.status-approved,
.status-enabled,
.status-closed,
.status-completed {
  color: #145338;
  background: rgba(47, 125, 89, 0.14);
}

.status-new,
.status-pending_review,
.status-pending_dispatch,
.status-pending_payment {
  color: #8a4d12;
  background: rgba(184, 138, 51, 0.18);
}

.status-contacted,
.status-dispatched,
.status-in_service {
  color: #1c5b78;
  background: rgba(53, 111, 146, 0.14);
}

.status-pending_deal,
.status-needs_revision,
.status-after_sales {
  color: #8a2f43;
  background: rgba(156, 47, 74, 0.13);
}

.status-invalid,
.status-rejected,
.status-cancelled,
.status-disabled {
  color: #667176;
  background: #e9eeee;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.table-action {
  min-height: 30px;
  padding: 0 10px;
  color: var(--green);
  background: rgba(33, 98, 71, 0.1);
  font-size: 12px;
}

.table-action:hover {
  color: #fff;
  background: var(--green);
  box-shadow: none;
}

.table-action.danger {
  color: var(--berry);
  background: rgba(156, 47, 74, 0.1);
}

.table-action.danger:hover {
  color: #fff;
  background: var(--berry);
}

.table-action.secondary {
  color: var(--blue);
  background: rgba(53, 111, 146, 0.1);
}

.table-action.secondary:hover {
  color: #fff;
  background: var(--blue);
}

.table-action.gold {
  color: #85611e;
  background: rgba(184, 138, 51, 0.14);
}

.table-action.gold:hover {
  color: #fff;
  background: var(--gold);
}

.inline-note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10;
  max-width: 360px;
  padding: 12px 16px;
  border-radius: 8px;
  color: #fff;
  background: rgba(30, 48, 48, 0.94);
  box-shadow: 0 14px 36px rgba(30, 48, 48, 0.24);
}

@media (max-width: 1120px) {
  body {
    grid-template-columns: 1fr;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .brand-block {
    grid-column: 1 / -1;
  }

  .topbar,
  .workbench,
  .panel-head,
  .split-tables,
  .policy-grid,
  .permission-policy {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  main {
    padding: 18px;
  }

  .sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 16px;
  }

  .toolbar,
  .filters,
  .quick-form,
  .form-tabs {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar label,
  .toolbar select,
  .toolbar button,
  .filters input,
  .filters select,
  .quick-form input,
  .quick-form select,
  .quick-form button {
    width: 100%;
  }

  .project-card dl,
  .cards {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 25px;
  }
}

/* 任务驱动后台：统一工作区外壳 */
:root {
  --ink: #17201d;
  --muted: #68756f;
  --paper: #ffffff;
  --soft: #f5f7f6;
  --line: #e3e9e6;
  --sidebar: #183f33;
  --sidebar-deep: #12342a;
  --green: #236b50;
  --green-2: #2e7b5d;
  --teal: #2d7e7a;
  --blue: #3f6f93;
  --clay: #b75f36;
  --gold: #a97925;
  --berry: #a43c54;
  --shadow: 0 8px 24px rgba(24, 63, 51, 0.07);
  background: var(--soft);
}

body {
  grid-template-columns: 224px minmax(0, 1fr);
  background: var(--soft);
}

.sidebar {
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 18px 14px 14px;
  overflow-y: auto;
  color: #d9e7e1;
  background: var(--sidebar);
  border-right: 0;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 2px 18px;
  padding: 4px 6px 17px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 7px;
  color: #173d31;
  background: #d6eadf;
}

.brand-mark svg,
.nav-link svg,
.sidebar-collapse svg,
.icon-button svg,
.mobile-menu-button svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.8;
}

.brand-block strong {
  font-size: 19px;
}

.brand-block span:not(.brand-mark) {
  margin-top: 4px;
  color: #a9c1b7;
  font-size: 12px;
}

.sidebar-project-field {
  display: grid;
  gap: 7px;
  margin: 0 4px 18px;
  color: #b9cec5;
  font-size: 12px;
  font-weight: 700;
}

.sidebar-project-field select {
  width: 100%;
  border-color: rgba(255, 255, 255, 0.13);
  color: #f5faf7;
  background: var(--sidebar-deep);
}

.sidebar-project-field select option {
  color: var(--ink);
  background: #fff;
}

.sidebar-nav {
  display: grid;
  gap: 3px;
}

.nav-group-title {
  margin: 16px 10px 5px;
  color: #91ada2;
  font-size: 11px;
  font-weight: 800;
}

.nav-link {
  min-height: 39px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 11px;
  border-radius: 6px;
  color: #d5e4de;
  text-decoration: none;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.is-active {
  color: #173d31;
  background: #dbece3;
  font-weight: 800;
}

.nav-link span {
  min-width: 0;
  flex: 1;
}

.nav-link b {
  min-width: 24px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: var(--clay);
  font-size: 11px;
}

.sidebar-collapse {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 0 11px;
  color: #bfd2ca;
  background: transparent;
}

.sidebar-collapse:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

main {
  min-height: 100vh;
  padding: 0 28px 40px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  min-height: 82px;
  align-items: center;
  margin: 0 -28px 24px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
}

.page-heading {
  min-width: 260px;
}

.page-heading h1 {
  font-size: 23px;
  line-height: 1.25;
}

.page-heading .eyebrow {
  margin-bottom: 3px;
  font-size: 11px;
}

.page-heading .subline {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.45;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin-left: auto;
}

.global-search-field {
  position: relative;
  width: min(260px, 24vw);
}

.global-search-field svg {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 17px;
  height: 17px;
  color: #7b8782;
  transform: translateY(-50%);
}

.global-search-field input {
  width: 100%;
  padding-left: 38px;
  background: #f7f9f8;
}

.icon-button,
.mobile-menu-button {
  width: 40px;
  height: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #43504b;
  background: #fff;
  border: 1px solid var(--line);
}

.icon-button:hover,
.mobile-menu-button:hover {
  color: var(--green);
  background: #f5f8f6;
  box-shadow: none;
}

.notification-button {
  position: relative;
}

.notification-button span {
  position: absolute;
  right: -4px;
  top: -5px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: var(--clay);
  font-size: 10px;
  font-weight: 800;
}

.account-button {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 8px 4px 5px;
  color: var(--ink);
  background: transparent;
}

.account-button:hover {
  background: #f4f7f5;
  box-shadow: none;
}

.account-avatar {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-weight: 800;
}

.account-button > span:nth-child(2) {
  display: grid;
  gap: 1px;
  text-align: left;
}

.account-button small {
  max-width: 150px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-button > svg {
  width: 15px;
  height: 15px;
}

.account-popover {
  position: absolute;
  right: 28px;
  top: 72px;
  width: 330px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 45px rgba(21, 42, 34, 0.17);
}

.popover-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 800;
}

.account-toolbar {
  display: grid;
  gap: 10px;
}

.account-toolbar label,
.account-toolbar input,
.account-toolbar select,
.account-toolbar button {
  width: 100%;
}

.secondary-button {
  color: var(--green);
  background: #edf5f1;
}

.secondary-button:hover {
  background: #e2eee8;
  box-shadow: none;
}

.popover-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.mobile-menu-button {
  display: none;
}

.notice,
.demo-toolbar,
.dashboard-metrics {
  display: none !important;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 20px;
  max-width: 1500px;
  margin: 0 auto;
}

.task-center,
.rail-section,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.task-center {
  min-width: 0;
}

.task-center-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
}

.task-center-head h2 {
  font-size: 22px;
}

.task-center-head p:last-child {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.task-summary {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: var(--muted);
  white-space: nowrap;
}

.task-summary strong {
  color: var(--green);
  font-size: 27px;
}

.task-groups {
  display: grid;
}

.task-group + .task-group {
  border-top: 1px solid var(--line);
}

.task-group-head {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 24px;
  background: #fafcfb;
}

.task-group-head svg {
  width: 17px;
  height: 17px;
  color: var(--green);
}

.task-group-head h3 {
  font-size: 15px;
}

.task-group-head span {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.task-row {
  min-height: 66px;
  display: grid;
  grid-template-columns: minmax(190px, 1.6fr) minmax(90px, 0.7fr) minmax(76px, 0.55fr) minmax(92px, 0.7fr) 68px 78px;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  border-top: 1px solid #edf1ef;
}

.task-row:hover {
  background: #fbfdfc;
}

.task-main strong,
.task-main small {
  display: block;
}

.task-main strong {
  margin-bottom: 4px;
  font-size: 14px;
}

.task-main small,
.task-cell {
  color: var(--muted);
  font-size: 12px;
}

.priority-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.priority-label::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.priority-high::before {
  background: var(--berry);
}

.priority-low::before {
  background: var(--teal);
}

.task-open-button,
.text-button {
  min-height: 30px;
  padding: 0;
  color: var(--green);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.task-open-button:hover,
.text-button:hover {
  color: var(--green-2);
  background: transparent;
  box-shadow: none;
}

.task-empty {
  padding: 24px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.workbench-rail {
  display: grid;
  gap: 16px;
}

.rail-section {
  padding: 18px;
}

.rail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.rail-title h3 {
  font-size: 15px;
}

.project-health-list {
  display: grid;
  gap: 12px;
}

.health-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.health-row strong {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.health-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
}

.health-status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.health-warning::before {
  background: var(--gold);
}

.health-risk::before {
  background: var(--berry);
}

.completion-section progress {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #e9efec;
}

.completion-section progress::-webkit-progress-bar {
  background: #e9efec;
}

.completion-section progress::-webkit-progress-value {
  background: var(--green);
}

.completion-section progress::-moz-progress-bar {
  background: var(--green);
}

.completion-section p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.recent-activity {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recent-activity li {
  position: relative;
  padding-left: 16px;
  color: #37443f;
  font-size: 12px;
  line-height: 1.55;
}

.recent-activity li::before {
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  content: "";
}

.recent-activity small {
  display: block;
  color: #89938f;
}

.legacy-workbench-data {
  display: none !important;
}

.workspace-view {
  max-width: 1500px;
  margin: 0 auto;
}

.workspace-view[hidden] {
  display: none !important;
}

.workspace-view:not([hidden]) {
  display: block;
}

.panel {
  padding: 22px;
}

.panel-head {
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2 {
  font-size: 20px;
}

.panel-head p {
  max-width: 720px;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.55;
}

.table-wrap {
  border-color: var(--line);
  border-radius: 6px;
}

table {
  min-width: 780px;
}

th {
  color: #59665f;
  background: #f7f9f8;
  font-size: 12px;
}

td {
  font-size: 13px;
}

.policy-grid article,
.liangxing-summary article,
.project-card,
.todo-card {
  background: #fff;
}

.body-sidebar-collapsed {
  grid-template-columns: 72px minmax(0, 1fr);
}

.body-sidebar-collapsed .sidebar {
  padding-inline: 10px;
}

.body-sidebar-collapsed .brand-block {
  justify-content: center;
}

.body-sidebar-collapsed .brand-block > div,
.body-sidebar-collapsed .sidebar-project-field,
.body-sidebar-collapsed .nav-group-title,
.body-sidebar-collapsed .nav-link span,
.body-sidebar-collapsed .nav-link b,
.body-sidebar-collapsed .sidebar-collapse span {
  display: none;
}

.body-sidebar-collapsed .nav-link,
.body-sidebar-collapsed .sidebar-collapse {
  justify-content: center;
  padding: 0;
}

@media (max-width: 1120px) {
  .workbench {
    grid-template-columns: minmax(0, 1fr);
  }

  .workbench-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .global-search-field {
    width: 190px;
  }
}

@media (max-width: 900px) {
  body,
  .body-sidebar-collapsed {
    display: block;
  }

  .sidebar {
    position: fixed;
    left: -238px;
    width: 224px;
    transition: left 0.2s ease;
  }

  .sidebar.is-mobile-open {
    left: 0;
    box-shadow: 18px 0 42px rgba(14, 36, 29, 0.22);
  }

  .mobile-menu-button {
    display: inline-flex;
  }

  .sidebar-collapse {
    display: none;
  }

  .topbar {
    margin-inline: -18px;
    padding-inline: 18px;
  }

  main {
    padding-inline: 18px;
  }

  .global-search-field,
  .page-heading .subline,
  .account-button > span:nth-child(2) {
    display: none;
  }

  .account-popover {
    right: 18px;
  }
}

@media (max-width: 720px) {
  .workbench-rail {
    grid-template-columns: 1fr;
  }

  .task-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 12px;
    padding: 14px 18px;
  }

  .task-row .task-cell:nth-child(3),
  .task-row .task-cell:nth-child(4),
  .task-row .priority-label {
    display: none;
  }

  .task-main {
    grid-row: span 2;
  }

  .task-center-head {
    padding-inline: 18px;
  }

  .task-group-head {
    padding-inline: 18px;
  }

  .account-popover {
    left: 12px;
    right: 12px;
    width: auto;
  }

  .page-heading h1 {
    font-size: 20px;
  }
}

/* 项目负责人工作区：减少工程术语，以明确动作和即时预览为主。 */
.panel-actions,
.guided-inline-actions,
.editor-footer > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-actions button,
.editor-footer button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.panel-actions svg,
.editor-footer svg {
  width: 17px;
  height: 17px;
}

.guided-inline-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 180px minmax(240px, 1.4fr) auto;
  align-items: end;
  gap: 14px;
  margin: 18px 0 22px;
  padding: 18px;
  border: 1px solid #dce8e2;
  border-left: 3px solid var(--green);
  border-radius: 7px;
  background: #f8fbf9;
}

.guided-inline-form[hidden] {
  display: none;
}

.guided-inline-form label {
  display: grid;
  gap: 7px;
  color: #46544e;
  font-size: 12px;
  font-weight: 700;
}

.guided-inline-form input,
.guided-inline-form select {
  width: 100%;
  background: #fff;
}

.table-media {
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-media img,
.table-media-placeholder {
  width: 72px;
  height: 50px;
  flex: 0 0 auto;
  border-radius: 6px;
  object-fit: cover;
  background: #edf4f0;
}

.table-media-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5f8575;
}

.front-location-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin-top: 8px;
  padding: 5px 8px;
  border: 1px solid #cfe2d7;
  border-radius: 6px;
  color: #256348;
  background: #f2f8f5;
  font-size: 12px;
  line-height: 1.35;
}

.front-location-badge svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}

.front-location-badge code {
  overflow: hidden;
  max-width: 220px;
  color: #66746c;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-media-placeholder svg {
  width: 20px;
  height: 20px;
}

.table-media strong,
.table-media small {
  display: block;
}

.table-media strong {
  margin-bottom: 5px;
}

.editor-dialog {
  width: min(1180px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100vh - 40px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 28px 80px rgba(17, 43, 34, 0.24);
}

.editor-dialog::backdrop {
  background: rgba(16, 32, 27, 0.55);
  backdrop-filter: blur(3px);
}

.task-detail-dialog {
  width: min(1040px, calc(100vw - 48px));
}

.task-detail-body {
  min-height: 320px;
  padding: 22px;
  overflow-y: auto;
  background: #f5f8f6;
}

.task-detail-loading,
.task-detail-error {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
}

.task-detail-loading svg,
.task-detail-error svg {
  width: 28px;
  height: 28px;
}

.task-detail-error {
  color: #a64627;
}

.task-detail-hero {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid #dbe5e0;
  border-radius: 8px;
  background: #fff;
}

.task-detail-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.task-detail-user strong,
.task-detail-user span {
  display: block;
}

.task-detail-user span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.task-detail-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.task-detail-meta div,
.detail-data-grid div {
  min-width: 0;
  padding: 10px;
  border-radius: 6px;
  background: #f3f7f5;
}

.task-detail-meta dt,
.detail-data-grid dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
}

.task-detail-meta dd,
.detail-data-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 700;
}

.task-detail-section {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #dbe5e0;
  border-radius: 8px;
  background: #fff;
}

.task-detail-section h3 {
  margin: 0 0 12px;
  font-size: 15px;
}

.task-detail-section p {
  margin: 0;
  color: #46544e;
  line-height: 1.7;
}

.task-result-summary {
  font-size: 14px;
}

.task-error-note {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding: 11px 12px;
  border-left: 3px solid #c65530;
  color: #934526;
  font-size: 12px;
  background: #fff4ed;
}

.task-media-grid,
.task-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.task-media-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9f8;
}

.task-media-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
}

.task-media-title svg {
  width: 16px;
  height: 16px;
  color: var(--green);
}

.task-media-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: contain;
  background: #eef2f0;
}

.task-media-placeholder {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.task-media-placeholder svg {
  width: 26px;
  height: 26px;
}

.detail-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.detail-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: #46544e;
  line-height: 1.6;
}

.detail-empty {
  color: var(--muted) !important;
  font-size: 12px;
}

.task-technical-id {
  margin: 16px 2px 2px;
}

@media (max-width: 760px) {
  .front-location-badge {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .front-location-badge code {
    width: 100%;
    max-width: 100%;
  }
  .liangxing-panel-actions {
    width: 100%;
    justify-content: space-between;
  }

  .task-detail-hero,
  .task-detail-grid,
  .task-media-grid,
  .task-detail-meta,
  .detail-data-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .task-detail-hero {
    align-items: stretch;
  }
}

.editor-shell {
  max-height: calc(100vh - 40px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.editor-header,
.editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  background: #fff;
}

.editor-header {
  border-bottom: 1px solid var(--line);
}

.editor-header h2 {
  margin: 2px 0 4px;
  font-size: 21px;
}

.editor-header p:last-child,
.editor-footer > span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.editor-header .eyebrow {
  margin: 0;
}

.dialog-close {
  flex: 0 0 auto;
}

.editor-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  overflow: hidden;
  background: #f7f9f8;
}

.editor-fields {
  min-width: 0;
  padding: 22px 26px 28px;
  overflow-y: auto;
  background: #fff;
}

.form-section {
  padding: 0 0 24px;
}

.form-section + .form-section {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.form-section h3 {
  margin: 0 0 15px;
  font-size: 15px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field-wide,
.field-grid label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: #46544e;
  font-size: 12px;
  font-weight: 700;
}

.field-wide > span b,
.field-grid label > span b {
  color: var(--berry);
}

.editor-fields input,
.editor-fields select,
.editor-fields textarea {
  width: 100%;
  border-color: #d8e1dd;
  background: #fff;
}

.editor-fields textarea {
  min-height: 108px;
  padding: 12px;
  resize: vertical;
  font: inherit;
  line-height: 1.6;
}

.image-upload-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 0.8fr);
  align-items: center;
  gap: 14px;
  margin-bottom: 15px;
}

.image-drop {
  min-height: 112px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  padding: 14px;
  border: 1px dashed #a9c4b8;
  border-radius: 7px;
  color: #325f4d;
  background: #f5faf7;
  text-align: center;
  cursor: pointer;
}

.image-drop:hover {
  border-color: var(--green);
  background: #eff7f3;
}

.image-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.image-drop svg {
  width: 22px;
  height: 22px;
}

.image-drop strong {
  font-size: 13px;
}

.image-drop span,
.image-upload-state {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.image-upload-state {
  padding: 12px;
  border-radius: 6px;
  background: #f2f5f3;
}

.list-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 210px)) minmax(240px, 1fr);
  gap: 12px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8faf9;
}

.list-toolbar label {
  display: grid;
  gap: 6px;
  color: #5e6b65;
  font-size: 11px;
  font-weight: 800;
}

.list-toolbar select,
.list-toolbar input {
  width: 100%;
  background: #fff;
}

.toolbar-search {
  justify-self: stretch;
}

.pagination {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.pagination > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pagination b {
  min-width: 58px;
  color: #44534d;
  text-align: center;
}

.pagination .icon-button {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  color: var(--green);
  background: #fff;
}

.model-function-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.model-function-grid article {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 14px;
  border: 1px solid #dce6e1;
  border-radius: 7px;
  background: #fff;
}

.model-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #28684f;
  background: #eaf4ef;
}

.model-icon svg {
  width: 18px;
  height: 18px;
}

.model-function-grid strong,
.model-function-grid small,
.model-function-grid code {
  display: block;
}

.model-function-grid strong {
  padding-right: 46px;
  font-size: 12px;
}

.model-function-grid small {
  margin: 5px 0 7px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.model-function-grid code {
  overflow: hidden;
  color: #596761;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-ready {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 3px 6px;
  border-radius: 4px;
  color: #8a6731;
  background: #fff4df;
  font-size: 9px;
  font-weight: 800;
}

.model-ready.is-ready {
  color: #287251;
  background: #e8f6ef;
}

.compact-image-drop {
  min-height: 84px;
  margin-bottom: 12px;
}

.media-strip {
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 9px;
  overflow-x: auto;
  padding: 9px;
  border: 1px solid #e1e8e4;
  border-radius: 7px;
  background: #f8faf9;
}

.media-strip > span {
  position: relative;
  width: 92px;
  height: 64px;
  flex: 0 0 auto;
}

.media-strip img {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: cover;
}

.media-strip > small {
  width: 100%;
  color: var(--muted);
  text-align: center;
}

.media-remove {
  position: absolute;
  right: -5px;
  top: -5px;
  width: 22px;
  height: 22px;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  color: #fff;
  background: #2a3631;
}

.media-remove svg {
  width: 12px;
  height: 12px;
}

.article-preview {
  padding: 17px 16px 30px;
}

.article-preview h3 {
  margin: 10px 0 7px;
  font-size: 19px;
  line-height: 1.4;
}

.article-summary {
  margin: 0 0 8px;
  color: #68776f;
  font-size: 11px;
  line-height: 1.55;
}

.article-meta {
  padding-bottom: 12px;
  border-bottom: 1px solid #edf1ef;
  color: #929c97;
  font-size: 9px;
}

.article-body {
  padding: 14px 0;
  color: #34433d;
  font-size: 11px;
  line-height: 1.9;
}

.article-gallery {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.article-gallery img {
  width: 100%;
  max-height: 190px;
  border-radius: 5px;
  object-fit: cover;
}

.content-list-block[hidden] {
  display: none !important;
}

.choice-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.choice-cards label {
  position: relative;
  cursor: pointer;
}

.choice-cards input {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.choice-cards label > span {
  min-height: 112px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 5px;
  padding: 14px;
  border: 1px solid #dce5e1;
  border-radius: 7px;
  background: #fff;
}

.choice-cards input:checked + span {
  border-color: var(--green);
  color: #1f6249;
  background: #eff7f3;
  box-shadow: inset 0 0 0 1px var(--green);
}

.choice-cards svg {
  width: 21px;
  height: 21px;
}

.choice-cards b {
  font-size: 13px;
}

.choice-cards small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.editor-preview {
  min-width: 0;
  padding: 20px 22px;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: #f2f5f3;
}

.preview-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 13px;
  color: #46544e;
  font-size: 12px;
  font-weight: 800;
}

.preview-label svg {
  width: 16px;
  height: 16px;
}

.phone-preview {
  width: 316px;
  min-height: 570px;
  margin: 0 auto;
  overflow: hidden;
  border: 8px solid #17201d;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(23, 32, 29, 0.14);
}

.preview-appbar {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 5px;
  color: #17201d;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.preview-cover {
  height: 170px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  color: #6c8178;
  background-color: #e5eee9;
  background-position: center;
  background-size: cover;
}

.preview-cover svg {
  width: 28px;
  height: 28px;
}

.preview-cover span {
  font-size: 12px;
}

.preview-content {
  padding: 15px 16px 72px;
}

.preview-tag {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 4px;
  color: #9a432a;
  background: #fff0e9;
  font-size: 10px;
  font-weight: 800;
}

.preview-content h3 {
  margin: 9px 0 5px;
  font-size: 19px;
  line-height: 1.35;
}

.preview-content > p {
  margin: 0 0 14px;
  color: #718078;
  font-size: 11px;
  line-height: 1.55;
}

.preview-content dl {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 12px 0;
  border-block: 1px solid #edf1ef;
}

.preview-content dl > div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 8px;
}

.preview-content dt,
.preview-content dd {
  margin: 0;
  font-size: 10px;
}

.preview-content dt {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #75827c;
}

.preview-content dt svg {
  width: 12px;
  height: 12px;
}

.preview-organizer {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 0;
}

.preview-organizer > span {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 12px;
}

.preview-organizer b,
.preview-organizer small {
  display: block;
  font-size: 10px;
}

.preview-organizer small {
  margin-top: 2px;
  color: #8a9690;
}

.preview-description {
  padding-top: 12px;
  border-top: 1px solid #edf1ef;
}

.preview-description b,
.preview-description p {
  font-size: 10px;
  line-height: 1.6;
}

.preview-bottom {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 300px;
  padding: 10px 14px;
  border-top: 1px solid #edf1ef;
  background: #fff;
  transform: translateX(-50%);
}

.phone-preview {
  position: relative;
}

.preview-bottom button {
  width: 100%;
  border-radius: 6px;
}

.preview-note {
  width: 316px;
  margin: 12px auto 0;
  color: #7d8984;
  font-size: 11px;
  line-height: 1.55;
}

.home-preview-content {
  min-height: 468px;
  padding: 16px 14px;
  background: #f7f9f8;
}

.home-preview-greeting {
  display: grid;
  gap: 2px;
  margin-bottom: 14px;
}

.home-preview-greeting small {
  color: #7f8b85;
  font-size: 9px;
}

.home-preview-greeting b {
  font-size: 15px;
}

.home-sample-banner {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  border-radius: 7px;
  color: #fff;
  background-color: #2f7258;
  background-position: center;
  background-size: cover;
}

.home-sample-banner span,
.home-sample-feature span {
  align-self: flex-start;
  padding: 3px 7px;
  border-radius: 4px;
  color: #fff;
  background: #bc6440;
  font-size: 9px;
}

.home-sample-banner h3,
.home-sample-banner p {
  margin: 5px 0 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.26);
}

.home-sample-banner h3 {
  font-size: 18px;
}

.home-sample-banner p {
  font-size: 10px;
}

.home-sample-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.home-sample-quick {
  min-height: 132px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  padding: 12px;
  border: 1px solid #e2e8e5;
  border-radius: 7px;
  background: #fff;
  text-align: center;
}

.home-sample-quick.is-focus {
  border-color: #b8d3c6;
  background: #f0f7f3;
}

.home-sample-quick > span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 6px;
  color: #fff;
  background: var(--green);
}

.home-sample-quick img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-sample-quick svg {
  width: 19px;
  height: 19px;
}

.home-sample-quick b {
  font-size: 11px;
}

.home-sample-quick small {
  color: #7d8984;
  font-size: 9px;
}

.home-sample-feature {
  display: grid;
  grid-template-columns: 46% minmax(0, 1fr);
  min-height: 150px;
  overflow: hidden;
  border: 1px solid #e2e8e5;
  border-radius: 7px;
  background: #fff;
}

.sample-feature-image {
  min-height: 150px;
  display: grid;
  place-items: center;
  color: #789187;
  background-color: #e3ece7;
  background-position: center;
  background-size: cover;
}

.sample-feature-image svg {
  width: 25px;
  height: 25px;
}

.home-sample-feature > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 12px;
}

.home-sample-feature h3 {
  margin: 8px 0 4px;
  font-size: 13px;
}

.home-sample-feature p {
  margin: 0 0 9px;
  color: #7d8984;
  font-size: 9px;
  line-height: 1.5;
}

.home-sample-feature button {
  min-height: 27px;
  padding: 0 12px;
  font-size: 9px;
}

.sample-image-empty {
  background-image: linear-gradient(135deg, #2d7559, #76a18d);
}

.home-preview-section {
  display: flex;
  justify-content: space-between;
  margin: 18px 0 9px;
  font-size: 11px;
}

.home-preview-section span {
  color: #73817b;
  font-size: 9px;
}

.home-preview-skeleton {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.home-preview-skeleton i {
  height: 86px;
  border-radius: 6px;
  background: #e9eeeb;
}

.preview-tabbar {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-top: 1px solid #e8ecea;
  background: #fff;
}

.preview-tabbar span {
  display: grid;
  justify-items: center;
  gap: 2px;
  color: #8a9590;
  font-size: 8px;
}

.preview-tabbar span.active {
  color: var(--green);
}

.preview-tabbar svg {
  width: 17px;
  height: 17px;
}

.editor-footer {
  border-top: 1px solid var(--line);
}

.toast-region {
  position: fixed;
  right: 24px;
  top: 94px;
  z-index: 80;
  display: grid;
  gap: 9px;
  pointer-events: none;
}

.toast {
  width: min(360px, calc(100vw - 32px));
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border: 1px solid #cfe1d8;
  border-radius: 7px;
  color: #24513f;
  background: #f2faf6;
  box-shadow: 0 12px 30px rgba(24, 63, 51, 0.14);
  font-size: 13px;
  animation: toast-in 0.2s ease-out;
}

.toast svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.toast-warning {
  border-color: #ead9b8;
  color: #765518;
  background: #fff9eb;
}

.toast-error {
  border-color: #ebc9cd;
  color: #873344;
  background: #fff3f4;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 960px) {
  .editor-body {
    grid-template-columns: minmax(0, 1fr);
    overflow-y: auto;
  }

  .editor-fields {
    overflow: visible;
  }

  .editor-preview {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .guided-inline-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .model-function-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .liangxing-summary.is-access-notice article {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .liangxing-summary.is-access-notice .notice-actions {
    grid-column: 1 / -1;
  }

  .editor-dialog {
    width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }

  .editor-shell {
    max-height: 100vh;
  }

  .editor-header,
  .editor-footer {
    padding: 14px 16px;
  }

  .editor-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .editor-footer > div,
  .editor-footer button {
    width: 100%;
  }

  .editor-fields {
    padding: 18px 16px;
  }

  .field-grid,
  .choice-cards,
  .image-upload-row,
  .guided-inline-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .list-toolbar,
  .model-function-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .panel-actions {
    width: 100%;
  }

  .panel-actions button {
    flex: 1;
  }
}

/* 业务工作区优先保证完整阅读和操作，不在半宽表格中压缩按钮。 */
#content-panel .split-tables {
  grid-template-columns: minmax(0, 1fr);
}

#content-panel .split-tables .wide {
  grid-column: auto;
}

#content-panel .panel-head {
  align-items: flex-start;
}

#content-panel .form-tabs {
  width: min(760px, 68%);
  align-items: stretch;
}

#content-panel .quick-form {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr)) auto;
}

#content-panel .quick-form input,
#content-panel .quick-form select {
  width: 100%;
}

@media (max-width: 1100px) {
  #content-panel .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  #content-panel .form-tabs {
    width: 100%;
  }
}

@media (max-width: 720px) {
  #content-panel .quick-form {
    grid-template-columns: 1fr;
  }

  .topbar {
    min-height: 76px;
    display: grid;
    grid-template-columns: 40px minmax(94px, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding-block: 10px;
  }

  .topbar-actions {
    gap: 4px;
  }

  .icon-button,
  .mobile-menu-button {
    width: 36px;
    height: 36px;
    min-height: 36px;
  }

  .account-button {
    min-height: 38px;
    padding: 2px;
  }

  .account-avatar {
    width: 34px;
    height: 34px;
  }

  .account-button > svg {
    display: none;
  }

  .page-heading {
    min-width: 0;
  }

  .page-heading h1 {
    overflow: hidden;
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page-heading .eyebrow {
    display: none;
  }
}

/* 技术总管理员运行中心：业务后台保持简洁，容量与健康信息集中治理。 */
.runtime-panel-head {
  align-items: center;
}

.runtime-panel-head button,
.runtime-card-head > svg {
  flex: 0 0 auto;
}

.runtime-panel-head button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.runtime-panel-head button svg {
  width: 17px;
  height: 17px;
}

.runtime-access-state {
  margin: 20px 0;
}

.runtime-state-banner {
  min-height: 82px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid #bfddcf;
  border-radius: 8px;
  background: #f1faf6;
}

.runtime-state-banner > svg {
  width: 30px;
  height: 30px;
  color: var(--green-2);
}

.runtime-state-banner strong,
.runtime-state-banner span {
  display: block;
}

.runtime-state-banner strong {
  margin-bottom: 5px;
  font-size: 17px;
}

.runtime-state-banner span {
  color: var(--muted);
  font-size: 13px;
}

.runtime-state-banner.is-warning {
  border-color: #ead7aa;
  background: #fff9eb;
}

.runtime-state-banner.is-warning > svg {
  color: var(--gold);
}

.runtime-state-banner.is-error {
  border-color: #eccbd2;
  background: #fff4f6;
}

.runtime-state-banner.is-error > svg {
  color: var(--berry);
}

.runtime-health-pill {
  padding: 7px 12px;
  border-radius: 999px;
  color: #176042 !important;
  background: #dff2e8;
  font-weight: 700;
}

.runtime-metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.runtime-metric-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.runtime-metric-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--blue);
  background: #eaf3f8;
}

.runtime-metric-icon svg {
  width: 18px;
  height: 18px;
}

.runtime-metric-card small,
.runtime-metric-card strong,
.runtime-metric-card div > span {
  display: block;
}

.runtime-metric-card small,
.runtime-metric-card div > span {
  color: var(--muted);
  font-size: 12px;
}

.runtime-metric-card strong {
  margin: 5px 0 4px;
  overflow: hidden;
  font-size: 21px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-tone-danger .runtime-metric-icon {
  color: var(--berry);
  background: #f9e8ed;
}

.runtime-tone-success .runtime-metric-icon {
  color: var(--green-2);
  background: #e6f4ec;
}

.runtime-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.runtime-detail-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.runtime-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.runtime-card-head h3,
.compact-panel-head h3 {
  margin: 3px 0 0;
  font-size: 18px;
}

.runtime-card-head > svg {
  width: 24px;
  height: 24px;
  color: var(--green-2);
}

.runtime-check {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.runtime-check:first-child {
  border-top: 0;
}

.runtime-check-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--gold);
  background: #fff5dc;
}

.runtime-check-icon.is-ready {
  color: var(--green-2);
  background: #e6f4ec;
}

.runtime-check-icon svg {
  width: 17px;
  height: 17px;
}

.runtime-check strong,
.runtime-check span {
  display: block;
}

.runtime-check span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.runtime-check > b {
  color: var(--muted);
  font-size: 12px;
}

.runtime-blocker-section {
  margin-top: 22px;
  padding-top: 4px;
}

.compact-panel-head {
  margin-bottom: 12px;
}

.runtime-blocker-list {
  display: grid;
  gap: 10px;
}

.runtime-blocker {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border: 1px solid #ead7aa;
  border-left: 4px solid var(--gold);
  border-radius: 7px;
  background: #fffaf0;
}

.runtime-blocker-high {
  border-color: #eccbd2;
  border-left-color: var(--berry);
  background: #fff6f8;
}

.runtime-blocker > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--gold);
  font-weight: 700;
}

.runtime-blocker-high > span {
  background: var(--berry);
}

.runtime-blocker strong,
.runtime-blocker p {
  display: block;
  margin: 0;
}

.runtime-blocker p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.runtime-blocker > b {
  color: var(--berry);
  font-size: 12px;
  white-space: nowrap;
}

.runtime-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px;
  color: var(--green-2);
  border: 1px dashed #b7d9c8;
  border-radius: 8px;
}

.help-button {
  min-width: 104px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  color: var(--green);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.help-button:hover {
  color: #fff;
  background: var(--green);
}

.help-button svg {
  width: 20px;
  height: 20px;
}

.help-button span {
  font-size: 13px;
  font-weight: 700;
}

.beginner-home {
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid #cfdfda;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 125, 89, 0.08), transparent 48%),
    var(--paper);
  box-shadow: var(--shadow);
}

.beginner-home-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.beginner-home-head h2,
.beginner-home-head p {
  margin: 0;
}

.beginner-home-head h2 {
  margin: 4px 0 7px;
  font-size: 24px;
}

.beginner-home-head p:last-child {
  color: var(--muted);
}

.beginner-role-badge {
  flex: 0 0 auto;
  padding: 7px 11px;
  color: var(--green);
  border: 1px solid #b9d5ca;
  border-radius: 999px;
  background: #edf7f2;
  font-size: 13px;
  font-weight: 700;
}

.beginner-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.beginner-action-card {
  position: relative;
  min-height: 104px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  padding: 17px 14px;
  text-align: left;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.beginner-action-card:hover {
  color: var(--ink);
  border-color: #9ec7b6;
  box-shadow: 0 10px 22px rgba(33, 98, 71, 0.1);
  transform: translateY(-2px);
}

.beginner-action-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--green);
  border-radius: 8px;
  background: #e8f3ee;
}

.beginner-action-icon svg {
  width: 21px;
  height: 21px;
}

.beginner-action-copy b,
.beginner-action-copy small {
  display: block;
}

.beginner-action-copy b {
  margin-bottom: 5px;
  font-size: 16px;
}

.beginner-action-copy small {
  color: var(--muted);
  line-height: 1.5;
}

.beginner-action-order {
  position: absolute;
  top: 8px;
  right: 9px;
  color: #91aaa1;
  font-size: 11px;
  font-weight: 700;
}

.beginner-action-arrow {
  width: 18px;
  height: 18px;
  color: #8da49c;
}

.beginner-empty {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px;
  color: var(--muted);
  border: 1px dashed #bad1c8;
  border-radius: 8px;
  background: #f7fbf9;
}

.beginner-workflow {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(0, 2fr);
  align-items: center;
  gap: 24px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.workflow-copy strong,
.workflow-copy span {
  display: block;
}

.workflow-copy strong {
  margin-bottom: 5px;
}

.workflow-copy span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.workflow-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-track li {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 9px;
  align-items: center;
}

.workflow-track li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 15px;
  right: 7px;
  width: 24%;
  height: 1px;
  background: #cbd9d4;
}

.workflow-track li > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--green-2);
  font-size: 13px;
  font-weight: 700;
}

.workflow-track b,
.workflow-track small {
  display: block;
}

.workflow-track b {
  font-size: 13px;
}

.workflow-track small {
  grid-column: 2;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.content-kind-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.content-kind-card {
  min-height: 82px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 13px;
  text-align: left;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.content-kind-card:hover,
.content-kind-card.is-active {
  color: var(--ink);
  border-color: #86baa3;
  background: #f0f8f4;
}

.content-kind-card.is-active {
  box-shadow: inset 0 0 0 1px #86baa3;
}

.content-kind-card > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--green);
  border-radius: 8px;
  background: #e4f1eb;
}

.content-kind-card svg {
  width: 18px;
  height: 18px;
}

.content-kind-card b,
.content-kind-card small {
  display: block;
}

.content-kind-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.content-kind-card > strong {
  color: var(--green);
  font-size: 20px;
}

.editor-stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 14px 26px;
  border-bottom: 1px solid var(--line);
  background: #f7faf9;
  list-style: none;
}

.editor-stepper li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.editor-stepper li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 12px;
  width: 25%;
  height: 2px;
  background: #dbe5e1;
}

.editor-stepper li > span {
  width: 32px;
  height: 32px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #c9d8d2;
  border-radius: 50%;
  background: #fff;
  font-weight: 700;
}

.editor-stepper b,
.editor-stepper small {
  display: block;
}

.editor-stepper b {
  color: var(--ink);
  font-size: 13px;
}

.editor-stepper small {
  margin-top: 2px;
  font-size: 11px;
}

.editor-stepper li.is-current > span {
  color: #fff;
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(184, 138, 51, 0.12);
}

.editor-stepper li.is-complete > span {
  color: #fff;
  border-color: var(--green-2);
  background: var(--green-2);
}

.editor-stepper li.is-complete > span::before {
  content: "✓";
  font-size: 15px;
}

.editor-stepper li.is-complete > span {
  font-size: 0;
}

.view-context-card {
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) minmax(320px, 1fr) 118px;
  align-items: center;
  gap: 24px;
  margin: 0 24px 18px;
  padding: 18px 20px;
  border: 1px solid #cfe2da;
  border-radius: 8px;
  background: #f2f8f5;
}

.view-context-card[hidden] {
  display: none;
}

.view-context-copy {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  min-width: 0;
}

.context-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--green);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(22, 72, 56, 0.08);
}

.view-context-copy h2,
.view-context-copy p {
  margin: 0;
}

.view-context-copy h2 {
  margin: 3px 0 5px;
  font-size: 17px;
}

.view-context-copy p:last-of-type {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.context-path {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  margin-top: 8px;
  padding: 5px 8px;
  color: var(--green);
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
}

.context-path span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.context-steps {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.context-steps li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  color: #46564f;
  font-size: 12px;
}

.context-steps li span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--green);
  font-weight: 700;
}

.context-mini-phone {
  width: 104px;
  height: 146px;
  justify-self: end;
  padding: 8px;
  border: 4px solid #22332d;
  border-radius: 18px;
  background: #fff;
  box-sizing: border-box;
}

.context-mini-phone-bar {
  width: 32px;
  height: 5px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: #d8e3df;
}

.context-mini-phone-content {
  height: 108px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 8px;
  text-align: center;
  border-radius: 8px;
  background: #eef6f2;
}

.context-mini-phone-content span {
  color: var(--green);
}

.context-mini-phone-content b {
  font-size: 11px;
  line-height: 1.25;
}

.context-mini-phone-content small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.3;
}

.customer-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 20px 16px;
}

.customer-summary article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
}

.customer-summary article > i {
  color: var(--green);
}

.customer-summary strong,
.customer-summary span {
  display: block;
}

.customer-summary strong {
  color: var(--green);
  font-size: 22px;
}

.customer-summary span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.privacy-note {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 0 20px 16px;
  padding: 13px 15px;
  color: #3d5149;
  border: 1px solid #cfe2da;
  border-radius: 8px;
  background: #f2f8f5;
}

.privacy-note > i {
  color: var(--green);
}

.privacy-note strong,
.privacy-note span {
  display: block;
}

.privacy-note span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.relationship-dialog {
  width: min(1080px, calc(100vw - 48px));
}

.relationship-shell {
  width: 100%;
}

.relationship-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.82fr);
  overflow: hidden;
  background: #f5f8f7;
}

.relationship-form-panel,
.relationship-timeline-panel {
  min-width: 0;
  padding: 22px;
  overflow-y: auto;
}

.relationship-form-panel {
  background: #fff;
}

.relationship-timeline-panel {
  border-left: 1px solid var(--line);
}

.relationship-identity {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.relationship-identity > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf8;
}

.relationship-identity span,
.relationship-identity strong {
  display: block;
  overflow-wrap: anywhere;
}

.relationship-identity span,
.relationship-identity small {
  color: var(--muted);
  font-size: 11px;
}

.relationship-identity strong {
  margin-top: 4px;
  font-size: 13px;
}

.relationship-identity small {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.relationship-form-panel > label {
  display: grid;
  gap: 7px;
  color: #46544e;
  font-size: 12px;
  font-weight: 700;
}

.relationship-form-panel textarea {
  width: 100%;
  resize: vertical;
}

.timeline-heading h3,
.timeline-heading p {
  margin: 0;
}

.timeline-heading h3 {
  margin-top: 4px;
}

.relationship-timeline {
  position: relative;
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.relationship-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
}

.relationship-timeline-item > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--green);
  border-radius: 50%;
  background: #dfeee7;
}

.relationship-timeline-item > div {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.relationship-timeline-item strong,
.relationship-timeline-item time,
.relationship-timeline-item p {
  display: block;
  margin: 0;
}

.relationship-timeline-item time {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.relationship-timeline-item p {
  margin-top: 7px;
  color: #53615b;
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.relationship-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 34px 18px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed #cfdcd7;
  border-radius: 8px;
  background: #fff;
}

.help-dialog {
  width: min(880px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: auto;
  color: var(--ink);
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(21, 44, 36, 0.25);
}

.help-dialog::backdrop {
  background: rgba(18, 35, 30, 0.52);
  backdrop-filter: blur(3px);
}

.help-shell {
  padding: 24px;
}

.help-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.help-header h2,
.help-header p {
  margin: 0;
}

.help-header h2 {
  margin: 4px 0 6px;
}

.help-header p:last-child {
  color: var(--muted);
}

.help-account-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #c7ded4;
  border-radius: 8px;
  background: #eef7f3;
}

.help-account-card > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--green);
  border-radius: 8px;
  background: #fff;
}

.help-account-card small,
.help-account-card strong,
.help-account-card p {
  display: block;
  margin: 0;
}

.help-account-card small,
.help-account-card p {
  color: var(--muted);
  font-size: 12px;
}

.help-account-card strong {
  margin: 3px 0;
}

.help-account-card > b {
  padding: 6px 9px;
  color: var(--green);
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.help-grid article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.help-grid article > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--green);
  border-radius: 8px;
  background: #edf6f2;
}

.help-grid article b,
.help-grid article p {
  display: block;
  margin: 0;
}

.help-grid article p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.help-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.help-footer span {
  color: var(--muted);
  font-size: 13px;
}

.adult-course-cell {
  display: grid;
  grid-template-columns: 72px minmax(180px, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 280px;
}

.adult-course-cell > div,
.adult-preview-teacher > div,
.adult-preview-service > div {
  min-width: 0;
}

.adult-course-cell strong,
.adult-course-cell small {
  display: block;
}

.adult-course-cell small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.adult-course-thumb {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #eef4f1;
}

.adult-course-thumb-empty {
  display: grid;
  place-items: center;
  color: var(--green);
}

.delivery-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  color: #245b4a;
  border: 1px solid #cfe3db;
  border-radius: 999px;
  background: #edf6f2;
  font-size: 12px;
  font-weight: 700;
}

.delivery-live_group {
  color: #7b4a17;
  border-color: #ecd8bc;
  background: #fff7ea;
}

.learning-progress {
  min-width: 190px;
}

.learning-progress > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  font-size: 12px;
}

.learning-progress progress {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #e6eeea;
}

.learning-progress progress::-webkit-progress-bar {
  background: #e6eeea;
}

.learning-progress progress::-webkit-progress-value {
  background: var(--green);
}

.adult-preview-screen {
  overflow: hidden;
  color: #1d2925;
  border: 1px solid #d6dfdb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(24, 61, 50, 0.1);
}

.adult-preview-cover {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: #5d756d;
  background-color: #eaf2ee;
  background-position: center;
  background-size: cover;
}

.adult-preview-cover svg {
  width: 30px;
  height: 30px;
}

.adult-preview-body {
  padding: 18px;
}

.adult-preview-badge {
  display: inline-flex;
  padding: 4px 8px;
  color: #8a501b;
  border-radius: 4px;
  background: #fff2dd;
  font-size: 12px;
  font-weight: 700;
}

.adult-preview-body h3 {
  margin: 10px 0 6px;
  font-size: 22px;
  line-height: 1.35;
}

.adult-preview-body > p {
  margin: 0;
  color: #65746f;
  font-size: 14px;
  line-height: 1.65;
}

.adult-preview-teacher,
.adult-preview-service {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px;
  border-radius: 6px;
  background: #f5f8f6;
}

.adult-preview-teacher > span,
.adult-preview-service > svg {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--green);
  font-weight: 800;
}

.adult-preview-service > svg {
  padding: 10px;
}

.adult-preview-teacher b,
.adult-preview-teacher small,
.adult-preview-service b,
.adult-preview-service small {
  display: block;
}

.adult-preview-teacher small,
.adult-preview-service small {
  margin-top: 3px;
  color: #6e7b76;
  line-height: 1.45;
}

.adult-preview-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.adult-preview-price strong {
  color: #ce5c2c;
  font-size: 24px;
}

.adult-preview-price del {
  margin-left: 8px;
  color: #98a19e;
  font-size: 12px;
}

.adult-preview-price button {
  min-width: 118px;
  min-height: 42px;
  color: #fff;
  border: 0;
  border-radius: 6px;
  background: var(--green);
  font-weight: 700;
}

@media (max-width: 1180px) {
  .beginner-actions,
  .content-kind-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .beginner-workflow {
    grid-template-columns: minmax(0, 1fr);
  }

  .runtime-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .view-context-card {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  }

  .context-mini-phone {
    display: none;
  }
}

@media (max-width: 760px) {
  .help-button {
    min-width: 42px;
    width: 42px;
    padding: 0;
  }

  .help-button span {
    display: none;
  }

  .beginner-home {
    padding: 18px;
  }

  .beginner-home-head,
  .help-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .beginner-role-badge {
    align-self: flex-start;
  }

  .beginner-actions,
  .content-kind-cards,
  .help-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .workflow-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 16px;
  }

  .workflow-track li::after {
    display: none;
  }

  .editor-stepper {
    padding: 12px 16px;
  }

  .editor-stepper li {
    align-items: flex-start;
  }

  .editor-stepper li div {
    display: none;
  }

  .editor-stepper li:not(:last-child)::after {
    right: 20%;
    width: 35%;
  }

  .view-context-card,
  .relationship-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .view-context-card {
    margin: 0 14px 14px;
    padding: 16px;
  }

  .context-steps {
    padding-left: 58px;
  }

  .customer-summary,
  .relationship-identity {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .relationship-dialog {
    width: 100vw;
  }

  .relationship-timeline-panel {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .help-shell {
    padding: 18px;
  }

  .help-account-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .help-account-card > b {
    grid-column: 2;
    justify-self: start;
  }

  .runtime-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .runtime-panel-head button {
    justify-content: center;
  }

  .runtime-state-banner,
  .runtime-blocker {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .runtime-health-pill,
  .runtime-blocker > b {
    grid-column: 2;
    justify-self: start;
  }

  .runtime-metric-grid,
  .runtime-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
