/* A shared, high-contrast visual layer. Business styles retain their layouts. */
#shared-tools{display:flex;gap:8px;margin-left:20px}#shared-tools .btn{font-size:12px;padding:6px 10px}.shared-project-bar{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-bottom:23px;padding:13px 16px;border:1px solid #365375;border-radius:10px;background:#14243a;color:#b9d3ee;font-size:12px}.shared-project-bar label{display:flex;align-items:center;gap:10px}.shared-project-bar select{max-width:260px;padding:6px}.shared-project-bar>span{margin-right:auto}.shared-diff{display:grid;grid-template-columns:1fr 1fr;gap:15px;min-width:0}.shared-diff>div{min-width:0}.shared-diff pre{overflow:auto;max-height:420px;white-space:pre-wrap;overflow-wrap:anywhere;background:#0b1629;color:#c4dcf5;padding:12px;font-size:12px;border-radius:6px}.shared-history details summary{color:#a7deff;cursor:pointer}.shared-history .finding{margin-bottom:15px;padding:15px;border:1px solid #355374;border-radius:8px}.shared-history .finding p{margin:8px 0}@media(max-width:900px){#shared-tools{margin-left:12px}#shared-tools .btn{font-size:11px;padding:6px}}@media(max-width:620px){#shared-tools{margin-left:5px;gap:4px}#shared-tools .btn{font-size:10px;padding:5px;min-height:30px}#shared-tools .icon{display:none}.topbar .breadcrumb{display:none}.shared-project-bar{gap:10px}.shared-project-bar label{flex-wrap:wrap;width:100%}.shared-project-bar select{width:100%;max-width:100%}.shared-diff{grid-template-columns:1fr}}
:root{color-scheme:dark;--bg:#080f20;--paper:#121e34;--ink:#edf4ff;--text:#d5e1f3;--muted:#a8bbd8;--line:#2a3b58;--green:#6de4f0;--green-dark:#74deff;--green-light:#12344a;--sidebar:#090f21;--sidebar-text:#bed1ed;--orange:#ffc779;--red:#ffabb6;--blue:#85bdff;--purple:#b9a5ff;--radius:14px;--font:'Segoe UI','Microsoft YaHei',sans-serif}
body{background:radial-gradient(ellipse at 80% 0%,#1f245b4a,transparent 45%),radial-gradient(ellipse at 12% 40%,#12375635,transparent 55%),var(--bg);font-size:14px;line-height:1.75;color:var(--text)}
.green{--tone:#7aeadb;--tone-bg:#1a4b4b}.blue{--tone:#9ac9ff;--tone-bg:#213d66}.orange{--tone:#ffd08b;--tone-bg:#4e3929}.purple{--tone:#c8b6ff;--tone-bg:#3c315e}.red{--tone:#ffb1bd;--tone-bg:#502c40}.gray{--tone:#b8c9e1;--tone-bg:#28394f}
:is(#app,#modal-root) :where(h1,h2,h3,strong,dd){color:var(--ink)}
:is(#app,#modal-root) :where(p,small,dt,label,th,.muted,.field-hint,.modal-description){color:var(--muted)}
:is(#app,#modal-root) :where(small,th,td,label,.field-hint,.modal-description,.badge,.text-link,.table-footer,.stat-top,.stat-bottom,.panel-title>span,.filter-buttons button,.pill-tabs button){font-size:12px}
:is(#app,#modal-root) :where(button,input,select,textarea){color:var(--text)}
:is(#app,#modal-root) :where(input,textarea,select){color-scheme:dark;accent-color:#68cfff}
:is(#app,#modal-root) :where(input:not([type=checkbox]):not([type=radio]),textarea,select){background:#0c172a;border:1px solid #45618a;border-radius:7px;font-size:14px;line-height:1.7}
:is(#app,#modal-root) :where(input,textarea)::placeholder{color:#9bafcf;opacity:1}
:is(#app,#modal-root) :where(input,textarea,select):focus-visible{border-color:#73dfff;box-shadow:0 0 0 3px #65cfff20}
button:focus-visible,a:focus-visible{outline:2px solid #82eaff;outline-offset:3px}::selection{background:#415ea9;color:#fff}
/* Navigation */
#app .sidebar{background:radial-gradient(ellipse at 0 0,#22416c60,transparent 65%),#090f21;border-right:1px solid #253756;box-shadow:8px 0 40px #0002}
#app .brand{color:#f4f7ff}#app .brand-mark{color:#86e8ff;filter:drop-shadow(0 0 10px #55baff55)}#app .brand small{color:#a3bbdf;font-size:9px}
#app .workspace-picker{background:linear-gradient(120deg,#1b304c,#17233f);border-color:#3a5478;color:#e0edff;opacity:1}#app .workspace-picker small{color:#a9bfde;font-size:11px}#app .company-symbol{color:#9ce7ff;background:#244565;border-color:#45779c}
#app .nav-caption{color:#92a9cc;font-size:11px;letter-spacing:1.8px}#app .nav-item{color:#b7cbe8;font-size:14px;padding:12px 16px;gap:12px}#app .nav-item .icon{opacity:1}#app .nav-item:hover{background:#213553;color:#eff8ff}#app .nav-item.active{color:#a6eeff;background:linear-gradient(90deg,#20618c80,#33478550);box-shadow:inset 0 0 0 1px #66bfff35}#app .nav-item.active:before{background:#7ae6ff;box-shadow:0 0 14px #57dbff;top:12px;bottom:12px}#app .nav-count,#app .nav-new{color:#a9eaff;background:#23516b;border-color:#5c9fb555}
#app .wechat-card{background:linear-gradient(135deg,#1a334d,#272448);border-color:#3a4a72}#app .wechat-title,#app .wechat-title .icon{color:#a6ddff}#app .wechat-card p{color:#b1c4e1;font-size:12px}#app .wechat-card button{color:#b6e5ff;border-color:#5275a6;background:#28416c55;font-size:12px}#app .help-link{color:#b8cae6;font-size:12px}#app .sidebar-foot{color:#a1b6d7;border-color:#293a58;font-size:10px}#app .online-dot,#app .live-dot{background:#7be8ce;box-shadow:0 0 7px #69dfb877}
#app .topbar{background:#101a30ee;border-color:#2a3a56;backdrop-filter:blur(16px)}#app .breadcrumb{color:#acbfdd;font-size:12px}#app .breadcrumb strong{color:#e0edff}#app .breadcrumb .icon{color:#8ba7ce}#app .global-search{background:#14223a;border-color:#334a6c;color:#b8cbe6;font-size:12px;height:36px}#app .global-search kbd{color:#b3c8e9;border-color:#486185;background:#1d2f4d}#app .topbar-divider{background:#334362}#app .icon-button{color:#b9d0ee}#app .icon-button:hover{background:#294365}#app .notification-button i{background:#bfa5ff;border-color:#101a30}#app .avatar{color:#b9ecff;background:linear-gradient(135deg,#284d77,#3d346b);border-color:#617bac}#app .profile-copy strong{font-size:12px}#app .profile-copy small{color:#acc1e1;font-size:11px}
#app #main-content{padding-top:32px}#app .page-heading{margin-bottom:28px}#app .page-heading h1{color:#f2f6ff;font-size:29px;font-weight:650}#app .eyebrow{color:#91cfff;font-size:10px;letter-spacing:2px}#app .page-heading p{color:#b2c5e0;font-size:13px;line-height:1.9}#app .greeting{color:#c1d5ef}#app .greeting .icon{color:#ffcc83}
/* Surfaces and data */
:is(#app,#modal-root) :where(.panel,.stat-card,.mini-stats,.workflow-strip,.cost-project-bar){background:linear-gradient(135deg,#17263c,#111c30);border-color:#30445f;box-shadow:0 8px 25px #00000016}
#app .stat-card{position:relative;overflow:hidden;padding:20px;min-height:166px}#app .stat-card:before{content:'';position:absolute;left:20px;right:20px;top:0;height:2px;background:linear-gradient(90deg,#73dfff,#8676ff,transparent)}#app .stat-card:nth-child(2):before{background:linear-gradient(90deg,#ac8cff,transparent)}#app .stat-card:nth-child(3):before{background:linear-gradient(90deg,#ffbf73,transparent)}#app .stat-card:nth-child(4):before{background:linear-gradient(90deg,#70e9d1,transparent)}#app .stat-top{color:#b9cde7;font-size:13px}#app .stat-value{color:#eef6ff;font-size:37px;letter-spacing:-1px}#app .stat-value>span{color:#b7c9e4;font-size:12px}#app .stat-bottom{border-color:#30425d;color:#a6bbd9;font-size:11px}#app .stat-bottom>span:last-child{font-size:11px}#app .stat-warning{color:#ffcf90}#app .stat-success{color:#81e7c7}
:is(#app,#modal-root) :where(.panel-header,.table-footer,.task-row,.activity-row,.list-toolbar,.document-bottom,.tender-card-bottom,.tender-card-metrics,.modal-header,.modal-actions){border-color:#2b405d}
:is(#app,#modal-root) .panel-title h2{color:#e7f2ff;font-size:15px;letter-spacing:.3px}:is(#app,#modal-root) .panel-title>span{color:#afc3e0;font-size:12px}:is(#app,#modal-root) .panel-title{flex-wrap:wrap}
:is(#app,#modal-root) :where(table){color:#d9e5f5}:is(#app,#modal-root) :where(th){background:#1b2c46;color:#b8d3ee;font-size:12px;border-color:#354968}:is(#app,#modal-root) :where(td){color:#cdddf0;font-size:13px;border-color:#293c58}:is(#app,#modal-root) :where(td small){color:#a6bddc;font-size:12px}:is(#app,#modal-root) tbody tr:hover{background:#20385966}:is(#app,#modal-root) .name-link{color:#e7f3ff;font-size:13px}:is(#app,#modal-root) .table-footer{color:#afc4df;background:#121f35;font-size:12px}:is(#app,#modal-root) .table-footer>span{color:#a9bddb;font-size:11px}
:is(#app,#modal-root) :where(.btn){font-size:13px;min-height:38px;border-radius:7px}:is(#app,#modal-root) .btn.primary{background:linear-gradient(110deg,#347ee7,#6958de);border-color:#7b9bff80;color:#fff;box-shadow:0 4px 17px #3f68de24}:is(#app,#modal-root) .btn.primary:hover{background:linear-gradient(110deg,#4394ff,#8068fb);box-shadow:0 4px 22px #3f68de44}:is(#app,#modal-root) .btn.secondary{background:#1b2c47;color:#cce5ff;border-color:#456287}:is(#app,#modal-root) .btn.secondary:hover{background:#294365;border-color:#7aade4}
:is(#app,#modal-root) .text-link{color:#91d8ff;font-size:12px}:is(#app,#modal-root) .text-link:hover{color:#cbf4ff}:is(#app,#modal-root) .badge{color:var(--tone,#bee2ff);background:var(--tone-bg,#233e59);font-size:12px;padding:3px 8px;border:1px solid color-mix(in srgb,var(--tone,#9dc6ff) 25%,transparent)}:is(#app,#modal-root) .count-chip{color:#9de5ff!important;background:#284866;font-size:11px!important}
:is(#app,#modal-root) :where(.filter-buttons button,.pill-tabs button,.dashboard-tabs>button){font-size:12px;color:#adc5e5}:is(#app,#modal-root) :where(.filter-buttons button.active,.pill-tabs button.active){background:#24486b;color:#a4edff}:is(#app,#modal-root) :where(.filter-buttons button:hover,.pill-tabs button:hover){background:#263d5c}:is(#app,#modal-root) .dashboard-tabs{border-color:#334561}:is(#app,#modal-root) .dashboard-tabs>button.active{color:#96e4ff}:is(#app,#modal-root) .dashboard-tabs>button.active:after{background:#72dfff;box-shadow:0 0 10px #68dfff55}
/* Every workflow uses the same legible surfaces. */
:is(#app,#modal-root) :where(.panel-bottom-note,.quick-grid>button,.quote-advice,.drop-zone,.document-content,.contract-text,.compliance-checks label,.ai-options>button,.search-modal-input,.architecture-stack>div,.attachment-picker,.recognition-result,.recognition-batch>button,.bid-stepbar,.matrix-row,.region-row,.signature-row,.merge-outline>div,.source-details pre,.recognition-result pre,.cost-insights){background:#14243a;border-color:#3c5474;color:#c9def3}
:is(#app,#modal-root) :where(.quick-grid>button:hover,.drop-zone:hover,.attachment-picker:hover,.recognition-batch>button:hover,.ai-options>button:hover,.search-result:hover){background:#263e5f;border-color:#6990bf}
:is(#app,#modal-root) :where(.info-strip,.review-banner,.library-overview,.quote-main,.notice-box,.privacy-banner,.ledger-balance,.compliance-result){background:linear-gradient(120deg,#18394a,#1e2e4b);border-color:#3d6784;color:#bce7f7}
:is(#app,#modal-root) :where(.notice-box.warning,.confidential-section){background:#352c27;border-color:#826a40;color:#ffdaa4}:is(#app,#modal-root) .confidential-section .attachment-picker{background:#302b2a;border-color:#8b754e}
:is(#app,#modal-root) :where(.info-strip p,.notice-box p,.privacy-banner p,.review-banner p,.library-overview p,.compliance-panel p,.quote-advice p,.quote-advice li,.cost-insight p){color:#b8cce7;font-size:13px;line-height:1.95}
:is(#app,#modal-root) :where(.cost-category-list>button,.cost-category-list b,.cost-category-list em){color:#cee5fa;font-size:13px}:is(#app,#modal-root) .cost-category-list>button{border-color:#31445e}:is(#app,#modal-root) .cost-category-list>button:hover{background:#223e5e}:is(#app,#modal-root) .cost-stack{background:#29374d}:is(#app,#modal-root) .cost-insight h3{color:#93e2ff;font-size:18px}:is(#app,#modal-root) .cost-insight>.icon{color:#9be7ff;background:#244764}:is(#app,#modal-root) :where(.cost-project-bar>label,.cost-project-bar>span){color:#b6cbe6;font-size:12px}:is(#app,#modal-root) .cost-empty{color:#b7cce8}:is(#app,#modal-root) .cost-empty h2{color:#e6f4ff}:is(#app,#modal-root) .cost-empty p{font-size:14px}
:is(#app,#modal-root) .file-type{background:#374064;color:#e5ddff}:is(#app,#modal-root) .file-type.pdf{background:#503148;color:#ffd0d8}:is(#app,#modal-root) :where(.file-type.docx,.file-type.doc,.file-type.txt){background:#243e66;color:#b6dcff}:is(#app,#modal-root) :where(.file-type.xlsx,.file-type.xls){background:#244a48;color:#acf1da}:is(#app,#modal-root) .file-type:after{background:#83a5d9}:is(#app,#modal-root) .document-title{color:#e5f1ff;font-size:14px}:is(#app,#modal-root) .document-meta{color:#b3c6e2;font-size:12px}
#app .ai-panel{background:radial-gradient(ellipse at 90% 5%,#7848b04a,transparent 70%),linear-gradient(120deg,#1c3454,#242244);border-color:#52608e}#app .ai-label{color:#b6ddff;font-size:13px}#app .ai-mode{background:#393a5a;color:#d3ceff;border-color:#73719e}#app .ai-copy h2{font-size:24px;color:#f1f0ff}#app .ai-copy p{color:#bfcdea;font-size:13px}#app .ai-start{background:linear-gradient(100deg,#4072df,#7a5ad4);color:#fff;font-size:14px}#app .ai-quick button{color:#c9dcfa;font-size:12px}#app .ai-orb{filter:hue-rotate(100deg) saturate(1.4)}#app .compliance-panel{background:linear-gradient(135deg,#1c304c,#2b2948);border-color:#45587b}#app .compliance-icon{background:#2a4062;color:#b4ddff}
#app .task-content strong{color:#e3edfb;font-size:13px}#app .task-content>span{color:#adc2e0;font-size:12px}#app .task-action{color:#9cdfff;font-size:12px}#app .dashboard-date,#app .activity-target,#app .activity-row time{color:#b1c4e1;font-size:12px}#app .progress-track,#app .bar-track{background:#263952}#app .progress-track>i,#app .bar-track i{background:linear-gradient(90deg,#5acfff,#8f85ff)}#app .app-footer{color:#9bb3d4;font-size:11px}
/* Dialogs, approvals and annotations */
.modal-backdrop{background:#030814bf;backdrop-filter:blur(7px)}#modal-root .modal{background:linear-gradient(145deg,#18273e,#101b2e);border:1px solid #57739970;box-shadow:0 30px 100px #0007}#modal-root .modal-header h2{color:#f0f6ff;font-size:23px}#modal-root .modal-header{border-color:#364b68}#modal-root .modal-body{color:#c8d9ee;font-size:14px}#modal-root .modal p,#modal-root .modal-description{font-size:13px}#modal-root .field{color:#c0d4ee;font-size:13px}#modal-root .field>span{color:#c0d4ee}#modal-root .consent{color:#c1d7f1;font-size:13px}#modal-root .section-label{color:#d7eaff;font-size:14px}#modal-root .detail-grid dt{color:#a7c1e3;font-size:12px}#modal-root .detail-grid dd{color:#e3efff;font-size:14px}#modal-root .permission-grid{border-color:#405775}#modal-root .permission-grid>div{border-color:#304762;color:#c1d5ee;font-size:13px}#modal-root .permission-grid .permission-head{background:#223650;color:#b6d4f4;font-size:12px}#modal-root .permission-grid input{accent-color:#7bc9ff}#modal-root .contract-text{color:#d6e7fa;font-size:14px}#modal-root .clause-mark.risk{background:#5e3345;color:#ffdde2}#modal-root .clause-mark.attention{background:#574730;color:#ffe8b8}#modal-root .clause-mark.user{background:#2c4972;color:#d8ecff}#modal-root .finding.selected,#modal-root .finding.user-finding{background:#203858;border-color:#5882b3}#modal-root .finding p{color:#c1d4ed}#modal-root .finding strong{color:#e5f1ff}#modal-root .audit-rows small{color:#b1c6e2;font-size:12px}#modal-root .audit-rows strong{color:#d6eaff;font-size:13px}#modal-root .source-details summary{color:#a8dfff;font-size:13px}#modal-root .source-details pre{color:#c6d9f0;font-size:12px}
.toast{background:#1d3550;border:1px solid #6b96c4;color:#edf6ff;font-size:13px;box-shadow:0 10px 40px #0005}.sync-error{color:#ffb0bd!important}.boot-message{color:#b6dcff;background:#080f20}.registration-status{font-size:13px}.registration-table{min-width:660px}
:is(#app,#modal-root) :where(.panel-bottom-note,.progress-label,.progress-label strong,.date-cell,.sub-date,.owner-name,.quick-grid strong,.quick-tip,.activity-row,.activity-row strong,.tender-code,.tender-client,.tender-card-metrics small,.tender-card-metrics em,.tender-card-bottom,.library-completion>span,.document-bottom,.quote-main p,.quote-range span,.cost-legend,.inline-note,.detail-banner p,.review-result-head,.finding-label,.doc-select-list small,.import-file,.architecture-stack span,.bid-attachment small,.audit-summary>small,.ledger-base-counts,.ledger-formula,.notification-plan small,.recognition-batch small,.missing-clause){font-size:12px;color:#b5cae7}
:is(#app,#modal-root) :where(.settings-text,.quote-advice ul,.doc-select-list label,.guide-steps p,.guide-steps strong,.notification-plan strong){font-size:13px;color:#c3d7f0;line-height:1.95}
#app .tender-card .progress-label{font-size:12px;color:#bed1ed}#app .document-card{border-color:#3e5778}#app .table-search{border-color:#415c82}#app .table-search input{border:0;background:transparent}#app .library-overview-icon{background:#254965;color:#a1e3ff}#app .quote-range{border-color:#3e526e}#app .quote-range span,#app .cost-legend,#app .quote-main>span{color:#bfd5f0;font-size:12px}#app .settings-section{color:#d3e8ff;border-color:#3e526e}#app .workflow-strip .icon{color:#98caff}
@media(max-width:1050px){#app .stat-card{padding:17px}#app .stat-value{font-size:32px}#app .stat-bottom{flex-wrap:wrap}}
@media(max-width:800px){#app .topbar{background:#101a30}#app #main-content{padding-top:25px}#app .nav-open .sidebar-overlay{background:#030814bb}}
@media(max-width:620px){#app .page-heading h1{font-size:25px}#app .page-heading p{font-size:12px}#app .stat-card{padding:15px;min-height:155px}#app .stat-value{font-size:31px}#app .stat-top{font-size:12px}#app .stat-bottom,#app .stat-bottom>span:last-child{font-size:11px}#app .global-search{background:transparent;border:0;width:30px}#app .panel-title h2{font-size:14px}#app .heading-actions .btn{font-size:12px}#app .panel-title>span{font-size:11px}#app .app-footer{font-size:10px}#modal-root .modal-header h2{font-size:20px}#modal-root .permission-grid>div{font-size:12px}#modal-root input:not([type=checkbox]):not([type=radio]),#modal-root textarea,#modal-root select{font-size:16px}#app .stat-card:before{left:15px;right:15px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media print{:root{color-scheme:light}body{background:#fff;color:#111}.sidebar,.topbar{display:none!important}#app .app-shell{margin-left:0}:is(#app,#modal-root) :where(.panel,.stat-card,th,td,p,small,h1,h2,h3,strong){background:white;color:#111;box-shadow:none}}
