/* ATR5 approved compact white/blue interface; business rules remain unchanged. */
:root{color-scheme:light;--ink:#17233b;--navy:#243954;--muted:#64748b;--blue:#2563eb;--blue-dark:#1d4ed8;--line:#dfe8f4;--paper:#f4f7fc;--input:#fffbeb;--green:#effaf4;--orange:#fff8ed;--red:#fff1f2;--shadow:0 3px 16px rgba(31,62,115,.035)}
*{box-sizing:border-box}
body{margin:0;background:linear-gradient(160deg,#f8faff,var(--paper) 50%);color:var(--ink);font:14px/1.65 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",Arial,sans-serif;-webkit-font-smoothing:antialiased;font-variant-numeric:tabular-nums}
header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px max(32px,calc((100vw - 1440px)/2 + 32px));background:#fff}
header>div{display:flex;align-items:center;gap:14px;min-width:0}
header>div:last-child{flex-direction:column;align-items:flex-end;gap:6px}
header strong{font-size:23px;font-weight:750;letter-spacing:-.5px}
header #date{color:var(--muted);font-size:12px}
.badge{display:inline-flex;align-items:center;padding:3px 11px;background:#eef4ff;border:1px solid #d8e6ff;color:var(--blue-dark);border-radius:20px;font-size:12px;white-space:nowrap}
nav{display:flex;gap:26px;padding:0 max(32px,calc((100vw - 1440px)/2 + 32px));position:sticky;top:0;z-index:3;background:#fff;border-bottom:1px solid var(--line);overflow-x:auto}
button{font:inherit;font-weight:600;min-height:42px;border:1px solid #d6e2f2;border-radius:8px;padding:9px 16px;background:#fff;color:#33465f;cursor:pointer;white-space:nowrap;transition:background .15s,border-color .15s,box-shadow .15s}
button:hover{background:#f0f6ff;border-color:#a9c6fb}
button:active{background:#e5efff}
button:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}
button:focus-visible,a:focus-visible{outline:3px solid #a8caff;outline-offset:3px}
nav button{background:transparent;min-height:50px;border:0;border-bottom:2px solid transparent;border-radius:0;padding:10px 4px 11px;color:#53647e;font-size:15px}
nav button:hover{color:var(--blue);background:transparent}
nav button.selected{color:var(--blue);border-bottom-color:var(--blue)}
button[type=submit],#refresh,#addwatch{background:var(--blue);color:#fff;border-color:var(--blue);box-shadow:0 3px 8px #2563eb14}
button[type=submit]:hover,#refresh:hover,#addwatch:hover{background:var(--blue-dark);border-color:var(--blue-dark)}
#refresh{display:inline-flex;align-items:center;gap:9px}
#refresh::before{content:"↻";font-size:23px;line-height:1;font-weight:400}
#audit{color:var(--blue-dark);background:#eef5ff;border-color:#c9dcfc;margin-right:8px}
#correctsubmit{color:#92400e;background:#fff8e8;border-color:#f4d7a6}
#correctsubmit:hover{background:#fff0ce}
main{max-width:1440px;margin:auto;padding:20px 32px 28px;min-width:0}
h1{font-size:28px;line-height:1.4;letter-spacing:-.6px;margin:0 0 8px;font-weight:750}
h2{font-size:17px;line-height:1.5;margin:0 0 14px;font-weight:700}
p,small{color:var(--muted)}p{margin:8px 0 16px}.intro{margin:20px 0 24px}.intro p{margin:0}
#returnsummary{font-size:12px;padding:10px 14px;border:1px solid #e2eaf6;background:#edf3fc80;border-radius:8px;margin:0 0 20px;line-height:1.7}
.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}
.card,article{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}
.card{position:relative;padding:21px 22px 19px 64px;min-height:135px}
.card::before{content:"";position:absolute;top:22px;left:18px;width:33px;height:33px;border-radius:50%;background-color:#f0f6ff;background-position:center;background-repeat:no-repeat;background-size:23px}
.card:nth-child(1)::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='m12 3 9 5-9 5-9-5 9-5Zm-9 9 9 5 9-5M3 16l9 5 9-5'/%3E%3C/svg%3E")}
.card:nth-child(2)::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='m12 3 2.8 5.8 6.4.9-4.6 4.5 1.1 6.3-5.7-3-5.7 3 1.1-6.3-4.6-4.5 6.4-.9L12 3Z'/%3E%3C/svg%3E")}
.card:nth-child(3)::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='7'/%3E%3Cpath d='m15 15 6 6'/%3E%3C/svg%3E")}
.card:nth-child(4)::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='m6 3 6 7 6-7M12 10v11M6 11h12M6 16h12'/%3E%3C/svg%3E")}
.card strong{display:block;font-size:29px;font-weight:750;line-height:1.3;margin:8px 0;letter-spacing:-.7px}
.card span{color:var(--muted);font-size:13px}.card span:first-child{font-size:14px;color:#42516a;font-weight:600}
.pnl-negative{color:#087c4b}.pnl-positive{color:#c83245}
article{margin:18px 0;padding:22px;min-width:0}
#home h2::before{content:"";display:inline-block;width:4px;height:16px;border-radius:2px;background:var(--blue);margin-right:10px;vertical-align:-2px}
.tablewrap{overflow:auto;max-height:620px;border:1px solid var(--line);border-radius:9px;scrollbar-width:thin;scrollbar-color:#c1d2e9 #f5f8fc}
table{border-collapse:separate;border-spacing:0;width:100%;white-space:nowrap}
th,td{text-align:center;padding:11px 15px;border-bottom:1px solid #e8eef6;font-size:14px;line-height:1.65;vertical-align:middle}
th{position:sticky;top:0;z-index:1;background:#f1f5fc;color:#405472;font-weight:600}
td{color:#354761}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#f5f9ff}
td small{display:block;color:#738297;font-size:12px;line-height:1.65;min-height:auto}
tr.pass{background:var(--green)}tr.pre{background:var(--orange)}tr.error{background:var(--red)}tr.pass:hover{background:#e8f7ef}tr.pre:hover{background:#fff0d9}
.status-pill{display:inline-block;font-size:12px;line-height:1.6;padding:3px 10px;border-radius:20px;font-weight:600;border:1px solid transparent}
.status-pass{color:#0f6947;background:#def4e8;border-color:#c1e8d5}.status-pre{color:#91500c;background:#fff0d6;border-color:#f5dab0}.status-error{color:#a52437;background:#ffe6ea;border-color:#f7c8d0}.status-neutral{color:#596a83;background:#edf2f8;border-color:#dfe7f1}
td button{min-height:36px;padding:5px 10px;margin:3px;font-size:14px;border-radius:6px}[data-archive]{color:#775749}
.empty{padding:25px 20px;text-align:center;color:#76859b;background:#fafcff;border:1px solid var(--line);border-radius:9px;font-size:14px}
.empty::before{content:"—";display:block;font-size:24px;color:#a8b8d0;margin-bottom:4px}
#syncpanel .muted{color:var(--muted);font-size:13px;line-height:1.8}
#syncpanel button,.rowactions [data-research]{width:104px;height:38px;white-space:nowrap;padding:5px 8px}
.sync-conflict{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line);flex-wrap:wrap}
.sync-conflict>div{display:flex;gap:8px;flex-wrap:wrap}.research-link{display:inline-flex;align-items:center;justify-content:center;width:156px;height:40px;border:1px solid var(--line);border-radius:8px;text-decoration:none}
#researchitems p{white-space:pre-wrap;overflow-wrap:anywhere}
.formgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:start}
label{display:flex;flex-direction:column;gap:7px;font-size:14px;font-weight:600;color:#334760;min-width:0}
input,select{font:inherit;font-weight:400;width:100%;height:46px;min-height:46px;padding:10px 12px;border:1px solid #d6e1ef;border-radius:8px;background:var(--input);color:var(--ink);min-width:0;box-shadow:0 1px 2px #17305703}
select{cursor:pointer;padding-right:26px}input::placeholder{color:#8897ad;opacity:1}input[type=date]{min-height:46px;height:46px;font:inherit;font-weight:400}
input::-webkit-calendar-picker-indicator{cursor:pointer;opacity:.65}input:hover,select:hover{border-color:#abc5e9}input:focus,select:focus{border-color:var(--blue);outline:3px solid #2563eb18;outline-offset:1px}
label small{font-weight:400}small{font-size:12px;min-height:20px}
.check{display:flex;flex-direction:row;align-items:center;gap:9px;margin:14px 0;font-weight:400}
.check input{width:17px;height:17px;min-height:17px;margin:0;padding:0;flex:0 0 17px;accent-color:var(--blue);cursor:pointer}
.sectionhead{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.sectionhead h2{margin:0}.sectionhead .check{margin:0 0 14px}
.inline{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.inline input{flex:1 1 220px;max-width:360px}.inline button{min-height:46px}
#notice:not(:empty){padding:12px 16px;background:#fff8e9;color:#79552d;border:1px solid #f4dfb8;border-radius:8px;margin:0 0 14px;white-space:pre-wrap;overflow-wrap:anywhere}
#tradehint{margin-left:12px;color:var(--muted)}a{color:var(--blue-dark);text-decoration:none;font-size:13px}a:hover{text-decoration:underline}
#screenexport,a[download]{display:inline-block;padding:7px 12px;margin-bottom:10px;border:1px solid #d7e5fb;background:#f1f6ff;border-radius:7px}
.title-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;margin-bottom:8px}.title-actions h1{margin:0}.title-actions #screenexport{margin:0;font-size:14px;font-weight:500;line-height:1.5}
#screenmeta{color:var(--muted);margin-bottom:14px;font-size:13px}#historyselect{max-width:680px;background:#f7faff;margin-bottom:12px}
dl{display:grid;grid-template-columns:125px minmax(0,1fr);gap:14px 22px;margin:0}dt{font-weight:600;color:#334b6b}dd{margin:0;color:var(--muted)}
#jobs td:last-child,#auditdetails p{white-space:normal;min-width:260px;overflow-wrap:anywhere}#auditdetails p{min-width:0}
footer{max-width:1440px;margin:auto;text-align:left;padding:0 32px 28px;color:#8493a8;font-size:12px}[hidden]{display:none!important}
@media(max-width:1050px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}header{padding:18px 24px}nav{padding:0 24px;gap:22px}main{padding:20px 24px}footer{padding:0 24px 24px}}
@media(max-width:760px){header{padding:16px;align-items:flex-start;flex-direction:column;gap:12px}header>div:last-child{flex-direction:row;flex-wrap:wrap;align-items:center;gap:12px}header strong{font-size:20px}header>div{gap:10px;flex-wrap:wrap}nav{padding:0 16px;gap:18px}nav button{font-size:14px;flex-shrink:0;min-height:46px}main{padding:16px}h1{font-size:23px}.intro{margin:18px 0}.cards{gap:10px}.card{padding:16px 12px;min-height:127px}.card::before{display:none}.card strong{font-size:25px}.card span{font-size:12px}article{padding:16px}.formgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}#securitylabel,#lotlabel{grid-column:1/-1}.tablewrap{max-height:500px}th,td{padding:10px 12px}dl{grid-template-columns:1fr;gap:4px}dd{margin-bottom:12px}footer{padding:0 16px 22px}}
@media(max-width:420px){.formgrid{grid-template-columns:minmax(0,1fr)}#returnsummary{font-size:11px}.inline input{max-width:none;flex-basis:100%}.inline button{width:100%}.badge{font-size:11px}}
@media(max-width:760px){td button{min-height:44px;padding:8px 12px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
dialog{width:min(480px,calc(100vw - 32px));padding:24px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);box-shadow:0 16px 60px #1730572b}
dialog::backdrop{background:#13264166}dialog h2{margin-bottom:6px}dialog p{margin:0 0 18px;color:var(--muted);overflow-wrap:anywhere}
textarea{font:inherit;font-weight:400;width:100%;min-height:130px;padding:12px;border:1px solid #d6e1ef;border-radius:8px;background:var(--input);color:var(--ink);resize:vertical}
textarea:focus{border-color:var(--blue);outline:3px solid #2563eb18;outline-offset:1px}.dialogactions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.dialogactions button[value=save]{background:var(--blue);color:#fff;border-color:var(--blue)}
.choice{position:relative;min-width:0;width:100%}.choice-source{display:none}
#passed tr.enhanced td{background:#e8f0ff}#passed tr.enhanced td:first-child{border-left:0}.enhancement-label{display:block;font-size:12px;color:#805b15}.enhancement-label:empty{display:none}.enhanced-label{color:var(--blue);font-weight:600}
.industry-filter{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;margin-bottom:14px;position:relative}.industry-picker{position:relative;flex:0 0 auto;border:1px solid var(--line);border-radius:8px;background:#fff}.industry-picker>summary{list-style:none;padding:9px 36px 9px 12px;font-size:14px;min-height:40px;position:relative}.industry-picker>summary::-webkit-details-marker{display:none}.industry-picker>summary::after{content:'';position:absolute;right:14px;top:15px;width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg)}.industry-picker[open]{border-color:var(--blue);background:#f1f6ff}.industry-picker[open]>summary::after{top:18px;transform:rotate(225deg)}.industry-panel{position:absolute;left:0;top:calc(100% + 8px);width:min(440px,calc(100vw - 80px));z-index:15;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 36px #17305724;overflow:hidden}.industry-panel-head{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--line);font-size:14px}.industry-panel-head span{color:var(--muted)}.industry-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 8px;max-height:248px;overflow-y:auto;padding:8px 12px;overscroll-behavior:contain}.industry-options .check{margin:0;padding:8px;min-height:40px;font-size:14px;border-radius:6px;gap:8px}.industry-options .check:hover{background:#f1f6ff}.industry-options .check:has(input:checked){background:#edf4ff;color:var(--blue)}.industry-options small{display:inline;font-size:13px;color:var(--muted);margin-left:auto;min-height:0}.industry-panel-footer{display:flex;justify-content:space-between;padding:10px 16px;border-top:1px solid var(--line)}.industry-panel-footer button{min-height:36px}.industry-panel-footer button[data-industry-done]{background:var(--blue);color:#fff;border-color:var(--blue)}.industry-selected{color:var(--muted);font-size:14px;flex:1;min-width:100px;overflow-wrap:anywhere}.industry-count{color:var(--muted);font-size:14px;white-space:nowrap}.industry-filter summary:focus-visible{outline:2px solid var(--blue);outline-offset:3px;border-radius:8px}
@media(max-width:760px){.industry-panel{width:min(440px,calc(100vw - 68px))}.industry-selected{display:none}.industry-count{margin-left:auto}}
.industry-filter{display:block;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:#f8faff}.industry-filter-head{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin-bottom:10px;font-size:14px}.industry-filter-head>span{color:var(--muted)}.industry-filter-head>strong{font-size:14px}.industry-filter-head button{min-height:30px;padding:3px 9px;font-size:13px}.industry-filter-head .industry-count{margin-left:auto}.industry-chips{display:flex;flex-wrap:wrap;gap:8px}.industry-chip{display:flex;flex-direction:row;align-items:center;gap:7px;margin:0;padding:7px 10px;min-height:36px;border:1px solid #dce5f0;border-radius:7px;background:#fff;color:var(--ink);font-size:14px;font-weight:400;cursor:pointer}.industry-chip input{width:15px;height:15px;min-height:15px;margin:0;padding:0;accent-color:var(--blue);flex:0 0 15px;cursor:pointer}.industry-chip small{font-size:12px;min-height:0;padding:0 5px;border-radius:4px;background:#edf2f8;color:var(--muted)}.industry-chip:hover{border-color:#9bb8ec}.industry-chip:has(input:checked){background:#edf4ff;border-color:#86aaf0;color:var(--blue)}.industry-chip:has(input:checked) small{background:#dbe8ff;color:var(--blue)}.industry-chip:focus-within{outline:2px solid #2563eb55;outline-offset:1px}
@media(max-width:760px){.industry-filter{padding:10px}.industry-filter-head>span:not(.industry-count){display:none}.industry-chips{gap:6px}.industry-chip{padding:7px 8px}}
.choice-trigger{display:block;width:100%;height:46px;min-height:46px;text-align:left;font-size:14px;font-weight:400;line-height:24px;padding:10px 44px 10px 12px;border:1px solid #d6e1ef;border-radius:8px;background:var(--input);overflow:hidden;text-overflow:ellipsis;position:relative}
.choice-trigger::after{content:'';position:absolute;right:17px;top:18px;width:8px;height:8px;border-right:1.5px solid #64748b;border-bottom:1.5px solid #64748b;transform:rotate(45deg)}
.choice-trigger[aria-expanded=true]{border-color:var(--blue);outline:3px solid #2563eb18}.choice-trigger[aria-expanded=true]::after{top:21px;transform:rotate(225deg)}
.choice-menu{position:fixed;z-index:20;padding:5px;background:#fff;border:1px solid #d6e1ef;border-radius:10px;box-shadow:0 10px 28px #17305721;overflow-y:auto;overscroll-behavior:contain;font-size:14px;font-weight:400}
.search-choice{position:relative;min-width:0;width:100%}.search-choice input{padding-right:44px;max-width:none}.search-arrow{position:absolute;right:1px;top:1px;width:42px;height:44px;min-height:44px;padding:0;background:transparent;border:0;box-shadow:none}.search-arrow::after{content:'';position:absolute;right:17px;top:17px;width:8px;height:8px;border-right:1.5px solid #64748b;border-bottom:1.5px solid #64748b;transform:rotate(45deg)}.inline .search-choice{flex:1 1 220px;max-width:360px}
.choice-option{position:relative;min-height:40px;padding:8px 32px 8px 12px;border-radius:6px;cursor:pointer;white-space:normal;overflow-wrap:anywhere;color:var(--ink)}
.choice-option:hover,.choice-option.highlight{background:#eef4ff}.choice-option[aria-selected=true]{color:var(--blue);font-weight:600}.choice-option[aria-selected=true]::after{content:'✓';position:absolute;right:12px;top:8px}.choice-option[aria-disabled=true]{opacity:.45;cursor:not-allowed}
input[list]{padding-right:44px}input[list]::-webkit-calendar-picker-indicator{opacity:.65;width:16px;margin-right:3px}
input[type=date]{padding-right:10px}input[type=date]::-webkit-calendar-picker-indicator{width:16px;height:16px;margin:0 3px 0 0;padding:0}
#historyselect+.choice-trigger{background:#f7faff}.choice:has(#historyselect){max-width:680px;margin-bottom:12px}
/* Fit records to the available page; narrow screens use labelled vertical rows. */
table{table-layout:fixed;white-space:normal}th,td{padding:10px 8px;overflow-wrap:anywhere}td small{overflow-wrap:anywhere}.status-pill{white-space:normal}
#watchlist th:nth-child(1){width:13%}#watchlist th:nth-child(2){width:12%}#watchlist th:nth-child(3){width:9%}#watchlist th:nth-child(4){width:16%}#watchlist th:nth-child(5){width:10%}#watchlist th:nth-child(6){width:13%}#watchlist th:nth-child(7){width:17%}#watchlist th:nth-child(8){width:10%}
#jobs td:last-child{min-width:0}summary{cursor:pointer;color:var(--blue-dark);font-weight:400;font-size:13px}.rownote{margin-top:4px}.rowactions summary{font-size:14px;min-height:36px;padding:6px 0}.rowactions button{display:block;margin:4px auto;max-width:100%;white-space:normal}
@media(max-width:760px){.tablewrap{overflow-x:hidden;max-height:640px}table,tbody,tr,td{display:block;width:100%}thead{display:none}tbody tr{border-bottom:1px solid var(--line);padding:10px 12px}td{position:relative;min-height:35px;padding:7px 0 7px 40%;text-align:left;border:0}td::before{content:attr(data-label);position:absolute;left:0;top:7px;width:36%;color:var(--muted);font-weight:500;overflow-wrap:anywhere}td small{font-size:12px}.rowactions button{display:inline-block;margin:4px}.tablewrap td:last-child{min-width:0}}
table th,table td,table td small,table td span,table td summary,table td button{font-family:inherit;font-size:14px;line-height:1.65}table td small{font-weight:400}table td .status-pill{font-weight:600}table td .data-note small{margin-top:8px}table td summary{font-weight:400}
td button{max-width:calc(100% - 6px);white-space:normal}
#passed th:nth-child(1){width:14%}#passed th:nth-child(2){width:14%}#passed th:nth-child(3){width:12%}#passed th:nth-child(4){width:22%}#passed th:nth-child(5){width:13%}#passed th:nth-child(6){width:13%}#passed th:nth-child(7){width:12%}
#returnsummary{padding:16px 20px;border-radius:12px;background:#fff;border:1px solid var(--line);font-size:14px;box-shadow:var(--shadow)}.returnhead{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding-bottom:10px;margin-bottom:12px}.returnhead strong{font-size:16px;color:var(--navy)}.returnhead span{color:var(--muted);font-size:14px}.returnmetrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.returnmetrics>div{min-width:0}.returnmetrics span,.returnmetrics small{display:block;color:var(--muted);font-size:14px}.returnmetrics strong{display:block;font-size:23px;margin:4px 0;line-height:1.5}.returnmetrics strong small{display:inline;font-weight:400}.returnmetrics>div+div{border-left:1px solid var(--line);padding-left:20px}
@media(max-width:760px){#returnsummary{font-size:14px;padding:16px}.returnhead{align-items:flex-start;flex-direction:column;gap:4px}.returnmetrics{grid-template-columns:1fr;gap:12px}.returnmetrics>div+div{padding:12px 0 0;border-left:0;border-top:1px solid var(--line)}.inline .search-choice{max-width:none}}
/* Overview is a summary, not a second ledger. */
.return-stats{margin-top:14px;border-top:1px solid var(--line);padding-top:10px}.return-stats>summary{font-size:14px;font-weight:500;width:fit-content;padding:4px 0}.return-statgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:10px;padding:12px;background:#f7faff;border-radius:8px}.return-statgrid span,.return-statgrid strong,.return-statgrid small{display:block;font-size:14px}.return-statgrid small{font-size:12px;min-height:0;line-height:1.6}.return-statgrid strong{margin:4px 0;font-size:18px}.return-stats>summary:focus-visible{outline:2px solid var(--blue);outline-offset:3px;border-radius:3px}@media(max-width:760px){.return-statgrid{grid-template-columns:1fr}}
.overview-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:8px 0 16px}.overview-head h1{margin:0 0 3px}.overview-head p{margin:0;font-size:14px}.overview-boundary{padding:7px 12px;border-radius:8px;background:#edf3fc;color:var(--muted);font-size:13px;white-space:nowrap}
.overview-health{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid #f0dfb6;background:#fff9eb;color:#8a571b;border-radius:9px;padding:10px 16px;margin-bottom:16px}.overview-health small{display:block;font-size:12px;color:#8b795f}.text-link{padding:5px 0;min-height:32px;background:transparent;border:0;box-shadow:none;color:var(--blue);font-weight:500;font-size:14px}.text-link:hover{background:transparent;text-decoration:underline}
#home .cards{margin-bottom:16px}.overview-card{text-align:left;white-space:normal;min-height:122px;font-weight:400;padding-top:18px;padding-bottom:15px}.overview-card:hover{border-color:#abc5ed;background:#f8fbff}.overview-card span{display:block}.overview-card strong{font-size:29px}.overview-card:nth-child(4)::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='1.7'%3E%3Cpath d='M6 3h9l4 4v14H6zM14 3v5h5M9 12h7M9 16h5'/%3E%3C/svg%3E")}
.overview-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:16px}.overview-grid article{margin:0;padding:18px}.overview-sectionhead{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.overview-sectionhead h2{margin:0}#home h2::before{display:none}.overview-hint{margin:14px 0 0;font-size:13px}.overview-opportunity{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--line);font-size:14px}.overview-opportunity small{display:block;font-size:12px;min-height:0}.overview-opportunity .status-pill{flex-shrink:0}#overviewmore{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--muted);font-size:13px;margin-top:10px}.overview-footnote{text-align:center;margin:14px 0 0;font-size:12px}#overviewtodo{margin:0 0 16px;border-color:#f0cf96;background:#fffaf0}#home #returnsummary{margin-bottom:16px}#overviewpositions .tablewrap{max-height:300px}
@media(max-width:1050px){.overview-card{padding-left:60px}}@media(max-width:760px){.overview-grid{grid-template-columns:1fr}.overview-head{align-items:flex-start;flex-wrap:wrap}.overview-boundary{font-size:12px}.overview-health{align-items:flex-start;flex-wrap:wrap;padding:10px 12px}.overview-card{padding:14px 12px;min-height:118px}.overview-card strong{font-size:25px}.overview-sectionhead{gap:8px}.overview-grid article{padding:16px}.overview-footnote{text-align:left}}
/* System manual: shared visual language, independent scroll and no data writes. */
.manual-dialog{width:min(960px,calc(100vw - 32px));max-height:calc(100dvh - 48px);padding:0;overflow:hidden;color:var(--ink,#1c2940)}
.manual-dialog[open]{display:flex;flex-direction:column}
.manual-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 26px 16px;border-bottom:1px solid #e1eaf6}
.manual-header h2{margin:0;font-size:22px}.manual-header p{margin:6px 0 0;font-size:13px;color:#71839e}.manual-header button{flex-shrink:0}
.manual-toolbar{padding:16px 26px;background:#f7faff;border-bottom:1px solid #e1eaf6}
.manual-toolbar>label{display:block;font-size:13px;margin-bottom:6px}.manual-toolbar>input{width:100%;box-sizing:border-box;background:white}
.manual-tabs{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.manual-tabs button{font-size:13px;padding:8px 11px;margin:0;background:white;color:#536783}
.manual-tabs button[aria-pressed=true]{background:#eaf2ff;border-color:#8bb5ff;color:#245ee8}
.manual-toolbar p{font-size:12px;color:#71839e;margin:10px 0 0}
.manual-content{overflow:auto;min-height:0;padding:8px 26px 24px;overscroll-behavior:contain}
.manual-section h3{font-size:17px;margin:18px 0 12px;color:#1c2940}.manual-section dl{margin:0;display:block}.manual-section dt{font-size:14px;font-weight:650;color:#344b69;margin:18px 0 6px}.manual-section dd{margin:0;line-height:1.8;font-size:14px;color:#536783;overflow-wrap:anywhere}
@media(max-width:600px){.manual-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 24px)}.manual-header{padding:16px}.manual-toolbar{padding:12px 16px}.manual-content{padding:0 16px 18px}.manual-header h2{font-size:20px}.manual-tabs{gap:6px}.manual-tabs button{padding:7px 8px;font-size:12px}}

/* Approved sample system: shared tokens, restrained density, no external assets. */
:root{--ink:#1e2d44;--muted:#58677c;--blue:#245ed9;--blue-dark:#1b4cba;--line:#dce5f1;--paper:#f5f7fb;--input:#fff;--shadow:none;--action-height:40px;--control-height:44px}
body{background:var(--paper);font-size:14px;line-height:1.65}
::selection{background:#dbe8ff;color:var(--ink)}
*{scrollbar-color:#b6c6dd #f4f7fb;scrollbar-width:thin}
header{padding-top:20px;padding-bottom:16px}
header strong{font-size:22px;letter-spacing:-.02em}
#headeractions{display:flex;align-items:center;gap:10px}
button{height:var(--action-height);min-height:var(--action-height);padding:8px 14px;font-size:14px;font-weight:600;line-height:22px;border-radius:8px;border-color:#bacdec;color:var(--blue);box-shadow:none}
button:hover{background:#f1f5ff;border-color:#8eade1}
button:disabled{opacity:1;color:#657184;background:#f2f4f8;border-color:#dce3ed}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
button.primary,button[type=submit],#refresh,#addwatch,#submittrade,#correctsubmit{background:var(--blue);border-color:var(--blue);color:white;box-shadow:none}
button.primary:hover,button[type=submit]:hover,#refresh:hover,#addwatch:hover,#submittrade:hover,#correctsubmit:hover{background:var(--blue-dark);border-color:var(--blue-dark)}
button.primary:disabled,button[type=submit]:disabled,#submittrade:disabled,#correctsubmit:disabled,#addwatch:disabled{background:#f2f4f8;color:#657184;border-color:#dce3ed}
#refresh::before{content:'';width:18px;height:18px;background:center/18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11a8 8 0 1 0-2 6M20 4v7h-7'/%3E%3C/svg%3E")}
nav{gap:28px;z-index:4}nav button{height:48px;min-height:48px;font-size:14px;border-bottom-width:2px;color:var(--muted);font-weight:500}
main{padding-top:24px}h1{font-size:26px;letter-spacing:-.025em}h2{font-size:17px;margin-bottom:14px}h2::before{display:none!important}
article{padding:24px;margin:0 0 20px;border-radius:12px;box-shadow:none}
.intro{margin:4px 0 24px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.page-heading h1{margin-bottom:4px}.page-heading p{margin:0}.page-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}
input:not([type=checkbox]),select,textarea{background:white;color:var(--ink);border:1px solid #c7d2e2;border-radius:8px;font:inherit;caret-color:var(--blue)}
input:not([type=checkbox]),select{height:var(--control-height);min-height:var(--control-height);width:100%;padding:10px 12px;max-width:none}
input::placeholder,textarea::placeholder{color:#626d7e}input:focus,textarea:focus{outline:2px solid #245ed940;border-color:var(--blue)}
label{font-size:14px;font-weight:600}.check{font-weight:400;display:flex;align-items:flex-start;gap:8px;margin:14px 0;line-height:1.6}.check input{width:16px;height:16px;flex-shrink:0;margin:4px 0 0;accent-color:var(--blue)}
.choice-trigger{height:44px;min-height:44px;background:white;border-color:#c7d2e2;color:var(--ink);font-weight:400}.choice-trigger::after{top:16px}.choice-trigger[aria-expanded=true]::after{top:19px}
.choice-source{display:none!important}.choice-menu{z-index:40;color:var(--ink);border-color:#c7d2e2}.choice-option{min-height:40px;font-size:14px}.choice-option[aria-selected=true]::after{content:'';width:12px;height:7px;border-left:2px solid var(--blue);border-bottom:2px solid var(--blue);transform:rotate(-45deg);top:14px}
.search-arrow{height:42px;min-height:42px;color:var(--muted)}.search-arrow:hover{background:#f1f5ff}
.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.formgrid>label{min-width:0}.formgrid label small{font-size:12px;min-height:0;margin-top:6px;font-weight:400}.full-field{grid-column:1/-1}
.entry-dialog{width:min(620px,calc(100vw - 32px));max-height:calc(100dvh - 48px);padding:0;border:0;border-radius:12px;background:white;color:var(--ink);overflow:visible;box-shadow:0 20px 70px #1e2d4433}
.entry-dialog[open]{display:flex;flex-direction:column}.entry-dialog::backdrop{background:#1e2d4466}.entry-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:22px 24px;border-bottom:1px solid var(--line);flex-shrink:0}.entry-head h2{margin:0;font-size:19px}.entry-head p{margin:4px 0 0;font-size:12px}.entry-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:24px}.entry-body>p{font-size:13px;margin-top:0}.entry-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px;padding-top:16px;border-top:1px solid var(--line)}.entry-status:empty{display:none}.entry-status{color:#a23142;background:#fff2f4;border-radius:8px;padding:10px;font-size:13px}.entry-status.success{color:#156647;background:#eff8f3}
.module-details>summary{font-size:16px;font-weight:600;padding:2px 0}.module-body{padding-top:20px}.module-body>label{display:block;margin-bottom:8px}
table th,table td,table td small,table td span,table td summary,table td button{font-size:14px;line-height:1.6}table th{font-size:13px;font-weight:600;color:#4c5d74}table td small{font-size:12px;margin-top:4px;color:var(--muted)}table th,table td{padding:14px 10px}.tablewrap{border-radius:10px;box-shadow:none;max-height:680px}.status-pill{font-size:12px!important;border-radius:5px;font-weight:600}.tablewrap button{margin:0;font-size:14px}.tablewrap td{min-width:0}
.sectionhead{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.sectionhead h2{margin:0}.sectionhead .check{margin:0;font-size:13px}
.rowactions button{margin:6px auto}.rowactions summary{font-size:14px}.data-note small{line-height:1.7}.position-details{text-align:left;max-width:200px;margin:auto}.position-details summary{text-align:center}.position-details dl{display:block;margin:8px 0}.position-details dt{font-size:12px;color:var(--muted);font-weight:400}.position-details dd{margin:2px 0 10px;font-size:14px}.position-details .position-amount{font-size:14px}
#positions th:nth-child(1){width:18%}#positions th:nth-child(2){width:8%}#positions th:nth-child(3){width:13%}#positions th:nth-child(4){width:13%}#positions th:nth-child(5){width:14%}#positions th:nth-child(6){width:14%}#positions th:nth-child(7){width:10%}#positions th:nth-child(8){width:10%}
#fills th:nth-child(1){width:18%}#fills th:nth-child(2){width:8%}#fills th:nth-child(3){width:14%}#fills th:nth-child(4){width:12%}#fills th:nth-child(5){width:9%}#fills th:nth-child(6){width:10%}#fills th:nth-child(7){width:13%}#fills th:nth-child(8){width:16%}
.industry-filter{background:transparent;border:0;padding:0;margin:20px 0}.industry-filter-head{font-size:13px;margin-bottom:10px}.industry-chip{min-height:40px;border-radius:8px;padding:8px 12px;font-size:14px}.industry-chip small{font-size:12px}.industry-chip input{width:16px;height:16px}.industry-chip:has(input:checked){background:#edf3ff;color:var(--blue)}
.returnhead span{font-size:12px}.returnmetrics strong{font-size:28px}.returnmetrics span{font-size:14px}.returnmetrics small{font-size:12px}.returnmetrics strong small{font-size:14px}#returnsummary{padding:24px;background:white;box-shadow:none}.return-stats{margin-top:18px}
.overview-health{background:#fff9eb;border-color:#ecdfc5;margin-bottom:20px;font-size:13px}.overview-head{margin:4px 0 20px}.overview-boundary{background:transparent;padding:0;font-size:12px}.overview-head p{font-size:13px}
#home .cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border:1px solid var(--line);border-radius:12px;background:white;padding:20px 0;margin-bottom:20px}
#home .overview-card{border:0;border-radius:0;background:transparent;padding:0 24px;min-height:0;height:auto;text-align:left;box-shadow:none}#home .overview-card::before{display:none}#home .overview-card+button{border-left:1px solid var(--line)}#home .overview-card strong{font-size:24px;margin:4px 0}#home .overview-card span{font-size:12px}#home .overview-card span:first-child{font-size:14px;font-weight:600;color:var(--ink)}
.overview-grid{display:block}.overview-grid article{padding:24px}.overview-grid article:last-child{margin-top:20px}.overview-grid article:first-child{margin:0}.overview-sectionhead{margin-bottom:16px}.overview-opportunity{display:inline-flex;vertical-align:top;border:0;margin-right:24px;padding:8px 0;gap:12px}.overview-opportunity small{min-height:0}#overviewmore{border-top:1px solid var(--line);padding-top:10px}
#overviewtodo{background:white;border-color:#e8dac2;margin-bottom:20px;padding:20px 24px}.overview-footnote{margin:20px 0;font-size:12px}.text-link{height:auto;min-height:32px;color:var(--blue);padding:4px 0}a{color:var(--blue);text-underline-offset:3px}
.manual-header{padding:22px 24px}.manual-header h2{font-size:19px}.manual-header p,.manual-toolbar p{color:var(--muted)}.manual-tabs button{height:40px;min-height:40px;font-size:14px;color:var(--muted)}.manual-toolbar{background:#f5f7fb}.manual-section dd{color:var(--muted)}
@media(max-width:1100px){header,nav{padding-left:24px;padding-right:24px}main{padding-left:24px;padding-right:24px}#positions table,#positions tbody,#positions tr,#positions td{display:block;width:100%}#positions thead{display:none}#positions tr{padding:14px 16px;border-bottom:1px solid var(--line)}#positions td{position:relative;border:0;text-align:right;padding:6px 0 6px 36%}#positions td::before{content:attr(data-label);position:absolute;left:0;top:6px;width:32%;text-align:left;color:var(--muted);font-size:12px}.position-details{margin:0 0 0 auto}.position-details summary{text-align:right}}
@media(max-width:760px){header{padding:16px;align-items:flex-start;gap:12px;flex-wrap:wrap}header>div:last-child{width:100%;align-items:flex-start}header strong{font-size:20px}#headeractions{width:100%}#headeractions button{flex:1}header #date{font-size:12px}nav{gap:12px;padding:0 16px}nav button{font-size:13px;height:44px;min-height:44px;flex-shrink:0}main{padding:20px 16px}h1{font-size:23px}article{padding:18px;margin-bottom:16px}.page-heading{align-items:flex-start;flex-wrap:wrap;gap:14px}.page-actions{margin-left:auto}.page-heading>button{margin-left:auto}.entry-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}.entry-head{padding:18px}.entry-body{padding:18px}.formgrid{gap:18px}.formgrid label small{min-height:0}.entry-actions{flex-wrap:wrap}.tablewrap{overflow-x:hidden}table td{padding:7px 0 7px 40%}table td::before{font-size:12px}#positions td{padding-left:40%}#positions td::before{width:36%}.rowactions button{margin:6px 4px}.sectionhead{flex-wrap:wrap}#home .cards{grid-template-columns:repeat(2,minmax(0,1fr));padding:0}#home .overview-card{padding:18px;border:0}#home .overview-card:nth-child(2n){border-left:1px solid var(--line)}#home .overview-card:nth-child(n+3){border-top:1px solid var(--line)}.overview-grid article,.overview-grid article:first-child{padding:18px}.overview-health{padding:12px;font-size:12px}.overview-opportunity{display:flex;margin:0;padding:10px 0}#returnsummary{padding:18px}.returnmetrics strong{font-size:26px}#overviewtodo{padding:18px}.overview-sectionhead{flex-wrap:wrap}.position-details{max-width:none}.manual-header{padding:16px}.manual-tabs button{font-size:13px;padding:8px 10px}}
@media(max-width:420px){.formgrid{grid-template-columns:1fr}.full-field{grid-column:auto}.page-actions button{padding:8px 12px}#home .overview-card{padding:16px}.entry-head p{max-width:220px}}
@media(prefers-reduced-motion:reduce){button{transition:none}}
footer{color:var(--muted)}
dialog{border:0}
tr.enhanced td:first-child{border-left:0}
.enhancement-score{display:block;font-size:12px;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums;line-height:1.65}
.enhancement-score.enhanced-label{color:var(--blue)}
.industry-chip input[type=radio]{width:16px;height:16px;min-height:16px;padding:0;margin:0;flex:0 0 16px}
.industry-filter-head>button[data-clear-industries]{display:inline-flex;align-items:center;justify-content:center;height:40px;min-height:40px;padding:3px 9px}
.industry-mode{display:inline-flex;align-items:center;gap:2px;height:40px;padding:3px;border:1px solid var(--line);border-radius:8px;background:#fff;flex-shrink:0}
.industry-mode button{height:32px;min-height:32px;line-height:22px;padding:4px 10px;border:0;border-radius:5px;font-size:13px;color:var(--muted);background:transparent}
.industry-mode button[aria-pressed="true"]{color:var(--blue);background:#edf3ff}
.security-copy{font:inherit;color:inherit;min-height:0;max-width:100%;padding:0;border:0;border-radius:3px;background:transparent;white-space:normal;text-decoration:underline;text-decoration-color:#bccce2;text-underline-offset:3px;cursor:pointer}
.security-copy:hover,.security-copy:active{color:var(--blue);background:transparent;text-decoration-color:currentColor}
.copy-feedback{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:20;max-width:calc(100vw - 32px);padding:10px 18px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);box-shadow:0 6px 24px #24395420;pointer-events:none}
@media(max-width:760px){.entry-actions{position:sticky;bottom:-18px;background:white;z-index:2;padding:14px 0 18px;margin-bottom:-18px}}
#sourcealert{margin-bottom:16px;padding:14px 18px;border:1px solid #edcf9b;border-radius:12px;background:#fff8eb;color:#855513;font-size:14px;line-height:1.6}
/* ── >>> RI_REPORTS_UI_V1 报告浮窗样式 <<< ── */
/* 逆向洞察报告浮窗：左日期栏 + 右报告正文（正文 CSS 由 /api/reports/css 提供，
   服务端已加 #ridialog 作用域前缀，这里只负责浮窗外壳） */
.report-button{background:var(--blue);color:#fff;border-color:var(--blue)}
/* 🔴 必须给出确定高度：只写 max-height 时弹窗高度由内容决定，
   内部 .rd-body/.rd-main 的 flex:1 没有可分配空间 → main 高度塌成 0
   （实测窄视口 main=488x0，正文区整片空白）。固定高度 + 内部各自滚动才稳定。 */
.report-dialog{width:min(1180px,calc(100vw - 32px));height:calc(100dvh - 40px);
 max-height:calc(100dvh - 40px);
 padding:0;border:0;border-radius:14px;background:#fff;color:var(--ink,#1c2940);
 overflow:hidden;box-shadow:0 24px 80px #1e2d4433}
.report-dialog[open]{display:flex;flex-direction:column}
.report-dialog::backdrop{background:#1e2d4466}
.rd-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;
 padding:16px 20px;border-bottom:1px solid var(--line,#dfe5ee);flex-shrink:0}
.rd-head h2{margin:0;font-size:19px}
.rd-head p{margin:4px 0 0;font-size:12px;color:var(--muted,#5a6b85)}
/* 标题栏元信息独立成行：批次/候选数/生成时刻/数据更新只在此处出现一次 */
.rd-head .rd-meta{margin:5px 0 0;font-size:12px;line-height:1.5;
 color:var(--muted,#5a6b85);font-variant-numeric:tabular-nums}
.rd-head .rd-meta:empty{display:none}
.rd-head-actions{display:flex;gap:8px;flex-shrink:0}
.rd-head-actions button{font-size:13px;min-height:34px;padding:6px 12px}
.rd-body{display:flex;min-height:0;min-width:0;flex:1;overflow:hidden}
.rd-side{width:184px;min-width:184px;flex:0 0 184px;border-right:1px solid var(--line,#dfe5ee);
 overflow:auto;overscroll-behavior:contain;background:#fafbfd}
.rd-side h3{margin:0;padding:14px 16px 8px;font-size:12px;font-weight:600;
 color:var(--muted,#5a6b85);letter-spacing:.03em;white-space:nowrap}
/* 左栏是 flex 容器 + 定宽侧栏：显式声明列向与不换行，避免标题被逐字竖排 */
.rd-side{display:flex;flex-direction:column;align-items:stretch}
.rd-days{list-style:none;margin:0;padding:0 8px 16px}
.rd-days button{display:block;width:100%;text-align:left;font-size:13px;white-space:nowrap;
 min-height:38px;padding:8px 10px;margin-bottom:4px;border:1px solid transparent;
 border-radius:8px;background:transparent;color:var(--ink,#1c2940)}
.rd-days button:hover{background:#eef3fb}
/* 日期按钮两行式：第一行批次日，第二行「生成时刻 · 只数 · A/B 数」
   —— 时间必须标注出来，否则用户无法判断这是哪一次运行的结论 */
.rd-days button{display:flex;flex-direction:column;gap:2px;align-items:flex-start}
.rd-d1{font-weight:600;font-size:13px;line-height:1.3;white-space:nowrap}
.rd-d2{font-size:10px;color:var(--muted,#5a6b85);line-height:1.3;white-space:nowrap;
 font-variant-numeric:tabular-nums;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.rd-days button[aria-current="true"] .rd-d2{color:var(--blue);opacity:.85}
.rd-days button[aria-current="true"]{background:#edf3ff;border-color:#c9dbf6;color:var(--blue)}
/* 本批概览：常显在日期列表下方，把原先的大片空置填成有效信息 */
.rd-side-brief{margin:0 12px 12px;padding-top:10px;border-top:1px solid var(--line,#dfe5ee)}
.rd-side-brief h4{margin:0 0 4px;font-size:11px;font-weight:600;color:var(--muted,#5a6b85);
 letter-spacing:.03em}
.rd-brief-list{list-style:none;margin:0;padding:0}
.rd-brief-list li{display:flex;justify-content:space-between;gap:8px;font-size:11px;
 line-height:1.85;color:var(--muted,#5a6b85)}
.rd-brief-list li b{color:var(--ink,#1c2940);font-weight:600;font-variant-numeric:tabular-nums}
/* 报告口径：折入左栏底部并默认收起（原常驻说明文字既挤占视觉又留下大片空置） */
.rd-side-help{margin:0 12px 12px;border-top:1px solid var(--line,#dfe5ee);padding-top:10px}
.rd-side-help>summary{cursor:pointer;font-size:11px;color:var(--muted,#5a6b85);
 list-style:none;letter-spacing:.03em}
.rd-side-help>summary::-webkit-details-marker{display:none}
.rd-side-help>summary:before{content:"▸";margin-right:6px;color:#b9c2d0;display:inline-block}
.rd-side-help[open]>summary:before{transform:rotate(90deg)}
.rd-side-help p{margin:6px 0 0;font-size:11px;line-height:1.6;color:var(--muted,#5a6b85)}
/* 🔴 左栏文本一律禁止断行：容器被极端压缩时宁可省略号，也绝不能退化成「逐字竖排」
   （用户报障的截图就是「本批概览」四个字竖着排） */
.rd-side h3,.rd-side .rd-d1,.rd-side .rd-d2,
.rd-side-brief h4,.rd-brief-list li,.rd-brief-list li span,.rd-brief-list li b,
.rd-side-help>summary{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rd-side-brief,.rd-side-help{min-width:0}
/* 🔴 min-height:0 是 flex column 布局的必需项：缺它时 .rd-main 的 min-height 为 auto，
   会拒绝收缩到内容高度以下 → 窄屏上下布局时正文区被顶出可视范围（表现为「右侧/下方空白」）。 */
.rd-main{min-width:0;min-height:0;flex:1 1 0;overflow:auto;overscroll-behavior:contain;background:#fff}
.rd-status{padding:14px 18px;font-size:13px;color:var(--muted,#5a6b85)}
.rd-status.error{color:#a23142;background:#fff2f4;border-radius:8px;margin:14px 18px}
.rd-status:empty{display:none}
/* #ridialog 是报告内容的作用域根，由 /api/reports/css 的规则命中 */
.rd-report{padding:0}
/* 浮窗内不重复报告自带的大标题与元信息行（标题栏已承担同一信息）；
   独立窗口打开时不加载 web/style.css，故不受影响 */
.rd-report h1{display:none}
.rd-report .ri-sub{display:none}
/* 双保险：报告内容若出现与宿主同名的类（.card / .empty 等），
   屏蔽宿主为它们定义的装饰（实测 .card::before 会给明细卡片加圆底图标） */
.rd-report .card::before,.rd-report .empty::before{display:none}
.rd-report .ri-head{border-radius:0;border-left:0;border-right:0;border-top:0;margin-bottom:12px}
/* 阈值由 760 提到 860：窄屏左右布局会同时挤坏侧栏与正文，不如早切上下布局 */
@media(max-width:860px){.report-dialog{width:calc(100vw - 16px);
 height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}
.rd-head{flex-wrap:wrap;padding:14px 16px}.rd-head h2{font-size:17px}
.rd-head-actions{width:100%}.rd-head-actions button{flex:1}
.rd-side{width:auto;min-width:0;flex:0 1 auto;max-height:38vh;border-right:0;
 border-bottom:1px solid var(--line,#dfe5ee)}
.rd-body{flex-direction:column}}
/* ── >>> end RI_REPORTS_UI_V1 <<< ── */
