.cs-modern{--navy:#092954;--blue:#1264c4;--gold:#ffca43;display:grid;grid-template-columns:228px minmax(0,1fr);width:min(1400px,98%);margin:28px auto 64px;border:1px solid #dce5f0;border-radius:16px;overflow:hidden;background:#f5f8fd;box-shadow:0 14px 38px #122e4b19;font-family:system-ui,-apple-system,sans-serif;color:#0d2446}.cs-modern *{box-sizing:border-box}.cs-side{background:linear-gradient(180deg,#072653,#0b3f80);padding:22px 12px;color:#fff}.cs-sidebrand{font-size:20px;font-weight:900;color:#fff;padding:10px 11px}.cs-sidebrand:first-letter{color:#ffca43}.cs-side-caption{font-size:12px;color:#bed9f8;padding:0 11px 14px}.cs-side nav{display:flex;flex-direction:column;gap:5px}.cs-side nav a,.cs-side-back{display:block;color:#eef6ff!important;text-decoration:none!important;border-radius:9px;padding:11px 13px;font-weight:650;font-size:14px}.cs-side nav a:hover,.cs-side nav a[aria-current]{background:#1b65bd}.cs-side-back{border-top:1px solid #ffffff30;margin-top:18px;font-size:12px}.cs-main{padding:30px;min-width:0}.cs-main h1{font-size:clamp(24px,3vw,34px);line-height:1.2;color:#0b2245;margin:4px 0 10px}.cs-main h2{font-size:19px;color:#0e2b56;margin:0 0 10px}.cs-main p{color:#59708a;margin:6px 0 10px}.cs-toolbar,.cs-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.cs-eyebrow{font-size:11px!important;font-weight:800;color:#2469b2!important;letter-spacing:.12em}.cs-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:24px 0}.cs-stat{background:#fff;border:1px solid #dce7f4;padding:20px 16px;border-radius:12px;min-width:0}.cs-stat-label{display:block;font-size:12px;color:#5f7188;font-weight:700}.cs-stat strong{display:block;font-size:clamp(21px,2.5vw,29px);color:#0b336a;margin:6px 0;overflow-wrap:anywhere}.cs-stat small{color:#7589a0}.cs-actions{display:flex;flex-wrap:wrap;gap:9px;margin:18px 0}.cs-btn,.cs-modern a.cs-btn{display:inline-block;background:#1463bd;color:white!important;padding:11px 16px;border-radius:8px;text-decoration:none!important;border:1px solid #1463bd;font-size:13px;font-weight:750;line-height:1.25;cursor:pointer}.cs-btn:hover{filter:brightness(.94)}.cs-btn-outline,.cs-modern a.cs-btn-outline{background:#fff;color:#1155a3!important;border-color:#b8cde5}.cs-btn-small{padding:7px 10px;font-size:12px}.cs-panel{background:white;border:1px solid #dce6f0;border-radius:13px;padding:22px;margin:17px 0;box-shadow:0 5px 13px #0b294c08}.cs-table-scroll{overflow-x:auto}.cs-table{width:100%;border-collapse:collapse;min-width:570px}.cs-table th{background:#f2f6fc;color:#52677f;font-size:12px;text-align:left}.cs-table td,.cs-table th{padding:12px;border-bottom:1px solid #e4eaf2;font-size:13px}.cs-status{display:inline-block;border-radius:99px;background:#e8f1ff;color:#1657a1;padding:4px 9px;font-weight:700;font-size:11px}.cs-two-col{display:grid;grid-template-columns:1fr 1fr;gap:16px}.cs-alert{background:#eef6ff;border:1px solid #b5d2f2;border-radius:9px;padding:13px}.cs-details summary{font-weight:800;cursor:pointer;color:#123e74}.cs-panel-inner{padding-top:20px}.cs-modern input,.cs-modern select{padding:10px;border:1px solid #b9c9dc;border-radius:7px;max-width:100%}.cs-modern label{display:block;margin:10px 0}.cs-modern form{margin:12px 0}.cs-portal-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.cs-portal-kpis>div{background:#fff;border:1px solid #dce7f4;border-radius:12px;padding:16px}.cs-portal-kpis small{display:block;color:#58718e}.cs-portal-kpis strong{font-size:24px;color:#0f4e9b}.cs6-wrap{max-width:1260px!important}.cs6-wrap .cs6-panel{border-radius:13px;box-shadow:0 5px 16px #06294e0d}.cs6-hero{border-radius:13px;background:linear-gradient(100deg,#082957,#155eac);color:#fff;padding:24px;margin-bottom:18px}.cs6-hero h1,.cs6-hero p{color:#fff!important}.cs6-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}.cs6-summary div{background:#fff;border:1px solid #dce7f4;border-radius:11px;padding:16px}.cs6-summary span{display:block;color:#5e7187;font-size:12px}.cs6-summary strong{display:block;font-size:24px;color:#0c356c}.cs6-sales-summary{border-collapse:collapse;width:100%;min-width:630px}.cs6-sales-summary th,.cs6-sales-summary td{padding:12px;text-align:left;border-bottom:1px solid #dde7f0}.cs6-sales-summary th{background:#edf5ff;color:#16426e}.cs6-modern-table{overflow-x:auto}@media(max-width:850px){.cs-modern{grid-template-columns:1fr}.cs-side nav{flex-direction:row;overflow-x:auto}.cs-side nav a{white-space:nowrap}.cs-side-back{margin:0}.cs-main{padding:18px}.cs-stats,.cs6-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.cs-two-col,.cs-portal-kpis{grid-template-columns:1fr}.cs-stats,.cs6-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.cs-main{padding:14px}.cs-modern{width:100%;margin:0 0 30px;border-radius:0}}

/* v0.3.6: reference-image dashboard styling */
.cs-modern{grid-template-columns:224px minmax(0,1fr);border-radius:10px;background:#fff;box-shadow:0 12px 42px #0b254b25}
.cs-modern .cs-side{background:linear-gradient(155deg,#032041,#07386d 78%,#021b34);padding:22px 10px}
.cs-modern .cs-sidebrand{font-weight:950;font-style:italic;font-size:24px;letter-spacing:-1.2px;color:#fff;white-space:normal;line-height:1.02;text-shadow:1px 2px #00182f}
.cs-modern .cs-sidebrand>span:not(.cs-brand-star){color:#ffca3a}
.cs-modern .cs-sidebrand small{display:block;font-size:8px;letter-spacing:.5px;color:#ffcf42;font-style:normal;margin-top:5px;text-shadow:none}
.cs-modern .cs-brand-star{color:#ffcb38}
.cs-modern .cs-side nav a{font-size:14px;font-weight:700;padding:12px 11px;border-radius:5px}
.cs-modern .cs-side nav a[aria-current],.cs-modern .cs-side nav a:hover{background:linear-gradient(90deg,#0878ec,#0553ae);box-shadow:inset 3px 0 #66b7ff}
.cs-modern .cs-main{background:#fff;padding:24px 25px 35px}
.cs-modern .cs-main h1{font-size:30px;font-weight:900;color:#061627}
.cs-modern .cs-toolbar{background:#fff;padding-bottom:8px}
.cs-modern .cs-reference-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:17px 0 24px}
.cs-modern .cs-reference-stats .cs-stat{min-height:124px;border:0;box-shadow:0 5px 14px #0628541a;color:#fff;position:relative;padding:19px 16px 15px 62px;display:flex;flex-direction:column;justify-content:center}
.cs-modern .cs-reference-stats .cs-stat-blue{background:linear-gradient(130deg,#047cea,#0057c4)}
.cs-modern .cs-reference-stats .cs-stat-green{background:linear-gradient(130deg,#19ad76,#08885a)}
.cs-modern .cs-reference-stats .cs-stat-red{background:linear-gradient(130deg,#ff5c54,#e63330)}
.cs-modern .cs-reference-stats .cs-stat-symbol{position:absolute;left:16px;top:26px;font-size:27px;opacity:.95;color:#fff}
.cs-modern .cs-reference-stats .cs-stat-label,.cs-modern .cs-reference-stats .cs-stat strong,.cs-modern .cs-reference-stats .cs-stat small{color:#fff}
.cs-modern .cs-reference-stats .cs-stat-label{font-size:12px;font-weight:800}
.cs-modern .cs-reference-stats .cs-stat strong{font-size:clamp(17px,2.4vw,27px);line-height:1.13;margin:8px 0 4px;overflow-wrap:break-word}
.cs-modern .cs-reference-stats .cs-stat small{font-size:11px;opacity:.9}
.cs-modern .cs-panel{border:1px solid #e2e9f3;box-shadow:0 5px 15px #071c3610;padding:20px}
.cs-modern .cs-table th{background:#f0f5fa;color:#102641;font-weight:800}
.cs-modern .cs-table td{color:#203753}
.cs-modern .cs-panel-head h2{color:#091828;font-weight:900}
.cs-consignor-shell{max-width:1400px!important;margin:28px auto!important;width:min(1400px,98%)!important;padding:0!important}
.cs-consignor-shell .ci-box{background:#fff;border:1px solid #e2e9f3;border-radius:12px;padding:20px;margin:18px 0;color:#0d2446}
.cs-consignor-shell .ci-box h2{color:#0c2648}
@media(max-width:850px){.cs-modern{grid-template-columns:1fr}.cs-modern .cs-side{padding:12px}.cs-modern .cs-side nav{display:flex;flex-direction:row;overflow-x:auto}.cs-modern .cs-side nav a{white-space:nowrap}.cs-modern .cs-reference-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.cs-consignor-shell{width:100%!important}}
@media(max-width:600px){.cs-modern .cs-reference-stats{grid-template-columns:1fr}.cs-modern .cs-reference-stats .cs-stat{min-height:92px}.cs-modern .cs-main{padding:14px}}

/* v0.3.9: sales, net and marketplace fees are distinct KPIs */
.cs-modern .cs-reference-stats{grid-template-columns:repeat(5,minmax(0,1fr));}
.cs-modern .cs-reference-stats .cs-stat-teal{background:linear-gradient(130deg,#0d91ac,#126c90)}
.cs-modern .cs-reference-stats .cs-stat-gold{background:linear-gradient(130deg,#ad720e,#875009)}
@media(max-width:1150px){.cs-modern .cs-reference-stats{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:650px){.cs-modern .cs-reference-stats{grid-template-columns:1fr;}}
