:root {
  --bg: #080b12;
  --panel: rgba(18, 24, 36, 0.82);
  --panel-solid: #121824;
  --line: rgba(139, 155, 184, 0.18);
  --text: #eef4ff;
  --muted: #91a0b8;
  --muted-2: #647086;
  --cyan: #32d6ff;
  --mint: #29e6a7;
  --amber: #f8bd4e;
  --blue: #7297ff;
  --danger: #ff6b7a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 24% 8%, rgba(50, 214, 255, 0.16), transparent 30%),
    radial-gradient(circle at 78% 0%, rgba(41, 230, 167, 0.12), transparent 26%),
    linear-gradient(135deg, #080b12 0%, #0d121d 48%, #090d15 100%);
}

button {
  color: inherit;
  font: inherit;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 30% 10%, rgba(50, 214, 255, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(8, 11, 18, 0.98), rgba(9, 13, 21, 0.98));
}

.login-screen[hidden] {
  display: none;
}

.login-card {
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 24, 36, 0.9);
  box-shadow: var(--shadow);
}

.login-card .brand-mark {
  margin-bottom: 18px;
}

.login-card h1 {
  margin-bottom: 10px;
}

.login-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.login-card label {
  display: block;
  margin: 20px 0 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.login-error {
  display: block;
  min-height: 18px;
  margin-top: 12px;
  color: var(--danger);
  font-size: 13px;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px 16px;
  border-right: 1px solid var(--line);
  background: rgba(8, 11, 18, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px 16px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(50, 214, 255, 0.42);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(50, 214, 255, 0.22), rgba(41, 230, 167, 0.1));
  color: var(--cyan);
  font-size: 14px;
  font-weight: 900;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-item,
.ghost-button,
.primary-button,
.icon-button {
  border: 0;
  cursor: pointer;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}

.nav-item svg,
.ghost-button svg,
.primary-button svg,
.icon-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.nav-item.active,
.nav-item:hover {
  background: rgba(50, 214, 255, 0.1);
  color: var(--text);
}

.side-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 24, 36, 0.72);
}

.side-status strong,
.side-status span {
  display: block;
}

.side-status span:last-child {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 8px rgba(41, 230, 167, 0.12);
}

.main {
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1.25;
}

h2 {
  max-width: 700px;
  margin-bottom: 14px;
  font-size: 34px;
  line-height: 1.18;
}

h3 {
  margin-bottom: 0;
  font-size: 18px;
}

.top-actions,
.hero-actions,
.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.primary-button,
.ghost-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 8px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.primary-button {
  gap: 8px;
  padding: 0 16px;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
  color: #061018;
  font-weight: 800;
}

.primary-button.large,
.ghost-button.large {
  min-height: 46px;
}

.ghost-button {
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.icon-button {
  width: 40px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.primary-button:hover,
.ghost-button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.hero-panel,
.panel,
.metric-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 26px;
  min-height: 310px;
  padding: 30px;
  overflow: hidden;
}

.hero-copy p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.7;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 11px;
  border: 1px solid rgba(41, 230, 167, 0.28);
  border-radius: 999px;
  color: var(--mint);
  background: rgba(41, 230, 167, 0.08);
  font-size: 13px;
  font-weight: 700;
}

.status-chip span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
}

.ai-orbit {
  position: relative;
  min-height: 250px;
}

.orbit-ring,
.orbit-core,
.node {
  position: absolute;
}

.orbit-ring {
  inset: 14px;
  border: 1px solid rgba(50, 214, 255, 0.24);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49%, rgba(50, 214, 255, 0.16) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(41, 230, 167, 0.14) 50%, transparent 51%);
}

.orbit-ring::after {
  content: "";
  position: absolute;
  inset: 34px;
  border: 1px dashed rgba(145, 160, 184, 0.2);
  border-radius: 50%;
}

.orbit-core {
  top: 50%;
  left: 50%;
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  padding: 24px 10px;
  border: 1px solid rgba(50, 214, 255, 0.35);
  border-radius: 50%;
  background: rgba(8, 11, 18, 0.76);
  transform: translate(-50%, -50%);
}

.orbit-core strong,
.orbit-core span {
  display: block;
}

.orbit-core strong {
  font-size: 34px;
}

.orbit-core span {
  align-self: start;
  color: var(--muted);
  font-size: 12px;
}

.node {
  padding: 7px 10px;
  border: 1px solid rgba(50, 214, 255, 0.24);
  border-radius: 999px;
  background: rgba(18, 24, 36, 0.92);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.node-a {
  top: 26px;
  left: 28%;
}

.node-b {
  right: 16px;
  top: 46%;
}

.node-c {
  bottom: 28px;
  left: 24%;
}

.node-d {
  left: 0;
  top: 45%;
}

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

.metric-card {
  padding: 18px;
}

.metric-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 8px;
  background: rgba(50, 214, 255, 0.12);
  color: var(--cyan);
}

.metric-icon.green {
  background: rgba(41, 230, 167, 0.1);
  color: var(--mint);
}

.metric-icon.amber {
  background: rgba(248, 189, 78, 0.12);
  color: var(--amber);
}

.metric-icon.blue {
  background: rgba(114, 151, 255, 0.12);
  color: var(--blue);
}

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

.metric-card strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 31px;
}

.metric-card p,
.timeline p,
.approval-item p,
.strategy-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 14px;
}

.panel {
  padding: 20px;
}

.panel-header {
  justify-content: space-between;
  margin-bottom: 18px;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.timeline-item > span {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--muted-2);
}

.timeline-item.done > span {
  background: var(--mint);
}

.timeline-item.active > span {
  background: var(--cyan);
  box-shadow: 0 0 0 8px rgba(50, 214, 255, 0.1);
}

.timeline-item em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.approval-list,
.strategy-panel {
  display: grid;
  gap: 12px;
}

.count-badge,
.strategy-score {
  display: grid;
  min-width: 36px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: rgba(50, 214, 255, 0.12);
  color: var(--cyan);
  font-weight: 800;
}

.approval-item,
.strategy-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.approval-item strong,
.strategy-card strong,
.timeline-item strong {
  display: block;
  margin-bottom: 5px;
}

.approve {
  color: var(--mint);
}

.ranking-panel {
  grid-column: 1 / 2;
}

.query-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.query-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 110px 90px 70px;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

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

.query-row.head {
  min-height: 40px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-2);
  font-weight: 700;
}

.query-row strong {
  color: var(--mint);
}

.query-row strong.warn {
  color: var(--amber);
}

.strategy-card {
  grid-template-columns: 34px minmax(0, 1fr);
}

.strategy-card svg {
  width: 22px;
  height: 22px;
  color: var(--cyan);
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  margin-top: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font: inherit;
}

textarea {
  min-height: 110px;
  padding: 10px 12px;
  resize: vertical;
}

select {
  appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(50, 214, 255, 0.52);
  box-shadow: 0 0 0 3px rgba(50, 214, 255, 0.1);
}

.page-section {
  display: none;
}

.page-section.active {
  display: block;
}

.section-title {
  margin-bottom: 18px;
}

.section-title h2 {
  margin-bottom: 10px;
}

.section-title p:last-child {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
}

.setup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 14px;
}

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

.form-grid label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

.merchant-controls label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.full {
  width: 100%;
}

.generated-empty {
  display: grid;
  min-height: 240px;
  place-items: center;
  padding: 24px;
  border: 1px dashed rgba(145, 160, 184, 0.28);
  border-radius: 8px;
  text-align: center;
}

.generated-empty svg {
  width: 42px;
  height: 42px;
  color: var(--cyan);
}

.generated-empty p {
  max-width: 340px;
  margin: 12px auto 0;
  color: var(--muted);
  line-height: 1.7;
}

.generated-plan {
  display: grid;
  gap: 12px;
}

.generated-plan div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.generated-plan span {
  color: var(--mint);
  font-weight: 800;
}

.generated-plan .asset-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.generated-plan .ai-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(41, 230, 167, 0.22);
  border-radius: 8px;
  background: rgba(41, 230, 167, 0.07);
}

.ai-meta span {
  color: var(--mint);
  font-size: 13px;
}

.asset-links a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(50, 214, 255, 0.24);
  border-radius: 8px;
  color: var(--cyan);
  background: rgba(50, 214, 255, 0.07);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.generated-plan .content-pack,
.generated-plan .publish-queue,
.generated-plan .keyword-preview {
  display: grid;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.keyword-list span {
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(145, 160, 184, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.mini-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.mini-heading strong {
  font-size: 14px;
}

.mini-heading span {
  color: var(--cyan);
  font-size: 13px;
}

.content-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.content-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--cyan);
  font-size: 12px;
}

.content-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.content-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.content-item em,
.queue-item em {
  align-self: start;
  color: var(--amber);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.queue-approve {
  min-height: 32px;
  border: 1px solid rgba(41, 230, 167, 0.28);
  border-radius: 8px;
  background: rgba(41, 230, 167, 0.1);
  color: var(--mint);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.queue-approve:disabled {
  cursor: wait;
  opacity: 0.62;
}

.queue-item {
  display: grid;
  grid-template-columns: 58px 88px minmax(0, 1fr) 96px;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.queue-item span,
.queue-item p {
  color: var(--muted);
  font-size: 12px;
}

.queue-item p {
  margin: 0;
  overflow-wrap: anywhere;
}

.queue-item strong {
  font-size: 13px;
}

.queue-item[data-status="ready"] em {
  color: var(--mint);
}

.queue-item[data-status="confirm"] em {
  color: var(--amber);
}

.queue-item[data-status="approved"] em {
  color: var(--cyan);
}

.platform-grid,
.calendar-grid,
.effect-grid {
  display: grid;
  gap: 14px;
}

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

.platform-card {
  min-height: 142px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.platform-card svg {
  width: 24px;
  height: 24px;
  margin-bottom: 18px;
  color: var(--muted);
}

.platform-card.live svg {
  color: var(--cyan);
}

.platform-card strong,
.platform-card span,
.phase-card span,
.effect-card span {
  display: block;
}

.platform-card strong {
  margin-bottom: 8px;
}

.platform-card span,
.phase-card p,
.effect-card p,
.effect-card span {
  color: var(--muted);
}

.phase-card,
.effect-card {
  min-height: 210px;
}

.phase-card span {
  margin-bottom: 18px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
}

.phase-card h3 {
  margin-bottom: 12px;
}

.phase-card p,
.effect-card p {
  line-height: 1.7;
}

.effect-card strong {
  display: block;
  margin-bottom: 12px;
  color: var(--mint);
  font-size: 28px;
}

.effect-card span {
  margin-bottom: 16px;
  font-weight: 800;
}

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

.diagnosis-result {
  display: grid;
  gap: 12px;
}

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

.diagnosis-metrics div,
.diagnosis-actions,
.diagnosis-tags {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.diagnosis-metrics strong {
  display: block;
  margin-bottom: 6px;
  font-size: 24px;
}

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

.diagnosis-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.diagnosis-tags span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(50, 214, 255, 0.08);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

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

.customer-row,
.issue-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 120px 120px minmax(180px, 1.2fr);
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.customer-row span,
.issue-row span {
  color: var(--muted);
  font-size: 12px;
}

.customer-row a {
  color: var(--cyan);
  font-weight: 800;
  text-decoration: none;
}

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

.manual-card span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  background: rgba(50, 214, 255, 0.12);
  color: var(--cyan);
  font-weight: 900;
}

.manual-card p {
  color: var(--muted);
  line-height: 1.7;
}

.copy-template {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  white-space: pre-wrap;
  line-height: 1.7;
}

.wide {
  grid-column: 1 / -1;
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .brand div:last-child,
  .nav-item span,
  .side-status div {
    display: none;
  }

  .sidebar {
    align-items: center;
  }

  .nav-item {
    justify-content: center;
    width: 48px;
    padding: 0;
  }

  .hero-panel,
  .workspace-grid,
  .setup-grid {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    grid-column: auto;
  }

  .metric-grid,
  .platform-grid,
  .calendar-grid,
  .effect-grid,
  .manual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: row;
    padding: 12px;
    overflow-x: auto;
  }

  .brand,
  .side-status {
    display: none;
  }

  .nav-list {
    display: flex;
  }

  .main {
    padding: 18px;
  }

  .topbar,
  .panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: 23px;
  }

  h2 {
    font-size: 27px;
  }

  .hero-panel {
    padding: 20px;
  }

  .metric-grid,
  .platform-grid,
  .calendar-grid,
  .effect-grid,
  .manual-grid,
  .form-grid,
  .merchant-controls {
    grid-template-columns: 1fr;
  }

  .customer-row,
  .issue-row {
    grid-template-columns: 1fr;
  }

  .query-row {
    grid-template-columns: minmax(96px, 1fr) 54px 48px 42px;
    gap: 6px;
    padding: 8px;
    font-size: 12px;
  }

  .query-row span {
    overflow-wrap: anywhere;
  }

  .generated-plan .asset-links {
    grid-template-columns: 1fr;
  }

  .queue-item {
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: auto;
    padding: 10px;
  }

  .queue-item em {
    grid-column: 2;
  }

  .diagnosis-metrics {
    grid-template-columns: 1fr;
  }
}
