.dfd {
  --dfv-ink: #233832;
  --dfv-muted: #62736a;
  --dfv-line: #e1e7e2;
  --dfv-green: #17644b;
  color: var(--dfv-ink);
  font-family: inherit;
  text-align: left;
  box-sizing: border-box;
}
.dfd *, .dfd *::before, .dfd *::after { box-sizing: border-box; }
.dfd svg { flex-shrink: 0; vertical-align: middle; }
.dfd h2, .dfd h3, .dfd p, .dfd dl, .dfd dd { margin: 0; }
.dfd button, .dfd input, .dfd select, .dfd textarea { font: inherit; }
.dfd input, .dfd select, .dfd textarea { color: var(--dfv-ink); }
.dfd .dfv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; margin: 0;
  padding: 0; border: 0; background: none; color: inherit; text-decoration: none;
  cursor: pointer; line-height: 1.25; border-radius: 5px;
}
.dfd a:focus-visible, .dfd button:focus-visible, .dfd input:focus-visible, .dfd select:focus-visible, .dfd textarea:focus-visible {
  outline: 2px solid #268c67; outline-offset: 2px;
}
.dfd button:disabled { opacity: .48; cursor: default; }
.dfd .dfv-iconbutton { width: 27px; height: 27px; flex: 0 0 27px; color: #65766d; }
.dfd .dfv-iconbutton:hover { color: #155d46; background: #edf4ef; }
.dfv-inspector {
  background: #fff; height: 100%; min-height: 0; display: flex; flex-direction: column;
  overflow: hidden; color: #263c32; font-size: 14px;
}
.dfv-inspector-top {
  min-height: 49px; padding: 10px 20px; display: flex; align-items: center;
  justify-content: space-between; border-bottom: 1px solid var(--dfv-line);
}
.dfv-panel-name { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; letter-spacing: -.02em; }
.dfv-panel-name svg { color: #65756c; }
.dfv-inspector-body { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; flex: 1; }
.dfv-overview, .dfv-group { padding: 16px 20px 18px; border-bottom: 1px solid var(--dfv-line); }
.dfv-group:last-child { border-bottom: 0; }
.dfv-overview-head, .dfv-group-h, .dfv-out-line { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.dfv-type { display: inline-flex; align-items: center; gap: 5px; border-radius: 5px; padding: 4px 7px; font-size: 12px; line-height: 1.2; font-weight: 620; }
.dfv-t-start { background: #e8f5e9; color: #307447; }
.dfv-t-activity { background: #e8eefb; color: #385e9a; }
.dfv-t-decision { background: #fbf0da; color: #8f5c13; }
.dfv-t-document { background: #f0eafa; color: #735394; }
.dfv-t-end { background: #f6eae9; color: #9b5458; }
.dfd h2.dfv-step-title { margin: 10px 0 7px; font-size: 21px; font-weight: 650; line-height: 1.2; letter-spacing: -.04em; overflow-wrap: anywhere; }
.dfd .dfv-description { font-size: 14px; line-height: 1.55; color: #65736b; white-space: pre-wrap; overflow-wrap: anywhere; }
.dfv-properties { margin-top: 15px !important; display: grid; gap: 9px; }
.dfv-property { display: grid; grid-template-columns: minmax(53px,.6fr) minmax(80px,1fr); align-items: center; gap: 8px; }
.dfv-property dt { color: var(--dfv-muted); font-size: 13px; }
.dfv-property dd { font-size: 13px; overflow-wrap: anywhere; }
.dfv-who { display: inline-flex; align-items: center; gap: 7px; }
.dfv-avatar {
  width: 31px; height: 31px; border-radius: 50%; flex: 0 0 31px;
  display: inline-grid; place-items: center; letter-spacing: -.03em;
  font-size: 12px; line-height: 1; font-weight: 650; color: #526f5c; background: #e7efe7;
}
.dfv-avatar-sm { width: 22px; height: 22px; flex-basis: 22px; font-size: 10px; }
.dfv-status {
  display: inline-flex; align-items: center; width: fit-content; gap: 6px; font-size: 12px; font-weight: 550;
  line-height: 1.3; background: #f2f4f1; color: #516258; border-radius: 4px; padding: 3px 7px;
}
.dfv-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.dfv-group-h { min-height: 25px; margin-bottom: 8px; }
.dfd h3.dfv-heading { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 650; letter-spacing: -.015em; }
.dfv-heading > svg { color: #64786b; }
.dfv-count { min-width: 16px; text-align: center; padding: 2px 4px; border-radius: 4px; background: #f1f4f1; color: #667669; font-size: 11px; line-height: 1.2; font-weight: 600; }
.dfv-empty-inline { color: var(--dfv-muted); font-size: 13px; line-height: 1.45; }
.dfv-file { display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
.dfv-file:hover .dfv-file-name { color: #186746; text-decoration: underline; text-underline-offset: 2px; }
.dfv-file-icon {
  color: #5d786a; background: #edf3ef; border-radius: 7px; width: 37px; height: 39px; flex: 0 0 37px;
  display: inline-flex; align-items: center; justify-content: center;
}
.dfv-ext-pdf { color: #a05d52; background: #f9ece8; }
.dfv-ext-docx, .dfv-ext-txt, .dfv-ext-md { color: #5376a1; background: #edf2fa; }
.dfv-ext-xlsx, .dfv-ext-csv { color: #438163; background: #eaf4ed; }
.dfv-file-info { min-width: 0; display: grid; gap: 3px; }
.dfv-file-name { color: #30443a; font-size: 14px; font-weight: 570; line-height: 1.3; overflow-wrap: anywhere; }
.dfv-file-meta, .dfv-row-date, .dfv-muted { color: var(--dfv-muted); font-size: 12px; font-weight: 400; }
.dfv-file-compact { border: 1px solid var(--dfv-line); border-radius: 7px; padding: 7px 8px; gap: 8px; margin-top: 6px; }
.dfv-file-compact .dfv-file-icon { width: 29px; height: 31px; flex-basis: 29px; border-radius: 4px; }
.dfv-file-compact .dfv-file-name { font-size: 13px; }
.dfv-file-compact > svg:last-child { margin-left: auto; color: #708176; }
.dfv-out-line { min-height: 27px; }
.dfd .dfv-path-link, .dfd .dfv-step-link { justify-content: flex-start; color: #456558; font-size: 13px; text-align: left; overflow-wrap: anywhere; }
.dfv-path-link > span { min-width: 0; }
.dfd .dfv-path-link:hover, .dfd .dfv-step-link:hover, .dfd .dfv-text-action:hover { text-decoration: underline; text-underline-offset: 2px; }
.dfv-path-link svg { width: 12px; color: #7b8e80; }
.dfv-condition { background: #f5f1e6; color: #7f6330; border-radius: 4px; padding: 3px 5px; font-size: 11px; }
.dfd .dfv-path-edit { width: 24px; height: 24px; flex-basis: 24px; }
.dfd .dfv-text-action { color: var(--dfv-green); font-size: 13px; font-weight: 580; padding: 4px 0; }
.dfd .dfv-inspector-empty, .dfv-empty { text-align: center; color: var(--dfv-muted); display: grid; justify-items: center; gap: 9px; padding: 32px 20px; }
.dfd .dfv-inspector-empty h3 { color: var(--dfv-ink); font-size: 16px; }
.dfd .dfv-inspector-empty p { font-size: 14px; line-height: 1.5; }
.dfv-page { min-width: 0; width: 100%; height: 100%; overflow-y: auto; padding: clamp(20px,3vw,42px); font-size: 15px; }
.dfv-page-heading, .dfv-sheet, .dfv-handoff-list, .dfv-snapshot { max-width: 1030px; margin-inline: auto; }
.dfd .dfv-page-heading { padding-bottom: 23px; }
.dfd .dfv-page-heading h2 { color: #233b30; font-size: clamp(23px,2.1vw,31px); font-weight: 650; line-height: 1.2; letter-spacing: -.045em; }
.dfd .dfv-page-heading p { margin-top: 7px; color: var(--dfv-muted); line-height: 1.5; font-size: 15px; }
.dfd .dfv-sheet, .dfv-handoff-list, .dfv-snapshot { background: #fff; border: 1px solid var(--dfv-line); border-radius: 10px; }
.dfv-toolbar { display: flex; align-items: center; flex-wrap: wrap; padding: 14px 16px; gap: 8px; border-bottom: 1px solid var(--dfv-line); }
.dfv-search { display: flex; align-items: center; padding: 0 10px; gap: 7px; background: #fff; border: 1px solid #dce3dc; border-radius: 6px; color: #6a7c6d; max-width: 100%; }
.dfv-search input { background: transparent; border: none; padding: 8px 0; font-size: 14px; min-width: 80px; width: 154px; max-width: 100%; }
.dfd input::placeholder, .dfd textarea::placeholder { color: #758178; opacity: 1; }
.dfd .dfv-select {
  max-width: 100%; appearance: none; font-size: 14px; border: 1px solid #dce3dc; border-radius: 6px; padding: 8px 31px 8px 10px;
  color: #435b4c; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%235a7162' stroke-width='1.4' d='m2 4 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 10px center; cursor:pointer;
}
.dfd .dfv-action { min-height: 34px; font-size: 14px; font-weight: 570; border-radius: 6px; border: 1px solid #d4dfd5; padding: 7px 11px; background: #fff; color: #3e5848; }
.dfd .dfv-action:hover { background: #f1f6f1; }
.dfd .dfv-primary { background: #226947; border-color: #226947; color: #fff; }
.dfd .dfv-primary:not(:disabled):hover { background: #185537; border-color: #185537; }
.dfv-toolbar > .dfv-primary { margin-left: auto; }
.dfv-upload-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:14px 16px; border-bottom:1px solid var(--dfv-line); background:#f6faf7; }
.dfv-upload-label, .dfv-composer-context { display:flex; align-items:center; gap:8px; color:var(--dfv-muted); font-size:13px; }
.dfv-doc-row { display: grid; align-items: center; grid-template-columns: minmax(160px,1.5fr) minmax(120px,1fr) minmax(80px,.65fr); gap: 20px; padding: 12px 18px; }
.dfv-doc-row + .dfv-doc-row { border-top: 1px solid #eaf0e9; }
.dfv-doc-row .dfv-step-link { justify-self: start; }
.dfv-doc-labels { padding-block: 9px; background: #f7f9f6; font-size: 12px; font-weight: 600; color: #607168; }
.dfd .dfv-empty { padding: 46px 20px; }
.dfd .dfv-empty strong { color: #384e40; font-size: 16px; font-weight: 600; }
.dfd .dfv-empty p { font-size: 14px; }
.dfd .dfv-thread-head { padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--dfv-line); }
.dfd .dfv-thread-head h3, .dfd .dfv-snapshot h3 { font-size: 16px; font-weight: 620; letter-spacing: -.025em; }
.dfv-discussion > .dfv-composer { margin: 18px; }
.dfd .dfv-input { resize: vertical; width: 100%; min-height: 60px; border: 1px solid #d8e1d8; border-radius: 6px; padding: 10px; font-size: 14px; line-height: 1.5; color: #273e2f; background: white; }
.dfv-composer-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: flex-end; padding-top: 6px; }
.dfv-composer-context { margin-right: auto; }
.dfv-composer-sm .dfv-action { font-size: 12px; min-height: 27px; }
.dfd .dfv-error { color: #9b4437; font-size: 12px; display: block; margin-top: 5px; }
.dfd .dfv-error:empty { display: none; }
.dfv-comments { border-top: 1px solid var(--dfv-line); padding-inline: 18px; }
.dfv-comment { display: flex; align-items: flex-start; gap: 10px; padding: 15px 0; }
.dfv-comment + .dfv-comment { border-top: 1px solid #e9eee8; }
.dfv-comment-body { flex: 1; min-width: 0; }
.dfv-comment-head { display: flex; align-items: baseline; gap: 6px 10px; flex-wrap: wrap; }
.dfv-comment-head strong { font-size: 14px; font-weight: 630; color: #344a3e; }
.dfv-comment-head time { color: #738278; font-size: 12px; }
.dfv-comment .dfv-step-link { font-size: 12px; margin-top: 3px; }
.dfv-comment p { margin-top: 4px; color: #536559; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; font-size: 14px; }
.dfv-comment-sm { gap: 7px; padding: 7px 0 9px; }
.dfv-comment-sm .dfv-comment-head { gap: 2px 7px; }
.dfv-comment-sm .dfv-comment-head strong, .dfv-comment-sm p { font-size: 13px; }
.dfv-handoff-row { padding: 19px 20px; display: flex; align-items: center; gap: 14px; }
.dfv-handoff-row + .dfv-handoff-row { border-top: 1px solid var(--dfv-line); }
.dfv-handoff-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 9px; background: #eaf2ec; color: #4c755b; flex: 0 0 42px; }
.dfv-handoff-info { min-width: 0; flex: 1; }
.dfv-handoff-info h3 { color: #314938; font-size: 16px; letter-spacing: -.022em; font-weight: 630; }
.dfv-handoff-info p { margin-top: 4px; font-size: 14px; line-height: 1.4; color: var(--dfv-muted); overflow-wrap: anywhere; }
.dfv-handoff-row .dfv-action { flex-shrink: 0; }
.dfd .dfv-snapshot { margin-top: 18px; padding: 19px 20px; }
.dfv-snapshot-grid { display: grid; grid-template-columns: repeat(4,minmax(50px,1fr)); margin-top: 17px; }
.dfv-snapshot-grid > div { display: grid; gap: 4px; border-left: 1px solid var(--dfv-line); padding-inline: 16px; }
.dfv-snapshot-grid > div:first-child { padding-left: 0; border: none; }
.dfv-snapshot-grid strong { font-size: 23px; color: #395b45; font-weight: 580; line-height: 1.1; }
.dfv-snapshot-grid span { font-size: 13px; color: var(--dfv-muted); }
@media(max-width:720px) {
  .dfv-page { height: auto; padding: 18px 12px; }
  .dfv-toolbar { padding: 10px; }
  .dfv-toolbar > .dfv-primary { margin-left: 0; }
  .dfv-doc-row { grid-template-columns: minmax(120px,1.4fr) minmax(95px,1fr); gap: 9px; padding-inline: 12px; }
  .dfv-doc-row > :nth-child(3) { display: none; }
  .dfv-handoff-row { flex-wrap: wrap; padding:14px; gap:10px; }
  .dfv-handoff-info { flex: 1 1 175px; }
  .dfd .dfv-snapshot { padding:15px; }
  .dfv-snapshot-grid > div { padding-inline:8px; }
  .dfv-composer-context { flex-wrap:wrap; }
  .dfv-inspector { min-height: 280px; }
}

.dfv-inspector-foot { padding: 10px 20px 15px; }
.dfd .dfv-delete { font-size: 12px; color: #8a5751; padding: 5px 0; }
.dfd .dfv-delete:hover { color: #9c3d34; text-decoration: underline; text-underline-offset: 2px; }
.dfv-upload-error { flex: 1 0 100%; }

.dfv-path-docs { margin: 1px 0 7px 19px; color: #657b69; display: flex; align-items: baseline; gap: 5px; font-size: 12px; line-height: 1.4; }
.dfv-path-docs svg { align-self: flex-start; margin-top: 2px; }
.dfv-path-docs span { min-width: 0; overflow-wrap: anywhere; }
.dfv-doc-cell { min-width: 0; }
.dfv-file-routes { margin: 6px 0 0 47px; font-size: 12px; line-height: 1.45; color: #4b6c56; }
.dfv-file-routes summary { cursor: pointer; width: fit-content; border-radius: 3px; }
.dfv-file-routes summary:focus-visible { outline: 2px solid #268c67; outline-offset: 2px; }
.dfv-file-routes ul { margin: 5px 0 0; padding-left: 14px; }
.dfv-file-routes li { margin: 3px 0; overflow-wrap: anywhere; }
.dfv-route-condition { display: block; font-size: 12px; color: #6a756a; }
@media(max-width:720px) { .dfv-file-routes { margin-left: 0; } }

.dfd .dfv-path-lane { margin: 0 0 5px 19px; color: var(--dfv-muted); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.dfv-snapshot-grid.dfv-with-lanes { grid-template-columns: repeat(5,minmax(50px,1fr)); }
@media(max-width:720px) {
  .dfv-snapshot-grid.dfv-with-lanes { grid-template-columns: repeat(3,minmax(50px,1fr)); row-gap: 12px; }
  .dfv-with-lanes > div:nth-child(4) { padding-left: 0; border-left: 0; }
}
