.xcc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 1.25rem;
}
@media (max-width: 860px) {
  .xcc-layout { grid-template-columns: 1fr; }
}
.xcc-stack { display: flex; flex-direction: column; gap: 1rem; }
.xcc-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.xcc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.xcc-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
}
.xcc-badges { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.xcc-badge {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
}
.xcc-badge-ok { background: #0f766e; color: #ffffff; }
.xcc-badge-over { background: #dc2626; color: #ffffff; }
.xcc-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: #0f172a;
  font-family: "Inter", sans-serif;
  font-size: 0.94rem;
  line-height: 1.6;
  padding: 0.85rem 1rem;
  resize: vertical;
}
.xcc-textarea:focus {
  outline: none;
  border-color: #c2410c;
  background: #ffffff;
}
.xcc-warning {
  border: 1px solid #f59e0b;
  background: #fffbeb;
  color: #92400e;
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
  font-size: 0.84rem;
  line-height: 1.5;
}
.xcc-warning strong { display: block; margin-bottom: 0.2rem; }
.xcc-hidden { display: none; }
.xcc-muted { font-size: 0.78rem; color: #64748b; }
.xcc-threads { display: flex; flex-direction: column; gap: 0.65rem; }
.xcc-chunk {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.8rem 0.95rem;
}
.xcc-chunk-text {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #0f172a;
}
.xcc-copy-btn {
  flex: 0 0 auto;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  border-radius: 8px;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.xcc-copy-btn:hover { border-color: #c2410c; color: #c2410c; }
.xcc-slider-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #475569;
  margin-bottom: 0.35rem;
}
.xcc-slider { width: 100%; accent-color: #c2410c; }
.xcc-cost-table {
  border-top: 1px solid #e2e8f0;
  padding-top: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.88rem;
}
.xcc-cost-row { display: flex; justify-content: space-between; gap: 0.5rem; color: #475569; }
.xcc-mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 600; }
.xcc-amber { color: #b45309; }
.xcc-teal { color: #0f766e; }
.xcc-total {
  border-top: 1px solid #e2e8f0;
  padding-top: 0.55rem;
  font-weight: 600;
  color: #0f172a;
}
.xcc-privacy { margin: 0; font-size: 0.78rem; color: #64748b; }
