#product-categories-host { grid-column: 1 / -1; min-width: 0; container-type: inline-size; }
.pc-toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin: 14px 0; }
.pc-toolbar label, .pc-editor label { display: grid; gap: 6px; font-weight: 700; font-size: 13px; min-width: 0; }
.pc-toolbar label:first-child { flex: 1 1 240px; }
.pc-toolbar input, .pc-toolbar select, .pc-editor input, .pc-editor textarea, .pc-editor select { font: inherit; padding: 10px; border: 1px solid var(--line); border-radius: 8px; color: inherit; background: white; width: 100%; min-width: 0; }
.pc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.pc-category, .pc-editor { border: 1px solid var(--line); border-radius: 8px; padding: 14px; min-width: 0; background: var(--panel-strong); }
.pc-category { margin-bottom: 12px; }
.pc-category-name { display: block; width: 100%; text-align: left; }
.pc-category-name small, .pc-products small { display: block; margin-top: 5px; font-weight: 400; color: var(--muted); }
.pc-groups { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pc-groups button { font-size: 13px; text-align: left; }
.pc-editor form { display: grid; gap: 12px; }
.pc-editor h3 { margin-top: 0; }
.pc-editor p, .pc-editor small { font-size: 13px; line-height: 1.5; font-weight: 400; }
.pc-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.pc-products { max-height: 350px; overflow: auto; }
.pc-products > div { padding: 10px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
[data-pc="message"].is-error { color: #a92327; }
[data-pc="message"]:empty { display: none; }
#product-categories-host :is(input,select,textarea,button):focus-visible { outline: 3px solid rgba(109,153,207,.35); outline-offset: 2px; }
@container(min-width: 760px) { .pc-layout { grid-template-columns: minmax(0,1.1fr) minmax(300px,1fr); } }
