.ldc-upload {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 8px 0 16px;
}
.ldc-upload small {
  font-size: 12px;
  color: #40665f;
}
.ldc-btn {
  border: 1px solid #ccdbd7;
  border-radius: 8px;
  background: white;
  color: #173e37;
  padding: 10px 14px;
  font: 600 13px system-ui;
  cursor: pointer;
}
.ldc-btn.primary {
  background: #087f78;
  border-color: #087f78;
  color: white;
}
.ldc-btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.ldc-dialog {
  box-sizing: border-box;
  max-width: 960px;
  width: calc(100% - 32px);
  max-height: 92vh;
  overflow: auto;
  border: 1px solid #ccdcd7;
  border-radius: 16px;
  padding: 24px;
  color: #183d35;
  background: #fff;
  font: 14px/1.5 system-ui;
}
.ldc-dialog::backdrop {
  background: #102c2b99;
}
.ldc-dialog header,
.ldc-dialog footer,
.ldc-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.ldc-dialog h2,
.ldc-panel h2 {
  margin: 3px 0 12px;
  font: 600 25px/1.3 system-ui;
}
.ldc-dialog small {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #5e7971;
}
.ldc-dialog input,
.ldc-dialog select,
.ldc-panel select {
  padding: 10px;
  border: 1px solid #cbd9d4;
  border-radius: 7px;
  background: white;
  box-sizing: border-box;
  color: #143b33;
  font: 14px system-ui;
  max-width: 100%;
}
.ldc-dialog label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: #506960;
}
.ldc-dialog footer {
  border-top: 1px solid #dce7e1;
  padding-top: 16px;
  margin-top: 18px;
}
.ldc-notice {
  padding: 12px;
  background: #eff7f3;
  border: 1px solid #d8e6df;
  border-radius: 9px;
  margin: 12px 0;
}
.ldc-message {
  min-height: 22px;
  color: #7b4a15;
}
.ldc-work {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: 18px;
  margin-top: 20px;
}
.ldc-preview {
  min-height: 220px;
  background: #f1f5f3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-radius: 10px;
}
.ldc-preview img {
  max-width: 100%;
  max-height: 430px;
  object-fit: contain;
}
.ldc-dialog video {
  max-width: 100%;
  max-height: 320px;
  margin-top: 12px;
}
.ldc-page {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #d9e6df;
  border-radius: 7px;
  background: white;
  padding: 6px;
  margin: 4px;
  cursor: pointer;
  font: 12px system-ui;
}
.ldc-page.active {
  border: 2px solid #087f78;
}
.ldc-page img {
  width: 52px;
  height: 68px;
  object-fit: contain;
}
.ldc-panel {
  padding: 24px;
  background: white;
  border: 1px solid #dae6df;
  border-radius: 12px;
  margin: 20px 0;
  font: 14px/1.5 system-ui;
  color: #183d35;
}
.ldc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.ldc-card {
  padding: 18px;
  border: 1px solid #d7e3dc;
  border-radius: 10px;
}
.ldc-card h3 {
  font: 600 18px system-ui;
  margin: 0 0 8px;
}
.ldc-card p {
  overflow-wrap: anywhere;
  color: #5a756c;
}
.ldc-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ldc-form .wide {
  grid-column: 1/-1;
}
.ldc-dialog [hidden],
.ldc-upload[hidden] {
  display: none !important;
}
@media (max-width: 650px) {
  .ldc-work,
  .ldc-form {
    grid-template-columns: 1fr;
  }
  .ldc-dialog {
    padding: 16px;
  }
  .ldc-work aside {
    order: -1;
  }
  .ldc-dialog footer {
    align-items: stretch;
  }
}
@media print {
  .ldc-upload,
  .ldc-dialog {
    display: none !important;
  }
}
