:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#192632;background:#f5f7f9;font-synthesis:none}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}.shell{display:flex;min-height:100vh}.sidebar{width:245px;background:#102530;color:#e8f2f5;padding:30px 18px;display:flex;flex-direction:column;flex-shrink:0}.brand{display:flex;align-items:center;gap:12px;margin:0 8px 45px}.brand strong{font-size:15px}.brand small{display:block;margin-top:3px;color:#90a9b7;font-size:11px}.brand-mark{display:grid;place-items:center;background:#277b82;color:#fff;font-weight:800;border-radius:10px;width:37px;height:37px;flex-shrink:0}.nav-label{font-size:10px;letter-spacing:1.5px;color:#73909f;margin:0 12px 12px}.nav{display:grid;gap:5px}.nav a{display:block;padding:12px 14px;border-radius:8px;color:#b3c8d0;font-size:13px}.nav a:hover,.nav a[aria-current="page"]{background:#1d4048;color:#f7ffff}.sidebar-foot{margin-top:auto;padding:20px 10px 0;display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid #27434d}.sidebar-foot small{color:#9bb5c0;font-size:10px}.logout{border:1px solid #41616b;background:none;color:#d6e6e9;padding:8px 12px;border-radius:7px;cursor:pointer}.main{flex:1;max-width:100%;min-width:0;padding:32px 42px}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:34px}.eyebrow{font-size:11px;color:#788b97;letter-spacing:1.1px;text-transform:uppercase}.status,.tag{background:#e5f0ec;color:#2c6d55;border-radius:30px;padding:7px 12px;font-size:11px;font-weight:650}.page-header{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:30px}.page-header h1{font-weight:750;margin:0 0 8px;font-size:29px;letter-spacing:-.8px}.muted{color:#758794;font-size:13px;line-height:1.6;margin:0}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.metric{background:white;border:1px solid #e9edf0;border-radius:12px;padding:21px;box-shadow:0 4px 14px #163c4a06}.metric span,.metric small{display:block;color:#7a8b95;font-size:12px}.metric strong{display:block;font-size:32px;margin:13px 0;font-weight:750}.panel{background:white;border:1px solid #e9edf0;border-radius:12px;margin-bottom:20px;padding:24px;box-shadow:0 4px 14px #163c4a06}.panel h2{font-size:16px;margin:0 0 20px}.timeline>div{display:flex;align-items:center;gap:16px;border-top:1px solid #eff2f3;padding:16px 0}.timeline b{color:#90a4ad;font-size:12px}.timeline span{flex:1}.timeline strong{display:block;font-size:13px}.timeline small{display:block;color:#84939c;font-size:12px;margin-top:6px}.timeline em{font-size:10px;font-style:normal;color:#287e6a;font-weight:700}.timeline em.pending{color:#946d2c}.table-wrap{overflow-x:auto;padding:0}table{width:100%;border-collapse:collapse;min-width:620px}th,td{text-align:left;padding:17px 22px;font-size:12px;border-bottom:1px solid #edf0f3;vertical-align:top}th{color:#748894;background:#fafbfc;font-weight:700}td{color:#344c57}tr:last-child td{border-bottom:0}.empty{text-align:center;color:#9baab2;padding:55px 20px}.login-bg{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#edf3f4,#f7f8fa)}.login-card{background:white;border:1px solid #e6ebed;width:min(440px,calc(100% - 36px));padding:40px;border-radius:16px;box-shadow:0 18px 60px #12313c12}.login-card .brand{margin:0 0 35px}.login-card h1{margin:0 0 10px;font-size:28px}.login-card form{display:grid;gap:12px;margin-top:24px}.login-card label{font-size:12px;font-weight:700;margin-top:8px}.login-card input{border:1px solid #dbe3e7;border-radius:8px;padding:13px 12px;font:inherit;outline:0}.login-card input:focus{border-color:#368187;box-shadow:0 0 0 3px #3681871c}.primary{border:0;border-radius:8px;background:#1f6d75;color:white;font-weight:700;padding:14px;margin-top:12px;cursor:pointer}.primary:hover{background:#145960}.fineprint{color:#91a0a9;font-size:11px;line-height:1.6;margin-top:28px}.alert{background:#fff2ee;color:#af5038;padding:12px;border-radius:8px;font-size:12px}@media(max-width:1050px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.shell{display:block}.sidebar{width:100%;padding:14px}.sidebar .brand{margin-bottom:12px}.nav-label{display:none}.nav{display:flex;overflow-x:auto}.nav a{white-space:nowrap}.sidebar-foot{display:none}.main{padding:22px}.metrics{grid-template-columns:1fr 1fr;gap:10px}.metric{padding:15px}.metric strong{font-size:25px}.page-header h1{font-size:24px}}@media(max-width:420px){.metrics{grid-template-columns:1fr}.page-header{display:block}.page-header .tag{display:inline-block;margin-top:14px}}

/* STEP 2B Knowledge Management */
.action-link{display:inline-block;margin-top:0}.subtle-link{color:#176b77;text-decoration:underline;text-underline-offset:3px;font-weight:700}.narrow-panel{max-width:800px}.knowledge-form{display:grid;gap:11px}.knowledge-form label{font-size:13px;font-weight:700;margin-top:11px}.knowledge-form input,.knowledge-form select,.knowledge-form textarea{border:1px solid #dbe3e7;border-radius:8px;padding:13px 12px;font:inherit;background:#fff;color:#192632;width:100%}.knowledge-form input:focus,.knowledge-form select:focus,.knowledge-form textarea:focus{outline:2px solid #26828b}.knowledge-form .primary{width:max-content}.detail-head{display:flex;justify-content:space-between;align-items:center}.action-row{display:flex;gap:12px;margin-top:22px}.action-row .primary{margin:0}.preview-chunk{padding:16px 0;border-top:1px solid #eff2f3;overflow-wrap:anywhere}.preview-chunk p{white-space:pre-wrap;line-height:1.65;color:#385460;font-size:13px}.status-pill{display:inline-block;border:1px solid #d9e5e8;border-radius:7px;padding:4px 8px;font-size:11px;font-weight:700}.alert.success{background:#e7f4ee;color:#216b4a}@media(max-width:700px){.page-header{flex-wrap:wrap}.knowledge-form .primary{width:100%}}

.chunk-pagination{display:flex;gap:18px;justify-content:flex-end;align-items:center;padding-top:18px;border-top:1px solid #eff2f3}

/* Compact, responsive Knowledge Sources controls */
.header-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.secondary{display:inline-block;border:1px solid #c5d9dc;border-radius:8px;background:#fff;color:#1f6d75;font-weight:700;padding:13px;cursor:pointer}
.secondary:hover{background:#edf7f7}
.source-filters{display:flex;gap:12px;align-items:end;flex-wrap:wrap}
.source-filters label{display:grid;gap:6px;color:#607681;font-size:12px;font-weight:700;flex:1;min-width:140px}
.source-filters input,.source-filters select{width:100%;padding:10px;border:1px solid #dbe3e7;border-radius:8px;background:white;font:inherit;color:#192632}
.source-filters button{margin:0;padding:11px 17px}
.source-filters .subtle-link{padding:10px 4px}
@media(max-width:700px){.header-actions{width:100%}.header-actions a{flex:1;text-align:center;white-space:nowrap}.source-filters label{min-width:100%}}

/* Source availability */
.status-pill.availability-off{background:#f5f6f7;color:#6d7b84;border-color:#d3dbe1}
.availability-disable{color:#7b4851;border-color:#e1c3c9}
.action-row{flex-wrap:wrap;align-items:center}
.action-row .secondary{margin:0}


/* STEP 2B - compact knowledge detail, scoped to avoid impacting other CMS pages */
.knowledge-detail-header{align-items:flex-start}
.knowledge-detail-overview{padding:28px 30px}
.knowledge-overview-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:22px}
.knowledge-overview-heading h2,.knowledge-manage-header h2,.knowledge-preview-heading h2{font-size:17px;letter-spacing:-.2px;margin:0}
.knowledge-eyebrow{font-size:10px;font-weight:700;letter-spacing:1.3px;color:#8499a5;margin:0 0 6px}
.knowledge-status-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.knowledge-status-item{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:16px 18px;border:1px solid #e8eef0;background:#fcfdfd;border-radius:10px;min-width:0}
.knowledge-field-label{font-size:12px;color:#738996;font-weight:600}
.knowledge-state{display:inline-block;max-width:100%;overflow-wrap:anywhere;font-size:11px;letter-spacing:.25px;font-weight:800;padding:7px 11px;border:1px solid #dae4e7;border-radius:7px;color:#536874;background:white}
.knowledge-state-success{color:#216c55;background:#eaf4ef;border-color:#d0e8dc}
.knowledge-state-danger{color:#a74047;background:#fff2f2;border-color:#efccd0}
.knowledge-state-inactive{color:#666f7e;background:#f1f3f5;border-color:#dce1e6}
.knowledge-metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin-top:22px;padding:4px 0;border-top:1px solid #eef1f3;border-bottom:1px solid #eef1f3}
.knowledge-metric{display:flex;flex-direction:column;gap:6px;padding:14px 18px;min-width:0}
.knowledge-metric + .knowledge-metric{border-left:1px solid #eef1f3}
.knowledge-metric strong{font-size:21px;font-weight:750;color:#183440;overflow-wrap:anywhere}
.knowledge-metric strong small{font-size:14px;color:#8698a3;font-weight:600}
.knowledge-metric .knowledge-source-kind{font-size:14px;line-height:1.55}
.knowledge-file-info{padding:14px 18px 0;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;font-size:12px;overflow-wrap:anywhere}
.knowledge-file-info strong{font-weight:650;color:#294550}
.knowledge-muted-inline{color:#738996}
.knowledge-manage-panel{padding:24px 30px}
.knowledge-manage-header{display:flex;justify-content:space-between;align-items:center;gap:24px}
.knowledge-manage-header .muted{margin-top:7px}
.knowledge-manage-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.knowledge-manage-actions form{margin:0}
.knowledge-manage-actions button{margin:0;white-space:nowrap}
.knowledge-info-note{font-size:12px;line-height:1.65;color:#59737e;background:#f3f8f9;border:1px solid #e5eff1;border-radius:9px;padding:12px 15px;margin-top:18px}
.knowledge-info-note strong{color:#375766}
.knowledge-preview-panel{padding:26px 30px}
.knowledge-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.knowledge-preview-heading h2{margin:0}
.knowledge-chunk-heading{font-size:12px;font-weight:700;color:#708996;margin-bottom:14px}
.knowledge-qa-item + .knowledge-qa-item{margin-top:17px}
.knowledge-qa-label{margin:0 0 6px!important;font-size:10px!important;letter-spacing:.7px;font-weight:800;color:#698594!important}
.knowledge-qa-text{font-size:13px;line-height:1.75;color:#284550;margin:0!important;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:850px){.knowledge-manage-header{align-items:flex-start;flex-direction:column}.knowledge-manage-actions{justify-content:flex-start}.knowledge-status-grid{gap:8px}.knowledge-detail-overview,.knowledge-manage-panel,.knowledge-preview-panel{padding:22px}}
@media(max-width:600px){.knowledge-status-grid{grid-template-columns:1fr}.knowledge-status-item{flex-direction:row;align-items:center;justify-content:space-between}.knowledge-metric-grid{grid-template-columns:1fr}.knowledge-metric + .knowledge-metric{border-left:0;border-top:1px solid #eef1f3}.knowledge-detail-header{gap:12px}.knowledge-manage-actions,.knowledge-manage-actions form,.knowledge-manage-actions button{width:100%}}

/* FAQ video review: layouts scoped to video editor only. */
.video-faq-editor{display:grid;gap:9px;max-width:800px;margin:12px 0 6px}
.video-faq-editor label{font-size:12px;font-weight:700;color:#476574}
.video-faq-editor textarea{width:100%;border:1px solid #d4e0e5;border-radius:9px;padding:11px;font:inherit;font-size:13px;line-height:1.5;resize:vertical}
.video-faq-editor button{justify-self:start}
.video-faq-remove{margin-top:7px}
.video-faq-editor button,.video-faq-remove button{margin:0;padding:10px 14px}
.video-faq-timestamp{font-size:12px;font-weight:700;color:#257486;background:#f2f8f9;width:max-content;padding:6px 10px;border-radius:7px}
.video-privacy{display:flex!important;align-items:flex-start;gap:10px}.video-privacy input{width:17px!important;flex-shrink:0;margin:2px 0 0!important}

/* Promotion CMS: scoped controls */
.promo-method{display:flex;flex-wrap:wrap;gap:20px;border:1px solid #e3eaee;border-radius:10px;padding:18px}
.promo-method legend{font-weight:700;font-size:13px}
.promo-method label,.promo-checkbox{display:flex!important;align-items:center;gap:10px;font-weight:500!important}
.promo-method input,.promo-checkbox input{width:auto!important}
.promo-image-field{display:none}
.knowledge-form:has(.promo-method input[value="IMAGES"]:checked) .promo-image-field{display:block}
.knowledge-form:has(.promo-method input[value="IMAGES"]:checked) .promo-url-field{display:none}
.knowledge-form:has(.promo-method input[value="IMAGES"]:checked) .promo-checkbox:has(input[name="auto_sync"]){display:none!important}

/* DBO FAQ CMS — submit feedback scoped only to the three opted-in forms. */
.knowledge-form[data-cms-submit] .primary:disabled {
  cursor: wait;
  opacity: .78;
}
.knowledge-form .cms-submit-status {
  margin-top: 5px;
  padding: 16px 18px;
  border: 1px solid #dbeaec;
  border-radius: 10px;
  background: #f3f8f9;
  color: #245c63;
}
.cms-submit-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.cms-submit-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #b7d6da;
  border-top-color: #1f6d75;
  border-radius: 50%;
  flex: 0 0 16px;
  animation: cms-submit-spin .7s linear infinite;
}
.cms-submit-status p {
  margin: 9px 0 14px;
  color: #59737e;
  font-size: 12px;
  line-height: 1.6;
}
.cms-submit-track {
  height: 6px;
  background: #d9e8ea;
  border-radius: 99px;
  overflow: hidden;
}
.cms-submit-bar {
  width: 38%;
  height: 100%;
  background: #1f6d75;
  border-radius: 99px;
  animation: cms-submit-move 1.5s ease-in-out infinite;
}
@keyframes cms-submit-spin { to { transform: rotate(360deg); } }
@keyframes cms-submit-move {
  from { transform: translateX(-110%); }
  to { transform: translateX(290%); }
}
@media (prefers-reduced-motion: reduce) {
  .cms-submit-spinner, .cms-submit-bar { animation: none; }
  .cms-submit-bar { width: 100%; opacity: .7; }
}
