@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300&display=swap");

:root {
  color-scheme: dark;
  --bg: #090909;
  --ink: #f2f2f2;
  --muted: #a8a8a8;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 300;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.wrap {
  width: 100%;
  margin: 0;
  padding: 16px 8px 24px;
  text-transform: uppercase;
}

.head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.head h1 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.back {
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  font-variant-ligatures: contextual;
  font-feature-settings: "calt" 1;
}

.back:hover {
  color: var(--ink);
}

.panel {
  padding: 0;
}

.log-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.log-group-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.log-line {
  font-size: 12px;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  color: var(--ink);
  line-height: 1.35;
  display: block;
  width: max-content;
}

.log-line.log-continuation {
  white-space: pre;
}

.log-batch-header {
  color: var(--muted);
}

.log-group-spacer {
  height: 4px;
}

.ops-batch {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

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

.ops-table-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ops-table-section-title {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ops-copyable-th {
  cursor: pointer;
}

.ops-copyable-th:hover {
  color: var(--ink);
}

.ops-table-summary {
  min-width: 760px;
}

.ops-table-market {
  width: 1100px;
  min-width: 1100px;
  table-layout: auto;
}

.ops-table th,
.ops-table td {
  padding: 6px 8px;
  vertical-align: top;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ops-table th {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ops-table-summary td {
  font-size: 11px;
}


.ops-table-market td:nth-child(5) { white-space: nowrap; }

.ops-table-market td {
  font-size: 11px;
}


.ops-table-final {
  width: 1100px;
  min-width: 1100px;
  table-layout: auto;
}

.ops-table-final th {
  font-size: 10px;
}

.ops-table-final td {
  font-size: 11px;
}

.ops-table-final tbody tr:last-child td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
}

.ops-market {
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}

.ops-token {
  display: inline-flex;
  align-items: center;
  margin: 0 4px 4px 0;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  line-height: 1.2;
  white-space: nowrap;
}

.ops-token.green {
  background: rgba(74, 222, 128, 0.14);
  color: #4ade80;
}

.ops-token.orange {
  background: rgba(245, 158, 11, 0.14);
  color: #f59e0b;
}

.ops-token.red {
  background: rgba(239, 68, 68, 0.14);
  color: #ef4444;
}

.ops-token.muted {
  color: var(--muted);
}

.ops-empty {
  color: var(--muted);
}

.log-line.is-problem {
  color: #ffb35a;
}

.log-line.is-good {
  color: #4ade80;
}

.log-empty {
  color: var(--muted);
}

.last-updated {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}

.server-banner {
  background: #7c2d00;
  color: #ffb35a;
  font-size: 12px;
  padding: 8px 12px;
  margin-bottom: 12px;
  border-left: 3px solid #ffb35a;
  white-space: nowrap;
}

.rebuild-banner {
  background: #7c2d00;
  color: #ffb35a;
  border-left-color: #ffb35a;
}

/* exec readiness strip — minimal */
.auto-exec-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 6px 0 10px;
  font-size: 11px;
  color: var(--muted);
  align-items: center;
}
.auto-exec-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.auto-exec-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #555;
  display: inline-block;
}
.auto-exec-status-chip.green  .auto-exec-status-dot { background: #3fa24a; }
.auto-exec-status-chip.yellow .auto-exec-status-dot { background: #d4a429; }
.auto-exec-status-chip.red    .auto-exec-status-dot { background: #c54444; }
.auto-exec-status-chip.orange { color: #f59e0b; }
.auto-exec-status-chip.orange .auto-exec-status-dot { background: #f59e0b; }

.ops-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 0 12px;
  color: var(--muted);
}

.ops-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.035);
  white-space: nowrap;
}

.ops-legend-item strong {
  color: var(--ink);
  font-weight: 500;
}

/* 동적 마켓 태그 (2026-06-13) — 정적/동적 슬롯 구분 */
.ops-tag-dyn { display: inline-block; margin-left: 4px; padding: 0 4px; border-radius: 3px; font-size: 9px; font-weight: 600; color: #6ea8fe; border: 1px solid #2c4a78; background: rgba(46,74,120,0.25); vertical-align: middle; }
