:root{
  --green:#76b900;
  --green-dark:#5a8d00;
  --green-text:#416900;
  --black:#000;
  --ink:#1a1a1a;
  --white:#fff;
  --soft:#f7f7f7;
  --line:#ccc;
  --line-dark:#5e5e5e;
  --muted:#6b6b6b;
  --danger:#b31919;
  --danger-soft:#fff1f1;
  --warning:#df6500;
  --warning-soft:#fff6e8;
  --max:1280px;
  --radius:2px;
}

*{box-sizing:border-box}
html{font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:var(--white);font-size:16px;line-height:1.5}
body{margin:0;min-width:320px;min-height:100vh;display:flex;flex-direction:column;background:var(--white)}
a{color:#0046a4;text-underline-offset:3px}
h1,h2,h3,p{margin-top:0}
h1{font-size:clamp(2rem,4vw,3rem);line-height:1.15;margin-bottom:1rem;color:var(--black)}
h2{font-size:1.5rem;line-height:1.25;color:var(--black)}
h3{font-size:1.0625rem;line-height:1.45;color:var(--black)}
button,input,select{font:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.5}
input,select{width:100%;min-height:44px;padding:.7rem 1rem;border:1px solid var(--line);border-radius:var(--radius);background:var(--white);color:var(--ink)}
input:focus,select:focus{border:2px solid var(--green);outline:0;padding:calc(.7rem - 1px) calc(1rem - 1px)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--green-text);outline-offset:3px}

.skip{position:fixed;left:-9999px;top:1rem;z-index:100;background:var(--green);color:var(--black);font-weight:700;padding:.75rem 1rem;border-radius:var(--radius)}
.skip:focus{left:1rem}

.site-header{position:sticky;top:0;z-index:20;background:var(--black);color:var(--white);border-bottom:1px solid var(--line-dark)}
.nav-shell{width:100%;min-height:64px;margin:0;padding-inline:clamp(1rem,2vw,3rem);display:flex;align-items:center;justify-content:space-between;gap:clamp(1.25rem,2vw,3rem)}
.brand{display:inline-flex;align-items:center;gap:.65rem;color:var(--white);font-size:1.1rem;font-weight:700;text-decoration:none;white-space:nowrap}
.brand-mark{width:12px;height:12px;background:var(--green);display:inline-block;flex:0 0 auto}
nav{display:flex;flex:1;justify-content:space-between;align-items:stretch;gap:clamp(.1rem,.4vw,.55rem);min-height:64px}
nav>a{display:inline-flex;align-items:center;color:var(--white);text-decoration:none;font-weight:700;white-space:nowrap;padding:.75rem clamp(.55rem,.7vw,1rem);border-bottom:4px solid transparent}
nav>a:hover,nav>a.active{border-bottom-color:var(--green)}
.inline{display:inline-flex;align-items:center;margin-left:.5rem}.inline button{white-space:nowrap}
.nav-toggle{display:none;background:transparent;color:var(--white);border:1px solid var(--line-dark);border-radius:var(--radius);min-height:44px;padding:.55rem .8rem;font-weight:700;gap:.4rem}

main{width:min(var(--max),calc(100% - 3rem));margin:0 auto;padding:4rem 0;flex:1}
.site-footer{background:var(--black);color:rgba(255,255,255,.7);padding:2.5rem 0;margin-top:auto;border-top:4px solid var(--green)}
.footer-shell{width:min(var(--max),calc(100% - 3rem));margin:auto;display:flex;justify-content:space-between;gap:2rem;align-items:flex-end}
.site-footer strong{color:var(--white);font-size:1.05rem}.site-footer p{margin:.35rem 0 0}

.button,button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.68rem 1.25rem;border-radius:var(--radius);border:1px solid var(--line);background:var(--white);color:var(--black);font-weight:700;text-decoration:none}
.button-primary,.primary{background:var(--green);color:var(--black);border-color:var(--green)}
.button-primary:hover,.primary:hover{background:var(--green-dark);border-color:var(--green-dark);color:var(--black)}
.button-outline{background:transparent;border:2px solid var(--green);padding:calc(.68rem - 1px) calc(1.25rem - 1px)}
.button-outline-on-dark{background:transparent;border:1px solid var(--white);color:var(--white)}
.button-outline-on-dark:hover{border-color:var(--green);color:var(--green)}

.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:2rem;margin-bottom:2rem}.page-heading>div{max-width:850px}
.card{position:relative;display:block;background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:1.5rem;text-decoration:none;color:inherit;box-shadow:none}
a.card:hover{border-color:var(--green)}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.5rem;margin:1.5rem 0 3rem}
.anchor{border-top:4px solid var(--black)}
.anchor:before,.workflow-stage:before{content:"";position:absolute;width:12px;height:12px;background:var(--green);right:-1px;top:-1px}
.eyebrow{margin:0 0 .35rem;text-transform:uppercase;letter-spacing:.06em;font-size:.875rem;line-height:1.4;font-weight:700;color:var(--green-text)}
.eyebrow-on-dark{color:var(--green)}
.muted{color:var(--muted)}.small{font-size:.875rem}
.badge{float:right;padding:.25rem .6rem;background:var(--soft);border:1px solid var(--line);border-radius:var(--radius);font-size:.75rem;font-weight:700;text-transform:uppercase}
.badge.high{background:var(--green);border-color:var(--green);color:var(--black)}

.page-hero{position:relative;left:50%;width:100vw;margin:-4rem 0 4rem -50vw;padding:4.5rem max(1.5rem,calc((100vw - var(--max))/2));}
.page-hero-dark{background:var(--black);color:var(--white);border-bottom:4px solid var(--green)}
.page-hero h1{color:var(--white);max-width:760px}.page-hero p:not(.eyebrow){max-width:850px;font-size:1.1rem;color:rgba(255,255,255,.76)}
.workflow-key{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:2rem}
.workflow-key span{padding:.45rem .75rem;border:1px solid var(--line-dark);border-radius:var(--radius);font-size:.875rem;font-weight:700;color:var(--white)}
.workflow-key span:first-letter{color:var(--green)}

.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);margin:1.5rem 0 3rem}
.kpis article{background:var(--black);color:var(--white);padding:1.5rem;min-width:0}
.kpis span{display:block;color:rgba(255,255,255,.7);font-size:.875rem;text-transform:uppercase;font-weight:700;letter-spacing:.04em}
.kpis strong{display:block;color:var(--green);font-size:1.35rem;margin-top:.45rem;overflow-wrap:anywhere}

.filters{display:grid;grid-template-columns:minmax(220px,2fr) repeat(2,minmax(150px,1fr)) auto;gap:1rem;align-items:end;padding:1.5rem;background:var(--soft);border:1px solid var(--line);margin:1.5rem 0 2rem}
.filters label{display:grid;gap:.4rem;font-weight:700}
.warning,.error{padding:1rem 1.25rem;border-radius:var(--radius);margin:1.5rem 0;border-left:4px solid}
.warning{background:var(--warning-soft);border-color:var(--warning)}
.error{background:var(--danger-soft);border-color:var(--danger);color:#650b0b}
.empty,.empty-state{color:var(--muted);padding:1.25rem;border:1px dashed var(--line);background:var(--soft);border-radius:var(--radius)}

.table-wrap{overflow:auto;border:1px solid var(--line);margin-top:1.5rem}
table{border-collapse:collapse;width:100%;min-width:760px}
th,td{padding:.8rem 1rem;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}
th{background:var(--black);color:var(--white);font-size:.875rem;text-transform:uppercase;letter-spacing:.03em;position:sticky;top:0}
tbody tr:nth-child(even){background:var(--soft)}
.prose{max-width:850px}.prose h2{margin-top:2.5rem;padding-top:1rem;border-top:1px solid var(--line)}.prose li{margin:.5rem 0}

dialog{border:1px solid var(--line);border-top:4px solid var(--green);border-radius:var(--radius);padding:1.5rem;max-width:440px}dialog::backdrop{background:rgba(0,0,0,.72)}

.auth-page{background:var(--soft)}
.auth-page main{display:grid;align-items:center;padding:4rem 0}
.login-shell{display:grid;grid-template-columns:1.05fr .95fr;max-width:980px;width:100%;margin:auto;border:1px solid var(--line);background:var(--white)}
.login-intro{position:relative;background:var(--black);color:var(--white);padding:4rem;min-height:480px;display:flex;flex-direction:column;justify-content:center}
.login-intro h1{color:var(--white);font-size:clamp(2.25rem,4vw,3rem)}
.login-intro>p:last-of-type{color:rgba(255,255,255,.75);font-size:1.05rem}
.corner-square{position:absolute;width:16px;height:16px;background:var(--green);right:0;bottom:0}
.login-panel{padding:4rem;display:flex;flex-direction:column;justify-content:center}
.login-panel h2{font-size:2rem;margin-bottom:.5rem}
.login-form{display:grid;gap:.55rem;margin-top:1.5rem}
.login-form label{font-weight:700;margin-top:.45rem}
.login-form .button{width:100%;margin-top:1rem}

.workflow-stack{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:1.5rem}
.workflow-stage{min-width:0;padding:2rem;border-color:var(--line)}
.stage-header{display:grid;grid-template-columns:48px 1fr;gap:1rem;align-items:start;border-bottom:1px solid var(--line);padding-bottom:1.25rem;margin-bottom:1.5rem}
.stage-header h2{margin-bottom:.35rem}.stage-header p:last-child{margin-bottom:0}
.stage-header-actions{grid-template-columns:48px 1fr}.stage-header-actions .button{grid-column:2;width:fit-content}
.stage-number{display:grid;place-items:center;width:48px;height:48px;background:var(--black);color:var(--green);font-size:1.3rem;font-weight:700}
.search-controls{max-width:760px;margin-bottom:1.25rem}.search-controls label{display:block;font-weight:700;margin-bottom:.45rem}.search-controls p{margin:.45rem 0 0}
.search-results{display:grid;grid-template-columns:1fr;gap:0;border:1px solid var(--line);max-height:520px;overflow:auto}
.search-result{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:1rem;padding:1rem;background:var(--white);min-height:84px;border-bottom:1px solid var(--line)}
.search-result:last-child{border-bottom:0}
.search-result>div{min-width:0}.search-result strong{display:block;overflow-wrap:anywhere}.search-result small{display:block;color:var(--muted);margin-top:.25rem}
.search-result .button,.search-result button{min-width:104px}
.basket-items{display:grid;grid-template-columns:1fr;gap:1rem;max-height:560px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding-right:.35rem;align-content:start}
.basket-items .empty-state{grid-column:1/-1;text-align:center;margin:0}
.basket-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:1rem;padding:1rem;border:1px solid var(--line);border-left:4px solid var(--green);background:var(--soft)}
.basket-item span{overflow-wrap:anywhere}.remove-item{color:var(--danger);background:var(--white);border-color:var(--danger);padding:.55rem .8rem;min-width:90px}
.remove-item:hover{background:var(--danger);color:var(--white)}
.count{display:inline-grid;place-items:center;min-width:1.8rem;height:1.8rem;padding:0 .4rem;background:var(--green);color:var(--black);font-size:.8rem;vertical-align:middle;margin-left:.25rem}
.recommendation-status{padding:.85rem 1rem;background:var(--soft);border-left:4px solid var(--green);color:var(--muted);margin-bottom:1.5rem}
.recommendation-grid{display:grid;grid-template-columns:1fr;gap:1.5rem;max-height:560px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding-right:.35rem;align-content:start}
.recommendation-card{border-top:4px solid var(--black);display:flex;flex-direction:column;min-width:0}
.recommendation-card h3{padding-right:2.5rem;margin:.2rem 0 .75rem;overflow-wrap:anywhere}
.recommendation-rank{position:absolute;right:1rem;top:.8rem;color:var(--green-text);font-weight:700}
.recommendation-score{display:block;font-size:1.25rem;color:var(--green-text);margin-bottom:.5rem}
.recommendation-card p{flex:1}.recommendation-card .button,.recommendation-card .primary{width:100%;margin-top:.5rem}

@media(max-width:1100px){
  .workflow-stack{grid-template-columns:1fr;gap:2rem}
  .recommendation-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:1400px){
  .nav-toggle{display:inline-flex}
  nav{display:none;position:absolute;left:0;right:0;top:64px;background:var(--black);border-top:1px solid var(--line-dark);padding:1rem;min-height:0;flex-direction:column;align-items:stretch}
  nav.open{display:flex}nav>a{min-height:48px;border-bottom:1px solid var(--line-dark)}.inline{margin:1rem 0 0}.inline button{width:100%}
}

@media(max-width:960px){
  main{padding:3rem 0}.page-hero{margin-top:-3rem;padding-top:3.5rem;padding-bottom:3.5rem}
  .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.filters{grid-template-columns:repeat(2,minmax(0,1fr))}
  .login-intro,.login-panel{padding:3rem}.recommendation-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:700px){
  main,.footer-shell{width:min(100% - 2rem,var(--max))}.nav-shell{width:100%;padding-inline:1rem}
  main{padding:2rem 0}.page-hero{margin-top:-2rem;margin-bottom:2rem;padding:2.5rem 1rem}
  .footer-shell{display:block}.footer-shell>p{margin-top:1.5rem}
  .login-shell{grid-template-columns:1fr}.login-intro{min-height:auto;padding:2.5rem 1.5rem}.login-panel{padding:2.5rem 1.5rem}
  .page-heading{display:block}.page-heading .button{margin-top:1rem}
  .workflow-stage{padding:1.25rem}.stage-header,.stage-header-actions{grid-template-columns:40px 1fr}.stage-number{width:40px;height:40px}.stage-header-actions .button{grid-column:2;width:fit-content}
  .search-results,.basket-items,.recommendation-grid{grid-template-columns:1fr;max-height:440px}
  .kpis,.filters{grid-template-columns:1fr}.cards{grid-template-columns:1fr}
}

@media(max-width:420px){
  h1{font-size:2rem}.brand{font-size:1rem}.nav-toggle span:last-child{display:none}
  .search-result,.basket-item{grid-template-columns:1fr}.search-result button,.basket-item button{width:100%}
  .workflow-key{display:grid;grid-template-columns:1fr;width:100%}
}

@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.forecast-page main{width:100%;max-width:none;padding-bottom:0}.forecast-page .site-footer{margin-top:0}.forecast-hero{margin-bottom:0}.forecast-shell{padding:2rem clamp(1rem,3vw,3rem);background:#f4f4f4}.forecast-controls{display:grid;grid-template-columns:minmax(220px,1.5fr) repeat(4,minmax(145px,1fr)) auto;gap:1rem;align-items:end;background:var(--white);border:1px solid var(--line);padding:1rem;margin-bottom:1rem}.forecast-controls label{display:grid;gap:.35rem;font-weight:700}.forecast-status{padding:.85rem 1rem;background:var(--white);border-left:4px solid var(--green);margin:0 0 1rem}.forecast-status.error{border-left-color:var(--danger)}.forecast-workspace{display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);gap:1rem;align-items:start}.forecast-product-panel,.forecast-detail{padding:1.25rem}.forecast-product-panel{position:sticky;top:80px}.forecast-product-list{height:calc(100vh - 300px);min-height:440px;overflow:auto;border:1px solid var(--line);scrollbar-gutter:stable}.forecast-product-list:focus-visible,.forecast-chart-wrap:focus-visible,.forecast-table-wrap:focus-visible,[data-forecast-history-wrap]:focus-visible{outline:3px solid var(--green-text);outline-offset:3px}.forecast-product{display:block;width:100%;min-height:76px;padding:.8rem 1rem;text-align:left;border:0;border-bottom:1px solid var(--line);background:var(--white)}.forecast-product:hover{background:#edf6dc}.forecast-product[aria-pressed="true"]{background:#e0f1bd;border-left:6px solid var(--green-dark);padding-left:calc(1rem - 6px)}.forecast-product[aria-pressed="true"] span,.forecast-product[aria-pressed="true"] small{color:#555}.forecast-product strong,.forecast-product span,.forecast-product small{display:block;overflow-wrap:anywhere}.forecast-product span,.forecast-product small{color:var(--muted);margin-top:.15rem}.forecast-detail-heading{display:flex;justify-content:space-between;gap:1rem;align-items:start}.forecast-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);margin:1rem 0}.forecast-kpis article{padding:1rem;background:var(--black);color:var(--white)}.forecast-kpis span{display:block;color:#d2d2d2;font-size:.75rem;text-transform:uppercase;font-weight:700}.forecast-kpis strong{display:block;color:var(--green);font-size:1.15rem;margin-top:.35rem}.forecast-chart-wrap{overflow:auto;border:1px solid var(--line);background:var(--white)}.forecast-chart{display:block;width:100%;min-width:680px;height:auto}.forecast-grid{stroke:#dedede;stroke-width:1}.forecast-axis{stroke:#333;stroke-width:2}.forecast-axis-label{fill:#555;font-size:12px}.forecast-band{fill:#ddecbe;stroke:none}.forecast-line{fill:none;stroke:var(--green-dark);stroke-width:4;stroke-linejoin:round;stroke-linecap:round}.forecast-actual{fill:#111;stroke:#fff;stroke-width:2}.forecast-table-wrap{max-height:340px;overflow:auto}.forecast-table{min-width:620px}.forecast-table caption{text-align:left;font-weight:700;padding:1rem 0}.forecast-history{margin-top:1rem}.forecast-history summary{cursor:pointer;font-weight:700;padding:.75rem 0}.forecast-history .table-wrap{max-height:340px;overflow:auto}.forecast-caveat{margin:1rem 0 0}
@media(max-width:1180px){.forecast-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.forecast-workspace{grid-template-columns:1fr}.forecast-product-panel{position:static}.forecast-product-list{height:320px;min-height:0}.forecast-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.forecast-shell{padding:1rem}.forecast-controls{grid-template-columns:1fr}.forecast-workspace{display:block}.forecast-product-panel{margin-bottom:1rem}.forecast-product-list{height:300px}.forecast-detail-heading{display:block}.forecast-kpis{grid-template-columns:1fr 1fr}.forecast-kpis article:last-child{grid-column:1/-1}.forecast-detail{padding:1rem}.forecast-chart{min-width:620px}}

.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.customer-page .nav-shell{width:calc(100% - 2rem);min-height:52px;gap:1rem}.customer-page nav{min-height:52px}.customer-page nav>a{padding:.45rem .7rem}.customer-page main{width:100%;margin:0;padding:0;min-height:calc(100vh - 53px)}
.customer-hero{left:auto;width:100%;margin:0;padding:.75rem clamp(1rem,2vw,2rem)}.customer-hero .eyebrow{font-size:.75rem;margin-bottom:.2rem}.customer-hero h1{font-size:clamp(1.45rem,2vw,1.85rem);margin-bottom:.25rem}.customer-hero p:not(.eyebrow){max-width:none;font-size:.875rem;line-height:1.35;margin-bottom:.35rem}.customer-hero .dot-legend{gap:.4rem .9rem;margin-top:.4rem}.customer-hero .dot-legend span{font-size:.875rem;line-height:1.25}
.customer-page [data-customer-dotplot]{width:100%;padding:1rem clamp(1rem,2vw,2rem);flex:1;display:flex;min-height:0;flex-direction:column}
.dot-legend{display:flex;flex-wrap:wrap;gap:.75rem 1.25rem;margin-top:1.5rem}.dot-legend span{display:inline-flex;align-items:center;gap:.55rem;font-weight:700;color:var(--white)}
.purchase-dot,.weekend-key,.item-ring-key{display:inline-block;width:18px;height:18px;flex:0 0 auto}.purchase-dot{border-radius:50%;background:var(--green)}.purchase-dot.first-observed{outline:3px solid var(--white);outline-offset:2px}.weekend-key{background:#e5e5e5;border:1px solid var(--white)}.item-ring-key{width:14px;height:14px;margin:2px;border-radius:50%;background:var(--green-dark);border:2px solid var(--black);box-shadow:0 0 0 3px #c00000}
.customer-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;align-items:end;padding:1.5rem;background:var(--soft);border:1px solid var(--line);margin-bottom:1rem}
.customer-controls label{display:grid;gap:.4rem;font-weight:700}.customer-controls button{width:100%}.customer-status{padding:.85rem 1rem;background:var(--soft);border-left:4px solid var(--green);margin-bottom:1.5rem}
.customer-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,320px);gap:1rem;align-items:stretch;min-height:0}.customer-plot-shell{display:flex;min-width:0;min-height:0;flex-direction:column}.dotplot-horizontal-scroll{height:24px;min-height:24px;padding:5px 6px;border:1px solid var(--line);border-bottom:0;background:#f2f2f2;cursor:pointer;touch-action:none;user-select:none}.dotplot-scroll-track{position:relative;height:12px;border-radius:6px;background:#c8c8c8;box-shadow:inset 0 0 0 1px #aaa}.dotplot-scroll-thumb{position:absolute;inset-block:1px;left:0;min-width:44px;border-radius:5px;background:var(--green-text);box-shadow:inset 0 0 0 1px var(--black);cursor:grab}.dotplot-scroll-thumb:active{cursor:grabbing}.dotplot-horizontal-scroll[aria-valuemax="0"]{cursor:default}.dotplot-horizontal-scroll[aria-valuemax="0"] .dotplot-scroll-thumb{background:#888}.dotplot-horizontal-scroll:focus-visible{outline:3px solid var(--green-text);outline-offset:2px}.customer-plot-region{height:max(440px,calc(100vh - 480px));max-height:none;overflow:auto;border:1px solid var(--line);overscroll-behavior:contain;scrollbar-gutter:stable both-edges;background:var(--white)}.customer-plot-region.search-active{overflow-x:scroll}
.customer-plot-region:focus-visible{outline:3px solid var(--green-text);outline-offset:3px}.customer-dotplot{width:max-content;min-width:100%;table-layout:fixed;margin:0}.customer-dotplot th,.customer-dotplot td{height:52px;min-width:52px;width:52px;padding:0;text-align:center;border-right:1px solid #ddd;border-bottom:1px solid #ddd;background:var(--white)}
.customer-dotplot thead th{top:0;z-index:4;height:62px;writing-mode:vertical-rl;transform:rotate(180deg);font-size:.72rem;line-height:1.1;text-transform:none;letter-spacing:0;white-space:nowrap;background:var(--black)}
.customer-date-button{width:100%;height:100%;min-height:44px;padding:.15rem;border:0;background:transparent;color:inherit;font-size:inherit;line-height:inherit}.customer-date-button:hover{background:#315400;color:var(--white)}.customer-date-button:focus-visible{outline:3px solid var(--green);outline-offset:-3px}
.customer-dotplot .customer-name-head,.customer-dotplot .customer-name-cell{position:sticky;left:0;width:260px;min-width:260px;max-width:260px;text-align:left;writing-mode:horizontal-tb;transform:none;padding:.7rem 1rem}
.customer-dotplot .customer-name-head{z-index:6;background:var(--black);color:var(--white);font-size:.875rem;text-transform:uppercase}.customer-dotplot .customer-name-cell{z-index:3;background:var(--white);color:var(--ink);font-weight:400}
.customer-dotplot .customer-name-cell strong,.customer-dotplot .customer-name-cell small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.customer-dotplot .customer-name-cell small{color:var(--muted);font-size:.75rem;margin-top:.2rem}
.customer-dotplot td.weekend{background:#ededed}.customer-dotplot thead th.weekend{background:#333}
.purchase-dot-button{position:relative;width:44px;height:44px;min-height:44px;padding:0;border:0;background:transparent;border-radius:50%}.purchase-dot-button:before{content:"";position:absolute;inset:14px;border-radius:50%;background:var(--green-dark);border:2px solid var(--black)}.purchase-dot-button.item-match:before{box-shadow:0 0 0 4px #c00000}.purchase-dot-button.first-observed:after{content:"";position:absolute;inset:6px;border-radius:50%;border:3px solid var(--black)}.purchase-dot-button.detail-selected{background:#fff0f0;box-shadow:inset 0 0 0 3px var(--black)}.purchase-dot-button:hover{background:#dff0bd}.purchase-dot-button:focus-visible{outline:3px solid #0046a4;outline-offset:-2px;background:#e7f2ff}
.customer-items-heading{margin:1.25rem 0 .65rem;padding-top:1rem;border-top:1px solid var(--line);font-size:1rem}.customer-item-list{margin:0;padding-left:1.25rem}.customer-item{padding:.45rem 0;border-bottom:1px solid #e5e5e5}.customer-item:last-child{border-bottom:0}.customer-item strong,.customer-item small,.customer-purchase-row strong,.customer-purchase-row small{display:block;overflow-wrap:anywhere}.customer-item small,.customer-purchase-row small{margin-top:.15rem;color:var(--muted)}.customer-item-error{margin:.5rem 0;padding:.75rem}.customer-purchase-list{display:grid;gap:0}.customer-purchase-row{padding:.65rem 0;border-bottom:1px solid #e5e5e5}.customer-purchase-row:last-child{border-bottom:0}
.customer-day-details{position:sticky;top:68px;height:max(440px,calc(100vh - 480px));overflow:auto;border-top:4px solid var(--black)}.customer-day-details h2{margin-bottom:.65rem}.lens-search{display:grid;gap:.35rem;margin:.75rem 0;font-weight:700}.lens-search input{min-width:0}.customer-period-items{max-height:min(38vh,340px);overflow:auto;border:1px solid var(--line);scrollbar-gutter:stable}.customer-period-items:focus-visible{outline:3px solid #0072ce;outline-offset:2px}.customer-period-item-list{list-style:none;margin:0;padding:0}.customer-period-item{margin:0;border-bottom:1px solid var(--line)}.customer-period-item:last-child{border-bottom:0}.customer-period-item-button{display:block;width:100%;min-height:52px;padding:.6rem .7rem;border:0;border-left:5px solid transparent;background:var(--white);color:var(--ink);text-align:left}.customer-period-item-button:hover{background:#eef6ff}.customer-period-item-button.selected{border-left-color:#c00000;background:#fff0f0}.customer-period-item-button strong,.customer-period-item-button small{display:block;overflow-wrap:anywhere}.customer-period-item-button small{margin-top:.2rem;color:var(--muted)}.customer-selected-day-section{margin-top:1.25rem;padding-top:1rem;border-top:2px solid var(--black)}.customer-refresh-status:not(:empty){margin:1rem 0 0;padding:.75rem;background:var(--soft);border-left:4px solid #0072ce}.customer-detail-date{font-weight:700;color:var(--green-text)}.customer-detail-list{display:grid;grid-template-columns:1fr auto;gap:.6rem 1rem;margin:0}.customer-detail-list dt{color:var(--muted)}.customer-detail-list dd{margin:0;font-weight:700;text-align:right}.customer-caveat{margin-top:1rem;max-width:none}
@media(min-width:1600px){.customer-controls{grid-template-columns:minmax(220px,1.5fr) repeat(6,minmax(125px,1fr)) repeat(2,minmax(110px,.7fr));gap:.75rem;padding:1rem}.customer-status{margin-bottom:1rem}.customer-plot-region,.customer-day-details{height:max(520px,calc(100vh - 365px))}}
@media(min-width:1181px) and (max-width:1599px){.customer-controls{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:1400px){.customer-page .nav-toggle{display:inline-flex}.customer-page nav{display:none;position:absolute;left:0;right:0;top:52px;background:var(--black);border-top:1px solid var(--line-dark);padding:1rem;min-height:0;flex-direction:column;align-items:stretch}.customer-page nav.open{display:flex}.customer-page nav>a{min-height:48px;border-bottom:1px solid var(--line-dark)}.customer-page .inline{margin:1rem 0 0}.customer-page .inline button{width:100%}}
@media(max-width:1180px){.customer-controls{grid-template-columns:repeat(4,minmax(0,1fr))}.customer-workspace{grid-template-columns:1fr}.customer-day-details{position:static;height:auto;overflow:visible}}
@media(max-width:960px){.customer-page nav{top:52px}}
@media(max-width:700px){.customer-hero{padding:.65rem 1rem}.customer-hero .dot-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;column-gap:.75rem}.customer-controls{grid-template-columns:1fr 1fr;padding:1rem}.customer-controls label:first-child{grid-column:1/-1}.customer-plot-region{height:60vh;min-height:360px;max-height:560px}.customer-dotplot .customer-name-head,.customer-dotplot .customer-name-cell{width:190px;min-width:190px;max-width:190px;padding:.6rem}.customer-day-details{padding:1.25rem}}
@media(max-width:420px){.customer-controls{grid-template-columns:1fr}.customer-controls label:first-child{grid-column:auto}.customer-dotplot .customer-name-head,.customer-dotplot .customer-name-cell{width:160px;min-width:160px;max-width:160px}}
