#aibos-label-studio-host { min-height: calc(100vh - 50px); }
.aibos-ls-host-hidden { display: none !important; }
.aibos-ls-page, .aibos-ls-page * { box-sizing: border-box; }
.aibos-ls-page { --ls-brand:#8d3148; --ls-line:#f0dfdc; --ls-soft:#fbf7f4; --ls-muted:#8e7a80; color:#2f2928; font:13px/1.5 "Microsoft YaHei",Arial,sans-serif; }
.aibos-ls-page button,.aibos-ls-page input,.aibos-ls-page select { font:inherit; }
.aibos-ls-page button { min-height:32px; padding:6px 12px; border:1px solid var(--ls-line); border-radius:6px; background:#fff; color:#554b49; cursor:pointer; }
.aibos-ls-page button:hover { border-color:var(--ls-brand); color:var(--ls-brand); }
.aibos-ls-page button.primary { background:var(--ls-brand); border-color:var(--ls-brand); color:#fff; }
.aibos-ls-page button.danger { color:#b42318; border-color:#f4b4ad; }
.aibos-ls-type-tabs { display:flex; align-items:center; gap:6px; margin-bottom:14px; overflow-x:auto; }
.aibos-ls-type-tabs button { border-radius:8px; padding:8px 16px; }
.aibos-ls-type-tabs button.active { color:#fff; background:var(--ls-brand); border-color:var(--ls-brand); }
.aibos-ls-type-tabs button.create { margin-left:auto; }
.aibos-ls-card { background:#fff; border:1px solid var(--ls-line); border-radius:10px; box-shadow:0 8px 24px rgba(63,35,31,.06); overflow:hidden; }
.aibos-ls-subtabs { display:flex; gap:22px; padding:0 18px; border-bottom:1px solid var(--ls-line); }
.aibos-ls-subtabs button { border:0; border-radius:0; padding:13px 2px; }
.aibos-ls-subtabs button.active { color:var(--ls-brand); box-shadow:inset 0 -2px var(--ls-brand); }
.aibos-ls-toolbar { display:flex; align-items:center; gap:9px; padding:12px 16px; background:var(--ls-soft); border-bottom:1px solid var(--ls-line); }
.aibos-ls-toolbar>span { width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:#f3dfdc;color:var(--ls-brand);font-weight:800; }
.aibos-ls-toolbar p { margin:0 auto 0 0; color:var(--ls-muted); }
.aibos-ls-toolbar input { width:220px; height:34px; padding:6px 9px; border:1px solid var(--ls-line); border-radius:6px; }
.aibos-ls-import,.aibos-ls-upload { display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:6px 12px;border:1px solid var(--ls-line);border-radius:6px;background:#fff;cursor:pointer; }
.aibos-ls-import input,.aibos-ls-upload input { display:none; }
.aibos-ls-table-wrap { width:100%; overflow:auto; }
.aibos-ls-page table { width:100%; border-collapse:collapse; }
.aibos-ls-page th,.aibos-ls-page td { padding:11px 13px; border-bottom:1px solid var(--ls-line); text-align:left; vertical-align:middle; }
.aibos-ls-page th { color:var(--ls-muted); background:#fcfaf9; font-size:12px; }
.aibos-ls-page td em { margin-left:8px;padding:2px 7px;border-radius:999px;background:#f6e9e7;color:var(--ls-brand);font-style:normal;font-size:12px; }
.aibos-ls-row-actions { display:flex;flex-wrap:wrap;gap:6px; }
.aibos-ls-row-actions button { min-height:28px;padding:3px 8px;border:0;color:var(--ls-brand); }
.aibos-ls-card>footer { padding:10px 16px;color:var(--ls-muted);text-align:right; }
.aibos-ls-page .empty { padding:40px;text-align:center;color:#a39996; }
.aibos-ls-shipping-grid { display:grid;grid-template-columns:minmax(0,calc((100% - 14px)/2 - 50px)) minmax(0,calc((100% - 14px)/2 + 50px));gap:14px;align-items:start; }.aibos-ls-shipping-grid>.aibos-ls-card{min-width:0}
.aibos-ls-section-head { display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid var(--ls-line); }
.aibos-ls-section-head h2 { margin:0;font-size:16px; }.aibos-ls-section-head p { margin:3px 0 0;color:var(--ls-muted);font-size:12px; }
.aibos-ls-section-head>div:last-child { display:flex;gap:7px;align-items:center; }
.aibos-ls-title-count { display:flex;align-items:center;gap:9px; }.aibos-ls-title-count span { padding:2px 8px;border-radius:999px;color:var(--ls-muted);background:var(--ls-soft);font-size:12px; }
.aibos-ls-ship-list { padding:14px;display:grid;gap:14px; }
.aibos-ls-ship-card { width:100%;min-width:0;border:1px solid var(--ls-line);border-radius:8px;overflow:visible;background:#fff; }
.aibos-ls-ship-card>header { display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;background:var(--ls-soft);border-bottom:1px solid var(--ls-line); }
.aibos-ls-ship-card>header>input { width:176px;min-width:0;flex:0 0 176px;border:1px solid transparent;background:transparent;font-weight:700; }.aibos-ls-ship-card>header>div { display:flex;flex:1 1 300px;min-width:0;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap; }.aibos-ls-ship-card>header select { min-width:100px;max-width:125px; }.aibos-ls-ship-card>header button{flex:0 0 auto;padding-inline:7px;white-space:nowrap}.aibos-ls-ship-card>header .aibos-ls-generate{min-width:44px;writing-mode:horizontal-tb;word-break:keep-all}
.aibos-ls-ship-title-control { display:grid;gap:3px;flex:0 0 125px;min-width:110px; }.aibos-ls-ship-title-control select { width:100%; }.aibos-ls-ship-title-control input { width:100%;min-height:27px;padding:4px 6px;border:1px solid var(--ls-line);border-radius:5px;background:#fff;font-size:12px; }
.aibos-ls-label-preview { padding:10px;display:flex;justify-content:center;overflow-x:auto; }.aibos-ls-label-preview table { width:min(525px,100%);min-width:0;height:402px;table-layout:fixed;border:1px solid #111; }.aibos-ls-label-preview th,.aibos-ls-label-preview td { padding:3px;border:1px solid #777;text-align:center; }.aibos-ls-label-preview th{font-size:15px;font-weight:800;color:#3c3432}.aibos-ls-label-preview th:nth-child(1),.aibos-ls-label-preview th:nth-child(2){width:17.65%}.aibos-ls-label-preview th:nth-child(3){width:23.5%}.aibos-ls-label-preview th:nth-child(4){width:17.6%}.aibos-ls-label-preview th:nth-child(5),.aibos-ls-label-preview th:nth-child(6){width:11.8%}.aibos-ls-label-preview tbody td{height:72px;overflow:hidden;overflow-wrap:anywhere}.aibos-ls-label-preview tbody td>strong{display:grid;place-items:center;width:calc(100% - 4px);height:64px;margin:2px;overflow:hidden;font-size:16px;line-height:1.12;white-space:normal;overflow-wrap:anywhere}.aibos-ls-label-preview input { width:calc(100% - 4px);min-width:0;min-height:64px;margin:2px;padding:3px;border:0;background:transparent;text-align:center;font-size:16px;font-weight:700; }.aibos-ls-label-preview input:disabled{opacity:1}.aibos-ls-number-cell input{font-size:30px;line-height:1;font-variant-numeric:tabular-nums}.aibos-ls-cell-select{position:relative;display:grid;place-items:center;width:calc(100% - 4px);min-height:64px;margin:2px;padding:3px 16px 3px 3px;font-size:16px;font-weight:700;line-height:1.08;white-space:normal;overflow-wrap:anywhere}.aibos-ls-color-select>span{display:grid;place-items:center;width:100%;height:58px;overflow:hidden;font-size:18px;line-height:1.04;white-space:normal;overflow-wrap:anywhere}.aibos-ls-cell-select::after{content:"⌄";position:absolute;right:3px;top:50%;transform:translateY(-55%);font-size:15px}.aibos-ls-cell-select.disabled::after{display:none}.aibos-ls-cell-select select{position:absolute;inset:0;width:100%;height:100%;min-width:0;opacity:0;cursor:pointer}.aibos-ls-cell-select select:disabled{cursor:default}.aibos-ls-label-preview tfoot td { height:42px;font-size:15px;font-weight:800;border-color:#111; }
.aibos-ls-product-picker{position:relative;width:calc(100% - 4px);min-height:64px;margin:2px}.aibos-ls-product-picker textarea{display:block;width:100%;height:64px;min-height:64px;padding:4px 18px 4px 3px;overflow:hidden;resize:none;color:#222;background:transparent;border:0;font:700 16px/1.15 "Microsoft YaHei",Arial,sans-serif;text-align:center;white-space:normal;overflow-wrap:anywhere}.aibos-ls-product-picker>button{position:absolute;right:1px;top:50%;z-index:2;width:17px;min-height:26px;padding:0;transform:translateY(-50%);border:0;background:transparent;font-size:16px}.aibos-ls-product-suggestions{display:none;position:absolute;left:-4px;top:calc(100% + 2px);z-index:80;width:max(180px,200%);max-height:210px;padding:5px;overflow:auto;border:1px solid var(--ls-line);border-radius:6px;background:#fff;box-shadow:0 10px 28px rgba(48,27,24,.18);text-align:left}.aibos-ls-product-picker.open .aibos-ls-product-suggestions,.aibos-ls-product-picker:focus-within .aibos-ls-product-suggestions{display:grid}.aibos-ls-product-suggestions button{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:31px;padding:5px 7px;border:0;background:#fff;text-align:left}.aibos-ls-product-suggestions button:hover{background:var(--ls-soft)}.aibos-ls-product-suggestions small,.aibos-ls-product-suggestions>span{color:var(--ls-muted);font-size:12px}
.aibos-ls-label-preview { overflow:visible; }
.aibos-ls-label-preview tbody td:nth-child(2) { position:relative;overflow:visible; }
.aibos-ls-product-picker.open,.aibos-ls-product-picker:focus-within { z-index:90; }
.aibos-ls-product-suggestions>span { padding:7px;white-space:nowrap; }
.aibos-ls-number-cell textarea { display:block;width:calc(100% - 4px);height:64px;min-height:64px;margin:2px;padding:3px;overflow:hidden;resize:none;border:0;background:transparent;text-align:center;font:700 30px/1.05 "Microsoft YaHei",Arial,sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-all; }
.aibos-ls-number-cell textarea:disabled { color:#222;opacity:1; }
.aibos-ls-label-preview tfoot td { overflow:hidden;white-space:normal;overflow-wrap:anywhere;word-break:break-word;line-height:1.08; }
.aibos-ls-label-preview [data-fit-shipping-footer-text] { display:grid;place-items:center;width:100%;height:36px;overflow:hidden;white-space:normal;overflow-wrap:anywhere;word-break:break-word; }
.aibos-ls-label-image { height:72px;padding:0!important; }.aibos-ls-label-image img { display:block;width:calc(100% - 4px);height:68px;margin:2px auto;object-fit:contain; }
.aibos-ls-product-table { min-width:500px; }.aibos-ls-product-table th:nth-child(1){width:76px}.aibos-ls-product-table th:nth-child(2){width:84px}.aibos-ls-product-table th:nth-child(3){width:58px}.aibos-ls-product-table input { width:100%;min-height:34px;padding:6px 8px;border:1px solid var(--ls-line);border-radius:6px;background:#fcfaf9; }.aibos-ls-product-table td { padding:8px 5px;vertical-align:top}.aibos-ls-product-table td:nth-child(3){text-align:center}.aibos-ls-product-table button{padding:4px 7px;min-height:28px}
.aibos-ls-product-upload { display:grid;place-items:center;width:52px;height:42px;margin:auto;padding:3px;color:var(--ls-muted);border:1px dashed #d8c4c0;border-radius:6px;font-size:12px;cursor:pointer;text-align:center; }.aibos-ls-product-upload input,.aibos-ls-product-image input,.aibos-ls-merge-col>input { display:none; }.aibos-ls-product-image { position:relative;width:52px;height:42px;margin:auto;border:1px solid var(--ls-line);border-radius:6px;overflow:hidden;cursor:pointer; }.aibos-ls-product-image img{width:100%;height:100%;object-fit:contain}
.aibos-ls-color-tag-list{display:grid;gap:6px;min-width:240px}.aibos-ls-color-tag-group{display:grid;grid-template-columns:minmax(76px,.8fr) minmax(104px,1.2fr) 26px;gap:6px;align-items:start;padding:6px;border:1px solid var(--ls-line);border-radius:7px;background:#fcfaf9}.aibos-ls-color-tag-group>button{width:26px;min-height:30px;padding:0;color:#a54654}.aibos-ls-color-tag-file{min-width:0}.aibos-ls-color-tag-upload{display:grid;place-items:center;width:100%;aspect-ratio:7/5;overflow:hidden;color:var(--ls-muted);border:1px dashed #d8c4c0;border-radius:5px;background:#fff;cursor:pointer;text-align:center}.aibos-ls-color-tag-upload.has-file{border-style:solid}.aibos-ls-color-tag-upload input{display:none}.aibos-ls-color-tag-upload img,.aibos-ls-color-tag-upload embed{width:100%;height:100%;object-fit:contain;border:0;pointer-events:none}.aibos-ls-color-tag-upload span{padding:3px;font-size:12px}.aibos-ls-color-tag-file small{display:block;max-width:120px;overflow:hidden;color:var(--ls-muted);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.aibos-ls-color-tag-add{justify-self:end;min-height:29px!important;color:var(--ls-brand)!important;border-style:dashed!important}
.aibos-ls-merge-section { padding:10px 14px 12px;border-top:1px solid var(--ls-line); }.aibos-ls-merge-section h3{margin:0 0 8px;font-size:13px}.aibos-ls-merge-grid{display:grid;grid-template-columns:4fr 4fr 4fr 2fr;gap:9px;align-items:start}.aibos-ls-merge-col{display:grid;gap:4px;min-width:0}.aibos-ls-merge-col>strong{text-align:center;font-size:12px}.aibos-ls-merge-col>small{min-height:15px;overflow:hidden;color:var(--ls-muted);font-size:12px;text-align:center;text-overflow:ellipsis;white-space:nowrap}.aibos-ls-merge-preview{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:7/5;padding:7px;overflow:hidden;color:var(--ls-muted);border:1px solid var(--ls-line);border-radius:7px;background:#fcfaf9;text-align:center}.aibos-ls-merge-preview.clickable{cursor:pointer}.aibos-ls-merge-preview.clickable:hover{border-color:var(--ls-brand);background:#fff8f9}.aibos-ls-merge-preview span{font-size:12px}.aibos-ls-merge-preview img{width:100%;height:100%;object-fit:contain}.aibos-ls-merge-actions{display:grid;gap:6px;padding-top:19px}.aibos-ls-merge-actions button{width:100%;min-height:29px;padding:4px 7px}.aibos-ls-merge-actions button:last-child{color:#fff;background:#6d7b91;border-color:#6d7b91}
.aibos-ls-editor { height:calc(100vh - 60px);min-height:650px;display:flex;flex-direction:column;background:#f4f1f0;border:1px solid var(--ls-line);border-radius:10px;overflow:hidden; }
.aibos-ls-editor-top { min-height:52px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;background:#fff;border-bottom:1px solid var(--ls-line); }.aibos-ls-editor-top>div { display:flex;gap:7px; }
.aibos-ls-editor-grid { flex:1;min-height:0;display:grid;grid-template-columns:260px minmax(420px,1fr) 250px; }
.aibos-ls-editor-left { display:grid;grid-template-columns:64px 1fr;background:#fff;border-right:1px solid var(--ls-line); }.aibos-ls-editor-left>nav { display:grid;align-content:start;border-right:1px solid var(--ls-line); }.aibos-ls-editor-left>nav button { border:0;border-radius:0;padding:12px 5px; }.aibos-ls-editor-left>nav button.active { color:var(--ls-brand);background:#f8eeee;box-shadow:inset 3px 0 var(--ls-brand); }
.aibos-ls-tools { padding:14px;overflow-y:auto; }.aibos-ls-tools h3,.aibos-ls-editor-right h3 { margin:0 0 12px;font-size:14px; }.aibos-ls-tool-grid { display:grid;grid-template-columns:1fr 1fr;gap:7px; }.aibos-ls-custom { display:grid;gap:7px;margin-top:12px; }.aibos-ls-custom input,.aibos-ls-tools select { width:100%;height:34px;padding:6px 8px;border:1px solid var(--ls-line);border-radius:6px; }.aibos-ls-tools .muted,.aibos-ls-editor-right .muted { color:var(--ls-muted);font-size:12px; }
.aibos-ls-stage { min-width:0;display:flex;flex-direction:column; }.aibos-ls-warning { padding:7px 12px;background:#fff5d9;color:#8c5e00;text-align:center;font-size:12px; }.aibos-ls-canvas-scroll { flex:1;display:grid;place-items:center;overflow:auto;padding:30px; }
.aibos-ls-canvas { position:relative;flex:none;background:#fff;box-shadow:0 8px 30px rgba(50,30,28,.2);overflow:hidden; }
.aibos-ls-element { position:absolute;display:flex;align-items:center;justify-content:center;user-select:none;cursor:move;line-height:1.2;overflow:hidden; }.aibos-ls-element.selected { outline:2px solid #2563eb; }.aibos-ls-element.hline { border-top:2px solid #222; }.aibos-ls-element.vline { border-left:2px solid #222; }.aibos-ls-element.rect { border:2px solid #222; }.aibos-ls-element.circle { border:2px solid #222;border-radius:50%; }.aibos-ls-element.star { font-size:30px!important; }.aibos-ls-element svg,.aibos-ls-element img { width:100%;height:100%;object-fit:contain; }.aibos-ls-element svg rect { fill:#111; }.aibos-ls-resize { display:none;position:absolute;right:-1px;bottom:-1px;width:10px;height:10px;background:#2563eb;border:2px solid #fff;cursor:nwse-resize; }.aibos-ls-element.selected .aibos-ls-resize { display:block; }
.aibos-ls-editor-right { background:#fff;border-left:1px solid var(--ls-line);overflow-y:auto;padding:12px; }.aibos-ls-editor-right section { padding:13px;margin-bottom:10px;border:1px solid var(--ls-line);border-radius:7px; }.aibos-ls-editor-right label { display:grid;gap:4px;margin-bottom:9px;color:var(--ls-muted);font-size:12px; }.aibos-ls-editor-right input,.aibos-ls-editor-right select { width:100%;height:33px;padding:6px 8px;border:1px solid var(--ls-line);border-radius:5px;color:#332d2c;background:#fff; }.aibos-ls-size { display:grid;grid-template-columns:1fr 1fr;gap:7px; }.aibos-ls-editor-right .aibos-ls-check { display:flex;grid-template-columns:16px 1fr;align-items:center; }.aibos-ls-editor-right .aibos-ls-check input { width:15px;height:15px; }
.aibos-ls-template-type{display:inline-flex;align-items:center;min-height:26px;padding:3px 9px;color:#8d3148;border:1px solid #e7c7cf;border-radius:999px;background:#fff5f7;font-size:12px;font-weight:700;white-space:nowrap}
.aibos-ls-governance{display:flex;align-items:center;gap:18px;margin:0 0 14px;padding:12px 15px;border:1px solid #d7e7df;border-radius:9px;background:#f5fbf7;color:#315d45}.aibos-ls-governance>div{display:grid;gap:2px;min-width:250px}.aibos-ls-governance>div span{font-size:12px}.aibos-ls-governance p{flex:1;margin:0;color:#597263;font-size:12px}.aibos-ls-governance.error{border-color:#f0c4c4;background:#fff7f7;color:#a1262f}.aibos-ls-governance.error p{color:#8b5a5e}.aibos-ls-template-code{display:block;margin-top:2px;color:var(--ls-muted);font:11px/1.3 ui-monospace,SFMono-Regular,Consolas,monospace}.aibos-ls-review-status{display:inline-flex;padding:3px 8px;border-radius:999px;background:#f0f1f3;color:#59616d;font-size:12px;font-weight:700}.aibos-ls-review-status.approved{background:#e8f7ee;color:#23734f}.aibos-ls-review-status.pending_review{background:#fff4d8;color:#956700}.aibos-ls-review-status.rejected{background:#ffebeb;color:#aa2f38}.aibos-ls-review-status.retired{background:#ececf0;color:#70717a}.aibos-ls-editor-top>strong{display:flex;align-items:center;gap:8px}.aibos-ls-editor-source{padding:2px 7px;border-radius:999px;background:#e8f7ee;color:#23734f;font-size:11px;font-weight:700}.aibos-ls-editor-source.local{background:#fff1dc;color:#98650d}
.aibos-ls-formal-file{display:grid!important;place-items:center;min-height:34px;padding:6px 8px;border:1px dashed #cfaeb5!important;border-radius:6px;color:var(--ls-brand)!important;background:#fff8f9;cursor:pointer}.aibos-ls-formal-file input{display:none}.aibos-ls-formal-file-list{display:grid;gap:5px;margin-top:8px}.aibos-ls-formal-file-list>div{display:grid;grid-template-columns:minmax(0,1fr) 24px;align-items:center;gap:5px;padding:5px 6px;border:1px solid var(--ls-line);border-radius:5px;background:#fcfaf9}.aibos-ls-formal-file-list span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.aibos-ls-formal-file-list button{width:24px;min-height:24px;padding:0;color:#a1262f}.aibos-ls-formal-file-list small{color:var(--ls-muted)}
.aibos-ls-toast { position:fixed;left:50%;bottom:28px;z-index:9999;transform:translate(-50%,20px);padding:9px 16px;border-radius:7px;background:#2f2928;color:#fff;opacity:0;transition:.2s;pointer-events:none; }.aibos-ls-toast.show { opacity:1;transform:translate(-50%,0); }
@media(max-width:1180px){.aibos-ls-shipping-grid{grid-template-columns:1fr}.aibos-ls-merge-grid{grid-template-columns:4fr 4fr 4fr 2fr}.aibos-ls-product-pair{grid-template-columns:1fr}}
.aibos-ls-merge-preview embed{width:100%;height:100%;border:0;pointer-events:none}
@media(max-width:1050px){.aibos-ls-editor-grid{grid-template-columns:220px minmax(360px,1fr)}.aibos-ls-editor-right{display:none}}
@media(max-width:700px){.aibos-ls-toolbar{flex-wrap:wrap}.aibos-ls-toolbar input{width:100%}.aibos-ls-editor-grid{grid-template-columns:1fr}.aibos-ls-editor-left{display:none}.aibos-ls-canvas-scroll{padding:15px}}
@media(max-width:620px){.aibos-ls-section-head,.aibos-ls-ship-card>header{align-items:stretch;flex-direction:column}.aibos-ls-section-head>div:last-child,.aibos-ls-ship-card>header>div{flex-wrap:wrap}.aibos-ls-ship-card>header>input{width:100%;flex-basis:auto}.aibos-ls-ship-card>header>div{width:100%;flex:0 0 auto}.aibos-ls-merge-grid{grid-template-columns:1fr}.aibos-ls-merge-actions{grid-template-columns:repeat(3,1fr);padding-top:0}.aibos-ls-product-card-grid{grid-template-columns:1fr;grid-template-areas:"name" "image" "color" "code" "pack"}}
@media print { body.aibos-ls-printing * { visibility:hidden!important; } body.aibos-ls-printing .aibos-ls-canvas,body.aibos-ls-printing .aibos-ls-canvas *,body.aibos-ls-printing .aibos-ls-label-preview,body.aibos-ls-printing .aibos-ls-label-preview * { visibility:visible!important; } body.aibos-ls-printing .aibos-ls-canvas { position:fixed;left:0;top:0;box-shadow:none; } body.aibos-ls-printing .aibos-ls-label-preview { position:fixed;left:0;top:0;width:70mm;height:50mm;padding:0; } }

/* Shipping label alignment and compact color/PDF pair layout. */
.aibos-ls-label-preview th,.aibos-ls-label-preview td{vertical-align:middle}
.aibos-ls-label-preview tbody td>strong{display:grid;place-items:center;min-height:64px}
.aibos-ls-label-image{vertical-align:middle!important}.aibos-ls-label-image img{max-width:calc(100% - 4px);max-height:68px}
.aibos-ls-product-table{table-layout:fixed}.aibos-ls-product-table th:nth-child(1){width:128px}.aibos-ls-product-table th:nth-child(2){width:136px}.aibos-ls-product-table th:nth-child(3){width:58px}.aibos-ls-product-table td{vertical-align:middle}
.aibos-ls-product-wrap { padding:14px;overflow:auto; }
.aibos-ls-product-pairs { display:grid;gap:12px; }
.aibos-ls-product-pair { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:start; }
.aibos-ls-product-card { min-width:0;padding:12px;border:1px solid var(--ls-line);border-radius:8px;background:#fff; }
.aibos-ls-product-card-empty { display:grid;place-items:center;min-height:182px;width:100%;border:1px dashed var(--ls-line);border-radius:8px;background:#fff;color:var(--ls-muted);font:700 14px/1.3 "Microsoft YaHei",Arial,sans-serif; }
.aibos-ls-product-empty { min-height:182px;padding:16px;border:1px dashed var(--ls-line);border-radius:8px;background:#fff;color:var(--ls-muted);display:grid;place-items:center;text-align:center;font:700 14px/1.3 "Microsoft YaHei",Arial,sans-serif; }
.aibos-ls-product-card-grid { display:grid;grid-template-columns:minmax(60px,.9fr) 48px minmax(0,1.2fr) minmax(76px,1fr) 52px;grid-template-areas:"name image color code pack";gap:6px;align-items:start; }
.aibos-ls-product-field { display:grid;gap:4px;min-width:0; }
.aibos-ls-product-field > span { color:var(--ls-muted);font-size:12px;font-weight:700;line-height:1.2; }
.aibos-ls-product-name-field { grid-area:name; }
.aibos-ls-product-image-field { grid-area:image; }
.aibos-ls-product-color-field { grid-area:color; }
.aibos-ls-product-code-field { grid-area:code; }
.aibos-ls-product-pack-field { grid-area:pack; }
.aibos-ls-product-field input { width:100%;min-height:34px;padding:6px 8px;border:1px solid var(--ls-line);border-radius:6px;background:#fff;text-align:center; }
.aibos-ls-product-code-status { min-height:14px;overflow:hidden;color:var(--ls-muted);font-size:11px;line-height:1.2;white-space:nowrap;text-overflow:ellipsis; }
.aibos-ls-product-code-status.conflict { color:#b42318; }
.aibos-ls-product-code-status.synced { color:#23734f; }
.aibos-ls-product-code-conflict { border-color:#d95764 !important;background:#fff7f7 !important; }
.aibos-ls-product-sort-handle { position:absolute;top:5px;right:5px;z-index:2;display:grid;place-items:center;width:23px;min-height:23px;padding:0;border:1px solid #d9aab4;border-radius:5px;background:#fff7f8;color:var(--ls-brand);font-size:16px;line-height:1;cursor:grab; }
.aibos-ls-product-sort-handle:active { cursor:grabbing; }
.aibos-ls-product-wrap.is-sorting .aibos-ls-product-card.sortable { position:relative;padding-right:32px; }
.aibos-ls-product-wrap.is-sorting .aibos-ls-product-card.dragging { opacity:.45; }
.aibos-ls-product-wrap.is-sorting .aibos-ls-product-card.drop-target { border-color:var(--ls-brand);box-shadow:0 0 0 2px rgba(141,49,72,.16); }
.aibos-ls-product-image-field .aibos-ls-product-image,.aibos-ls-product-image-field .aibos-ls-product-upload { width:100%;height:42px; }
.aibos-ls-product-image-field .aibos-ls-product-image img { width:100%;height:100%;object-fit:contain; }
.aibos-ls-product-card .aibos-ls-color-tag-list { min-width:0;flex-wrap:nowrap;overflow-x:auto; }
.aibos-ls-product-card .aibos-ls-color-tag-group { flex:0 0 auto; }
.aibos-ls-color-tag-list{display:flex;align-items:center;gap:7px;min-width:0;overflow-x:auto;padding:2px 0}
.aibos-ls-color-tag-group{display:grid;grid-template-columns:calc(6em + 18px) 52px 22px;flex:0 0 auto;gap:5px;align-items:center;padding:0;border:0;background:transparent}
.aibos-ls-color-tag-group>input{width:calc(6em + 18px)!important}.aibos-ls-color-tag-group>button{width:22px;min-height:28px;padding:0}
.aibos-ls-color-tag-file{display:grid;justify-items:center;width:52px;min-width:52px}
.aibos-ls-color-tag-upload{display:grid;place-items:center;width:52px!important;height:42px!important;min-height:42px!important;aspect-ratio:auto;padding:0!important;overflow:hidden;border:1px dashed #d8c4c0!important;background:#fff!important}
.aibos-ls-color-tag-upload.has-file{border-style:solid!important}.aibos-ls-color-tag-upload img,.aibos-ls-color-tag-upload embed{width:100%;height:100%;object-fit:contain}.aibos-ls-color-tag-upload span{font-size:12px}
.aibos-ls-color-tag-file small{display:block;width:52px;overflow:hidden;font-size:12px;text-align:center;text-overflow:ellipsis;white-space:nowrap}
.aibos-ls-color-tag-add{flex:0 0 auto;justify-self:auto;white-space:nowrap}
.aibos-ls-pdf-modal{position:fixed;inset:0;z-index:10050;display:grid;place-items:center;padding:30px;background:rgba(44,31,32,.58)}
.aibos-ls-pdf-dialog{display:grid;grid-template-rows:auto 1fr;width:min(820px,88vw);height:min(680px,86vh);overflow:hidden;border-radius:8px;background:#fff;box-shadow:0 24px 70px rgba(20,10,12,.35)}
.aibos-ls-pdf-dialog>header{display:flex;align-items:center;justify-content:space-between;padding:10px 13px;border-bottom:1px solid var(--ls-line)}.aibos-ls-pdf-dialog>header button{width:32px;padding:0;font-size:20px}
.aibos-ls-pdf-dialog>div{min-height:0;padding:12px;background:var(--ls-soft)}.aibos-ls-pdf-dialog embed,.aibos-ls-pdf-dialog img{width:100%;height:100%;object-fit:contain;border:0;background:#fff}
.aibos-ls-color-tag-group{position:relative;grid-template-columns:calc(6em + 18px) 52px}
.aibos-ls-color-tag-group>button{position:absolute;right:-3px;top:-5px;z-index:2;width:17px;min-height:17px;padding:0;border-radius:50%;background:#fff;font-size:12px}
.aibos-ls-color-tag-add{width:28px;min-height:42px!important;padding:0!important;font-size:18px}
.aibos-ls-color-tag-list{gap:5px}
.aibos-ls-color-tag-group{grid-template-columns:6em 52px}
.aibos-ls-color-tag-group>input{width:6em!important}
.aibos-ls-color-tag-add{width:22px}
.aibos-ls-product-table th,.aibos-ls-product-table td{text-align:center;vertical-align:middle}
.aibos-ls-product-table input{text-align:center}

@media(max-width:620px){
  .aibos-ls-product-card-grid{grid-template-columns:1fr;grid-template-areas:"name" "image" "color" "code" "pack"}
  .aibos-ls-product-card .aibos-ls-color-tag-list{flex-wrap:wrap;overflow:visible}
}

/* Label Studio navigation — match the Product/Warehouse text-tab pattern. */
body .aibos-tool-center .aibos-ls-type-tabs,
body .aibos-tool-center .aibos-ls-subtabs {
  width: 100% !important;
  min-height: 50px !important;
  gap: 32px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-bottom: 1px solid #eadfdd !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body .aibos-tool-center .aibos-ls-type-tabs {
  margin: 0 0 14px !important;
}

body .aibos-tool-center .aibos-ls-type-tabs > button:not(.create),
body .aibos-tool-center .aibos-ls-subtabs > button {
  position: relative !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 50px !important;
  min-height: 50px !important;
  padding: 0 2px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #44383b !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

body .aibos-tool-center .aibos-ls-type-tabs > button:not(.create):hover,
body .aibos-tool-center .aibos-ls-type-tabs > button:not(.create):focus-visible,
body .aibos-tool-center .aibos-ls-subtabs > button:hover,
body .aibos-tool-center .aibos-ls-subtabs > button:focus-visible,
body .aibos-tool-center .aibos-ls-type-tabs > button:not(.create).active,
body .aibos-tool-center .aibos-ls-subtabs > button.active {
  border: 0 !important;
  background: transparent !important;
  color: var(--ls-brand) !important;
  box-shadow: none !important;
}

body .aibos-tool-center .aibos-ls-type-tabs > button:not(.create)::after,
body .aibos-tool-center .aibos-ls-subtabs > button::after {
  position: absolute !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  display: block !important;
  height: 3px !important;
  border-radius: 3px 3px 0 0 !important;
  background: var(--ls-brand) !important;
  content: "" !important;
  opacity: 0 !important;
}

body .aibos-tool-center .aibos-ls-type-tabs > button:not(.create).active::after,
body .aibos-tool-center .aibos-ls-subtabs > button.active::after {
  opacity: 1 !important;
}

body .aibos-tool-center .aibos-ls-type-tabs > button.create {
  margin-left: auto !important;
}

body .aibos-tool-center .aibos-ls-page > .aibos-ls-card {
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body .aibos-tool-center .aibos-ls-page > .aibos-ls-card > .aibos-ls-toolbar {
  margin-top: 14px;
  border: 1px solid var(--ls-line);
  border-radius: 10px 10px 0 0;
}

body .aibos-tool-center .aibos-ls-page > .aibos-ls-card > .aibos-ls-table-wrap {
  border-right: 1px solid var(--ls-line);
  border-left: 1px solid var(--ls-line);
  background: #fff;
}

body .aibos-tool-center .aibos-ls-page > .aibos-ls-card > footer {
  border: 1px solid var(--ls-line);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: #fff;
}

@media (max-width: 700px) {
  body .aibos-tool-center .aibos-ls-type-tabs,
  body .aibos-tool-center .aibos-ls-subtabs {
    gap: 24px !important;
    padding-inline: 8px !important;
  }
}

body .aibos-tool-center .aibos-ls-shipping-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr);
  gap: 12px;
}

body .aibos-tool-center .aibos-ls-product-wrap {
  padding: 12px;
}

body .aibos-tool-center .aibos-ls-product-pairs {
  gap: 10px;
}

body .aibos-tool-center .aibos-ls-product-pair {
  gap: 10px;
}

body .aibos-tool-center .aibos-ls-product-card {
  padding: 8px;
}

body .aibos-tool-center .aibos-ls-product-card-grid {
  grid-template-columns: minmax(80px, .9fr) 44px minmax(98px, 1fr) minmax(124px, 1.18fr) 54px;
  grid-template-areas: "name image color code pack";
  gap: 4px;
  align-items: start;
}

body .aibos-tool-center .aibos-ls-product-field input {
  min-height: 32px;
  padding: 5px 7px;
}

body .aibos-tool-center .aibos-ls-product-image-field .aibos-ls-product-image,
body .aibos-tool-center .aibos-ls-product-image-field .aibos-ls-product-upload {
  width: 100%;
  height: 38px;
}

body .aibos-tool-center .aibos-ls-product-card .aibos-ls-color-tag-list {
  min-width: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 1px 0;
  gap: 4px;
}

body .aibos-tool-center .aibos-ls-color-tag-group {
  position: relative;
  grid-template-columns: minmax(6.2em, 1fr) 56px 22px;
  gap: 4px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  flex: 0 0 auto;
}

body .aibos-tool-center .aibos-ls-color-tag-group > input {
  width: 6.2em !important;
}

body .aibos-tool-center .aibos-ls-color-tag-file {
  display: grid;
  justify-items: center;
  width: 56px;
  min-width: 56px;
}

body .aibos-tool-center .aibos-ls-color-tag-upload {
  display: grid;
  place-items: center;
  width: 56px !important;
  height: 42px !important;
  min-height: 42px !important;
  aspect-ratio: auto;
  padding: 0 !important;
  overflow: hidden;
  color: var(--ls-muted);
  border: 1px dashed #d8c4c0 !important;
  border-radius: 5px;
  background: #fff !important;
  cursor: pointer;
  text-align: center;
}

body .aibos-tool-center .aibos-ls-color-tag-upload.has-file {
  border-style: solid !important;
}

body .aibos-tool-center .aibos-ls-color-tag-upload:disabled {
  cursor: default;
  opacity: .9;
}

body .aibos-tool-center .aibos-ls-color-tag-upload img,
body .aibos-tool-center .aibos-ls-color-tag-upload embed {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

body .aibos-tool-center .aibos-ls-color-tag-upload span {
  padding: 3px;
  font-size: 12px;
}

body .aibos-tool-center .aibos-ls-color-tag-file small {
  display: block;
  width: 56px;
  overflow: hidden;
  color: var(--ls-muted);
  font-size: 12px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body .aibos-tool-center .aibos-ls-color-tag-add {
  width: 22px;
  min-height: 42px !important;
  padding: 0 !important;
  font-size: 18px;
}

/* Keep each product's editable fields on one compact row; only phones stack them. */
@media (min-width: 621px) and (max-width: 1180px) {
  body .aibos-tool-center .aibos-ls-shipping-grid {
    grid-template-columns: 1fr;
  }

  body .aibos-tool-center .aibos-ls-product-pair {
    grid-template-columns: 1fr;
  }

  body .aibos-tool-center .aibos-ls-product-card-grid {
    grid-template-columns: minmax(58px, .82fr) 40px minmax(74px, 1fr) minmax(82px, 1fr) 46px;
    grid-template-areas: "name image color code pack";
    gap: 4px;
  }
}

@media (min-width: 1181px) {
  .aibos-ls-shipping-grid {
    grid-template-columns: minmax(450px, 1fr) minmax(0, 1.9fr);
  }

  body .aibos-tool-center .aibos-ls-shipping-grid {
    grid-template-columns: minmax(450px, 1fr) minmax(0, 1.9fr) !important;
    gap: 10px !important;
  }

  body .aibos-tool-center .aibos-ls-product-wrap {
    padding: 10px !important;
  }

  body .aibos-tool-center .aibos-ls-product-pairs,
  body .aibos-tool-center .aibos-ls-product-pair {
    gap: 8px !important;
  }

  body .aibos-tool-center .aibos-ls-product-card {
    padding: 8px !important;
  }

  .aibos-ls-product-card-grid {
    grid-template-columns: minmax(56px, .62fr) 44px minmax(100px, 1.32fr) minmax(76px, .78fr) 52px;
  }

  body .aibos-tool-center .aibos-ls-product-card-grid {
    grid-template-columns: minmax(56px, .62fr) 44px minmax(100px, 1.32fr) minmax(76px, .78fr) 52px !important;
    grid-template-areas: "name image color code pack" !important;
    gap: 5px !important;
  }

  body .aibos-tool-center .aibos-ls-product-field input {
    min-height: 32px !important;
    padding: 5px 6px !important;
  }

  body .aibos-tool-center .aibos-ls-product-image-field .aibos-ls-product-image,
  body .aibos-tool-center .aibos-ls-product-image-field .aibos-ls-product-upload {
    width: 100% !important;
    height: 38px !important;
  }

  body .aibos-tool-center .aibos-ls-color-tag-list {
    gap: 4px !important;
  }

  body .aibos-tool-center .aibos-ls-color-tag-group {
    grid-template-columns: minmax(5.2em, 1fr) 50px 20px !important;
    gap: 4px !important;
  }

  body .aibos-tool-center .aibos-ls-color-tag-group > input {
    width: 5.2em !important;
  }

  body .aibos-tool-center .aibos-ls-color-tag-file,
  body .aibos-tool-center .aibos-ls-color-tag-upload {
    width: 50px !important;
    min-width: 50px !important;
    height: 38px !important;
    min-height: 38px !important;
  }

  body .aibos-tool-center .aibos-ls-color-tag-file small {
    width: 50px !important;
  }
}

/* Product library: compact controls with labels and editors centered in both axes. */
body .aibos-tool-center .aibos-ls-product-wrap {
  padding: 5px !important;
}

body .aibos-tool-center .aibos-ls-product-pairs,
body .aibos-tool-center .aibos-ls-product-pair {
  gap: 4px !important;
}

body .aibos-tool-center .aibos-ls-product-pair {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)) !important;
}

body .aibos-tool-center .aibos-ls-product-card {
  padding: 4px !important;
}

body .aibos-tool-center .aibos-ls-product-card-grid {
  align-items: center !important;
  gap: 4px !important;
}

body .aibos-tool-center .aibos-ls-product-field {
  min-height: 0;
  align-content: center;
  justify-items: stretch;
  gap: 2px;
}

body .aibos-tool-center .aibos-ls-product-field > span {
  width: 100%;
  align-self: end;
  color: #79686d;
  font-size: 10px;
  line-height: 12px;
  text-align: center;
}

body .aibos-tool-center .aibos-ls-product-field input {
  min-height: 28px !important;
  height: 28px;
  margin-inline: auto;
  padding: 3px 5px !important;
  text-align: center;
}

body .aibos-tool-center .aibos-ls-product-image-field .aibos-ls-product-image,
body .aibos-tool-center .aibos-ls-product-image-field .aibos-ls-product-upload {
  height: 30px !important;
  margin-block: auto;
}

body .aibos-tool-center .aibos-ls-product-card .aibos-ls-color-tag-list {
  align-self: center;
  padding: 0;
}

body .aibos-tool-center .aibos-ls-color-tag-upload,
body .aibos-tool-center .aibos-ls-color-tag-file {
  height: 30px !important;
  min-height: 30px !important;
}

body .aibos-tool-center .aibos-ls-color-tag-upload span,
body .aibos-tool-center .aibos-ls-color-tag-file small,
body .aibos-tool-center .aibos-ls-product-code-status {
  font-size: 10px;
  line-height: 12px;
  text-align: center;
}

body .aibos-tool-center .aibos-ls-product-code-status {
  min-height: 12px;
}

/* One visible color variant per product: selecting a color switches its code and pack size. */
body .aibos-tool-center .aibos-ls-product-card .aibos-ls-color-tag-list {
  display: block !important;
  width: 100%;
  overflow: visible !important;
}

body .aibos-tool-center .aibos-ls-color-variant-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  grid-template-rows: 14px 14px;
  align-items: center;
  gap: 0 3px;
  width: 100%;
}

body .aibos-tool-center .aibos-ls-color-variant-picker > input {
  grid-row: 1 / 3;
  width: 100% !important;
  min-width: 0;
  height: 28px;
  text-align: center;
}

body .aibos-tool-center .aibos-ls-color-variant-picker > button {
  display: grid;
  place-items: center;
  grid-column: 2;
  width: 22px;
  min-width: 22px;
  height: 14px;
  min-height: 14px !important;
  padding: 0 !important;
  border-radius: 4px 4px 0 0;
  font-size: 10px;
  line-height: 1;
}

body .aibos-tool-center .aibos-ls-color-variant-picker > button:last-child {
  grid-row: 2;
  border-top: 0;
  border-radius: 0 0 4px 4px;
}

body .aibos-tool-center .aibos-ls-variant-code-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 3px;
  width: 100%;
}

body .aibos-tool-center .aibos-ls-variant-code-editor > input {
  width: 100%;
  min-width: 0;
}

body .aibos-tool-center .aibos-ls-variant-code-editor .aibos-ls-color-tag-file,
body .aibos-tool-center .aibos-ls-variant-code-editor .aibos-ls-color-tag-upload {
  display: grid !important;
  place-items: center;
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
}

body .aibos-tool-center .aibos-ls-variant-code-editor .aibos-ls-color-tag-file small {
  display: none !important;
}

body .aibos-tool-center .aibos-ls-product-code-field {
  position: relative;
}

body .aibos-tool-center .aibos-ls-product-code-field .aibos-ls-product-code-status {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: -9px;
  left: 0;
  pointer-events: none;
}

@media (min-width: 1181px) {
  body .aibos-tool-center .aibos-ls-product-card-grid {
    grid-template-columns: minmax(54px, .68fr) 40px minmax(104px, 1.12fr) minmax(98px, 1fr) 44px !important;
  }
}

@media (min-width: 621px) and (max-width: 1180px) {
  body .aibos-tool-center .aibos-ls-product-card-grid {
    grid-template-columns: minmax(60px, .75fr) 40px minmax(108px, 1.12fr) minmax(100px, 1fr) 46px !important;
  }
}
