.batch-lead{font-size:18px;max-width:800px;color:#BED3DB}.batch-pill{background:#113742;color:#9AFCFF;border:1px solid #337582;border-radius:99px;padding:5px 10px;font-size:12px;font-weight:800;display:inline-flex}.batch-zone{background:linear-gradient(135deg,#103441,#0D222D);border:2px dashed #4B8D99;padding:27px;border-radius:18px;margin:20px 0}.batch-zone.dragging{background:#1C515F;border-color:#B8FFFF}.batch-zone strong{font-size:21px;display:block}.batch-zone p{color:#B8CAD2}.batch-zone input{display:block;margin:15px 0;max-width:100%;font:inherit}.batch-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}.batch-form label{display:block;font-size:13px;color:#BAD1DB;font-weight:700}.batch-form select{display:block;background:#0B1822;color:#fff;width:100%;border:1px solid #426373;border-radius:9px;padding:11px 12px;margin-top:6px;min-height:43px}.batch-checkbox{display:flex;gap:12px;align-items:flex-start;color:#D1E7EB;font-size:13px}.batch-checkbox input{width:19px;height:19px;flex:none;accent-color:#00F0FF;margin-top:2px}.batch-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin:16px 0}.batch-counts>div{background:#0B1A26;border:1px solid #345365;border-radius:12px;padding:15px}.batch-counts span{display:block;font-size:12px;color:#A9C5D2}.batch-counts strong{display:block;font-size:clamp(21px,3.5vw,30px);line-height:1.2;color:#7FFFE8;margin-top:5px;overflow-wrap:anywhere}.batch-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.batch-account{background:#0C1C27;border:1px solid #315062;padding:16px;border-radius:13px;min-width:0}.batch-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:15px}.batch-head h3{margin:0;font-size:16px;color:#F1FBFD}.batch-head span{font-size:10px;max-width:50%;overflow-wrap:anywhere;text-align:right}.batch-subtle{font-size:12px;color:#9FBAC6}.batch-metrics{display:grid;gap:8px}.batch-metrics div{display:flex;justify-content:space-between;gap:8px;align-items:baseline}.batch-metrics span{font-size:12px;color:#AAC3D0}.batch-metrics strong{font-size:16px;color:#75F4D7;white-space:nowrap;font-variant-numeric:tabular-nums}.batch-metrics strong.negative{color:#FF98A8}.batch-problems{background:#31241F;border:1px solid #925E57;border-radius:12px;padding:15px;margin:15px 0;color:#FFDDC4}.batch-problems li{margin:6px 0;overflow-wrap:anywhere}.batch-disclaimer{font-size:13px;color:#BED1DA;line-height:1.6;background:#102E38;border-left:3px solid #51BFCE;padding:12px 16px;border-radius:7px}.batch-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.batch-actions .btn{font:inherit}.batch-link{font-size:13px;font-weight:750}.batch-subhead{color:#B4CAD4;font-size:13px}.batch-cta{background:#00F0FF;color:#04252B;padding:12px 18px;border:0;border-radius:11px;font-weight:900;cursor:pointer}.batch-cta:hover{background:#8DFFFF}@media(max-width:1000px){.batch-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.batch-form,.batch-grid{grid-template-columns:1fr}.batch-counts{grid-template-columns:repeat(2,minmax(0,1fr))}.batch-zone{padding:17px}}@media(max-width:420px){.batch-counts{grid-template-columns:1fr}}
.batch-schema{border:1px solid #345261;background:#0b1d27;padding:14px 16px;border-radius:13px;margin-top:11px}.batch-schema>summary{font-weight:850;color:#A9F8F6;cursor:pointer;font-size:14px}.batch-schema>summary:focus-visible{outline:2px solid #00F0FF;outline-offset:4px}.batch-map-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:13px 0}.batch-map-cell{min-width:0}.batch-map-cell label{display:block;font-weight:750;color:#B3CDD6;font-size:12px;min-height:34px}.batch-map-cell select{margin-top:4px;width:100%;min-width:0;padding:10px;background:#0C1721;border:1px solid #406273;border-radius:9px;color:#F0FAFC;font:inherit;font-size:13px}.batch-schema .batch-checkbox{margin:13px 0 0}@media(max-width:850px){.batch-map-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:550px){.batch-map-grid{grid-template-columns:1fr}.batch-map-cell label{min-height:0}}
/* Local portfolio review: keyboard-accessible filtering and per-account trade days. */
.batch-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;margin:16px 0 4px}
.batch-toolbar>div{flex:1 1 180px;min-width:0}
.batch-toolbar label{display:block;color:#B3CDD6;font-size:13px;font-weight:750;margin-bottom:6px}
.batch-toolbar input,.batch-toolbar select{width:100%;min-height:43px;min-width:0;box-sizing:border-box;background:#0C1721;color:#fff;border:1px solid #406273;border-radius:9px;padding:10px;font:inherit}
.batch-toolbar input:focus-visible,.batch-toolbar select:focus-visible,.batch-toolbar button:focus-visible{outline:2px solid #00F0FF;outline-offset:2px}
.batch-toolbar button:disabled{opacity:.45;cursor:not-allowed}
.batch-days{margin-top:12px;border-top:1px solid #315062;padding-top:10px}
.batch-days summary{cursor:pointer;color:#A9F8F6;font-size:13px;font-weight:750}
.batch-day-table{border-collapse:collapse;width:100%;font-size:12px;margin-top:9px}
.batch-day-table th,.batch-day-table td{border-bottom:1px solid #294254;padding:6px 3px;text-align:left}
.batch-day-table td:last-child,.batch-day-table th:last-child{text-align:right;font-variant-numeric:tabular-nums}
.batch-day-table caption{caption-side:bottom;text-align:left;color:#9FBAC6;font-size:11px;margin-top:8px}
@media(max-width:700px){.batch-toolbar button{width:100%}.batch-toolbar>div{flex:1 1 100%}}

/* Keep the historic day table scrollable inside the card on narrow iPhones. */
.batch-days{max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain}
.batch-day-table{min-width:300px;max-width:none}

/* Keep dates and net P&L inside the narrowest mobile account card (WebKit).
   Do not force a 300px child table inside a 222px card. */
.batch-day-table{width:100%;min-width:0;max-width:100%;table-layout:fixed}
.batch-day-table th,.batch-day-table td{overflow-wrap:anywhere;word-break:normal}
.batch-day-table th:first-child,.batch-day-table td:first-child{width:52%}
.batch-day-table th:last-child,.batch-day-table td:last-child{width:48%}

/* Fit history table to its card on WebKit narrow devices. */
@media(max-width:420px){
 .batch-day-table{min-width:0;width:100%;table-layout:fixed}
 .batch-day-table th,.batch-day-table td{overflow-wrap:anywhere;word-break:normal}
 .batch-days{width:100%;overflow-x:hidden}
 .batch-zone input[type=file]{width:100%;min-width:0}
 .batch-actions>*{max-width:100%;white-space:normal;overflow-wrap:anywhere}
}

/* Safari may retain an outdated root scroll width after expanding/collapsing details.
   Day tables now fit their cards; clip only stray viewport overflow, not the cards. */
html,body{max-width:100%;overflow-x:clip}
