/* P11: horizontal catalog controls on the shared 1440px desktop canvas. */
.sidebar { overflow-y: auto; }
.sidebar-nav { flex-shrink: 0; }
.p9-mascot { margin-top: auto; text-align: center; padding-top: 24px; }
.p9-mascot img { display: block; width: 166px; height: 218px; object-fit: contain; margin: 0 auto 7px; }
.p9-mascot + .sidebar-service-note { margin-top: 0; padding-top: 0; text-align: center; }
.p9-catalog { display: block; scroll-margin-top: 24px; min-height: calc(100dvh - 24px); }
.p9-catalog .categories { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin-bottom: 14px; }
.p9-catalog .category-button { display: inline-flex; align-items: center; justify-content: center; min-width: 82px; max-width: 100%; min-height: 40px; border: 1px solid #e8ddea; border-radius: 8px; background: #fffdf9; text-align: center; padding: 9px 22px; color: #80658e; font-size: 13px; }
.p9-catalog .category-button span { min-width: 0; overflow-wrap: anywhere; }
.p9-catalog .category-button:hover { background: #f4eef8; }
.p9-catalog .category-button.active { background: #51335f; border-color: #51335f; color: #fff; font-weight: 650; }
.p9-catalog .catalog-main { min-width: 0; }
.p9-catalog .catalog-heading { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-bottom: 17px; }
.p9-catalog .catalog-heading > div > p { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.p9-catalog .catalog-heading > div { min-width: 0; overflow-wrap: anywhere; }
.p9-catalog .catalog-heading h2 { font-size: 28px; line-height: 1.4; }
.p9-catalog .catalog-heading .searchbox { width: 350px; min-width: 240px; margin: 0; }
.p9-catalog .catalog-heading .searchbox input { width: 100%; font-size: 12px; }
.p9-catalog .secondary-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-height: 47px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); padding: 0 17px; margin-bottom: 10px; }
.p9-catalog .secondary-label { width: 55px; flex-shrink: 0; color: #947a9f; font-size: 12px; }
.p9-catalog .tab { border: 0; background: transparent; align-self: stretch; padding: 13px 12px; color: var(--muted); position: relative; font-size: 12px; max-width: 100%; overflow-wrap: anywhere; }
.p9-catalog .tab.active { font-weight: 700; color: #5b346b; }
.p9-catalog .tab.active::after { content: ''; position: absolute; height: 3px; left: 12px; right: 12px; bottom: 0; background: #a369b5; border-radius: 3px; }
.p9-catalog .filter-row { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content; align-items: start; gap: 6px 10px; padding: 10px 13px; background: #fff3e8; border: 1px solid #f5e2d3; border-radius: 10px; margin-bottom: 10px; min-height: 52px; }
.p9-catalog .filter-label { font-size: 12px; color: #9a7a75; padding-top: 8px; }
.p9-catalog .inline-filter-options { display: flex; flex-wrap: wrap; align-items: flex-start; align-content: start; gap: 7px; min-width: 0; }
.p9-catalog .inline-filter-options.expanded { max-height: 113px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d6b69f transparent; scrollbar-gutter: stable; }
.p9-catalog .filter-chip { flex-shrink: 0; border: 1px solid #e8ddea; background: #fffdf9; color: #806777; padding: 7px 10px; border-radius: 6px; font-size: 12px; white-space: nowrap; height: 33px; line-height: 17px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.p9-catalog .filter-chip.active { background: var(--orange); border-color: var(--orange); color: white; }
.p9-catalog .filter-chip:focus-visible { outline: 2px solid #ad83b9; outline-offset: -2px; }
.p9-catalog .filter-actions { display: flex; align-items: center; gap: 12px; }
.p9-catalog .more-button { min-width: 90px; border-color: #edc8aa; color: #d56625; background: #fffdf9; }
.p9-catalog .inline-filter-help { font-size: 11px; color: #aa8779; white-space: nowrap; line-height: 33px; }
.p9-catalog .filter-scroll-hint { grid-column: 2; font-size: 10px; color: #a38577; }
.p9-catalog .selected-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); padding: 5px 0 12px; max-height: 86px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.p9-catalog .selected-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #efc9b0; color: #c66c35; border-radius: 5px; background: #fff6ec; padding: 4px 8px; font-size: 12px; max-width: 100%; overflow-wrap: anywhere; }
.p9-catalog .clear-all { border: 0; background: transparent; color: #a58576; font-size: 12px; margin-left: auto; padding: 5px; }
.p9-catalog .results-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 17px 0; color: var(--muted); font-size: 12px; }
.p9-catalog .results-toolbar .result-count { margin: 0; }
.p9-catalog .sort-label { display: flex; align-items: center; gap: 7px; color: #a391a9; }
.p9-catalog .sort-label select { border: 0; background: transparent; color: #7e668d; font-size: 12px; max-width: 125px; padding: 4px; cursor: pointer; }
.p9-catalog .skill-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.p9-catalog .card-title { font-size: 14px; line-height: 1.7; min-height: 0; }
.p9-catalog .card-description { font-size: 12px; line-height: 1.85; height: 44px; margin: 6px 0 13px; }
.p9-catalog .card-cover { aspect-ratio: 16 / 9; }
.p9-catalog .card-actions { padding-top: 11px; gap: 8px; }
.p9-catalog .card-actions button { font-size: 11px; }
.p9-catalog .card-labels { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
.p9-catalog .card-labels span { font-size: 10px; color: #9175a2; background: #f3ecf8; border-radius: 3px; padding: 1px 5px; }
.p9-catalog .card-labels span:first-child { background: #f6f0e8; color: #ad8b6c; }
.p9-catalog .taxonomy-error { font-size: 12px; color: #977043; margin: 12px 0; overflow-wrap: anywhere; }
.p9-catalog [hidden] { display: none !important; }
@media (max-height: 850px) { .p9-mascot img { width: 142px; height: 178px; } .p9-mascot { padding-top: 16px; } }
@media (pointer: coarse) { .p9-catalog .catalog-heading .searchbox input { font-size: 16px; } }
