.ai-page{padding-bottom:40px}.ai-intro{margin:28px 0}.ai-intro h2{font-size:30px;margin:12px 0}.ai-intro p{color:#9da4b6;margin-top:10px;line-height:1.7}#modelStatus{font-size:13px;color:#c1acf9}.ai-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:22px}.chat-panel{display:flex;flex-direction:column;min-height:620px;overflow:hidden}.panel-heading{padding:18px 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff12}.messages{height:430px;overflow:auto;padding:24px;display:flex;flex-direction:column;gap:18px}.welcome{margin:auto;text-align:center;color:#9da4b6}.welcome h3{color:#eee;margin:12px}.welcome p{margin-bottom:18px}.welcome button{border:1px solid #ffffff20;background:#ffffff08;color:#c7bcdf;padding:12px;border-radius:12px;cursor:pointer}.spark{font-size:42px;color:#b198f3}.message{padding:15px 18px;max-width:95%;border-radius:14px;line-height:1.85;overflow-wrap:anywhere}.message.user{align-self:flex-end;background:#6e47a833}.message.assistant{align-self:flex-start;background:#ffffff06;width:95%}.message-label{font-size:12px;color:#aa97cf;margin-bottom:6px}.message-body{white-space:pre-wrap}.message.error{border:1px solid #e1936655}.sources{margin-top:14px;border-top:1px solid #ffffff15;padding-top:8px}.sources summary{cursor:pointer;color:#b7a4df;font-size:13px}.source{margin-top:10px}.source strong{font-size:13px}.source p{font-size:12px;color:#9da4b6;white-space:pre-wrap}.composer{padding:18px 22px;border-top:1px solid #ffffff12;margin-top:auto}.composer textarea{resize:vertical;width:100%;box-sizing:border-box;background:#ffffff06;border:1px solid #ffffff20;border-radius:12px;color:#eee;padding:14px;font:inherit;min-height:85px}.composer textarea:focus{outline:2px solid #9b7fca}.composer-actions{display:flex;align-items:center;gap:10px;margin-top:12px}.composer-actions span{font-size:11px;color:#888;margin-right:auto}.knowledge-panel{padding:24px;height:fit-content}.knowledge-panel h3{margin:12px 0}.knowledge-panel p,.kb-note{font-size:13px;color:#9da4b6;line-height:1.8}.upload-area{display:block;border:1px dashed #8b77b5;border-radius:12px;text-align:center;padding:22px 8px;margin:22px 0 12px;cursor:pointer}.upload-area span{display:block;font-size:11px;color:#9690a3;margin-top:8px}#documentFile{width:100%;font-size:12px;color:#aaa;margin-bottom:12px}.document{border-bottom:1px solid #ffffff12;padding:14px 0;display:flex;gap:10px;align-items:center}.document-info{min-width:0;flex:1}.document strong{font-size:13px;display:block;overflow-wrap:anywhere}.document small{color:#999}.document button{background:none;border:0;color:#e4a5b2;cursor:pointer}.kb-note{margin-top:20px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}button:disabled{opacity:.5;cursor:wait}a.btn{text-decoration:none}input[type=checkbox]{accent-color:#a181d5}@media(max-width:900px){.ai-layout{grid-template-columns:1fr}.knowledge-panel{order:2}.ai-intro h2{font-size:24px}.composer-actions{flex-wrap:wrap}.composer-actions span{width:100%}.header-content{flex-wrap:wrap;gap:12px}.header-actions{flex-wrap:wrap}.messages{height:380px}}
.document-actions{display:flex;flex-direction:column;gap:10px}.document-actions button:first-child{color:#bcabde}#documentPreview{margin:auto;width:min(760px,92vw);max-height:85vh;background:#13111b;color:#e0e0e0;border:1px solid #77628e;border-radius:16px;padding:0}#documentPreview::backdrop{background:#000b}#documentPreview .panel-heading{gap:18px}#previewTitle{overflow-wrap:anywhere;min-width:0}#previewText{padding:24px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;font-size:14px;max-height:65vh;overflow:auto}
.streaming .message-body::after{content:'▍';color:#b198f3;animation:stream-cursor 1s steps(2,start) infinite}@keyframes stream-cursor{to{opacity:0}}#stop[hidden]{display:none}
.message{flex-shrink:0;min-width:0}.markdown-body{white-space:normal;line-height:1.85}.markdown-body>:first-child{margin-top:0}.markdown-body>:last-child{margin-bottom:0}.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4,.markdown-body h5,.markdown-body h6{margin:1.1em 0 .5em;line-height:1.4;color:#f0ebf8}.markdown-body h1{font-size:1.55em}.markdown-body h2{font-size:1.3em}.markdown-body h3{font-size:1.12em}.markdown-body h4,.markdown-body h5,.markdown-body h6{font-size:1em}.markdown-body p{margin:.65em 0}.markdown-body ul,.markdown-body ol{padding-left:1.5em;margin:.65em 0}.markdown-body li{margin:.25em 0}.markdown-body li>p{margin:.3em 0}.markdown-body strong{color:#f0ebf8;font-weight:700}.markdown-body a{color:#c0a1ff;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}.markdown-body code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.88em;background:#ffffff0d;border-radius:4px;padding:2px 5px;white-space:pre-wrap}.markdown-body pre{padding:14px;margin:14px 0;max-width:100%;overflow:auto;border:1px solid #ffffff12;background:#07060b;border-radius:10px}.markdown-body pre code{display:block;background:transparent;padding:0;white-space:pre;overflow-wrap:normal;line-height:1.6}.markdown-body blockquote{margin:12px 0;padding:1px 14px;border-left:3px solid #9574c4;color:#b6acc6;background:#ffffff04}.markdown-body hr{border:0;border-top:1px solid #ffffff20;margin:18px 0}.markdown-table{max-width:100%;overflow-x:auto;margin:14px 0}.markdown-body table{border-collapse:collapse;width:100%;font-size:.9em}.markdown-body th,.markdown-body td{padding:9px 12px;border:1px solid #ffffff20;text-align:left;min-width:80px}.markdown-body th{background:#ffffff08;font-weight:600}

body { background: #101529; }
.bg-gradient {
    background: radial-gradient(ellipse at 78% 12%, #463269 0%, transparent 48%),
                radial-gradient(ellipse at 10% 38%, #1c3653 0%, transparent 52%);
}
.ai-intro { position: relative; padding-right: 40%; }
.intro-stars { position: absolute; inset: 0 0 0 auto; width: 38%; height: 100%; }
.chat-panel { background: #192237; border-color: #647caa50; }
.composer textarea { background: #212e46; border-color: #758bb459; }
.knowledge-panel {
    background: linear-gradient(155deg, #302a49, #1d2237 75%);
    border-color: #a58acd50;
    border-top-color: #ad92d9;
}
.knowledge-panel .upload-area { background: #ac89eb0d; border-color: #aa90cf; }
@media (max-width: 700px) {
    .ai-intro { padding-right: 0; padding-top: 38px; }
    .intro-stars { width: 65%; height: 40px; }
}

#resumeGraphDialog {
    width: min(880px, calc(100vw - 28px));
    max-height: min(90vh, 940px);
    overflow: auto;
    padding: 18px;
    background: #192237;
    color: #e9e7f3;
    border: 1px solid #647caa80;
    border-radius: 18px;
}
#resumeGraphDialog::backdrop {background: #070912bd;}
.resume-graph-toolbar {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-block: 10px;
}
.resume-graph-toolbar select {
    max-width: min(100%, 380px); min-width: 0; padding: 8px 10px;
    background: #222f48; color: inherit; border: 1px solid #647caa80; border-radius: 8px;
}
.resume-graph-view {
    --graph-edge: #92a0b2;
    position: relative; height: clamp(290px, 49vw, 400px);
    border: 1px solid rgba(105, 131, 165, .28); border-radius: 16px; overflow: hidden;
    background-image: radial-gradient(circle, rgba(115, 140, 166, .35) .8px, transparent 1px);
    background-size: 18px 18px;
}
.resume-graph-view canvas, #resumeGraphNodes {position: absolute; inset: 0; width: 100%; height: 100%;}
.resume-graph-node {
    --node-color: #81cbea;
    position: absolute; display: grid; place-items: center; width: 44px; height: 44px;
    transform: translate(-50%, -50%); border: 0; background: transparent; cursor: pointer;
    color: inherit; font: inherit;
}
.resume-graph-node::before {
    content: ""; width: 17px; height: 17px; border-radius: 50%;
    background: radial-gradient(circle at 28% 28%, #f8fbff, var(--node-color) 32%, var(--node-color));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--node-color) 25%, transparent);
}
.resume-graph-node[data-kind="project"] {--node-color: #eaa453;}
.resume-graph-node[data-kind="technology"] {--node-color: #69b89b;}
.resume-graph-node[data-kind="research"] {--node-color: #bd96ee;}
.resume-graph-node[data-kind="employment"], .resume-graph-node[data-kind="education"] {--node-color: #70b8e8;}
.resume-graph-node[data-kind="outcome"] {--node-color: #ee8b90;}
.resume-graph-node[aria-pressed="true"]::before {width: 27px; height: 27px;}
.resume-graph-node span {
    position: absolute; top: 35px; left: 50%; transform: translateX(-50%); width: max-content;
    max-width: clamp(86px, 23vw, 150px); overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; color: inherit; font-size: .82rem;
    padding-inline: 4px; border-radius: 4px; background: #192237;
}
.resume-graph-node[aria-pressed="true"] span {font-weight: 700; top: 42px;}
.resume-graph-status {margin: 12px 0 6px;}
.resume-graph-relations {display: grid; gap: 7px; margin: 0 0 12px;}
.resume-graph-relations > div {padding-block: 5px; border-bottom: 1px solid rgba(105, 131, 165, .28);}
.resume-graph-relations span {margin-right: 8px; font-size: .82rem;}
.resume-graph-relations p {margin: 0; font-size: .9rem;}

#openResumeGraph[hidden] {display: none;}

.document-actions button:not(:last-child) { color: #bcabde; }

.dify-documents { padding: 10px 24px; border-bottom: 1px solid #ffffff12; color: #b9b0c9; font-size: 13px; }
.dify-documents summary { cursor: pointer; }
#difyDocumentStatus { margin-inline-start: 8px; color: #d7c7f2; }
#difyDocumentList { list-style: none; padding: 0; max-height: 180px; overflow: auto; }
#difyDocumentList li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; }
#difyDocumentList li span:first-child { overflow-wrap: anywhere; }
#difyDocumentList li span:last-child { white-space: nowrap; }
#difyDocumentList [data-status="available"] { color: #9cddb5; }
#difyDocumentList [data-status="error"] { color: #f3a296; }
#difyDocumentNote { margin-top: 4px; }
