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

body {
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

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

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

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

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

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

.de-eyecatch-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}

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

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

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

.de-eyecatch-save-status,
.de-eyecatch-count {
  color: #666;
  font-size: 0.85rem;
}

.de-eyecatch-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 16px;
  margin-top: 22px;
}

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

.de-eyecatch-panel h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.de-eyecatch-field {
  display: block;
  margin-top: 14px;
}

.de-eyecatch-label {
  display: block;
  margin-bottom: 6px;
  color: #444;
  font-size: 0.9rem;
  font-weight: 700;
}

.de-eyecatch-help {
  display: block;
  margin: -2px 0 8px;
  color: #666;
  font-size: 0.85rem;
  line-height: 1.6;
}

.de-eyecatch-input,
.de-eyecatch-select,
.de-eyecatch-textarea {
  box-sizing: border-box;
  width: 100%;
  color: #222;
  background: #fff;
  border: 1px solid #e6e0d8;
  border-radius: 8px;
}

.de-eyecatch-input,
.de-eyecatch-select {
  min-height: 42px;
  padding: 8px 12px;
}

.de-eyecatch-textarea {
  min-height: 160px;
  padding: 12px;
  resize: vertical;
}

.de-eyecatch-textarea-small {
  min-height: 92px;
}

.de-eyecatch-textarea-large {
  min-height: 180px;
}

.de-eyecatch-output {
  min-height: 72vh;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.95rem;
  line-height: 1.7;
}

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

.de-eyecatch-combo {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 10px;
}

.de-eyecatch-output-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

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

  .de-eyecatch-layout {
    grid-template-columns: 1fr;
  }

  .de-eyecatch-combo {
    grid-template-columns: 1fr;
  }

  .de-eyecatch-output {
    min-height: 44vh;
  }
}
