:root {
  color: #222;
  background: #fbfaf7;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.75;
}

body {
  margin: 0;
}

button,
textarea {
  font: inherit;
}

.de-mdcleaner-page {
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
  padding: 40px 0;
}

.de-mdcleaner-header {
  max-width: 44rem;
}

.de-mdcleaner-back {
  color: #666;
  font-size: 0.9rem;
  text-decoration: none;
}

.de-mdcleaner-back:hover,
.de-mdcleaner-back:focus-visible {
  color: #222;
  text-decoration: underline;
}

.de-mdcleaner-header h1 {
  margin: 12px 0 0;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.de-mdcleaner-header p {
  margin: 16px 0 0;
  color: #555;
}

.de-mdcleaner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.de-mdcleaner-button {
  min-height: 42px;
  padding: 8px 16px;
  color: #222;
  background: #fff;
  border: 1px solid #d8d0c5;
  border-radius: 8px;
  cursor: pointer;
}

.de-mdcleaner-button:hover,
.de-mdcleaner-button:focus-visible {
  border-color: #9f927f;
}

.de-mdcleaner-button-primary {
  color: #fff;
  background: #222;
  border-color: #222;
}

.de-mdcleaner-status {
  min-height: 1.5em;
  margin: 10px 0 0;
  color: #666;
  font-size: 0.9rem;
}

.de-mdcleaner-workspace {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.de-mdcleaner-panel {
  min-width: 0;
}

.de-mdcleaner-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.de-mdcleaner-panel h2 {
  margin: 0;
  font-size: 1rem;
}

.de-mdcleaner-stat {
  color: #666;
  font-size: 0.85rem;
  white-space: nowrap;
}

.de-mdcleaner-textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 58vh;
  padding: 16px;
  color: #222;
  background: #fff;
  border: 1px solid #e6e0d8;
  border-radius: 8px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.95rem;
  line-height: 1.7;
}

.de-mdcleaner-textarea:focus {
  border-color: #9f927f;
  outline: 2px solid #eee4d7;
  outline-offset: 1px;
}

@media (max-width: 760px) {
  .de-mdcleaner-page {
    padding: 28px 0;
  }

  .de-mdcleaner-workspace {
    grid-template-columns: 1fr;
  }

  .de-mdcleaner-textarea {
    min-height: 38vh;
  }
}
