.workspace .knowledge-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0 22px;padding-bottom:4px}
.workspace .knowledge-tabs>button{border:1px solid #dfe6df;border-radius:10px;background:#fff;padding:10px 16px;color:#55665c;font-size:13px;font-weight:600}
.workspace .knowledge-tabs>button.active{background:#263a30;border-color:#263a30;color:#fff}
.workspace .knowledge-tab-count{display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:4px;border-radius:20px;background:#edf2e8;color:#536b47;font-size:11px}
.workspace .knowledge-section-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:22px 0 14px}
.workspace .knowledge-section-head h2{margin:0;font:27px/1.2 Georgia,serif;letter-spacing:-.6px}
.workspace .knowledge-section-head p{margin:5px 0 0;color:#718076;font-size:13px}
.workspace .knowledge-section-head button{flex:none}
.workspace .knowledge-qa-section,.workspace .knowledge-browse-section,.workspace .knowledge-products-section{margin:22px 0 28px}
.workspace .owner-qa-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:14px 0;color:#748076;font-size:12px}
.workspace .owner-qa-toolbar input{width:min(100%,420px);margin:0}
.workspace .owner-qa-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.workspace .owner-qa-card,.workspace .owner-qa-empty{min-width:0;padding:19px 20px;border:1px solid #e0e7e1;border-radius:13px;background:#fff}
.workspace .owner-qa-card[hidden]{display:none}
.workspace .owner-qa-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.workspace .owner-qa-card h3,.workspace .owner-qa-empty h3{margin:0;font-size:15px;line-height:1.45;overflow-wrap:anywhere}
.workspace .owner-qa-card-head .learned-status{display:block;margin:5px 0 0}
.workspace .owner-qa-answer{margin:14px 0 4px;color:#44544a;font-size:13px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
.workspace .owner-qa-card details{margin-top:10px;padding-top:9px}
.workspace .owner-qa-card details summary,.workspace .owner-qa-dismissed summary{font-size:12px;color:#657b57}
.workspace .owner-qa-card blockquote{margin:10px 0;padding:9px 12px;border-left:2px solid #d7e2cc;color:#69766d;font-size:12px}
.workspace .owner-qa-empty{background:#fbfcf9}
.workspace .owner-qa-empty p{max-width:650px;color:#6f7c73;font-size:13px}
.workspace .owner-qa-no-match{padding:14px;color:#718076;font-size:13px}
.workspace .learned-show-more{display:block;margin:18px auto 4px}
.workspace .owner-qa-dismissed{margin-top:14px;border:1px solid #e0e7e1;border-radius:12px;background:#fff;padding:0 16px}
.workspace .owner-qa-dismissed summary{padding:12px 0}
.workspace .owner-qa-dismissed .extras-question{display:flex;width:100%;justify-content:space-between;gap:12px;border:0;border-top:1px solid #edf0eb;background:white;padding:12px 0;text-align:left}
.workspace .knowledge-review-tools{margin:24px 0;border:1px solid #dfe6df;border-radius:14px;background:#fff;padding:0 18px}
.workspace .knowledge-review-tools>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 0;font-weight:650;list-style:none;cursor:pointer}
.workspace .knowledge-review-tools>summary::-webkit-details-marker{display:none}
.workspace .knowledge-review-tools>summary:after{content:'＋';color:#687d5c}
.workspace .knowledge-review-tools[open]>summary:after{content:'−'}
.workspace .knowledge-review-tools>summary span,.workspace .knowledge-review-grid summary span{font-weight:400;color:#77837a;font-size:11px}
.workspace .knowledge-review-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:4px 0 18px}
.workspace .knowledge-review-grid>details{align-self:start;border:1px solid #e5eae4;border-radius:10px;padding:0 13px;background:#fbfcfa}
.workspace .knowledge-review-grid>details>summary{padding:12px 0;font-size:12px;font-weight:600;cursor:pointer}
.workspace .knowledge-review-grid .panel{box-shadow:none}
.workspace .knowledge-review-grid .panel-body{padding:12px 0}
.workspace .knowledge-review-grid .facts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.workspace .knowledge-review-grid .table-wrap{max-width:100%;overflow:auto}
.workspace .product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}
.workspace .product-card{min-width:0;overflow:hidden;border:1px solid #e0e7e1;border-radius:14px;background:#fff}
.workspace .product-card-image{display:grid;place-items:center;aspect-ratio:16/10;background:#eef2ec;color:#82917e;font-size:36px;overflow:hidden}
.workspace .product-card-image img{width:100%;height:100%;object-fit:cover}
.workspace .product-card-body{padding:16px}
.workspace .product-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.workspace .product-card-head h3{margin:0;font-size:16px;line-height:1.35;overflow-wrap:anywhere}
.workspace .product-card-head small{display:block;margin-top:4px;color:#758178;font-size:11px}
.workspace .product-price{display:block;margin:12px 0;color:#2d4436;font-size:18px}
.workspace .product-card-body>p{color:#657369;font-size:12px;line-height:1.6}
.workspace .product-card-links{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0;font-size:12px}
.workspace .product-visibility-label{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px}
.workspace .product-visibility-label select{max-width:130px;margin:0}
.workspace .product-edit{margin-top:14px;border-top:1px solid #edf0eb}
.workspace .product-edit>summary{padding:12px 0;color:#586f4b;font-size:12px;font-weight:600;cursor:pointer}
.workspace .product-edit form label{display:block;margin:10px 0;font-size:11px;font-weight:600}
.workspace .product-edit form input,.workspace .product-edit form textarea{display:block;width:100%;box-sizing:border-box;margin-top:4px;padding:9px;border:1px solid #d8e0d7;border-radius:8px;background:#fff;color:#28382f;font:inherit;font-size:13px;line-height:1.45}
.workspace .product-edit-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.workspace .product-edit-actions button{font-size:12px}
.workspace .product-edit-message{min-height:1em;color:#667661;font-size:12px}
@media(max-width:700px){
 .workspace .knowledge-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:14px 0 18px}
 .workspace .knowledge-tabs>button{min-width:0;padding:10px 5px;font-size:11px;line-height:1.25;text-align:center}
 .workspace .knowledge-section-head{align-items:stretch;flex-direction:column;gap:12px}
 .workspace .knowledge-section-head h2{font-size:24px}
 .workspace .knowledge-section-head button{width:100%}
 .workspace .owner-qa-list,.workspace .knowledge-review-grid{grid-template-columns:1fr}
 .workspace .owner-qa-toolbar{align-items:stretch;flex-direction:column}
 .workspace .owner-qa-toolbar input{width:100%;box-sizing:border-box}
 .workspace .knowledge-review-tools{padding:0 13px}
 .workspace .knowledge-review-tools>summary{align-items:flex-start;flex-wrap:wrap;font-size:13px}
 .workspace .knowledge-review-tools>summary span{width:100%}
 .workspace .knowledge-review-grid .facts-grid{grid-template-columns:1fr}
 .workspace .product-grid{grid-template-columns:1fr}
 .workspace .product-card{display:grid;grid-template-columns:minmax(82px,29%) minmax(0,1fr)}
 .workspace .product-card-image{aspect-ratio:auto;min-height:100%;align-self:stretch}
 .workspace .product-card-body{padding:13px;min-width:0}
 .workspace .product-card-head{flex-direction:column;gap:7px}
 .workspace .product-price{margin:9px 0;font-size:16px}
}

/* Knowledge page: one discovery control, unified files, clearer product cards. */
.workspace .knowledge-tabs>button.active{color:#fff!important;background:#263a30!important;border-color:#263a30!important}
.workspace .knowledge-find{display:grid;grid-template-columns:minmax(220px,1fr) auto;align-items:center;gap:12px;margin:8px 0 22px;padding:12px;border:1px solid #e0e7e1;border-radius:14px;background:#fff}
.workspace .knowledge-find>label{display:block;min-width:0}
.workspace .knowledge-find input{width:100%;box-sizing:border-box;margin:0;padding:12px 14px;border:1px solid #dfe6df;border-radius:10px;background:#fbfcfa;font:inherit;font-size:14px}
.workspace .knowledge-filter{display:flex;flex-wrap:wrap;gap:6px}
.workspace .knowledge-filter button{min-height:40px;padding:8px 12px;border:1px solid #e0e7e1;border-radius:9px;background:#fff;color:#53645a;font-size:12px;font-weight:600;white-space:nowrap}
.workspace .knowledge-filter button.active{border-color:#c9d7be;background:#eef3e9;color:#334a36}
.workspace .knowledge-qa-section[hidden],.workspace .knowledge-browse-section[hidden]{display:none}
.workspace .learned-count{align-self:center;padding:7px 10px;border-radius:20px;background:#f0f3ee;color:#647267;font-size:12px;white-space:nowrap}
.workspace .owner-qa-no-match{padding:14px;border:1px dashed #dce4da;border-radius:10px;color:#718076;font-size:13px}
.workspace .document-library .panel-head{align-items:flex-start}
.workspace .document-library-list{padding:0 18px 10px}
.workspace .document-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 2px;border-top:1px solid #edf0eb}
.workspace .document-row:first-child{border-top:0}
.workspace .document-row-main{display:grid;grid-template-columns:1fr;gap:4px;min-width:0}
.workspace .document-row-main strong{overflow-wrap:anywhere;font-size:14px}
.workspace .document-row-main small{color:#758178;font-size:12px;overflow-wrap:anywhere}
.workspace .document-row-main a{width:max-content;margin-top:4px;font-size:12px}
.workspace .document-kind{width:max-content;color:#78856f;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.workspace .document-row-access{display:flex;align-items:center;gap:10px;flex:none;font-size:12px}
.workspace .document-row-access select{min-width:130px;margin:0}
.workspace .document-empty{padding:25px 8px;text-align:center;color:#68786c}
.workspace .document-empty strong{color:#35483b}
.workspace .document-empty p{margin:6px 0 0;font-size:13px}
.workspace .product-card-image.is-empty{display:flex;align-items:center;justify-content:flex-start;aspect-ratio:auto;height:40px;padding:0 16px;background:#fff;color:#849082;font-size:11px}
.workspace .product-card-image.has-image{aspect-ratio:16/10}
@media(max-width:700px){
 .workspace .knowledge-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important}
 .workspace .knowledge-tabs>button{min-height:48px;padding:9px 3px!important;font-size:10px!important;line-height:1.25;text-align:center;overflow-wrap:anywhere}
 .workspace .knowledge-find{grid-template-columns:1fr;gap:9px;padding:10px}
 .workspace .knowledge-filter{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
 .workspace .knowledge-filter button{min-width:0;min-height:42px;padding:7px 4px;font-size:10px;white-space:normal}
 .workspace .document-library-list{padding:0 13px 8px}
 .workspace .document-row{align-items:stretch;flex-direction:column;gap:12px;padding:14px 0}
 .workspace .document-row-access{justify-content:space-between}
 .workspace .document-row-access select{width:150px}
 .workspace .learned-intro{align-items:flex-start}
}

/* Keep curated Q&A and visitor follow-up states easy to scan. */
.workspace .owner-qa-summary{margin:8px 0 18px;color:#6f7c73;font-size:12px;line-height:1.55}
.workspace .owner-qa-group{margin:18px 0 24px}
.workspace .owner-qa-group>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px}
.workspace .owner-qa-group>header h3{margin:0;color:#304238;font-size:15px}
.workspace .owner-qa-group-empty{margin:0;padding:12px 14px;border:1px dashed #dce4da;border-radius:10px;color:#78847a;font-size:12px}
.workspace .owner-qa-card h4{margin:0;font-size:14px;line-height:1.45;overflow-wrap:anywhere}
.workspace .inbox-filters{display:flex;flex-wrap:wrap;gap:7px;padding:0 18px 14px;border-bottom:1px solid #edf0eb}
.workspace .inbox-filters button{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:7px 12px;border:1px solid #dfe6df;border-radius:9px;background:#fff;color:#53645a;font-size:12px;font-weight:600}
.workspace .inbox-filters button span{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 4px;border-radius:12px;background:#f0f3ee;color:#637267;font-size:11px}
.workspace .inbox-filters button.active{border-color:#526b47;background:#eef3e9;color:#334a36}
@media(max-width:700px){
 .workspace .inbox-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:0 12px 12px}
 .workspace .inbox-filters button{justify-content:center;gap:5px;min-width:0;padding:7px 4px;font-size:11px}
}

/* Direct product creation: a short form first, bulk import when needed. */
.workspace .product-create-panel{scroll-margin-top:24px;margin:18px 0 30px}
.workspace .product-create-panel .panel-head{align-items:flex-start;padding-bottom:14px}
.workspace .product-create-panel .panel-head h2{margin:0;font:26px/1.2 Georgia,serif;letter-spacing:-.45px}
.workspace .product-create-panel .panel-head p{margin:6px 0 0;color:#718076;font-size:13px;line-height:1.5}
.workspace .product-create-panel .panel-body{padding-top:12px}
.workspace .product-create-panel label{display:block;margin:0 0 14px;color:#32443a;font-size:12px;font-weight:650}
.workspace .product-create-panel input:not([type=file]),.workspace .product-create-panel select,.workspace .product-create-panel textarea{display:block;box-sizing:border-box;width:100%;min-height:44px;margin-top:6px;padding:10px 12px;border:1px solid #d8e1d7;border-radius:9px;background:#fff;color:#26372e;font:inherit;font-size:14px}
.workspace .product-create-panel textarea{min-height:82px;resize:vertical}
.workspace .product-create-fields{display:grid;grid-template-columns:minmax(0,2fr) minmax(125px,1fr) minmax(105px,.7fr);gap:12px}
.workspace .product-photo-picker{display:grid;grid-template-columns:112px minmax(0,1fr);align-items:center;gap:16px;margin:16px 0;padding:14px;border:1px dashed #ccd8c9;border-radius:12px;background:#fafcf9}
.workspace .product-photo-preview{display:grid;place-items:center;width:112px;height:90px;overflow:hidden;border:1px solid #e1e8df;border-radius:9px;background:#eef2ec;color:#718076;text-align:center;font-size:11px;line-height:1.35}
.workspace .product-photo-preview img{width:100%;height:100%;object-fit:cover}
.workspace .product-photo-preview img[hidden]{display:none}
.workspace .product-photo-control{display:grid!important;gap:5px;min-width:0;margin:0!important;cursor:pointer}
.workspace .product-photo-control strong{color:#32443a;font-size:13px}
.workspace .product-photo-control input[type=file],.workspace .product-edit input[type=file]{max-width:100%;font-size:12px}
.workspace .product-optional-details{margin:8px 0 14px;border-top:1px solid #edf0eb}
.workspace .product-optional-details>summary{padding:13px 0;color:#526b47;font-size:12px;font-weight:650;cursor:pointer}
.workspace .product-optional-details .product-create-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
.workspace .product-create-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:12px;border-top:1px solid #edf0eb}
.workspace .product-create-footer p{max-width:460px;margin:0;line-height:1.5}
.workspace .product-create-footer button{min-width:155px;min-height:44px}
.workspace #product-create-error{margin:10px 0 0}
.workspace .product-empty{padding:34px 22px;text-align:center}
.workspace .product-empty p{max-width:520px;margin:8px auto 16px;color:#718076;font-size:13px;line-height:1.6}
.workspace .product-csv-import{margin:18px 0 28px;padding:0 18px}
.workspace .product-csv-import>summary{padding:16px 0;color:#516548;font-size:13px;font-weight:650;cursor:pointer}
.workspace .product-csv-import .panel-body{padding:0 0 18px}
.workspace .product-csv-import form{margin-top:14px}
.workspace .product-card-head{align-items:center}
.workspace .product-card-head>.pill{flex:none}
@media(max-width:700px){
 .workspace .product-create-panel .panel-head h2{font-size:23px}
 .workspace .product-create-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
 .workspace .product-create-fields>label:first-child{grid-column:1/-1}
 .workspace .product-optional-details .product-create-fields{grid-template-columns:1fr}
 .workspace .product-create-footer{align-items:stretch;flex-direction:column}
 .workspace .product-create-footer button{width:100%}
 .workspace .product-photo-picker{grid-template-columns:84px minmax(0,1fr);gap:12px;padding:11px}
 .workspace .product-photo-preview{width:84px;height:78px}
 .workspace .product-csv-import{padding:0 13px}
 .workspace .product-card-head>.pill{font-size:10px}
}
