*{box-sizing:border-box}
body{margin:0;font:14px/1.4 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:#1d2733;background:#f4f6f8}
header{background:#123a5c;color:#fff;padding:14px 22px}
header h1{margin:0;font-size:20px}
header .sub{margin:4px 0 0;opacity:.85;font-size:13px}
main{display:flex;gap:20px;padding:18px 22px;align-items:flex-start;flex-wrap:wrap}
form{flex:0 0 380px;max-width:100%}
fieldset{border:1px solid #cdd6df;background:#fff;border-radius:6px;margin:0 0 12px;padding:10px 12px}
legend{font-weight:600;padding:0 4px;color:#123a5c}
label{display:block;margin:6px 0;font-size:13px}
select,input[type=number],textarea{width:100%;padding:5px 6px;border:1px solid #b9c4cf;border-radius:4px;font:inherit;margin-top:2px;background:#fff}
textarea{font-family:ui-monospace,Menlo,Consolas,monospace;resize:vertical}
.row{display:flex;gap:8px;flex-wrap:wrap}
.row>label{flex:1 1 70px}
.checks label{flex:0 0 auto;display:flex;align-items:center;gap:5px}
.checks input{margin:0}
.hint{font-size:12px;color:#5b6876;margin:4px 0}
.buttons{display:flex;flex-wrap:wrap;gap:8px}
button{padding:7px 12px;border:1px solid #8aa0b5;background:#fff;border-radius:4px;font:inherit;cursor:pointer}
button.primary{background:#1f6fb2;color:#fff;border-color:#1f6fb2;font-weight:600}
button:disabled{opacity:.45;cursor:default}
#out{flex:1 1 600px;min-width:300px}
#status{margin:0 0 8px;color:#334}
#status.err{color:#b00020}
canvas{max-width:100%;height:auto;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.15)}
#info{font-size:12px;color:#445;margin-top:6px;white-space:pre-wrap}
footer{font-size:11px;color:#667;padding:10px 22px 20px}
label.chk{display:flex;align-items:center;gap:6px}
fieldset.v2{border-color:#e0b25a;background:#fffaf0}
/* v8: Composites page compact two-column inputs, plot fills the right side (no scrolling for inputs) */
body.comp{font-size:13px;line-height:1.35}
body.comp header{padding:8px 22px}
body.comp header h1{font-size:18px}
body.comp header .sub{margin:2px 0 0;font-size:12px}
body.comp main{gap:16px;padding:10px 16px;flex-wrap:nowrap}
body.comp .left{flex:0 0 640px;min-width:0;display:flex;flex-direction:column;height:calc(100vh - 70px)}
body.comp form{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}
body.comp .col{min-width:0}
body.comp fieldset{margin:0 0 6px;padding:4px 9px 6px;min-width:0}
body.comp legend{font-size:12.5px}
body.comp label{margin:3px 0;font-size:12px}
body.comp select,body.comp input[type=number],body.comp input[type=text],body.comp textarea{padding:3px 5px;margin-top:1px}
body.comp input[type=text]{width:100%;border:1px solid #b9c4cf;border-radius:4px;font:inherit;background:#fff}
body.comp textarea{height:52px}
body.comp .row{flex-wrap:nowrap;gap:6px}
body.comp .row>label{flex:1 1 0;min-width:0}
body.comp .row>label.w2{flex:1.6 1 0}
body.comp .checks{flex-wrap:wrap;gap:4px 10px}
body.comp label.inl{display:flex;align-items:center;gap:6px;white-space:nowrap}
body.comp label.inl input{width:76px}
body.comp label.chk{align-self:flex-end;margin-bottom:6px}
body.comp .hint{font-size:11px;margin:2px 0}
body.comp .buttons{gap:6px}
body.comp button{padding:5px 10px}
body.comp #out{flex:1 1 auto}
body.comp canvas#plot{display:block;max-width:100%;height:auto}
body.comp header .sub{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.comp main{padding:8px 12px 0}
body.comp #out{display:flex;flex-direction:column;min-width:0}
body.comp #status{margin:0 0 4px;min-height:17px}
body.comp footer{padding:6px 22px 12px}
@media (max-width:1000px){body.comp main{flex-wrap:wrap}body.comp .left{flex:1 1 100%}}
@media (max-width:600px){body.comp form{grid-template-columns:1fr}}
@media (max-height:800px) and (min-width:1001px){body.comp header .sub,body.comp .hint{display:none}body.comp textarea{height:40px}body.comp header{padding:6px 22px}}
body.comp .left #info{background:#fff;border:1px solid #cdd6df;border-radius:6px;padding:6px 9px;margin:2px 0 0;font-size:11.5px;flex:1 1 60px;min-height:40px;overflow:auto;margin-bottom:8px}
body.comp .left #info:empty{display:none}
body.comp #stage{display:flex;justify-content:center}
body.comp .col label{margin:var(--g,3px) 0}body.comp .col fieldset{padding-top:var(--p,4px);padding-bottom:calc(var(--p,4px) + 2px)}
body.comp form{align-items:start}
.warn{margin:3px 0;padding:4px 7px;border:1px solid #d9534f;border-left-width:4px;border-radius:4px;background:#fdf0ef;color:#8a1f1b;font-size:11.5px;font-weight:600}
body.comp .left>.buttons{margin:0 0 8px}
/* v11 overlays popover */
.ovwrap { position: relative; display: inline-block; }
.ovrow { margin-top: 2px; }
.ovpop { left: 0; }
#ovbtn { padding: 2px 8px; font-size: .9em; }
#ovbtn.on { background: #dfe9f5; border-color: #6c8fb8; }
.ovpop { position: absolute; top: calc(100% + 4px); z-index: 20; width: 330px; background: #fff; border: 1px solid #9aa7b5; border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.18); padding: 8px 10px; }
.ovpop[hidden] { display: none; }
.ovpop label { display: flex !important; align-items: center; gap: 6px; margin: 2px 0 !important; font-size: .92em; }
.ovpop .sw { display: inline-block; width: 12px; height: 12px; flex: none; }
.ovpop .hint { font-size: .78em; margin: 6px 0; }
.ovpop #ovnone { font-size: .85em; padding: 1px 8px; }
/* v12 individual catchments list */
.catlist { margin: 0 0 4px 20px; font-size: .9em; }
.catlist summary { cursor: pointer; color: #00596b; }
.catbox { max-height: 190px; overflow-y: auto; border: 1px solid #d5dbe2; border-radius: 4px; padding: 2px 6px; margin-top: 3px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px; align-content: start; }
.catbox .cath { font-weight: 600; color: #333; grid-column: 1 / -1; margin-top: 3px; }
.catbox label { margin: 1px 0 !important; font-size: .95em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* v13 compare mode, analogues, point time series */
body.comp #out{position:relative}
body.comp canvas#plot{cursor:crosshair}
body.comp label.cmpchk{align-self:auto;margin:4px 0 2px}
#cmpbox[hidden]{display:none}
#cmpbox{border-left:3px solid #6c8fb8;padding-left:7px;margin:2px 0}
#tspop{position:absolute;right:10px;top:24px;z-index:30;width:588px;background:#fff;border:1px solid #9aa7b5;border-radius:6px;box-shadow:0 6px 18px rgba(0,0,0,.22);padding:8px 12px 6px}
#tspop[hidden]{display:none}
#tspop .tshead{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12.5px;margin-bottom:4px}
#tspop .tshead button{padding:2px 9px}
#tspop canvas{box-shadow:none;max-width:none;display:block}
#tsnote{font-size:11.5px;color:#445;margin:4px 0 0}
/* v14 catchment checklist buttons */
.catlist[open] > summary { margin-bottom: 2px; }
.catbtns { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 2px 0 3px; }
.catbtns button { padding: 1px 7px !important; font-size: .88em; }
.catbtns label.catlab { margin: 0 0 0 4px !important; font-size: .9em; }
/* v16 correlation / trend inputs and significance rows (Composites page) */
body.comp #ctbox{border-color:#8fae6c;background:#fbfdf7}
body.comp #ctbox[hidden],body.comp #corrbox[hidden]{display:none}
body.comp .sigrow{align-items:flex-end}
body.comp .sigrow label.chk{flex:1.1 1 0}
/* v17: version tag; Climate panel as one aligned label | field grid */
header h1 .ver{font-size:11px;font-weight:400;opacity:.55;margin-left:6px;vertical-align:2px;letter-spacing:.3px}
body.comp .climp .cr{display:grid;grid-template-columns:132px 1fr 1fr;gap:6px;align-items:center;margin:var(--g,3px) 0;min-height:24px}
body.comp .climp .cl{display:flex;align-items:center;gap:6px;margin:0;font-size:12px;white-space:nowrap}
body.comp .climp label.cl{align-self:center;margin:0}
body.comp .climp .cl input{margin:0;width:auto}
body.comp .climp .cl.sub{padding-left:19px;color:#4a5866}
body.comp .climp .cl.w3{grid-column:1/-1}
body.comp .climp select{margin:0;width:100%;min-width:0}
body.comp .climp .s2{grid-column:2/4}
body.comp .climp .yy{display:flex;align-items:center;gap:6px;font-size:12px;white-space:nowrap}
body.comp .climp .yy input{width:72px;margin:0}
/* v19: one significance row (+ info popover), one climate-trend row */
body.comp .climp .sg{display:flex;align-items:center;gap:5px;min-width:0;position:relative}
body.comp .climp .sg select{flex:1 1 auto;width:auto;min-width:0}
body.comp .climp .sg input[type=number]{flex:0 0 58px;width:58px;margin:0}
body.comp .climp .cr2{grid-template-columns:auto 1fr}
body.comp .climp .cr2 select{grid-column:auto}
.ib{flex:none;width:17px;height:17px;padding:0!important;border-radius:50%;border:1.5px solid #8a949e;background:#fff;color:#6b7480;font:italic 700 11px/14px Georgia,serif;text-align:center;cursor:pointer}
.ib:hover,.ib[aria-expanded=true]{background:#6b7480;color:#fff;border-color:#6b7480}
.sgpop{position:absolute;z-index:40;top:100%;left:0;right:0;margin-top:2px;background:#fff;border:1px solid #9aa7b5;border-radius:6px;box-shadow:0 6px 18px rgba(0,0,0,.18);padding:6px 10px;font-size:11.5px;line-height:1.4}
.sgpop[hidden]{display:none}.sgpop p{margin:4px 0;color:#5b6876}.sgpop p b{display:block;color:#1d2733}.sgpop p.on{color:#1d2733;background:#eef4fa;border-left:3px solid #1f6fb2;padding:2px 6px;margin-left:-6px}
body.comp .climp .cr{position:relative}
body.comp .climp .cr{grid-template-columns:118px 1fr 1fr}body.comp .climp .cr2{grid-template-columns:auto 1fr}
body.comp .climp .sg input[type=number]{flex:0 0 50px;width:50px}
body.comp .climp .sg{gap:4px}body.comp .climp .sg input[type=number]{flex:0 0 46px;width:46px;padding:3px 3px}body.comp .climp .sg select{padding-left:3px;padding-right:0}
body.comp .climp .sg input[name=ctry]{flex:0 0 66px;width:66px}
/* v20: Shift-to-year tick box row; correlation detrend tick box */
body.comp .climp .sg label.sh{flex:1 1 auto;display:flex;align-items:center;gap:6px;margin:0;white-space:nowrap;font-size:12px}
body.comp .climp .sg label.sh input{margin:0}
body.comp label.cdet{margin:4px 0 2px;align-self:auto}
body.comp .climp .sg label.sh{align-self:center;margin:0!important}

/* v22: step arrows, lock, reset, hover readout, TARGET dates box, grouped dropdowns */
body.comp .stp{display:flex;align-items:center;gap:2px}body.comp .stp input{flex:1 1 auto;min-width:0;width:100%}
.st{flex:none;display:inline-flex;align-items:center;justify-content:center;width:16px;height:22px;border:1px solid #b9c4cf;border-radius:4px;background:#f4f6f8;color:#4a5866;font-size:9px;cursor:pointer;user-select:none}
.st:hover{background:#dfe9f5;border-color:#6c8fb8;color:#123a5c}.st[aria-disabled=true]{opacity:.35;cursor:default}
body.comp .climp .sg .st{height:22px}
.rst{align-self:center;font-size:11.5px;color:#6b7480;margin-left:auto;text-decoration:underline}
.rst:hover{color:#123a5c}
#hov{position:absolute;top:0;right:4px;font-size:12px;color:#334;font-variant-numeric:tabular-nums;white-space:nowrap;pointer-events:none}
.tgtbox{border-left:3px solid #f2742c;background:#fff8f2;padding:4px 7px;margin:3px 0;font-size:11.5px;line-height:1.35}
.tgtbox[hidden]{display:none}.tgtbox a{color:#123a5c;margin-left:4px}
.dim{opacity:.4}
select option:disabled{color:#7d8894}
.mvnote{color:#4a5866}.mvnote[hidden]{display:none}
body.comp .checks label{white-space:nowrap}
/* v23 */
#pnrow{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:6px 0 0;padding-bottom:16px}#pnrow[hidden]{display:none}
#pnrow .pn{font-size:14px;font-weight:600;padding:7px 18px;min-width:170px;border:1px solid #6c8fb8;border-radius:6px;background:#eef3f8;color:#123a5c;cursor:pointer}
#pnrow .pn:hover:not(:disabled){background:#dfe9f5}#pnrow .pn:disabled{opacity:.4;cursor:default}#pnlab{color:#5b6876;font-size:12px}
.tlwrap{position:relative;margin:4px 0 2px}#tlbtn{padding:2px 8px;font-size:.9em}#tlbtn.on{background:#dfe9f5;border-color:#6c8fb8}
#tlmsg{display:block;color:#4a5866;font-size:11px;margin-top:2px}
.tlpop{position:fixed;z-index:40;width:500px;overflow:auto;background:#fff;border:1px solid #9aa7b5;border-radius:6px;box-shadow:0 6px 18px rgba(0,0,0,.2);padding:8px 10px;font-size:12px}
.tlpop[hidden],.tlipop[hidden]{display:none}.tlhead{display:flex;align-items:center;gap:6px;margin-bottom:4px}
.tlipop{background:#f7f9fb;border:1px solid #dde3ea;border-radius:4px;padding:2px 8px;margin:4px 0;font-size:11px;color:#334}.tlipop p{margin:4px 0}
.tlthr{font-size:11px;color:#4a5866;margin:4px 0 6px}.tlthr input{width:38px;padding:1px 3px}
.tlt{border-collapse:collapse;width:100%;margin:0 0 6px}.tlt th,.tlt td{padding:1px 3px;text-align:center;font-weight:normal}
.tlt tr.hd th{font-size:10.5px;color:#4a5866;line-height:1.1;vertical-align:bottom}.tlt th[scope=row]{text-align:left;white-space:nowrap;color:#123a5c;font-weight:600;font-size:11.5px}
.tlt tr:not(.hd):nth-child(odd) td,.tlt tr:not(.hd):nth-child(odd) th[scope=row]{background:#f7f9fb}.tlt tr.hd th{padding-top:6px;border-bottom:1px solid #e3e8ee}.tlt td,.tlt tr.hd th:not(:first-child){width:15%}.tlt input{margin:0}
.tlfoot{display:flex;align-items:center;gap:10px;position:sticky;bottom:-8px;background:#fff;padding:6px 0 2px;border-top:1px solid #e3e8ee}#tlcnt{color:#4a5866;font-size:11px}
body.comp .climp .sg input[name=siglev]{flex:0 0 40px;width:40px}body.comp .climp .sg input[name=ctry]{flex:0 0 50px;width:50px}
body.comp .climp .sg select{min-width:64px}body.comp .climp .sg .st{width:14px}body.comp .climp .sg{gap:3px}
body.comp .checks{flex-wrap:wrap;row-gap:4px}
body.comp .row.checks>label{flex:0 0 auto}
/* v24 */
.varwrap{position:relative}.vsel{display:flex;align-items:center;gap:5px}.vsel select{flex:1 1 auto;min-width:0}#mvinfo[hidden]{display:none}
#mvpop{top:auto;margin-top:4px}.hint.nowrap{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#pnrow{justify-content:center;gap:28px}#pnlab{min-width:90px;text-align:center}
.pnmid{display:flex;flex-direction:column;align-items:center;gap:4px}#mvview{display:flex;gap:0}#mvview[hidden]{display:none}
#mvview button{padding:2px 10px;font-size:12px;border:1px solid #9aa7b5;background:#fff;color:#123a5c;cursor:pointer;margin-left:-1px}#mvview button:first-child{border-radius:4px 0 0 4px}#mvview button:last-child{border-radius:0 4px 4px 0}
#mvview button.on{background:#123a5c;color:#fff;border-color:#123a5c}
.tlpop{width:380px}.tli{border-bottom:1px solid #eef1f4}
.tln{display:flex;align-items:center;gap:6px;width:100%;padding:3px 4px!important;border:0!important;background:none!important;text-align:left;color:#123a5c;font-size:12px;font-weight:600;cursor:pointer}
.tln:hover,.tln.on{background:#f2f6fa!important}.tln .car{display:inline-block;width:10px;color:#6b7480;transition:transform .15s}.tln.on .car{transform:rotate(90deg)}
.tlc{margin-left:auto;font-weight:normal;font-size:10.5px;color:#fff;background:#1f6fb2;border-radius:8px;padding:0 6px}.tlc:empty{display:none}
.tlx{padding:2px 6px 6px 20px}.tlx[hidden]{display:none}.tlst{display:flex;flex-wrap:wrap;gap:2px 10px}.tlst label{display:inline-flex;align-items:center;gap:3px;font-size:11.5px;white-space:nowrap}.tlst input{margin:0}
.tlth{font-size:11px;color:#4a5866;margin-top:4px}.tlth input{width:40px;padding:1px 3px}.tlth span{color:#8a96a3}
/* v25: pattern ⓘ in the preload list */
.tln .pk{width:15px;height:15px;font-size:10px;line-height:12px;margin-left:6px;display:inline-block;vertical-align:1px}
/* v26: preload states on one line; σ note; mobile */
.tlst{flex-wrap:nowrap!important;gap:2px 8px!important}.tlst label{font-size:11px!important}
.tlsg{margin:4px 0 0;font-size:10.5px;line-height:1.35;color:#5b6876}
@media (max-width:900px){
  body.comp main{flex-direction:column!important;flex-wrap:nowrap!important;padding:6px!important;gap:8px}
  body.comp main>.right,body.comp main>:not(.left){order:-1;width:100%!important;min-width:0}
  body.comp .left{flex:none!important;height:auto!important;width:100%}
  body.comp .left form{flex-direction:column!important;display:flex}body.comp .left .col{width:100%!important;flex:none!important}
  body.comp #plot{max-width:100%;height:auto!important;width:100%!important}
  body.comp #pnrow{flex-wrap:wrap;gap:8px}
  .tlpop,#patpop{max-width:calc(100vw - 16px)!important;left:8px!important}
}

.ovpop { width: 380px; max-height: calc(100vh - 150px); overflow-y: auto; }   /* v27 */
.ovpop .ovgh { font-weight: 700; font-size: .85em; color: #243b53; border-bottom: 1px solid #d9e2ec; margin: 7px 0 3px; padding-bottom: 1px; }
.ovpop .ovgh:first-child { margin-top: 0; }
.ovpop label.ovopt { margin-left: 4px !important; font-size: .86em; color: #334e68; }
.ovpop .ovi { color: #627d98; cursor: help; font-size: .9em; margin-left: auto; }
.ovpop input[name=popop] { width: 120px; }
#hov{background:rgba(255,255,255,.96);padding-left:6px;border-radius:3px}   /* v27: readable over a long status line */

/* v28: preload grouped by type, two columns */
.tlpop{width:760px!important}
#tlbody .tlgh{font-weight:700;font-size:11.5px;color:#fff;background:#3d5a78;border-radius:3px;padding:2px 8px;margin:6px 0 2px}
#tlbody .tlgh:first-child{margin-top:0}
#tlbody .tlgrid{display:grid;grid-template-columns:1fr 1fr;column-gap:14px;align-items:start}
#tlbody .tlgrid .tlst{flex-wrap:wrap!important}
#tlbody .tlth input{width:46px}
/* v28: stable layout when overlays toggle */
body.comp #status{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;height:17px}
#ovbtn{min-width:112px;text-align:left}

/* v29: overlays in two columns (never scrolls); compact, fixed-width button */
#ovbtn{min-width:0;width:auto;display:inline-flex;align-items:center;gap:5px;padding:2px 7px}
#ovbtn .ovn{display:inline-block;min-width:2.1ch;padding:0 3px;border-radius:7px;background:#123a5c;color:#fff;font-size:.82em;line-height:1.35;text-align:center;font-variant-numeric:tabular-nums}
.ovpop{width:660px;max-height:none!important;overflow:visible}
#ovlist{display:grid;grid-template-columns:1fr 1fr;column-gap:16px}
.ovpop .ovcol>.ovgh:first-child{margin-top:0}
.ovpop label{margin:1px 0!important}
.ovpop label.ovop{margin-left:24px!important;color:#627d98}
.ovpop label.ovop input{width:110px}
.ovpop .catlist summary{font-size:.86em;cursor:pointer;color:#334e68;margin:2px 0 0 4px}
.ovpop .catlist[open] .catbox{max-height:180px;overflow:auto}

/* v29: colour-scale picker */
.cmrow{display:flex;align-items:center;gap:8px;margin:4px 0}
.cmrow .cml{font-size:.92em}
.cmwrap{position:relative;flex:1;min-width:0}
#cmbtn{display:flex;align-items:center;gap:8px;width:100%;text-align:left;padding:3px 8px;background:#fff;border:1px solid #9aa7b5;border-radius:4px;cursor:pointer;font:inherit;font-size:.92em}
#cmbtn .cmnm{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#cmbtn .cmar{color:#627d98;font-size:.85em}
.cmsw{display:inline-block;flex:none;width:64px;height:11px;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.18)}
.cmpop{position:absolute;z-index:30;top:calc(100% + 4px);left:0;width:600px;background:#fff;border:1px solid #9aa7b5;border-radius:6px;box-shadow:0 6px 18px rgba(0,0,0,.18);padding:8px 10px 6px;font-size:12px}
.cmpop[hidden]{display:none}
.cmgrid{display:grid;grid-template-columns:1fr 1fr;column-gap:14px;row-gap:4px}
.cmgh{font-weight:700;font-size:11px;color:#243b53;border-bottom:1px solid #d9e2ec;margin:3px 0 2px;padding-bottom:1px}
.cmit{display:flex;align-items:center;gap:8px;width:100%;padding:3px 4px;border:0;border-radius:3px;background:none;cursor:pointer;font:inherit;font-size:12px;color:#1d2733;text-align:left}
.cmit:hover{background:#eef3f8}.cmit.on{background:#dfe9f5;font-weight:600}
.cmpop{width:640px}.cmgrid{display:block;column-count:2;column-gap:16px}.cmg{break-inside:avoid;margin-bottom:4px}.cmit{white-space:nowrap}

/* v29: hindcast skill line */
#skill{height:20px;line-height:20px;font-size:12px;color:#334;display:flex;justify-content:center;align-items:center;gap:6px;white-space:nowrap;overflow:hidden}
#skill i{font-style:normal;color:#6b7480}#skill .skm{color:#8a96a3}
#skill .sksep{width:1px;height:12px;background:#c5d0db;margin:0 8px}
#skill .skyr{display:inline-flex;align-items:center;gap:3px;margin-left:6px;padding:0 2px 0 7px;border:1px solid #d9e2ec;border-radius:10px;background:#f7f9fb;line-height:17px}
#skill .skx{border:0;background:none;color:#8a96a3;cursor:pointer;font-size:14px;line-height:1;padding:0 4px}#skill .skx:hover{color:#c00000}

/* v29: lead (index months) row in the preload, analogue finder */
.tllead{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:2px 0 6px;padding:4px 6px;background:#f4f7fa;border-radius:4px;font-size:12px}
.tllead select{font-size:12px}.tllead .lmto[hidden]{display:none}#lmtxt{color:#627d98}
#anbtn{padding:2px 8px;font-size:.9em;margin-left:6px}#anbtn.on{background:#dfe9f5;border-color:#6c8fb8}
.anpop{width:560px!important}.anreg{color:#627d98;font-size:12px;margin-left:4px}
.anrow{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin:2px 0 6px}.anrow select{font-size:12px}.anrow input[name=ann]{width:40px}
.anlist{display:grid;grid-template-columns:repeat(4,1fr);gap:1px 10px;min-height:20px}
.anlist label{display:flex;align-items:center;gap:4px;font-size:12px;margin:0!important;white-space:nowrap}
.anlist i{font-style:normal;color:#627d98;margin-left:auto;font-variant-numeric:tabular-nums}.anlist .anoy{color:#8a96a3;font-size:10px}
.anhint{font-size:11px;color:#5b6876;margin:6px 0 4px;line-height:1.35}
.tllead select,.anrow select{width:auto!important;display:inline-block!important;margin:0!important}.tllead>span,.anrow>span{display:inline-flex;align-items:center;gap:4px}
.tllead,.anrow{flex-wrap:nowrap;white-space:nowrap}
.anpop{width:640px!important}
/* v29: time-series header controls */
#tspop .tsctl{display:flex;align-items:center;gap:6px}#tspop .tsk{display:inline-flex;align-items:center;gap:3px;font-size:11.5px;white-space:nowrap}
#tsidx{font-size:11.5px;max-width:150px}#tspop{width:640px}#tsr{color:#123a5c;font-weight:600}
/* v30 */
.tlv{color:#98a2ad;font-size:9.5px}#tlmsg{max-height:4.6em;overflow:auto}
#tspop .tshead{cursor:move;user-select:none}
