.pet-admin .pet-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.pet-tabs a{padding:10px 16px;border:1px solid #e1e7ef;border-radius:6px;color:#526174;background:white;text-decoration:none}.pet-tabs a.active{color:#245bdd;border-color:#afc4f9;background:#edf3ff}.pet-note{padding:12px 16px;background:#f0f5fb;border:1px solid #dce6f2;border-radius:6px;color:#526174;line-height:1.7}.pet-message{color:#a34a20;min-height:28px;margin:12px 0;overflow-wrap:anywhere}.pet-tools,.pet-search{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.pet-admin input,.pet-admin textarea,.pet-admin select{font:inherit;border:1px solid #d7dfe9;border-radius:5px;padding:9px 11px;max-width:100%;background:#fff}.pet-list{min-height:150px}.pet-list small{display:block;color:#758196;font-size:12px;margin-top:5px}.pet-empty{padding:40px;text-align:center;color:#748197}.pet-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:20px}.pet-fields label{display:flex;flex-direction:column;gap:8px;color:#44536a}.pet-wide{grid-column:1/-1}.pet-edit-panel{margin-top:20px}.pet-edit-form footer{display:flex;gap:16px;align-items:center;padding:20px;border-top:1px solid #edf0f4;color:#748197;font-size:13px}.pet-save-message{padding:0 20px;color:#245bdd}.pet-admin td{max-width:400px;overflow-wrap:anywhere}.pet-admin .page-header p{color:#748197;margin:8px 0}.pet-admin button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:680px){.pet-fields{grid-template-columns:1fr}.pet-tools{width:100%}.pet-search input{width:160px}.pet-edit-form footer{align-items:flex-start;flex-direction:column}.pet-admin .panel-head{gap:14px}}
.pet-admin .panel-head{flex-wrap:wrap;height:auto}.pet-admin .panel-head .pet-tools{min-width:0;max-width:100%}.pet-admin .pet-search{margin:0;min-width:0;flex:0 1 auto}.pet-admin .pet-list{min-width:0;max-width:100%}.pet-admin .table-scroll{max-width:100%;overflow-x:auto}.pet-admin .panel-head h2{flex-shrink:0}@media(max-width:680px){.pet-admin .panel-head{display:block}.pet-admin .panel-head h2{margin-bottom:12px}.pet-admin .pet-tools{display:flex;width:100%;justify-content:flex-start}.pet-admin .pet-search{width:100%}.pet-admin .pet-search input{min-width:0;flex:1}}
.pet-summary{display:flex;gap:24px;flex-wrap:wrap;padding:12px 0 20px;color:#60718c}.pet-summary strong{font-size:22px;color:#203955;margin-left:8px}.pet-row-actions{display:flex;gap:10px;flex-wrap:wrap;min-width:180px}.pet-preview-dialog{border:1px solid #dce6f2;border-radius:10px;padding:16px;max-width:90vw}.pet-preview-dialog::backdrop{background:#14203399}.pet-preview-dialog img,.pet-preview-dialog video{display:block;max-width:80vw;max-height:72vh;margin-bottom:16px}.pet-admin .pet-job-filters{flex-wrap:wrap;max-width:100%}.pet-job-filters label{display:flex;align-items:center;gap:6px}.pet-admin .pet-note,.pet-admin .pet-message{white-space:normal;line-height:1.7}
.pet-admin .pet-sort-number{width:86px;min-width:70px;padding:8px}.pet-template-thumb{display:block;position:relative;width:120px;height:94px;padding:0;border:1px solid #e0e6ed;border-radius:7px;overflow:hidden;background:#edf1f5;cursor:pointer}.pet-template-thumb img,.pet-template-thumb video{display:block;width:100%;height:100%;object-fit:cover}.pet-template-thumb span{position:absolute;bottom:0;left:0;right:0;background:#17263caa;color:white;font-size:11px;padding:3px}.pet-no-image{display:grid;place-items:center;width:120px;height:94px;background:#f4f6f8;border:1px dashed #d5dce6;border-radius:7px;color:#8490a2;font-size:12px}.pet-templates .table-scroll table{min-width:950px;table-layout:auto}.pet-templates .pet-row-actions{min-width:80px}.pet-jobs .pet-job-filters{display:grid;grid-template-columns:minmax(180px,2fr) repeat(4,minmax(125px,1fr)) auto;gap:12px;padding:0 20px 20px;width:auto;margin:0;align-items:end}.pet-jobs .pet-job-filters label{display:flex;flex-direction:column;align-items:stretch;gap:6px;font-size:12px;color:#748197}.pet-jobs .pet-job-filters input,.pet-jobs .pet-job-filters select{width:100%;min-width:0;max-width:100%;height:38px}.pet-jobs .table-scroll table{table-layout:fixed;width:100%;min-width:1050px}.pet-jobs th:nth-child(1){width:22%}.pet-jobs th:nth-child(2){width:19%}.pet-jobs th:nth-child(3){width:11%}.pet-jobs th:nth-child(4){width:13%}.pet-jobs th:nth-child(5){width:15%}.pet-jobs th:nth-child(6){width:20%}.pet-jobs td{vertical-align:top;padding-top:18px;padding-bottom:18px;white-space:normal;word-break:normal;overflow-wrap:break-word}.pet-id{display:block;font-family:ui-monospace,Consolas,monospace;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;max-width:100%}.pet-date{font-size:12px;line-height:1.7}.pet-timing{display:grid;gap:5px;font-size:11px}.pet-timing span{display:flex;gap:8px;color:#8290a4;white-space:nowrap}.pet-timing b{font-weight:400;color:#506078}.pet-template-names{margin-top:8px;font-size:12px;line-height:1.6}.pet-type,.pet-state{display:inline-block;border-radius:4px;padding:3px 8px;background:#eff4fb;color:#476387;font-size:12px}.pet-jobs .pet-message{font-size:12px}.pet-jobs .pet-note{display:none}@media(max-width:1200px){.pet-jobs .pet-job-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:680px){.pet-jobs .pet-job-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 14px 16px}.pet-jobs .pet-job-filters>input{grid-column:1/-1}.pet-jobs .pet-job-filters input{width:100%;flex:none}.pet-template-thumb,.pet-no-image{width:100px;height:80px}}
.pet-admin .pet-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));width:min(100%,780px);gap:8px;align-items:stretch;padding:0}.pet-admin .pet-tabs>a{display:flex;align-items:center;justify-content:center;min-height:42px;margin:0;padding:8px 10px;line-height:1.4;white-space:nowrap;text-align:center;box-sizing:border-box}.pet-admin.pet-templates .panel-head{align-items:center;gap:16px}.pet-admin.pet-templates .pet-tools{display:flex;flex:0 1 auto;width:auto;align-items:center;justify-content:flex-end;gap:8px}.pet-admin.pet-templates .pet-search{display:flex;flex-wrap:nowrap;width:auto;flex:0 1 auto;gap:8px}.pet-admin.pet-templates .pet-search input{width:200px;min-width:100px}.pet-admin .pet-tools>.ui-select{flex:0 0 150px;width:150px;max-width:100%;align-self:center}.pet-admin .pet-tools>.ui-select .ui-select-trigger{height:38px}.pet-admin .pet-tools>button{white-space:nowrap;flex:0 0 auto}.pet-admin .pet-tools>select[data-pet-sort]:not(.ui-select-native){width:150px}.pet-admin .pet-message:empty,.pet-admin .pet-summary:empty{display:none}@media(max-width:1000px){.pet-admin.pet-templates .panel-head{align-items:flex-start;flex-direction:column}.pet-admin.pet-templates .pet-tools{justify-content:flex-start;width:100%}.pet-admin .pet-tabs{grid-template-columns:repeat(3,minmax(0,1fr));width:100%}}@media(max-width:480px){.pet-admin .pet-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.pet-admin.pet-templates .pet-tools{display:grid;grid-template-columns:1fr 1fr;align-items:center}.pet-admin.pet-templates .pet-search{grid-column:1/-1;width:100%}.pet-admin.pet-templates .pet-search input{width:100%;min-width:0;flex:1}.pet-admin .pet-tools>.ui-select{width:100%;min-width:0;grid-column:2;grid-row:2}.pet-admin .pet-tools>[data-pet-new]{grid-column:1/-1}.pet-admin .pet-tools>[data-pet-refresh]{grid-column:1;grid-row:2}}
.pet-admin .pet-drag-handle{display:inline-flex;align-items:center;justify-content:center;width:26px;height:36px;margin-right:5px;padding:0;border:0;background:transparent;color:#8192aa;font-size:23px;cursor:grab;touch-action:none;user-select:none;vertical-align:middle}.pet-admin .pet-drag-handle:active{cursor:grabbing}.pet-admin .pet-dragging{opacity:.5}.pet-admin tr.pet-drop-before>td{box-shadow:inset 0 3px #4477ee}.pet-admin tr.pet-drop-after>td{box-shadow:inset 0 -3px #4477ee}.pet-admin.pet-saving-order .pet-list{pointer-events:none;opacity:.7}.pet-templates td:first-child{white-space:nowrap;min-width:130px}

.pet-admin .pet-preview-dialog{padding:0;overflow:hidden;max-width:90vw}.pet-admin .pet-preview-dialog img,.pet-admin .pet-preview-dialog video{margin:0;max-width:90vw;max-height:85vh}.pet-admin .pet-preview-close{position:absolute;top:10px;right:10px;z-index:2;width:40px;height:40px;display:flex;align-items:center;justify-content:center;padding:0;border:1px solid #ffffff88;border-radius:50%;background:#142033cc;color:white;font-size:30px;line-height:1;cursor:pointer}.pet-admin .pet-preview-close:hover{background:#142033}.pet-admin .pet-preview-close:focus-visible{outline:3px solid #86b7ff;outline-offset:2px}

.pet-video-notice{padding:14px 18px;color:#33465e;background:#fff;font-size:14px}.pet-video-notice[hidden]{display:none}.pet-video-notice button{margin-left:12px}

.pet-portrait-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}.pet-art-choice{width:100%;padding:6px;background:#fff;border:2px solid #e4e7eb;border-radius:10px;cursor:pointer}.pet-art-choice.selected{border-color:#4779ed;background:#f1f5ff}.pet-art-choice img{display:block;width:100%;aspect-ratio:4/5;object-fit:contain}.pet-art-choice span{display:block;padding:8px}.pet-products-preview{margin-top:28px}.pet-products-preview p{color:#68778b;line-height:1.7}.pet-product-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:16px}.pet-product-grid article{min-width:0;background:#fff;border:1px solid #e4e7eb;border-radius:10px;overflow:hidden;padding-bottom:12px}.pet-product-grid canvas{width:100%;height:auto;display:block}.pet-product-grid strong,.pet-product-grid button{display:block;margin:10px 12px}.pet-product-grid button{font-size:13px}@media(max-width:600px){.pet-portrait-results{grid-template-columns:1fr}.pet-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.pet-admin .pet-bulk-tools{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:14px 20px;border-block:1px solid #e5ebf3;background:#f8faff}
.pet-admin .pet-bulk-tools>[data-pet-selected-count]{font-weight:600;color:#25436b;min-width:90px}
.pet-admin .pet-bulk-tools small{flex-basis:100%;font-size:12px;line-height:1.6;color:#687b96}
.pet-admin .pet-templates input[type=checkbox],.pet-admin.pet-templates .pet-list input[type=checkbox]{appearance:auto;-webkit-appearance:checkbox;width:18px;height:18px;padding:0;margin:0;vertical-align:middle;accent-color:#245bdd;cursor:pointer}
.pet-admin.pet-templates .pet-list th:first-child,.pet-admin.pet-templates .pet-list td:first-child{width:44px;min-width:44px;text-align:center;padding-inline:12px}
.pet-admin.pet-templates .pet-list td:nth-child(2){white-space:nowrap;min-width:130px}
.pet-admin .pet-selected-row>td{background:#eff5ff}
.pet-admin.pet-bulk-working .pet-list,.pet-admin.pet-bulk-working .pet-tools{pointer-events:none;opacity:.65}
@media(max-width:680px){.pet-admin .pet-bulk-tools{padding:12px 14px;gap:8px}.pet-admin .pet-bulk-tools>[data-pet-selected-count]{flex-basis:100%}.pet-admin .pet-bulk-tools>button{font-size:12px;padding-inline:10px;min-height:38px}}

.pet-bulk-tools label{display:flex;align-items:center;gap:8px;white-space:nowrap}.pet-bulk-tools select{min-height:36px;padding:4px 10px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:inherit}
