#catBody{padding:28px 32px 40px;container-type:inline-size}
#shopPane:has(.shoptab[data-tab="cat"].on) #shopFieldsBtn{display:none}
.cat-heading,.cat-create-host,.cat-layout{max-width:1280px;margin-inline:auto}
.cat-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}
.cat-heading h2{margin:0 0 6px;font-size:24px;line-height:1.25;letter-spacing:-.025em}
.cat-heading p,.cat-help{margin:0;color:var(--soft-ink,#48554e);font-size:13px;line-height:1.55}
.cat-layout{display:grid;grid-template-columns:210px minmax(0,1fr);align-items:start;gap:28px}
.cat-list-host{min-width:0}
.cat-list-title{margin:0 12px 10px;color:var(--muted,#66736b);font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.cat-list{display:flex;flex-direction:column;gap:3px}
.cat-choice{position:relative;display:flex;flex-direction:column;gap:4px;width:100%;min-width:0;text-align:left;padding:11px 13px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--ink,#1b2521);font:inherit;cursor:pointer;overflow-wrap:anywhere;transition:background .12s,border-color .12s}
.cat-choice b{font-size:13px;font-weight:600;line-height:1.35}
.cat-choice span{color:var(--muted,#66736b);font-size:11px;line-height:1.4;font-variant-numeric:tabular-nums}
.cat-choice:hover{background:var(--paper2,#f3efe7)}
.cat-choice.on{border-color:color-mix(in srgb,var(--accent,#127c67) 28%,transparent);background:var(--accent-soft,#e7f3ef)}
.cat-choice.on b{color:var(--accent,#127c67)}
.cat-choice.on:before{content:"";position:absolute;inset:12px auto 12px -1px;width:3px;border-radius:2px;background:var(--accent,#127c67)}
.cat-editor{min-width:0;padding:22px;border:1px solid var(--line,#e4e7e3);border-radius:12px;background:var(--card,#fff);box-shadow:0 2px 8px #10271b04}
.cat-editor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}
.cat-editor h3{margin:0 0 5px;font-size:20px;line-height:1.3;letter-spacing:-.02em}
.cat-editor-head .cat-help{max-width:560px;font-size:12px}
.cat-item-count{flex:none;padding:5px 9px;border:1px solid var(--line,#e4e7e3);border-radius:6px;color:var(--soft-ink,#48554e);font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap}
.cat-settings{display:grid;grid-template-columns:minmax(170px,1fr) minmax(240px,1.65fr);gap:10px 20px;margin:0 0 20px;padding-bottom:16px;border-bottom:1px solid var(--line,#e4e7e3)}
.cat-settings label,.cat-create label{display:flex;flex-direction:column;gap:7px;color:var(--soft-ink,#48554e);font-size:12px;font-weight:600}
#catBody .cat-settings .detf,#catBody .cat-create .detf{width:100%;min-height:40px;margin:0;padding:10px 12px;border:1px solid var(--line2,#d9dfd9);border-radius:7px;background:var(--card,#fff);color:var(--ink,#1b2521);font:inherit;font-weight:400;font-size:13px;line-height:1.45;box-sizing:border-box}
#catBody .cat-settings textarea{height:64px;min-height:64px;resize:vertical}
.cat-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.cat-settings .cat-actions{grid-column:1/-1;justify-content:flex-end}
.cat-btn{font:inherit;font-weight:600;font-size:12px;line-height:1.4;padding:9px 15px;min-height:36px;border:1px solid var(--line2,#d9dfd9);border-radius:7px;background:var(--card,#fff);color:var(--ink,#1b2521);cursor:pointer;white-space:nowrap}
.cat-btn:hover{background:var(--paper2,#f3efe7)}
.cat-btn.primary{background:var(--accent,#127c67);border-color:var(--accent,#127c67);color:#fff}
.cat-btn:disabled{opacity:.5;cursor:wait}
.cat-save-status{font-size:12px;font-weight:400;color:var(--muted,#66736b)}
.cat-create{max-width:540px;display:grid;gap:14px;padding:18px;border:1px solid var(--line,#e4e7e3);border-radius:10px;background:var(--card,#fff);margin-bottom:20px}
.cat-navigation{padding:12px;background:var(--accent-soft,#fff4dd);border-radius:8px;margin-bottom:14px;font-size:13px}
.cat-error{color:var(--rose,#b0432e)}
select[data-shop-category]{max-width:100%;box-sizing:border-box}
#catBody :is(input,select,textarea,button):focus-visible{outline:2px solid var(--accent,#127c67);outline-offset:2px}
@container(max-width:760px){.cat-layout{grid-template-columns:168px minmax(0,1fr);gap:16px}.cat-editor{padding:18px}.cat-settings{grid-template-columns:1fr}.cat-item-count{display:none}}
@container(max-width:560px){.cat-heading{gap:12px;align-items:flex-start}.cat-heading h2{font-size:21px}.cat-heading p{max-width:230px}.cat-layout{grid-template-columns:1fr;gap:18px}.cat-list{flex-direction:row;overflow-x:auto;padding:2px 2px 8px;scrollbar-width:thin}.cat-choice{flex:0 0 144px;padding:9px 11px}.cat-list-title{margin-left:2px}.cat-choice.on:before{display:none}.cat-editor{padding:16px}.cat-settings{gap:14px}.cat-btn{padding:9px 12px}}
@media(max-width:640px){#catBody{padding:20px 16px 28px}}
