/* Source: confirmed AIPH_00077 Demo r3. Scoped presentation layer. */
.kb-page{--ink:#202321;--muted:#686e69;--line:#daddd7;--paper:#fff;--wash:#f3f4ef;--dark:#282e29}
.kb-page *{box-sizing:border-box}
.kb-page{margin:0;background:#eeefe9;color:var(--ink);font:15px/1.6 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}
.kb-page button,.kb-page input,.kb-page select,.kb-page textarea{font:inherit;color:inherit}
.kb-page button,.kb-page a,.kb-page input,.kb-page select,.kb-page textarea{-webkit-tap-highlight-color:transparent}
.kb-page button{cursor:pointer;border:1px solid var(--line);background:#fff;border-radius:10px;min-height:44px;padding:9px 14px;font-weight:600}
.kb-page button:hover{background:#eef0eb}
.kb-page button:focus-visible,.kb-page a:focus-visible,.kb-page input:focus-visible,.kb-page select:focus-visible,.kb-page textarea:focus-visible{outline:3px solid #757e71;outline-offset:3px}
.kb-page button:disabled{cursor:default;opacity:.48}
.kb-page a{color:inherit}
.kb-page h1,.kb-page h2,.kb-page h3,.kb-page p{margin:0}
.kb-page h1{font-size:34px;letter-spacing:-1px;line-height:1.25}
.kb-page h2{font-size:20px;line-height:1.35}
.kb-page h3{font-size:15px}
.kb-page .bar{display:flex;align-items:center;gap:10px;padding:6px 16px 12px;border-bottom:1px solid #edf0e9;flex-shrink:0}
.kb-page .bar h3{flex:1;font-size:17px}
.kb-page .back{border:0;border-radius:50%;width:36px;min-height:36px;padding:2px;font-size:23px;background:transparent}
.kb-page .body{padding:19px 18px;overflow:auto;flex:1;min-height:0;scrollbar-width:thin;scrollbar-color:#d4d9cf transparent}
.kb-page .body>*+*{margin-top:16px}
.kb-page .sub{color:var(--muted);font-size:12px}
.kb-page .pill{display:inline-block;border:1px solid #d7dcd2;border-radius:5px;padding:1px 6px;font-size:10px;white-space:nowrap;color:#4d5848;background:#f4f6f1}
.kb-page .notice{padding:12px 13px;background:#f3f5ef;border:1px solid #e2e7da;border-radius:10px;font-size:12px;color:#53604b;line-height:1.6}
.kb-page .notice strong{display:block;color:#34402d;margin-bottom:3px}
.kb-page .primary{background:var(--dark);color:#fff;border-color:var(--dark)}
.kb-page .primary:hover{background:#414b3d}
.kb-page .full{width:100%}
.kb-page .actions{display:flex;gap:8px}
.kb-page .actions>*{flex:1}
.kb-page .foot{padding:13px 18px 17px;border-top:1px solid #e5e9e0;background:white;flex-shrink:0}
.kb-page input[type=search],.kb-page input[type=text],.kb-page select,.kb-page textarea{max-width:100%;width:100%;border:1px solid var(--line);border-radius:9px;background:#fbfcf9;padding:11px 12px;min-height:44px}
.kb-page textarea{resize:vertical;min-height:82px}
.kb-page .filters{display:flex;gap:7px}
.kb-page .filters select{font-size:12px;padding:8px;min-width:0}
.kb-page .tiny{font-size:11px;color:var(--muted)}
.kb-page .file-row{display:flex;align-items:center;gap:10px;padding:13px 0;border-bottom:1px solid #e6eae1}
.kb-page .file-row:last-child{border:0}
.kb-page .file-icon{flex-shrink:0;display:grid;place-items:center;width:37px;height:45px;border:1px solid #d4dacd;border-radius:5px;background:#f5f7f1;font-size:10px;font-weight:700}
.kb-page .file-copy{flex:1;min-width:0}
.kb-page .file-copy strong{font-size:13px;display:block;overflow-wrap:anywhere;font-weight:600}
.kb-page .file-copy small{font-size:10px;color:var(--muted);display:block;line-height:1.7}
.kb-page .file-row button{border:0;padding:4px;min-height:38px;font-size:19px;font-weight:400}
.kb-page .large-icon{display:grid;place-items:center;margin:10px auto 13px;width:66px;height:78px;border:1px solid #cdd5c5;background:#f5f7f1;border-radius:8px;font-size:15px;font-weight:700}
.kb-page .center{text-align:center}
.kb-page .meta{display:grid;grid-template-columns:66px 1fr;font-size:12px;gap:11px 8px}
.kb-page .meta dt{color:var(--muted)}
.kb-page .meta dd{margin:0;overflow-wrap:anywhere}
.kb-page .label{font-size:12px;display:block;margin-bottom:6px}
.kb-page .space{height:13px}
.kb-page .query{background:#ecefe6;border-radius:13px 13px 3px 13px;padding:12px 14px;font-size:13px;margin:15px 0 12px 25px}
.kb-page .import-heading{margin-top:10px}
.kb-page .file-name{overflow-wrap:anywhere}
.kb-page .preserve-lines{white-space:pre-wrap}
.kb-page .source-location{display:block;margin-top:4px;font-size:11px;color:var(--muted)}
.kb-page .ask-action{margin-top:9px}
.kb-page .answer{border:1px solid var(--line);border-radius:13px 13px 13px 3px;padding:15px;font-size:13px}
.kb-page .answer p{margin-top:8px}
.kb-page .citation{display:block;width:100%;text-align:left;font-size:12px;font-weight:400;margin-top:12px;background:#f5f7f0}
.kb-page .empty{padding:36px 10px;text-align:center}
.kb-page .empty .mark{font-size:32px;color:#9da695;margin-bottom:14px}
.kb-page .empty h3{font-size:16px}
.kb-page .empty p{font-size:12px;color:var(--muted);margin:8px 0 19px}
.kb-page .check{display:flex;gap:10px;align-items:flex-start;padding:11px;border:1px solid var(--line);border-radius:10px;margin-top:9px;font-size:12px}
.kb-page .check input{margin-top:5px;accent-color:#4c5942}
.kb-page .issue{border:1px dashed #bac4b1;border-radius:10px;padding:13px;font-size:12px}
.kb-page .issue strong{display:block;margin-bottom:4px}
.kb-page .result{display:none;padding:11px;border:1px solid #c5d0bc;background:#f2f6eb;border-radius:9px;font-size:12px;margin-top:12px}
.kb-page .result.show{display:block}
.kb-page .dialog-backdrop{background:#252c2033;flex:1;display:flex;align-items:center;padding:22px}
.kb-page .dialog-card{background:white;border:1px solid #bec8b4;border-radius:17px;padding:22px;width:100%}
.kb-page .dialog-card p{font-size:13px;color:var(--muted);margin:12px 0 20px}
.kb-page .dialog-card .actions{flex-direction:column}
.kb-page .account-name{font-weight:600}
.kb-page .analysis-head{text-align:center;padding:8px 0 2px}
.kb-page .analysis-head h2{font-size:28px;margin:10px 0 2px}
.kb-page .analysis-head progress{display:block;width:100%;height:7px;margin-top:13px;border:0;border-radius:20px;overflow:hidden;background:#e5e9df;accent-color:#4d5b44}
.kb-page .analysis-head progress::-webkit-progress-bar{background:#e5e9df;border-radius:20px}
.kb-page .analysis-head progress::-webkit-progress-value{background:#4d5b44;border-radius:20px}
.kb-page .analysis-head progress::-moz-progress-bar{background:#4d5b44;border-radius:20px}
.kb-page .analysis-steps{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.kb-page .analysis-steps li{display:grid;grid-template-columns:24px 1fr;gap:10px;align-items:start;padding:12px 13px;border-bottom:1px solid #e7eae3}
.kb-page .analysis-steps li:last-child{border-bottom:0}
.kb-page .analysis-steps li>span{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;border:1px solid #c9d0c2;color:#7b8476;font-size:11px;font-weight:700}
.kb-page .analysis-steps strong{display:block;font-size:12px}
.kb-page .analysis-steps small{display:block;color:var(--muted);font-size:10px;line-height:1.5;margin-top:2px}
.kb-page .analysis-steps .active>span{border-color:#5a684f;background:#eef3e8;color:#34402d}
.kb-page .analysis-steps .active strong{color:#34402d}
.kb-page .analysis-steps .done>span{border-color:#4f5e45;background:#4f5e45;color:#fff}
.kb-page .analysis-file{display:flex;align-items:center;gap:9px;padding:11px 12px;border:1px solid #e1e5dc;border-radius:9px;background:#fafbf8}
.kb-page .analysis-file+.analysis-file{margin-top:8px}
.kb-page .analysis-file .file-copy small{line-height:1.45}
.kb-page .analysis-state{flex:0 0 24px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;border:1px solid #c9d0c2;color:#6d7568;font-size:12px;font-weight:700}
.kb-page .analysis-file.ready .analysis-state{border-color:#4f5e45;background:#4f5e45;color:#fff}
.kb-page .analysis-file.save-failed .analysis-state,.kb-page .analysis-file.parse-failed .analysis-state,.kb-page .analysis-file.unknown .analysis-state{border-color:#9b704d;color:#7a4d2c;background:#fbf2e9}
.kb-page {width:min(100%,480px);height:100vh;height:100dvh;min-height:0;margin:0 auto;background:#fff;display:flex;flex-direction:column;overflow:hidden;outline:none}
.kb-page .bar {padding-top:6px}
.kb-page .foot>.primary,.kb-page .foot>button,.kb-page .foot>div>.primary:only-child {width:100%}
.kb-page .back {position:relative}.kb-page .back::after {content:"";position:absolute;inset:-4px}
.kb-page .file-row>button {min-width:44px;min-height:44px}
.kb-page .body>dl {margin-bottom:0}.kb-page .meta {padding:0}
.kb-page .filters>* {flex:1;min-width:0}
.kb-page .select-control {font:12px/1.6 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}
.kb-page .select-trigger {min-height:44px;padding:8px;font-size:12px;border:1px solid var(--line);background:#fbfcf9;border-radius:9px;gap:3px}
.kb-page .select-trigger-label {font-size:12px}
.kb-login-notice {width:min(calc(100% - 36px),420px);margin:20px auto;padding:16px;background:#f3f5ef;border:1px solid #e2e7da;border-radius:10px;font-size:13px}
.kb-dialog {font:15px/1.6 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:#202321;border:1px solid #bec8b4;border-radius:17px;padding:22px;background:#fff;width:calc(100% - 44px);max-width:350px}
.kb-dialog h2 {font-size:20px;margin:0}.kb-dialog p {font-size:13px;color:#686e69;margin:12px 0 20px}.kb-dialog .dialog-actions {display:flex;flex-direction:column-reverse;gap:8px}
.kb-dialog button {border:1px solid #daddd7;background:#fff;border-radius:10px;min-height:44px;padding:9px 14px;font-weight:600;color:#202321}
.kb-dialog button[data-dismiss=confirm] {background:#282e29;color:#fff;border-color:#282e29}
.kb-dialog input {width:100%;border:1px solid #daddd7;border-radius:9px;background:#fbfcf9;padding:11px 12px;min-height:44px;font:inherit}.kb-dialog label {font-size:12px;display:block;margin:12px 0 6px}

.modal-layer.kb-modal {background:#252c2033}.kb-dialog>.pill {display:inline-block;border:1px solid #d7dcd2;border-radius:5px;padding:1px 6px;font-size:10px;color:#4d5848;background:#f4f6f1;margin-bottom:12px}
.modal-layer .kb-dialog {background:#fff;color:#202321;border:1px solid #bec8b4;border-radius:17px;padding:22px;box-shadow:none;gap:0}
.modal-layer .kb-dialog>.pill {align-self:flex-start;width:auto;flex:none;font-size:10px;line-height:1.6;min-height:0}
.modal-layer .kb-dialog .dialog-body {padding:0;margin:0}.modal-layer .kb-dialog .dialog-body p {white-space:pre-line;margin:12px 0 20px}
.modal-layer .kb-dialog .dialog-actions {display:flex;flex-direction:column-reverse;align-items:stretch;gap:8px;padding:0;margin:0;width:100%}
.modal-layer .kb-dialog .dialog-actions button {width:100%;min-width:0;flex:none;margin:0;border-radius:10px;font-size:15px;line-height:1.6;padding:9px 14px}
.kb-page .center>[data-kb=preview]{width:100%;margin-top:16px}
.kb-page.preview-page .bar h3{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.kb-page .preview-name{min-width:0;flex:1}
.kb-page .preview-name h3{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kb-page .preview-name small{display:block;color:var(--muted);font-size:10px;line-height:1.4;margin-top:2px}
.kb-page .preview-stage{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;background:#edf0e9;padding:16px 12px;position:relative}
.kb-page .preview-stage:focus-visible{outline:2px solid #757e71;outline-offset:-3px}
.kb-page .preview-canvas{width:100%;min-height:100%;margin:auto;transform-origin:top left}
.kb-page .preview-scale-125{width:125%}.kb-page .preview-scale-150{width:150%}.kb-page .preview-scale-175{width:175%}.kb-page .preview-scale-200{width:200%}
.kb-page .preview-sheet{background:white;min-height:100%;border:1px solid #d8ddd2;padding:24px 20px;box-shadow:0 3px 8px #242d1b06;color:#30382a;font-size:12px;line-height:1.85}
.kb-page .preview-sheet h2{font-size:21px;line-height:1.45;margin:0 0 10px}.kb-page .preview-sheet h3{font-size:15px;margin:24px 0 8px}.kb-page .preview-sheet p{margin:8px 0 14px}
.kb-page .preview-inline-image{display:block;max-width:100%;height:auto;margin:14px auto;background:#f4f5f1}
.kb-page .preview-table-scroll{max-width:100%;overflow:auto;margin:14px 0}
.kb-page .preview-table{border-collapse:collapse;width:100%;font-size:11px;background:white;white-space:nowrap}
.kb-page .preview-table th,.kb-page .preview-table td{border:1px solid #d9ded2;padding:9px 10px;text-align:left;vertical-align:top;min-width:72px}
.kb-page .preview-table th{font-weight:600;background:#edf2e6}.kb-page .preview-table .row-index{background:#f5f7f0;color:#7d8577;padding:8px;text-align:center;min-width:34px}
.kb-page .preview-table td small{display:block;color:#899083;font-size:8px;line-height:1.2;margin-bottom:3px}
.kb-page .preview-workbook{min-width:540px}.kb-page .preview-workbook .sheet-heading{padding:15px 16px;background:white;border:1px solid #d9ded2;border-bottom:0;font-size:13px;font-weight:600;position:sticky;left:0}
.kb-page .preview-workbook>[data-kb=preview-more]{display:block;position:sticky;left:0;margin:14px auto}
.kb-page .preview-tabs{display:flex;gap:5px;overflow:auto;flex-shrink:0;padding:8px 12px;background:#fff;border-top:1px solid #dfe5d6}
.kb-page .preview-tabs button{white-space:nowrap;font-size:11px;font-weight:400;border-color:transparent;border-radius:7px;padding:5px 10px;min-height:40px}
.kb-page .preview-tabs button[aria-selected=true]{color:#34402d;background:#edf2e6;border-color:#d9e2cf;font-weight:600}
.kb-page .preview-tools{padding:10px 12px 15px;border-top:1px solid #dfe5d6;background:#fff;flex-shrink:0}
.kb-page .preview-pager{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.kb-page .preview-pager span{font-size:11px;color:var(--muted);white-space:nowrap}.kb-page .preview-pager button{font-size:11px;min-height:40px;padding:7px 11px}
.kb-page .preview-zoom{display:flex;align-items:center;justify-content:center;gap:8px}.kb-page .preview-zoom button{min-width:44px;min-height:40px;padding:6px 9px;font-size:12px}.kb-page .preview-zoom output{font-size:11px;width:44px;text-align:center}.kb-page .preview-zoom [data-kb=preview-fit]{margin-left:auto;min-width:76px}
.kb-page .preview-hint{font-size:10px;color:var(--muted);text-align:center;margin-bottom:8px}
.kb-page .preview-error{min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:35px 24px;gap:12px;color:var(--muted);font-size:12px}
.kb-page .preview-error .mark{font-size:32px;color:#8e9984}.kb-page .preview-error h3{color:var(--ink);font-size:16px}.kb-page .preview-error button{margin-top:4px;min-width:150px}
.kb-page .preview-slide{aspect-ratio:4/3;min-height:0;padding:25px 22px;background:#fff;border:1px solid #d9e0d1;color:#34402d;display:flex;flex-direction:column;justify-content:space-between;font-size:12px}
.kb-page .preview-slide h2{font-size:25px;line-height:1.3;max-width:90%;margin:20px 0}.kb-page .preview-slide p{margin:9px 0;white-space:pre-wrap}.kb-page .preview-slide .slide-label{font-size:9px;letter-spacing:2px;color:#7d8873}.kb-page .preview-slide .slide-footer{display:flex;justify-content:space-between;font-size:8px;color:#8c9782;padding-top:20px}.kb-page .preview-empty-slide{text-align:center;color:var(--muted);padding:50px 10px}
.kb-page .preview-image{width:100%;height:auto;display:block;background:#e3e8db}.kb-page .preview-image-wrap{min-height:100%;display:flex;align-items:center}
.kb-page .preview-warning{margin-bottom:12px;padding:11px 12px;background:#fff7ed;border:1px solid #e7cfb2;border-radius:8px;color:#6e5133;font-size:11px;line-height:1.5}.kb-page .preview-warning strong{display:block;margin-bottom:3px}.kb-page .preview-warning p{margin:3px 0}
