#view-execution-schemes > .panel { min-width: 0; }
#view-execution-schemes .works-registry-toolbar { flex-wrap: wrap; overflow-x: visible; }
.execution-schemes-exon-hint { margin: 0 0 12px; padding: 9px 12px; border-radius: 8px; background: #edf4ff; color: #31527d; font-size: 13px; }
.execution-schemes-table-wrap { max-height: calc(100vh - 310px); }
.execution-schemes-table { min-width: 1360px; }
.execution-schemes-table th { position: sticky; top: 0; z-index: 2; }
.execution-scheme-folder td { padding: 0 !important; background: #eef3f8; }
.execution-scheme-folder-bar { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 6px 12px 6px calc(12px + var(--tree-depth, 0) * var(--hierarchy-indent, 22px)); font-weight: 700; }
.execution-scheme-tree-toggle { width: 27px; min-width: 27px; min-height: 27px; padding: 0; border: 1px solid #bcc9d8; border-radius: 6px; background: #fff; }
.execution-scheme-folder-name { width: min(420px, 55vw); min-height: 30px; padding: 3px 7px; border: 1px solid transparent; border-radius: 5px; background: transparent; font: inherit; text-align: left; }
.execution-scheme-folder-name:hover, .execution-scheme-folder-name:focus { border-color: #b9c8da; background: #fff; outline: none; }
.execution-scheme-folder-count { color: var(--muted, #68746e); font-size: 12px; font-weight: 500; }
.execution-scheme-folder-actions { margin-left: auto; display: flex; gap: 5px; }
.execution-scheme-folder-actions button { min-height: 30px; padding: 4px 8px; font-size: 11px; }
.execution-scheme-row:hover td { background: #f7faff; }
.execution-scheme-check { width: 42px; min-width: 42px; text-align: center; }
.execution-scheme-check input { width: 16px !important; min-width: 16px !important; min-height: 16px !important; accent-color: #315f99; }
.execution-scheme-title-cell { padding-left: calc(12px + var(--tree-depth, 0) * var(--hierarchy-indent, 22px)) !important; font-weight: 650; }
.execution-scheme-row input, .execution-scheme-row select { width: 100%; min-width: 90px; min-height: 32px; padding: 5px 7px; border: 1px solid transparent; border-radius: 5px; background: transparent; }
.execution-scheme-row input:hover, .execution-scheme-row input:focus, .execution-scheme-row select:hover, .execution-scheme-row select:focus { border-color: #b9c8da; background: #fff; outline: none; }
.execution-scheme-title-cell input { min-width: 240px; font-weight: 650; }
.execution-scheme-details-link { padding: 2px 4px; border: 0; background: transparent; color: #315f99; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.execution-scheme-row-actions { white-space: nowrap; }
.execution-scheme-row-actions button { min-width: 32px; margin-right: 4px; }
.execution-scheme-add-row td { padding: 0 !important; background: #fafcff; }
.execution-scheme-add-strip { display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 5px 12px 5px calc(12px + var(--tree-depth, 0) * var(--hierarchy-indent, 22px)); border-top: 1px solid #e5ebf2; }
.execution-scheme-add-label { color: #496782; font-size: 12px; }
.execution-scheme-add-chip { min-height: 27px; padding: 3px 10px; border: 1px solid #c9d9ef; border-radius: 999px; background: #eef5ff; color: #245798; font-size: 11px; font-weight: 650; }
.execution-scheme-add-chip:hover { background: #dfeeff; }
.execution-scheme-status { display: inline-flex; padding: 3px 8px; border-radius: 999px; background: #e8edf4; font-size: 11px; font-weight: 700; }
.execution-scheme-status.signing { background: #fff0c9; color: #7b5600; }
.execution-scheme-status.signed { background: #dff4e7; color: #17653b; }
.execution-scheme-file-state { font-size: 12px; color: #31527d; }
.execution-schemes-bulk { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 10px 0; padding: 9px 12px; border: 1px solid #bfd2ea; border-radius: 9px; background: #eef5ff; }
.execution-schemes-bulk[hidden] { display: none; }
.execution-schemes-bulk strong { margin-right: 5px; color: #244e80; font-size: 13px; }

.execution-scheme-dialog { width: min(1060px, calc(100vw - 32px)); max-width: 1060px; max-height: calc(100vh - 30px); padding: 0; overflow-x: hidden; border: 0; border-radius: 14px; }
.execution-scheme-dialog::backdrop { background: rgb(15 26 40 / 48%); }
.execution-scheme-dialog form { min-width: 0; padding: 24px; box-sizing: border-box; }
.execution-scheme-dialog form * { box-sizing: border-box; }
.execution-scheme-dialog .field, .execution-scheme-dialog input, .execution-scheme-dialog select, .execution-scheme-dialog textarea { min-width: 0; }
.execution-scheme-dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.execution-scheme-dialog-header h2, .execution-scheme-dialog-header p { margin: 0; }
.execution-scheme-dialog-header p { margin-top: 4px; color: var(--muted, #68746e); }
.execution-scheme-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.execution-scheme-card-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid #e2e8ef; }
.execution-scheme-dialog-section { margin-top: 4px; }
.execution-scheme-dialog-section[hidden], .execution-scheme-dialog details[hidden] { display: none; }
.execution-scheme-dialog-section > h3 { margin: 0 0 12px; }
.execution-scheme-card-section > h3, .execution-scheme-section-title h3 { margin: 0; }
.execution-scheme-section-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.execution-scheme-section-title small { display: block; margin-top: 4px; color: var(--muted, #68746e); }
.execution-scheme-repeat-list { display: grid; gap: 9px; }
.execution-scheme-repeat-row { display: grid; grid-template-columns: minmax(180px, 1fr) 160px 160px 36px; gap: 8px; align-items: center; padding: 10px; border-radius: 9px; background: #f5f7fa; }
.execution-scheme-repeat-row.signer { grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) 36px; }
.execution-scheme-repeat-row input { width: 100%; min-width: 0; }
.execution-scheme-repeat-row button { min-width: 34px; padding: 5px; }
.execution-scheme-files { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.execution-scheme-files.one-column { grid-template-columns: minmax(0, 1fr); }
.execution-scheme-file-card { display: grid; gap: 8px; padding: 14px; border: 1px dashed #aebed1; border-radius: 10px; background: #f8faff; }
.execution-scheme-file-card span { color: var(--muted, #68746e); font-size: 12px; overflow-wrap: anywhere; }
.execution-scheme-file-card a { width: fit-content; text-decoration: none; }
.execution-scheme-history { display: grid; gap: 6px; padding: 10px 0; font-size: 12px; }
.execution-scheme-history-item { display: flex; justify-content: space-between; gap: 16px; padding: 7px 9px; background: #f5f7fa; border-radius: 6px; }
.execution-frames-generator { display: grid; grid-template-columns: minmax(260px, 1fr) auto; align-items: end; gap: 12px; }
.execution-frames-generator .field { margin: 0; }
.execution-frames-generator button { min-height: 42px; }
.execution-scheme-sheet-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid #dfe6ee; border-radius: 9px; }
.execution-scheme-sheet-table { min-width: 1800px; }
.execution-scheme-sheet-table th { white-space: nowrap; }
.execution-scheme-sheet-table td { padding: 5px; }
.execution-scheme-sheet-table input, .execution-scheme-sheet-table select { width: 100%; min-width: 90px; min-height: 34px; padding: 5px 7px; border: 1px solid #cfd9e5; border-radius: 5px; background: #fff; }
.execution-scheme-sheet-table td:nth-child(6) input, .execution-scheme-sheet-table td:nth-child(8) input, .execution-scheme-sheet-table td:nth-child(11) input { min-width: 210px; }
.execution-scheme-sheet-table button { min-width: 32px; padding: 5px; }
.execution-scheme-dialog-actions { display: grid !important; grid-template-columns: 1fr auto auto; margin-top: 20px; }

@media (max-width: 760px) {
  .execution-scheme-dialog form { padding: 20px 16px; }
  .execution-scheme-form-grid, .execution-scheme-files { grid-template-columns: 1fr; }
  .execution-scheme-form-grid .field-span-2 { grid-column: auto; }
  .execution-scheme-section-title { align-items: flex-start; flex-direction: column; }
  .execution-scheme-repeat-row, .execution-scheme-repeat-row.signer { grid-template-columns: 1fr; }
  .execution-frames-generator { grid-template-columns: 1fr; }
  .execution-scheme-repeat-row button { justify-self: end; }
}
