:root {
  --bg: #f6f2ea;
  --panel: #ffffff;
  --ink: #1c1a17;
  --muted: #736b5f;
  --line: #e7ddcb;
  --gold: #c99331;
  --gold-strong: #9f6d18;
  --gold-soft: #f2dfb6;
  --nav: #090b0e;
  --nav-2: #12161b;
  --text: var(--ink);
  --border: var(--line);
  --tech: #41d7c0;
  --tech-soft: #dff9f3;
  --panel-tint: #fbf7ee;
  --ok: #22965f;
  --warn: #c47a10;
  --bad: #c04444;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #f8f4ed 0%, #f1eadf 42%, #f6f2ea 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--nav), var(--nav-2));
  color: #f8e6bf;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 22px 18px 18px;
  border-bottom: 1px solid rgba(242, 198, 109, 0.18);
}

.brand img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
}

.brand strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
}

.brand span {
  display: block;
  margin-top: 4px;
  color: #b9944a;
  font-size: 11px;
  letter-spacing: 1.8px;
}

nav {
  flex: 1;
  padding: 14px 10px;
  overflow: auto;
}

.nav-item {
  width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #d7c7a7;
  text-align: left;
}

.nav-item.active {
  background: linear-gradient(180deg, #725420, #4a3618);
  color: #ffe5a7;
}

.nav-icon {
  width: 22px;
  color: var(--gold);
  text-align: center;
}

.version {
  padding: 18px;
  color: #806c43;
  font-size: 12px;
}

.main {
  width: calc(100% - 260px);
  min-width: 0;
  min-height: 100vh;
  margin-left: 260px;
  overflow-x: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  height: 78px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 242, 234, 0.92);
  backdrop-filter: blur(14px);
}

#menuButton {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
}

h1 {
  margin: 0;
  font-size: 22px;
}

p {
  margin: 4px 0 0;
  color: var(--muted);
}

.admin-login {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-login input {
  width: 180px;
}

.admin-login button,
.inline-action {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: #6e511f;
}

.inline-action.primary {
  border-color: #c38b1f;
  background: linear-gradient(180deg, #d8a43c, #9c6a14);
  color: #fffaf0;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(120, 79, 15, 0.14);
}

.inline-action:disabled {
  cursor: not-allowed;
  opacity: 0.54;
}

.primary-action {
  min-height: 40px;
  padding: 10px 16px;
  border: 1px solid #c38b1f;
  border-radius: 8px;
  background: linear-gradient(180deg, #d8a43c, #9c6a14);
  color: #fffaf0;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(120, 79, 15, 0.16);
}

.primary-action:disabled {
  cursor: wait;
  opacity: 0.68;
}

.muted-action {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--muted);
  font-size: 13px;
}

.readonly-status {
  display: grid;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid #eadcc5;
  border-radius: 8px;
  background: #f7f1e6;
  color: #6a5b43;
}

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

.readonly-status strong {
  font-weight: 600;
}

.admin-login button {
  border-color: rgba(201, 147, 49, 0.5);
  background: #fff6df;
}

.admin-login button.is-hidden {
  display: none;
}

.admin-login button:disabled {
  opacity: 0.65;
  cursor: wait;
}

#cloudStatus {
  min-width: 72px;
  color: var(--muted);
  font-size: 12px;
}

#cloudStatus.ready {
  color: var(--ok);
}

#cloudStatus.connecting {
  color: #b07a14;
}

#cloudStatus.error {
  color: var(--bad);
}

#cloudStatus.login-required {
  color: var(--muted);
}

#content {
  min-width: 0;
  padding: 18px 28px 40px;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.stats {
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
}

.grid.two {
  grid-template-columns: 1.2fr 0.8fr;
}

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

.panel,
.stat,
.table-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(73, 55, 20, 0.06);
}

.table-card {
  width: 100%;
  max-width: 100%;
  overflow: auto;
}

.stat {
  min-height: 96px;
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.stat-button {
  width: 100%;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}

.stat-button:hover,
.summary-link:hover {
  border-color: var(--gold);
  box-shadow: 0 12px 28px rgba(199, 148, 38, 0.14);
  transform: translateY(-1px);
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.stat strong {
  display: block;
  margin-top: 8px;
  font-size: 27px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat small {
  display: block;
  margin-top: 6px;
  color: #94723a;
  font-size: 12px;
  line-height: 1.35;
}

.panel {
  padding: 16px;
}

.generation-runtime-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid rgba(45, 197, 158, 0.42);
  border-radius: 10px;
  color: #ecfff8;
  background:
    radial-gradient(circle at 92% 8%, rgba(56, 214, 174, 0.18), transparent 30%),
    linear-gradient(135deg, #071a18 0%, #0d2623 54%, #132018 100%);
  box-shadow: 0 18px 44px rgba(14, 44, 36, 0.2);
}

.generation-runtime-panel.is-floor {
  border-color: rgba(245, 181, 74, 0.56);
  background:
    radial-gradient(circle at 92% 8%, rgba(245, 181, 74, 0.2), transparent 30%),
    linear-gradient(135deg, #201708 0%, #2b2110 54%, #182018 100%);
}

.generation-runtime-panel.is-unknown {
  border-color: rgba(239, 102, 102, 0.52);
  background:
    radial-gradient(circle at 92% 8%, rgba(239, 102, 102, 0.18), transparent 30%),
    linear-gradient(135deg, #241010 0%, #251918 54%, #171c1b 100%);
}

.generation-runtime-panel.is-partial {
  border-color: rgba(245, 181, 74, 0.5);
  background:
    radial-gradient(circle at 92% 8%, rgba(245, 181, 74, 0.16), transparent 30%),
    linear-gradient(135deg, #17180d 0%, #222414 54%, #14201b 100%);
}

.generation-runtime-head,
.generation-runtime-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.generation-runtime-head h2 {
  margin: 5px 0 7px;
  color: #fff6db;
  font-size: 24px;
  line-height: 1.2;
}

.generation-runtime-head p {
  max-width: 860px;
  margin: 0;
  color: #b8d0c8;
  font-size: 13px;
  line-height: 1.55;
}

.generation-runtime-kicker {
  color: #69d9bd;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.generation-runtime-live {
  flex: 0 0 210px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  text-align: right;
}

.generation-runtime-live span {
  display: block;
  color: #93bfb2;
  font-size: 12px;
}

.generation-runtime-live strong {
  display: block;
  margin-top: 4px;
  color: #fff8e7;
  font-size: 28px;
  font-variant-numeric: tabular-nums;
}

.generation-runtime-live small {
  color: #a9c8bf;
  font-size: 11px;
  font-weight: 500;
}

.generation-runtime-contract,
.generation-runtime-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}

.generation-runtime-contract > div,
.generation-runtime-metrics > div {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.generation-runtime-contract > div {
  border-color: rgba(105, 217, 189, 0.16);
  background: rgba(3, 13, 12, 0.28);
}

.generation-runtime-contract span,
.generation-runtime-contract small,
.generation-runtime-metrics span,
.generation-runtime-metrics small {
  display: block;
  color: #91b2a8;
  font-size: 11px;
  line-height: 1.35;
}

.generation-runtime-contract strong,
.generation-runtime-metrics strong {
  display: block;
  margin: 5px 0 4px;
  color: #fff5d9;
  font-size: 20px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.generation-runtime-contract strong {
  font-size: 16px;
}

.generation-runtime-footer {
  padding-top: 2px;
}

.generation-runtime-reason {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.generation-runtime-reason strong,
.generation-runtime-reason span {
  color: #9dc1b6;
  font-size: 11px;
}

.generation-runtime-reason code {
  max-width: 760px;
  color: #f2e5be;
  font-size: 11px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.generation-runtime-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.generation-runtime-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.admin-release-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 2.28fr);
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(198, 151, 58, 0.34);
  border-radius: 10px;
  background: linear-gradient(135deg, #fffaf0 0%, #fffdf8 58%, #f5fbf7 100%);
  box-shadow: 0 14px 34px rgba(66, 48, 17, 0.08);
}

.admin-release-intro,
.admin-release-metrics > div {
  min-width: 0;
  border-radius: 8px;
}

.admin-release-intro {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 14px;
  color: #fff9e8;
  background: linear-gradient(145deg, #1c2825 0%, #263b35 58%, #4a3a19 100%);
}

.admin-release-intro span,
.admin-release-intro small,
.admin-release-metrics span,
.admin-release-metrics small {
  display: block;
  font-size: 11px;
  line-height: 1.45;
}

.admin-release-intro span {
  color: #87d7c3;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.admin-release-intro strong {
  font-size: 23px;
  line-height: 1.15;
}

.admin-release-intro small {
  color: #c8d9d3;
}

.admin-release-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.admin-release-metrics > div {
  padding: 12px;
  border: 1px solid rgba(151, 119, 56, 0.18);
  background: rgba(255, 255, 255, 0.72);
}

.admin-release-metrics span {
  color: #7d6a45;
  font-weight: 700;
}

.admin-release-metrics strong {
  display: block;
  margin: 5px 0;
  color: #172b27;
  font-size: 17px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.admin-release-metrics small {
  color: #7d745f;
}

.aftercare-auto-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(37, 151, 118, 0.25);
  background: linear-gradient(135deg, #fbfffd 0%, #fffdf8 100%);
}

.aftercare-auto-panel.has-alert {
  border-color: rgba(203, 126, 51, 0.34);
}

.aftercare-auto-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.aftercare-auto-head h2 {
  margin: 4px 0 6px;
  font-size: 20px;
}

.aftercare-auto-head p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.aftercare-auto-total {
  flex: 0 0 190px;
  padding: 11px 13px;
  border-radius: 8px;
  background: #112925;
  color: #f7fff9;
  text-align: right;
}

.aftercare-auto-total span,
.aftercare-auto-total small {
  display: block;
  color: #9fc8bb;
  font-size: 11px;
}

.aftercare-auto-total strong {
  display: block;
  margin: 3px 0;
  font-size: 23px;
}

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

.aftercare-auto-card {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.aftercare-auto-card span,
.aftercare-auto-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.aftercare-auto-card strong {
  display: block;
  margin: 5px 0;
  color: #1c2b27;
  font-size: 23px;
}

.aftercare-auto-card.is-completed {
  border-color: rgba(44, 161, 115, 0.28);
  background: #f3fcf7;
}

.aftercare-auto-card.is-terminal,
.aftercare-auto-card.is-manual {
  border-color: rgba(199, 88, 69, 0.24);
  background: #fff7f4;
}

.dashboard-command {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(360px, 0.85fr);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid rgba(65, 215, 192, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #0c1116 0%, #121922 56%, #1b1710 100%);
  box-shadow: 0 18px 42px rgba(16, 22, 26, 0.16);
}

.dashboard-command-copy {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
}

.dashboard-command-copy span {
  color: #83dccc;
  font-size: 13px;
}

.dashboard-command-copy strong {
  color: #fff3d3;
  font-size: 28px;
  line-height: 1.1;
}

.dashboard-command-copy p {
  max-width: 760px;
  margin: 0;
  color: #b7c3b9;
  line-height: 1.55;
}

.dashboard-command-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.dashboard-command-status .summary-link,
.dashboard-command-status > div {
  min-height: 86px;
  border-color: rgba(255, 232, 173, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: #f7e5bd;
}

.dashboard-command-status span {
  color: #9bb3aa;
}

.dashboard-command-status strong {
  color: #fff7df;
  font-size: 22px;
}

.dashboard-section {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.dashboard-section-tight {
  margin-bottom: 12px;
}

.dashboard-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-section-head h2 {
  margin: 0;
  color: #211c15;
  font-size: 17px;
}

.dashboard-section-head p {
  margin: 0;
  color: #82776b;
  font-size: 13px;
  line-height: 1.45;
}

.hero-stats {
  grid-template-columns: 1.25fr 0.95fr 0.95fr 0.95fr;
}

.hero-stats .stat {
  min-height: 136px;
  padding: 18px;
  border-color: rgba(65, 215, 192, 0.32);
  background:
    linear-gradient(160deg, #111820 0%, #121d21 48%, #211a10 100%);
  box-shadow: 0 18px 42px rgba(16, 22, 26, 0.14);
}

.hero-stats .stat::after {
  content: "";
  position: absolute;
  inset: auto 14px 14px 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(65, 215, 192, 0.72), transparent);
}

.hero-stats .stat span,
.hero-stats .stat small {
  color: #a7bbb1;
}

.hero-stats .stat strong {
  color: #fff4ce;
  font-size: 36px;
}

.hero-stats .stat-primary strong {
  color: #fff2bd;
}

.hero-stats .stat-alert {
  border-color: rgba(247, 192, 91, 0.34);
}

.hero-stats .stat-alert strong {
  color: #66ecd4;
}

.queue-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.customer-work-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.queue-stats .stat {
  min-height: 92px;
  background: #fffaf2;
}

.queue-stats .stat strong {
  font-size: 26px;
}

.queue-stats .stat-governance {
  border-style: dashed;
  background: #f8f3ea;
}

.queue-stats .stat-governance span,
.queue-stats .stat-governance small {
  color: #8d806e;
}

.queue-stats .stat-governance strong {
  color: #80613a;
}

.governance-rollup {
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px dashed #d6c4a4;
  border-radius: 8px;
  background: #fbf6ec;
}

.governance-rollup summary {
  cursor: pointer;
  color: #7d642f;
  font-weight: 800;
}

.governance-rollup .queue-stats {
  margin-top: 10px;
}

.support-stats {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.support-stats .stat {
  min-height: 82px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 8px 18px rgba(73, 55, 20, 0.04);
}

.support-stats .stat strong {
  font-size: 22px;
}

.dashboard-split-panel {
  margin-top: 4px;
}

.dashboard-lists {
  margin-top: 14px;
}

.ops-war-room {
  position: relative;
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(65, 215, 192, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(7, 12, 15, 0.98), rgba(10, 23, 25, 0.96) 45%, rgba(34, 26, 12, 0.95)),
    repeating-linear-gradient(90deg, rgba(65, 215, 192, 0.06) 0 1px, transparent 1px 84px);
  box-shadow: 0 22px 52px rgba(16, 22, 26, 0.2);
}

.service-desk-hero,
.service-page-head {
  margin-bottom: 14px;
  border-color: rgba(65, 215, 192, 0.28);
  background:
    linear-gradient(135deg, rgba(7, 16, 18, 0.98), rgba(20, 33, 27, 0.94)),
    radial-gradient(circle at 84% 12%, rgba(65, 215, 192, 0.14), transparent 32%);
  color: #f7f2df;
}

.service-desk-hero-head,
.service-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.service-desk-hero h2,
.service-page-head h2 {
  margin: 8px 0 4px;
  color: #fff6d6;
  font-size: 22px;
}

.service-desk-hero p,
.service-page-head p {
  margin: 0;
  color: #a8c7be;
}

.service-desk-total,
.service-page-rule {
  min-width: 210px;
  padding: 12px 14px;
  border: 1px solid rgba(244, 201, 93, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.service-desk-total span,
.service-desk-total strong,
.service-page-rule strong,
.service-page-rule span {
  display: block;
}

.service-desk-total span,
.service-page-rule span {
  color: #9fb9b2;
  font-size: 12px;
}

.service-desk-total strong,
.service-page-rule strong {
  margin-top: 3px;
  color: #ffe396;
  font-size: 24px;
}

.service-page-rule strong {
  font-size: 16px;
}

.service-desk-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.service-desk-action-card {
  min-height: 112px;
  padding: 14px;
  border: 1px solid rgba(65, 215, 192, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #f4f0df;
  text-align: left;
}

.service-desk-action-card span,
.service-desk-action-card strong,
.service-desk-action-card small {
  display: block;
}

.service-desk-action-card strong {
  margin: 10px 0 6px;
  color: #5ff1dc;
  font-size: 30px;
}

.service-desk-action-card small {
  color: #adc4bd;
  line-height: 1.45;
}

.service-desk-action-card.is-alert strong {
  color: #ffe07a;
}

.service-desk-action-card.is-warn strong {
  color: #ffc36a;
}

.service-desk-action-card.is-cyan strong {
  color: #5ff1dc;
}

.service-desk-rule-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.service-desk-rule-strip span {
  padding: 7px 10px;
  border: 1px solid rgba(65, 215, 192, 0.18);
  border-radius: 999px;
  background: rgba(65, 215, 192, 0.08);
  color: #d6f4ed;
  font-size: 12px;
}

.customer-command-panel .service-desk-rule-strip span {
  border-color: rgba(201, 150, 39, 0.24);
  background: #fff8e7;
  color: #80632a;
}

.finance-folded-panel {
  padding: 0;
  overflow: hidden;
}

.finance-folded-panel > summary,
.support-sop-panel > details > summary,
.refund-workflow-panel > details > summary,
.support-readiness-details > summary {
  padding: 14px 16px;
  color: #76551f;
  font-weight: 900;
  cursor: pointer;
}

.finance-folded-panel .finance-ops-panel {
  margin: 0;
  border: 0;
  box-shadow: none;
}

.order-service-amount strong {
  font-size: 18px;
}

.order-service-status .image-readback-cell,
.order-service-status .order-trace-health {
  margin-top: 8px;
}

.order-support-cell .badge {
  width: fit-content;
}

.ops-war-room::before,
.ops-war-room::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.ops-war-room::before {
  inset: 10px;
  border: 1px solid rgba(65, 215, 192, 0.18);
}

.ops-war-room::after {
  inset: auto 16px 16px 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 201, 93, 0.75), rgba(65, 215, 192, 0.75), transparent);
}

.ops-screen-top,
.ops-kpi-row,
.ops-screen-grid {
  position: relative;
  z-index: 1;
}

.ops-screen-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.ops-kicker {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(65, 215, 192, 0.44);
  color: #51ead9;
  font-size: 12px;
}

.ops-screen-top h2 {
  margin: 6px 0 0;
  color: #f8f6df;
  font-size: 24px;
  line-height: 1.15;
}

.ops-screen-top p {
  margin: 4px 0 0;
  color: #99b6af;
  font-size: 13px;
}

.ops-screen-meta {
  min-width: 180px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 232, 173, 0.16);
  background: rgba(255, 255, 255, 0.06);
  text-align: right;
}

.ops-screen-meta span,
.ops-screen-meta strong {
  display: block;
}

.ops-screen-meta span {
  color: #96aaa5;
  font-size: 12px;
}

.ops-screen-meta strong {
  margin-top: 4px;
  color: #f6dfa0;
  font-size: 13px;
}

.ops-period-control {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 260px;
}

.ops-period-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(65, 215, 192, 0.22);
  border-radius: 8px;
  background: rgba(2, 16, 15, 0.62);
}

.ops-period-tab {
  min-width: 52px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #a9c5bf;
  font-size: 13px;
  font-weight: 800;
}

.ops-period-tab.is-active {
  border-color: rgba(65, 215, 192, 0.5);
  background: rgba(65, 215, 192, 0.16);
  color: #57ead8;
}

.ops-period-tab:hover {
  border-color: rgba(255, 232, 173, 0.34);
  color: #fff1bd;
}

.ops-date-range-control {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(255, 232, 173, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #9db7b1;
}

.ops-date-range-control input {
  width: 124px;
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid rgba(65, 215, 192, 0.22);
  border-radius: 6px;
  background: rgba(2, 16, 15, 0.58);
  color: #effcf7;
  font: inherit;
}

.ops-date-range-control button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(65, 215, 192, 0.36);
  border-radius: 6px;
  background: rgba(65, 215, 192, 0.15);
  color: #57ead8;
  font-weight: 800;
}

.ops-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(184px, 1fr));
  gap: 10px;
}

.ops-kpi-card {
  position: relative;
  min-width: 0;
  min-height: 106px;
  padding: 12px 12px 12px 48px;
  border: 1px solid rgba(65, 215, 192, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.065);
  color: #effcf7;
  text-align: left;
  overflow: hidden;
}

.ops-kpi-card::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 48px;
  height: 2px;
  background: linear-gradient(90deg, rgba(65, 215, 192, 0.75), transparent);
}

.ops-kpi-card strong,
.ops-kpi-card small,
.ops-kpi-label {
  display: block;
}

.ops-icon {
  position: absolute;
  top: 14px;
  left: 12px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(65, 215, 192, 0.42);
  color: #52e8d7;
  font-weight: 700;
  font-size: 13px;
}

.ops-kpi-label {
  color: #9db7b1;
  font-size: 12px;
}

.ops-kpi-card strong {
  margin-top: 8px;
  color: #fff1bd;
  font-size: 24px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ops-period-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.ops-period-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(65, 215, 192, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #effcf7;
}

.ops-period-card span,
.ops-period-card strong,
.ops-period-card small {
  display: block;
}

.ops-period-card span {
  color: #9db7b1;
  font-size: 12px;
  font-weight: 800;
}

.ops-period-card strong {
  margin-top: 6px;
  color: #ffd65d;
  font-size: 22px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.ops-period-card small {
  margin-top: 6px;
  color: #9eb2ab;
  font-size: 12px;
  line-height: 1.35;
}

.ops-period-profit {
  border-color: rgba(244, 201, 93, 0.34);
  background: rgba(244, 201, 93, 0.08);
}

.trial-economics-panel {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(244, 201, 93, 0.34);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(244, 201, 93, 0.1), rgba(65, 215, 192, 0.06) 58%, rgba(255, 255, 255, 0.025));
}

.trial-economics-panel.is-pending {
  border-style: dashed;
}

.trial-economics-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.trial-economics-head h3 {
  margin: 7px 0 0;
  color: #fff1bd;
  font-size: 21px;
}

.trial-economics-head p,
.trial-economics-panel.is-pending > p {
  max-width: 820px;
  margin: 7px 0 0;
  color: #9db7b1;
  font-size: 13px;
  line-height: 1.5;
}

.trial-break-even {
  min-width: 174px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  text-align: right;
}

.trial-break-even span,
.trial-break-even strong {
  display: block;
}

.trial-break-even span {
  color: #98ada7;
  font-size: 12px;
}

.trial-break-even strong {
  margin-top: 5px;
  color: #fff1bd;
  font-size: 16px;
}

.trial-break-even.is-profit {
  border-color: rgba(107, 224, 145, 0.4);
  background: rgba(107, 224, 145, 0.1);
}

.trial-break-even.is-profit strong,
.trial-metric-card.is-profit strong {
  color: #8ff0ad;
}

.trial-break-even.is-loss,
.trial-metric-card.is-loss {
  border-color: rgba(255, 126, 113, 0.38);
  background: rgba(255, 126, 113, 0.08);
}

.trial-break-even.is-loss strong,
.trial-metric-card.is-loss strong {
  color: #ff9b90;
}

.trial-funnel-grid,
.trial-economics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 9px;
  margin-top: 13px;
}

.trial-economics-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.trial-metric-card {
  min-width: 0;
  min-height: 104px;
  padding: 12px;
  border: 1px solid rgba(65, 215, 192, 0.19);
  border-radius: 8px;
  background: rgba(2, 16, 15, 0.48);
}

.trial-metric-card span,
.trial-metric-card strong,
.trial-metric-card small {
  display: block;
}

.trial-metric-card span {
  color: #9db7b1;
  font-size: 12px;
  font-weight: 800;
}

.trial-metric-card strong {
  margin-top: 9px;
  color: #f8f6df;
  font-size: 21px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.trial-metric-card small {
  margin-top: 8px;
  color: #8ea69f;
  font-size: 11px;
  line-height: 1.4;
}

.trial-metric-card.is-accent {
  border-color: rgba(65, 215, 192, 0.42);
  background: rgba(65, 215, 192, 0.09);
}

.trial-metric-card.is-accent strong {
  color: #5df2e3;
}

.trial-metric-card.is-warn,
.trial-break-even.is-pending {
  border-color: rgba(244, 201, 93, 0.38);
  background: rgba(244, 201, 93, 0.08);
}

.trial-warning {
  margin-top: 11px;
  padding: 10px 12px;
  border-left: 3px solid #f4c95d;
  background: rgba(244, 201, 93, 0.1);
  color: #f6dfa0;
  font-size: 12px;
  line-height: 1.45;
}

.trial-pending-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.trial-pending-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.trial-cost-mix-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.trial-cost-mix-card {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.trial-cost-mix-card h4 {
  margin: 0 0 10px;
  color: #effcf7;
  font-size: 14px;
}

.trial-cost-mix-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.trial-cost-line {
  padding: 9px;
  border: 1px solid rgba(65, 215, 192, 0.14);
  border-radius: 6px;
  background: rgba(2, 16, 15, 0.32);
}

.trial-cost-line span,
.trial-cost-line strong,
.trial-cost-line small {
  display: block;
}

.trial-cost-line span,
.trial-cost-line small {
  color: #91aaa3;
  font-size: 11px;
}

.trial-cost-line strong {
  margin: 5px 0;
  color: #fff1bd;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.trial-cost-line.is-warn {
  border-color: rgba(255, 126, 113, 0.35);
}

.trial-reason-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.trial-reason-strip span {
  padding: 6px 8px;
  border: 1px solid rgba(244, 201, 93, 0.2);
  border-radius: 999px;
  color: #c8d8d3;
  font-size: 11px;
}

.trial-reason-strip b {
  margin-right: 5px;
  color: #f6dfa0;
}

.theme-leaderboard-panel {
  border-color: rgba(63, 211, 194, 0.22);
  background:
    linear-gradient(135deg, rgba(63, 211, 194, 0.08), rgba(255, 255, 255, 0.94) 44%),
    var(--panel);
}

.theme-leaderboard-panel .ops-table {
  min-width: 980px;
}

.ops-kpi-card small {
  margin-top: 8px;
  color: #97aaa4;
  font-size: 12px;
  line-height: 1.3;
}

.ops-kpi-card.ops-kpi-gold strong {
  color: #ffd65d;
}

.ops-kpi-card.ops-kpi-cyan strong {
  color: #5df2e3;
}

.ops-kpi-card.ops-kpi-green strong {
  color: #8ff0ad;
}

.ops-kpi-card.ops-kpi-alert {
  border-color: rgba(244, 201, 93, 0.44);
}

.ops-kpi-card.ops-kpi-alert strong {
  color: #ffd65d;
}

.ops-governance-details {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 232, 173, 0.2);
}

.ops-governance-details summary {
  cursor: pointer;
  color: #9bb3aa;
  font-size: 12px;
  font-weight: 800;
}

.ops-governance-details[open] summary {
  margin-bottom: 8px;
}

.ops-secondary-details {
  margin: 12px 0;
}

.ops-secondary-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #eadcc5;
  border-radius: 8px;
  background: #fffaf2;
  color: #7a5b1f;
  cursor: pointer;
  font-weight: 800;
}

.ops-secondary-details > summary small {
  color: #8f826e;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}

.ops-secondary-details[open] > summary {
  margin-bottom: 12px;
}

.ops-screen-grid {
  display: grid;
  grid-template-columns: minmax(210px, 0.82fr) minmax(240px, 1fr) minmax(240px, 1fr) minmax(170px, 0.72fr);
  gap: 10px;
  align-items: stretch;
}

.ops-core-dial,
.ops-chart-card,
.ops-event-panel {
  min-width: 0;
  min-height: 260px;
  padding: 12px;
  border: 1px solid rgba(65, 215, 192, 0.22);
  border-radius: 8px;
  background: rgba(3, 8, 12, 0.42);
}

.ops-core-dial {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
}

.ops-ring {
  --ring: 0;
  width: min(190px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(9, 15, 18, 0.95) 0 58%, transparent 59%),
    conic-gradient(#52e8d7 calc(var(--ring) * 1%), rgba(255, 214, 93, 0.72) 0, rgba(255, 255, 255, 0.08) 0);
  box-shadow: inset 0 0 24px rgba(65, 215, 192, 0.22), 0 0 28px rgba(65, 215, 192, 0.15);
}

.ops-ring > div {
  text-align: center;
}

.ops-ring span,
.ops-ring strong {
  display: block;
}

.ops-ring span {
  color: #9eb6b0;
  font-size: 12px;
}

.ops-ring strong {
  margin-top: 6px;
  color: #fff1bd;
  font-size: 27px;
  line-height: 1;
}

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

.ops-mini-link {
  min-height: 72px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #eef7f3;
  text-align: left;
}

.ops-mini-link span,
.ops-mini-link strong,
.ops-mini-link small {
  display: block;
}

.ops-mini-link span,
.ops-mini-link small {
  color: #92aaa4;
  font-size: 11px;
}

.ops-mini-link strong {
  margin-top: 5px;
  color: #f6dfa0;
  font-size: 17px;
  line-height: 1.05;
}

.ops-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.ops-card-head h3 {
  margin: 0;
  color: #f8f6df;
  font-size: 15px;
}

.ops-card-head span {
  color: #91a8a1;
  font-size: 11px;
}

.ops-chart {
  display: grid;
  gap: 8px;
}

.ops-chart svg {
  width: 100%;
  height: 184px;
  display: block;
}

.ops-grid-lines line {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
}

.ops-chart-legend {
  display: flex;
  gap: 12px;
  color: #a8bab4;
  font-size: 12px;
}

.ops-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ops-chart-legend i {
  width: 18px;
  height: 3px;
  display: inline-block;
}

.chart-empty {
  min-height: 184px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  color: #9fb0ab;
  font-size: 13px;
}

.ops-bars {
  height: 214px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(26px, 1fr);
  gap: 8px;
  align-items: end;
  padding-top: 10px;
}

.ops-bar {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  align-items: end;
}

.ops-bar span {
  min-height: 5px;
  display: block;
  border: 1px solid rgba(65, 215, 192, 0.28);
  background: linear-gradient(180deg, #52e8d7, #1d817d 55%, rgba(244, 201, 93, 0.68));
}

.ops-bar small {
  min-height: 16px;
  color: #9eb4ae;
  font-size: 10px;
  text-align: center;
}

.ops-event-panel {
  display: grid;
  grid-template-rows: auto;
  align-content: start;
  gap: 8px;
}

.ops-event-link {
  min-width: 0;
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #d7e6e1;
}

.ops-event-link.is-active {
  border-color: rgba(244, 201, 93, 0.4);
  background: rgba(244, 201, 93, 0.08);
}

.ops-event-link.is-soft {
  opacity: 0.82;
}

.ops-event-link span {
  color: #a6b9b3;
}

.ops-event-link strong {
  color: #fff1bd;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.ops-event-divider {
  margin: 2px 0;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #8da19b;
  font-size: 11px;
}

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

.trace-grid > div,
.trace-grid .summary-link {
  min-width: 0;
  overflow: hidden;
}

.trace-grid strong,
.summary-link strong {
  overflow-wrap: anywhere;
}

.asset-panel {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  gap: 10px;
}

.asset-panel img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  border: 1px solid rgba(201, 147, 49, 0.28);
  border-radius: 8px;
  background: #090b0e;
}

.asset-panel small {
  display: block;
  margin-top: auto;
  color: #94723a;
  word-break: break-all;
}

.panel-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.codex-toolbar {
  margin-top: 18px;
}

.codex-worker-grid {
  align-items: start;
}

.codex-task-panel,
.codex-preview-panel {
  display: grid;
  gap: 16px;
}

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

.codex-id-grid div {
  min-width: 0;
  padding: 10px;
  border: 1px solid #efe1c9;
  border-radius: 8px;
  background: #fffaf1;
}

.codex-id-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.codex-id-grid code,
.codex-ref-list code,
.codex-upload-result code {
  display: block;
  color: #1d1a15;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  word-break: break-all;
}

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

.codex-prompt-label textarea {
  min-height: 260px;
  line-height: 1.65;
}

.codex-ref-list {
  display: grid;
  gap: 10px;
}

.codex-ref-list a {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid #efe1c9;
  border-radius: 8px;
  background: #fffaf1;
  color: #6e511f;
  text-decoration: none;
}

.codex-output-preview,
.codex-output-empty {
  width: 100%;
  max-height: 560px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090b0e;
}

.codex-output-preview {
  object-fit: contain;
}

.codex-output-empty {
  min-height: 280px;
  display: grid;
  place-items: center;
  color: #8d7b5e;
}

.codex-upload-result {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid #cde8d5;
  border-radius: 8px;
  background: #f2fbf5;
  color: var(--ok);
}

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

.note-panel {
  margin-top: 14px;
}

.sync-note {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(201, 147, 49, 0.32);
  border-radius: 8px;
  background: rgba(255, 247, 228, 0.78);
  color: #725423;
  font-size: 13px;
  line-height: 1.55;
}

.sync-note.subtle {
  background: #fbf6ec;
  color: var(--muted);
}

.sync-note-detail {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(201, 147, 49, 0.26);
  color: #4f7f77;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.message {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #efe7d6;
  color: #6e511f;
}

.message.error {
  background: #ffe8e8;
  color: var(--bad);
}

.editor-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
}

.editor-card.compact {
  grid-template-columns: 1fr;
}

.editor-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #08090c;
}

.clean-editor {
  align-items: start;
}

.editor-image-preview {
  position: relative;
  min-height: 240px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111316;
  color: #d9c391;
  text-align: center;
}

.editor-image-preview img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border: 0;
  background: transparent;
}

.editor-image-preview span {
  color: #9d8b67;
  font-size: 12px;
  line-height: 1.35;
  word-break: break-all;
}

.editor-image-preview.is-broken img {
  display: none;
}

.editor-image-preview.is-broken::before {
  content: "图片不可预览";
  color: #f0d59a;
  font-weight: 700;
}

.editor-image-preview.is-broken::after {
  content: "可能是权限不足、临时链接过期、cloud:// 未转可浏览链接，或高清源未补；请重新上传或换高清图源";
  color: #9d8b67;
  font-size: 12px;
  line-height: 1.45;
  padding: 0 8px;
}

.editor-image-preview.empty,
.editor-image-preview.cloud {
  min-height: 220px;
}

.editor-image-preview > div {
  font-weight: 700;
}

.config-card-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.config-card-header strong {
  font-size: 16px;
}

.ops-warning {
  grid-column: 1 / -1;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #f2d49a;
  border-radius: 8px;
  background: #fff7e6;
  color: #8a5a10;
  line-height: 1.55;
}

.model-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.model-summary-grid div {
  min-width: 0;
  padding: 12px;
  border: 1px solid #eadcc5;
  border-radius: 8px;
  background: #fffaf1;
  overflow: hidden;
}

.model-summary-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.model-summary-grid strong {
  display: block;
  margin-top: 6px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.ops-role-panel {
  margin-bottom: 16px;
  border-color: rgba(43, 207, 187, 0.24);
  background:
    linear-gradient(135deg, rgba(13, 45, 42, 0.04), rgba(255, 250, 242, 0.92)),
    #fffaf2;
}

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

.ops-role-card {
  min-height: 86px;
  padding: 12px;
  border: 1px solid rgba(43, 207, 187, 0.22);
  border-radius: 8px;
  background: rgba(10, 35, 32, 0.04);
}

.ops-role-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.ops-role-card strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}

.model-card.legacy {
  border-color: #f1d4a2;
  background: #fffaf0;
}

.legacy-prompt-card {
  border-color: #f1d4a2;
  background: #fffaf0;
}

.readonly-field textarea[readonly] {
  color: #6a5b43;
  background: #f7f1e6;
  cursor: default;
}

.editor-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.editor-fields label.wide {
  grid-column: 1 / -1;
}

.advanced-fields {
  grid-column: 1 / -1;
  border: 1px solid #efe2cb;
  border-radius: 8px;
  background: #fffaf2;
}

.advanced-fields summary {
  cursor: pointer;
  padding: 11px 12px;
  color: #70521f;
  font-weight: 600;
}

.advanced-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 12px 12px;
}

.archive-panel {
  margin-top: 16px;
}

.archive-list {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.archive-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #f0e4d3;
  border-radius: 8px;
  background: #fffdf8;
}

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

.archive-row small {
  margin-top: 3px;
  color: var(--muted);
}

.advanced-field-grid label.wide {
  grid-column: 1 / -1;
}

.image-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.image-upload-label {
  white-space: nowrap;
}

.image-upload-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.inline-image-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.field-help {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.editor-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.panel h2,
.table-card h2 {
  margin: 0 0 12px;
  font-size: 17px;
}

.chart {
  height: 220px;
  display: flex;
  align-items: end;
  gap: 12px;
  padding-top: 24px;
}

.bar {
  flex: 1;
  min-width: 16px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #dba84a, #f2dfb6);
}

.donut {
  width: 220px;
  height: 220px;
  margin: 0 auto;
  border-radius: 50%;
  background: conic-gradient(#d9a341 0 45%, #f2cf82 45% 65%, #73bfb0 65% 80%, #8e7bd3 80% 90%, #d46a6a 90% 100%);
  position: relative;
}

.donut::after {
  content: "订单";
  position: absolute;
  inset: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--panel);
  color: var(--muted);
}

table {
  width: 100%;
  border-collapse: collapse;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.ops-table-card {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.ops-table-card table {
  width: max-content;
  min-width: 100%;
  max-width: none;
  table-layout: fixed;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid #efe7d8;
  color: #342f29;
  font-size: 13px;
  text-align: left;
  vertical-align: top;
  max-width: 260px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

th {
  background: #fbf5e8;
  color: #665b4c;
}

.record-cell {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  overflow-wrap: anywhere;
}

.record-cell strong {
  display: block;
  line-height: 1.35;
}

.record-cell small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.nav-group-label {
  margin: 18px 18px 8px;
  color: #8f7c56;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.nav-role-card {
  margin: 4px 12px 14px;
  padding: 12px 14px;
  border: 1px solid rgba(81, 224, 205, 0.26);
  border-radius: 8px;
  background: rgba(81, 224, 205, 0.07);
  color: #dffbf4;
}

.nav-role-card span {
  display: block;
  font-size: 13px;
  font-weight: 800;
}

.nav-role-card small {
  display: block;
  margin-top: 4px;
  color: rgba(223, 251, 244, 0.66);
  font-size: 11px;
  line-height: 1.35;
}

.nav-advanced-toggle {
  width: calc(100% - 28px);
  margin: 16px 14px 0;
  padding: 12px 14px;
  border: 1px solid rgba(204, 158, 65, 0.34);
  border-radius: 8px;
  background: rgba(204, 158, 65, 0.08);
  color: #d8c48c;
  display: grid;
  gap: 3px;
  text-align: left;
  cursor: pointer;
}

.nav-advanced-toggle span {
  font-size: 13px;
  font-weight: 800;
}

.nav-advanced-toggle small {
  color: rgba(235, 222, 184, 0.64);
  font-size: 11px;
  line-height: 1.35;
}

.nav-advanced-toggle.is-open {
  border-color: rgba(81, 224, 205, 0.42);
  background: rgba(81, 224, 205, 0.08);
  color: #73f3df;
}

.nav-advanced-toggle.is-locked {
  border-color: rgba(143, 124, 86, 0.35);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(216, 196, 140, 0.72);
}

.workspace-switch-panel {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(190px, 1.1fr) minmax(240px, 1.3fr) minmax(190px, 1fr);
  gap: 10px;
  margin-bottom: 14px;
  align-items: stretch;
}

.workspace-mode-card {
  min-height: 82px;
  padding: 12px 14px;
  border: 1px solid rgba(201, 150, 39, 0.22);
  border-radius: 8px;
  background: #fffaf0;
  color: var(--ink);
  text-align: left;
  display: grid;
  gap: 4px;
}

button.workspace-mode-card {
  cursor: pointer;
}

.workspace-mode-card span {
  color: #8a6a2c;
  font-size: 12px;
  font-weight: 800;
}

.workspace-mode-card strong {
  color: #181713;
  font-size: 19px;
  line-height: 1.2;
}

.workspace-mode-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.workspace-mode-card.is-current {
  border-color: rgba(65, 215, 192, 0.24);
  background: linear-gradient(135deg, #0d1718, #182820);
}

.workspace-mode-card.is-current span,
.workspace-mode-card.is-current small {
  color: rgba(223, 251, 244, 0.74);
}

.workspace-mode-card.is-current strong {
  color: #65f2df;
}

.workspace-mode-card.is-open {
  border-color: rgba(65, 215, 192, 0.36);
  background: #edf9f6;
}

.workspace-mode-card.is-locked {
  border-style: dashed;
  background: #fbf7ee;
}

.workspace-quick-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px dashed rgba(201, 150, 39, 0.24);
  border-radius: 8px;
  background: #fffdf8;
  opacity: 0.72;
}

.workspace-quick-links.is-open {
  border-style: solid;
  border-color: rgba(65, 215, 192, 0.24);
  background: #f2fbf8;
  opacity: 1;
}

.workspace-chip {
  min-height: 44px;
  border: 1px solid rgba(201, 150, 39, 0.24);
  border-radius: 8px;
  background: #fffaf0;
  color: #684b17;
  font-weight: 900;
}

.workspace-chip.active {
  border-color: rgba(65, 215, 192, 0.42);
  background: #ddf8f2;
  color: #0d6f63;
}

.ops-page-brief {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(201, 150, 39, 0.26);
  border-radius: 8px;
  background: #fff8e7;
}

.ops-page-brief > div {
  display: grid;
  gap: 4px;
}

.ops-page-brief span {
  color: #9a7830;
  font-size: 12px;
  font-weight: 800;
}

.ops-page-brief strong {
  color: #251f18;
  font-size: 16px;
  line-height: 1.35;
}

.ops-page-brief details {
  max-width: 560px;
  color: var(--muted);
}

.ops-page-brief summary {
  cursor: pointer;
  color: #7d642f;
  font-weight: 700;
}

.ops-page-brief ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.ops-page-brief li {
  margin: 4px 0;
  line-height: 1.45;
}

.customer-command-panel,
.customer-profile-panel,
.customer-list-panel,
.customer-orders-panel {
  display: grid;
  gap: 16px;
}

.customer-search-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
}

.customer-search-row input {
  min-height: 44px;
}

.order-trace-search-panel {
  display: grid;
  gap: 14px;
}

.trace-search-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.plain-input {
  min-height: 44px;
  width: 100%;
  border: 1px solid rgba(143, 112, 55, 0.28);
  border-radius: 8px;
  background: rgba(255, 251, 242, 0.84);
  color: #2e2415;
  font-size: 15px;
  padding: 0 14px;
  outline: none;
}

.plain-input:focus {
  border-color: rgba(204, 152, 45, 0.72);
  box-shadow: 0 0 0 3px rgba(204, 152, 45, 0.14);
}

.customer-profile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.customer-kpi-grid,
.customer-empty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.customer-action-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.customer-action-card {
  min-height: 104px;
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 14px;
  border: 1px solid #eadcc5;
  border-radius: 8px;
  background: #fffaf0;
  color: #2b261e;
  text-align: left;
}

.customer-action-card.refund-card {
  border-color: #e2b35f;
  background: linear-gradient(180deg, #fff7e5, #fff1d0);
}

.customer-action-card.aftercare-card {
  border-color: #70b59f;
  background: linear-gradient(180deg, #f2fbf7, #e7f6ee);
}

.customer-action-card span {
  color: #8a7344;
  font-size: 12px;
  font-weight: 700;
}

.customer-action-card strong {
  font-size: 20px;
  line-height: 1.25;
}

.customer-action-card small {
  color: var(--muted);
  line-height: 1.35;
}

.customer-action-card.is-disabled {
  opacity: 0.65;
}

.customer-service-rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(199, 151, 50, 0.24);
  border-radius: 8px;
  background: #fff8ea;
}

.customer-service-rule {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border-left: 3px solid #c99627;
  background: rgba(255, 255, 255, 0.58);
}

.customer-service-rule span,
.customer-service-rule small {
  color: var(--muted);
}

.customer-service-rule span {
  font-size: 12px;
  font-weight: 700;
}

.customer-service-rule strong {
  color: #2a241c;
  font-size: 16px;
}

.ops-readiness-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(65, 215, 192, 0.24);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(14, 35, 34, 0.06), rgba(255, 250, 240, 0.78));
}

.ops-readiness-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

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

.ops-readiness-head strong {
  color: #155c50;
}

.ops-readiness-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.ops-readiness-item {
  min-height: 96px;
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 12px;
  border: 1px solid #eadcc5;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.ops-readiness-item.is-ok {
  border-color: rgba(34, 150, 95, 0.3);
}

.ops-readiness-item.is-bad {
  border-color: rgba(192, 68, 68, 0.36);
  background: #fff5f3;
}

.ops-readiness-item strong {
  color: #241f18;
  font-size: 15px;
}

.ops-readiness-item small {
  color: var(--muted);
  line-height: 1.35;
}

.support-readiness-panel {
  background: #fffaf0;
}

.banner-upload-help {
  display: grid;
  gap: 12px;
}

.ops-workbench-panel,
.finance-ops-panel,
.support-sop-panel {
  display: grid;
  gap: 12px;
}

.ops-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.ops-quick-card {
  min-height: 108px;
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 14px;
  border: 1px solid #eadcc5;
  border-radius: 8px;
  background: #fffaf0;
  color: #261f18;
  text-align: left;
}

.ops-quick-card span,
.ops-quick-card strong,
.ops-quick-card small {
  display: block;
}

.ops-quick-card span {
  color: #8a7344;
  font-size: 12px;
  font-weight: 800;
}

.ops-quick-card strong {
  color: #211b15;
  font-size: 21px;
  line-height: 1.25;
}

.ops-quick-card small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}

.ops-quick-card.is-alert {
  border-color: rgba(192, 68, 68, 0.36);
  background: #fff8f8;
}

.ops-quick-card.is-bad {
  border-color: rgba(192, 68, 68, 0.42);
  background: #fff4f2;
}

.ops-quick-card.is-bad strong {
  color: #a43c3c;
}

.ops-quick-card.is-warn {
  border-color: rgba(201, 147, 49, 0.46);
  background: #fff7e6;
}

.ops-quick-card.is-ok {
  border-color: rgba(34, 150, 95, 0.34);
  background: #f3fff7;
}

.ops-quick-card.is-ok strong {
  color: #1f8e58;
}

.ops-quick-card.is-info {
  border-color: rgba(65, 215, 192, 0.34);
  background: #f3fffb;
}

.customer-detail-grid {
  align-items: start;
}

.customer-thread-list,
.customer-work-list {
  display: grid;
  gap: 10px;
}

.customer-thread-item,
.customer-work-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid #eadcc5;
  border-radius: 8px;
  background: #fffdf8;
}

.customer-thread-item p,
.customer-thread-item small,
.customer-work-item small {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.customer-work-item {
  justify-content: flex-start;
}

.customer-order-actions {
  min-width: 260px;
}

.customer-support-status,
.customer-image-summary {
  min-width: 160px;
}

.customer-image-summary {
  display: grid;
  gap: 6px;
}

.customer-image-summary > small {
  color: var(--muted);
  line-height: 1.35;
}

.customer-next-action {
  display: grid;
  gap: 5px;
  min-width: 150px;
  padding: 9px 10px;
  border: 1px solid #eadcc5;
  border-radius: 8px;
  background: #fffdf8;
}

.customer-next-action strong,
.customer-next-action small {
  display: block;
}

.customer-next-action small {
  color: var(--muted);
  line-height: 1.35;
}

.customer-next-action.is-warn {
  border-color: rgba(201, 150, 39, 0.42);
  background: #fff8e5;
}

.customer-next-action.is-bad {
  border-color: rgba(189, 82, 82, 0.42);
  background: #fff2f0;
}

.customer-next-action.is-ok {
  border-color: rgba(54, 164, 109, 0.34);
  background: #f1fff7;
}

.customer-next-action.is-muted {
  background: #faf7ef;
}

.image-readback-cell {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  overflow-wrap: anywhere;
}

.image-readback-cell small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.image-readback-cell.is-missing {
  color: #7f3328;
}

.order-trace-health {
  min-width: 190px;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #eadcc5;
  border-radius: 8px;
  background: #fffaf2;
}

.order-trace-health > small {
  color: var(--muted);
  font-size: 12px;
}

.order-trace-head {
  display: grid;
  gap: 5px;
}

.order-trace-head small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.order-trace-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.order-trace-dots span {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: #f1e6d2;
  color: #806744;
  font-size: 11px;
  font-weight: 800;
}

.order-trace-dots span.is-ok {
  background: #e7f7ed;
  color: #1f8e58;
}

.order-trace-dots span.is-missing {
  background: #fff0ef;
  color: #b64242;
}

.order-trace-dots span.is-muted {
  background: #f5efe4;
  color: #94816a;
}

.order-trace-health.is-ok {
  border-color: rgba(34, 150, 95, 0.34);
  background: #f3fff7;
}

.order-trace-health.is-warn {
  border-color: rgba(201, 147, 49, 0.46);
  background: #fff7e6;
}

.order-trace-health.is-bad {
  border-color: rgba(192, 68, 68, 0.42);
  background: #fff4f2;
}

.order-next-action {
  min-width: 170px;
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid #e5d2aa;
  border-radius: 8px;
  background: #fffaf0;
  overflow-wrap: anywhere;
}

.order-next-action span {
  color: #9f6d18;
  font-size: 12px;
  font-weight: 800;
}

.order-next-action strong {
  color: #2f2a24;
  font-size: 15px;
  line-height: 1.25;
}

.order-next-action small {
  color: #6d614f;
  font-size: 12px;
  line-height: 1.4;
}

.order-next-action.is-bad {
  border-color: #dfa0a0;
  background: #fff5f3;
}

.order-next-action.is-warn {
  border-color: #e0b764;
  background: #fff7df;
}

.order-next-action.is-ok {
  border-color: #8ed4c3;
  background: #f0fbf7;
}

.order-next-action.is-soft {
  border-color: #9ed9cc;
  background: #f3fffb;
}

.order-next-action.is-muted {
  border-color: #d1c7b5;
  background: #f7f4ed;
}

.mini-thumb {
  width: 42px;
  height: 56px;
  flex: 0 0 42px;
  object-fit: cover;
  border: 1px solid #eadcc5;
  border-radius: 6px;
  background: #111316;
  color: #d8c087;
}

.mini-thumb-box {
  width: 52px;
  height: 66px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #eadcc5;
  border-radius: 6px;
  background: #111316;
  color: #d8c087;
  text-align: center;
}

.mini-thumb-box .mini-thumb {
  width: 100%;
  height: 100%;
  flex: 0 0 auto;
  border: 0;
  border-radius: 0;
  object-fit: cover;
}

.mini-thumb-box span {
  padding: 4px;
  color: #e8d199;
  font-size: 11px;
  line-height: 1.25;
}

.mini-thumb-box.is-cloud {
  background: #15100a;
}

.mini-thumb-box.is-broken img {
  display: none;
}

.mini-thumb-box.is-broken::before {
  content: "不可预览";
  color: #f0d59a;
  font-size: 11px;
  font-weight: 700;
}

.mini-thumb-box.is-broken::after {
  content: "待换图";
  color: #9d8b67;
  font-size: 10px;
}

.mini-thumb.empty {
  display: grid;
  place-items: center;
  font-size: 12px;
}

.empty-state-cell {
  min-width: 220px;
  display: grid;
  gap: 5px;
}

.empty-state-cell strong {
  color: #6d5120;
}

.empty-state-cell small {
  color: var(--muted);
  line-height: 1.45;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.support-command {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
  background:
    linear-gradient(135deg, #101718, #1f211b 56%, #2f2412),
    repeating-linear-gradient(90deg, rgba(65, 215, 192, 0.05) 0 1px, transparent 1px 72px);
  color: #f8f6df;
}

.support-command-head {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
}

.support-command h2 {
  margin: 8px 0 0;
  color: #fff4c8;
}

.support-command p {
  color: #aebeb8;
}

.support-command-focus {
  min-width: 190px;
  padding: 12px;
  border: 1px solid rgba(244, 201, 93, 0.34);
  border-radius: 8px;
  background: rgba(244, 201, 93, 0.08);
  text-align: right;
}

.support-command-focus span,
.support-command-focus strong,
.support-command-focus small {
  display: block;
}

.support-command-focus span,
.support-command-focus small {
  color: #aebeb8;
  font-size: 12px;
}

.support-command-focus strong {
  margin: 6px 0;
  color: #ffd65d;
  font-size: 30px;
  line-height: 1;
}

.support-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.support-summary-card {
  min-height: 96px;
  padding: 12px;
  border: 1px solid rgba(65, 215, 192, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #eef7f3;
  text-align: left;
}

.support-summary-card span,
.support-summary-card strong,
.support-summary-card small {
  display: block;
}

.support-summary-card span {
  color: #9fb5af;
  font-size: 12px;
}

.support-summary-card strong {
  margin: 8px 0;
  color: #fff1bd;
  font-size: 28px;
  line-height: 1;
}

.support-summary-card small {
  color: #94aaa4;
  font-size: 12px;
  line-height: 1.35;
}

.support-summary-card.support-alert {
  border-color: rgba(244, 201, 93, 0.42);
}

.support-summary-card.support-alert strong {
  color: #ffd65d;
}

.support-summary-card.support-ok strong {
  color: #8ff0ad;
}

.support-summary-card.support-muted {
  opacity: 0.72;
}

.support-lanes-panel {
  margin-bottom: 16px;
}

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

.support-lane-card {
  min-height: 178px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border: 1px solid #eadcc5;
  border-radius: 8px;
  background: #fffdf8;
  text-align: left;
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(49, 37, 18, 0.05);
}

.support-lane-card span,
.support-lane-card strong,
.support-lane-card small {
  display: block;
}

.support-lane-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.support-lane-card strong {
  color: #211b15;
  font-size: 32px;
  line-height: 1;
}

.support-lane-card ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 16px;
  color: #5f574b;
  font-size: 13px;
  line-height: 1.35;
}

.support-lane-card small {
  align-self: end;
  margin-top: 2px;
  color: #9f6d18;
  font-weight: 700;
}

.support-lane-card.is-alert {
  border-color: rgba(192, 68, 68, 0.34);
  background: #fff8f8;
}

.support-lane-card.is-warn {
  border-color: rgba(201, 147, 49, 0.42);
  background: #fff7e6;
}

.support-lane-card.is-soft {
  border-color: rgba(65, 215, 192, 0.32);
  background: #f3fffb;
}

.support-lane-card.is-muted {
  opacity: 0.74;
  background: #f8f3ea;
}

.feedback-inbox {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.feedback-ticket {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.36fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid #eadcc5;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 10px 26px rgba(49, 37, 18, 0.05);
}

.feedback-ticket.is-aftercare {
  border-left-color: #c04444;
}

.feedback-ticket.is-unread {
  border-color: rgba(192, 68, 68, 0.42);
  border-left-color: #c04444;
  background: linear-gradient(135deg, #fffdf8 0%, #fff7f2 100%);
  box-shadow: 0 14px 34px rgba(192, 68, 68, 0.12);
}

.feedback-ticket.is-suggestion {
  border-left-color: #41a996;
}

.feedback-ticket.is-internal {
  border-left-color: #8d8a80;
  background: #f7f4ed;
}

.feedback-ticket.is-refund {
  border-left-color: #c58b2b;
}

.feedback-ticket.is-candidate {
  border-left-color: #3d9ccc;
}

.feedback-ticket-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.feedback-ticket-title strong {
  font-size: 17px;
}

.feedback-ticket-message {
  margin: 10px 0;
  color: #2f2a24;
  font-size: 15px;
  line-height: 1.55;
}

.feedback-unread-message {
  display: grid;
  gap: 5px;
  margin: 10px 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(192, 68, 68, 0.22);
  border-radius: 8px;
  background: #fff5f2;
}

.feedback-unread-message span {
  color: #b04b39;
  font-size: 12px;
  font-weight: 700;
}

.feedback-unread-message strong {
  color: #2f2a24;
  font-size: 16px;
  line-height: 1.5;
}

.feedback-ticket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feedback-ticket-meta span {
  display: inline-flex;
  gap: 6px;
  min-height: 28px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid #eadcc5;
  border-radius: 999px;
  background: #fff8eb;
  color: #6d614f;
  font-size: 12px;
}

.feedback-ticket-meta b {
  color: #9f6d18;
}

.feedback-ticket-note {
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #f7f1e6;
  color: #6a5b43;
  font-size: 13px;
  line-height: 1.45;
}

.feedback-inline-reply {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(192, 68, 68, 0.28);
  border-radius: 10px;
  background: #fff8f3;
}

.feedback-inline-reply-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.feedback-inline-reply-head strong,
.feedback-inline-reply-head small {
  display: block;
}

.feedback-inline-reply-head strong {
  color: #2f2a24;
  font-size: 16px;
}

.feedback-inline-reply-head small {
  color: #8a5b45;
  font-size: 12px;
  line-height: 1.45;
}

.feedback-next-step {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #e5d2aa;
  border-radius: 8px;
  background: #fffaf0;
}

.feedback-next-step span,
.ticket-action-plan span {
  color: #9f6d18;
  font-size: 12px;
  font-weight: 700;
}

.feedback-next-step strong,
.ticket-action-plan strong {
  color: #2f2a24;
  font-size: 17px;
}

.feedback-next-step small,
.ticket-action-plan small {
  color: #6d614f;
  line-height: 1.45;
}

.feedback-next-step.is-danger,
.ticket-action-plan.is-danger {
  border-color: #dfa0a0;
  background: #fff5f3;
}

.feedback-next-step.is-warn,
.ticket-action-plan.is-warn {
  border-color: #e0b764;
  background: #fff7df;
}

.feedback-next-step.is-soft,
.ticket-action-plan.is-soft {
  border-color: #8ed4c3;
  background: #f0fbf7;
}

.feedback-next-step.is-muted,
.ticket-action-plan.is-muted {
  border-color: #d1c7b5;
  background: #f7f4ed;
}

.feedback-ticket-side {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.feedback-reply-box {
  padding: 10px;
  border: 1px solid #eadcc5;
  border-radius: 8px;
  background: #fff8eb;
}

.feedback-reply-box span,
.feedback-reply-box strong {
  display: block;
}

.feedback-reply-box span {
  color: var(--muted);
  font-size: 12px;
}

.feedback-reply-box strong {
  margin-top: 5px;
  color: #342f29;
  font-weight: 600;
  line-height: 1.45;
}

.support-message-thread {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(65, 169, 150, 0.26);
  border-radius: 10px;
  background: #fbfffc;
}

.support-chat-workbench {
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
  gap: 0;
  min-height: 720px;
  overflow: hidden;
  padding: 0;
}

.support-chat-sidebar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  border-right: 1px solid #eadcc5;
  background: #f8f1e6;
}

.support-chat-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #eadcc5;
  background: #fffaf1;
}

.support-chat-sidebar-head h3 {
  margin: 3px 0 0;
  color: #2f2a24;
  font-size: 18px;
}

.support-chat-sidebar-head strong {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #c58b2b;
  color: #fff8e5;
}

.support-chat-list {
  min-height: 0;
  overflow: auto;
}

.support-conversation-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid rgba(234, 220, 197, 0.82);
  background: transparent;
  color: #2f2a24;
  text-align: left;
  cursor: pointer;
}

.support-conversation-item:hover {
  background: #fff8eb;
}

.support-conversation-item.is-active {
  background: #fff2d4;
  box-shadow: inset 4px 0 0 #c58b2b;
}

.support-conversation-item.is-unread {
  background: #fff4ef;
}

.support-conversation-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #0d2b27, #1b6e62);
  color: #fff4cc;
  font-weight: 800;
  overflow: hidden;
}

.support-conversation-avatar.has-image {
  background: #10211f;
}

.support-conversation-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.support-conversation-item.is-unread .support-conversation-avatar::after {
  content: '';
  position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  border: 2px solid #fff8eb;
  border-radius: 999px;
  background: #c04444;
}

.support-conversation-main,
.support-conversation-title,
.support-conversation-tags {
  min-width: 0;
}

.support-conversation-main {
  display: grid;
  gap: 6px;
}

.support-conversation-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.support-conversation-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.support-conversation-title small {
  flex: 0 0 auto;
  color: #9d917f;
  font-size: 12px;
}

.support-conversation-preview {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #6d614f;
  font-size: 13px;
}

.support-conversation-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.support-chat-empty-list,
.support-chat-empty {
  display: grid;
  place-content: center;
  gap: 6px;
  min-height: 240px;
  padding: 18px;
  color: #7a6a4f;
  text-align: center;
}

.support-chat-detail {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 720px;
  background: #fffdf8;
}

.support-chat-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid #eadcc5;
  background: #fffaf1;
}

.support-chat-customer-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.support-chat-customer-title .support-conversation-avatar {
  width: 50px;
  height: 50px;
  border-radius: 14px;
}

.support-chat-detail-head h3,
.support-chat-detail-head p {
  margin: 0;
}

.support-chat-detail-head h3 {
  margin-top: 3px;
  color: #2f2a24;
  font-size: 22px;
}

.support-chat-detail-head p {
  margin-top: 5px;
  color: #6d614f;
}

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

.support-chat-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
  min-height: 0;
  overflow: hidden;
}

.support-chat-body.is-single-column {
  grid-template-columns: 1fr;
}

.support-chat-messages {
  min-height: 0;
  overflow: auto;
  padding: 18px;
  background: linear-gradient(180deg, #fffdf8 0%, #fbf5eb 100%);
}

.support-customer-orders {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #eadcc5;
  border-radius: 10px;
  background: #fffaf1;
}

.support-customer-orders-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.support-customer-orders-head h3 {
  margin: 2px 0 0;
  font-size: 16px;
}

.support-customer-orders-head strong {
  color: #9f6d18;
}

.support-order-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.ops-collapsible-note {
  padding: 8px 10px;
  border: 1px dashed rgba(201, 147, 49, 0.35);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.78);
  color: var(--muted);
  font-size: 12px;
}

.ops-collapsible-note summary {
  cursor: pointer;
  color: #8b641c;
  font-weight: 700;
}

.ops-collapsible-note p {
  margin: 8px 0 0;
  line-height: 1.45;
}

.support-order-section-label {
  color: #9f6d18;
  font-size: 13px;
  font-weight: 800;
}

.support-customer-order-list {
  display: grid;
  gap: 10px;
}

.support-customer-order-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #eadcc5;
  border-radius: 10px;
  background: #fffdf8;
}

.support-customer-order-card.is-problem-order {
  border-color: rgba(201, 147, 49, 0.56);
  background: #fff8e8;
}

.support-customer-order-card.is-search-result {
  border-style: dashed;
}

.support-customer-order-card strong,
.support-customer-order-card small {
  display: block;
}

.support-customer-order-card small {
  margin-top: 4px;
  color: #7a6a4f;
}

.support-customer-order-badges,
.support-customer-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.support-customer-order-badges {
  margin-top: 8px;
}

.support-customer-order-actions {
  justify-content: flex-end;
}

.support-customer-order-actions > strong {
  width: 100%;
  color: #2f2a24;
  text-align: right;
}

.support-order-inline-details {
  grid-column: 1 / -1;
  margin-top: 2px;
  border: 1px dashed #eadcc5;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
}

.support-order-inline-details summary {
  cursor: pointer;
  padding: 8px 10px;
  color: #9f6d18;
  font-weight: 800;
}

.support-order-inline-grid {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px 10px;
  padding: 0 10px 10px;
  color: #5f523f;
  font-size: 13px;
}

.support-order-inline-grid span {
  color: #9f8d72;
}

.support-order-inline-grid strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.support-chat-messages .support-message-thread {
  min-height: 100%;
  margin: 0;
  border: 0;
  background: transparent;
}

.support-chat-messages .support-message-list {
  max-height: none;
  gap: 12px;
}

.support-chat-context {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding: 16px;
  border-left: 1px solid #eadcc5;
  background: #fff9ef;
}

.support-chat-context .support-main-actions-grid {
  grid-template-columns: 1fr;
}

.support-chat-context .support-main-action {
  min-height: 82px;
}

.support-chat-context-stack {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.support-chat-composer {
  display: grid;
  gap: 10px;
  padding: 14px 18px 16px;
  border-top: 1px solid #eadcc5;
  background: #fffaf1;
}

.support-chat-input {
  min-height: 112px;
  background: #fff;
}

.support-message-thread.is-empty {
  border-color: #eadcc5;
  background: #fffaf0;
}

.support-message-thread > span,
.support-message-thread > strong,
.support-message-thread > small {
  display: block;
}

.support-message-thread > span {
  color: #7a6a4f;
  font-size: 12px;
  font-weight: 700;
}

.support-message-thread > strong {
  color: #2f2a24;
  font-size: 15px;
}

.support-message-thread > small {
  color: #7a6a4f;
  line-height: 1.45;
}

.support-message-thread-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.support-message-thread-head span {
  color: #286e62;
  font-size: 12px;
  font-weight: 800;
}

.support-message-thread-head strong {
  color: #2f2a24;
  font-size: 14px;
}

.support-message-list {
  display: grid;
  gap: 8px;
  max-height: 300px;
  overflow: auto;
  padding-right: 2px;
}

.support-message-bubble {
  display: grid;
  gap: 5px;
  width: min(86%, 520px);
  padding: 10px 12px;
  border: 1px solid #eadcc5;
  border-radius: 10px;
  background: #fff8eb;
}

.support-message-bubble.is-admin {
  justify-self: end;
  border-color: rgba(65, 169, 150, 0.36);
  background: #eefaf6;
}

.support-message-bubble.is-customer {
  justify-self: start;
  border-color: rgba(192, 68, 68, 0.25);
  background: #fff6f3;
}

.support-message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.support-message-meta span {
  color: #9f6d18;
  font-size: 12px;
  font-weight: 800;
}

.support-message-bubble.is-admin .support-message-meta span {
  color: #287568;
}

.support-message-meta small,
.support-message-bubble > small {
  color: #8d806b;
  font-size: 11px;
}

.support-message-trace-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.support-message-trace-chips span {
  border: 1px solid rgba(159, 109, 24, 0.22);
  border-radius: 999px;
  background: rgba(255, 248, 235, 0.9);
  color: #7b581b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  padding: 4px 7px;
}

.support-message-bubble p {
  margin: 0;
  color: #2f2a24;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.support-message-media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 8px;
}

.support-message-media-item {
  display: grid;
  gap: 5px;
  min-height: 96px;
  padding: 6px;
  border: 1px solid #eadcc5;
  border-radius: 8px;
  background: #fffdf8;
  color: inherit;
  text-decoration: none;
}

.support-message-media-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

.support-message-media-item strong {
  display: grid;
  min-height: 68px;
  place-items: center;
  color: #9f6d18;
  font-size: 12px;
}

.support-message-media-item small {
  color: #7a6a4f;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.refund-workflow-panel {
  margin-bottom: 16px;
}

.support-command-head.compact {
  align-items: center;
}

.feedback-refund-box {
  padding: 10px;
  border: 1px solid #f0d39a;
  border-radius: 8px;
  background: #fff7e6;
}

.feedback-refund-box span,
.feedback-refund-box strong,
.feedback-refund-box small {
  display: block;
}

.feedback-refund-box span {
  color: #8a6c33;
  font-size: 12px;
}

.feedback-refund-box strong {
  margin-top: 5px;
  color: #4b3510;
  font-size: 15px;
  line-height: 1.35;
}

.feedback-refund-box small {
  margin-top: 5px;
  color: #785d2d;
  font-size: 12px;
  line-height: 1.45;
}

.feedback-refund-box.is-alert {
  border-color: #d99a38;
  background: #fff2d7;
}

.feedback-refund-box.is-blocked {
  border-color: #e0a6a6;
  background: #fff8f8;
}

.feedback-refund-box.is-blocked strong {
  color: #a43c3c;
}

.feedback-refund-box.is-muted {
  border-color: #e4d6c1;
  background: #f8f3ea;
}

.refund-warning-strip {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(174, 84, 64, 0.28);
  border-radius: 8px;
  background: #fff8f2;
}

.refund-warning-strip strong,
.refund-warning-strip small {
  margin: 0;
}

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

.refund-step-grid span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #eadcc5;
  border-radius: 8px;
  background: #fffaf1;
  color: #6d4b15;
  font-size: 12px;
  font-weight: 700;
}

.feedback-ticket-decision {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(201, 147, 49, 0.34);
  border-radius: 8px;
  background: #fff8e8;
}

.feedback-ticket-decision span,
.feedback-ticket-decision strong,
.feedback-ticket-decision small {
  display: block;
}

.feedback-ticket-decision span {
  color: #87652a;
  font-size: 12px;
  font-weight: 700;
}

.feedback-ticket-decision strong {
  color: #2f2a24;
  line-height: 1.35;
}

.feedback-ticket-decision small {
  color: var(--muted);
  line-height: 1.45;
}

.feedback-ticket-decision.is-warn {
  border-color: rgba(201, 147, 49, 0.54);
  background: #fff3d8;
}

.feedback-ticket-decision.is-alert {
  border-color: rgba(194, 83, 67, 0.28);
  background: #fff7f5;
}

.feedback-ticket-decision.is-soft {
  border-color: rgba(77, 145, 113, 0.28);
  background: #f3fff8;
}

.feedback-ticket-decision.is-muted {
  border-color: #e4d6c1;
  background: #f8f3ea;
}

.ticket-drawer-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  justify-items: end;
}

.ticket-drawer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(13, 13, 12, 0.42);
  cursor: default;
}

.ticket-drawer {
  position: relative;
  width: min(640px, calc(100vw - 28px));
  height: calc(100vh - 28px);
  margin: 14px;
  padding: 18px;
  overflow: auto;
  border: 1px solid #d7bd7f;
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: -18px 0 48px rgba(34, 25, 10, 0.28);
}

.ticket-drawer.order-service-drawer {
  width: min(820px, calc(100vw - 28px));
}

.ticket-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eadcc5;
}

.ticket-drawer-head h2 {
  margin: 6px 0;
  color: #28231c;
}

.ticket-drawer-head p {
  margin: 0;
  color: #6d614f;
  line-height: 1.5;
}

.ticket-drawer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.ticket-drawer-section {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #eadcc5;
  border-radius: 8px;
  background: #fffaf1;
}

.ticket-drawer-section h3 {
  margin: 0;
  color: #2f2a24;
  font-size: 16px;
}

.ticket-next-step-section {
  background: #fff7df;
}

.reply-first-section {
  border-color: rgba(43, 184, 158, 0.42);
  background: #f3fffb;
  box-shadow: 0 12px 28px rgba(43, 184, 158, 0.08);
}

.reply-first-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.reply-first-head h3,
.reply-first-head p {
  margin: 0;
}

.reply-first-head p {
  margin-top: 4px;
  color: #5f6d65;
  line-height: 1.5;
}

.reply-first-head span {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid rgba(43, 184, 158, 0.34);
  border-radius: 999px;
  background: #ffffff;
  color: #197c6e;
  font-size: 12px;
  font-weight: 700;
}

.order-service-summary {
  background: #fff8e8;
}

.order-service-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

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

.order-service-action-grid .customer-action-card {
  min-height: 132px;
}

.ticket-action-plan {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(220px, 1fr);
  gap: 14px;
  padding: 12px;
  border: 1px solid #e5d2aa;
  border-radius: 8px;
  background: #fffaf0;
}

.ticket-action-plan.is-warn {
  border-color: rgba(216, 154, 53, 0.48);
  background: #fff7df;
}

.ticket-action-plan.is-bad,
.ticket-action-plan.is-danger {
  border-color: rgba(198, 74, 54, 0.36);
  background: #fff3ef;
}

.ticket-action-plan.is-ok,
.ticket-action-plan.is-success {
  border-color: rgba(64, 187, 143, 0.36);
  background: #f0fff8;
}

.ticket-action-plan.is-muted {
  border-color: #e4d6c1;
  background: #f8f3ea;
}

.ticket-action-plan > div {
  display: grid;
  gap: 5px;
}

.ticket-action-plan ol {
  margin: 0;
  padding-left: 22px;
  color: #3b3328;
  line-height: 1.65;
}

.ticket-action-plan li + li {
  margin-top: 4px;
}

.support-main-actions-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.support-main-action {
  display: grid;
  min-height: 104px;
  gap: 6px;
  align-content: start;
  padding: 12px;
  border: 1px solid #e2cfaa;
  border-radius: 8px;
  background: #fffdf7;
  color: #2f2a24;
  text-align: left;
  cursor: pointer;
}

.support-main-action span,
.support-main-action strong,
.support-main-action small {
  display: block;
}

.support-main-action span {
  color: #9f6d18;
  font-size: 12px;
  font-weight: 800;
}

.support-main-action strong {
  font-size: 15px;
  line-height: 1.3;
}

.support-main-action small {
  color: #6d614f;
  font-size: 12px;
  line-height: 1.35;
}

.support-main-action.primary {
  border-color: rgba(65, 215, 192, 0.42);
  background: #f0fffb;
}

.support-main-action.warn {
  border-color: rgba(216, 154, 53, 0.48);
  background: #fff7df;
}

.support-main-action:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.ticket-customer-message {
  margin: 0;
  color: #2f2a24;
  font-size: 15px;
  line-height: 1.65;
}

.ticket-timeline {
  display: grid;
  gap: 8px;
}

.ticket-timeline-item {
  position: relative;
  padding: 10px 10px 10px 14px;
  border-left: 3px solid #d1a23b;
  border-radius: 8px;
  background: #fff;
}

.ticket-timeline-item span,
.ticket-timeline-item strong,
.ticket-timeline-item small {
  display: block;
}

.ticket-timeline-item span {
  color: #9f6d18;
  font-size: 12px;
  font-weight: 700;
}

.ticket-timeline-item strong {
  margin: 5px 0;
  color: #2f2a24;
  line-height: 1.55;
}

.ticket-timeline-item small {
  color: var(--muted);
  font-size: 12px;
}

.reply-template-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.support-single-order-hint {
  margin-left: auto;
  align-self: center;
  color: #7a6a4f;
  font-size: 12px;
  line-height: 1.45;
}

.support-redo-single-order {
  white-space: nowrap;
}

.customer-reply-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #eadcc5;
  border-radius: 8px;
  background: #fffdf8;
}

.customer-reply-panel.is-primary {
  border-color: rgba(43, 184, 158, 0.32);
  background: #ffffff;
}

.customer-reply-intro {
  display: grid;
  gap: 4px;
}

.customer-reply-intro strong {
  color: #2f2a24;
  font-size: 15px;
}

.customer-reply-intro small {
  color: #6d614f;
  line-height: 1.45;
}

.ticket-reply-input {
  width: 100%;
  min-height: 140px;
  resize: vertical;
  padding: 12px;
  border: 1px solid #d9c7a7;
  border-radius: 8px;
  background: #fff;
  color: #2f2a24;
  font: inherit;
  line-height: 1.6;
}

.ticket-reply-input:focus {
  outline: 2px solid rgba(202, 149, 38, 0.24);
  border-color: #c99625;
}

.ticket-reply-input.compact {
  min-height: 86px;
}

.ticket-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.aftercare-attach-box {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #eadcc5;
  border-radius: 8px;
  background: #fffdf8;
}

.aftercare-attach-box p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.aftercare-attach-box.is-ready {
  border-color: rgba(65, 215, 192, 0.42);
  background: #f1fffb;
}

.aftercare-attach-box.is-blocked {
  border-color: #e0a6a6;
  background: #fff8f8;
}

.aftercare-attach-box.is-muted {
  border-color: #e4d6c1;
  background: #f8f3ea;
}

.aftercare-attach-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.aftercare-checklist {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(12, 21, 20, 0.04);
}

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

.aftercare-attach-grid label {
  display: grid;
  gap: 6px;
  color: #79684f;
  font-size: 12px;
  font-weight: 700;
}

.aftercare-attach-grid input {
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid #d9c7a7;
  border-radius: 8px;
  background: #fff;
  color: #241f1a;
  font: inherit;
  font-weight: 500;
}

.aftercare-attach-grid input[readonly] {
  background: #f7efe2;
  color: #6d614f;
}

.row-details {
  min-width: 96px;
}

.row-details summary {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #6e511f;
  cursor: pointer;
}

.row-details dl {
  min-width: 320px;
  max-width: 520px;
  margin: 8px 0 0;
  padding: 12px;
  border: 1px solid #eadcc5;
  border-radius: 8px;
  background: #fffaf2;
}

.row-details dl div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid #f1e4cd;
}

.row-details dl div:first-child {
  border-top: 0;
}

.row-details dt {
  color: var(--muted);
  font-size: 12px;
}

.row-details dd {
  margin: 0;
  color: #2f2a22;
  font-size: 12px;
  line-height: 1.5;
  word-break: break-word;
}

.trace-filter-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  background: #fff8e8;
}

.trace-filter-notice span {
  color: var(--muted);
  line-height: 1.45;
}

.status-stack {
  display: grid;
  gap: 5px;
}

.status-stack small {
  color: var(--muted);
  font-size: 12px;
}

.ops-status-grid {
  margin-bottom: 16px;
}

th {
  color: var(--muted);
  font-weight: 500;
}

.status {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef8f1;
  color: var(--ok);
  font-size: 12px;
}

.status.warn {
  background: #fff4df;
  color: var(--warn);
}

.status.success {
  background: #eef8f1;
  color: var(--ok);
}

.status.danger {
  background: #fff0ef;
  color: var(--bad);
}

.status.bad {
  background: #fff0ef;
  color: var(--bad);
}

.editor-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 2px;
}

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

.readonly-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #eadcc5;
  border-radius: 999px;
  background: #fffaf2;
  color: var(--muted);
  font-size: 13px;
}

.primary {
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #c99331;
  color: #fff;
}

.ghost {
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
}

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

.launch-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.launch-card {
  min-height: 156px;
}

.launch-card span {
  color: var(--muted);
  font-size: 13px;
}

.launch-card strong {
  display: block;
  margin-top: 10px;
  color: var(--warn);
  font-size: 24px;
}

.launch-card.ok strong {
  color: var(--ok);
}

.launch-card.bad strong {
  color: var(--bad);
}

.launch-card p {
  margin-top: 12px;
  line-height: 1.5;
}

.code-block {
  margin: 14px 0 0;
  padding: 16px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #171411;
  color: #f7dfac;
  font-size: 13px;
  line-height: 1.5;
}

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

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px;
  border: 1px solid #efd9b2;
  border-radius: 8px;
  background: #fff8ec;
  color: #644b1d;
  font-size: 14px;
}

.check-item span {
  width: 24px;
  height: 24px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #fff1d4;
  color: var(--warn);
  font-weight: 800;
}

.check-item.done {
  border-color: #cde8d5;
  background: #f2fbf5;
  color: var(--ok);
}

.check-item.done span {
  background: #dff3e6;
  color: var(--ok);
}

.env-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.env-group {
  padding: 14px;
  border: 1px solid #efe1c9;
  border-radius: 8px;
  background: #fffaf1;
}

.env-group > strong {
  display: block;
  margin-bottom: 10px;
  color: #6e511f;
}

.env-row {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid #f1e4cd;
}

.env-row:first-of-type {
  border-top: 0;
}

.env-row code {
  color: #171411;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  word-break: break-all;
}

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

.soft-note {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #f1e1bf;
  border-radius: 8px;
  background: #fff8e8;
  color: #74531a;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 8px 10px;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

.poster-strip {
  display: flex;
  gap: 12px;
  overflow: auto;
}

.poster-strip img {
  width: 120px;
  height: 168px;
  object-fit: contain;
  border-radius: 8px;
  background: #090b0e;
}

.ops-section {
  margin-top: 18px;
}

.ops-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 12px;
}

.ops-section-head h2 {
  margin: 0;
  font-size: 18px;
}

.ops-section-head p {
  max-width: 760px;
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.ops-section-head strong {
  flex: none;
  color: var(--gold-strong);
}

.legacy-case-summary {
  margin-top: 18px;
}

.legacy-case-summary summary {
  cursor: pointer;
  font-weight: 700;
}

.legacy-case-summary p {
  color: var(--muted);
  line-height: 1.6;
}

.order-filter-panel {
  margin-bottom: 16px;
}

.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  border: 1px solid var(--border);
  background: #fffaf0;
  color: var(--text);
  border-radius: 8px;
  padding: 8px 11px;
  font-weight: 700;
  cursor: pointer;
}

.filter-chip span {
  color: var(--gold-strong);
  margin-left: 6px;
}

.filter-chip.active {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.filter-chip.active span {
  color: #fff;
}

.order-stage-panel {
  margin-bottom: 16px;
}

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

.order-stage-card {
  min-height: 112px;
  padding: 12px;
  border: 1px solid #eadcc5;
  border-radius: 8px;
  background: #fffaf2;
  color: var(--text);
  text-align: left;
}

.order-stage-card span,
.order-stage-card strong,
.order-stage-card small {
  display: block;
}

.order-stage-card span {
  color: #7c6d58;
  font-size: 12px;
}

.order-stage-card strong {
  margin: 8px 0;
  color: #221d18;
  font-size: 28px;
  line-height: 1;
}

.order-stage-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.order-stage-card.active {
  border-color: rgba(65, 215, 192, 0.58);
  background: linear-gradient(135deg, #111a1a, #252014);
  color: #f8f6df;
}

.order-stage-card.active span,
.order-stage-card.active small {
  color: #aebeb8;
}

.order-stage-card.active strong {
  color: #ffd65d;
}

.cost-formula-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.cost-snapshot-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin: 12px 0 14px;
}

.compact-cost-board {
  grid-template-columns: minmax(230px, 1.15fr) repeat(auto-fit, minmax(170px, 1fr));
}

.order-cost-plain-panel {
  border-color: rgba(65, 215, 192, 0.22);
}

.finance-primary-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 8px;
}

.finance-detail-panel {
  margin-top: 10px;
}

.cost-snapshot-main,
.cost-snapshot-card {
  min-height: 118px;
  padding: 12px;
  border: 1px solid #eadcc5;
  border-radius: 8px;
  background: #fffaf2;
}

.cost-snapshot-main {
  background:
    linear-gradient(135deg, #111a1a, #252014);
  color: #f8f6df;
}

.cost-snapshot-main span,
.cost-snapshot-main strong,
.cost-snapshot-main small,
.cost-snapshot-card span,
.cost-snapshot-card strong,
.cost-snapshot-card small {
  display: block;
}

.cost-snapshot-main span,
.cost-snapshot-card span {
  color: #826f54;
  font-size: 12px;
  font-weight: 700;
}

.cost-snapshot-main span {
  color: #aebeb8;
}

.cost-snapshot-main strong,
.cost-snapshot-card strong {
  margin: 8px 0;
  color: #211b15;
  font-size: 19px;
  line-height: 1.32;
}

.cost-snapshot-main strong {
  color: #ffd65d;
}

.cost-snapshot-main small,
.cost-snapshot-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.cost-snapshot-main small {
  color: #aebeb8;
}

.cost-snapshot-card.is-muted {
  background: #f8f3ea;
}

.cost-snapshot-card.is-warn {
  border-color: rgba(201, 147, 49, 0.46);
  background: #fff7e6;
}

.cost-snapshot-card.is-good {
  border-color: rgba(34, 150, 95, 0.36);
  background: #f2fff7;
}

.cost-snapshot-card.is-muted strong {
  color: #7a6d5a;
}

.cost-formula-card {
  min-height: 118px;
  padding: 12px;
  border: 1px solid #eadcc5;
  border-radius: 8px;
  background: #fffaf2;
}

.cost-formula-card span,
.cost-formula-card strong,
.cost-formula-card small {
  display: block;
}

.cost-formula-card span {
  color: #826f54;
  font-size: 12px;
  font-weight: 700;
}

.cost-formula-card strong {
  margin: 8px 0;
  color: #211b15;
  font-size: 18px;
  line-height: 1.35;
}

.cost-formula-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.cost-formula-card.is-muted {
  border-color: #dfd2bd;
  background: #f8f3ea;
}

.cost-formula-card.is-muted strong {
  color: #7a6d5a;
}

.cost-formula-card.is-profit {
  border-color: rgba(65, 215, 192, 0.42);
  background: linear-gradient(135deg, #111a1a, #252014);
}

.cost-formula-card.is-profit span,
.cost-formula-card.is-profit small {
  color: #aebeb8;
}

.cost-formula-card.is-profit strong {
  color: #ffd65d;
}

.row-more-actions {
  margin-top: 8px;
}

.inline-action.danger {
  border-color: #e0a6a6;
  color: #b64242;
  background: #fff8f8;
}

.inline-action.refund-action {
  border-color: #d89a35;
  background: #fff4d8;
  color: #8a5a08;
  font-weight: 700;
}

.inline-action.refund-action.danger {
  border-color: #d87b58;
  background: #fff2ea;
  color: #a43c1d;
}

.inline-action.aftercare-action {
  border-color: #61aa94;
  background: #eefaf5;
  color: #176452;
  font-weight: 700;
}

.inline-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.refund-sop-box {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.refund-sop-box strong,
.refund-sop-box small {
  display: block;
}

.summary-link {
  width: 100%;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  text-align: left;
  padding: 11px 12px;
  cursor: pointer;
}

.summary-link span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.summary-link strong {
  display: block;
  margin-top: 6px;
}

.recommendation-pool {
  margin: 18px 0;
}

.material-status-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.material-status-summary > div {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fffaf0;
  padding: 12px;
}

.material-status-summary span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 4px;
}

.material-status-summary strong {
  font-size: 22px;
}

@media (max-width: 1100px) {
  .workspace-switch-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace-quick-links {
    grid-column: 1 / -1;
  }

  .dashboard-command {
    grid-template-columns: 1fr;
  }

  .generation-runtime-contract,
  .generation-runtime-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-release-panel {
    grid-template-columns: 1fr;
  }

  .admin-release-metrics,
  .aftercare-auto-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ops-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .trial-cost-mix-grid {
    grid-template-columns: 1fr;
  }

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

  .grid.stats.hero-stats,
  .grid.stats.queue-stats,
  .grid.stats.support-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid.two {
    grid-template-columns: 1fr;
  }

  .launch-grid,
  .env-board,
  .material-status-summary,
  .model-summary-grid,
  .cost-formula-board,
  .support-main-actions-grid,
  .support-summary-grid,
  .order-stage-grid,
  .checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-command-head,
  .feedback-ticket,
  .ticket-drawer-head {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .ticket-drawer {
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    margin: 10px;
    padding: 14px;
  }

  .support-command-focus {
    text-align: left;
  }

  .aftercare-attach-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }

  body.nav-open .sidebar {
    transform: translateX(0);
  }

  .main {
    width: 100%;
    margin-left: 0;
  }

  .topbar {
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
  }

  .topbar h1 {
    font-size: 20px;
  }

  .topbar p {
    font-size: 13px;
  }

  .admin-login {
    width: 100%;
    margin-left: 0;
  }

  .admin-login input {
    width: 0;
    min-width: 0;
    flex: 1;
  }

  .admin-login button {
    flex: 0 0 auto;
  }

  #cloudStatus {
    min-width: auto;
    white-space: nowrap;
  }

  #content {
    padding: 14px 14px 32px;
  }

  .workspace-switch-panel {
    grid-template-columns: 1fr;
  }

  .workspace-quick-links {
    grid-column: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid.stats,
  .grid.three,
  .launch-grid,
  .env-board,
  .checklist,
  .compact-list,
  .codex-id-grid,
  .form-grid,
  .editor-card,
  .editor-fields,
  .advanced-field-grid,
  .model-summary-grid,
  .support-main-actions-grid,
  .ops-role-grid {
    grid-template-columns: 1fr;
  }

  .grid.stats.hero-stats,
  .grid.stats.queue-stats,
  .grid.stats.support-stats {
    grid-template-columns: 1fr;
  }

  .ops-war-room {
    padding: 12px;
  }

  .ops-screen-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .trial-economics-head {
    flex-direction: column;
  }

  .trial-break-even {
    width: 100%;
    min-width: 0;
    text-align: left;
  }

  .trial-funnel-grid,
  .trial-economics-grid,
  .trial-cost-mix-list,
  .trial-cost-mix-grid {
    grid-template-columns: 1fr;
  }

  .ops-screen-meta {
    width: 100%;
    min-width: 0;
    text-align: left;
  }

  .ops-kpi-row,
  .ops-screen-grid,
  .ops-dial-list,
  .support-summary-grid,
  .cost-formula-board,
  .order-stage-grid,
  .service-desk-action-grid {
    grid-template-columns: 1fr;
  }

  .service-desk-hero-head,
  .service-page-head {
    flex-direction: column;
  }

  .service-desk-total,
  .service-page-rule {
    width: 100%;
    min-width: 0;
  }

  .support-command-head,
  .feedback-ticket {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ticket-action-plan {
    grid-template-columns: 1fr;
  }

  .ops-kpi-card {
    min-height: 96px;
  }

  .ops-kpi-card strong {
    font-size: 24px;
    overflow-wrap: anywhere;
  }

  .ops-core-dial,
  .ops-chart-card,
  .ops-event-panel {
    min-height: auto;
  }

  .ops-chart svg,
  .chart-empty {
    min-height: 156px;
    height: 156px;
  }

  .ops-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-command-status {
    grid-template-columns: 1fr;
  }

  .generation-runtime-head,
  .generation-runtime-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .generation-runtime-live {
    flex-basis: auto;
    text-align: left;
  }

  .generation-runtime-contract,
  .generation-runtime-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .generation-runtime-actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .admin-release-metrics,
  .aftercare-auto-grid {
    grid-template-columns: 1fr;
  }

  .aftercare-auto-head {
    align-items: stretch;
    flex-direction: column;
  }

  .aftercare-auto-total {
    width: 100%;
    min-width: 0;
    flex-basis: auto;
    text-align: left;
  }

  .dashboard-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-stats .stat strong {
    font-size: 30px;
  }
}
.feedback-media-preview {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.feedback-media-preview > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.feedback-media-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
}

.feedback-media-item {
  align-items: center;
  aspect-ratio: 1;
  background: rgba(11, 15, 14, 0.05);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  display: grid;
  justify-items: center;
  min-width: 0;
  overflow: hidden;
  padding: 6px;
  position: relative;
  text-decoration: none;
}

.feedback-media-item img {
  border-radius: 6px;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.feedback-media-item small {
  background: rgba(0, 0, 0, 0.56);
  border-radius: 4px;
  bottom: 4px;
  color: #fff;
  font-size: 10px;
  left: 4px;
  max-width: calc(100% - 8px);
  overflow: hidden;
  padding: 2px 4px;
  position: absolute;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feedback-media-item.is-unresolved {
  color: var(--muted);
}

.feedback-media-item.is-broken {
  border-color: rgba(184, 91, 74, 0.5);
}

@media (max-width: 1180px) {
  .support-chat-workbench {
    grid-template-columns: 1fr;
  }

  .support-chat-sidebar {
    max-height: 320px;
    border-right: 0;
    border-bottom: 1px solid #eadcc5;
  }

  .support-chat-detail,
  .support-chat-workbench {
    min-height: auto;
  }

  .support-chat-body {
    grid-template-columns: 1fr;
  }

  .support-chat-context {
    border-left: 0;
    border-top: 1px solid #eadcc5;
  }

  .support-customer-order-card {
    grid-template-columns: 1fr;
  }

  .support-customer-order-actions {
    justify-content: flex-start;
  }

  .support-customer-order-actions > strong {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .support-chat-detail-head,
  .feedback-inline-reply-head,
  .support-conversation-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .support-chat-composer,
  .support-chat-messages,
  .support-chat-context {
    padding: 12px;
  }

  .support-message-bubble {
    width: 100%;
  }
}
