/* Excel Link tab */
.xl-wrap{display:flex;flex-direction:column;gap:14px;font-variant-numeric:tabular-nums}
.xl-intro{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}
.xl-intro h2{margin:2px 0 4px;font-size:19px;color:var(--ink,#12223f)}
.xl-intro p{margin:0;color:var(--muted,#5b6a80);font-size:13.5px;max-width:720px;line-height:1.5}
.xl-actions{display:flex;gap:8px;flex-wrap:wrap}
.xl-actions .btn,.xl-acts .btn{white-space:nowrap;text-decoration:none;display:inline-flex;align-items:center}
.xl-back{background:none;border:0;color:var(--cyan-dk,#1180b0);font-size:13px;padding:0;cursor:pointer;margin-bottom:4px}
.xl-card{background:#fff;border:1px solid var(--line,#d9e1eb);border-radius:12px;padding:14px 16px}
.xl-card h3{margin:0 0 10px;font-size:15px;color:var(--ink,#12223f)}
.xl-card summary{cursor:pointer;display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;list-style:none}
.xl-card summary::-webkit-details-marker{display:none}
.xl-card summary h3{margin:0}
.xl-cardhead{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:8px}
.xl-cardhead h3{margin:0}
.xl-muted{color:var(--muted,#5b6a80);font-size:12.5px}
.xl-proj{margin:-6px 0 0}
.xl-scroll{overflow-x:auto}
.xl-table{width:100%;border-collapse:collapse;font-size:13px}
.xl-table th{text-align:left;font-weight:600;color:var(--muted,#5b6a80);font-size:12px;border-bottom:1px solid var(--line,#d9e1eb);padding:7px 8px;white-space:nowrap}
.xl-table td{border-bottom:1px solid #eef2f7;padding:7px 8px;vertical-align:top}
.xl-table td small{display:block;color:var(--muted,#5b6a80);font-size:11.5px;margin-top:2px}
.xl-table .n{text-align:right;white-space:nowrap}
.xl-table tfoot td{font-weight:600;border-top:2px solid var(--line,#d9e1eb);border-bottom:0}
.xl-list tbody tr{cursor:pointer}
.xl-list tbody tr:hover,.xl-list tbody tr:focus{background:var(--cyan-tint,#e8f5fc);outline:none}
.xl-sec{cursor:pointer;background:var(--soft,#f5f8fb);font-weight:600}
.xl-sec td small{font-weight:400}
.xl-tg{border:0;background:none;cursor:pointer;width:18px;color:var(--ink2,#1b3664);padding:0}
.xl-head td{font-size:11.5px;font-weight:600;letter-spacing:.03em;color:var(--ink2,#1b3664);padding-top:10px;text-transform:uppercase}
.xl-item td:first-child{padding-left:28px}
.xl-code{display:inline-block;min-width:42px;color:var(--muted,#5b6a80)}
.xl-desc{display:inline;white-space:pre-line}
.xl-build td{font-size:12px;color:#44546b;background:#fbfcfe}
.xl-build td:first-child{padding-left:56px}
.xl-table tr.cur td{background:var(--cyan-tint,#e8f5fc)}
.low{color:#b3261e}
.xl-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}
.xl-kpi{background:#fff;border:1px solid var(--line,#d9e1eb);border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:3px}
.xl-kpi span{font-size:12px;color:var(--muted,#5b6a80)}
.xl-kpi strong{font-size:18px;color:var(--ink,#12223f)}
.xl-kpi em{font-style:normal;font-size:11.5px;color:var(--muted,#5b6a80)}
.xl-kpi.good strong{color:#1e7a46}
.xl-kpi.low strong{color:#b3261e}
.xl-checks{background:#fff;border:1px solid var(--line,#d9e1eb);border-radius:12px;padding:14px 16px}
.xl-checks h3{margin:0 0 8px;font-size:15px}
.xl-checks h3 small{font-weight:400;color:var(--muted,#5b6a80);font-size:12.5px;margin-left:6px}
.xl-checks ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.xl-checks li{display:flex;gap:10px;align-items:flex-start;font-size:13px;padding:8px 10px;border-radius:8px}
.xl-checks li small{display:block;color:var(--muted,#5b6a80);font-size:11.5px;margin-top:2px}
.xl-checks li .dot{width:9px;height:9px;border-radius:50%;margin-top:5px;flex:none}
.xl-checks li.red{background:#fdf0ef}.xl-checks li.red .dot{background:#c62828}
.xl-checks li.amber{background:#fff7e6}.xl-checks li.amber .dot{background:#d98a00}
.xl-ok{background:#ecf7f0;border:1px solid #cbe8d6;color:#1e6b3f;border-radius:12px;padding:10px 14px;font-size:13px}
.xl-pill{display:inline-block;font-size:11.5px;font-weight:600;border-radius:999px;padding:2px 8px;margin-right:4px;white-space:nowrap}
.xl-pill.red{background:#fdecea;color:#b3261e}.xl-pill.amber{background:#fff3d6;color:#8a5a00}.xl-pill.ok{background:#e6f4ec;color:#1e6b3f}
.xl-src{display:inline-block;font-size:11.5px;font-weight:600;border-radius:6px;padding:2px 7px;background:#eef2f7;color:#44546b;white-space:nowrap}
.xl-src.sharepoint{background:var(--cyan-tint,#e8f5fc);color:var(--cyan-dk,#1180b0)}
.xl-tag{font-size:11px;font-weight:600;border-radius:5px;padding:1px 6px;background:#eef2f7}
.xl-tag.added{background:#e6f4ec;color:#1e6b3f}.xl-tag.removed{background:#fdecea;color:#b3261e}.xl-tag.price,.xl-tag.cost{background:#fff3d6;color:#8a5a00}
.xl-bar{display:inline-block;width:60px;height:6px;background:#eef2f7;border-radius:3px;margin-right:6px;vertical-align:middle;overflow:hidden}
.xl-bar i{display:block;height:100%;background:var(--cyan,#20a3de)}
.xl-busy,.xl-err,.xl-note,.xl-banner{border-radius:10px;padding:9px 12px;font-size:13px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.xl-busy{background:var(--cyan-tint,#e8f5fc);color:var(--ink2,#1b3664)}
.xl-err{background:#fdecea;color:#8c1d18}
.xl-note{background:#ecf7f0;color:#1e6b3f}
.xl-banner{background:#fff7e6;color:#6b4700}
.xl-spin{width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:xlspin .8s linear infinite}
@keyframes xlspin{to{transform:rotate(360deg)}}
.xl-empty{background:#fff;border:1px dashed var(--line,#d9e1eb);border-radius:12px;padding:22px;text-align:center;color:var(--muted,#5b6a80)}
.xl-empty strong{color:var(--ink,#12223f);font-size:15px}
.xl-modal{position:fixed;inset:0;background:rgba(18,34,63,.35);display:flex;align-items:center;justify-content:center;z-index:1000;padding:16px}
.xl-dialog{background:#fff;border-radius:14px;width:min(640px,100%);max-height:86vh;display:flex;flex-direction:column;gap:10px;padding:16px;box-shadow:0 10px 40px rgba(18,34,63,.25)}
.xl-dhead{display:flex;justify-content:space-between;align-items:center}
.xl-search{border:1px solid var(--line,#d9e1eb);border-radius:8px;padding:9px 10px;font-size:14px}
.xl-flist{overflow:auto;display:flex;flex-direction:column;gap:6px}
.xl-file{text-align:left;border:1px solid var(--line,#d9e1eb);background:#fff;border-radius:9px;padding:9px 11px;cursor:pointer;display:flex;flex-direction:column;gap:2px}
.xl-file:hover{border-color:var(--cyan,#20a3de);background:var(--cyan-tint,#e8f5fc)}
.xl-file:disabled{opacity:.55;cursor:default}
.xl-fname{font-weight:600;color:var(--ink,#12223f);font-size:13.5px}
.xl-fmeta{font-size:12px;color:var(--muted,#5b6a80)}
@media (max-width:640px){.xl-item td:first-child{padding-left:12px}.xl-build td:first-child{padding-left:24px}.xl-kpi strong{font-size:16px}}

/* AI proof-check */
.xl-ai .xl-ai-sum{margin:0 0 12px;font-size:14px;line-height:1.55}
.xl-ai-list{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:8px}
.xl-ai-list li{display:grid;grid-template-columns:12px 1fr;gap:10px;align-items:start;font-size:13.5px;line-height:1.45}
.xl-ai-list .dot{width:10px;height:10px;border-radius:50%;margin-top:5px;background:#94a3b8}
.xl-ai-list li.red .dot{background:#c2410c}.xl-ai-list li.amber .dot{background:#d97706}.xl-ai-list li.ok .dot{background:#15803d}
.xl-ai-list em{display:block;font-style:normal;color:#334155;margin-top:2px}
.xl-ai-list small{display:block;color:#64748b;font-size:12px;margin-top:2px}
.xl-ai-sub{border-top:1px solid #e2e8f0;padding:10px 0}
.xl-ai-sub summary{cursor:pointer;font-weight:600}.xl-ai-sub summary small{font-weight:400;color:#64748b;margin-left:6px}
.xl-ai-words{list-style:none;margin:10px 0;padding:0;display:grid;gap:8px}
.xl-ai-words label{display:grid;grid-template-columns:20px 1fr;gap:8px;cursor:pointer;font-size:13.5px}
.xl-ai-words small{display:block;color:#64748b;font-size:12px}
.xl-ai-words s{display:block;color:#94a3b8}
.xl-ai-words b{display:block;font-weight:500}
.xl-ai-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.xl-ai-scope{margin:8px 0}.xl-ai-scope label{display:block;font-weight:600;font-size:13px;margin-bottom:4px}
.xl-ai-scope textarea{width:100%;box-sizing:border-box;font:inherit;padding:8px;border:1px solid #cbd5e1;border-radius:8px}
.xl-linkbtn{background:none;border:0;color:#2457e6;cursor:pointer;padding:0;font:inherit;text-decoration:underline}
.xl-table td.up{color:#c2410c}.xl-table td.down{color:#1d4ed8}
