:root{font-family:Inter,"Noto Sans TC","Microsoft JhengHei",system-ui,sans-serif;color:#1d3442;background:#f5f7f8;font-size:15px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid #d2dce1;background:white;border-radius:7px;padding:9px 14px;color:inherit}button:hover{border-color:#217e80;background:#eff8f7}button:disabled{opacity:.5;cursor:wait}.primary{background:#166b6e;color:white;border-color:#166b6e}.primary:hover{background:#10595b;color:white}.link{border:0;padding:3px;color:#176d72;background:transparent}.muted,small{color:#6e8089}.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.between{justify-content:space-between}h1{font-size:28px;font-weight:650;letter-spacing:-.5px}h2{font-size:19px}h3{font-size:17px}a{color:#176d72}header{height:74px;background:white;border-bottom:1px solid #e0e7eb;display:flex;align-items:center;justify-content:space-between;padding:0 30px;gap:16px}.brand{font-size:20px;font-weight:700;display:flex;align-items:center;gap:10px}.logo{background:#176d72;color:white;padding:8px;border-radius:9px;font-size:18px}.brand small{font-size:11px;font-weight:400;display:block;letter-spacing:1px}nav{padding:25px 14px;background:#eef2f3;flex:0 0 215px;min-height:calc(100vh - 74px)}nav button{display:block;width:100%;text-align:left;margin:6px 0;background:transparent;border-color:transparent}nav button.active{background:white;border-color:#d5e2e5;color:#176d72;font-weight:600}nav .nav-label{margin:24px 12px 8px;font-size:11px;color:#7d8b93;letter-spacing:1px}.shell{display:flex}main{padding:32px 40px;flex:1;min-width:0}.auth{max-width:440px;margin:70px auto;background:white;padding:36px;border:1px solid #dde5e8;border-radius:14px}.field{display:block;margin:17px 0;font-weight:500}.field input,.field textarea,.field select{display:block;width:100%;margin-top:7px}.field input,.field select,textarea,input[type=search]{border:1px solid #ccd8de;border-radius:7px;padding:11px;background:white;color:inherit}textarea{width:100%;min-height:95px;resize:vertical}input:focus,textarea:focus,select:focus{outline:2px solid #9ac6c6;outline-offset:1px}.hero{max-width:820px;margin:55px auto}.hero h1{font-size:36px;line-height:1.4}.eyebrow{color:#207c7d;font-size:12px;letter-spacing:2px}.searchbox{display:flex;padding:10px;background:white;border:1px solid #becfd5;border-radius:12px;box-shadow:0 8px 25px #1a4a5c08;margin-top:30px;gap:10px}.searchbox input{flex:1;border:0;min-width:0;padding:14px;font-size:17px}.surface{background:white;border:1px solid #dde5e8;border-radius:10px;padding:24px;margin:20px 0}.badge{display:inline-block;font-size:12px;padding:4px 9px;border-radius:20px;background:#e9f4f1;color:#226b60;margin:2px}.warning{padding:16px 20px;background:#fff6dd;border:1px solid #eddca9;border-radius:8px;margin:20px 0;line-height:1.7}.error{color:#a83d30;background:#fff1ee;padding:13px;border-radius:7px}.empty{text-align:center;padding:70px 20px;color:#6d7e86}.split{display:flex;align-items:flex-start;gap:24px}.list{flex:1;min-width:0}.panel{background:white;border:1px solid #dae4e8;border-radius:9px;padding:22px;width:380px;flex:0 0 380px;position:sticky;top:20px;max-height:calc(100vh - 110px);overflow:auto}.panel h2{word-break:break-word}table{width:100%;border-collapse:collapse;background:white;border:1px solid #e0e7ea;border-radius:8px}th{text-align:left;font-weight:500;color:#6c7f89;font-size:12px;background:#f8fafb}td,th{padding:15px;border-bottom:1px solid #e8edef}td{vertical-align:middle}tr.selected{background:#edf7f7}tr[data-doc]{cursor:pointer}tr[data-doc]:hover{background:#f2f8f8}.dropzone{border:1px dashed #9fb8c2;padding:28px;background:#fafdfe;text-align:center;border-radius:10px;margin:20px 0}.dropzone.drag{background:#e0f0ec}input[type=file]{max-width:100%}.result{padding:23px 0;border-bottom:1px solid #e1e8eb}.result h3{margin:8px 0;color:#176d72}.result p{line-height:1.7;margin:10px 0}.answer{border-left:4px solid #2c8b86;background:white;padding:24px;margin:22px 0;line-height:1.9}.question{border-top:1px solid #e0e7eb;padding:15px 0}.question textarea{min-height:70px;margin:10px 0}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#d5a44e;margin-right:7px}.status-dot.ready{background:#459184}.actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}.notice{position:absolute;right:25px;top:64px;background:white;border:1px solid #d1dce1;box-shadow:0 12px 36px #203f4720;width:370px;max-width:90vw;max-height:450px;overflow:auto;z-index:5;padding:15px;border-radius:10px}.notice button{display:block;width:100%;text-align:left;margin:8px 0}details{margin:15px 0}summary{cursor:pointer;color:#176d72}.source{white-space:pre-wrap;font-size:14px;line-height:1.8;border-top:1px solid #eee;padding:12px 0}.source small{display:block}.toolbar{display:flex;gap:10px;margin:20px 0;flex-wrap:wrap}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#203e47;color:white;padding:12px 22px;border-radius:8px;display:none;z-index:10}.spinner{width:20px;height:20px;border:2px solid #bfd7d6;border-top-color:#1b7575;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.check{display:inline-flex;gap:7px;margin:7px 12px 7px 0}.count{font-size:12px;background:#ebf2f3;padding:3px 7px;border-radius:12px}.subtle{font-size:13px;line-height:1.8}.pager{margin:24px 0}.preview{width:100%;height:600px;border:1px solid #ddd}.long-text{white-space:pre-wrap;overflow-wrap:anywhere}.stats{display:flex;gap:18px;flex-wrap:wrap}.stats .surface{flex:1;min-width:160px}dialog{border:1px solid #ccd9df;border-radius:10px;padding:25px;width:min(520px,90vw)}dialog::backdrop{background:#102a3b50}@media(max-width:1100px){main{padding:24px}.panel{width:320px;flex-basis:320px}nav{flex-basis:180px}.brand{font-size:17px}}@media(max-width:800px){header{padding:0 15px;height:auto;min-height:70px}.brand small{display:none}.shell{display:block}nav{min-height:0;padding:8px;display:flex;overflow:auto;gap:5px}nav button{width:auto;white-space:nowrap;margin:0}nav .nav-label{display:none}main{padding:20px}.split{display:block}.panel{width:100%;position:static;max-height:none;margin-top:20px}.hero{margin:25px auto}.hero h1{font-size:28px}.searchbox{flex-wrap:wrap}.searchbox input{width:100%}.searchbox button{width:100%}table{font-size:13px}th,td{padding:10px}.auth{margin:30px 15px}.user-email{display:none}}

.environment-badge{display:inline-flex;align-items:center;white-space:nowrap;border:1px solid #dfb34f;border-radius:6px;padding:4px 8px;background:#fff4d6;color:#805400;font-size:12px;font-weight:600}.auth>.environment-badge{margin-top:16px}@media(max-width:700px){header .environment-badge{font-size:10px;padding:3px 5px}}

.identity-options{border:0;padding:0;margin:24px 0;display:grid;gap:10px}.identity-options legend{font-weight:600;margin-bottom:10px}.identity-options label{display:flex;align-items:center;gap:12px;border:1px solid #d9e3e5;padding:14px;border-radius:10px;cursor:pointer}.identity-options label:has(input:checked){border-color:#187c7d;background:#eaf6f3}.identity-options input{width:18px;flex:0 0 18px;accent-color:#187c7d}.identity-options small{display:block;margin-top:5px;color:#657b80}.identity-badge{border-radius:6px;padding:6px 10px;background:#eaf6f3;color:#196c70;font-size:12px;font-weight:600}

/* V0.1.0 — official AKai brand, spacious knowledge workspace. */
:root{color:#243448;background:#f5f7fb;font-size:14px}a,summary,.eyebrow{color:#275ed2}button{border-radius:8px}button:hover{background:#edf3ff;border-color:#8baaf0}.primary{background:#3666df;border-color:#3666df}.primary:hover{background:#254fc0}.badge{background:#eff3fc;color:#4c5f87}.header-logo{width:192px;height:48px;object-fit:contain}.brand{gap:16px}header{height:80px;padding:0 28px}nav{background:#fff;flex-basis:208px;border-right:1px solid #e7ecf3;min-height:calc(100vh - 80px)}nav button.active{background:#edf2ff;color:#305ac5;border-color:transparent}main{padding:30px 36px;max-width:1680px}.hero{max-width:940px;margin:48px auto}.hero h1{font-size:32px;font-weight:600}.surface,.panel,table{border-color:#e6eaf2;border-radius:12px;box-shadow:0 3px 14px #142c4b03}.split{gap:20px}.panel{width:390px;flex-basis:390px}.answer{border-left-color:#4775df;border-radius:10px}.result{padding:22px;background:white;border:1px solid #e5eaf3;border-radius:10px;margin:12px 0}.result h3{color:#315dc1}.searchbox{border-color:#dce4f0;box-shadow:0 6px 24px #34456305;padding:8px;border-radius:12px}.auth-top{display:flex;justify-content:flex-end;padding:26px 38px}.auth-top a{text-decoration:none;font-weight:500}.auth{max-width:1080px;margin:7vh auto 48px;padding:0;display:grid;grid-template-columns:1fr 1fr;border:1px solid #e3e9f2;border-radius:26px;overflow:hidden;box-shadow:0 18px 60px #24467708}.auth-brand{padding:56px 48px;display:flex;flex-direction:column;background:linear-gradient(145deg,#edf8fc,#f4f7ff);min-height:580px}.auth-logo{width:280px;max-width:100%;height:100px;object-fit:contain;object-position:left center}.auth-caption{margin:auto 0}.auth-caption h1{font-size:35px;line-height:1.6;max-width:370px;font-weight:550}.auth-caption p{color:#697b92;line-height:1.8}.auth-version{display:flex;gap:12px;align-items:center;margin-top:24px}.auth-input{padding:44px 48px}.auth-input h2{font-size:23px;margin-top:8px}.auth-input .primary{min-width:128px;padding:12px 22px}.auth-input .actions{justify-content:flex-end}.identity-options{grid-template-columns:1fr 1fr;gap:10px;margin:25px 0}.identity-options label{padding:12px 8px;gap:6px;font-size:13px}.identity-options small{font-size:11px;line-height:1.6}.identity-options label:has(input:checked){background:#eef4ff;border-color:#79a0ed}.identity-options input{accent-color:#3666df}.password-input{position:relative;display:block}.password-input input{padding-right:68px}.password-input button{position:absolute;right:6px;top:5px;border:0;color:#3666df;font-size:12px;background:transparent;padding:8px}.field input{min-height:46px}.identity-badge{background:#edf3ff;color:#4566a5}.release-label{font-size:12px;color:#8290a4}.auth .eyebrow{font-size:10px;letter-spacing:1.7px}@media(max-width:900px){.auth{margin:20px;grid-template-columns:1fr}.auth-brand{min-height:0;padding:24px 30px}.auth-logo{width:220px;height:75px}.auth-caption{display:none}.auth-version{margin-top:8px}.auth-input{padding:26px 30px}.auth-top{padding:20px 26px}.panel{width:330px;flex-basis:330px}}@media(max-width:800px){header{height:auto;min-height:76px;padding:12px 16px}.header-logo{width:160px}nav{min-height:0;border-right:0;border-bottom:1px solid #e7ecf3}main{padding:20px}.panel{width:100%}.hero h1{font-size:27px}}

.header-logo{width:125px;height:44px}.product-name{font-size:15px;font-weight:600;color:#4c637d}.search-options{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:16px 0}.search-options input{accent-color:#3666df}input[type=checkbox]{width:16px;height:16px}.result h3{overflow-wrap:anywhere}@media(max-width:1000px){.product-name{display:none}}
/* V0.2.0: reports, feedback and private advisor */
.advisor-launch{display:flex;align-items:center;gap:15px;border:1px solid #5073be;background:linear-gradient(120deg,#122648,#23467f);color:#fff;padding:13px 20px;border-radius:14px;box-shadow:0 8px 22px #2a508a20;transition:transform .25s,box-shadow .25s}.advisor-launch:hover{background:linear-gradient(120deg,#183462,#315b9f);color:white;transform:translateY(-3px);box-shadow:0 10px 32px #427adb55}.advisor-launch img{width:84px;height:37px;object-fit:contain;transition:filter .25s}.advisor-launch:hover img{filter:drop-shadow(0 0 5px #55bcff)}.advisor-launch span{font-size:16px;text-align:left}.advisor-launch small{display:block;font-size:10px;color:#bbcdec;margin-top:5px}.feedback-alert{color:#9a5c12;background:#fff8e9;border-color:#f0dab5}.flag{display:inline-grid;place-items:center;background:#f9dd9b;color:#7c4b0d;border-radius:50%;width:20px;height:20px;font-weight:bold}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:25px 0}.metric{background:white;border:1px solid #e2e9f4;border-radius:14px;padding:25px}.metric strong{display:block;font-size:36px;font-weight:550;color:#284a7b;margin-top:10px}.dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.dashboard-grid .surface{margin:0}.big-number{font-size:32px;color:#315fc0}.usage-chart{display:block;width:100%;max-height:300px;margin:18px 0}.usage-chart text{font-size:12px;fill:#72839b}.table-scroll{overflow:auto;max-height:480px}.table-scroll th{position:sticky;top:0;background:#f7f9fc}.taxonomy-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.bar-list>div{display:grid;grid-template-columns:90px 1fr 35px;gap:10px;align-items:center;font-size:12px;margin:14px 0}.bar-list progress{width:100%;height:10px;accent-color:#6081d7}.topic-card{display:flex;gap:20px;padding:20px 0;border-top:1px solid #e4eaf4}.topic-number{font-size:30px;color:#96add7}.topic-card h3{margin-top:0}.topic-card p{line-height:1.8}.export-link{background:white;border:1px solid #d2dff4;padding:12px 18px;border-radius:9px;text-decoration:none}.toolbar input[type=date]{border:1px solid #cbd7e9;border-radius:6px;padding:9px}.long-text{max-width:100%}dialog{max-height:90vh;overflow:auto;width:min(700px,92vw)}@media(prefers-reduced-motion:reduce){.advisor-launch,.advisor-launch img{transition:none}.advisor-launch:hover{transform:none}}@media(max-width:1000px){.taxonomy-grid{grid-template-columns:1fr}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}header{height:auto;min-height:80px;padding:14px;flex-wrap:wrap}}@media(max-width:600px){.dashboard-grid{grid-template-columns:1fr}.hero>.row{gap:20px}.metric{padding:18px}.metric strong{font-size:27px}.usage-chart{min-height:170px}.advisor-launch{padding:10px 15px}}
/* V0.3.0 identity labels, permission policies and review workflow */
.permission-tabs{display:flex;gap:10px;flex-wrap:wrap;border-bottom:1px solid #dce5f2;padding-bottom:18px;margin:20px 0}.label-palette{display:flex;gap:9px;flex-wrap:wrap;padding:18px;background:#edf3ff;border:1px solid #d6e2f8;border-radius:12px}.label-palette strong{flex:1 0 100%;margin-bottom:6px}.identity-chip{display:inline-flex;align-items:center;gap:7px;background:#edf3ff;border:1px solid #c9d9f5;border-radius:7px;padding:7px 9px;font-size:12px;margin:3px}.identity-chip[draggable]{cursor:grab}.identity-chip button{padding:0 6px;border:0;background:transparent}.label-select{display:flex;flex-wrap:wrap;gap:8px;max-height:260px;overflow:auto;padding:14px;border:1px solid #dce4f1;border-radius:8px}.label-select .check{margin:3px;padding:7px;border:1px solid #e0e7f1;border-radius:5px}.tree-scroll{overflow:auto;padding:24px 6px;min-height:230px}.tree-forest{display:flex;gap:30px;min-width:max-content;align-items:flex-start}.tree-branch{display:flex;flex-direction:column;align-items:center}.tree-node{border:1px solid #aabfe4;border-top:4px solid #547ad1;background:white;border-radius:10px;padding:15px;width:250px;box-shadow:0 7px 20px #2549700a}.tree-node[draggable]{cursor:grab}.tree-node button{padding:5px 8px;font-size:11px}.tree-children{display:flex;gap:25px;border-top:1px solid #9db6df;padding-top:25px;margin-top:25px;position:relative}.tree-children:before{content:'';position:absolute;left:50%;top:-25px;height:25px;border-left:1px solid #9db6df}.tree-chips{padding:14px 0}.tree-root-drop{border:1px dashed #92abd5;border-radius:8px;margin-top:15px;padding:14px;text-align:center;color:#627eaa}.policy-group{border:1px dashed #8eaadc;background:#f7faff;border-radius:10px;padding:15px;margin:12px 0}.or-divider{text-align:center;color:#7390ba;font-size:12px;font-weight:bold}.policy-diff{display:grid;grid-template-columns:1fr 1fr;gap:16px}.policy-diff>div{padding:16px;background:#f4f7fc;border-radius:8px}.policy-diff>div:last-child{background:#edf7f4}.date-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px}.date-pair .field{font-size:12px}.date-pair input{font-size:12px;min-width:0}.assignment-row{padding:12px;border-bottom:1px solid #e4ebf5}.assignment-row>small{display:block}.identity-assignment{border:1px solid #e0e8f2;padding:14px;border-radius:10px}.identity-assignment .date-pair{display:none}.assignment-row:has(input[name=identity]:checked) .date-pair{display:grid}dialog .tree-scroll{max-height:400px}dialog .table-scroll{max-height:250px}@media(max-width:700px){.date-pair,.policy-diff{grid-template-columns:1fr}.tree-node{width:215px}.permission-tabs button{flex:1 0 40%}.assignment-row:has(input[name=identity]:checked) .date-pair{grid-template-columns:1fr}}
header{height:auto;min-height:80px;padding:14px 24px;flex-wrap:wrap}.brand{flex:1 0 320px}.brand .product-name{white-space:nowrap}header>.row{justify-content:flex-end;flex:1 1 620px}header>.row button{font-size:12px}.tree-forest{justify-content:center}@media(max-width:700px){header{padding:12px}.brand{flex-basis:100%}header>.row{justify-content:flex-start;flex-basis:100%}}
