.dfd-dialog {
  --dfd-ink: #18382e;
  --dfd-muted: #596961;
  --dfd-line: #d6dfd8;
  --dfd-green: #145641;
  color: var(--dfd-ink);
  color-scheme: light;
  background: #fffefa;
  border: 1px solid #cbd6ce;
  border-radius: 16px;
  box-shadow: 0 20px 85px #0b291f3d;
  padding: 0;
  margin: auto;
  width: min(492px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: min(90vh, 800px);
  max-height: min(90dvh, 800px);
  font: inherit;
  overflow: auto;
}
.dfd-dialog::backdrop { background: rgb(15 34 28 / 42%); }
.dfd-frame *, .dfd-frame *::before, .dfd-frame *::after { box-sizing: border-box; }
.dfd-head, .dfd-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
}
.dfd-head { justify-content: space-between; border-bottom: 1px solid var(--dfd-line); }
.dfd-head h2, .dfd-share h3 { margin: 0; color: var(--dfd-ink); line-height: 1.2; }
.dfd-head h2 { font-size: 1.3rem; font-weight: 650; letter-spacing: -.035em; }
.dfd-body { display: grid; gap: 17px; padding: 22px 24px; }
.dfd-form { margin: 0; }
.dfd-foot { justify-content: flex-end; border-top: 1px solid var(--dfd-line); background: #f7f9f5; }
.dfd-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  margin: 0;
  padding: 8px 14px;
  line-height: 1.2;
  border: 1px solid #c3d0c7;
  border-radius: 8px;
  background: #fffefa;
  color: var(--dfd-ink);
  cursor: pointer;
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
}
.dfd-btn:hover { background: #edf3ee; }
.dfd-btn:disabled { opacity: .65; cursor: wait; }
.dfd-primary { background: var(--dfd-green); border-color: var(--dfd-green); color: white; }
.dfd-primary:hover { background: #10432f; }
.dfd-danger { background: #a43731; border-color: #a43731; color: white; }
.dfd-danger:hover { background: #902c29; }
.dfd-remove { margin-right: auto; padding-inline: 0; border-color: transparent; background: transparent; color: #a43731; }
.dfd-remove:hover { background: transparent; text-decoration: underline; }
.dfd-close { flex: 0 0 32px; width: 32px; min-height: 32px; padding: 0; border-color: transparent; background: transparent; font-size: 1.55rem; font-weight: 400; line-height: 1; }
.dfd-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dfd-lane-list { display: grid; gap: 8px; }
.dfd-lane-list + .dfd-btn { justify-self: start; }
.dfd-lane-row, .dfd-lane-buttons { display: flex; align-items: center; gap: 5px; }
.dfd-lane-row { gap: 10px; }
.dfd-lane-control, .dfd-lane-remove { min-height: 34px; padding: 5px 8px; font-size: .79rem; }
.dfd-lane-remove { color: #a43731; }
.dfd-lane-control:disabled { cursor: default; opacity: .45; }
.dfd-lane-empty { margin: 0; padding: 12px; border: 1px dashed var(--dfd-line); border-radius: 8px; color: var(--dfd-muted); font-size: .875rem; }
@media (max-width: 380px) { .dfd-lane-row { flex-wrap: wrap; } }
.dfd-field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.dfd-field label, .dfd-sharing-title { color: var(--dfd-ink); font-size: .875rem; font-weight: 650; }
.dfd-input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 12px;
  color: var(--dfd-ink);
  border: 1px solid #bdccc2;
  border-radius: 8px;
  background-color: white;
  background-clip: padding-box;
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  box-shadow: none;
}
.dfd-select {
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='9' viewBox='0 0 13 9'%3E%3Cpath d='M2 2.5 6.5 7 11 2.5' stroke='%23596961' fill='none' stroke-linecap='round' stroke-width='1.6'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
}
.dfd-path-files { min-width: 0; margin: 0; padding: 0; border: 0; }
.dfd-path-files legend { padding: 0; margin-bottom: 4px; font-size: .875rem; font-weight: 650; }
.dfd-checklist { max-height: 160px; margin-top: 8px; overflow-y: auto; border: 1px solid var(--dfd-line); border-radius: 8px; background: white; }
.dfd-file-choice { display: flex; align-items: center; gap: 10px; padding: 9px 11px; font-size: .875rem; line-height: 1.35; cursor: pointer; }
.dfd-file-choice + .dfd-file-choice { border-top: 1px solid var(--dfd-line); }
.dfd-file-choice:hover, .dfd-file-choice:focus-within { background: #f0f6f1; }
.dfd-file-choice input { flex: 0 0 16px; width: 16px; height: 16px; margin: 0; accent-color: var(--dfd-green); }
.dfd-file-choice input:focus-visible { outline: 2px solid #368366; outline-offset: 2px; }
.dfd-file-choice span { min-width: 0; overflow-wrap: anywhere; }
.dfd-file-choice small { display: block; color: var(--dfd-muted); }
.dfd-input::placeholder { color: #77847c; opacity: 1; }
textarea.dfd-input { min-height: 86px; resize: vertical; }
.dfd-btn:focus-visible, .dfd-input:focus { outline: 2px solid #368366; outline-offset: 2px; }
.dfd-prose, .dfd-help, .dfd-notice { margin: 0; line-height: 1.5; overflow-wrap: anywhere; }
.dfd-prose { font-size: 1rem; }
.dfd-help, .dfd-notice { font-size: .835rem; color: var(--dfd-muted); }
.dfd-notice:empty { display: none; }
.dfd-warning { margin: 0; padding: 10px 12px; border: 1px solid #dfcd99; border-radius: 8px; background: #fff8e4; color: #604b17; font-size: .875rem; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-line; }
.dfd-share { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--dfd-line); border-radius: 10px; background: white; }
.dfd-share h3 { font-size: 1rem; font-weight: 650; }
.dfd-share > .dfd-btn { justify-self: start; }
.dfd-dialog [hidden], .dfd-share-result:empty { display: none; }
.dfd-share-result { display: grid; gap: 10px; }
.dfd-copy { display: flex; gap: 8px; }
.dfd-copy .dfd-btn { flex-shrink: 0; }
.dfd-project-list { display: grid; gap: 4px; }
.dfd-project-item { justify-content: space-between; border: 0; text-align: left; }
.dfd-project-item[aria-current="true"] { background: #e8f2e9; }
.dfd-current { font-size: .75rem; font-weight: 500; color: var(--dfd-muted); }
@media (max-width: 420px) {
  .dfd-head, .dfd-body, .dfd-foot { padding-inline: 16px; }
  .dfd-row { grid-template-columns: 1fr; }
  .dfd-foot { flex-wrap: wrap; gap: 8px; }
  .dfd-remove { margin-right: auto; }
}
