/* web.css — web-edition chrome only. The app's own stylesheet (popup.css) is untouched. */
.web-banner{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;padding:8px 14px;background:var(--bg2,#171c2e);
  border-bottom:1px solid var(--line,#38426b);color:var(--ink,#eef1f8);font-size:var(--fs-sm,.75rem);line-height:1.45}
.web-banner-msg{margin:0;flex:1 1 320px;color:var(--muted,#8b93ab)}
.web-banner-msg strong{color:var(--ink,#eef1f8)}
.web-banner a,.web-banner-btn{color:var(--focus,#9DD9F5);text-decoration:underline;background:none;border:0;padding:4px 2px;font:inherit;cursor:pointer;min-height:24px}
.web-banner a:focus-visible,.web-banner-btn:focus-visible{outline:2px solid var(--focus,#9DD9F5);outline-offset:2px}
.web-banner-err{margin:0;padding:8px 14px;background:var(--bg2,#171c2e);color:var(--lose,#FDA4AF);border-bottom:1px solid var(--line,#38426b);font-size:var(--fs-sm,.75rem)}
/* inventory: live shows an explainer (extension-only), demo opens the synthetic inventory; the extension's own onboarding card is hidden on the web */
html[data-dc-web] #firstrun,html[data-dc-web] #showOnboard{display:none !important}

/* sparkline draw-on uses stroke-dasharray:1 with pathLength + non-scaling-stroke; Chrome reads the dash in px, so on wide surfaces the finished line stays dashed. Draw it solid here. */
html[data-dc-web] .spark-draw{animation:none !important;stroke-dasharray:none !important;stroke-dashoffset:0 !important}

/* light-theme contrast: popup.css colours match times with --op2 (#6EC6E8), 1.8:1 on the light surface. #1F6F95 is >=4.5:1 there. */
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]) .mtime,:root:not([data-theme="dark"]) #hubLink{color:#1F6F95}}
:root[data-theme="light"] .mtime,:root[data-theme="light"] #hubLink{color:#1F6F95}
.web-howto{margin:0;padding:12px 24px 16px;color:var(--ink,#eef1f8);font-size:var(--fs-sm,.8125rem);line-height:1.55;max-width:46rem}
.web-howto[hidden]{display:none}
.web-howto h2{margin:0 0 6px;font-size:var(--fs-md,.9375rem)}
.web-howto ol{margin:0 0 8px;padding-left:1.25rem}.web-howto li{margin:3px 0}
.web-howto a{color:var(--focus,#1F6F95);text-decoration:underline;padding:4px 2px;display:inline-block;min-height:24px}
.web-howto-note{margin:6px 0 0;color:var(--muted,#8b93ab)}
.web-foot{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;padding:10px 24px;border-top:1px solid var(--line,#38426b);font-size:var(--fs-sm,.75rem)}
.web-foot a,.web-foot-btn{color:var(--link,var(--ink,#1F6F95));text-decoration:underline;background:none;border:0;font:inherit;cursor:pointer;padding:4px 2px;min-height:24px}
.web-foot a:focus-visible,.web-foot-btn:focus-visible,.web-foot-opt input:focus-visible{outline:2px solid var(--focus,#9DD9F5);outline-offset:2px}
.web-foot-opt{flex:1 1 100%;color:var(--muted,#8b93ab);display:flex;gap:6px;align-items:flex-start;min-height:24px}
/* narrow screens: the benchmark rows overflowed the card (popup.css lays them out for ~400px popups) */
@media (max-width:480px){html[data-dc-web] .web-banner{padding:6px 12px}
  html[data-dc-web] .pct-row{grid-template-columns:minmax(0,1fr) minmax(64px,40%) 44px;gap:6px}
  html[data-dc-web] .pct-row>*{min-width:0}
  html[data-dc-web] .web-howto,html[data-dc-web] .web-foot{padding-left:16px;padding-right:16px}}
.web-foot-opt input{flex:none;width:16px;height:16px;min-width:0;min-height:0;margin:3px 0 0;padding:0}
.web-foot-opt{justify-content:flex-start;text-align:left}

/* modal + tour */
.web-modal-back{position:fixed;inset:0;background:rgba(5,8,18,.6);display:flex;align-items:center;justify-content:center;z-index:1000;padding:16px}
.web-modal{background:var(--bg,#0f1320);color:var(--ink,#eef1f8);border:1px solid var(--line,#38426b);border-radius:12px;max-width:34rem;width:100%;max-height:90vh;overflow:auto;padding:16px 20px;font-size:var(--fs-sm,.8125rem);line-height:1.55}
:root[data-theme="light"] .web-modal{background:#fff}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]) .web-modal{background:#fff}}
.web-modal h2{margin:0 0 8px;font-size:var(--fs-md,.9375rem)}.web-modal ol{padding-left:1.25rem;margin:0 0 8px}.web-modal li{margin:8px 0}
.web-modal a{color:var(--focus,#1F6F95);text-decoration:underline;padding:4px 2px;display:inline-block;min-height:24px}
.web-modal-close,.web-tour button{background:none;border:1px solid var(--line,#38426b);color:var(--ink,#eef1f8);border-radius:8px;padding:6px 14px;min-height:32px;font:inherit;cursor:pointer}
.web-modal-close{margin-top:8px}
.web-modal button:focus-visible,.web-tour button:focus-visible,.web-modal input:focus-visible{outline:2px solid var(--focus,#9DD9F5);outline-offset:2px}
.web-tour{position:fixed;left:50%;bottom:16px;transform:translateX(-50%);width:min(30rem,calc(100% - 24px));background:var(--bg,#0f1320);color:var(--ink,#eef1f8);border:1px solid var(--focus,#9DD9F5);border-radius:12px;padding:12px 16px;z-index:1001;font-size:var(--fs-sm,.8125rem);line-height:1.5;box-shadow:0 8px 32px rgba(0,0,0,.45)}
:root[data-theme="light"] .web-tour{background:#fff}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]) .web-tour{background:#fff}}
.web-tour h2{margin:0 0 4px;font-size:var(--fs-md,.9375rem)}.web-tour p{margin:0 0 6px}.web-tour-count{color:var(--muted,#8b93ab)}
.web-tour-row{display:flex;gap:8px;justify-content:flex-end}.web-tour-next{background:var(--focus,#9DD9F5)!important;color:#0b1020!important;border-color:transparent!important}
.web-tour button:disabled{opacity:.45;cursor:default}
.web-tour-hl{outline:3px solid var(--focus,#9DD9F5)!important;outline-offset:3px;border-radius:6px}
.web-tour-offer{color:var(--muted,#8b93ab)}
@media (prefers-reduced-motion:reduce){.web-tour,.web-modal{transition:none}}

/* ---- First screen (web only). The extension's full page is a 1400px body with 24px gutters: on a desktop that left a lone pair of 280px cards,
   a 160px dropdown and a 1200px-wide sparkline hugging the left edge. One reading column (--web-col) now drives every band's inner edge, the
   same method the inventory page uses, so the logo, profile, tabs and content share one left edge; rules still run edge to edge. ---- */
html[data-dc-web].surface-full{--web-col:1120px;--web-gut:max(24px,calc((100% - var(--web-col)) / 2))}
html[data-dc-web].surface-full body{max-width:none}
html[data-dc-web].surface-full .hdr,html[data-dc-web].surface-full .profile,html[data-dc-web].surface-full .tabbar,
html[data-dc-web].surface-full .ft,html[data-dc-web].surface-full #setup,html[data-dc-web].surface-full #loading,
html[data-dc-web].surface-full .web-foot,html[data-dc-web].surface-full .web-howto{padding-left:var(--web-gut);padding-right:var(--web-gut)}
html[data-dc-web].surface-full .web-banner{padding-left:var(--web-gut);padding-right:var(--web-gut)}
html[data-dc-web].surface-full .tabpane{max-width:none;margin:0;padding-left:var(--web-gut);padding-right:var(--web-gut)}
html[data-dc-web].surface-full .web-howto{max-width:none}
@media (min-width:1000px){
  /* Overview: your numbers on the left, how you rank on the right, so the page is two balanced columns instead of one stretched one. */
  html[data-dc-web].surface-full #tab-overview:not(.hidden){display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);column-gap:32px;align-items:start}
  html[data-dc-web].surface-full #tab-overview > *{grid-column:1}
  html[data-dc-web].surface-full #tab-overview > .full-only{grid-column:2;grid-row:1 / span 8}
  html[data-dc-web].surface-full #tab-overview > .full-only .pct-row,
  html[data-dc-web].surface-full #tab-overview > .full-only .pct-row.pct-head{grid-template-columns:minmax(0,1fr) minmax(120px,40%) 56px}
  html[data-dc-web].surface-full #tab-overview svg.spark{height:140px}
}
html[data-dc-web].surface-full .cards{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
