@quazardous/qdadm 2.42.0 → 2.44.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/styles/qdadm.css +1 -1
- package/package.json +3 -3
- package/src/components/display/EmailPreview.vue +2 -1
- package/src/components/display/PayloadViewer.vue +2 -1
- package/src/components/editors/yaml/VanillaYamlEditor.vue +24 -7
- package/src/components/editors/yaml/YamlConfigEditor.vue +49 -1
- package/src/components/show/ShowDisplay.vue +18 -1
- package/src/components/tasks/TaskDialog.vue +1 -1
- package/src/composables/createShowFieldResolver.ts +2 -0
- package/src/composables/index.ts +1 -0
- package/src/composables/useFormatBytes.ts +20 -0
- package/src/i18n/defaults/core.en.generated.ts +17 -2
- package/src/i18n/defaults/core.en.yml +17 -2
- package/src/i18n/defaults/core.fr.generated.ts +17 -2
- package/src/i18n/defaults/core.fr.yml +17 -2
- package/src/index.ts +3 -0
- package/src/styles/_yaml-editor.scss +31 -0
- package/src/tasks/taskStore.ts +3 -1
- package/src/tasks/taskUi.ts +23 -3
- package/src/utils/formatters.ts +27 -8
- package/src/utils/index.ts +1 -0
package/dist/styles/qdadm.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--fad-text-primary: var(--p-text-color);--fad-text-secondary: var(--p-text-muted-color);--fad-text-disabled: var(--p-surface-400);--fad-text-inverse: var(--p-surface-0);--fad-surface-ground: var(--p-surface-ground);--fad-surface-card: var(--p-surface-card);--fad-surface-overlay: var(--p-surface-overlay);--fad-surface-border: var(--p-surface-200);--fad-surface-hover: var(--p-surface-100);--fad-primary: var(--p-primary-color);--fad-primary-hover: var(--p-primary-600);--fad-primary-text: var(--p-primary-contrast-color);--fad-success: var(--p-green-500);--fad-warning: var(--p-orange-500);--fad-danger: var(--p-red-500);--fad-info: var(--p-blue-500);--fad-space-2xs: 0.125rem;--fad-space-xs: 0.25rem;--fad-space-sm: 0.375rem;--fad-space-md: 0.75rem;--fad-space-lg: 1rem;--fad-space-xl: 1.5rem;--fad-space-2xl: 2rem;--fad-font-family: Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;--fad-font-size-2xs: 0.6875rem;--fad-font-size-xs: 0.75rem;--fad-font-size-sm: 0.875rem;--fad-font-size-md: 0.9375rem;--fad-font-size-lg: 1rem;--fad-font-size-xl: 1.125rem;--fad-font-size-2xl: 1.25rem;--fad-font-weight-light: 300;--fad-font-weight-normal: 400;--fad-font-weight-medium: 500;--fad-font-weight-semibold: 600;--fad-font-weight-bold: 700;--fad-line-height-tight: 1.25;--fad-line-height-normal: 1.5;--fad-line-height-relaxed: 1.75;--fad-border-width: 1px;--fad-border-color: var(--fad-surface-border);--fad-radius-sm: 0.25rem;--fad-radius-md: 0.375rem;--fad-radius-lg: 0.5rem;--fad-radius-xl: 0.75rem;--fad-radius-full: 9999px;--fad-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);--fad-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);--fad-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);--fad-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);--fad-transition-instant: 50ms ease;--fad-transition-fast: 100ms ease;--fad-transition-normal: 150ms ease;--fad-transition-slow: 200ms ease;--fad-z-dropdown: 1000;--fad-z-sticky: 1020;--fad-z-fixed: 1030;--fad-z-modal-backdrop: 1040;--fad-z-modal: 1050;--fad-z-popover: 1060;--fad-z-tooltip: 1070;--fad-sidebar-width: 15rem;--fad-sidebar-width-tablet: 13rem;--fad-sidebar-width-collapsed: 2.5rem;--fad-header-height: 2.75rem;--fad-content-max-width: 87.5rem;--fad-nav-item-height: 2rem;--fad-nav-item-padding-x: 0.75rem;--fad-nav-item-padding-y: 0.5rem;--fad-nav-icon-size: 1rem;--fad-nav-section-gap: 0.5rem}.dark-mode{--fad-surface-border: var(--p-surface-700);--fad-surface-hover: var(--p-surface-800);--fad-text-disabled: var(--p-surface-500)}.d-none{display:none !important}.d-block{display:block !important}.d-flex{display:flex !important}.d-inline-flex{display:inline-flex !important}.d-grid{display:grid !important}.flex-row{flex-direction:row}.flex-column{flex-direction:column}.flex-wrap{flex-wrap:wrap}.flex-1{flex:1}.flex-auto{flex:auto}.flex-none{flex:none}.items-start{align-items:flex-start}.items-center{align-items:center}.items-end{align-items:flex-end}.items-stretch{align-items:stretch}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.gap-xs{gap:.25rem}.gap-sm{gap:.375rem}.gap-md{gap:.75rem}.gap-lg{gap:1rem}.gap-xl{gap:1.5rem}.w-full{width:100% !important}.w-auto{width:auto !important}.w-50{width:50%}.max-w-full{max-width:100%}.m-0{margin:0}.m-auto{margin:auto}.mt-0{margin-top:0}.mt-xs{margin-top:.25rem}.mt-sm{margin-top:.375rem}.mt-md{margin-top:.75rem}.mt-lg{margin-top:1rem}.mt-xl{margin-top:1.5rem}.mb-0{margin-bottom:0}.mb-xs{margin-bottom:.25rem}.mb-sm{margin-bottom:.375rem}.mb-md{margin-bottom:.75rem}.mb-lg{margin-bottom:1rem}.mb-xl{margin-bottom:1.5rem}.ml-auto{margin-left:auto}.mr-auto{margin-right:auto}.mx-auto{margin-left:auto;margin-right:auto}.p-0{padding:0}.p-xs{padding:.25rem}.p-sm{padding:.375rem}.p-md{padding:.75rem}.p-lg{padding:1rem}.p-xl{padding:1.5rem}.px-md{padding-left:.75rem;padding-right:.75rem}.py-md{padding-top:.75rem;padding-bottom:.75rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-xs{font-size:.75rem}.text-sm{font-size:.875rem}.text-md{font-size:.9375rem}.text-lg{font-size:1rem}.text-xl{font-size:1.125rem}.text-2xl{font-size:1.25rem}.font-normal{font-weight:400}.font-medium{font-weight:500}.font-semibold{font-weight:600}.font-bold{font-weight:700}.text-primary{color:var(--fad-text-primary)}.text-secondary{color:var(--fad-text-secondary)}.text-muted{color:var(--fad-text-secondary)}.text-success{color:var(--fad-success)}.text-warning{color:var(--fad-warning)}.text-danger{color:var(--fad-danger)}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.visible{visibility:visible}.invisible{visibility:hidden}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-100{opacity:1}.border{border:1px solid var(--fad-border-color)}.border-0{border:none}.border-top{border-top:1px solid var(--fad-border-color)}.border-bottom{border-bottom:1px solid var(--fad-border-color)}.rounded-sm{border-radius:.25rem}.rounded-md{border-radius:.375rem}.rounded-lg{border-radius:.5rem}.rounded-full{border-radius:9999px}.cursor-pointer{cursor:pointer}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.overflow-hidden{overflow:hidden}.overflow-auto{overflow:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-auto{overflow-x:auto}.relative{position:relative}.absolute{position:absolute}.fixed{position:fixed}.sticky{position:sticky}.fad-card{background:var(--fad-surface-card);border:1px solid var(--fad-border-color);border-radius:.5rem;padding:1rem}.fad-card-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem;padding-bottom:.75rem;border-bottom:1px solid var(--fad-border-color)}.fad-card-title{font-size:1rem;font-weight:600;color:var(--fad-text-primary);margin:0}.fad-card-body{color:var(--fad-text-primary)}.fad-card-footer{display:flex;align-items:center;justify-content:flex-end;gap:.375rem;margin-top:.75rem;padding-top:.75rem;border-top:1px solid var(--fad-border-color)}.fad-form-field{display:flex;flex-direction:column;gap:.375rem;margin-bottom:1rem}.fad-form-label{font-weight:500;color:var(--fad-text-primary);font-size:.875rem}.fad-form-label-required::after{content:" *";color:var(--fad-danger)}.fad-form-help{font-size:.75rem;color:var(--fad-text-secondary)}.fad-form-error{font-size:.75rem;color:var(--fad-danger)}.fad-form-row{display:grid;grid-template-columns:repeat(auto-fit, minmax(250px, 1fr));gap:.75rem}.fad-form-section-title{font-size:1rem;font-weight:600;color:var(--fad-text-primary);margin:1.5rem 0 .75rem 0;padding-bottom:.375rem;border-bottom:1px solid var(--fad-border-color)}.fad-form-section-title:first-child{margin-top:0}.fad-form-field--dirty{position:relative}.fad-form-field--dirty::before{content:"";position:absolute;left:-8px;top:0;bottom:0;width:3px;background:var(--fad-warning);border-radius:9999px}.fad-form-field--error .fad-form-label{color:var(--fad-danger)}.fad-page-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem;padding-bottom:.75rem}.fad-page-title{font-size:1.25rem;font-weight:600;color:var(--fad-text-primary);margin:0}.fad-page-actions{display:flex;gap:.375rem}.fad-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2rem .75rem;text-align:center;color:var(--fad-text-secondary)}.fad-empty-state-icon{font-size:3rem;opacity:.5;margin-bottom:.75rem}.fad-empty-state-title{font-size:1rem;font-weight:500;color:var(--fad-text-primary);margin:0 0 .375rem 0}.fad-empty-state-description{font-size:.875rem;max-width:400px}.fad-loading{display:flex;align-items:center;justify-content:center;padding:2rem}.fad-loading-spinner{animation:fad-spin 1s linear infinite}@keyframes fad-spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.fad-badge{display:inline-flex;align-items:center;padding:.25rem .375rem;font-size:.75rem;font-weight:500;border-radius:9999px;text-transform:uppercase;letter-spacing:.025em}.fad-badge--success{background:var(--p-green-100);color:var(--p-green-700)}.fad-badge--warning{background:var(--p-orange-100);color:var(--p-orange-700)}.fad-badge--danger{background:var(--p-red-100);color:var(--p-red-700)}.fad-badge--info{background:var(--p-blue-100);color:var(--p-blue-700)}.fad-badge--neutral{background:var(--p-surface-100);color:var(--p-surface-600)}.fad-tabs{display:flex;gap:.25rem;border-bottom:1px solid var(--fad-border-color);margin-bottom:1rem}.fad-tab{display:flex;align-items:center;gap:.25rem;padding:.375rem .75rem;font-size:.875rem;font-weight:500;color:var(--fad-text-secondary);background:rgba(0,0,0,0);border:none;border-bottom:2px solid rgba(0,0,0,0);cursor:pointer;transition:all 100ms ease;margin-bottom:-1px}.fad-tab:hover{color:var(--fad-text-primary)}.fad-tab--active{color:var(--fad-primary);border-bottom-color:var(--fad-primary)}.fad-tab-count{background:var(--p-surface-100);color:var(--fad-text-secondary);padding:.125rem .375rem;border-radius:9999px;font-size:.75rem}.fad-tab--active .fad-tab-count{background:var(--p-primary-100);color:var(--fad-primary)}.fad-page-nav{display:flex;justify-content:space-between;align-items:center;margin-bottom:.375rem}.fad-page-nav-breadcrumb{flex:1}.fad-page-nav-links{display:flex;align-items:center;gap:.375rem;font-size:.875rem}.fad-page-nav-separator{color:var(--fad-text-secondary)}.fad-page-nav-link{color:var(--fad-primary);text-decoration:none;transition:color 100ms ease}.fad-page-nav-link:hover{color:var(--fad-primary-hover);text-decoration:underline}.fad-page-nav-link--active{color:var(--fad-text-primary);font-weight:500;pointer-events:none}*{margin:0;padding:0;box-sizing:border-box}html,body,#app{height:100%;font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif}input::placeholder,textarea::placeholder,.p-inputtext::placeholder,.p-autocomplete-input::placeholder,.p-textarea::placeholder,.p-select-label.p-placeholder,.p-dropdown-label.p-placeholder{color:#a0aec0 !important;opacity:1}.page-content{flex:1;padding:1rem}.page-header{margin-bottom:1rem}.page-title{font-size:1.25rem;font-weight:600;color:var(--p-surface-900)}.header-actions{display:flex;gap:.75rem;align-items:center}.p-tabpanels{padding-top:.75rem}.p-tabpanel>.form-field:first-child,.p-tabpanel>.form-row:first-child,.p-tabpanel>.form-grid:first-child{margin-top:.375rem}.info-block{background:var(--p-surface-50);padding:1rem;border-radius:.5rem}.info-block-title{margin:0 0 .75rem 0;font-size:.9375rem;color:var(--p-surface-600)}.info-block-title i{margin-right:.375rem}.info-label{font-weight:500;color:var(--p-surface-500);display:block;margin-bottom:.25rem}.info-label-sm{font-size:.75rem;font-weight:600;color:var(--p-surface-500);text-transform:uppercase;display:block;margin-bottom:.25rem}.value-lg{font-size:1.25rem;font-weight:600}.accent-block{background:var(--p-surface-50);border-left:3px solid var(--p-primary-500);padding:.75rem;border-radius:.25rem}.code-block{word-break:break-all;font-family:ui-monospace,"Cascadia Code","Source Code Pro",Menlo,Consolas,monospace;background:var(--p-surface-100);padding:.75rem;border-radius:.25rem}.section-header{display:flex;align-items:center;gap:.375rem;margin-bottom:.75rem}.section-header h3{margin:0;font-size:.9375rem;font-weight:600}.section-header i{color:var(--p-primary-500)}.section-description{color:var(--p-surface-500);font-size:.875rem;margin-bottom:.75rem}.section-title{margin:0 0 .75rem 0;font-size:.9375rem;font-weight:600;color:var(--p-surface-700)}.section-title--separator{border-top:1px solid var(--p-surface-200);padding-top:1rem}.section-title i{margin-right:.375rem}.image-gallery{display:grid;grid-template-columns:repeat(auto-fill, minmax(200px, 1fr));gap:.75rem}.image-card{position:relative;border-radius:.5rem;overflow:hidden;border:1px solid var(--p-surface-200)}.image-card img{width:100%;aspect-ratio:16/9;object-fit:cover}.image-card--clickable{cursor:pointer;transition:border-color 150ms ease,box-shadow 150ms ease}.image-card--clickable:hover{border-color:var(--p-primary-300);box-shadow:0 2px 8px rgba(0,0,0,.1)}.image-caption{padding:.375rem;background:var(--p-surface-50);font-size:.75rem;color:var(--p-surface-600)}.info-row{display:flex;justify-content:space-between;align-items:center;padding:.375rem 0;border-bottom:1px solid var(--p-surface-100)}.info-row:last-child{border-bottom:none}.layout-breadcrumb{padding:.75rem 1rem;background:var(--p-surface-0, white);border-bottom:1px solid var(--p-surface-200, #e2e8f0)}.layout-breadcrumb .p-breadcrumb-list{margin:0;padding:0}.breadcrumb-link{display:flex;align-items:center;gap:.375rem;color:var(--p-primary-600, #2563eb);text-decoration:none;font-size:.875rem}.breadcrumb-link:hover{text-decoration:underline}.breadcrumb-link i{font-size:.875rem}.breadcrumb-current{display:flex;align-items:center;gap:.375rem;color:var(--p-surface-600, #475569);font-size:.875rem}.breadcrumb-current i{font-size:.875rem}.breadcrumb{margin-bottom:.5rem}.breadcrumb-list{display:flex;align-items:center;gap:.5rem;list-style:none;margin:0;padding:0;font-size:.875rem}.breadcrumb-item{display:flex;align-items:center;gap:.5rem}.breadcrumb-item.is-current .breadcrumb-text{color:var(--p-text-color, #333);font-weight:500}.breadcrumb-separator{font-size:.75rem;color:var(--p-text-muted-color, #888)}.breadcrumb-item .breadcrumb-link{display:flex;align-items:center;gap:.375rem;color:var(--p-primary-color, #3b82f6);text-decoration:none;transition:color .2s}.breadcrumb-item .breadcrumb-link:hover{color:var(--p-primary-hover-color, #2563eb);text-decoration:underline}.breadcrumb-item .breadcrumb-link i{font-size:.875rem}.breadcrumb-text{display:flex;align-items:center;gap:.375rem;color:var(--p-text-muted-color, #888)}.form-grid{display:grid;grid-template-columns:repeat(2, 1fr);gap:1rem;padding:.75rem 0}@media(max-width: 767px){.form-grid{grid-template-columns:1fr}}.form-row{display:grid;grid-template-columns:repeat(2, 1fr);gap:1rem;align-items:end}.form-row-3{display:grid;grid-template-columns:repeat(3, 1fr);gap:.75rem;align-items:end}.form-row.metadata{display:grid;grid-template-columns:repeat(4, 1fr);gap:.75rem;padding:.75rem;background:var(--p-surface-50);border-radius:.5rem;align-items:end}.form-row.checkboxes{display:flex;gap:3rem}.form-row+.form-field,.form-field+.form-row{margin-top:1.25rem}.form-field{display:flex;flex-direction:column;gap:.375rem}.form-field label{font-weight:500;color:var(--p-surface-700)}.form-field small{color:var(--p-surface-500);font-size:.85rem}.form-field .p-inputtext,.form-field .p-textarea,.form-field .p-select,.form-field .p-multiselect,.form-field .p-inputwrapper,.form-field input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),.form-field textarea{width:100% !important;box-sizing:border-box}.form-field>input[type=checkbox],.form-field>input[type=radio]{align-self:flex-start}.form-field .p-textarea,.form-field textarea{min-height:100px;resize:vertical}.meta-item{display:flex;flex-direction:column;gap:.25rem}.meta-item label{font-size:.85rem;color:var(--p-surface-500)}.meta-item span{font-weight:500}.toggle-field{flex-direction:row;align-items:center;gap:.75rem}.toggle-field label{min-width:120px}.checkbox-field{display:flex;align-items:center;gap:.375rem}.checkbox-field label{margin:0;cursor:pointer}.url-field,.lock-field,.envelope-field{display:flex;gap:.375rem;align-items:center}.url-field input,.lock-field input,.envelope-field input{flex:1}.field-hint,.form-hint{font-size:.8rem;color:var(--p-surface-400);margin-top:.25rem;display:block}.field-error{font-size:.8rem;color:var(--p-red-500);margin-top:.25rem;display:block}.editor-box{border:1px solid var(--p-surface-200);border-radius:.5rem;padding:.75rem;background:var(--p-surface-50)}.editor-chips{display:flex;flex-wrap:wrap;gap:.375rem;margin-bottom:.75rem;padding-bottom:.75rem;border-bottom:1px solid var(--p-surface-200)}.chip-code{font-family:ui-monospace,"Cascadia Code","Source Code Pro",Menlo,Consolas,monospace;font-size:.875rem}.chip-namespace{color:var(--p-surface-500)}.chip-action{color:var(--p-primary-600);font-weight:500}.chip-wildcard{color:var(--p-orange-500);font-weight:700}.info-grid{display:grid;grid-template-columns:repeat(2, 1fr);gap:.75rem}.info-grid>div{display:flex;flex-direction:column;gap:.25rem}.info-grid label{font-size:.85rem;color:var(--p-surface-500)}.info-item{display:flex;flex-direction:column;gap:.25rem}.info-item label{font-size:.75rem;font-weight:600;color:var(--p-surface-500);text-transform:uppercase}.info-value{font-size:.9rem}.timestamps-grid{display:grid;grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));gap:.75rem}.timestamps-grid--separator{padding-top:.75rem;border-top:1px solid var(--p-surface-200)}.timestamp{display:flex;flex-direction:column;gap:.25rem}.timestamp label{font-size:.75rem;color:var(--text-color-secondary);text-transform:uppercase}.form-dirty-indicator{display:flex;align-items:center;gap:.375rem;padding:.375rem .75rem;background:color-mix(in srgb, var(--p-orange-100) 50%, transparent);border:1px solid var(--p-orange-300);border-radius:.375rem;color:var(--p-orange-700);font-size:.875rem;margin-bottom:.75rem}.form-dirty-indicator i{color:var(--p-orange-500)}.form-field.field-dirty .p-inputtext,.form-field.field-dirty .p-select,.form-field.field-dirty .p-textarea,.form-field.field-dirty .p-password input,.form-field.field-dirty .p-multiselect,.form-field.field-dirty .p-calendar input,.form-field.field-dirty .p-inputnumber input,.form-field.field-dirty .p-dropdown{border-color:#f97316 !important;box-shadow:0 0 0 1px #f97316 !important}.form-card{background:var(--p-surface-0);padding:1.5rem;border-radius:.5rem}.config-intro{display:flex;align-items:flex-start;gap:.75rem;padding:.75rem;background:var(--p-surface-50);border-radius:.5rem;margin-bottom:1rem}.config-intro i{font-size:1.25rem;color:var(--p-primary-500);margin-top:.125rem}.config-field{margin-bottom:1rem}.form-actions{display:flex;justify-content:space-between;align-items:center;margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid var(--p-surface-200)}.form-actions-left{display:flex;align-items:center;gap:.5rem}.dirty-indicator{color:var(--p-orange-500);font-size:.5rem;animation:pulse 2s infinite}@keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}.field-invalid input,.field-invalid textarea,.field-invalid .p-inputtext,.field-invalid .p-select,.field-invalid .p-dropdown{border-color:var(--p-red-500)}.field-invalid input:focus,.field-invalid textarea:focus,.field-invalid .p-inputtext:focus,.field-invalid .p-select:focus,.field-invalid .p-dropdown:focus{box-shadow:0 0 0 1px var(--p-red-500)}.form-page{display:flex;flex-direction:column;gap:1rem}.form-error-message{margin:1rem 0}.validation-summary{margin-bottom:1rem}.validation-errors{margin:0;padding-left:1.5rem}.validation-errors li{margin:.25rem 0}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));gap:1rem;margin-bottom:1.5rem}.stat-card{background:var(--p-surface-0);border-radius:.5rem;padding:1rem;border:1px solid var(--p-surface-200)}.stat-card-title{font-size:.875rem;color:var(--p-surface-500);margin-bottom:.375rem}.stat-card-value{font-size:2rem;font-weight:600;color:var(--p-surface-900)}.stat-card-subtitle{font-size:.75rem;color:var(--p-surface-400);margin-top:.25rem}.loading-state{display:flex;justify-content:center;align-items:center;padding:2rem}.loading-state--inline{padding:.75rem;gap:.75rem;color:var(--p-text-muted-color)}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:2rem;color:var(--text-color-secondary)}.empty-state--sm{padding:1rem}.empty-state--lg{padding:3rem}.empty-state-icon{font-size:2rem;margin-bottom:.5rem;opacity:.5}.empty-state--sm .empty-state-icon{font-size:1.5rem}.empty-state--lg .empty-state-icon{font-size:3rem;margin-bottom:1rem}.empty-state-title{margin:0 0 .25rem 0;font-weight:500;color:var(--text-color-secondary)}.empty-state--lg .empty-state-title{font-size:1.1rem}.empty-state-description{opacity:.7;max-width:300px}.empty-state-actions{margin-top:1rem}.error-message{background:var(--p-red-50);border:1px solid var(--p-red-200);border-radius:.375rem;padding:.75rem .75rem;color:var(--p-red-700);font-family:ui-monospace,"Cascadia Code","Source Code Pro",Menlo,Consolas,monospace;font-size:.85rem;white-space:pre-wrap;word-break:break-word}.error-content{background:var(--p-red-50);color:var(--p-red-700);padding:.75rem;border-radius:.5rem;overflow-x:auto;margin:0;font-size:.85rem;white-space:pre-wrap}:root[data-theme=dark] .error-message,:root[data-theme=dark] .error-content{background:rgba(239,68,68,.1);color:var(--p-red-400);border-color:var(--p-red-900)}.p-datatable .p-datatable-tbody>tr>td{padding:.5rem .75rem !important}.p-datatable .p-datatable-thead>tr>th{padding:.625rem .75rem !important}.table-actions{display:flex;gap:.25rem;justify-content:flex-start}.text-muted{color:var(--p-surface-400)}.status-tags,.type-tags{display:flex;gap:.25rem;flex-wrap:wrap}.external-link{display:flex;align-items:center;gap:.375rem;color:var(--p-primary-500);text-decoration:none}.external-link:hover{text-decoration:underline}.external-link i{font-size:.75rem;opacity:.6}.domain-cell{display:flex;align-items:center}.domain-link{display:flex;align-items:center;gap:.375rem;color:var(--p-primary-500);text-decoration:none}.domain-link:hover{text-decoration:underline}.domain-link i{font-size:.75rem;opacity:.6}.domain-tags{display:flex;gap:.25rem}.clickable-cell{cursor:pointer;color:var(--p-primary-color)}.clickable-cell:hover{text-decoration:underline}.entity-link{display:flex;align-items:center;gap:.375rem;text-decoration:none;color:var(--p-primary-color)}.entity-link:hover{text-decoration:underline}.entity-type{font-weight:500}.entity-id{font-size:.75rem;background:var(--p-surface-100);padding:.15rem .35rem;border-radius:3px}.tags-preview{display:flex;gap:.25rem;flex-wrap:wrap}.tags-preview .p-tag{font-size:.75rem}.p-role-label,.p-permission-label{display:inline-flex;align-items:center;background:rgba(0,0,0,0);font-size:.75rem;font-weight:normal !important;padding:.25rem .75rem;border-radius:var(--p-tag-border-radius, 6px);white-space:nowrap}.p-role-label--pill,.p-permission-label--pill{border-radius:999px}.p-role-label--more,.p-permission-label--more{border-style:dashed}.p-role-label{border:1px solid var(--p-blue-500);color:var(--p-blue-600)}.p-permission-label{border:1px solid var(--p-surface-400);color:var(--p-surface-600)}.p-role-labels,.p-permission-labels{display:flex;flex-wrap:wrap;gap:.25rem}.p-chip{background:none !important;border:1px solid var(--p-surface-300) !important;color:var(--p-surface-600) !important;font-size:.75rem !important;padding:.2rem .6rem !important}.datatable-row-clickable .p-datatable-tbody>tr{cursor:pointer}.datatable-row-clickable .p-datatable-tbody>tr:active{background:var(--p-primary-50) !important}.filter-bar{display:flex;justify-content:space-between;align-items:center;gap:.75rem;margin-bottom:.75rem}.filter-bar-left{display:flex;align-items:center;gap:.75rem}.filter-bar-right{display:flex;align-items:center;gap:.75rem}.p-select.filter-default,.p-autocomplete.filter-default .p-inputtext{border-color:var(--p-primary-400, #60a5fa) !important;box-shadow:0 0 0 1px var(--p-primary-400, #60a5fa) !important}.p-select.filter-modified,.p-autocomplete.filter-modified .p-inputtext{border-color:#f97316 !important;box-shadow:0 0 0 1px #f97316 !important}.p-select.filter-active,.p-inputtext.filter-active{border-color:#f97316 !important;box-shadow:0 0 0 1px #f97316 !important}.filter-bar .p-button,.filter-bar-left .p-button,.flex.align-items-end .p-button,.flex.items-end .p-button{height:2.5rem;align-self:flex-end;margin-bottom:0}.spinner-lg{font-size:2rem}.spinner-md{font-size:1.5rem}.card{background:var(--p-surface-0);border-radius:.5rem;padding:1rem;border:1px solid var(--p-surface-200)}.info-card{background:var(--p-surface-50);padding:.75rem;border-radius:.5rem}.card-title{display:flex;align-items:center;justify-content:space-between}.card h3,.card-heading{margin:0 0 .75rem;font-size:.9375rem;font-weight:600;color:var(--p-surface-700)}.warning-card{background:var(--p-yellow-50);padding:.75rem;border-radius:.5rem;border:1px solid var(--p-yellow-200)}.warning-card i{color:var(--p-yellow-600)}.warning-card span{margin-left:.375rem;color:var(--p-yellow-700)}.span-full{grid-column:1/-1}.grid{display:grid}.grid-cols-2{grid-template-columns:repeat(2, 1fr)}.grid-cols-3{grid-template-columns:repeat(3, 1fr)}.text-uppercase{text-transform:uppercase}.text-center{text-align:center}.monospace{font-family:ui-monospace,"Cascadia Code","Source Code Pro",Menlo,Consolas,monospace}.break-all{word-break:break-all}.w-full{width:100% !important}.mb-0{margin-bottom:0}.mb-1{margin-bottom:.375rem}.mb-2{margin-bottom:.75rem}.mb-3{margin-bottom:1rem}.mt-0{margin-top:0}.mt-1{margin-top:.375rem}.mt-2{margin-top:.75rem}.p-2{padding:.75rem}.p-3{padding:1rem}.pt-2{padding-top:.75rem}.gap-1{gap:.375rem}.gap-2{gap:.75rem}.gap-3{gap:1rem}.flex{display:flex}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.flex-1{flex:1}.alert-warning{background:var(--p-yellow-50);padding:.75rem;margin-bottom:.75rem;border-radius:.5rem;border:1px solid var(--p-yellow-200)}.alert-warning-icon{color:var(--p-yellow-600)}.alert-warning-text{margin-left:.375rem;color:var(--p-yellow-700)}.alert-info{color:var(--p-orange-600);margin-bottom:.75rem}.key-info-panel{background:var(--p-surface-50);padding:.75rem;margin-bottom:.75rem;border-radius:.5rem}.key-info-grid{display:flex;flex-wrap:wrap;gap:1.5rem;align-items:center}.key-info-item small{color:var(--p-surface-500);display:block}.info-banner{margin-top:.75rem;margin-bottom:.75rem}.info-banner:first-child{margin-top:0}.info-banner .p-message-content{padding:.375rem .75rem}.info-banner .p-message-icon{display:none}.info-banner-content{display:flex;align-items:center;gap:.625rem}.info-banner-icon{font-size:1.125rem;flex-shrink:0}.info-banner-text{flex:1}.info-banner-text strong{font-weight:600}.p-toast.p-toast-top-right,.p-toast.p-toast-top-left,.p-toast.p-toast-top-center{top:calc(var(--qd-banner-height, 0px) + 20px) !important}.p-button{background:rgba(0,0,0,0) !important;border:1px solid var(--p-primary-500) !important;color:var(--p-primary-500) !important;transition:background-color .2s,border-color .2s,color .2s}.p-button:hover:not(:disabled){background:var(--p-primary-50) !important;border-color:var(--p-primary-600) !important;color:var(--p-primary-600) !important}.p-button:focus{box-shadow:0 0 0 2px var(--p-surface-0),0 0 0 4px var(--p-primary-200)}.p-button:disabled{opacity:.6;cursor:not-allowed}.p-button-secondary{border-color:var(--p-surface-400) !important;color:var(--p-surface-600) !important}.p-button-secondary:hover:not(:disabled){background:var(--p-surface-100) !important;border-color:var(--p-surface-500) !important;color:var(--p-surface-700) !important}.p-button-secondary:focus{box-shadow:0 0 0 2px var(--p-surface-0),0 0 0 4px var(--p-surface-200)}.p-button-success{border-color:var(--p-green-500) !important;color:var(--p-green-600) !important}.p-button-success:hover:not(:disabled){background:var(--p-green-50) !important;border-color:var(--p-green-600) !important;color:var(--p-green-700) !important}.p-button-success:focus{box-shadow:0 0 0 2px var(--p-surface-0),0 0 0 4px var(--p-green-200)}.p-button-warn{border-color:var(--p-orange-500) !important;color:var(--p-orange-600) !important}.p-button-warn:hover:not(:disabled){background:var(--p-orange-50) !important;border-color:var(--p-orange-600) !important;color:var(--p-orange-700) !important}.p-button-warn:focus{box-shadow:0 0 0 2px var(--p-surface-0),0 0 0 4px var(--p-orange-200)}.p-button-danger{border-color:var(--p-red-500) !important;color:var(--p-red-600) !important}.p-button-danger:hover:not(:disabled){background:var(--p-red-50) !important;border-color:var(--p-red-600) !important;color:var(--p-red-700) !important}.p-button-danger:focus{box-shadow:0 0 0 2px var(--p-surface-0),0 0 0 4px var(--p-red-200)}.p-button-info{border-color:var(--p-blue-500) !important;color:var(--p-blue-600) !important}.p-button-info:hover:not(:disabled){background:var(--p-blue-50) !important;border-color:var(--p-blue-600) !important;color:var(--p-blue-700) !important}.p-button-info:focus{box-shadow:0 0 0 2px var(--p-surface-0),0 0 0 4px var(--p-blue-200)}.p-button-contrast{border-color:var(--p-surface-900) !important;color:var(--p-surface-900) !important}.p-button-contrast:hover:not(:disabled){background:var(--p-surface-900) !important;border-color:var(--p-surface-900) !important;color:var(--p-surface-0) !important}.p-button-filled,.p-button.p-button-raised{background:var(--p-primary-500) !important;border-color:var(--p-primary-500) !important;color:#fff !important}.p-button-filled:hover:not(:disabled),.p-button.p-button-raised:hover:not(:disabled){background:var(--p-primary-600) !important;border-color:var(--p-primary-600) !important;color:#fff !important}.p-button-filled.p-button-secondary,.p-button.p-button-raised.p-button-secondary{background:var(--p-surface-500) !important;border-color:var(--p-surface-500) !important;color:#fff !important}.p-button-filled.p-button-secondary:hover:not(:disabled),.p-button.p-button-raised.p-button-secondary:hover:not(:disabled){background:var(--p-surface-600) !important;border-color:var(--p-surface-600) !important}.p-button-filled.p-button-success,.p-button.p-button-raised.p-button-success{background:var(--p-green-500) !important;border-color:var(--p-green-500) !important;color:#fff !important}.p-button-filled.p-button-success:hover:not(:disabled),.p-button.p-button-raised.p-button-success:hover:not(:disabled){background:var(--p-green-600) !important;border-color:var(--p-green-600) !important}.p-button-filled.p-button-warn,.p-button.p-button-raised.p-button-warn{background:var(--p-orange-500) !important;border-color:var(--p-orange-500) !important;color:#fff !important}.p-button-filled.p-button-warn:hover:not(:disabled),.p-button.p-button-raised.p-button-warn:hover:not(:disabled){background:var(--p-orange-600) !important;border-color:var(--p-orange-600) !important}.p-button-filled.p-button-danger,.p-button.p-button-raised.p-button-danger{background:var(--p-red-500) !important;border-color:var(--p-red-500) !important;color:#fff !important}.p-button-filled.p-button-danger:hover:not(:disabled),.p-button.p-button-raised.p-button-danger:hover:not(:disabled){background:var(--p-red-600) !important;border-color:var(--p-red-600) !important}.p-button-text{background:rgba(0,0,0,0) !important;border-color:rgba(0,0,0,0) !important}.p-button-text:hover:not(:disabled){background:var(--p-primary-50) !important;border-color:rgba(0,0,0,0) !important}.p-button-text.p-button-secondary:hover:not(:disabled){background:var(--p-surface-100) !important}.p-button-text.p-button-success:hover:not(:disabled){background:var(--p-green-50) !important}.p-button-text.p-button-warn:hover:not(:disabled){background:var(--p-orange-50) !important}.p-button-text.p-button-danger:hover:not(:disabled){background:var(--p-red-50) !important}.p-button-link{background:rgba(0,0,0,0) !important;border-color:rgba(0,0,0,0) !important;color:var(--p-primary-500) !important;text-decoration:none}.p-button-link:hover:not(:disabled){background:rgba(0,0,0,0) !important;border-color:rgba(0,0,0,0) !important;text-decoration:underline}.p-button-icon-only{background:unset !important;border:unset !important;color:unset !important}.p-button-icon-only:hover:not(:disabled){background:unset !important;border-color:unset !important;color:unset !important}.p-button-sm{font-size:.875rem;padding:.375rem .75rem}.p-button-lg{font-size:1rem;padding:.75rem 1.25rem}.p-tag{background:rgba(0,0,0,0) !important;border:1px solid var(--p-primary-500) !important;color:var(--p-primary-500) !important;font-weight:normal !important;white-space:nowrap}.p-tag-secondary{background:rgba(0,0,0,0) !important;border-color:var(--p-surface-400) !important;color:var(--p-surface-600) !important}.p-tag-success{background:rgba(0,0,0,0) !important;border-color:var(--p-green-500) !important;color:var(--p-green-600) !important}.p-tag-warn{background:rgba(0,0,0,0) !important;border-color:var(--p-orange-500) !important;color:var(--p-orange-600) !important}.p-tag-danger{background:rgba(0,0,0,0) !important;border-color:var(--p-red-500) !important;color:var(--p-red-600) !important}.p-tag-info{background:rgba(0,0,0,0) !important;border-color:var(--p-blue-500) !important;color:var(--p-blue-600) !important}.p-tag-contrast{background:rgba(0,0,0,0) !important;border-color:var(--p-surface-900) !important;color:var(--p-surface-900) !important}.p-splitbutton .p-splitbutton-defaultbutton{border:1px solid var(--p-primary-500) !important;border-right:none !important;border-top-right-radius:0 !important;border-bottom-right-radius:0 !important;background:rgba(0,0,0,0) !important;color:var(--p-primary-500) !important}.p-splitbutton .p-splitbutton-defaultbutton:hover:not(:disabled){background:var(--p-primary-50) !important}.p-splitbutton .p-splitbutton-dropdown{border:1px solid var(--p-primary-500) !important;border-left:none !important;border-top-left-radius:0 !important;border-bottom-left-radius:0 !important;background:rgba(0,0,0,0) !important;color:var(--p-primary-500) !important}.p-splitbutton .p-splitbutton-dropdown:hover:not(:disabled){background:var(--p-primary-50) !important}.p-splitbutton.p-splitbutton-danger .p-splitbutton-defaultbutton,.p-splitbutton.p-splitbutton-danger .p-splitbutton-dropdown{border-color:var(--p-red-500) !important;color:var(--p-red-600) !important}.p-splitbutton.p-splitbutton-danger .p-splitbutton-defaultbutton:hover:not(:disabled),.p-splitbutton.p-splitbutton-danger .p-splitbutton-dropdown:hover:not(:disabled){background:var(--p-red-50) !important}.p-splitbutton.p-splitbutton-secondary .p-splitbutton-defaultbutton,.p-splitbutton.p-splitbutton-secondary .p-splitbutton-dropdown{border-color:var(--p-surface-400) !important;color:var(--p-surface-600) !important}.p-splitbutton.p-splitbutton-secondary .p-splitbutton-defaultbutton:hover:not(:disabled),.p-splitbutton.p-splitbutton-secondary .p-splitbutton-dropdown:hover:not(:disabled){background:var(--p-surface-100) !important}.p-splitbutton.p-splitbutton-success .p-splitbutton-defaultbutton,.p-splitbutton.p-splitbutton-success .p-splitbutton-dropdown{border-color:var(--p-green-500) !important;color:var(--p-green-600) !important}.p-splitbutton.p-splitbutton-success .p-splitbutton-defaultbutton:hover:not(:disabled),.p-splitbutton.p-splitbutton-success .p-splitbutton-dropdown:hover:not(:disabled){background:var(--p-green-50) !important}.cards-grid{display:grid;gap:1rem;margin-bottom:1.5rem}.cards-grid--cols-auto{grid-template-columns:repeat(auto-fit, minmax(180px, 1fr))}.cards-grid--cols-2{grid-template-columns:repeat(2, 1fr)}.cards-grid--cols-3{grid-template-columns:repeat(3, 1fr)}.cards-grid--cols-4{grid-template-columns:repeat(4, 1fr)}.stat-card,.card-custom{background:var(--p-surface-0);border:1px solid var(--p-surface-200);border-radius:.5rem;padding:1.25rem}.stat-card{text-align:center}.stat-card--clickable{cursor:pointer;transition:border-color .2s,box-shadow .2s}.stat-card--clickable:hover{border-color:var(--p-primary-300);box-shadow:0 2px 8px rgba(0,0,0,.08)}.stat-value{font-size:2rem;font-weight:600;color:var(--p-primary-500);display:flex;align-items:center;justify-content:center;gap:.5rem}.stat-value--success{color:var(--p-green-500)}.stat-value--danger{color:var(--p-red-500)}.stat-value--warning{color:var(--p-orange-500)}.stat-value--info{color:var(--p-blue-500)}.stat-icon{font-size:1.5rem}.stat-label{font-size:.875rem;color:var(--p-surface-600);margin-top:.25rem}@media(max-width: 768px){.cards-grid--cols-3,.cards-grid--cols-4{grid-template-columns:repeat(2, 1fr)}}@media(max-width: 480px){.cards-grid{grid-template-columns:1fr}}.rich-cards-grid{display:grid;gap:1rem;margin-bottom:1.5rem}.rich-cards-grid--cols-auto{grid-template-columns:repeat(auto-fit, minmax(200px, 1fr))}.rich-cards-grid--cols-2{grid-template-columns:repeat(2, 1fr)}.rich-cards-grid--cols-3{grid-template-columns:repeat(3, 1fr)}.rich-cards-grid--cols-4{grid-template-columns:repeat(4, 1fr)}.rich-cards-grid--cols-5{grid-template-columns:repeat(5, 1fr)}.rich-cards-grid--cols-6{grid-template-columns:repeat(6, 1fr)}.rich-card{background:var(--p-surface-0);border:1px solid var(--p-surface-200);border-radius:.5rem;padding:1.25rem}.rich-card--clickable{cursor:pointer;transition:border-color .2s,box-shadow .2s,transform .2s}.rich-card--clickable:hover{border-color:var(--p-primary-300);box-shadow:0 4px 12px rgba(0,0,0,.1);transform:translateY(-2px)}.rich-card--success .rich-card-value{color:var(--p-green-600)}.rich-card--success .rich-card-icon{color:var(--p-green-500)}.rich-card--danger .rich-card-value{color:var(--p-red-600)}.rich-card--danger .rich-card-icon{color:var(--p-red-500)}.rich-card--warning .rich-card-value{color:var(--p-orange-600)}.rich-card--warning .rich-card-icon{color:var(--p-orange-500)}.rich-card--info .rich-card-value{color:var(--p-blue-600)}.rich-card--info .rich-card-icon{color:var(--p-blue-500)}.rich-card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem}.rich-card-title{font-size:.875rem;font-weight:500;color:var(--p-surface-600)}.rich-card-icon{font-size:1.25rem;color:var(--p-surface-400)}.rich-card-value{font-size:2rem;font-weight:700;color:var(--p-surface-900);line-height:1.2}.rich-card-subtitle{font-size:.8rem;color:var(--p-surface-500);margin-top:.25rem}@media(max-width: 1024px){.rich-cards-grid--cols-5,.rich-cards-grid--cols-6{grid-template-columns:repeat(3, 1fr)}}@media(max-width: 768px){.rich-cards-grid--cols-3,.rich-cards-grid--cols-4,.rich-cards-grid--cols-5,.rich-cards-grid--cols-6{grid-template-columns:repeat(2, 1fr)}}@media(max-width: 480px){.rich-cards-grid{grid-template-columns:1fr}}.code-box{word-break:break-all;font-family:ui-monospace,"Cascadia Code","Source Code Pro",Menlo,Consolas,monospace;background:var(--p-surface-100);padding:.75rem;border-radius:.25rem}.code-box--sm{padding:.375rem;font-size:.875rem}.tag-sm{font-size:.7rem}.tag-xs{font-size:.75rem}.tags-constrained{max-width:300px}.json-viewer{background:var(--p-surface-50);border:1px solid var(--p-surface-200);border-radius:.375rem;overflow:auto;font-family:"Monaco","Menlo","Ubuntu Mono",monospace;font-size:.8125rem;line-height:1.5}.json-content{padding:1rem;margin:0;white-space:pre-wrap;word-break:break-word}.json-key{color:#881391}.json-string{color:#1a1aa6}.json-number{color:#1c00cf}.json-boolean{color:#0d22aa;font-weight:500}.json-null{color:gray;font-style:italic}.qd-log-stream{--qd-log-bg: #1e1e1e;--qd-log-fg: #d4d4d4;--qd-log-muted: #858585;--qd-log-mark: rgba(255, 213, 79, 0.45);--qd-log-error-bg: rgba(241, 76, 76, 0.14);--qd-log-current: rgba(59, 142, 234, 0.3);position:relative;display:flex;flex-direction:column;border:1px solid var(--p-surface-300);border-radius:.25rem;overflow:hidden;min-width:0}.qd-log-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem .5rem;padding:.25rem .5rem;background:var(--p-surface-50);border-bottom:1px solid var(--p-surface-200);font-size:.875rem}.qd-log-spacer-x{flex:1}.qd-log-status{display:inline-flex;align-items:center;gap:.375rem;font-weight:500}.qd-log-status-dot{width:.5rem;height:.5rem;border-radius:50%;background:var(--p-surface-400)}.qd-log-status--streaming .qd-log-status-dot{background:var(--p-green-500);animation:qd-log-pulse 1.2s ease-in-out infinite}.qd-log-status--done .qd-log-status-dot{background:var(--p-blue-500)}.qd-log-status--error .qd-log-status-dot{background:var(--p-red-500)}@keyframes qd-log-pulse{50%{opacity:.3}}.qd-log-count,.qd-log-search-count{color:var(--p-text-muted-color);font-size:.75rem;font-variant-numeric:tabular-nums}.qd-log-copy-status{color:var(--p-green-600);font-size:.75rem}.qd-log-copy-status:empty{display:none}.qd-log-copy-status--error{color:var(--p-red-500)}.qd-log-search{display:inline-flex;align-items:center;gap:.125rem}.qd-log-search .p-inputtext{width:12rem;max-width:40vw}.qd-log-viewport{overflow:auto;background:var(--qd-log-bg);color:var(--qd-log-fg);font-family:ui-monospace,"Cascadia Code","Source Code Pro",Menlo,Consolas,monospace;font-size:.8125rem;line-height:var(--qd-log-line-height, 20px);outline:none}.qd-log-empty{padding:.75rem 1rem;color:var(--qd-log-muted);font-style:italic}.qd-log-line{display:flex;height:var(--qd-log-line-height, 20px);white-space:pre;padding-right:.75rem}.qd-log-line--error{background:var(--qd-log-error-bg)}.qd-log-line--current{background:var(--qd-log-current)}.qd-log-stream--wrap .qd-log-line{height:auto;min-height:var(--qd-log-line-height, 20px);white-space:pre-wrap;word-break:break-word;content-visibility:auto;contain-intrinsic-size:auto var(--qd-log-line-height, 20px)}.qd-log-n{flex:none;min-width:3.5rem;padding:0 .75rem 0 .5rem;text-align:right;color:var(--qd-log-muted);user-select:none}.qd-log-text{flex:1;min-width:0}.qd-log-ts{color:var(--qd-log-muted)}.qd-log-mark{background:var(--qd-log-mark);border-radius:2px}.qd-log-resume{position:absolute;bottom:.75rem;left:50%;transform:translateX(-50%);display:inline-flex;align-items:center;gap:.375rem;padding:.25rem .75rem;border:none;border-radius:999px;background:var(--p-primary-color);color:var(--p-primary-contrast-color);font-size:.75rem;cursor:pointer;box-shadow:0 2px 6px rgba(0,0,0,.3)}.qd-timeline{position:relative;min-width:0}.qd-timeline-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin-bottom:.75rem}.qd-timeline-actors,.qd-timeline-gaps{display:flex;flex-wrap:wrap;gap:.375rem}.qd-timeline-gaps{margin-left:auto}.qd-timeline-chip{display:inline-flex;align-items:center;gap:.375rem;padding:.125rem .625rem;border:1px solid var(--qd-actor);border-radius:999px;background:color-mix(in srgb, var(--qd-actor) 14%, transparent);color:var(--p-text-color);font-size:.75rem;cursor:pointer}.qd-timeline-chip i{color:var(--qd-actor);font-size:.75rem}.qd-timeline-chip--off{opacity:.45;background:rgba(0,0,0,0);text-decoration:line-through}.qd-timeline-gap-chip{display:inline-flex;align-items:center;gap:.375rem;padding:.125rem .625rem;border-radius:999px;background:var(--p-surface-100);font-size:.75rem}.qd-timeline-error{color:var(--p-red-500);margin-bottom:.5rem}.qd-timeline-empty{color:var(--p-text-muted-color);font-style:italic;padding:.5rem 0}.qd-timeline-list{list-style:none;margin:0;padding:0}.qd-timeline-day{margin:.75rem 0 .25rem;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--p-text-muted-color)}.qd-timeline-day:first-child{margin-top:0}.qd-timeline-event{position:relative;display:flex;gap:.75rem;padding:0 0 .75rem}.qd-timeline-event::before{content:"";position:absolute;left:.875rem;top:1.75rem;bottom:0;width:2px;background:var(--p-surface-200)}.qd-timeline-event:last-child::before{display:none}.qd-timeline-event--fresh .qd-timeline-content{animation:qd-timeline-flash 2.5s ease-out}@keyframes qd-timeline-flash{0%{background:color-mix(in srgb, var(--p-primary-color) 22%, transparent)}100%{background:rgba(0,0,0,0)}}.qd-timeline-since{position:absolute;left:2.5rem;top:-0.7rem;font-size:.6875rem;color:var(--p-text-muted-color)}.qd-timeline-marker{flex:none;display:inline-flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;border-radius:50%;background:var(--qd-actor);color:#fff;font-size:.8125rem;z-index:1}.qd-timeline-content{flex:1;min-width:0;border-radius:.25rem}.qd-timeline-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:.25rem .625rem;width:100%;padding:.25rem .375rem;border:none;border-radius:.25rem;background:rgba(0,0,0,0);color:inherit;font:inherit;text-align:left}.qd-timeline-head:is(button){cursor:pointer}.qd-timeline-head:is(button):hover{background:var(--p-surface-100)}.qd-timeline-title{font-weight:600}.qd-timeline-event--danger .qd-timeline-title{color:var(--p-red-600)}.qd-timeline-event--warn .qd-timeline-title{color:var(--p-orange-600)}.qd-timeline-event--success .qd-timeline-title{color:var(--p-green-600)}.qd-timeline-actor{font-size:.75rem;color:var(--qd-actor);font-weight:500}.qd-timeline-time{margin-left:auto;font-size:.75rem;color:var(--p-text-muted-color);font-variant-numeric:tabular-nums}.qd-timeline-chevron{font-size:.75rem;color:var(--p-text-muted-color)}.qd-timeline-detail{padding:.5rem .375rem .25rem}.qd-timeline-absolute{font-size:.75rem;color:var(--p-text-muted-color);margin-bottom:.5rem}.qd-timeline-new{position:absolute;left:50%;bottom:.75rem;transform:translateX(-50%)}.qd-payload{--pl-tag: #22863a;--pl-attr: #6f42c1;--pl-value: #032f62;--pl-comment: #6a737d;--pl-ins-bg: rgba(46, 160, 67, 0.16);--pl-del-bg: rgba(248, 81, 73, 0.16);border:1px solid var(--p-surface-200);border-radius:.25rem;overflow:hidden;min-width:0;background:var(--p-surface-0)}.qd-payload-request{padding:.5rem .75rem;border-bottom:1px solid var(--p-surface-200);background:var(--p-surface-50);font-size:.875rem}.qd-payload-line{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;min-width:0}.pl-method{font-weight:700;font-family:ui-monospace,"Cascadia Code","Source Code Pro",Menlo,Consolas,monospace}.pl-url{font-family:ui-monospace,"Cascadia Code","Source Code Pro",Menlo,Consolas,monospace;word-break:break-all;min-width:0}.pl-status{padding:0 .5rem;border-radius:999px;font-weight:600;font-size:.75rem;background:var(--p-surface-200)}.pl-status--ok{background:var(--p-green-100);color:var(--p-green-800)}.pl-status--info{background:var(--p-blue-100);color:var(--p-blue-800)}.pl-status--warn{background:var(--p-orange-100);color:var(--p-orange-800)}.pl-status--error{background:var(--p-red-100);color:var(--p-red-800)}.qd-payload-headers{margin-top:.375rem}.qd-payload-headers summary{cursor:pointer;color:var(--p-text-muted-color)}.qd-payload-headers table{margin-top:.25rem;border-collapse:collapse;font-family:ui-monospace,"Cascadia Code","Source Code Pro",Menlo,Consolas,monospace;font-size:.75rem}.qd-payload-headers th{text-align:left;padding:.125rem 1rem .125rem 0;font-weight:600;white-space:nowrap;vertical-align:top}.qd-payload-headers td{word-break:break-all}.qd-payload-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;padding:.125rem .5rem;border-bottom:1px solid var(--p-surface-200);font-size:.75rem}.qd-payload-format{font-weight:700;letter-spacing:.05em;color:var(--p-text-muted-color)}.qd-payload-size{color:var(--p-text-muted-color)}.qd-payload-spacer{flex:1}.qd-payload-check{display:inline-flex;align-items:center;gap:.25rem;cursor:pointer}.qd-payload-warning,.qd-payload-identical{padding:.375rem .75rem;font-size:.875rem}.qd-payload-warning{background:var(--p-orange-50);color:var(--p-orange-800)}.qd-payload-identical{background:var(--p-green-50);color:var(--p-green-800)}.qd-payload-body{overflow:auto}.qd-payload-body .json-viewer{border:none;border-radius:0}.qd-payload-code{margin:0;padding:.5rem .75rem .5rem 0;font-family:ui-monospace,"Cascadia Code","Source Code Pro",Menlo,Consolas,monospace;font-size:.8125rem;line-height:1.5;white-space:pre}.pl-n{display:inline-block;min-width:3rem;padding-right:.75rem;text-align:right;color:var(--p-text-muted-color);user-select:none}.pl-tag{color:var(--pl-tag)}.pl-attr{color:var(--pl-attr)}.pl-value{color:var(--pl-value)}.pl-punct{color:var(--p-text-muted-color)}.pl-comment,.pl-decl{color:var(--pl-comment);font-style:italic}.pl-cdata{color:var(--pl-comment)}.qd-payload-table-wrap{min-width:0}.qd-payload-table{border-collapse:collapse;font-size:.875rem;width:max-content;min-width:100%}.qd-payload-table th,.qd-payload-table td{padding:.25rem .75rem;border-bottom:1px solid var(--p-surface-100);text-align:left;vertical-align:top;white-space:pre-wrap}.qd-payload-table thead th{position:sticky;top:0;background:var(--p-surface-50);font-weight:600}.qd-payload-table .pl-n{display:table-cell;min-width:0}.qd-payload-kv th{font-family:ui-monospace,"Cascadia Code","Source Code Pro",Menlo,Consolas,monospace;font-weight:600;white-space:nowrap}.qd-payload-more{display:block;width:100%;padding:.375rem;border:none;background:var(--p-surface-50);color:var(--p-primary-color);cursor:pointer}.qd-payload-binary p{margin:.5rem .75rem;font-size:.875rem}.pl-count{font-weight:700;font-variant-numeric:tabular-nums}.pl-count--add{color:var(--p-green-600)}.pl-count--del{color:var(--p-red-600)}.pl-count--chg{color:var(--p-orange-600)}.pl-diff{width:100%;border-collapse:collapse;table-layout:fixed;font-family:ui-monospace,"Cascadia Code","Source Code Pro",Menlo,Consolas,monospace;font-size:.8125rem;line-height:1.5}.pl-diff th{padding:.25rem .75rem;background:var(--p-surface-50);font-family:var(--p-font-family, inherit);font-size:.75rem;text-align:left}.pl-diff td{padding:0 .5rem;white-space:pre-wrap;word-break:break-all;vertical-align:top}.pl-diff td.pl-n{display:table-cell;width:3rem;min-width:0}.pl-diff .pl-sign{width:1rem;padding:0;text-align:center}.pl-diff--split td:nth-child(3){border-left:1px solid var(--p-surface-200)}.pl-ins,tr.pl-ins td{background:var(--pl-ins-bg)}.pl-del,tr.pl-del td{background:var(--pl-del-bg)}.pl-empty{background:repeating-linear-gradient(45deg, transparent 0 4px, var(--p-surface-100) 4px 8px)}.pl-fold td{padding:0}.pl-fold td button{width:100%;padding:.125rem;border:none;background:var(--p-surface-100);color:var(--p-text-muted-color);font-size:.75rem;cursor:pointer}.pl-csv-diff .pl-row--added td{background:var(--pl-ins-bg)}.pl-csv-diff .pl-row--removed td{background:var(--pl-del-bg)}.pl-csv-diff .pl-cell--changed{background:color-mix(in srgb, var(--p-orange-400) 18%, transparent)}.pl-csv-diff .pl-cell--changed del{color:var(--p-red-700)}.pl-csv-diff .pl-cell--changed ins{color:var(--p-green-700);text-decoration:none;font-weight:600}.qd-yaml-editor .vye{--vye-font: inherit;--vye-bg: var(--p-content-background, #fff);--vye-fg: var(--p-text-color, #1f2937);--vye-muted: var(--p-text-muted-color, #6b7280);--vye-border: var(--p-content-border-color, #e5e7eb);--vye-panel: var(--p-surface-50, #f8fafc);--vye-gutter-bg: var(--p-surface-50, #f8fafc);--vye-accent: var(--p-primary-color, #3b82f6);--vye-accent-fg: var(--p-primary-contrast-color, #fff);--vye-input-bg: var(--p-form-field-background, #fff);--vye-radius: var(--p-form-field-border-radius, 6px);--vye-error: var(--p-red-600, #dc2626);--vye-error-bg: var(--p-red-50, #fef2f2)}.dark-mode .qd-yaml-editor .vye{--vye-panel: var(--p-surface-800, #1e293b);--vye-gutter-bg: var(--p-surface-800, #1e293b);--vye-error: var(--p-red-400, #f87171);--vye-error-bg: color-mix(in srgb, var(--p-red-400, #f87171) 12%, transparent);--vye-active-line: rgba(147, 197, 253, 0.07);--vye-tok-key: #93c5fd;--vye-tok-string: #86efac;--vye-tok-number: #fcd34d;--vye-tok-bool: #d8b4fe;--vye-tok-comment: #9ca3af;--vye-tok-meta: #f9a8d4}.qd-yaml-config{display:flex;flex-direction:column;gap:.5rem}.qd-yaml-config-bar{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}.qd-yaml-config-state{margin-right:auto;color:var(--p-text-muted-color);font-size:.875rem}.qd-yaml-config-state--dirty{color:var(--p-orange-600, #ea580c)}.qd-yaml-config-reason{display:flex;flex-direction:column;gap:.35rem;margin-top:.75rem}.qd-yaml-history{display:grid;grid-template-columns:minmax(12rem, 18rem) 1fr;gap:.75rem;min-height:20rem}.qd-yaml-history-list{display:flex;flex-direction:column;gap:.25rem;overflow:auto;max-height:32rem}.qd-yaml-history-entry{display:flex;flex-direction:column;align-items:flex-start;gap:.15rem;padding:.5rem;border:1px solid var(--p-content-border-color);border-radius:6px;background:rgba(0,0,0,0);color:inherit;font:inherit;text-align:left;cursor:pointer}.qd-yaml-history-entry--active{border-color:var(--p-primary-color);background:color-mix(in srgb, var(--p-primary-color) 8%, transparent)}.qd-yaml-history-meta{color:var(--p-text-muted-color);font-size:.8125rem}@media(max-width: 767px){.qd-yaml-history{grid-template-columns:1fr}}.qd-cards-dashboard{display:flex;flex-direction:column;gap:.75rem}.qd-cards-toolbar{display:flex;justify-content:flex-end;gap:.5rem}.qd-cards-grid{container-type:inline-size;display:grid;grid-template-columns:repeat(auto-fill, minmax(min(var(--qd-card-min, 18rem), 100%), 1fr));gap:1rem}.qd-cards-grid.qd-cards-loading{visibility:hidden}.qd-cards-slot{grid-column:span var(--qd-card-span, 1);display:flex;flex-direction:column;min-width:0}.qd-cards-slot>:not(.qd-cards-bar){flex:1}@container (max-width: 40rem){.qd-cards-slot{grid-column:auto}}.qd-cards-editing .qd-cards-slot{outline:1px dashed var(--p-content-border-color, #d1d5db);outline-offset:4px;border-radius:var(--p-content-border-radius, 6px)}.qd-cards-editing .qd-cards-pinned{outline-color:var(--p-primary-color)}.qd-cards-dragging{opacity:.6;outline:2px solid var(--p-primary-color) !important}.qd-cards-bar{display:flex;align-items:center;gap:.25rem;margin-bottom:.5rem;font-size:.875rem;color:var(--p-text-muted-color, #6b7280)}.qd-cards-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.qd-cards-handle,.qd-cards-action{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;border:1px solid rgba(0,0,0,0);border-radius:var(--p-content-border-radius, 6px);background:rgba(0,0,0,0);color:inherit;cursor:pointer}.qd-cards-handle:hover,.qd-cards-action:hover{background:var(--p-content-hover-background, rgba(0, 0, 0, 0.04));color:var(--p-text-color)}.qd-cards-handle:focus-visible,.qd-cards-action:focus-visible{outline:2px solid var(--p-primary-color);outline-offset:1px}.qd-cards-handle{cursor:grab;touch-action:none}.qd-cards-dragging .qd-cards-handle{cursor:grabbing}.qd-cards-on{color:var(--p-primary-color)}.qd-cards-tray{display:flex;flex-direction:column;gap:.75rem;padding:.75rem;border:1px dashed var(--p-content-border-color, #d1d5db);border-radius:var(--p-content-border-radius, 6px)}.qd-cards-tray-head{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}.qd-cards-tray-label{font-weight:500;font-size:.875rem}.qd-cards-tray-empty{font-size:.875rem;color:var(--p-text-muted-color, #6b7280)}.qd-cards-tray-view{display:inline-flex;margin-left:auto;border:1px solid var(--p-content-border-color, #d1d5db);border-radius:var(--p-content-border-radius, 6px);overflow:hidden}.qd-cards-tray-view-option{padding:.25rem .625rem;border:0;background:rgba(0,0,0,0);color:var(--p-text-muted-color, #6b7280);font:inherit;font-size:.8125rem;cursor:pointer}.qd-cards-tray-view-option[aria-pressed=true]{background:var(--p-primary-color);color:var(--p-primary-contrast-color, #fff)}.qd-cards-tray-view-option:focus-visible{outline:2px solid var(--p-primary-color);outline-offset:-2px}.qd-cards-chips{display:flex;flex-wrap:wrap;gap:.5rem}.qd-cards-hidden .qd-cards-hidden-body{flex:1;opacity:.45;filter:grayscale(0.6);pointer-events:none}.qd-cards-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.qd-sessions{display:flex;flex-direction:column;gap:1rem}.qd-sessions-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.qd-sessions-table{width:100%;border-collapse:collapse;font-size:.875rem}.qd-sessions-table th{text-align:left;font-weight:600;color:var(--p-text-muted-color);padding:.5rem;border-bottom:1px solid var(--p-content-border-color);white-space:nowrap}.qd-sessions-table td{padding:.5rem;border-bottom:1px solid var(--p-content-border-color);vertical-align:middle}.qd-sessions-mine td{background:var(--p-highlight-background, rgba(16, 185, 129, 0.06))}.qd-sessions-badge{margin-left:.375rem;padding:0 .375rem;border-radius:999px;font-size:.75rem;background:var(--p-primary-color);color:var(--p-primary-contrast-color, #fff)}.qd-sessions-origin{color:var(--p-text-muted-color);font-size:.8125rem;max-width:22rem;overflow-wrap:anywhere}.qd-sessions-actions{text-align:right}.qd-sessions-event{padding:.0625rem .5rem;border-radius:999px;background:var(--p-content-hover-background);white-space:nowrap}.qd-sessions-event--refused .qd-sessions-event,.qd-sessions-event--closed .qd-sessions-event{background:var(--p-red-50);color:var(--p-red-700)}.qd-sessions-empty{margin:0;color:var(--p-text-muted-color)}.qd-sessions-notice{margin-bottom:.75rem}.qd-sessions-pager{display:flex;justify-content:flex-end;gap:.5rem;margin-top:.5rem}.qd-sessions-reason-label{display:block;margin-bottom:.5rem}.qd-sessions-reason{width:100%}@media(max-width: 640px){.qd-sessions-card .p-card-content{overflow-x:auto}}.qd-email{border:1px solid var(--p-surface-200);border-radius:.25rem;overflow:hidden;min-width:0;background:var(--p-surface-0)}.qd-email-head{padding:.75rem 1rem .5rem;border-bottom:1px solid var(--p-surface-200)}.qd-email-subject{margin:0 0 .5rem;font-size:1.0625rem;font-weight:600;overflow-wrap:anywhere}.qd-email-main{display:grid;grid-template-columns:max-content minmax(0, 1fr);gap:.125rem .75rem;margin:0;font-size:.875rem}.qd-email-main dt{color:var(--p-text-muted-color)}.qd-email-main dd{margin:0;overflow-wrap:anywhere}.qd-email-headers{margin-top:.5rem;font-size:.75rem}.qd-email-headers summary{cursor:pointer;color:var(--p-text-muted-color)}.qd-email-headers table{margin-top:.25rem;border-collapse:collapse;font-family:ui-monospace,"Cascadia Code","Source Code Pro",Menlo,Consolas,monospace}.qd-email-headers th{padding:.0625rem 1rem .0625rem 0;text-align:left;font-weight:600;white-space:nowrap;vertical-align:top}.qd-email-headers td{overflow-wrap:anywhere}.qd-email-warning{padding:.375rem 1rem;background:var(--p-orange-50);color:var(--p-orange-800);font-size:.875rem}.qd-email-tabs{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem;padding:0 .5rem;border-bottom:1px solid var(--p-surface-200);font-size:.875rem}.qd-email-tab{padding:.5rem .75rem;border:none;border-bottom:2px solid rgba(0,0,0,0);background:rgba(0,0,0,0);color:var(--p-text-muted-color);font:inherit;cursor:pointer}.qd-email-tab--active{border-bottom-color:var(--p-primary-color);color:var(--p-text-color);font-weight:600}.qd-email-spacer{flex:1}.qd-email-blocked{color:var(--p-text-muted-color);font-size:.75rem}.qd-email-frame-wrap{resize:vertical;overflow:hidden;min-height:8rem;background:#fff}.qd-email-frame{display:block;width:100%;height:100%;border:0}.qd-email-text{margin:0;padding:.75rem 1rem;max-height:32rem;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-family:ui-monospace,"Cascadia Code","Source Code Pro",Menlo,Consolas,monospace;font-size:.8125rem}.qd-email-source{white-space:pre}.qd-email-empty{padding:.75rem 1rem;color:var(--p-text-muted-color);font-style:italic}.qd-email-attachments{list-style:none;margin:0;padding:.25rem .5rem;border-top:1px solid var(--p-surface-200)}.qd-email-attachment{display:flex;align-items:center;gap:.5rem;padding:.25rem;font-size:.875rem;min-width:0}.qd-email-thumb{width:2.5rem;height:2.5rem;object-fit:cover;border-radius:.25rem;border:1px solid var(--p-surface-200)}.qd-email-clip{width:2.5rem;text-align:center;color:var(--p-text-muted-color)}.qd-email-att-name{font-weight:500;overflow-wrap:anywhere}.qd-email-att-meta{flex:1;color:var(--p-text-muted-color);font-size:.75rem}.qd-task-head{display:flex;align-items:center;gap:.75rem;margin-bottom:.75rem;font-size:.875rem}.qd-task-status{display:inline-flex;align-items:center;gap:.375rem;padding:.125rem .625rem;border-radius:999px;font-weight:600;background:var(--p-blue-50);color:var(--p-blue-700)}.qd-task-status--succeeded{background:var(--p-green-50);color:var(--p-green-700)}.qd-task-status--failed{background:var(--p-red-50);color:var(--p-red-700)}.qd-task-status--cancelled{background:var(--p-surface-100);color:var(--p-text-muted-color)}.qd-task-elapsed,.qd-task-id{color:var(--p-text-muted-color);font-variant-numeric:tabular-nums}.qd-task-id{margin-left:auto;font-family:ui-monospace,"Cascadia Code","Source Code Pro",Menlo,Consolas,monospace;font-size:.75rem}.qd-task-progress{height:.75rem}.qd-task-step{margin-top:.375rem;color:var(--p-text-muted-color);font-size:.875rem}.qd-task-dialog .p-dialog-content{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}.qd-task-log{margin-top:.75rem;flex:1 1 16rem;min-height:8rem;display:flex;flex-direction:column}.qd-task-log .qd-log-viewport{flex:1 1 auto;min-height:0;height:auto !important}.qd-task-before-log,.qd-task-after-log{margin-top:.75rem}.qd-task-header{flex:1;min-width:0}.qd-task-dialog--resizable{resize:both;overflow:hidden;min-width:min(24rem,96vw);min-height:16rem}.qd-task-error,.qd-task-warning{margin-top:.75rem;padding:.5rem .75rem;border-radius:.25rem;font-size:.875rem;overflow-wrap:anywhere}.qd-task-error{background:var(--p-red-50);color:var(--p-red-800)}.qd-task-warning{background:var(--p-orange-50);color:var(--p-orange-800)}.qd-task-result{margin-top:.75rem}.qd-task-dialog .p-dialog-footer{display:flex;align-items:center;gap:.5rem}.qd-task-spacer{flex:1}.qd-task-link{display:inline-flex;align-items:center;gap:.375rem;font-size:.875rem}.qd-task-confirm-message{margin:0 0 .75rem}.qd-task-confirm-label{display:block;margin-bottom:.375rem;font-size:.875rem}.qd-task-confirm-input{width:100%;font-family:ui-monospace,"Cascadia Code","Source Code Pro",Menlo,Consolas,monospace}.qd-task-tray{padding:.25rem .75rem}.qd-task-tray-button{display:flex;align-items:center;gap:.5rem;width:100%;padding:.5rem .625rem;border:1px solid var(--p-surface-700, #334155);border-radius:.25rem;background:rgba(0,0,0,0);color:var(--p-surface-200, #e2e8f0);font:inherit;font-size:.875rem;cursor:pointer}.qd-task-tray-button--busy{border-color:var(--p-primary-color)}.qd-task-tray-button:hover{background:var(--p-surface-700, #334155)}.qd-task-tray-label{flex:1;text-align:left;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.qd-task-tray-count{min-width:1.25rem;padding:0 .375rem;border-radius:999px;background:var(--p-primary-color);color:var(--p-primary-contrast-color);font-size:.75rem;font-weight:700;text-align:center}.qd-task-list{list-style:none;margin:0 0 .25rem;padding:0;min-width:18rem;max-width:24rem}.qd-task-item{display:flex;align-items:center;gap:.5rem;width:100%;padding:.375rem .5rem;border:none;border-radius:.25rem;background:rgba(0,0,0,0);color:inherit;font:inherit;font-size:.875rem;text-align:left;cursor:pointer}.qd-task-item:hover{background:var(--p-surface-100)}.qd-task-item--succeeded i{color:var(--p-green-600)}.qd-task-item--failed i{color:var(--p-red-600)}.qd-task-item--cancelled i{color:var(--p-text-muted-color)}.qd-task-item-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.qd-task-item-state{color:var(--p-text-muted-color);font-size:.75rem;white-space:nowrap}.sidebar--collapsed .qd-task-tray{padding:.25rem}.sidebar--collapsed .qd-task-tray .qd-task-tray-button{justify-content:center;padding:.5rem .25rem}.sidebar--collapsed .qd-task-tray .qd-task-tray-label{display:none}.dialog-content{display:flex;align-items:flex-start;gap:1rem;margin-bottom:.75rem}.dialog-content p{margin:0;line-height:1.5}.dialog-section-title{font-size:.875rem;font-weight:600;margin-bottom:.375rem;color:var(--p-surface-600)}.dialog-icon{font-size:2rem;color:var(--p-orange-500);flex-shrink:0}.multi-step-dialog{padding:.5rem 0}.step-content{padding:1rem 0}.step-actions{display:flex;justify-content:flex-end;gap:.5rem;margin-top:1.5rem;padding-top:1rem;border-top:1px solid var(--p-surface-200)}.markdown-rendered{background:var(--p-surface-100);padding:.75rem;border-radius:.25rem;max-height:400px;overflow-y:auto;font-size:.875rem}.markdown-rendered h1,.markdown-rendered h2,.markdown-rendered h3,.markdown-rendered h4{margin:.75rem 0 .375rem 0;font-weight:600}.markdown-rendered h1{font-size:1.25rem}.markdown-rendered h2{font-size:1.125rem}.markdown-rendered h3{font-size:1rem}.markdown-rendered p{margin:.375rem 0}.markdown-rendered ul,.markdown-rendered ol{margin:.375rem 0;padding-left:1rem}.markdown-rendered a{color:var(--p-primary-500);text-decoration:underline}.markdown-rendered code{background:var(--p-surface-200);padding:.1rem .3rem;border-radius:.25rem;font-family:ui-monospace,"Cascadia Code","Source Code Pro",Menlo,Consolas,monospace;font-size:.85em}.markdown-rendered pre{background:var(--p-surface-200);padding:.75rem;border-radius:.25rem;overflow-x:auto}.markdown-rendered blockquote{border-left:3px solid var(--p-surface-300);margin:.375rem 0;padding-left:.75rem;color:var(--p-surface-600)}.markdown-rendered .md-figure{margin:.75rem 0;padding:0}.markdown-rendered .md-figure img{max-width:100%;height:auto;border-radius:.25rem;display:block}.markdown-rendered .md-figure figcaption{margin-top:.375rem;font-size:.75rem;color:var(--p-surface-500);font-style:italic;line-height:1.5}.header-left{display:flex;align-items:center;gap:.75rem}.content-grid{display:grid;gap:1rem}.meta-grid{display:grid;grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));gap:1rem}@media(max-width: 767px){.meta-grid{grid-template-columns:1fr}}.summary-text,.intent-text{line-height:1.5}.tags-wrap{display:flex;gap:.375rem;flex-wrap:wrap}.url-actions{display:flex;gap:.375rem;align-items:center}.content-box{background:var(--p-surface-100);padding:.75rem;border-radius:.25rem;white-space:pre-wrap;word-break:break-word}.content-box--scrollable{max-height:300px;overflow-y:auto}.content-box--tall{max-height:400px}.status-row{display:flex;justify-content:space-between;align-items:flex-start}.tags-row{display:flex;gap:.375rem}.show-field{display:flex;flex-direction:column;gap:.25rem}.show-field--horizontal{flex-direction:row;align-items:flex-start;gap:1rem}.show-field__label{font-weight:600;color:var(--p-text-muted-color, #6c757d);font-size:.875rem}.show-field--horizontal .show-field__label{padding-top:.125rem}.show-field__value{color:var(--p-text-color, #1e293b);line-height:1.5}.show-display{display:inline}.show-display--badge{display:inline-flex;align-items:center}.show-display--empty{color:var(--p-text-muted-color, #6c757d)}.show-display--email,.show-display--url,.show-display--reference{color:var(--p-primary-color, #3b82f6);text-decoration:none}.show-display--email:hover,.show-display--url:hover,.show-display--reference:hover{text-decoration:underline}.show-display--password{font-family:monospace;letter-spacing:.1em}.show-display--number,.show-display--currency{font-variant-numeric:tabular-nums}.show-display--boolean{display:inline-flex;align-items:center;gap:.5rem}.show-display--boolean.text-success{color:var(--p-green-500, #22c55e)}.show-display--boolean.text-danger{color:var(--p-red-500, #ef4444)}.show-display--boolean.text-muted{color:var(--p-text-muted-color, #6c757d)}.show-display--textarea{white-space:pre-wrap;line-height:1.6}.show-display--image img{border-radius:4px;object-fit:cover}.show-display--json{background:var(--p-surface-100, #f1f5f9);padding:.75rem;border-radius:4px;font-size:.875rem;overflow-x:auto;margin:0}.sidebar-box{position:relative;z-index:1;padding:.5rem .75rem;border-top:1px solid var(--p-surface-700, #334155);height:3.5rem;box-sizing:border-box;cursor:pointer;transition:background var(--fad-transition-fast);display:flex;align-items:center}.sidebar-box:hover{background:var(--p-surface-700, #334155)}.sidebar-box:focus-within{z-index:20}.sidebar-box-inner{display:flex;align-items:center;gap:.5rem;padding-left:2rem;height:100%;width:100%}.sidebar-box-icon{position:absolute;left:.5rem;top:50%;transform:translateY(-50%);width:28px;height:28px;display:flex;align-items:center;justify-content:center;font-size:.875rem;color:var(--p-surface-400, #94a3b8)}.sidebar-box:hover .sidebar-box-icon{color:var(--p-surface-200, #e2e8f0)}.sidebar-box-content{flex:1;min-width:0;opacity:1;transition:opacity .1s ease .2s}.sidebar-box-title{font-weight:var(--fad-font-weight-normal);font-size:var(--fad-font-size-sm);color:var(--p-surface-100, #f1f5f9);white-space:nowrap}.sidebar-box-subtitle{font-size:var(--fad-font-size-2xs);color:var(--p-surface-400, #94a3b8);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-box--impersonator .sidebar-box-icon{color:var(--p-orange-400, #fb923c)}.sidebar-box--impersonator:hover .sidebar-box-icon{color:var(--p-orange-300, #fdba74)}.sidebar-box--impersonator .sidebar-box-title{color:var(--p-orange-400, #fb923c)}.sidebar-box--impersonator .sidebar-box-subtitle{color:var(--p-orange-300, #fdba74)}.sidebar--collapsed .sidebar-box{padding:0}.sidebar--collapsed .sidebar-box-inner{justify-content:center;padding-left:0}.sidebar--collapsed .sidebar-box-content{opacity:0;visibility:hidden;transition:opacity 0s,visibility 0s}.sidebar-box-controls{padding:.5rem 1rem}.sidebar-box-controls-label{font-size:var(--fad-font-size-xs);font-weight:var(--fad-font-weight-medium);color:var(--p-surface-500, #64748b);text-transform:uppercase;letter-spacing:.06em;display:block;margin-bottom:.375rem}.sidebar-box-controls-input{width:100%}.sidebar-box-controls-input :deep(.p-autocomplete-input){width:100%;font-size:var(--fad-font-size-sm)}.sidebar-box-controls-input :deep(.p-autocomplete-overlay){z-index:9999 !important}.sidebar--collapsed .sidebar-box-controls{display:none !important}.sidebar-box--full{height:auto;cursor:default}.sidebar-box--full:hover{background:rgba(0,0,0,0)}.sidebar-box-full{width:100%;padding:.25rem 0;opacity:1;transition:opacity .1s ease .2s}.sidebar-box-full-label{font-size:var(--fad-font-size-xs);font-weight:var(--fad-font-weight-medium);color:var(--p-surface-500, #64748b);text-transform:uppercase;letter-spacing:.06em;display:block;margin-bottom:.375rem}.sidebar-box-full-input{width:100%}.sidebar-box-full-input :deep(.p-autocomplete-input){width:100%;font-size:var(--fad-font-size-sm)}.sidebar-box-full-input :deep(.p-autocomplete-overlay){z-index:9999 !important}.sidebar--collapsed .sidebar-box--full{opacity:0;visibility:hidden;height:0;padding:0;border:none;overflow:hidden;transition:opacity 0s,visibility 0s,height 0s,padding 0s}.sidebar--collapsed .sidebar-box-full{opacity:0;transition:opacity 0s}.sidebar-nav .nav-item{position:relative;display:flex;align-items:center;padding:var(--fad-nav-item-padding-y) var(--fad-nav-item-padding-x);padding-left:calc((var(--fad-sidebar-width-collapsed) + 1.125rem)/2 + .375rem);color:var(--p-surface-300, #cbd5e1);text-decoration:none;font-size:var(--fad-font-size-sm);font-weight:var(--fad-font-weight-normal);border-radius:0;transition:background var(--fad-transition-fast),color var(--fad-transition-fast),padding var(--fad-transition-slow)}.sidebar-nav .nav-item i{position:absolute;left:calc((var(--fad-sidebar-width-collapsed) - 1.125rem)/2);top:50%;transform:translateY(-50%);font-size:var(--fad-nav-icon-size);width:1.125rem;text-align:center;opacity:.8}.sidebar-nav .nav-item span{white-space:nowrap;opacity:1;transition:opacity .1s ease .2s}.sidebar-nav .nav-item .nav-item-external{margin-left:.375rem;font-size:.625rem;color:var(--p-surface-400, #94a3b8)}.sidebar-nav .nav-item:hover{background:var(--p-surface-700, #334155);color:var(--p-surface-0, white)}.sidebar-nav .nav-item-active{background:var(--p-surface-700, #334155);color:var(--p-primary-300, #93c5fd);border-left:2px solid var(--p-primary-400, #60a5fa);padding-left:calc(calc((var(--fad-sidebar-width-collapsed) + 1.125rem) / 2 + 0.375rem) - 2px)}.sidebar-nav .nav-item-active:hover{background:var(--p-surface-600, #475569)}.sidebar-nav .nav-item-active i{opacity:1}.sidebar--collapsed .sidebar-nav .nav-item{padding:.5rem 0;padding-left:calc((var(--fad-sidebar-width-collapsed) + 1.125rem)/2 + .375rem);border-left:none !important}.sidebar--collapsed .sidebar-nav .nav-item-active{border-left:none !important;padding-left:calc((var(--fad-sidebar-width-collapsed) + 1.125rem)/2 + .375rem)}.sidebar--collapsed .sidebar-nav .nav-item span{opacity:0;visibility:hidden;transition:opacity 0s,visibility 0s}@media(max-width: 767px){.sidebar.sidebar--collapsed .sidebar-nav .nav-item{justify-content:flex-start;padding:var(--fad-nav-item-padding-y) var(--fad-nav-item-padding-x);padding-left:calc((var(--fad-sidebar-width-collapsed) + 1.125rem)/2 + .375rem)}.sidebar.sidebar--collapsed .sidebar-nav .nav-item span{display:inline;opacity:1;visibility:visible;width:auto;transition:opacity .1s ease .2s}.sidebar.sidebar--collapsed .sidebar-nav .nav-item i{position:absolute;left:calc((var(--fad-sidebar-width-collapsed) - 1.125rem)/2);font-size:var(--fad-nav-icon-size);width:1.125rem}}:root{--qdadm-sidebar-width: 15rem;--qdadm-sidebar-collapsed-width: 2.5rem;--qdadm-sidebar-transition: 200ms ease;--qdadm-content-padding: 1rem;--qdadm-content-padding-mobile: 0.75rem}@media(max-width: 1023px){.app-layout{--qdadm-sidebar-width: 12rem}}@media(max-width: 767px){.app-layout{--qdadm-sidebar-width: 100vw}}.sidebar{transition:transform var(--qdadm-sidebar-transition),width var(--qdadm-sidebar-transition)}@media(max-width: 767px){.sidebar{transform:translateX(-100%);position:fixed;z-index:1000;box-shadow:none;width:100vw !important;height:100dvh;max-height:100dvh;overflow-y:auto}.sidebar.sidebar--open{transform:translateX(0);box-shadow:none}}.main-content{transition:margin-left var(--qdadm-sidebar-transition)}@media(max-width: 767px){.main-content{margin-left:0 !important}}.sidebar-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:99;opacity:0;transition:opacity .25s}@media(max-width: 767px){.sidebar-overlay{display:block;pointer-events:none}.sidebar-overlay.sidebar-overlay--visible{opacity:1;pointer-events:auto}}.hamburger-btn{display:none !important}@media(max-width: 767px){.hamburger-btn{display:flex !important}}@media(max-width: 767px){.page-content{padding:var(--qdadm-content-padding-mobile)}}@media(max-width: 767px){.page-header{flex-direction:column;gap:1rem;align-items:flex-start !important}}@media(max-width: 767px){.page-header .page-header-actions{width:100%;justify-content:flex-start}}.p-datatable .p-datatable-table-container{overflow-x:auto;-webkit-overflow-scrolling:touch}@media(max-width: 767px){.p-datatable .p-datatable-table{min-width:600px}}@media(max-width: 479px){.p-datatable .p-datatable-table{min-width:500px}}@media(max-width: 767px){.filter-bar{flex-wrap:wrap;gap:.75rem}}@media(max-width: 767px){.filter-bar-left{flex-wrap:wrap;gap:.5rem;width:100%}}@media(max-width: 767px){.card{border-radius:0;border:none;background:rgba(0,0,0,0);padding:0}}@media(max-width: 767px){.form-grid{grid-template-columns:1fr !important}}@media(max-width: 479px){.form-actions{flex-direction:column;gap:.5rem}.form-actions .form-actions-left{width:100%;flex-direction:column}.form-actions .p-button{width:100%;white-space:nowrap}}@media(max-width: 767px){.cards-grid{grid-template-columns:repeat(2, 1fr)}}@media(max-width: 479px){.cards-grid{grid-template-columns:1fr}}@media(max-width: 767px){.hide-mobile{display:none !important}}.hide-desktop{display:none !important}@media(max-width: 767px){.hide-desktop{display:block !important}}@media(max-width: 767px){.hide-mobile-inline{display:none !important}}.show-mobile-inline{display:none !important}@media(max-width: 767px){.show-mobile-inline{display:inline !important}}
|
|
1
|
+
:root{--fad-text-primary: var(--p-text-color);--fad-text-secondary: var(--p-text-muted-color);--fad-text-disabled: var(--p-surface-400);--fad-text-inverse: var(--p-surface-0);--fad-surface-ground: var(--p-surface-ground);--fad-surface-card: var(--p-surface-card);--fad-surface-overlay: var(--p-surface-overlay);--fad-surface-border: var(--p-surface-200);--fad-surface-hover: var(--p-surface-100);--fad-primary: var(--p-primary-color);--fad-primary-hover: var(--p-primary-600);--fad-primary-text: var(--p-primary-contrast-color);--fad-success: var(--p-green-500);--fad-warning: var(--p-orange-500);--fad-danger: var(--p-red-500);--fad-info: var(--p-blue-500);--fad-space-2xs: 0.125rem;--fad-space-xs: 0.25rem;--fad-space-sm: 0.375rem;--fad-space-md: 0.75rem;--fad-space-lg: 1rem;--fad-space-xl: 1.5rem;--fad-space-2xl: 2rem;--fad-font-family: Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;--fad-font-size-2xs: 0.6875rem;--fad-font-size-xs: 0.75rem;--fad-font-size-sm: 0.875rem;--fad-font-size-md: 0.9375rem;--fad-font-size-lg: 1rem;--fad-font-size-xl: 1.125rem;--fad-font-size-2xl: 1.25rem;--fad-font-weight-light: 300;--fad-font-weight-normal: 400;--fad-font-weight-medium: 500;--fad-font-weight-semibold: 600;--fad-font-weight-bold: 700;--fad-line-height-tight: 1.25;--fad-line-height-normal: 1.5;--fad-line-height-relaxed: 1.75;--fad-border-width: 1px;--fad-border-color: var(--fad-surface-border);--fad-radius-sm: 0.25rem;--fad-radius-md: 0.375rem;--fad-radius-lg: 0.5rem;--fad-radius-xl: 0.75rem;--fad-radius-full: 9999px;--fad-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);--fad-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);--fad-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);--fad-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);--fad-transition-instant: 50ms ease;--fad-transition-fast: 100ms ease;--fad-transition-normal: 150ms ease;--fad-transition-slow: 200ms ease;--fad-z-dropdown: 1000;--fad-z-sticky: 1020;--fad-z-fixed: 1030;--fad-z-modal-backdrop: 1040;--fad-z-modal: 1050;--fad-z-popover: 1060;--fad-z-tooltip: 1070;--fad-sidebar-width: 15rem;--fad-sidebar-width-tablet: 13rem;--fad-sidebar-width-collapsed: 2.5rem;--fad-header-height: 2.75rem;--fad-content-max-width: 87.5rem;--fad-nav-item-height: 2rem;--fad-nav-item-padding-x: 0.75rem;--fad-nav-item-padding-y: 0.5rem;--fad-nav-icon-size: 1rem;--fad-nav-section-gap: 0.5rem}.dark-mode{--fad-surface-border: var(--p-surface-700);--fad-surface-hover: var(--p-surface-800);--fad-text-disabled: var(--p-surface-500)}.d-none{display:none !important}.d-block{display:block !important}.d-flex{display:flex !important}.d-inline-flex{display:inline-flex !important}.d-grid{display:grid !important}.flex-row{flex-direction:row}.flex-column{flex-direction:column}.flex-wrap{flex-wrap:wrap}.flex-1{flex:1}.flex-auto{flex:auto}.flex-none{flex:none}.items-start{align-items:flex-start}.items-center{align-items:center}.items-end{align-items:flex-end}.items-stretch{align-items:stretch}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.gap-xs{gap:.25rem}.gap-sm{gap:.375rem}.gap-md{gap:.75rem}.gap-lg{gap:1rem}.gap-xl{gap:1.5rem}.w-full{width:100% !important}.w-auto{width:auto !important}.w-50{width:50%}.max-w-full{max-width:100%}.m-0{margin:0}.m-auto{margin:auto}.mt-0{margin-top:0}.mt-xs{margin-top:.25rem}.mt-sm{margin-top:.375rem}.mt-md{margin-top:.75rem}.mt-lg{margin-top:1rem}.mt-xl{margin-top:1.5rem}.mb-0{margin-bottom:0}.mb-xs{margin-bottom:.25rem}.mb-sm{margin-bottom:.375rem}.mb-md{margin-bottom:.75rem}.mb-lg{margin-bottom:1rem}.mb-xl{margin-bottom:1.5rem}.ml-auto{margin-left:auto}.mr-auto{margin-right:auto}.mx-auto{margin-left:auto;margin-right:auto}.p-0{padding:0}.p-xs{padding:.25rem}.p-sm{padding:.375rem}.p-md{padding:.75rem}.p-lg{padding:1rem}.p-xl{padding:1.5rem}.px-md{padding-left:.75rem;padding-right:.75rem}.py-md{padding-top:.75rem;padding-bottom:.75rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-xs{font-size:.75rem}.text-sm{font-size:.875rem}.text-md{font-size:.9375rem}.text-lg{font-size:1rem}.text-xl{font-size:1.125rem}.text-2xl{font-size:1.25rem}.font-normal{font-weight:400}.font-medium{font-weight:500}.font-semibold{font-weight:600}.font-bold{font-weight:700}.text-primary{color:var(--fad-text-primary)}.text-secondary{color:var(--fad-text-secondary)}.text-muted{color:var(--fad-text-secondary)}.text-success{color:var(--fad-success)}.text-warning{color:var(--fad-warning)}.text-danger{color:var(--fad-danger)}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.visible{visibility:visible}.invisible{visibility:hidden}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-100{opacity:1}.border{border:1px solid var(--fad-border-color)}.border-0{border:none}.border-top{border-top:1px solid var(--fad-border-color)}.border-bottom{border-bottom:1px solid var(--fad-border-color)}.rounded-sm{border-radius:.25rem}.rounded-md{border-radius:.375rem}.rounded-lg{border-radius:.5rem}.rounded-full{border-radius:9999px}.cursor-pointer{cursor:pointer}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.overflow-hidden{overflow:hidden}.overflow-auto{overflow:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-auto{overflow-x:auto}.relative{position:relative}.absolute{position:absolute}.fixed{position:fixed}.sticky{position:sticky}.fad-card{background:var(--fad-surface-card);border:1px solid var(--fad-border-color);border-radius:.5rem;padding:1rem}.fad-card-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem;padding-bottom:.75rem;border-bottom:1px solid var(--fad-border-color)}.fad-card-title{font-size:1rem;font-weight:600;color:var(--fad-text-primary);margin:0}.fad-card-body{color:var(--fad-text-primary)}.fad-card-footer{display:flex;align-items:center;justify-content:flex-end;gap:.375rem;margin-top:.75rem;padding-top:.75rem;border-top:1px solid var(--fad-border-color)}.fad-form-field{display:flex;flex-direction:column;gap:.375rem;margin-bottom:1rem}.fad-form-label{font-weight:500;color:var(--fad-text-primary);font-size:.875rem}.fad-form-label-required::after{content:" *";color:var(--fad-danger)}.fad-form-help{font-size:.75rem;color:var(--fad-text-secondary)}.fad-form-error{font-size:.75rem;color:var(--fad-danger)}.fad-form-row{display:grid;grid-template-columns:repeat(auto-fit, minmax(250px, 1fr));gap:.75rem}.fad-form-section-title{font-size:1rem;font-weight:600;color:var(--fad-text-primary);margin:1.5rem 0 .75rem 0;padding-bottom:.375rem;border-bottom:1px solid var(--fad-border-color)}.fad-form-section-title:first-child{margin-top:0}.fad-form-field--dirty{position:relative}.fad-form-field--dirty::before{content:"";position:absolute;left:-8px;top:0;bottom:0;width:3px;background:var(--fad-warning);border-radius:9999px}.fad-form-field--error .fad-form-label{color:var(--fad-danger)}.fad-page-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem;padding-bottom:.75rem}.fad-page-title{font-size:1.25rem;font-weight:600;color:var(--fad-text-primary);margin:0}.fad-page-actions{display:flex;gap:.375rem}.fad-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2rem .75rem;text-align:center;color:var(--fad-text-secondary)}.fad-empty-state-icon{font-size:3rem;opacity:.5;margin-bottom:.75rem}.fad-empty-state-title{font-size:1rem;font-weight:500;color:var(--fad-text-primary);margin:0 0 .375rem 0}.fad-empty-state-description{font-size:.875rem;max-width:400px}.fad-loading{display:flex;align-items:center;justify-content:center;padding:2rem}.fad-loading-spinner{animation:fad-spin 1s linear infinite}@keyframes fad-spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.fad-badge{display:inline-flex;align-items:center;padding:.25rem .375rem;font-size:.75rem;font-weight:500;border-radius:9999px;text-transform:uppercase;letter-spacing:.025em}.fad-badge--success{background:var(--p-green-100);color:var(--p-green-700)}.fad-badge--warning{background:var(--p-orange-100);color:var(--p-orange-700)}.fad-badge--danger{background:var(--p-red-100);color:var(--p-red-700)}.fad-badge--info{background:var(--p-blue-100);color:var(--p-blue-700)}.fad-badge--neutral{background:var(--p-surface-100);color:var(--p-surface-600)}.fad-tabs{display:flex;gap:.25rem;border-bottom:1px solid var(--fad-border-color);margin-bottom:1rem}.fad-tab{display:flex;align-items:center;gap:.25rem;padding:.375rem .75rem;font-size:.875rem;font-weight:500;color:var(--fad-text-secondary);background:rgba(0,0,0,0);border:none;border-bottom:2px solid rgba(0,0,0,0);cursor:pointer;transition:all 100ms ease;margin-bottom:-1px}.fad-tab:hover{color:var(--fad-text-primary)}.fad-tab--active{color:var(--fad-primary);border-bottom-color:var(--fad-primary)}.fad-tab-count{background:var(--p-surface-100);color:var(--fad-text-secondary);padding:.125rem .375rem;border-radius:9999px;font-size:.75rem}.fad-tab--active .fad-tab-count{background:var(--p-primary-100);color:var(--fad-primary)}.fad-page-nav{display:flex;justify-content:space-between;align-items:center;margin-bottom:.375rem}.fad-page-nav-breadcrumb{flex:1}.fad-page-nav-links{display:flex;align-items:center;gap:.375rem;font-size:.875rem}.fad-page-nav-separator{color:var(--fad-text-secondary)}.fad-page-nav-link{color:var(--fad-primary);text-decoration:none;transition:color 100ms ease}.fad-page-nav-link:hover{color:var(--fad-primary-hover);text-decoration:underline}.fad-page-nav-link--active{color:var(--fad-text-primary);font-weight:500;pointer-events:none}*{margin:0;padding:0;box-sizing:border-box}html,body,#app{height:100%;font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif}input::placeholder,textarea::placeholder,.p-inputtext::placeholder,.p-autocomplete-input::placeholder,.p-textarea::placeholder,.p-select-label.p-placeholder,.p-dropdown-label.p-placeholder{color:#a0aec0 !important;opacity:1}.page-content{flex:1;padding:1rem}.page-header{margin-bottom:1rem}.page-title{font-size:1.25rem;font-weight:600;color:var(--p-surface-900)}.header-actions{display:flex;gap:.75rem;align-items:center}.p-tabpanels{padding-top:.75rem}.p-tabpanel>.form-field:first-child,.p-tabpanel>.form-row:first-child,.p-tabpanel>.form-grid:first-child{margin-top:.375rem}.info-block{background:var(--p-surface-50);padding:1rem;border-radius:.5rem}.info-block-title{margin:0 0 .75rem 0;font-size:.9375rem;color:var(--p-surface-600)}.info-block-title i{margin-right:.375rem}.info-label{font-weight:500;color:var(--p-surface-500);display:block;margin-bottom:.25rem}.info-label-sm{font-size:.75rem;font-weight:600;color:var(--p-surface-500);text-transform:uppercase;display:block;margin-bottom:.25rem}.value-lg{font-size:1.25rem;font-weight:600}.accent-block{background:var(--p-surface-50);border-left:3px solid var(--p-primary-500);padding:.75rem;border-radius:.25rem}.code-block{word-break:break-all;font-family:ui-monospace,"Cascadia Code","Source Code Pro",Menlo,Consolas,monospace;background:var(--p-surface-100);padding:.75rem;border-radius:.25rem}.section-header{display:flex;align-items:center;gap:.375rem;margin-bottom:.75rem}.section-header h3{margin:0;font-size:.9375rem;font-weight:600}.section-header i{color:var(--p-primary-500)}.section-description{color:var(--p-surface-500);font-size:.875rem;margin-bottom:.75rem}.section-title{margin:0 0 .75rem 0;font-size:.9375rem;font-weight:600;color:var(--p-surface-700)}.section-title--separator{border-top:1px solid var(--p-surface-200);padding-top:1rem}.section-title i{margin-right:.375rem}.image-gallery{display:grid;grid-template-columns:repeat(auto-fill, minmax(200px, 1fr));gap:.75rem}.image-card{position:relative;border-radius:.5rem;overflow:hidden;border:1px solid var(--p-surface-200)}.image-card img{width:100%;aspect-ratio:16/9;object-fit:cover}.image-card--clickable{cursor:pointer;transition:border-color 150ms ease,box-shadow 150ms ease}.image-card--clickable:hover{border-color:var(--p-primary-300);box-shadow:0 2px 8px rgba(0,0,0,.1)}.image-caption{padding:.375rem;background:var(--p-surface-50);font-size:.75rem;color:var(--p-surface-600)}.info-row{display:flex;justify-content:space-between;align-items:center;padding:.375rem 0;border-bottom:1px solid var(--p-surface-100)}.info-row:last-child{border-bottom:none}.layout-breadcrumb{padding:.75rem 1rem;background:var(--p-surface-0, white);border-bottom:1px solid var(--p-surface-200, #e2e8f0)}.layout-breadcrumb .p-breadcrumb-list{margin:0;padding:0}.breadcrumb-link{display:flex;align-items:center;gap:.375rem;color:var(--p-primary-600, #2563eb);text-decoration:none;font-size:.875rem}.breadcrumb-link:hover{text-decoration:underline}.breadcrumb-link i{font-size:.875rem}.breadcrumb-current{display:flex;align-items:center;gap:.375rem;color:var(--p-surface-600, #475569);font-size:.875rem}.breadcrumb-current i{font-size:.875rem}.breadcrumb{margin-bottom:.5rem}.breadcrumb-list{display:flex;align-items:center;gap:.5rem;list-style:none;margin:0;padding:0;font-size:.875rem}.breadcrumb-item{display:flex;align-items:center;gap:.5rem}.breadcrumb-item.is-current .breadcrumb-text{color:var(--p-text-color, #333);font-weight:500}.breadcrumb-separator{font-size:.75rem;color:var(--p-text-muted-color, #888)}.breadcrumb-item .breadcrumb-link{display:flex;align-items:center;gap:.375rem;color:var(--p-primary-color, #3b82f6);text-decoration:none;transition:color .2s}.breadcrumb-item .breadcrumb-link:hover{color:var(--p-primary-hover-color, #2563eb);text-decoration:underline}.breadcrumb-item .breadcrumb-link i{font-size:.875rem}.breadcrumb-text{display:flex;align-items:center;gap:.375rem;color:var(--p-text-muted-color, #888)}.form-grid{display:grid;grid-template-columns:repeat(2, 1fr);gap:1rem;padding:.75rem 0}@media(max-width: 767px){.form-grid{grid-template-columns:1fr}}.form-row{display:grid;grid-template-columns:repeat(2, 1fr);gap:1rem;align-items:end}.form-row-3{display:grid;grid-template-columns:repeat(3, 1fr);gap:.75rem;align-items:end}.form-row.metadata{display:grid;grid-template-columns:repeat(4, 1fr);gap:.75rem;padding:.75rem;background:var(--p-surface-50);border-radius:.5rem;align-items:end}.form-row.checkboxes{display:flex;gap:3rem}.form-row+.form-field,.form-field+.form-row{margin-top:1.25rem}.form-field{display:flex;flex-direction:column;gap:.375rem}.form-field label{font-weight:500;color:var(--p-surface-700)}.form-field small{color:var(--p-surface-500);font-size:.85rem}.form-field .p-inputtext,.form-field .p-textarea,.form-field .p-select,.form-field .p-multiselect,.form-field .p-inputwrapper,.form-field input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),.form-field textarea{width:100% !important;box-sizing:border-box}.form-field>input[type=checkbox],.form-field>input[type=radio]{align-self:flex-start}.form-field .p-textarea,.form-field textarea{min-height:100px;resize:vertical}.meta-item{display:flex;flex-direction:column;gap:.25rem}.meta-item label{font-size:.85rem;color:var(--p-surface-500)}.meta-item span{font-weight:500}.toggle-field{flex-direction:row;align-items:center;gap:.75rem}.toggle-field label{min-width:120px}.checkbox-field{display:flex;align-items:center;gap:.375rem}.checkbox-field label{margin:0;cursor:pointer}.url-field,.lock-field,.envelope-field{display:flex;gap:.375rem;align-items:center}.url-field input,.lock-field input,.envelope-field input{flex:1}.field-hint,.form-hint{font-size:.8rem;color:var(--p-surface-400);margin-top:.25rem;display:block}.field-error{font-size:.8rem;color:var(--p-red-500);margin-top:.25rem;display:block}.editor-box{border:1px solid var(--p-surface-200);border-radius:.5rem;padding:.75rem;background:var(--p-surface-50)}.editor-chips{display:flex;flex-wrap:wrap;gap:.375rem;margin-bottom:.75rem;padding-bottom:.75rem;border-bottom:1px solid var(--p-surface-200)}.chip-code{font-family:ui-monospace,"Cascadia Code","Source Code Pro",Menlo,Consolas,monospace;font-size:.875rem}.chip-namespace{color:var(--p-surface-500)}.chip-action{color:var(--p-primary-600);font-weight:500}.chip-wildcard{color:var(--p-orange-500);font-weight:700}.info-grid{display:grid;grid-template-columns:repeat(2, 1fr);gap:.75rem}.info-grid>div{display:flex;flex-direction:column;gap:.25rem}.info-grid label{font-size:.85rem;color:var(--p-surface-500)}.info-item{display:flex;flex-direction:column;gap:.25rem}.info-item label{font-size:.75rem;font-weight:600;color:var(--p-surface-500);text-transform:uppercase}.info-value{font-size:.9rem}.timestamps-grid{display:grid;grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));gap:.75rem}.timestamps-grid--separator{padding-top:.75rem;border-top:1px solid var(--p-surface-200)}.timestamp{display:flex;flex-direction:column;gap:.25rem}.timestamp label{font-size:.75rem;color:var(--text-color-secondary);text-transform:uppercase}.form-dirty-indicator{display:flex;align-items:center;gap:.375rem;padding:.375rem .75rem;background:color-mix(in srgb, var(--p-orange-100) 50%, transparent);border:1px solid var(--p-orange-300);border-radius:.375rem;color:var(--p-orange-700);font-size:.875rem;margin-bottom:.75rem}.form-dirty-indicator i{color:var(--p-orange-500)}.form-field.field-dirty .p-inputtext,.form-field.field-dirty .p-select,.form-field.field-dirty .p-textarea,.form-field.field-dirty .p-password input,.form-field.field-dirty .p-multiselect,.form-field.field-dirty .p-calendar input,.form-field.field-dirty .p-inputnumber input,.form-field.field-dirty .p-dropdown{border-color:#f97316 !important;box-shadow:0 0 0 1px #f97316 !important}.form-card{background:var(--p-surface-0);padding:1.5rem;border-radius:.5rem}.config-intro{display:flex;align-items:flex-start;gap:.75rem;padding:.75rem;background:var(--p-surface-50);border-radius:.5rem;margin-bottom:1rem}.config-intro i{font-size:1.25rem;color:var(--p-primary-500);margin-top:.125rem}.config-field{margin-bottom:1rem}.form-actions{display:flex;justify-content:space-between;align-items:center;margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid var(--p-surface-200)}.form-actions-left{display:flex;align-items:center;gap:.5rem}.dirty-indicator{color:var(--p-orange-500);font-size:.5rem;animation:pulse 2s infinite}@keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}.field-invalid input,.field-invalid textarea,.field-invalid .p-inputtext,.field-invalid .p-select,.field-invalid .p-dropdown{border-color:var(--p-red-500)}.field-invalid input:focus,.field-invalid textarea:focus,.field-invalid .p-inputtext:focus,.field-invalid .p-select:focus,.field-invalid .p-dropdown:focus{box-shadow:0 0 0 1px var(--p-red-500)}.form-page{display:flex;flex-direction:column;gap:1rem}.form-error-message{margin:1rem 0}.validation-summary{margin-bottom:1rem}.validation-errors{margin:0;padding-left:1.5rem}.validation-errors li{margin:.25rem 0}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));gap:1rem;margin-bottom:1.5rem}.stat-card{background:var(--p-surface-0);border-radius:.5rem;padding:1rem;border:1px solid var(--p-surface-200)}.stat-card-title{font-size:.875rem;color:var(--p-surface-500);margin-bottom:.375rem}.stat-card-value{font-size:2rem;font-weight:600;color:var(--p-surface-900)}.stat-card-subtitle{font-size:.75rem;color:var(--p-surface-400);margin-top:.25rem}.loading-state{display:flex;justify-content:center;align-items:center;padding:2rem}.loading-state--inline{padding:.75rem;gap:.75rem;color:var(--p-text-muted-color)}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:2rem;color:var(--text-color-secondary)}.empty-state--sm{padding:1rem}.empty-state--lg{padding:3rem}.empty-state-icon{font-size:2rem;margin-bottom:.5rem;opacity:.5}.empty-state--sm .empty-state-icon{font-size:1.5rem}.empty-state--lg .empty-state-icon{font-size:3rem;margin-bottom:1rem}.empty-state-title{margin:0 0 .25rem 0;font-weight:500;color:var(--text-color-secondary)}.empty-state--lg .empty-state-title{font-size:1.1rem}.empty-state-description{opacity:.7;max-width:300px}.empty-state-actions{margin-top:1rem}.error-message{background:var(--p-red-50);border:1px solid var(--p-red-200);border-radius:.375rem;padding:.75rem .75rem;color:var(--p-red-700);font-family:ui-monospace,"Cascadia Code","Source Code Pro",Menlo,Consolas,monospace;font-size:.85rem;white-space:pre-wrap;word-break:break-word}.error-content{background:var(--p-red-50);color:var(--p-red-700);padding:.75rem;border-radius:.5rem;overflow-x:auto;margin:0;font-size:.85rem;white-space:pre-wrap}:root[data-theme=dark] .error-message,:root[data-theme=dark] .error-content{background:rgba(239,68,68,.1);color:var(--p-red-400);border-color:var(--p-red-900)}.p-datatable .p-datatable-tbody>tr>td{padding:.5rem .75rem !important}.p-datatable .p-datatable-thead>tr>th{padding:.625rem .75rem !important}.table-actions{display:flex;gap:.25rem;justify-content:flex-start}.text-muted{color:var(--p-surface-400)}.status-tags,.type-tags{display:flex;gap:.25rem;flex-wrap:wrap}.external-link{display:flex;align-items:center;gap:.375rem;color:var(--p-primary-500);text-decoration:none}.external-link:hover{text-decoration:underline}.external-link i{font-size:.75rem;opacity:.6}.domain-cell{display:flex;align-items:center}.domain-link{display:flex;align-items:center;gap:.375rem;color:var(--p-primary-500);text-decoration:none}.domain-link:hover{text-decoration:underline}.domain-link i{font-size:.75rem;opacity:.6}.domain-tags{display:flex;gap:.25rem}.clickable-cell{cursor:pointer;color:var(--p-primary-color)}.clickable-cell:hover{text-decoration:underline}.entity-link{display:flex;align-items:center;gap:.375rem;text-decoration:none;color:var(--p-primary-color)}.entity-link:hover{text-decoration:underline}.entity-type{font-weight:500}.entity-id{font-size:.75rem;background:var(--p-surface-100);padding:.15rem .35rem;border-radius:3px}.tags-preview{display:flex;gap:.25rem;flex-wrap:wrap}.tags-preview .p-tag{font-size:.75rem}.p-role-label,.p-permission-label{display:inline-flex;align-items:center;background:rgba(0,0,0,0);font-size:.75rem;font-weight:normal !important;padding:.25rem .75rem;border-radius:var(--p-tag-border-radius, 6px);white-space:nowrap}.p-role-label--pill,.p-permission-label--pill{border-radius:999px}.p-role-label--more,.p-permission-label--more{border-style:dashed}.p-role-label{border:1px solid var(--p-blue-500);color:var(--p-blue-600)}.p-permission-label{border:1px solid var(--p-surface-400);color:var(--p-surface-600)}.p-role-labels,.p-permission-labels{display:flex;flex-wrap:wrap;gap:.25rem}.p-chip{background:none !important;border:1px solid var(--p-surface-300) !important;color:var(--p-surface-600) !important;font-size:.75rem !important;padding:.2rem .6rem !important}.datatable-row-clickable .p-datatable-tbody>tr{cursor:pointer}.datatable-row-clickable .p-datatable-tbody>tr:active{background:var(--p-primary-50) !important}.filter-bar{display:flex;justify-content:space-between;align-items:center;gap:.75rem;margin-bottom:.75rem}.filter-bar-left{display:flex;align-items:center;gap:.75rem}.filter-bar-right{display:flex;align-items:center;gap:.75rem}.p-select.filter-default,.p-autocomplete.filter-default .p-inputtext{border-color:var(--p-primary-400, #60a5fa) !important;box-shadow:0 0 0 1px var(--p-primary-400, #60a5fa) !important}.p-select.filter-modified,.p-autocomplete.filter-modified .p-inputtext{border-color:#f97316 !important;box-shadow:0 0 0 1px #f97316 !important}.p-select.filter-active,.p-inputtext.filter-active{border-color:#f97316 !important;box-shadow:0 0 0 1px #f97316 !important}.filter-bar .p-button,.filter-bar-left .p-button,.flex.align-items-end .p-button,.flex.items-end .p-button{height:2.5rem;align-self:flex-end;margin-bottom:0}.spinner-lg{font-size:2rem}.spinner-md{font-size:1.5rem}.card{background:var(--p-surface-0);border-radius:.5rem;padding:1rem;border:1px solid var(--p-surface-200)}.info-card{background:var(--p-surface-50);padding:.75rem;border-radius:.5rem}.card-title{display:flex;align-items:center;justify-content:space-between}.card h3,.card-heading{margin:0 0 .75rem;font-size:.9375rem;font-weight:600;color:var(--p-surface-700)}.warning-card{background:var(--p-yellow-50);padding:.75rem;border-radius:.5rem;border:1px solid var(--p-yellow-200)}.warning-card i{color:var(--p-yellow-600)}.warning-card span{margin-left:.375rem;color:var(--p-yellow-700)}.span-full{grid-column:1/-1}.grid{display:grid}.grid-cols-2{grid-template-columns:repeat(2, 1fr)}.grid-cols-3{grid-template-columns:repeat(3, 1fr)}.text-uppercase{text-transform:uppercase}.text-center{text-align:center}.monospace{font-family:ui-monospace,"Cascadia Code","Source Code Pro",Menlo,Consolas,monospace}.break-all{word-break:break-all}.w-full{width:100% !important}.mb-0{margin-bottom:0}.mb-1{margin-bottom:.375rem}.mb-2{margin-bottom:.75rem}.mb-3{margin-bottom:1rem}.mt-0{margin-top:0}.mt-1{margin-top:.375rem}.mt-2{margin-top:.75rem}.p-2{padding:.75rem}.p-3{padding:1rem}.pt-2{padding-top:.75rem}.gap-1{gap:.375rem}.gap-2{gap:.75rem}.gap-3{gap:1rem}.flex{display:flex}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.flex-1{flex:1}.alert-warning{background:var(--p-yellow-50);padding:.75rem;margin-bottom:.75rem;border-radius:.5rem;border:1px solid var(--p-yellow-200)}.alert-warning-icon{color:var(--p-yellow-600)}.alert-warning-text{margin-left:.375rem;color:var(--p-yellow-700)}.alert-info{color:var(--p-orange-600);margin-bottom:.75rem}.key-info-panel{background:var(--p-surface-50);padding:.75rem;margin-bottom:.75rem;border-radius:.5rem}.key-info-grid{display:flex;flex-wrap:wrap;gap:1.5rem;align-items:center}.key-info-item small{color:var(--p-surface-500);display:block}.info-banner{margin-top:.75rem;margin-bottom:.75rem}.info-banner:first-child{margin-top:0}.info-banner .p-message-content{padding:.375rem .75rem}.info-banner .p-message-icon{display:none}.info-banner-content{display:flex;align-items:center;gap:.625rem}.info-banner-icon{font-size:1.125rem;flex-shrink:0}.info-banner-text{flex:1}.info-banner-text strong{font-weight:600}.p-toast.p-toast-top-right,.p-toast.p-toast-top-left,.p-toast.p-toast-top-center{top:calc(var(--qd-banner-height, 0px) + 20px) !important}.p-button{background:rgba(0,0,0,0) !important;border:1px solid var(--p-primary-500) !important;color:var(--p-primary-500) !important;transition:background-color .2s,border-color .2s,color .2s}.p-button:hover:not(:disabled){background:var(--p-primary-50) !important;border-color:var(--p-primary-600) !important;color:var(--p-primary-600) !important}.p-button:focus{box-shadow:0 0 0 2px var(--p-surface-0),0 0 0 4px var(--p-primary-200)}.p-button:disabled{opacity:.6;cursor:not-allowed}.p-button-secondary{border-color:var(--p-surface-400) !important;color:var(--p-surface-600) !important}.p-button-secondary:hover:not(:disabled){background:var(--p-surface-100) !important;border-color:var(--p-surface-500) !important;color:var(--p-surface-700) !important}.p-button-secondary:focus{box-shadow:0 0 0 2px var(--p-surface-0),0 0 0 4px var(--p-surface-200)}.p-button-success{border-color:var(--p-green-500) !important;color:var(--p-green-600) !important}.p-button-success:hover:not(:disabled){background:var(--p-green-50) !important;border-color:var(--p-green-600) !important;color:var(--p-green-700) !important}.p-button-success:focus{box-shadow:0 0 0 2px var(--p-surface-0),0 0 0 4px var(--p-green-200)}.p-button-warn{border-color:var(--p-orange-500) !important;color:var(--p-orange-600) !important}.p-button-warn:hover:not(:disabled){background:var(--p-orange-50) !important;border-color:var(--p-orange-600) !important;color:var(--p-orange-700) !important}.p-button-warn:focus{box-shadow:0 0 0 2px var(--p-surface-0),0 0 0 4px var(--p-orange-200)}.p-button-danger{border-color:var(--p-red-500) !important;color:var(--p-red-600) !important}.p-button-danger:hover:not(:disabled){background:var(--p-red-50) !important;border-color:var(--p-red-600) !important;color:var(--p-red-700) !important}.p-button-danger:focus{box-shadow:0 0 0 2px var(--p-surface-0),0 0 0 4px var(--p-red-200)}.p-button-info{border-color:var(--p-blue-500) !important;color:var(--p-blue-600) !important}.p-button-info:hover:not(:disabled){background:var(--p-blue-50) !important;border-color:var(--p-blue-600) !important;color:var(--p-blue-700) !important}.p-button-info:focus{box-shadow:0 0 0 2px var(--p-surface-0),0 0 0 4px var(--p-blue-200)}.p-button-contrast{border-color:var(--p-surface-900) !important;color:var(--p-surface-900) !important}.p-button-contrast:hover:not(:disabled){background:var(--p-surface-900) !important;border-color:var(--p-surface-900) !important;color:var(--p-surface-0) !important}.p-button-filled,.p-button.p-button-raised{background:var(--p-primary-500) !important;border-color:var(--p-primary-500) !important;color:#fff !important}.p-button-filled:hover:not(:disabled),.p-button.p-button-raised:hover:not(:disabled){background:var(--p-primary-600) !important;border-color:var(--p-primary-600) !important;color:#fff !important}.p-button-filled.p-button-secondary,.p-button.p-button-raised.p-button-secondary{background:var(--p-surface-500) !important;border-color:var(--p-surface-500) !important;color:#fff !important}.p-button-filled.p-button-secondary:hover:not(:disabled),.p-button.p-button-raised.p-button-secondary:hover:not(:disabled){background:var(--p-surface-600) !important;border-color:var(--p-surface-600) !important}.p-button-filled.p-button-success,.p-button.p-button-raised.p-button-success{background:var(--p-green-500) !important;border-color:var(--p-green-500) !important;color:#fff !important}.p-button-filled.p-button-success:hover:not(:disabled),.p-button.p-button-raised.p-button-success:hover:not(:disabled){background:var(--p-green-600) !important;border-color:var(--p-green-600) !important}.p-button-filled.p-button-warn,.p-button.p-button-raised.p-button-warn{background:var(--p-orange-500) !important;border-color:var(--p-orange-500) !important;color:#fff !important}.p-button-filled.p-button-warn:hover:not(:disabled),.p-button.p-button-raised.p-button-warn:hover:not(:disabled){background:var(--p-orange-600) !important;border-color:var(--p-orange-600) !important}.p-button-filled.p-button-danger,.p-button.p-button-raised.p-button-danger{background:var(--p-red-500) !important;border-color:var(--p-red-500) !important;color:#fff !important}.p-button-filled.p-button-danger:hover:not(:disabled),.p-button.p-button-raised.p-button-danger:hover:not(:disabled){background:var(--p-red-600) !important;border-color:var(--p-red-600) !important}.p-button-text{background:rgba(0,0,0,0) !important;border-color:rgba(0,0,0,0) !important}.p-button-text:hover:not(:disabled){background:var(--p-primary-50) !important;border-color:rgba(0,0,0,0) !important}.p-button-text.p-button-secondary:hover:not(:disabled){background:var(--p-surface-100) !important}.p-button-text.p-button-success:hover:not(:disabled){background:var(--p-green-50) !important}.p-button-text.p-button-warn:hover:not(:disabled){background:var(--p-orange-50) !important}.p-button-text.p-button-danger:hover:not(:disabled){background:var(--p-red-50) !important}.p-button-link{background:rgba(0,0,0,0) !important;border-color:rgba(0,0,0,0) !important;color:var(--p-primary-500) !important;text-decoration:none}.p-button-link:hover:not(:disabled){background:rgba(0,0,0,0) !important;border-color:rgba(0,0,0,0) !important;text-decoration:underline}.p-button-icon-only{background:unset !important;border:unset !important;color:unset !important}.p-button-icon-only:hover:not(:disabled){background:unset !important;border-color:unset !important;color:unset !important}.p-button-sm{font-size:.875rem;padding:.375rem .75rem}.p-button-lg{font-size:1rem;padding:.75rem 1.25rem}.p-tag{background:rgba(0,0,0,0) !important;border:1px solid var(--p-primary-500) !important;color:var(--p-primary-500) !important;font-weight:normal !important;white-space:nowrap}.p-tag-secondary{background:rgba(0,0,0,0) !important;border-color:var(--p-surface-400) !important;color:var(--p-surface-600) !important}.p-tag-success{background:rgba(0,0,0,0) !important;border-color:var(--p-green-500) !important;color:var(--p-green-600) !important}.p-tag-warn{background:rgba(0,0,0,0) !important;border-color:var(--p-orange-500) !important;color:var(--p-orange-600) !important}.p-tag-danger{background:rgba(0,0,0,0) !important;border-color:var(--p-red-500) !important;color:var(--p-red-600) !important}.p-tag-info{background:rgba(0,0,0,0) !important;border-color:var(--p-blue-500) !important;color:var(--p-blue-600) !important}.p-tag-contrast{background:rgba(0,0,0,0) !important;border-color:var(--p-surface-900) !important;color:var(--p-surface-900) !important}.p-splitbutton .p-splitbutton-defaultbutton{border:1px solid var(--p-primary-500) !important;border-right:none !important;border-top-right-radius:0 !important;border-bottom-right-radius:0 !important;background:rgba(0,0,0,0) !important;color:var(--p-primary-500) !important}.p-splitbutton .p-splitbutton-defaultbutton:hover:not(:disabled){background:var(--p-primary-50) !important}.p-splitbutton .p-splitbutton-dropdown{border:1px solid var(--p-primary-500) !important;border-left:none !important;border-top-left-radius:0 !important;border-bottom-left-radius:0 !important;background:rgba(0,0,0,0) !important;color:var(--p-primary-500) !important}.p-splitbutton .p-splitbutton-dropdown:hover:not(:disabled){background:var(--p-primary-50) !important}.p-splitbutton.p-splitbutton-danger .p-splitbutton-defaultbutton,.p-splitbutton.p-splitbutton-danger .p-splitbutton-dropdown{border-color:var(--p-red-500) !important;color:var(--p-red-600) !important}.p-splitbutton.p-splitbutton-danger .p-splitbutton-defaultbutton:hover:not(:disabled),.p-splitbutton.p-splitbutton-danger .p-splitbutton-dropdown:hover:not(:disabled){background:var(--p-red-50) !important}.p-splitbutton.p-splitbutton-secondary .p-splitbutton-defaultbutton,.p-splitbutton.p-splitbutton-secondary .p-splitbutton-dropdown{border-color:var(--p-surface-400) !important;color:var(--p-surface-600) !important}.p-splitbutton.p-splitbutton-secondary .p-splitbutton-defaultbutton:hover:not(:disabled),.p-splitbutton.p-splitbutton-secondary .p-splitbutton-dropdown:hover:not(:disabled){background:var(--p-surface-100) !important}.p-splitbutton.p-splitbutton-success .p-splitbutton-defaultbutton,.p-splitbutton.p-splitbutton-success .p-splitbutton-dropdown{border-color:var(--p-green-500) !important;color:var(--p-green-600) !important}.p-splitbutton.p-splitbutton-success .p-splitbutton-defaultbutton:hover:not(:disabled),.p-splitbutton.p-splitbutton-success .p-splitbutton-dropdown:hover:not(:disabled){background:var(--p-green-50) !important}.cards-grid{display:grid;gap:1rem;margin-bottom:1.5rem}.cards-grid--cols-auto{grid-template-columns:repeat(auto-fit, minmax(180px, 1fr))}.cards-grid--cols-2{grid-template-columns:repeat(2, 1fr)}.cards-grid--cols-3{grid-template-columns:repeat(3, 1fr)}.cards-grid--cols-4{grid-template-columns:repeat(4, 1fr)}.stat-card,.card-custom{background:var(--p-surface-0);border:1px solid var(--p-surface-200);border-radius:.5rem;padding:1.25rem}.stat-card{text-align:center}.stat-card--clickable{cursor:pointer;transition:border-color .2s,box-shadow .2s}.stat-card--clickable:hover{border-color:var(--p-primary-300);box-shadow:0 2px 8px rgba(0,0,0,.08)}.stat-value{font-size:2rem;font-weight:600;color:var(--p-primary-500);display:flex;align-items:center;justify-content:center;gap:.5rem}.stat-value--success{color:var(--p-green-500)}.stat-value--danger{color:var(--p-red-500)}.stat-value--warning{color:var(--p-orange-500)}.stat-value--info{color:var(--p-blue-500)}.stat-icon{font-size:1.5rem}.stat-label{font-size:.875rem;color:var(--p-surface-600);margin-top:.25rem}@media(max-width: 768px){.cards-grid--cols-3,.cards-grid--cols-4{grid-template-columns:repeat(2, 1fr)}}@media(max-width: 480px){.cards-grid{grid-template-columns:1fr}}.rich-cards-grid{display:grid;gap:1rem;margin-bottom:1.5rem}.rich-cards-grid--cols-auto{grid-template-columns:repeat(auto-fit, minmax(200px, 1fr))}.rich-cards-grid--cols-2{grid-template-columns:repeat(2, 1fr)}.rich-cards-grid--cols-3{grid-template-columns:repeat(3, 1fr)}.rich-cards-grid--cols-4{grid-template-columns:repeat(4, 1fr)}.rich-cards-grid--cols-5{grid-template-columns:repeat(5, 1fr)}.rich-cards-grid--cols-6{grid-template-columns:repeat(6, 1fr)}.rich-card{background:var(--p-surface-0);border:1px solid var(--p-surface-200);border-radius:.5rem;padding:1.25rem}.rich-card--clickable{cursor:pointer;transition:border-color .2s,box-shadow .2s,transform .2s}.rich-card--clickable:hover{border-color:var(--p-primary-300);box-shadow:0 4px 12px rgba(0,0,0,.1);transform:translateY(-2px)}.rich-card--success .rich-card-value{color:var(--p-green-600)}.rich-card--success .rich-card-icon{color:var(--p-green-500)}.rich-card--danger .rich-card-value{color:var(--p-red-600)}.rich-card--danger .rich-card-icon{color:var(--p-red-500)}.rich-card--warning .rich-card-value{color:var(--p-orange-600)}.rich-card--warning .rich-card-icon{color:var(--p-orange-500)}.rich-card--info .rich-card-value{color:var(--p-blue-600)}.rich-card--info .rich-card-icon{color:var(--p-blue-500)}.rich-card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem}.rich-card-title{font-size:.875rem;font-weight:500;color:var(--p-surface-600)}.rich-card-icon{font-size:1.25rem;color:var(--p-surface-400)}.rich-card-value{font-size:2rem;font-weight:700;color:var(--p-surface-900);line-height:1.2}.rich-card-subtitle{font-size:.8rem;color:var(--p-surface-500);margin-top:.25rem}@media(max-width: 1024px){.rich-cards-grid--cols-5,.rich-cards-grid--cols-6{grid-template-columns:repeat(3, 1fr)}}@media(max-width: 768px){.rich-cards-grid--cols-3,.rich-cards-grid--cols-4,.rich-cards-grid--cols-5,.rich-cards-grid--cols-6{grid-template-columns:repeat(2, 1fr)}}@media(max-width: 480px){.rich-cards-grid{grid-template-columns:1fr}}.code-box{word-break:break-all;font-family:ui-monospace,"Cascadia Code","Source Code Pro",Menlo,Consolas,monospace;background:var(--p-surface-100);padding:.75rem;border-radius:.25rem}.code-box--sm{padding:.375rem;font-size:.875rem}.tag-sm{font-size:.7rem}.tag-xs{font-size:.75rem}.tags-constrained{max-width:300px}.json-viewer{background:var(--p-surface-50);border:1px solid var(--p-surface-200);border-radius:.375rem;overflow:auto;font-family:"Monaco","Menlo","Ubuntu Mono",monospace;font-size:.8125rem;line-height:1.5}.json-content{padding:1rem;margin:0;white-space:pre-wrap;word-break:break-word}.json-key{color:#881391}.json-string{color:#1a1aa6}.json-number{color:#1c00cf}.json-boolean{color:#0d22aa;font-weight:500}.json-null{color:gray;font-style:italic}.qd-log-stream{--qd-log-bg: #1e1e1e;--qd-log-fg: #d4d4d4;--qd-log-muted: #858585;--qd-log-mark: rgba(255, 213, 79, 0.45);--qd-log-error-bg: rgba(241, 76, 76, 0.14);--qd-log-current: rgba(59, 142, 234, 0.3);position:relative;display:flex;flex-direction:column;border:1px solid var(--p-surface-300);border-radius:.25rem;overflow:hidden;min-width:0}.qd-log-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem .5rem;padding:.25rem .5rem;background:var(--p-surface-50);border-bottom:1px solid var(--p-surface-200);font-size:.875rem}.qd-log-spacer-x{flex:1}.qd-log-status{display:inline-flex;align-items:center;gap:.375rem;font-weight:500}.qd-log-status-dot{width:.5rem;height:.5rem;border-radius:50%;background:var(--p-surface-400)}.qd-log-status--streaming .qd-log-status-dot{background:var(--p-green-500);animation:qd-log-pulse 1.2s ease-in-out infinite}.qd-log-status--done .qd-log-status-dot{background:var(--p-blue-500)}.qd-log-status--error .qd-log-status-dot{background:var(--p-red-500)}@keyframes qd-log-pulse{50%{opacity:.3}}.qd-log-count,.qd-log-search-count{color:var(--p-text-muted-color);font-size:.75rem;font-variant-numeric:tabular-nums}.qd-log-copy-status{color:var(--p-green-600);font-size:.75rem}.qd-log-copy-status:empty{display:none}.qd-log-copy-status--error{color:var(--p-red-500)}.qd-log-search{display:inline-flex;align-items:center;gap:.125rem}.qd-log-search .p-inputtext{width:12rem;max-width:40vw}.qd-log-viewport{overflow:auto;background:var(--qd-log-bg);color:var(--qd-log-fg);font-family:ui-monospace,"Cascadia Code","Source Code Pro",Menlo,Consolas,monospace;font-size:.8125rem;line-height:var(--qd-log-line-height, 20px);outline:none}.qd-log-empty{padding:.75rem 1rem;color:var(--qd-log-muted);font-style:italic}.qd-log-line{display:flex;height:var(--qd-log-line-height, 20px);white-space:pre;padding-right:.75rem}.qd-log-line--error{background:var(--qd-log-error-bg)}.qd-log-line--current{background:var(--qd-log-current)}.qd-log-stream--wrap .qd-log-line{height:auto;min-height:var(--qd-log-line-height, 20px);white-space:pre-wrap;word-break:break-word;content-visibility:auto;contain-intrinsic-size:auto var(--qd-log-line-height, 20px)}.qd-log-n{flex:none;min-width:3.5rem;padding:0 .75rem 0 .5rem;text-align:right;color:var(--qd-log-muted);user-select:none}.qd-log-text{flex:1;min-width:0}.qd-log-ts{color:var(--qd-log-muted)}.qd-log-mark{background:var(--qd-log-mark);border-radius:2px}.qd-log-resume{position:absolute;bottom:.75rem;left:50%;transform:translateX(-50%);display:inline-flex;align-items:center;gap:.375rem;padding:.25rem .75rem;border:none;border-radius:999px;background:var(--p-primary-color);color:var(--p-primary-contrast-color);font-size:.75rem;cursor:pointer;box-shadow:0 2px 6px rgba(0,0,0,.3)}.qd-timeline{position:relative;min-width:0}.qd-timeline-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin-bottom:.75rem}.qd-timeline-actors,.qd-timeline-gaps{display:flex;flex-wrap:wrap;gap:.375rem}.qd-timeline-gaps{margin-left:auto}.qd-timeline-chip{display:inline-flex;align-items:center;gap:.375rem;padding:.125rem .625rem;border:1px solid var(--qd-actor);border-radius:999px;background:color-mix(in srgb, var(--qd-actor) 14%, transparent);color:var(--p-text-color);font-size:.75rem;cursor:pointer}.qd-timeline-chip i{color:var(--qd-actor);font-size:.75rem}.qd-timeline-chip--off{opacity:.45;background:rgba(0,0,0,0);text-decoration:line-through}.qd-timeline-gap-chip{display:inline-flex;align-items:center;gap:.375rem;padding:.125rem .625rem;border-radius:999px;background:var(--p-surface-100);font-size:.75rem}.qd-timeline-error{color:var(--p-red-500);margin-bottom:.5rem}.qd-timeline-empty{color:var(--p-text-muted-color);font-style:italic;padding:.5rem 0}.qd-timeline-list{list-style:none;margin:0;padding:0}.qd-timeline-day{margin:.75rem 0 .25rem;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--p-text-muted-color)}.qd-timeline-day:first-child{margin-top:0}.qd-timeline-event{position:relative;display:flex;gap:.75rem;padding:0 0 .75rem}.qd-timeline-event::before{content:"";position:absolute;left:.875rem;top:1.75rem;bottom:0;width:2px;background:var(--p-surface-200)}.qd-timeline-event:last-child::before{display:none}.qd-timeline-event--fresh .qd-timeline-content{animation:qd-timeline-flash 2.5s ease-out}@keyframes qd-timeline-flash{0%{background:color-mix(in srgb, var(--p-primary-color) 22%, transparent)}100%{background:rgba(0,0,0,0)}}.qd-timeline-since{position:absolute;left:2.5rem;top:-0.7rem;font-size:.6875rem;color:var(--p-text-muted-color)}.qd-timeline-marker{flex:none;display:inline-flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;border-radius:50%;background:var(--qd-actor);color:#fff;font-size:.8125rem;z-index:1}.qd-timeline-content{flex:1;min-width:0;border-radius:.25rem}.qd-timeline-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:.25rem .625rem;width:100%;padding:.25rem .375rem;border:none;border-radius:.25rem;background:rgba(0,0,0,0);color:inherit;font:inherit;text-align:left}.qd-timeline-head:is(button){cursor:pointer}.qd-timeline-head:is(button):hover{background:var(--p-surface-100)}.qd-timeline-title{font-weight:600}.qd-timeline-event--danger .qd-timeline-title{color:var(--p-red-600)}.qd-timeline-event--warn .qd-timeline-title{color:var(--p-orange-600)}.qd-timeline-event--success .qd-timeline-title{color:var(--p-green-600)}.qd-timeline-actor{font-size:.75rem;color:var(--qd-actor);font-weight:500}.qd-timeline-time{margin-left:auto;font-size:.75rem;color:var(--p-text-muted-color);font-variant-numeric:tabular-nums}.qd-timeline-chevron{font-size:.75rem;color:var(--p-text-muted-color)}.qd-timeline-detail{padding:.5rem .375rem .25rem}.qd-timeline-absolute{font-size:.75rem;color:var(--p-text-muted-color);margin-bottom:.5rem}.qd-timeline-new{position:absolute;left:50%;bottom:.75rem;transform:translateX(-50%)}.qd-payload{--pl-tag: #22863a;--pl-attr: #6f42c1;--pl-value: #032f62;--pl-comment: #6a737d;--pl-ins-bg: rgba(46, 160, 67, 0.16);--pl-del-bg: rgba(248, 81, 73, 0.16);border:1px solid var(--p-surface-200);border-radius:.25rem;overflow:hidden;min-width:0;background:var(--p-surface-0)}.qd-payload-request{padding:.5rem .75rem;border-bottom:1px solid var(--p-surface-200);background:var(--p-surface-50);font-size:.875rem}.qd-payload-line{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;min-width:0}.pl-method{font-weight:700;font-family:ui-monospace,"Cascadia Code","Source Code Pro",Menlo,Consolas,monospace}.pl-url{font-family:ui-monospace,"Cascadia Code","Source Code Pro",Menlo,Consolas,monospace;word-break:break-all;min-width:0}.pl-status{padding:0 .5rem;border-radius:999px;font-weight:600;font-size:.75rem;background:var(--p-surface-200)}.pl-status--ok{background:var(--p-green-100);color:var(--p-green-800)}.pl-status--info{background:var(--p-blue-100);color:var(--p-blue-800)}.pl-status--warn{background:var(--p-orange-100);color:var(--p-orange-800)}.pl-status--error{background:var(--p-red-100);color:var(--p-red-800)}.qd-payload-headers{margin-top:.375rem}.qd-payload-headers summary{cursor:pointer;color:var(--p-text-muted-color)}.qd-payload-headers table{margin-top:.25rem;border-collapse:collapse;font-family:ui-monospace,"Cascadia Code","Source Code Pro",Menlo,Consolas,monospace;font-size:.75rem}.qd-payload-headers th{text-align:left;padding:.125rem 1rem .125rem 0;font-weight:600;white-space:nowrap;vertical-align:top}.qd-payload-headers td{word-break:break-all}.qd-payload-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;padding:.125rem .5rem;border-bottom:1px solid var(--p-surface-200);font-size:.75rem}.qd-payload-format{font-weight:700;letter-spacing:.05em;color:var(--p-text-muted-color)}.qd-payload-size{color:var(--p-text-muted-color)}.qd-payload-spacer{flex:1}.qd-payload-check{display:inline-flex;align-items:center;gap:.25rem;cursor:pointer}.qd-payload-warning,.qd-payload-identical{padding:.375rem .75rem;font-size:.875rem}.qd-payload-warning{background:var(--p-orange-50);color:var(--p-orange-800)}.qd-payload-identical{background:var(--p-green-50);color:var(--p-green-800)}.qd-payload-body{overflow:auto}.qd-payload-body .json-viewer{border:none;border-radius:0}.qd-payload-code{margin:0;padding:.5rem .75rem .5rem 0;font-family:ui-monospace,"Cascadia Code","Source Code Pro",Menlo,Consolas,monospace;font-size:.8125rem;line-height:1.5;white-space:pre}.pl-n{display:inline-block;min-width:3rem;padding-right:.75rem;text-align:right;color:var(--p-text-muted-color);user-select:none}.pl-tag{color:var(--pl-tag)}.pl-attr{color:var(--pl-attr)}.pl-value{color:var(--pl-value)}.pl-punct{color:var(--p-text-muted-color)}.pl-comment,.pl-decl{color:var(--pl-comment);font-style:italic}.pl-cdata{color:var(--pl-comment)}.qd-payload-table-wrap{min-width:0}.qd-payload-table{border-collapse:collapse;font-size:.875rem;width:max-content;min-width:100%}.qd-payload-table th,.qd-payload-table td{padding:.25rem .75rem;border-bottom:1px solid var(--p-surface-100);text-align:left;vertical-align:top;white-space:pre-wrap}.qd-payload-table thead th{position:sticky;top:0;background:var(--p-surface-50);font-weight:600}.qd-payload-table .pl-n{display:table-cell;min-width:0}.qd-payload-kv th{font-family:ui-monospace,"Cascadia Code","Source Code Pro",Menlo,Consolas,monospace;font-weight:600;white-space:nowrap}.qd-payload-more{display:block;width:100%;padding:.375rem;border:none;background:var(--p-surface-50);color:var(--p-primary-color);cursor:pointer}.qd-payload-binary p{margin:.5rem .75rem;font-size:.875rem}.pl-count{font-weight:700;font-variant-numeric:tabular-nums}.pl-count--add{color:var(--p-green-600)}.pl-count--del{color:var(--p-red-600)}.pl-count--chg{color:var(--p-orange-600)}.pl-diff{width:100%;border-collapse:collapse;table-layout:fixed;font-family:ui-monospace,"Cascadia Code","Source Code Pro",Menlo,Consolas,monospace;font-size:.8125rem;line-height:1.5}.pl-diff th{padding:.25rem .75rem;background:var(--p-surface-50);font-family:var(--p-font-family, inherit);font-size:.75rem;text-align:left}.pl-diff td{padding:0 .5rem;white-space:pre-wrap;word-break:break-all;vertical-align:top}.pl-diff td.pl-n{display:table-cell;width:3rem;min-width:0}.pl-diff .pl-sign{width:1rem;padding:0;text-align:center}.pl-diff--split td:nth-child(3){border-left:1px solid var(--p-surface-200)}.pl-ins,tr.pl-ins td{background:var(--pl-ins-bg)}.pl-del,tr.pl-del td{background:var(--pl-del-bg)}.pl-empty{background:repeating-linear-gradient(45deg, transparent 0 4px, var(--p-surface-100) 4px 8px)}.pl-fold td{padding:0}.pl-fold td button{width:100%;padding:.125rem;border:none;background:var(--p-surface-100);color:var(--p-text-muted-color);font-size:.75rem;cursor:pointer}.pl-csv-diff .pl-row--added td{background:var(--pl-ins-bg)}.pl-csv-diff .pl-row--removed td{background:var(--pl-del-bg)}.pl-csv-diff .pl-cell--changed{background:color-mix(in srgb, var(--p-orange-400) 18%, transparent)}.pl-csv-diff .pl-cell--changed del{color:var(--p-red-700)}.pl-csv-diff .pl-cell--changed ins{color:var(--p-green-700);text-decoration:none;font-weight:600}.qd-yaml-editor .vye{--vye-font: inherit;--vye-bg: var(--p-content-background, #fff);--vye-fg: var(--p-text-color, #1f2937);--vye-muted: var(--p-text-muted-color, #6b7280);--vye-border: var(--p-content-border-color, #e5e7eb);--vye-panel: var(--p-surface-50, #f8fafc);--vye-gutter-bg: var(--p-surface-50, #f8fafc);--vye-accent: var(--p-primary-color, #3b82f6);--vye-accent-fg: var(--p-primary-contrast-color, #fff);--vye-input-bg: var(--p-form-field-background, #fff);--vye-radius: var(--p-form-field-border-radius, 6px);--vye-error: var(--p-red-600, #dc2626);--vye-error-bg: var(--p-red-50, #fef2f2)}.dark-mode .qd-yaml-editor .vye{--vye-panel: var(--p-surface-800, #1e293b);--vye-gutter-bg: var(--p-surface-800, #1e293b);--vye-error: var(--p-red-400, #f87171);--vye-error-bg: color-mix(in srgb, var(--p-red-400, #f87171) 12%, transparent);--vye-active-line: rgba(147, 197, 253, 0.07);--vye-tok-key: #93c5fd;--vye-tok-string: #86efac;--vye-tok-number: #fcd34d;--vye-tok-bool: #d8b4fe;--vye-tok-comment: #9ca3af;--vye-tok-meta: #f9a8d4}.qd-yaml-config{display:flex;flex-direction:column;gap:.5rem}.qd-yaml-config-bar{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}.qd-yaml-config-state{margin-right:auto;color:var(--p-text-muted-color);font-size:.875rem}.qd-yaml-config-state--dirty{color:var(--p-orange-600, #ea580c)}.qd-yaml-config-keys{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem;margin:0 0 .6rem;font-size:.875rem}.qd-yaml-config-key{font-family:var(--qd-font-mono, monospace);font-size:.8125rem;padding:.1rem .4rem;border:1px solid var(--p-content-border-color, #e2e8f0);border-radius:4px;background:var(--p-content-hover-background, #f8fafc);color:inherit}button.qd-yaml-config-key{cursor:pointer}button.qd-yaml-config-key:hover{border-color:var(--p-primary-color, #10b981)}.qd-yaml-config-more{color:var(--p-text-muted-color, #64748b)}.qd-yaml-config-reason{display:flex;flex-direction:column;gap:.35rem;margin-top:.75rem}.qd-yaml-history{display:grid;grid-template-columns:minmax(12rem, 18rem) 1fr;gap:.75rem;min-height:20rem}.qd-yaml-history-list{display:flex;flex-direction:column;gap:.25rem;overflow:auto;max-height:32rem}.qd-yaml-history-entry{display:flex;flex-direction:column;align-items:flex-start;gap:.15rem;padding:.5rem;border:1px solid var(--p-content-border-color);border-radius:6px;background:rgba(0,0,0,0);color:inherit;font:inherit;text-align:left;cursor:pointer}.qd-yaml-history-entry--active{border-color:var(--p-primary-color);background:color-mix(in srgb, var(--p-primary-color) 8%, transparent)}.qd-yaml-history-meta{color:var(--p-text-muted-color);font-size:.8125rem}@media(max-width: 767px){.qd-yaml-history{grid-template-columns:1fr}}.qd-cards-dashboard{display:flex;flex-direction:column;gap:.75rem}.qd-cards-toolbar{display:flex;justify-content:flex-end;gap:.5rem}.qd-cards-grid{container-type:inline-size;display:grid;grid-template-columns:repeat(auto-fill, minmax(min(var(--qd-card-min, 18rem), 100%), 1fr));gap:1rem}.qd-cards-grid.qd-cards-loading{visibility:hidden}.qd-cards-slot{grid-column:span var(--qd-card-span, 1);display:flex;flex-direction:column;min-width:0}.qd-cards-slot>:not(.qd-cards-bar){flex:1}@container (max-width: 40rem){.qd-cards-slot{grid-column:auto}}.qd-cards-editing .qd-cards-slot{outline:1px dashed var(--p-content-border-color, #d1d5db);outline-offset:4px;border-radius:var(--p-content-border-radius, 6px)}.qd-cards-editing .qd-cards-pinned{outline-color:var(--p-primary-color)}.qd-cards-dragging{opacity:.6;outline:2px solid var(--p-primary-color) !important}.qd-cards-bar{display:flex;align-items:center;gap:.25rem;margin-bottom:.5rem;font-size:.875rem;color:var(--p-text-muted-color, #6b7280)}.qd-cards-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.qd-cards-handle,.qd-cards-action{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;border:1px solid rgba(0,0,0,0);border-radius:var(--p-content-border-radius, 6px);background:rgba(0,0,0,0);color:inherit;cursor:pointer}.qd-cards-handle:hover,.qd-cards-action:hover{background:var(--p-content-hover-background, rgba(0, 0, 0, 0.04));color:var(--p-text-color)}.qd-cards-handle:focus-visible,.qd-cards-action:focus-visible{outline:2px solid var(--p-primary-color);outline-offset:1px}.qd-cards-handle{cursor:grab;touch-action:none}.qd-cards-dragging .qd-cards-handle{cursor:grabbing}.qd-cards-on{color:var(--p-primary-color)}.qd-cards-tray{display:flex;flex-direction:column;gap:.75rem;padding:.75rem;border:1px dashed var(--p-content-border-color, #d1d5db);border-radius:var(--p-content-border-radius, 6px)}.qd-cards-tray-head{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}.qd-cards-tray-label{font-weight:500;font-size:.875rem}.qd-cards-tray-empty{font-size:.875rem;color:var(--p-text-muted-color, #6b7280)}.qd-cards-tray-view{display:inline-flex;margin-left:auto;border:1px solid var(--p-content-border-color, #d1d5db);border-radius:var(--p-content-border-radius, 6px);overflow:hidden}.qd-cards-tray-view-option{padding:.25rem .625rem;border:0;background:rgba(0,0,0,0);color:var(--p-text-muted-color, #6b7280);font:inherit;font-size:.8125rem;cursor:pointer}.qd-cards-tray-view-option[aria-pressed=true]{background:var(--p-primary-color);color:var(--p-primary-contrast-color, #fff)}.qd-cards-tray-view-option:focus-visible{outline:2px solid var(--p-primary-color);outline-offset:-2px}.qd-cards-chips{display:flex;flex-wrap:wrap;gap:.5rem}.qd-cards-hidden .qd-cards-hidden-body{flex:1;opacity:.45;filter:grayscale(0.6);pointer-events:none}.qd-cards-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.qd-sessions{display:flex;flex-direction:column;gap:1rem}.qd-sessions-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.qd-sessions-table{width:100%;border-collapse:collapse;font-size:.875rem}.qd-sessions-table th{text-align:left;font-weight:600;color:var(--p-text-muted-color);padding:.5rem;border-bottom:1px solid var(--p-content-border-color);white-space:nowrap}.qd-sessions-table td{padding:.5rem;border-bottom:1px solid var(--p-content-border-color);vertical-align:middle}.qd-sessions-mine td{background:var(--p-highlight-background, rgba(16, 185, 129, 0.06))}.qd-sessions-badge{margin-left:.375rem;padding:0 .375rem;border-radius:999px;font-size:.75rem;background:var(--p-primary-color);color:var(--p-primary-contrast-color, #fff)}.qd-sessions-origin{color:var(--p-text-muted-color);font-size:.8125rem;max-width:22rem;overflow-wrap:anywhere}.qd-sessions-actions{text-align:right}.qd-sessions-event{padding:.0625rem .5rem;border-radius:999px;background:var(--p-content-hover-background);white-space:nowrap}.qd-sessions-event--refused .qd-sessions-event,.qd-sessions-event--closed .qd-sessions-event{background:var(--p-red-50);color:var(--p-red-700)}.qd-sessions-empty{margin:0;color:var(--p-text-muted-color)}.qd-sessions-notice{margin-bottom:.75rem}.qd-sessions-pager{display:flex;justify-content:flex-end;gap:.5rem;margin-top:.5rem}.qd-sessions-reason-label{display:block;margin-bottom:.5rem}.qd-sessions-reason{width:100%}@media(max-width: 640px){.qd-sessions-card .p-card-content{overflow-x:auto}}.qd-email{border:1px solid var(--p-surface-200);border-radius:.25rem;overflow:hidden;min-width:0;background:var(--p-surface-0)}.qd-email-head{padding:.75rem 1rem .5rem;border-bottom:1px solid var(--p-surface-200)}.qd-email-subject{margin:0 0 .5rem;font-size:1.0625rem;font-weight:600;overflow-wrap:anywhere}.qd-email-main{display:grid;grid-template-columns:max-content minmax(0, 1fr);gap:.125rem .75rem;margin:0;font-size:.875rem}.qd-email-main dt{color:var(--p-text-muted-color)}.qd-email-main dd{margin:0;overflow-wrap:anywhere}.qd-email-headers{margin-top:.5rem;font-size:.75rem}.qd-email-headers summary{cursor:pointer;color:var(--p-text-muted-color)}.qd-email-headers table{margin-top:.25rem;border-collapse:collapse;font-family:ui-monospace,"Cascadia Code","Source Code Pro",Menlo,Consolas,monospace}.qd-email-headers th{padding:.0625rem 1rem .0625rem 0;text-align:left;font-weight:600;white-space:nowrap;vertical-align:top}.qd-email-headers td{overflow-wrap:anywhere}.qd-email-warning{padding:.375rem 1rem;background:var(--p-orange-50);color:var(--p-orange-800);font-size:.875rem}.qd-email-tabs{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem;padding:0 .5rem;border-bottom:1px solid var(--p-surface-200);font-size:.875rem}.qd-email-tab{padding:.5rem .75rem;border:none;border-bottom:2px solid rgba(0,0,0,0);background:rgba(0,0,0,0);color:var(--p-text-muted-color);font:inherit;cursor:pointer}.qd-email-tab--active{border-bottom-color:var(--p-primary-color);color:var(--p-text-color);font-weight:600}.qd-email-spacer{flex:1}.qd-email-blocked{color:var(--p-text-muted-color);font-size:.75rem}.qd-email-frame-wrap{resize:vertical;overflow:hidden;min-height:8rem;background:#fff}.qd-email-frame{display:block;width:100%;height:100%;border:0}.qd-email-text{margin:0;padding:.75rem 1rem;max-height:32rem;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-family:ui-monospace,"Cascadia Code","Source Code Pro",Menlo,Consolas,monospace;font-size:.8125rem}.qd-email-source{white-space:pre}.qd-email-empty{padding:.75rem 1rem;color:var(--p-text-muted-color);font-style:italic}.qd-email-attachments{list-style:none;margin:0;padding:.25rem .5rem;border-top:1px solid var(--p-surface-200)}.qd-email-attachment{display:flex;align-items:center;gap:.5rem;padding:.25rem;font-size:.875rem;min-width:0}.qd-email-thumb{width:2.5rem;height:2.5rem;object-fit:cover;border-radius:.25rem;border:1px solid var(--p-surface-200)}.qd-email-clip{width:2.5rem;text-align:center;color:var(--p-text-muted-color)}.qd-email-att-name{font-weight:500;overflow-wrap:anywhere}.qd-email-att-meta{flex:1;color:var(--p-text-muted-color);font-size:.75rem}.qd-task-head{display:flex;align-items:center;gap:.75rem;margin-bottom:.75rem;font-size:.875rem}.qd-task-status{display:inline-flex;align-items:center;gap:.375rem;padding:.125rem .625rem;border-radius:999px;font-weight:600;background:var(--p-blue-50);color:var(--p-blue-700)}.qd-task-status--succeeded{background:var(--p-green-50);color:var(--p-green-700)}.qd-task-status--failed{background:var(--p-red-50);color:var(--p-red-700)}.qd-task-status--cancelled{background:var(--p-surface-100);color:var(--p-text-muted-color)}.qd-task-elapsed,.qd-task-id{color:var(--p-text-muted-color);font-variant-numeric:tabular-nums}.qd-task-id{margin-left:auto;font-family:ui-monospace,"Cascadia Code","Source Code Pro",Menlo,Consolas,monospace;font-size:.75rem}.qd-task-progress{height:.75rem}.qd-task-step{margin-top:.375rem;color:var(--p-text-muted-color);font-size:.875rem}.qd-task-dialog .p-dialog-content{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}.qd-task-log{margin-top:.75rem;flex:1 1 16rem;min-height:8rem;display:flex;flex-direction:column}.qd-task-log .qd-log-viewport{flex:1 1 auto;min-height:0;height:auto !important}.qd-task-before-log,.qd-task-after-log{margin-top:.75rem}.qd-task-header{flex:1;min-width:0}.qd-task-dialog--resizable{resize:both;overflow:hidden;min-width:min(24rem,96vw);min-height:16rem}.qd-task-error,.qd-task-warning{margin-top:.75rem;padding:.5rem .75rem;border-radius:.25rem;font-size:.875rem;overflow-wrap:anywhere}.qd-task-error{background:var(--p-red-50);color:var(--p-red-800)}.qd-task-warning{background:var(--p-orange-50);color:var(--p-orange-800)}.qd-task-result{margin-top:.75rem}.qd-task-dialog .p-dialog-footer{display:flex;align-items:center;gap:.5rem}.qd-task-spacer{flex:1}.qd-task-link{display:inline-flex;align-items:center;gap:.375rem;font-size:.875rem}.qd-task-confirm-message{margin:0 0 .75rem}.qd-task-confirm-label{display:block;margin-bottom:.375rem;font-size:.875rem}.qd-task-confirm-input{width:100%;font-family:ui-monospace,"Cascadia Code","Source Code Pro",Menlo,Consolas,monospace}.qd-task-tray{padding:.25rem .75rem}.qd-task-tray-button{display:flex;align-items:center;gap:.5rem;width:100%;padding:.5rem .625rem;border:1px solid var(--p-surface-700, #334155);border-radius:.25rem;background:rgba(0,0,0,0);color:var(--p-surface-200, #e2e8f0);font:inherit;font-size:.875rem;cursor:pointer}.qd-task-tray-button--busy{border-color:var(--p-primary-color)}.qd-task-tray-button:hover{background:var(--p-surface-700, #334155)}.qd-task-tray-label{flex:1;text-align:left;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.qd-task-tray-count{min-width:1.25rem;padding:0 .375rem;border-radius:999px;background:var(--p-primary-color);color:var(--p-primary-contrast-color);font-size:.75rem;font-weight:700;text-align:center}.qd-task-list{list-style:none;margin:0 0 .25rem;padding:0;min-width:18rem;max-width:24rem}.qd-task-item{display:flex;align-items:center;gap:.5rem;width:100%;padding:.375rem .5rem;border:none;border-radius:.25rem;background:rgba(0,0,0,0);color:inherit;font:inherit;font-size:.875rem;text-align:left;cursor:pointer}.qd-task-item:hover{background:var(--p-surface-100)}.qd-task-item--succeeded i{color:var(--p-green-600)}.qd-task-item--failed i{color:var(--p-red-600)}.qd-task-item--cancelled i{color:var(--p-text-muted-color)}.qd-task-item-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.qd-task-item-state{color:var(--p-text-muted-color);font-size:.75rem;white-space:nowrap}.sidebar--collapsed .qd-task-tray{padding:.25rem}.sidebar--collapsed .qd-task-tray .qd-task-tray-button{justify-content:center;padding:.5rem .25rem}.sidebar--collapsed .qd-task-tray .qd-task-tray-label{display:none}.dialog-content{display:flex;align-items:flex-start;gap:1rem;margin-bottom:.75rem}.dialog-content p{margin:0;line-height:1.5}.dialog-section-title{font-size:.875rem;font-weight:600;margin-bottom:.375rem;color:var(--p-surface-600)}.dialog-icon{font-size:2rem;color:var(--p-orange-500);flex-shrink:0}.multi-step-dialog{padding:.5rem 0}.step-content{padding:1rem 0}.step-actions{display:flex;justify-content:flex-end;gap:.5rem;margin-top:1.5rem;padding-top:1rem;border-top:1px solid var(--p-surface-200)}.markdown-rendered{background:var(--p-surface-100);padding:.75rem;border-radius:.25rem;max-height:400px;overflow-y:auto;font-size:.875rem}.markdown-rendered h1,.markdown-rendered h2,.markdown-rendered h3,.markdown-rendered h4{margin:.75rem 0 .375rem 0;font-weight:600}.markdown-rendered h1{font-size:1.25rem}.markdown-rendered h2{font-size:1.125rem}.markdown-rendered h3{font-size:1rem}.markdown-rendered p{margin:.375rem 0}.markdown-rendered ul,.markdown-rendered ol{margin:.375rem 0;padding-left:1rem}.markdown-rendered a{color:var(--p-primary-500);text-decoration:underline}.markdown-rendered code{background:var(--p-surface-200);padding:.1rem .3rem;border-radius:.25rem;font-family:ui-monospace,"Cascadia Code","Source Code Pro",Menlo,Consolas,monospace;font-size:.85em}.markdown-rendered pre{background:var(--p-surface-200);padding:.75rem;border-radius:.25rem;overflow-x:auto}.markdown-rendered blockquote{border-left:3px solid var(--p-surface-300);margin:.375rem 0;padding-left:.75rem;color:var(--p-surface-600)}.markdown-rendered .md-figure{margin:.75rem 0;padding:0}.markdown-rendered .md-figure img{max-width:100%;height:auto;border-radius:.25rem;display:block}.markdown-rendered .md-figure figcaption{margin-top:.375rem;font-size:.75rem;color:var(--p-surface-500);font-style:italic;line-height:1.5}.header-left{display:flex;align-items:center;gap:.75rem}.content-grid{display:grid;gap:1rem}.meta-grid{display:grid;grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));gap:1rem}@media(max-width: 767px){.meta-grid{grid-template-columns:1fr}}.summary-text,.intent-text{line-height:1.5}.tags-wrap{display:flex;gap:.375rem;flex-wrap:wrap}.url-actions{display:flex;gap:.375rem;align-items:center}.content-box{background:var(--p-surface-100);padding:.75rem;border-radius:.25rem;white-space:pre-wrap;word-break:break-word}.content-box--scrollable{max-height:300px;overflow-y:auto}.content-box--tall{max-height:400px}.status-row{display:flex;justify-content:space-between;align-items:flex-start}.tags-row{display:flex;gap:.375rem}.show-field{display:flex;flex-direction:column;gap:.25rem}.show-field--horizontal{flex-direction:row;align-items:flex-start;gap:1rem}.show-field__label{font-weight:600;color:var(--p-text-muted-color, #6c757d);font-size:.875rem}.show-field--horizontal .show-field__label{padding-top:.125rem}.show-field__value{color:var(--p-text-color, #1e293b);line-height:1.5}.show-display{display:inline}.show-display--badge{display:inline-flex;align-items:center}.show-display--empty{color:var(--p-text-muted-color, #6c757d)}.show-display--email,.show-display--url,.show-display--reference{color:var(--p-primary-color, #3b82f6);text-decoration:none}.show-display--email:hover,.show-display--url:hover,.show-display--reference:hover{text-decoration:underline}.show-display--password{font-family:monospace;letter-spacing:.1em}.show-display--number,.show-display--currency{font-variant-numeric:tabular-nums}.show-display--boolean{display:inline-flex;align-items:center;gap:.5rem}.show-display--boolean.text-success{color:var(--p-green-500, #22c55e)}.show-display--boolean.text-danger{color:var(--p-red-500, #ef4444)}.show-display--boolean.text-muted{color:var(--p-text-muted-color, #6c757d)}.show-display--textarea{white-space:pre-wrap;line-height:1.6}.show-display--image img{border-radius:4px;object-fit:cover}.show-display--json{background:var(--p-surface-100, #f1f5f9);padding:.75rem;border-radius:4px;font-size:.875rem;overflow-x:auto;margin:0}.sidebar-box{position:relative;z-index:1;padding:.5rem .75rem;border-top:1px solid var(--p-surface-700, #334155);height:3.5rem;box-sizing:border-box;cursor:pointer;transition:background var(--fad-transition-fast);display:flex;align-items:center}.sidebar-box:hover{background:var(--p-surface-700, #334155)}.sidebar-box:focus-within{z-index:20}.sidebar-box-inner{display:flex;align-items:center;gap:.5rem;padding-left:2rem;height:100%;width:100%}.sidebar-box-icon{position:absolute;left:.5rem;top:50%;transform:translateY(-50%);width:28px;height:28px;display:flex;align-items:center;justify-content:center;font-size:.875rem;color:var(--p-surface-400, #94a3b8)}.sidebar-box:hover .sidebar-box-icon{color:var(--p-surface-200, #e2e8f0)}.sidebar-box-content{flex:1;min-width:0;opacity:1;transition:opacity .1s ease .2s}.sidebar-box-title{font-weight:var(--fad-font-weight-normal);font-size:var(--fad-font-size-sm);color:var(--p-surface-100, #f1f5f9);white-space:nowrap}.sidebar-box-subtitle{font-size:var(--fad-font-size-2xs);color:var(--p-surface-400, #94a3b8);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-box--impersonator .sidebar-box-icon{color:var(--p-orange-400, #fb923c)}.sidebar-box--impersonator:hover .sidebar-box-icon{color:var(--p-orange-300, #fdba74)}.sidebar-box--impersonator .sidebar-box-title{color:var(--p-orange-400, #fb923c)}.sidebar-box--impersonator .sidebar-box-subtitle{color:var(--p-orange-300, #fdba74)}.sidebar--collapsed .sidebar-box{padding:0}.sidebar--collapsed .sidebar-box-inner{justify-content:center;padding-left:0}.sidebar--collapsed .sidebar-box-content{opacity:0;visibility:hidden;transition:opacity 0s,visibility 0s}.sidebar-box-controls{padding:.5rem 1rem}.sidebar-box-controls-label{font-size:var(--fad-font-size-xs);font-weight:var(--fad-font-weight-medium);color:var(--p-surface-500, #64748b);text-transform:uppercase;letter-spacing:.06em;display:block;margin-bottom:.375rem}.sidebar-box-controls-input{width:100%}.sidebar-box-controls-input :deep(.p-autocomplete-input){width:100%;font-size:var(--fad-font-size-sm)}.sidebar-box-controls-input :deep(.p-autocomplete-overlay){z-index:9999 !important}.sidebar--collapsed .sidebar-box-controls{display:none !important}.sidebar-box--full{height:auto;cursor:default}.sidebar-box--full:hover{background:rgba(0,0,0,0)}.sidebar-box-full{width:100%;padding:.25rem 0;opacity:1;transition:opacity .1s ease .2s}.sidebar-box-full-label{font-size:var(--fad-font-size-xs);font-weight:var(--fad-font-weight-medium);color:var(--p-surface-500, #64748b);text-transform:uppercase;letter-spacing:.06em;display:block;margin-bottom:.375rem}.sidebar-box-full-input{width:100%}.sidebar-box-full-input :deep(.p-autocomplete-input){width:100%;font-size:var(--fad-font-size-sm)}.sidebar-box-full-input :deep(.p-autocomplete-overlay){z-index:9999 !important}.sidebar--collapsed .sidebar-box--full{opacity:0;visibility:hidden;height:0;padding:0;border:none;overflow:hidden;transition:opacity 0s,visibility 0s,height 0s,padding 0s}.sidebar--collapsed .sidebar-box-full{opacity:0;transition:opacity 0s}.sidebar-nav .nav-item{position:relative;display:flex;align-items:center;padding:var(--fad-nav-item-padding-y) var(--fad-nav-item-padding-x);padding-left:calc((var(--fad-sidebar-width-collapsed) + 1.125rem)/2 + .375rem);color:var(--p-surface-300, #cbd5e1);text-decoration:none;font-size:var(--fad-font-size-sm);font-weight:var(--fad-font-weight-normal);border-radius:0;transition:background var(--fad-transition-fast),color var(--fad-transition-fast),padding var(--fad-transition-slow)}.sidebar-nav .nav-item i{position:absolute;left:calc((var(--fad-sidebar-width-collapsed) - 1.125rem)/2);top:50%;transform:translateY(-50%);font-size:var(--fad-nav-icon-size);width:1.125rem;text-align:center;opacity:.8}.sidebar-nav .nav-item span{white-space:nowrap;opacity:1;transition:opacity .1s ease .2s}.sidebar-nav .nav-item .nav-item-external{margin-left:.375rem;font-size:.625rem;color:var(--p-surface-400, #94a3b8)}.sidebar-nav .nav-item:hover{background:var(--p-surface-700, #334155);color:var(--p-surface-0, white)}.sidebar-nav .nav-item-active{background:var(--p-surface-700, #334155);color:var(--p-primary-300, #93c5fd);border-left:2px solid var(--p-primary-400, #60a5fa);padding-left:calc(calc((var(--fad-sidebar-width-collapsed) + 1.125rem) / 2 + 0.375rem) - 2px)}.sidebar-nav .nav-item-active:hover{background:var(--p-surface-600, #475569)}.sidebar-nav .nav-item-active i{opacity:1}.sidebar--collapsed .sidebar-nav .nav-item{padding:.5rem 0;padding-left:calc((var(--fad-sidebar-width-collapsed) + 1.125rem)/2 + .375rem);border-left:none !important}.sidebar--collapsed .sidebar-nav .nav-item-active{border-left:none !important;padding-left:calc((var(--fad-sidebar-width-collapsed) + 1.125rem)/2 + .375rem)}.sidebar--collapsed .sidebar-nav .nav-item span{opacity:0;visibility:hidden;transition:opacity 0s,visibility 0s}@media(max-width: 767px){.sidebar.sidebar--collapsed .sidebar-nav .nav-item{justify-content:flex-start;padding:var(--fad-nav-item-padding-y) var(--fad-nav-item-padding-x);padding-left:calc((var(--fad-sidebar-width-collapsed) + 1.125rem)/2 + .375rem)}.sidebar.sidebar--collapsed .sidebar-nav .nav-item span{display:inline;opacity:1;visibility:visible;width:auto;transition:opacity .1s ease .2s}.sidebar.sidebar--collapsed .sidebar-nav .nav-item i{position:absolute;left:calc((var(--fad-sidebar-width-collapsed) - 1.125rem)/2);font-size:var(--fad-nav-icon-size);width:1.125rem}}:root{--qdadm-sidebar-width: 15rem;--qdadm-sidebar-collapsed-width: 2.5rem;--qdadm-sidebar-transition: 200ms ease;--qdadm-content-padding: 1rem;--qdadm-content-padding-mobile: 0.75rem}@media(max-width: 1023px){.app-layout{--qdadm-sidebar-width: 12rem}}@media(max-width: 767px){.app-layout{--qdadm-sidebar-width: 100vw}}.sidebar{transition:transform var(--qdadm-sidebar-transition),width var(--qdadm-sidebar-transition)}@media(max-width: 767px){.sidebar{transform:translateX(-100%);position:fixed;z-index:1000;box-shadow:none;width:100vw !important;height:100dvh;max-height:100dvh;overflow-y:auto}.sidebar.sidebar--open{transform:translateX(0);box-shadow:none}}.main-content{transition:margin-left var(--qdadm-sidebar-transition)}@media(max-width: 767px){.main-content{margin-left:0 !important}}.sidebar-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:99;opacity:0;transition:opacity .25s}@media(max-width: 767px){.sidebar-overlay{display:block;pointer-events:none}.sidebar-overlay.sidebar-overlay--visible{opacity:1;pointer-events:auto}}.hamburger-btn{display:none !important}@media(max-width: 767px){.hamburger-btn{display:flex !important}}@media(max-width: 767px){.page-content{padding:var(--qdadm-content-padding-mobile)}}@media(max-width: 767px){.page-header{flex-direction:column;gap:1rem;align-items:flex-start !important}}@media(max-width: 767px){.page-header .page-header-actions{width:100%;justify-content:flex-start}}.p-datatable .p-datatable-table-container{overflow-x:auto;-webkit-overflow-scrolling:touch}@media(max-width: 767px){.p-datatable .p-datatable-table{min-width:600px}}@media(max-width: 479px){.p-datatable .p-datatable-table{min-width:500px}}@media(max-width: 767px){.filter-bar{flex-wrap:wrap;gap:.75rem}}@media(max-width: 767px){.filter-bar-left{flex-wrap:wrap;gap:.5rem;width:100%}}@media(max-width: 767px){.card{border-radius:0;border:none;background:rgba(0,0,0,0);padding:0}}@media(max-width: 767px){.form-grid{grid-template-columns:1fr !important}}@media(max-width: 479px){.form-actions{flex-direction:column;gap:.5rem}.form-actions .form-actions-left{width:100%;flex-direction:column}.form-actions .p-button{width:100%;white-space:nowrap}}@media(max-width: 767px){.cards-grid{grid-template-columns:repeat(2, 1fr)}}@media(max-width: 479px){.cards-grid{grid-template-columns:1fr}}@media(max-width: 767px){.hide-mobile{display:none !important}}.hide-desktop{display:none !important}@media(max-width: 767px){.hide-desktop{display:block !important}}@media(max-width: 767px){.hide-mobile-inline{display:none !important}}.show-mobile-inline{display:none !important}@media(max-width: 767px){.show-mobile-inline{display:inline !important}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quazardous/qdadm",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.44.0",
|
|
4
4
|
"description": "Vue 3 framework for admin dashboards with PrimeVue",
|
|
5
5
|
"author": "quazardous",
|
|
6
6
|
"license": "MIT",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"vue": "^3.3.0",
|
|
78
78
|
"vue-router": "^4.0.0 || ^5.0.0",
|
|
79
79
|
"postal-mime": ">=3.0.0",
|
|
80
|
-
"@quazardous/vanilla-yamleditor": "^0.
|
|
80
|
+
"@quazardous/vanilla-yamleditor": "^0.8.0"
|
|
81
81
|
},
|
|
82
82
|
"peerDependenciesMeta": {
|
|
83
83
|
"vanilla-jsoneditor": {
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"devDependencies": {
|
|
113
113
|
"@eslint/js": "^9.39.2",
|
|
114
114
|
"@primeuix/themes": "^1.0.0",
|
|
115
|
-
"@quazardous/vanilla-yamleditor": "https://github.com/quazardous/vanilla-yamleditor/releases/download/v0.
|
|
115
|
+
"@quazardous/vanilla-yamleditor": "https://github.com/quazardous/vanilla-yamleditor/releases/download/v0.8.0/quazardous-vanilla-yamleditor-0.8.0.tgz",
|
|
116
116
|
"@types/node": "^25.0.6",
|
|
117
117
|
"@vitejs/plugin-vue": "^6.0.0",
|
|
118
118
|
"@vue/test-utils": "^2.4.6",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
import { computed, ref, watch } from 'vue'
|
|
16
16
|
import QdButton from '../base/QdButton.vue'
|
|
17
17
|
import { useI18n } from '../../i18n/useI18n'
|
|
18
|
-
import {
|
|
18
|
+
import { useFormatBytes } from '../../composables/useFormatBytes'
|
|
19
19
|
import {
|
|
20
20
|
attachmentSize,
|
|
21
21
|
attachmentUrl,
|
|
@@ -50,6 +50,7 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
50
50
|
})
|
|
51
51
|
|
|
52
52
|
const { t, locale } = useI18n()
|
|
53
|
+
const formatBytes = useFormatBytes()
|
|
53
54
|
|
|
54
55
|
// --- The email ---
|
|
55
56
|
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
type PayloadFormat,
|
|
35
35
|
type PayloadMask,
|
|
36
36
|
} from '../../utils/payload'
|
|
37
|
-
import {
|
|
37
|
+
import { useFormatBytes } from '../../composables/useFormatBytes'
|
|
38
38
|
|
|
39
39
|
export interface PayloadRequest {
|
|
40
40
|
method?: string
|
|
@@ -70,6 +70,7 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
70
70
|
})
|
|
71
71
|
|
|
72
72
|
const { t } = useI18n()
|
|
73
|
+
const formatBytes = useFormatBytes()
|
|
73
74
|
const orchestrator = inject<{ toast: { success: (...a: unknown[]) => void; error: (...a: unknown[]) => void } } | null>('qdadmOrchestrator', null)
|
|
74
75
|
|
|
75
76
|
const contentTypeHeader = computed(() => {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
/**
|
|
3
|
-
* VanillaYamlEditor - a YAML text with
|
|
3
|
+
* VanillaYamlEditor - a YAML text with text, tree and form views (#4303)
|
|
4
4
|
*
|
|
5
5
|
* Wraps @quazardous/vanilla-yamleditor (an optional peer): CodeMirror text,
|
|
6
|
-
* and a form generated from a JSON Schema whose edits keep
|
|
7
|
-
* comments and formatting. v-model is the YAML text.
|
|
6
|
+
* a technical tree, and a form generated from a JSON Schema, whose edits keep
|
|
7
|
+
* the file's comments and formatting. v-model is the YAML text. The default
|
|
8
|
+
* view is the lib's: form with a schema, tree without.
|
|
8
9
|
*
|
|
9
10
|
* <VanillaYamlEditor v-model="yaml" :schema="schema" :problems="serverProblems" />
|
|
10
11
|
*
|
|
@@ -27,10 +28,16 @@ import { useI18n } from '../../../i18n/useI18n'
|
|
|
27
28
|
interface Props {
|
|
28
29
|
modelValue?: string
|
|
29
30
|
mode?: YamlEditorMode
|
|
31
|
+
/** The views offered, in the order of their buttons (default all three). */
|
|
32
|
+
modes?: YamlEditorMode[]
|
|
33
|
+
/** Show the view buttons (the bar keeps its status). */
|
|
34
|
+
modeSwitch?: boolean
|
|
30
35
|
schema?: JsonSchema
|
|
31
36
|
validator?: (value: unknown, parsed: ParsedYaml) => YamlProblemInput[]
|
|
32
37
|
/** Problems found elsewhere (a server check), shown on their line and field. */
|
|
33
38
|
problems?: YamlProblemInput[]
|
|
39
|
+
/** Warn on valid YAML that is likely a typo (`key ::`). */
|
|
40
|
+
lint?: boolean
|
|
34
41
|
readOnly?: boolean
|
|
35
42
|
mainMenuBar?: boolean
|
|
36
43
|
height?: string
|
|
@@ -39,9 +46,12 @@ interface Props {
|
|
|
39
46
|
const props = withDefaults(defineProps<Props>(), {
|
|
40
47
|
modelValue: '',
|
|
41
48
|
mode: undefined,
|
|
49
|
+
modes: undefined,
|
|
50
|
+
modeSwitch: true,
|
|
42
51
|
schema: undefined,
|
|
43
52
|
validator: undefined,
|
|
44
53
|
problems: () => [],
|
|
54
|
+
lint: true,
|
|
45
55
|
readOnly: false,
|
|
46
56
|
mainMenuBar: true,
|
|
47
57
|
height: '400px',
|
|
@@ -64,10 +74,14 @@ function labels() {
|
|
|
64
74
|
const n = (key: string, one: string, many: string) => (count: number) => tOr(`core.yamlEditor.${key}`, `${one} | ${many}`, { count })
|
|
65
75
|
return {
|
|
66
76
|
text: tOr('core.yamlEditor.text', 'Text'),
|
|
67
|
-
tree: tOr('core.yamlEditor.tree', '
|
|
77
|
+
tree: tOr('core.yamlEditor.tree', 'Tree'),
|
|
78
|
+
form: tOr('core.yamlEditor.form', 'Form'),
|
|
68
79
|
modes: tOr('core.yamlEditor.modes', 'View'),
|
|
69
|
-
syntaxBlocked: tOr('core.yamlEditor.syntaxBlocked', 'Fix the syntax errors before switching to the form'),
|
|
80
|
+
syntaxBlocked: tOr('core.yamlEditor.syntaxBlocked', 'Fix the syntax errors before switching to the tree or the form'),
|
|
70
81
|
syntaxErrors: n('syntaxErrors', '{count} syntax error', '{count} syntax errors'),
|
|
82
|
+
warnings: n('warnings', '{count} warning', '{count} warnings'),
|
|
83
|
+
colonKey: (key: string, suggestion: string) => tOr('core.yamlEditor.colonKey', 'The key is "{key}": did you mean "{suggestion}:"?', { key, suggestion }),
|
|
84
|
+
spacedKey: (key: string) => tOr('core.yamlEditor.spacedKey', 'The key "{key}" starts or ends with a space', { key }),
|
|
71
85
|
addItem: tOr('core.yamlEditor.addItem', 'Add item'),
|
|
72
86
|
addKey: tOr('core.yamlEditor.addKey', 'Add'),
|
|
73
87
|
newKey: tOr('core.yamlEditor.newKey', 'new key'),
|
|
@@ -89,9 +103,12 @@ onMounted(() => {
|
|
|
89
103
|
props: {
|
|
90
104
|
content: props.modelValue,
|
|
91
105
|
mode: props.mode,
|
|
106
|
+
modes: props.modes,
|
|
107
|
+
modeSwitch: props.modeSwitch,
|
|
92
108
|
schema: props.schema,
|
|
93
109
|
validator: props.validator,
|
|
94
110
|
problems: props.problems,
|
|
111
|
+
lint: props.lint,
|
|
95
112
|
readOnly: props.readOnly,
|
|
96
113
|
mainMenuBar: props.mainMenuBar,
|
|
97
114
|
labels: labels(),
|
|
@@ -116,9 +133,9 @@ watch(
|
|
|
116
133
|
}
|
|
117
134
|
)
|
|
118
135
|
watch(
|
|
119
|
-
() => [props.schema, props.validator, props.problems, props.readOnly, props.mainMenuBar] as const,
|
|
136
|
+
() => [props.schema, props.validator, props.problems, props.lint, props.readOnly, props.mainMenuBar, props.modes, props.modeSwitch] as const,
|
|
120
137
|
() => {
|
|
121
|
-
editor?.updateProps({ schema: props.schema, validator: props.validator, problems: props.problems, readOnly: props.readOnly, mainMenuBar: props.mainMenuBar })
|
|
138
|
+
editor?.updateProps({ schema: props.schema, validator: props.validator, problems: props.problems, lint: props.lint, readOnly: props.readOnly, mainMenuBar: props.mainMenuBar, modes: props.modes, modeSwitch: props.modeSwitch })
|
|
122
139
|
if (editor) emit('status', editor.status())
|
|
123
140
|
}
|
|
124
141
|
)
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
import { computed, onMounted, onUnmounted, ref, shallowRef } from 'vue'
|
|
16
16
|
import Textarea from 'primevue/textarea'
|
|
17
|
-
import { validate, type YamlEditorStatus, type YamlProblem } from '@quazardous/vanilla-yamleditor'
|
|
17
|
+
import { validate, yamlChangedPaths, type YamlEditorMode, type YamlEditorStatus, type YamlPath, type YamlProblem } from '@quazardous/vanilla-yamleditor'
|
|
18
18
|
import QdButton from '../../base/QdButton.vue'
|
|
19
19
|
import QdMessage from '../../base/QdMessage.vue'
|
|
20
20
|
import SimpleDialog from '../../dialogs/SimpleDialog.vue'
|
|
@@ -29,6 +29,14 @@ interface Props {
|
|
|
29
29
|
adapter: YamlConfigAdapter
|
|
30
30
|
/** Read only, whatever the server says. */
|
|
31
31
|
readOnly?: boolean
|
|
32
|
+
/** Force a view; default: form with a schema, tree without. */
|
|
33
|
+
mode?: YamlEditorMode
|
|
34
|
+
/** The views offered, e.g. ['form', 'text']. */
|
|
35
|
+
modes?: YamlEditorMode[]
|
|
36
|
+
/** Show the view buttons. */
|
|
37
|
+
modeSwitch?: boolean
|
|
38
|
+
/** Warn on valid YAML that is likely a typo (`key ::`); never blocks a save. */
|
|
39
|
+
lint?: boolean
|
|
32
40
|
height?: string
|
|
33
41
|
/** Ask before leaving the page with unsaved changes. */
|
|
34
42
|
guard?: boolean
|
|
@@ -36,6 +44,10 @@ interface Props {
|
|
|
36
44
|
|
|
37
45
|
const props = withDefaults(defineProps<Props>(), {
|
|
38
46
|
readOnly: false,
|
|
47
|
+
mode: undefined,
|
|
48
|
+
modes: undefined,
|
|
49
|
+
modeSwitch: true,
|
|
50
|
+
lint: true,
|
|
39
51
|
height: '28rem',
|
|
40
52
|
guard: true,
|
|
41
53
|
})
|
|
@@ -123,10 +135,30 @@ async function runCheck(): Promise<boolean> {
|
|
|
123
135
|
return true
|
|
124
136
|
}
|
|
125
137
|
|
|
138
|
+
// --- The keys a change touches (#4412): above the review and conflict diffs ---
|
|
139
|
+
|
|
140
|
+
const MAX_KEYS = 8
|
|
141
|
+
|
|
142
|
+
/** The changed keys, at most MAX_KEYS, and how many more; null when nothing but comments or layout changed. */
|
|
143
|
+
function changedKeys(before: string | undefined, after: string | undefined) {
|
|
144
|
+
const paths = before === undefined || after === undefined ? null : yamlChangedPaths(before, after)
|
|
145
|
+
if (!paths?.length) return null
|
|
146
|
+
return { shown: paths.slice(0, MAX_KEYS), more: Math.max(0, paths.length - MAX_KEYS) }
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
const keyLabel = (path: YamlPath) => path.join('.') || '/'
|
|
150
|
+
|
|
151
|
+
/** From the review: back to the editor, at that key */
|
|
152
|
+
function goToKey(path: YamlPath) {
|
|
153
|
+
reviewOpen.value = false
|
|
154
|
+
editorRef.value?.revealPath(path)
|
|
155
|
+
}
|
|
156
|
+
|
|
126
157
|
// --- Save: check → diff + reason → save ---
|
|
127
158
|
|
|
128
159
|
const reviewOpen = ref(false)
|
|
129
160
|
const reason = ref('')
|
|
161
|
+
const reviewKeys = computed(() => (reviewOpen.value ? changedKeys(original.value?.yaml, text.value) : null))
|
|
130
162
|
|
|
131
163
|
async function startSave() {
|
|
132
164
|
if (!dirty.value) {
|
|
@@ -175,6 +207,8 @@ function revert() {
|
|
|
175
207
|
|
|
176
208
|
const conflictOpen = ref(false)
|
|
177
209
|
const conflict = shallowRef<YamlConfigDocument | null>(null)
|
|
210
|
+
// What the other person changed: the version I loaded against theirs
|
|
211
|
+
const conflictKeys = computed(() => (conflictOpen.value ? changedKeys(original.value?.yaml, conflict.value?.yaml) : null))
|
|
178
212
|
|
|
179
213
|
function takeTheirs() {
|
|
180
214
|
if (!conflict.value) return
|
|
@@ -290,6 +324,10 @@ defineExpose({ reload: load, check: runCheck, save: startSave, dirty })
|
|
|
290
324
|
v-model="text"
|
|
291
325
|
:schema="original.schema"
|
|
292
326
|
:problems="serverProblems"
|
|
327
|
+
:mode="mode"
|
|
328
|
+
:modes="modes"
|
|
329
|
+
:mode-switch="modeSwitch"
|
|
330
|
+
:lint="lint"
|
|
293
331
|
:read-only="readOnly"
|
|
294
332
|
:height="height"
|
|
295
333
|
@status="onStatus"
|
|
@@ -306,6 +344,11 @@ defineExpose({ reload: load, check: runCheck, save: startSave, dirty })
|
|
|
306
344
|
:loading="saving"
|
|
307
345
|
@confirm="confirmSave"
|
|
308
346
|
>
|
|
347
|
+
<p v-if="reviewKeys" class="qd-yaml-config-keys">
|
|
348
|
+
<span>{{ l('changedKeys', 'Changed:') }}</span>
|
|
349
|
+
<button v-for="path in reviewKeys.shown" :key="keyLabel(path)" type="button" class="qd-yaml-config-key" @click="goToKey(path)">{{ keyLabel(path) }}</button>
|
|
350
|
+
<span v-if="reviewKeys.more" class="qd-yaml-config-more">{{ l('moreKeys', '+{count} more', { count: reviewKeys.more }) }}</span>
|
|
351
|
+
</p>
|
|
309
352
|
<PayloadDiff :left="original?.yaml ?? ''" :right="text" format="text" :labels="[l('before', 'Before'), l('after', 'After')]" max-height="24rem" />
|
|
310
353
|
<div class="qd-yaml-config-reason">
|
|
311
354
|
<label for="qd-yaml-reason">{{ l('reason', 'Reason') }} *</label>
|
|
@@ -315,6 +358,11 @@ defineExpose({ reload: load, check: runCheck, save: startSave, dirty })
|
|
|
315
358
|
|
|
316
359
|
<SimpleDialog v-model:visible="conflictOpen" :title="l('conflictTitle', 'Changed meanwhile')" width="60rem" :show-confirm="false" :cancel-label="l('cancel', 'Cancel')">
|
|
317
360
|
<p>{{ l('conflictText', 'Someone saved this document after you opened it. Their version is on the left, yours on the right.') }}</p>
|
|
361
|
+
<p v-if="conflictKeys" class="qd-yaml-config-keys">
|
|
362
|
+
<span>{{ l('theyChanged', 'They changed:') }}</span>
|
|
363
|
+
<code v-for="path in conflictKeys.shown" :key="keyLabel(path)" class="qd-yaml-config-key">{{ keyLabel(path) }}</code>
|
|
364
|
+
<span v-if="conflictKeys.more" class="qd-yaml-config-more">{{ l('moreKeys', '+{count} more', { count: conflictKeys.more }) }}</span>
|
|
365
|
+
</p>
|
|
318
366
|
<PayloadDiff :left="conflict?.yaml ?? ''" :right="text" format="text" max-height="24rem" />
|
|
319
367
|
<template #actions>
|
|
320
368
|
<QdButton :label="l('takeTheirs', 'Load their version')" severity="secondary" outlined @click="takeTheirs" />
|
|
@@ -23,12 +23,14 @@
|
|
|
23
23
|
* - url: clickable link
|
|
24
24
|
* - json: formatted JSON
|
|
25
25
|
* - currency: formatted currency
|
|
26
|
+
* - bytes: a file size ("1,4 Mo"), in the app's language
|
|
26
27
|
* - badge: styled tag
|
|
27
28
|
*/
|
|
28
29
|
import { computed, type PropType } from 'vue'
|
|
29
30
|
import { RouterLink, type RouteLocationRaw } from 'vue-router'
|
|
30
31
|
import Tag from 'primevue/tag'
|
|
31
|
-
import { formatDate, formatNumber, formatCurrency, getEmptyPlaceholder } from '../../utils/formatters'
|
|
32
|
+
import { formatDate, formatNumber, formatCurrency, formatBytes, getEmptyPlaceholder } from '../../utils/formatters'
|
|
33
|
+
import { useFormatBytes } from '../../composables/useFormatBytes'
|
|
32
34
|
|
|
33
35
|
type DisplayType =
|
|
34
36
|
| 'text'
|
|
@@ -45,6 +47,7 @@ type DisplayType =
|
|
|
45
47
|
| 'url'
|
|
46
48
|
| 'json'
|
|
47
49
|
| 'currency'
|
|
50
|
+
| 'bytes'
|
|
48
51
|
| 'badge'
|
|
49
52
|
|
|
50
53
|
type DisplayValue = string | number | boolean | Date | null | undefined | unknown
|
|
@@ -128,6 +131,15 @@ const currencyValue = computed(() => {
|
|
|
128
131
|
return formatCurrency(num, props.field.currencyCode || 'USD', props.field.locale)
|
|
129
132
|
})
|
|
130
133
|
|
|
134
|
+
// Format a size in bytes: the app's language and catalogue units, or the field's locale
|
|
135
|
+
const appBytes = useFormatBytes()
|
|
136
|
+
const bytesValue = computed(() => {
|
|
137
|
+
if (isEmpty.value) return emptyText.value
|
|
138
|
+
const num = Number(props.value)
|
|
139
|
+
if (isNaN(num)) return String(props.value)
|
|
140
|
+
return props.field.locale ? formatBytes(num, props.field.locale) : appBytes(num)
|
|
141
|
+
})
|
|
142
|
+
|
|
131
143
|
// Format boolean value
|
|
132
144
|
const booleanValue = computed(() => {
|
|
133
145
|
if (isEmpty.value) return emptyText.value
|
|
@@ -268,6 +280,11 @@ const imageStyle = computed(() => ({
|
|
|
268
280
|
{{ currencyValue }}
|
|
269
281
|
</span>
|
|
270
282
|
|
|
283
|
+
<!-- Size in bytes -->
|
|
284
|
+
<span v-else-if="displayType === 'bytes'" class="show-display show-display--bytes">
|
|
285
|
+
{{ bytesValue }}
|
|
286
|
+
</span>
|
|
287
|
+
|
|
271
288
|
<!-- Boolean (icon) -->
|
|
272
289
|
<span v-else-if="displayType === 'boolean'" class="show-display show-display--boolean" :class="booleanIconClass">
|
|
273
290
|
<i :class="['pi', booleanIcon]"></i>
|
|
@@ -245,7 +245,7 @@ onBeforeUnmount(() => {
|
|
|
245
245
|
</slot>
|
|
246
246
|
</div>
|
|
247
247
|
<LogStream v-if="logSource" :key="run.id" class="qd-task-log" :source="logSource" :filename="logFilename" height="16rem"
|
|
248
|
-
error-pattern="
|
|
248
|
+
:error-pattern="ui.logPatterns.errorPattern" :timestamp-pattern="ui.logPatterns.timestampPattern" @done="store.poke(run.id)" />
|
|
249
249
|
<div v-if="has('after-log')" class="qd-task-after-log">
|
|
250
250
|
<slot name="after-log" v-bind="slotProps">
|
|
251
251
|
<component :is="slotComponent('after-log')!" v-bind="slotProps" />
|
package/src/composables/index.ts
CHANGED
|
@@ -48,6 +48,7 @@ export {
|
|
|
48
48
|
type BulkStatusActionReturn,
|
|
49
49
|
} from './useListPage'
|
|
50
50
|
export { usePageTitle, type UsePageTitleReturn, type TitleParts, type TitleInput } from './usePageTitle'
|
|
51
|
+
export { useFormatBytes } from './useFormatBytes'
|
|
51
52
|
export { useApp, type UseAppReturn } from './useApp'
|
|
52
53
|
export { useAuth, type UseAuthReturn } from './useAuth'
|
|
53
54
|
export { useUserBox, resolveUserAvatar, isExternalUserLink, type UseUserBoxReturn, type UserAvatarResolver, type UserBoxUser } from './useUserBox'
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* useFormatBytes (#4384): formatBytes in the app's language, with the unit
|
|
3
|
+
* labels of the catalogue (core.units.bytes.*), so an app can rename them.
|
|
4
|
+
*
|
|
5
|
+
* const formatBytes = useFormatBytes()
|
|
6
|
+
* formatBytes(1468006) // "1,4 Mo" in French
|
|
7
|
+
*/
|
|
8
|
+
import { useI18n } from '../i18n/useI18n'
|
|
9
|
+
import { byteUnits, formatBytes } from '../utils/formatters'
|
|
10
|
+
|
|
11
|
+
const KEYS = ['b', 'kb', 'mb', 'gb', 'tb']
|
|
12
|
+
|
|
13
|
+
export function useFormatBytes(): (bytes: number | null | undefined) => string {
|
|
14
|
+
const { tOr, locale } = useI18n()
|
|
15
|
+
return (bytes) => {
|
|
16
|
+
const fallback = byteUnits(locale.value)
|
|
17
|
+
const units = KEYS.map((key, i) => tOr(`core.units.bytes.${key}`, fallback[i]!))
|
|
18
|
+
return formatBytes(bytes, locale.value, units)
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -262,13 +262,25 @@ export default `core:
|
|
|
262
262
|
next: Next message
|
|
263
263
|
position: "{index} of {count}"
|
|
264
264
|
close: Close this message
|
|
265
|
+
# formatBytes in qdadm's own components (#4384)
|
|
266
|
+
units:
|
|
267
|
+
bytes:
|
|
268
|
+
b: B
|
|
269
|
+
kb: KB
|
|
270
|
+
mb: MB
|
|
271
|
+
gb: GB
|
|
272
|
+
tb: TB
|
|
265
273
|
# VanillaYamlEditor and YamlConfigEditor (#4303)
|
|
266
274
|
yamlEditor:
|
|
267
275
|
text: Text
|
|
268
|
-
tree:
|
|
276
|
+
tree: Tree
|
|
277
|
+
form: Form
|
|
269
278
|
modes: View
|
|
270
|
-
syntaxBlocked: Fix the syntax errors before switching to the form
|
|
279
|
+
syntaxBlocked: "Fix the syntax errors before switching to the tree or the form"
|
|
271
280
|
syntaxErrors: "{count} syntax error | {count} syntax errors"
|
|
281
|
+
warnings: "{count} warning | {count} warnings"
|
|
282
|
+
colonKey: 'The key is "{key}": did you mean "{suggestion}:"?'
|
|
283
|
+
spacedKey: 'The key "{key}" starts or ends with a space'
|
|
272
284
|
addItem: Add item
|
|
273
285
|
addKey: Add
|
|
274
286
|
newKey: new key
|
|
@@ -303,6 +315,9 @@ export default `core:
|
|
|
303
315
|
restored: "Version {revision} loaded: review and save it to restore it"
|
|
304
316
|
conflictTitle: Changed meanwhile
|
|
305
317
|
conflictText: Someone saved this document after you opened it. Their version is on the left, yours on the right.
|
|
318
|
+
changedKeys: "Changed:"
|
|
319
|
+
theyChanged: "They changed:"
|
|
320
|
+
moreKeys: "+{count} more"
|
|
306
321
|
takeTheirs: Load their version
|
|
307
322
|
keepMine: Keep mine and save over it
|
|
308
323
|
# NotFoundPage
|
|
@@ -260,13 +260,25 @@ core:
|
|
|
260
260
|
next: Next message
|
|
261
261
|
position: "{index} of {count}"
|
|
262
262
|
close: Close this message
|
|
263
|
+
# formatBytes in qdadm's own components (#4384)
|
|
264
|
+
units:
|
|
265
|
+
bytes:
|
|
266
|
+
b: B
|
|
267
|
+
kb: KB
|
|
268
|
+
mb: MB
|
|
269
|
+
gb: GB
|
|
270
|
+
tb: TB
|
|
263
271
|
# VanillaYamlEditor and YamlConfigEditor (#4303)
|
|
264
272
|
yamlEditor:
|
|
265
273
|
text: Text
|
|
266
|
-
tree:
|
|
274
|
+
tree: Tree
|
|
275
|
+
form: Form
|
|
267
276
|
modes: View
|
|
268
|
-
syntaxBlocked: Fix the syntax errors before switching to the form
|
|
277
|
+
syntaxBlocked: "Fix the syntax errors before switching to the tree or the form"
|
|
269
278
|
syntaxErrors: "{count} syntax error | {count} syntax errors"
|
|
279
|
+
warnings: "{count} warning | {count} warnings"
|
|
280
|
+
colonKey: 'The key is "{key}": did you mean "{suggestion}:"?'
|
|
281
|
+
spacedKey: 'The key "{key}" starts or ends with a space'
|
|
270
282
|
addItem: Add item
|
|
271
283
|
addKey: Add
|
|
272
284
|
newKey: new key
|
|
@@ -301,6 +313,9 @@ core:
|
|
|
301
313
|
restored: "Version {revision} loaded: review and save it to restore it"
|
|
302
314
|
conflictTitle: Changed meanwhile
|
|
303
315
|
conflictText: Someone saved this document after you opened it. Their version is on the left, yours on the right.
|
|
316
|
+
changedKeys: "Changed:"
|
|
317
|
+
theyChanged: "They changed:"
|
|
318
|
+
moreKeys: "+{count} more"
|
|
304
319
|
takeTheirs: Load their version
|
|
305
320
|
keepMine: Keep mine and save over it
|
|
306
321
|
# NotFoundPage
|
|
@@ -262,13 +262,25 @@ export default `core:
|
|
|
262
262
|
next: Message suivant
|
|
263
263
|
position: "{index} sur {count}"
|
|
264
264
|
close: Fermer ce message
|
|
265
|
+
# formatBytes in qdadm's own components (#4384)
|
|
266
|
+
units:
|
|
267
|
+
bytes:
|
|
268
|
+
b: o
|
|
269
|
+
kb: ko
|
|
270
|
+
mb: Mo
|
|
271
|
+
gb: Go
|
|
272
|
+
tb: To
|
|
265
273
|
# VanillaYamlEditor and YamlConfigEditor (#4303)
|
|
266
274
|
yamlEditor:
|
|
267
275
|
text: Texte
|
|
268
|
-
tree:
|
|
276
|
+
tree: Arbre
|
|
277
|
+
form: Formulaire
|
|
269
278
|
modes: Vue
|
|
270
|
-
syntaxBlocked: Corrigez les erreurs de syntaxe avant de passer au formulaire
|
|
279
|
+
syntaxBlocked: "Corrigez les erreurs de syntaxe avant de passer à l'arbre ou au formulaire"
|
|
271
280
|
syntaxErrors: "{count} erreur de syntaxe | {count} erreurs de syntaxe"
|
|
281
|
+
warnings: "{count} avertissement | {count} avertissements"
|
|
282
|
+
colonKey: 'La clé est « {key} » : vouliez-vous dire « {suggestion}: » ?'
|
|
283
|
+
spacedKey: 'La clé « {key} » commence ou finit par une espace'
|
|
272
284
|
addItem: Ajouter un élément
|
|
273
285
|
addKey: Ajouter
|
|
274
286
|
newKey: nouvelle clé
|
|
@@ -303,6 +315,9 @@ export default `core:
|
|
|
303
315
|
restored: "Version {revision} chargée : relisez-la et enregistrez-la pour la restaurer"
|
|
304
316
|
conflictTitle: Modifié entre-temps
|
|
305
317
|
conflictText: Quelqu'un a enregistré ce document après votre ouverture. Sa version est à gauche, la vôtre à droite.
|
|
318
|
+
changedKeys: "Modifié :"
|
|
319
|
+
theyChanged: "Modifié par l'autre :"
|
|
320
|
+
moreKeys: "+{count} autres"
|
|
306
321
|
takeTheirs: Charger sa version
|
|
307
322
|
keepMine: Garder la mienne et l'enregistrer par-dessus
|
|
308
323
|
# NotFoundPage
|
|
@@ -260,13 +260,25 @@ core:
|
|
|
260
260
|
next: Message suivant
|
|
261
261
|
position: "{index} sur {count}"
|
|
262
262
|
close: Fermer ce message
|
|
263
|
+
# formatBytes in qdadm's own components (#4384)
|
|
264
|
+
units:
|
|
265
|
+
bytes:
|
|
266
|
+
b: o
|
|
267
|
+
kb: ko
|
|
268
|
+
mb: Mo
|
|
269
|
+
gb: Go
|
|
270
|
+
tb: To
|
|
263
271
|
# VanillaYamlEditor and YamlConfigEditor (#4303)
|
|
264
272
|
yamlEditor:
|
|
265
273
|
text: Texte
|
|
266
|
-
tree:
|
|
274
|
+
tree: Arbre
|
|
275
|
+
form: Formulaire
|
|
267
276
|
modes: Vue
|
|
268
|
-
syntaxBlocked: Corrigez les erreurs de syntaxe avant de passer au formulaire
|
|
277
|
+
syntaxBlocked: "Corrigez les erreurs de syntaxe avant de passer à l'arbre ou au formulaire"
|
|
269
278
|
syntaxErrors: "{count} erreur de syntaxe | {count} erreurs de syntaxe"
|
|
279
|
+
warnings: "{count} avertissement | {count} avertissements"
|
|
280
|
+
colonKey: 'La clé est « {key} » : vouliez-vous dire « {suggestion}: » ?'
|
|
281
|
+
spacedKey: 'La clé « {key} » commence ou finit par une espace'
|
|
270
282
|
addItem: Ajouter un élément
|
|
271
283
|
addKey: Ajouter
|
|
272
284
|
newKey: nouvelle clé
|
|
@@ -301,6 +313,9 @@ core:
|
|
|
301
313
|
restored: "Version {revision} chargée : relisez-la et enregistrez-la pour la restaurer"
|
|
302
314
|
conflictTitle: Modifié entre-temps
|
|
303
315
|
conflictText: Quelqu'un a enregistré ce document après votre ouverture. Sa version est à gauche, la vôtre à droite.
|
|
316
|
+
changedKeys: "Modifié :"
|
|
317
|
+
theyChanged: "Modifié par l'autre :"
|
|
318
|
+
moreKeys: "+{count} autres"
|
|
304
319
|
takeTheirs: Charger sa version
|
|
305
320
|
keepMine: Garder la mienne et l'enregistrer par-dessus
|
|
306
321
|
# NotFoundPage
|
package/src/index.ts
CHANGED
|
@@ -261,6 +261,7 @@ export {
|
|
|
261
261
|
type TitleParts,
|
|
262
262
|
type TitleInput,
|
|
263
263
|
} from './composables/usePageTitle'
|
|
264
|
+
export { useFormatBytes } from './composables/useFormatBytes'
|
|
264
265
|
export { useApp, type UseAppReturn } from './composables/useApp'
|
|
265
266
|
export { useAuth, type UseAuthReturn } from './composables/useAuth'
|
|
266
267
|
export { useUserBox, resolveUserAvatar, isExternalUserLink, type UseUserBoxReturn, type UserAvatarResolver, type UserBoxUser } from './composables/useUserBox'
|
|
@@ -457,6 +458,8 @@ export {
|
|
|
457
458
|
getTaskUi,
|
|
458
459
|
resolveTaskUi,
|
|
459
460
|
TASK_DIALOG_DEFAULTS,
|
|
461
|
+
TASK_LOG_DEFAULTS,
|
|
462
|
+
type TaskLogPatterns,
|
|
460
463
|
type TaskDialogOptions,
|
|
461
464
|
type TaskDialogSlotName,
|
|
462
465
|
type TaskUiOptions,
|
|
@@ -57,6 +57,37 @@
|
|
|
57
57
|
color: var(--p-orange-600, #ea580c);
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
+
.qd-yaml-config-keys {
|
|
61
|
+
display: flex;
|
|
62
|
+
flex-wrap: wrap;
|
|
63
|
+
align-items: center;
|
|
64
|
+
gap: 0.35rem;
|
|
65
|
+
margin: 0 0 0.6rem;
|
|
66
|
+
font-size: 0.875rem;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.qd-yaml-config-key {
|
|
70
|
+
font-family: var(--qd-font-mono, monospace);
|
|
71
|
+
font-size: 0.8125rem;
|
|
72
|
+
padding: 0.1rem 0.4rem;
|
|
73
|
+
border: 1px solid var(--p-content-border-color, #e2e8f0);
|
|
74
|
+
border-radius: 4px;
|
|
75
|
+
background: var(--p-content-hover-background, #f8fafc);
|
|
76
|
+
color: inherit;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
button.qd-yaml-config-key {
|
|
80
|
+
cursor: pointer;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
button.qd-yaml-config-key:hover {
|
|
84
|
+
border-color: var(--p-primary-color, #10b981);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.qd-yaml-config-more {
|
|
88
|
+
color: var(--p-text-muted-color, #64748b);
|
|
89
|
+
}
|
|
90
|
+
|
|
60
91
|
.qd-yaml-config-reason {
|
|
61
92
|
display: flex;
|
|
62
93
|
flex-direction: column;
|
package/src/tasks/taskStore.ts
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* they live in. Runs of a registered kind survive a reload (sessionStorage).
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import type { TaskDialogOptions, TaskUiOptions } from './taskUi'
|
|
15
|
+
import type { TaskDialogOptions, TaskLogPatterns, TaskUiOptions } from './taskUi'
|
|
16
16
|
import { reactive, computed, type ComputedRef } from 'vue'
|
|
17
17
|
import type { LogSource } from '../composables/useLogStream'
|
|
18
18
|
|
|
@@ -58,6 +58,8 @@ export interface TaskKind {
|
|
|
58
58
|
onSettled?: (run: TaskRun) => void
|
|
59
59
|
/** The follow dialog's window options for this kind, over the app's (#4334). */
|
|
60
60
|
dialog?: TaskDialogOptions
|
|
61
|
+
/** What the log flags as an error or a timestamp for this kind, over the app's (#4386). */
|
|
62
|
+
logPatterns?: TaskLogPatterns
|
|
61
63
|
/** Slot components for this kind's dialog, over the app's. */
|
|
62
64
|
slots?: TaskUiOptions['slots']
|
|
63
65
|
/** A dialog of its own for this kind, instead of TaskDialog. */
|
package/src/tasks/taskUi.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* How the TaskRunner looks (#4334): the follow dialog's window options, slot
|
|
3
|
-
* components, a replacement dialog,
|
|
3
|
+
* components, a replacement dialog, the tray's row, and what its log flags as
|
|
4
|
+
* an error or a timestamp (#4386). Layered: qdadm's
|
|
4
5
|
* defaults, then the app's (configureTasks), then the task kind's
|
|
5
6
|
* (registerTaskKind / run options), then a page's own TaskDialog props.
|
|
6
7
|
*
|
|
7
8
|
* configureTasks({ dialog: { width: '56rem', modal: false }, slots: { 'after-log': DeliverySummary } })
|
|
8
9
|
* registerTaskKind('deploy', { task, log, dialog: { maximizable: false }, component: DeployDialog })
|
|
10
|
+
* registerTaskKind('deliver', { task, log, logPatterns: { errorPattern: /\[error\]|^→ failed/ } })
|
|
9
11
|
*/
|
|
10
12
|
import { shallowReactive, type Component } from 'vue'
|
|
11
13
|
|
|
@@ -29,8 +31,17 @@ export interface TaskDialogOptions {
|
|
|
29
31
|
/** The TaskDialog slots an app fills with components; each gets `{ run, kind, final }`. */
|
|
30
32
|
export type TaskDialogSlotName = 'header' | 'before-log' | 'after-log' | 'actions' | 'result'
|
|
31
33
|
|
|
34
|
+
/** The follow dialog's log (LogStream): a string is a case-insensitive pattern; null turns it off. */
|
|
35
|
+
export interface TaskLogPatterns {
|
|
36
|
+
/** The lines flagged as errors, and counted by the "N errors" button */
|
|
37
|
+
errorPattern?: RegExp | string | null
|
|
38
|
+
/** The timestamp at the start of a line, shown dimmed */
|
|
39
|
+
timestampPattern?: RegExp | string | null
|
|
40
|
+
}
|
|
41
|
+
|
|
32
42
|
export interface TaskUiOptions {
|
|
33
43
|
dialog?: TaskDialogOptions
|
|
44
|
+
logPatterns?: TaskLogPatterns
|
|
34
45
|
slots?: Partial<Record<TaskDialogSlotName, Component>>
|
|
35
46
|
/**
|
|
36
47
|
* Renders instead of TaskDialog, with props `{ runId, options }` and a
|
|
@@ -54,12 +65,19 @@ export const TASK_DIALOG_DEFAULTS: Required<Omit<TaskDialogOptions, 'position' |
|
|
|
54
65
|
class: undefined,
|
|
55
66
|
}
|
|
56
67
|
|
|
68
|
+
// Whole words only, so a file name such as shipping_error.php is not an error
|
|
69
|
+
export const TASK_LOG_DEFAULTS: Required<TaskLogPatterns> = {
|
|
70
|
+
errorPattern: /\b(error|fatal|failed)\b/i,
|
|
71
|
+
timestampPattern: null,
|
|
72
|
+
}
|
|
73
|
+
|
|
57
74
|
const app = shallowReactive<TaskUiOptions>({})
|
|
58
75
|
|
|
59
76
|
/** The app's TaskRunner look, once at boot. Later calls merge over earlier ones. */
|
|
60
77
|
export function configureTasks(options: TaskUiOptions): void {
|
|
61
78
|
if (options.dialog) app.dialog = { ...app.dialog, ...options.dialog }
|
|
62
79
|
if (options.slots) app.slots = { ...app.slots, ...options.slots }
|
|
80
|
+
if (options.logPatterns) app.logPatterns = { ...app.logPatterns, ...options.logPatterns }
|
|
63
81
|
if (options.component !== undefined) app.component = options.component
|
|
64
82
|
if (options.tray) app.tray = { ...app.tray, ...options.tray }
|
|
65
83
|
}
|
|
@@ -68,6 +86,7 @@ export function configureTasks(options: TaskUiOptions): void {
|
|
|
68
86
|
export function resetTaskUi(): void {
|
|
69
87
|
delete app.dialog
|
|
70
88
|
delete app.slots
|
|
89
|
+
delete app.logPatterns
|
|
71
90
|
delete app.component
|
|
72
91
|
delete app.tray
|
|
73
92
|
}
|
|
@@ -79,10 +98,11 @@ export function getTaskUi(): Readonly<TaskUiOptions> {
|
|
|
79
98
|
|
|
80
99
|
/** One run's look: defaults, then the app's, then the kind's, then a page's props. */
|
|
81
100
|
export function resolveTaskUi(kind?: TaskUiOptions | null, page?: TaskDialogOptions | null) {
|
|
82
|
-
const strip = (o?:
|
|
83
|
-
Object.fromEntries(Object.entries(o ?? {}).filter(([, v]) => v !== undefined)) as TaskDialogOptions
|
|
101
|
+
const strip = <T extends object>(o?: T | null) => Object.fromEntries(Object.entries(o ?? {}).filter(([, v]) => v !== undefined)) as T
|
|
84
102
|
return {
|
|
85
103
|
dialog: { ...TASK_DIALOG_DEFAULTS, ...strip(app.dialog), ...strip(kind?.dialog), ...strip(page) },
|
|
104
|
+
// null is kept: it turns a pattern off
|
|
105
|
+
logPatterns: { ...TASK_LOG_DEFAULTS, ...strip(app.logPatterns), ...strip(kind?.logPatterns) } as Required<TaskLogPatterns>,
|
|
86
106
|
slots: { ...app.slots, ...kind?.slots } as Partial<Record<TaskDialogSlotName, Component>>,
|
|
87
107
|
component: kind?.component ?? app.component ?? null,
|
|
88
108
|
}
|
package/src/utils/formatters.ts
CHANGED
|
@@ -201,18 +201,37 @@ export function formatCurrency(
|
|
|
201
201
|
return new Intl.NumberFormat(locale, { style: 'currency', currency: currencyCode }).format(value)
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
+
/** Size units by language (octets in French); any other language gets the English ones. */
|
|
205
|
+
const BYTE_UNITS: Record<string, string[]> = {
|
|
206
|
+
en: ['B', 'KB', 'MB', 'GB', 'TB'],
|
|
207
|
+
fr: ['o', 'ko', 'Mo', 'Go', 'To'],
|
|
208
|
+
}
|
|
209
|
+
|
|
204
210
|
/**
|
|
205
|
-
*
|
|
211
|
+
* The size units of a locale: B, KB, MB, GB, TB, or o, ko, Mo, Go, To in French
|
|
212
|
+
*
|
|
213
|
+
* @param locale - Explicit locale override (default: browser locale)
|
|
206
214
|
*/
|
|
207
|
-
export function
|
|
208
|
-
|
|
209
|
-
|
|
215
|
+
export function byteUnits(locale?: string): string[] {
|
|
216
|
+
const lang = new Intl.NumberFormat(locale).resolvedOptions().locale.split('-')[0] ?? 'en'
|
|
217
|
+
return BYTE_UNITS[lang] ?? BYTE_UNITS.en!
|
|
218
|
+
}
|
|
210
219
|
|
|
211
|
-
|
|
220
|
+
/**
|
|
221
|
+
* Format bytes to human-readable size, base 1024 ("1 Mo", "1,4 Mo", "512 o")
|
|
222
|
+
*
|
|
223
|
+
* @param locale - Explicit locale override (default: browser locale)
|
|
224
|
+
* @param units - The five unit labels, B to TB (default: the locale's, see byteUnits)
|
|
225
|
+
*/
|
|
226
|
+
export function formatBytes(bytes: number | null | undefined, locale?: string, units?: string[]): string {
|
|
227
|
+
if (bytes === null || bytes === undefined) return emptyPlaceholder
|
|
228
|
+
const labels = units ?? byteUnits(locale)
|
|
212
229
|
const k = 1024
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
230
|
+
let i = bytes === 0 ? 0 : Math.min(Math.max(Math.floor(Math.log(Math.abs(bytes)) / Math.log(k)), 0), labels.length - 1)
|
|
231
|
+
// 1023.96 KB shows as 1 MB, not 1 024 KB
|
|
232
|
+
if (i < labels.length - 1 && Math.round((Math.abs(bytes) / Math.pow(k, i)) * 10) / 10 >= k) i++
|
|
233
|
+
const value = new Intl.NumberFormat(locale, { maximumFractionDigits: i === 0 ? 0 : 1 }).format(bytes / Math.pow(k, i))
|
|
234
|
+
return `${value} ${labels[i]}`
|
|
216
235
|
}
|
|
217
236
|
|
|
218
237
|
/**
|