body {
  background: var(--dx-bg);
  color: var(--dx-ink);
}
main {
  max-width: 1200px;
  margin: auto;
  padding: 24px;
}
.panel {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin: 24px 0;
  padding: 24px;
}
.panel h2 {
  margin-top: 0;
  font-size: 1.3rem;
}
.fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 16px 0;
}
label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.7;
}
input,
select,
textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 10px;
  border: 1px solid #72849a;
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  background: #fff;
}
input[type='checkbox'] {
  width: auto;
  margin-right: 8px;
}
.check {
  display: flex;
  align-items: baseline;
  font-weight: 400;
}
.checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px;
  margin: 20px 0;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
  align-items: center;
}
button {
  padding: 10px 16px;
  border: 1px solid #b4cdcd;
  border-radius: 10px;
  background: var(--dx-accent);
  color: white;
  font: inherit;
  cursor: pointer;
}
button:disabled {
  background: #eef2f3;
  color: #76858b;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #00525b;
  outline-offset: 2px;
}
.notice {
  padding: 16px 20px;
  background: #eaf5f3;
  border-left: 3px solid #007972;
  line-height: 1.6;
}
.hint {
  color: #586b78;
  font-size: 0.9rem;
  line-height: 1.6;
}
details {
  margin: 16px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
pre {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 16px;
  border: 1px solid #dde6e7;
  border-radius: 10px;
  background: #f7fafb;
  max-height: 460px;
  overflow: auto;
}
#log {
  padding-left: 24px;
  font-size: 0.85rem;
  line-height: 1.6;
  max-height: 260px;
  overflow: auto;
}
#history-list li {
  padding: 10px 0;
  border-bottom: 1px solid #edf0f1;
  list-style: none;
}
#history-list {
  padding: 0;
}
#history-list button {
  margin-right: 12px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  main {
    padding: 12px;
  }
  .panel {
    padding: 18px;
  }
  .fields,
  .checks {
    grid-template-columns: 1fr;
  }
}

.action-error {
  padding: 16px;
  border: 1px solid #b42333;
  border-radius: 10px;
  background: #fff3f4;
  color: #8a1827;
  overflow-wrap: anywhere;
}
#hidden-review-list {
  padding-left: 24px;
  max-height: 460px;
  overflow: auto;
}
.hidden-segment {
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid #dde6e7;
  border-left: 3px solid #b5651d;
  border-radius: 10px;
  background: #fbf8f4;
}
.hidden-segment p {
  margin: 4px 0;
  font-size: 0.9rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.hidden-segment-head {
  font-weight: 600;
}
.hidden-segment-text {
  margin: 8px 0;
  padding-left: 12px;
  border-left: 2px solid #dde6e7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.hidden-segment-reasons,
.hidden-segment-instead {
  color: #586b78;
}
