.dc-panel {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.35;
  color: #ececec;
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 3px 8px;
  margin: 6px 0 0;
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
  align-self: stretch;
  overflow: hidden;
}

.dc-panel.dc-open {
  padding: 10px 12px 8px;
  border-radius: 8px;
  margin: 8px 0 4px;
}

.dc-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 28px;
}

.dc-brand {
  font-weight: 650;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a8a8a;
  flex: 0 0 auto;
}

.dc-motto {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: #7a7a7a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dc-panel.dc-open .dc-motto,
.dc-panel:not(.dc-open) .dc-stage,
.dc-panel:not(.dc-open) .dc-foot {
  display: none;
}

.dc-panel.dc-open .dc-brand {
  font-size: 12px;
}

.dc-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.dc-btn,
.dc-gear,
.dc-link,
.dc-text {
  background: #ececec;
  color: #111;
  border: 0;
  border-radius: 5px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.dc-panel.dc-open .dc-btn,
.dc-panel.dc-open .dc-gear,
.dc-panel.dc-open .dc-link,
.dc-panel.dc-open .dc-text {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 6px;
}

.dc-gear {
  background: transparent;
  color: #8a8a8a;
  padding: 2px 4px;
}

.dc-panel.dc-open .dc-gear {
  padding: 4px 6px;
}

.dc-link,
.dc-text {
  background: transparent;
  color: #ececec;
  padding: 4px 0;
  font-weight: 500;
}

.dc-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.dc-body {
  min-width: 0;
}

.dc-empty {
  color: #a3a3a3;
  font-size: 13px;
  letter-spacing: -0.015em;
}

.dc-ornament {
  display: none;
}

.dc-busy .dc-brand {
  animation: dc-breathe 2.4s ease-in-out infinite;
}

.dc-busy .dc-row::after {
  content: "";
  position: absolute;
  left: 8px;
  bottom: 0;
  height: 1px;
  width: 36px;
  background: #efebe3;
  opacity: 0;
  animation: dc-scan 2.2s ease-in-out infinite;
}

.dc-err {
  color: #e07070;
}

.dc-verdict {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}

.dc-verdict-word {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.dc-v-send .dc-verdict-word { color: #7dcea0; }
.dc-v-fix .dc-verdict-word { color: #e0c36a; }
.dc-v-dont .dc-verdict-word { color: #e07070; }

.dc-verdict-hint {
  color: #8a8a8a;
}

.dc-meters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
}

.dc-meter-top {
  display: flex;
  justify-content: space-between;
  color: #8a8a8a;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}

.dc-meter-val {
  color: #ececec;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}

.dc-bar {
  height: 3px;
  background: #2a2a2a;
  border-radius: 99px;
  overflow: hidden;
}

.dc-bar-fill {
  height: 100%;
  border-radius: 99px;
}

.dc-good { background: #7dcea0; }
.dc-mid { background: #e0c36a; }
.dc-low { background: #e07070; }
.dc-bad { background: #e07070; }

.dc-kind {
  margin-top: 8px;
  color: #8a8a8a;
  font-size: 12px;
}

.dc-humanize {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #2a2a2a;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dc-humanize-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.dc-btn-ghost {
  background: transparent;
  color: #ececec;
  border: 1px solid #2a2a2a;
}

.dc-rewrite {
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 8px 10px;
  white-space: pre-wrap;
}

.dc-foot {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid #2a2a2a;
  color: #6a6a6a;
  font-size: 11px;
  letter-spacing: 0.04em;
}

@keyframes dc-breathe {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes dc-scan {
  0% { left: 8px; opacity: 0; }
  18% { opacity: 0.45; }
  82% { opacity: 0.45; }
  100% { left: calc(100% - 44px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .dc-busy .dc-brand,
  .dc-busy .dc-row::after {
    animation: none;
  }
}
