* { box-sizing: border-box; }
body { margin: 0; padding: clamp(0px,2vw,22px); background: #edf5ff; color: #142b49; }
[hidden], #max-knowledge [hidden] { display: none !important; }
#max-knowledge { max-width: 1500px; margin-inline: auto; min-height: 560px; }
#max-knowledge .top { grid-template-columns: 185px minmax(0,1fr) auto; padding-right: 16px; }
#max-knowledge .search { max-width: 520px; }
#max-knowledge button, #max-knowledge select, #max-knowledge summary { cursor: pointer; }
#max-knowledge button:focus-visible, #max-knowledge select:focus-visible, #max-knowledge input:focus-visible, #max-knowledge textarea:focus-visible, #max-knowledge summary:focus-visible { outline: 2px solid #175ab9; outline-offset: 2px; }
#max-knowledge #account-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; color: #325376; }
#max-knowledge #account-name { font-size: 12px; overflow-wrap: anywhere; }
#max-knowledge .plain, #max-knowledge .page-nav button { border: 0; border-radius: 7px; background: transparent; color: #285582; padding: 7px 9px; font: inherit; font-size: 13px; }
#max-knowledge .page-nav { display: flex; flex-wrap: wrap; gap: 5px; background: #fff; padding: 7px 14px; border-bottom: 1px solid #dceaf8; }
#max-knowledge .page-nav [aria-current="page"], #max-knowledge .plain:hover { color: #174e96; font-weight: 680; background: #e7f1ff; }
#max-knowledge .module { width: 100%; border: 0; background: transparent; text-align: left; font-family: inherit; }
#max-knowledge .field.module-picker { display: none; }
#max-knowledge .modules, #max-knowledge .scenes, #max-knowledge .detail { min-height: 490px; }
#max-knowledge .scenes .scene { overflow-wrap: anywhere; }
#max-knowledge .detail h1, #max-knowledge .detail p { overflow-wrap: anywhere; }
#max-knowledge .auth { width: min(420px, calc(100% - 32px)); margin: 40px auto; }
#max-knowledge .auth form, #max-knowledge .surface { background: #fff; border: 1px solid #dceaf8; border-radius: 13px; padding: clamp(14px,2.5vw,25px); }
#max-knowledge .surface { margin: 12px; }
#max-knowledge .surface h1, #max-knowledge .auth h1 { font-size: 28px; line-height: 1.24; margin-bottom: 12px; }
#max-knowledge .surface h2 { font-size: 17px; margin-block: 0 8px; }
#max-knowledge .form { display: grid; gap: 9px; }
#max-knowledge .field { display: grid; gap: 4px; min-width: 0; font-size: 13px; font-weight: 650; }
#max-knowledge .form input, #max-knowledge .form textarea, #max-knowledge select { display: block; width: 100%; color: #142b49; font: inherit; font-size: 14px; font-weight: 400; border: 1px solid #c7dbf1; border-radius: 7px; background: #fff; padding: 8px 10px; }
#max-knowledge .form textarea { resize: vertical; min-height: 55px; }
#max-knowledge .primary { justify-self: start; color: #fff; background: #1a60c8; border: 0; font: inherit; font-weight: 680; padding: 8px 14px; border-radius: 7px; }
#max-knowledge .primary:disabled { opacity: .6; }
#max-knowledge .feedback { color: #8d310f; white-space: pre-wrap; overflow-wrap: anywhere; }
#max-knowledge .feedback:empty { display: none; }
#max-knowledge .feedback.ok { color: #12644e; }
#max-knowledge .cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); gap: 10px; }
#max-knowledge .card-local { padding: 13px; background: #f2f7ff; border-radius: 9px; border: 1px solid #e1ebfa; min-width: 0; overflow-wrap: anywhere; }
#max-knowledge .card-local p + p { margin-top: 7px; }
#max-knowledge .card-local .status { margin-bottom: 6px; }
#max-knowledge .card-local details { margin-top: 7px; }
#max-knowledge .admin-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
#max-knowledge .admin-section { margin-top: 19px; padding-top: 13px; border-top: 1px solid #dceaf8; }
#max-knowledge .user-list { width: 100%; border-collapse: collapse; text-align: left; }
#max-knowledge .user-list th, #max-knowledge .user-list td { padding: 6px 4px; border-bottom: 1px solid #dceaf8; overflow-wrap: anywhere; }
#max-knowledge .detail .full-notes { display: grid; gap: 7px; margin-top: 8px; }
#max-knowledge .scene-guide { margin-top: 15px; }
#max-knowledge .guide-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px; margin: 0 2px 8px; }
#max-knowledge .guide-heading h2 { margin: 0; font-size: 18px; }
#max-knowledge .guide-label { color: #315b85; font-size: 12px; }
#max-knowledge .guide-steps { grid-template-columns: repeat(6,minmax(0,1fr)); }
#max-knowledge .guide-steps button { min-height: 70px; }
#max-knowledge .guide-panel { margin-top: 9px; padding: 13px; display: grid; gap: 9px; background: #f6faff; border: 1px solid #e1edfa; border-radius: 10px; }
#max-knowledge .guide-panel h3 { margin: 0; font-size: 18px; }
#max-knowledge .guide-path, #max-knowledge .guide-check { display: flex; align-items: flex-start; gap: 7px; padding: 7px 9px; border-radius: 7px; }
#max-knowledge .guide-path { background: #e8f1ff; color: #204e7d; font-weight: 650; width: fit-content; }
#max-knowledge .guide-check { background: #e5f7f0; color: #194b43; }
#max-knowledge .guide-path svg, #max-knowledge .guide-check svg { margin-top: 3px; }
#max-knowledge .guide-check strong { display: block; }
#max-knowledge .guide-diagram { display: flex; flex-wrap: wrap; gap: 7px; }
#max-knowledge .guide-diagram li { align-items: center; margin: 0; padding: 6px 8px; background: #eaf4ff; color: #204e7d; border-radius: 6px; }
#max-knowledge .guide-diagram li::before { display: none; }
#max-knowledge .guide-figure { margin: 0; }
#max-knowledge .guide-figure a { display: block; }
#max-knowledge .guide-figure img { display: block; width: min(100%, 850px); height: auto; border: 1px solid #ccddf2; border-radius: 7px; }
#max-knowledge .guide-figure figcaption, #max-knowledge .guide-sources { font-size: 12px; color: #476581; }
#max-knowledge .guide-sources { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 6px; }
#max-knowledge .guide-sources a { color: #19599c; }
#max-knowledge .scene-step-supplement:empty { display: none; }
#max-knowledge .scene-step-supplement { margin-top: 8px; }
#max-knowledge .material-checklist { border: 1px solid #dce9f9; border-radius: 9px; background: #f4f9ff; padding: 10px; }
#max-knowledge .material-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; margin-bottom: 8px; }
#max-knowledge .material-heading h3 { margin: 0; font-size: 16px; }
#max-knowledge .material-heading button { background: #e6f1ff; }
#max-knowledge .material-parts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
#max-knowledge .material-part { background: #fff; border-radius: 7px; padding: 8px 10px; }
#max-knowledge .material-part h4 { margin: 0 0 5px; font-size: 14px; }
#max-knowledge .material-part dl { margin: 0; }
#max-knowledge .material-part dl > div { padding: 5px 0; border-top: 1px solid #e8f0fa; }
#max-knowledge .material-part dt { font-weight: 700; }
#max-knowledge .material-part dd { margin: 0; color: #365775; font-size: 13px; }
#max-knowledge .material-part a { color: #19599c; display: inline-block; padding-block: 4px; }
@media(max-width: 650px) { #max-knowledge .material-parts { grid-template-columns: minmax(0,1fr); } }
@media(max-width: 980px) { #max-knowledge .guide-steps { grid-template-columns: repeat(3,minmax(0,1fr)); } }
#max-knowledge .dialogue-stages { grid-template-columns: repeat(5,minmax(0,1fr)); }
#max-knowledge .dialogue-panel { gap: 12px; }
#max-knowledge .dialogue-substeps, #max-knowledge .dialogue-choices, #max-knowledge .dialogue-navigation { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
#max-knowledge .dialogue-substeps button, #max-knowledge .dialogue-choices button, #max-knowledge .dialogue-target { text-align: left; padding: 6px 9px; border: 1px solid #cbdff5; border-radius: 7px; background: #fff; text-decoration: none; }
#max-knowledge .dialogue-substeps button[aria-pressed="true"], #max-knowledge .dialogue-choices button[aria-pressed="true"] { background: #e0eeff; border-color: #9abfeb; font-weight: 700; }
#max-knowledge .dialogue-chat, #max-knowledge .dialogue-result { display: grid; gap: 8px; }
#max-knowledge .dialogue-result:empty { display: none; }
#max-knowledge .dialogue-line { display: grid; gap: 4px; justify-items: start; }
#max-knowledge .dialogue-line.is-staff { justify-items: end; }
#max-knowledge .dialogue-caption { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12px; color: #315b85; }
#max-knowledge .dialogue-caption button { padding: 2px 5px; font-size: 12px; text-decoration: underline; }
#max-knowledge .dialogue-bubble { background: #fff; border: 1px solid #d6e4f4; border-radius: 11px 11px 11px 3px; padding: 9px 12px; width: fit-content; max-width: min(96%,650px); line-height: 1.65; }
#max-knowledge .is-staff .dialogue-bubble { background: #def3e9; border-color: #c9e7d9; border-radius: 11px 11px 3px 11px; }
#max-knowledge .dialogue-question { color: #274f79; font-weight: 700; }
#max-knowledge .dialogue-choices button, #max-knowledge .dialogue-navigation button, #max-knowledge .dialogue-target { min-height: 36px; }
#max-knowledge .dialogue-action { background: #e7f0fc; color: #1c4772; }
#max-knowledge .dialogue-target { color: #175aa8; font-size: 13px; }
#max-knowledge .license-requirement { margin: 0 0 9px; background: #fff3dc; color: #714b19; border-radius: 7px; padding: 7px 9px; font-size: 13px; }
#max-knowledge .license-diagram { border: 1px solid #cfe0f4; border-radius: 8px; padding: 9px 10px; background: #fff; }
#max-knowledge .license-diagram h4 { margin: 0 0 6px; font-size: 14px; }
#max-knowledge .license-diagram dl { display: grid; gap: 4px; margin: 0; }
#max-knowledge .license-diagram dl > div { display: grid; grid-template-columns: minmax(86px, 108px) minmax(0,1fr); gap: 8px; padding: 4px 6px; border-radius: 5px; }
#max-knowledge .license-diagram .is-scope { background: #fff0cc; }
#max-knowledge .license-diagram dt { font-weight: 680; }
#max-knowledge .license-diagram dd { margin: 0; }
#max-knowledge .seller-lookup li { margin-bottom: 4px; }
#max-knowledge .seller-lookup pre { padding: 6px 8px; background: #f0f6ff; border-radius: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
#max-knowledge .seller-lookup a { display: inline-block; margin-top: 5px; }
#max-knowledge .plan-comparison { min-width: 0; padding: 9px 11px; background: #fff8e8; border: 1px solid #eddcb6; border-radius: 8px; }
#max-knowledge .plan-comparison summary { color: #714b19; font-weight: 700; }
#max-knowledge .plan-comparison p { font-size: 13px; margin: 7px 0; color: #59492f; }
#max-knowledge .plan-comparison table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; text-align: left; }
#max-knowledge .plan-comparison th, #max-knowledge .plan-comparison td { padding: 6px 7px; border-bottom: 1px solid #eedfbc; vertical-align: top; overflow-wrap: anywhere; }
#max-knowledge .plan-comparison thead th:first-child { width: 20%; }
#max-knowledge .plan-comparison thead th:nth-child(2) { background: #fff0cb; }
#max-knowledge .plan-comparison thead th:nth-child(3) { background: #dfeeff; }
#max-knowledge .plan-mobile-key { display: none; }
@media(max-width: 650px) {
  #max-knowledge .plan-comparison thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  #max-knowledge .plan-comparison table, #max-knowledge .plan-comparison tbody, #max-knowledge .plan-comparison tr, #max-knowledge .plan-comparison td, #max-knowledge .plan-comparison tbody th { display: block; }
  #max-knowledge .plan-comparison tbody th { background: #fff0cb; }
  #max-knowledge .plan-comparison td { border-bottom: 0; }
  #max-knowledge .plan-mobile-key { display: block; font-weight: 650; color: #315b85; }
}
@media(max-width: 980px) { #max-knowledge .dialogue-stages { grid-template-columns: repeat(3,minmax(0,1fr)); } }
#max-knowledge .catalog-product-link { display: inline-block; margin-top: 7px; color: #1b5da5; font-size: 13px; font-weight: 680; }
#max-knowledge .product-detail > .catalog-product-link { margin: 0 0 10px; }
#max-knowledge .product-hero { display: grid; gap: 14px; align-items: center; border-radius: 12px; padding: clamp(12px,2vw,22px); background: linear-gradient(125deg,#e4efff,#e6f9f2); }
#max-knowledge .product-hero.has-cover { grid-template-columns: minmax(0,1fr) minmax(130px,215px); }
#max-knowledge .product-hero h1 { margin-bottom: 8px; }
#max-knowledge .product-hero-art { width: 100%; border-radius: 9px; display: block; }
#max-knowledge .product-specs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
#max-knowledge .product-specs > div { padding: 5px 11px; border-radius: 7px; background: #fff; min-width: 75px; }
#max-knowledge .product-specs dt { color: #426385; font-size: 12px; }
#max-knowledge .product-specs dd { margin: 0; font-weight: 700; }
#max-knowledge .product-links { display: flex; flex-wrap: wrap; gap: 8px; }
#max-knowledge .product-links a { display: grid; gap: 2px; padding: 6px 9px; border: 1px solid #c7dcf5; border-radius: 7px; background: #f7fbff; color: #174c83; overflow-wrap: anywhere; }
#max-knowledge .product-links a span { font-size: 12px; }
#max-knowledge .product-resources { margin-top: 17px; }
#max-knowledge .product-resources h3 { margin: 11px 0 7px; font-size: 15px; }
#max-knowledge .product-media-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,145px),1fr)); gap: 10px; }
#max-knowledge .product-media-grid.long-image-grid { grid-template-columns: repeat(auto-fill,minmax(min(100%,225px),1fr)); max-width: 620px; }
#max-knowledge .product-media-card { background: #f3f8ff; border: 1px solid #dfebfa; border-radius: 9px; min-width: 0; padding: 8px; }
#max-knowledge .product-preview { display: block; }
#max-knowledge .product-preview img { width: 100%; aspect-ratio: 1; display: block; object-fit: contain; border-radius: 6px; background: #e9f1fc; }
#max-knowledge .long-image .product-preview img { aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
#max-knowledge .product-media-card h3 { margin: 6px 0 2px; }
#max-knowledge .product-media-controls { display: flex; flex-wrap: wrap; gap: 3px 9px; margin-top: 4px; }
#max-knowledge .product-media-controls a { display: inline-flex; align-items: center; min-height: 32px; color: #175792; font-size: 13px; }
@media(max-width: 600px) { #max-knowledge .product-hero.has-cover { grid-template-columns: minmax(0,1fr); } #max-knowledge .product-hero-art { width: min(45%,165px); } }
#max-knowledge .related, #max-knowledge .special-group { display: grid; gap: 8px; margin-top: 14px; }
#max-knowledge .related .plain { padding: 3px 6px; text-align: left; }
#max-knowledge .related ul { margin: 0; padding-inline-start: 20px; }
#max-knowledge .channel-branches, #max-knowledge .workflow-links {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #d6e6f9;
  border-radius: 9px;
  background: #f4f8ff;
}
#max-knowledge .channel-branches h2, #max-knowledge .workflow-links h2 { margin: 0 0 7px; }
#max-knowledge .channel-controls { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; }
#max-knowledge .channel-controls button {
  min-height: 39px;
  padding: 5px 12px;
  border: 1px solid #c7dcf5;
  border-radius: 7px;
  background: #fff;
  color: #174e96;
  font: inherit;
  font-weight: 680;
}
#max-knowledge .channel-controls [aria-pressed="true"] { background: #dcecff; border-color: #6b9ee9; }
#max-knowledge .channel-copy p, #max-knowledge .workflow-links p { margin: 4px 0 0; line-height: 1.55; }
#max-knowledge .workflow-links a { color: #1555a3; font-weight: 680; text-underline-offset: 3px; }
#max-knowledge .workflow-links > div + div { margin-top: 8px; }
#max-knowledge .quiz-focus { outline: 2px solid #74aaf8; }
#max-knowledge .handbook-group { margin: 16px 0 0; }
#max-knowledge .handbook-route { grid-template-columns: repeat(auto-fit,minmax(95px,1fr)); margin-bottom: 10px; }
#max-knowledge .handbook-note { display: grid; align-content: start; justify-items: start; gap: 5px; }
#max-knowledge .handbook-note h3 { margin: 0; font-size: 15px; font-weight: 720; }
#max-knowledge .handbook-note .status { margin: 0; }
#max-knowledge .handbook-source { font-size: 12px; color: #476581; }
#max-knowledge .handbook-links { display: flex; flex-wrap: wrap; gap: 4px; }
#max-knowledge .handbook-links button { padding: 4px 6px; background: #e8f2ff; text-align: left; }
#max-knowledge .handbook-foldout { margin-bottom: 9px; }
#max-knowledge .handbook-foldout .handbook-note { margin-top: 7px; }
@media (max-width: 730px) {
  #max-knowledge .top { grid-template-columns: minmax(0,1fr) auto; gap: 7px; padding: 10px; }
  #max-knowledge .brand { padding-left: 0; }
  #max-knowledge .search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  #max-knowledge .modules, #max-knowledge .scenes, #max-knowledge .detail { min-height: 0; }
}
@media (max-width: 655px) {
  #max-knowledge .field.module-picker { display: block; margin: 0 5px 8px; }
  #max-knowledge .admin-grid { grid-template-columns: minmax(0,1fr); }
  #max-knowledge .notes { grid-template-columns: minmax(0,1fr); }
}
