#brand-knowledge-dialog{width:min(880px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:28px;border:1px solid #dce3db;border-radius:20px;color:#244c3d;background:#fbfcf7;box-shadow:0 24px 90px #14332633}
#brand-knowledge-dialog::backdrop{background:#19382b66;backdrop-filter:blur(3px)}
#brand-knowledge-dialog h2{margin:0;font-size:24px;letter-spacing:-.5px}
#brand-knowledge-dialog h3{font-size:20px;margin:24px 0 10px}
#brand-knowledge-dialog h4{font-size:16px;margin:0 0 10px}
#brand-knowledge-dialog p{line-height:1.6;overflow-wrap:anywhere}
.knowledge-eyebrow{font-size:12px;font-weight:600;margin:0 0 4px;color:#5a6e60}
.knowledge-tabs{display:flex;gap:6px;border-bottom:1px solid #dce3db;padding:12px 0;overflow-x:auto}
.knowledge-tabs button{flex:0 0 auto;background:transparent;color:#244c3d;font-size:13px;padding:10px 14px;border:0;min-height:40px}
.knowledge-tabs [aria-current=page]{background:#e9f2db;font-weight:600;border-radius:9px}
.knowledge-status{margin:10px 0;font-size:13px;color:#476d45;min-height:0}
.knowledge-status:empty{display:none}
.knowledge-status.error{color:#933c2c}
.knowledge-note{font-size:12px;color:#637568;line-height:1.6}
.knowledge-background,.knowledge-suggestions{padding:16px;background:#eef2e9;border-radius:12px;margin:16px 0}
.knowledge-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}
#brand-knowledge-dialog form{display:grid;gap:16px;margin-top:16px}
#brand-knowledge-dialog label{display:grid;gap:7px;font-size:13px;font-weight:500;line-height:1.5}
#brand-knowledge-dialog input:not([type=checkbox]),#brand-knowledge-dialog textarea,#brand-knowledge-dialog select{box-sizing:border-box;width:100%;min-width:0;min-height:42px;border:1px solid #cdd7cc;border-radius:9px;background:#fff;padding:10px 12px;color:#244c3d;font:inherit;font-weight:400}
#brand-knowledge-dialog textarea{resize:vertical}
#brand-knowledge-dialog .knowledge-check{display:flex;align-items:flex-start;gap:10px;font-weight:400}
#brand-knowledge-dialog [hidden]{display:none!important}
.knowledge-check input{flex:0 0 18px;width:18px;height:18px;accent-color:#244c3d;margin-top:2px}
.knowledge-buttons{display:flex;flex-wrap:wrap;gap:10px}
#brand-knowledge-dialog button{width:auto;justify-self:start;min-height:40px}
.knowledge-actions{display:grid;gap:16px;margin:20px 0}
.knowledge-action,.knowledge-cohort{padding:20px;background:#fff;border:1px solid #dce3db;border-radius:14px;min-width:0;margin:14px 0}
.knowledge-action-heading{display:flex;justify-content:space-between;gap:16px;align-items:start}
.knowledge-action a{display:inline-block;max-width:100%;font-size:13px;overflow-wrap:anywhere}
.knowledge-badge{font-size:11px;font-weight:600;white-space:nowrap;border-radius:20px;background:#eef2e9;padding:5px 9px}
#brand-knowledge-dialog details summary{cursor:pointer;font-size:13px;line-height:1.6}
.knowledge-action details{margin-top:18px}
.knowledge-action-form{padding-top:12px;border-top:1px solid #dce3db}
.knowledge-history{padding:16px 0 0 20px;font-size:12px}
.knowledge-history small,.knowledge-cohort li small{display:block;color:#637568;margin:6px 0 12px}
.knowledge-cohort dl{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.knowledge-cohort dl div{min-width:0}
.knowledge-cohort dt{font-size:11px;color:#637568}
.knowledge-cohort dd{font-size:13px;margin:4px 0;overflow-wrap:anywhere}
.knowledge-cohort li{padding:7px 0;font-size:14px;line-height:1.6}
@media(max-width:600px){#brand-knowledge-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:20px 16px;border-radius:14px}.knowledge-fields,.knowledge-cohort dl{grid-template-columns:1fr}.knowledge-action,.knowledge-cohort{padding:16px}.knowledge-tabs{gap:0}.knowledge-tabs button{padding:10px;font-size:12px}.knowledge-action-heading{flex-direction:column;gap:4px}}
@media(max-width:600px){
 #brand-knowledge-dialog .knowledge-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;gap:4px}
 #brand-knowledge-dialog .knowledge-tabs button{min-width:0;width:100%;justify-self:stretch;white-space:normal;line-height:1.4;padding:8px}
}
