/* EchoWerks Automation Supply — store page. Builds on styles.css tokens. */
.page-store .store-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: end; padding-top: clamp(4rem, 6vw, 6rem); padding-bottom: 2.5rem; }
.page-store .store-hero h1 { max-width: 13ch; }
.store-hero-lead { max-width: 42rem; margin-top: 1.4rem; color: #4d4c42; font-size: clamp(1.02rem, 1.4vw, 1.18rem); }
.store-trust { display: grid; gap: .9rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(247,241,229,.72); box-shadow: var(--shadow); }
.store-trust .eyebrow { margin: 0; }
.store-trust .store-trust-name { font-family: "Newsreader", Georgia, serif; font-size: 1.7rem; font-weight: 600; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; }
.cred-list { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.cred-list li { padding: .45rem .7rem; border: 1px solid var(--ink); border-radius: 999px; font-family: "DM Mono", monospace; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.cred-list li.cred-lead { color: #f8f5ed; background: var(--ink); }
.store-trust p { color: var(--muted); font-size: .92rem; line-height: 1.6; }
.store-stats { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 2.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line); color: #45463c; font-size: .85rem; }
.store-stats b { color: var(--ember); font-family: "DM Mono", monospace; font-size: .78rem; margin-right: .35rem; }

.store-layout { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: 2rem; align-items: start; padding-top: 1rem; }
.store-toolbar { position: sticky; top: 5.2rem; z-index: 20; display: grid; gap: .8rem; padding: 1rem; margin-bottom: 1.4rem; border: 1px solid var(--line); border-radius: 1.2rem; background: rgba(247,241,229,.92); backdrop-filter: blur(14px); box-shadow: 0 8px 30px rgba(38,35,25,.08); }
.store-toolbar-row { display: grid; grid-template-columns: 1fr 13rem 11rem; gap: .6rem; }
.store-toolbar input, .store-toolbar select { width: 100%; min-height: 2.9rem; padding: .7rem .95rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--paper-bright); }
.brand-chips { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .15rem; scrollbar-width: thin; }
.brand-chip { flex: none; padding: .5rem .85rem; border: 1px solid var(--line); border-radius: 999px; color: #37392f; background: transparent; font-size: .82rem; font-weight: 700; cursor: pointer; transition: background 160ms ease, color 160ms ease; }
.brand-chip:hover { background: rgba(23,25,18,.07); }
.brand-chip[aria-pressed="true"] { color: #f8f5ed; background: var(--ink); border-color: var(--ink); }
.brand-chip small { margin-left: .3rem; opacity: .6; font-family: "DM Mono", monospace; font-size: .68rem; }

.result-meta { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; color: var(--muted); font-family: "DM Mono", monospace; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1rem; }
.product-card { display: flex; flex-direction: column; gap: .65rem; min-height: 17rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: 1.2rem; background: rgba(247,241,229,.7); transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.product-card:hover { transform: translateY(-3px); border-color: rgba(23,25,18,.32); box-shadow: 0 14px 36px rgba(38,35,25,.12); }
.product-brand { display: flex; justify-content: space-between; gap: .5rem; color: var(--moss-dark); font-family: "DM Mono", monospace; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.product-brand span:last-child { color: var(--muted); text-align: right; }
.product-name { font-family: "Newsreader", Georgia, serif; font-size: 1.45rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.product-desc { color: var(--muted); font-size: .88rem; line-height: 1.55; }
.spec-list { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; padding: 0; list-style: none; }
.spec-list li { padding: .25rem .5rem; border-radius: 999px; background: rgba(23,25,18,.06); font-size: .7rem; }
.product-foot { display: flex; align-items: end; justify-content: space-between; gap: .6rem; margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--line); }
.price-label { color: var(--muted); font-family: "DM Mono", monospace; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; }
.price { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.add-btn { min-height: 2.5rem; padding: .55rem .95rem; border: 1px solid var(--ink); border-radius: 999px; color: #f8f5ed; background: var(--ink); font-size: .82rem; font-weight: 700; cursor: pointer; transition: background 160ms ease, transform 160ms ease; }
.add-btn:hover { background: var(--violet); transform: translateY(-2px); }
.add-btn.is-added { color: var(--ink); background: transparent; }
.store-empty { padding: 3rem 1rem; text-align: center; color: var(--muted); }
.load-more { display: flex; justify-content: center; margin-top: 1.5rem; }

.quote-panel { position: sticky; top: 5.2rem; display: grid; gap: 1rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(247,241,229,.86); box-shadow: var(--shadow); max-height: calc(100vh - 6.5rem); overflow: auto; }
.quote-panel h2 { font-size: 2rem; }
.quote-items { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.quote-items li { display: grid; grid-template-columns: 1fr auto; gap: .2rem .6rem; padding: .65rem 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.quote-items strong { font-weight: 700; }
.quote-items .qi-sub { color: var(--muted); font-size: .76rem; }
.qty { display: inline-flex; align-items: center; gap: .3rem; grid-row: span 2; }
.qty button { width: 1.8rem; height: 1.8rem; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; font-weight: 700; }
.qty span { min-width: 1.4rem; text-align: center; font-family: "DM Mono", monospace; }
.quote-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.quote-total small { color: var(--muted); font-weight: 500; }
.quote-empty { color: var(--muted); font-size: .9rem; }
.quote-panel .panel-form { padding: 0; border: 0; background: none; box-shadow: none; }
.quote-note { color: var(--muted); font-size: .78rem; line-height: 1.5; }
.quote-fab { display: none; }

.store-notes { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); margin-top: 3rem; }
.store-notes article { padding: 1.5rem; border-right: 1px solid var(--line); }
.store-notes article:last-child { border-right: 0; }
.store-notes span { color: var(--ember); font-family: "DM Mono", monospace; font-size: .78rem; }
.store-notes h3 { margin: 1.6rem 0 .6rem; font-size: 1.5rem; }
.store-notes p { color: var(--muted); font-size: .92rem; }

body[data-theme="dark"] .store-trust, body[data-theme="dark"] .product-card, body[data-theme="dark"] .quote-panel { background: rgba(255,255,255,.045); }
body[data-theme="dark"] .store-toolbar { background: rgba(20,24,20,.9); }
body[data-theme="dark"] .store-toolbar input, body[data-theme="dark"] .store-toolbar select { color: inherit; background: rgba(255,255,255,.06); }
body[data-theme="dark"] .store-hero-lead, body[data-theme="dark"] .store-stats { color: inherit; opacity: .85; }

@media (max-width: 1050px) {
  .page-store .store-hero { grid-template-columns: 1fr; }
  .store-layout { grid-template-columns: 1fr; }
  .quote-panel { position: fixed; inset: auto 0 0 0; top: auto; z-index: 60; max-height: 82vh; border-radius: 1.5rem 1.5rem 0 0; transform: translateY(105%); transition: transform 260ms ease; }
  .quote-panel.is-open { transform: none; }
  .quote-fab { position: fixed; right: 1rem; bottom: 1rem; z-index: 55; display: inline-flex; align-items: center; gap: .5rem; min-height: 3.2rem; padding: .8rem 1.2rem; border: 0; border-radius: 999px; color: #f8f5ed; background: var(--ink); box-shadow: 0 10px 30px rgba(23,25,18,.3); font-weight: 700; cursor: pointer; }
  .quote-fab b { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; border-radius: 999px; color: var(--ink); background: var(--moss); font-size: .8rem; }
  .store-notes { grid-template-columns: 1fr; }
  .store-notes article { border-right: 0; border-bottom: 1px solid var(--line); }
  .store-notes article:last-child { border-bottom: 0; }
}
@media (max-width: 720px) {
  .store-toolbar { top: 4.6rem; }
  .store-toolbar-row { grid-template-columns: 1fr 1fr; }
  .store-toolbar-row input { grid-column: 1 / -1; }
  .product-grid { grid-template-columns: 1fr; }
}

/* v2: type-then-brand filtering, spec links, price types */
.store-toolbar-row { grid-template-columns: 1fr 12rem; }
.filter-step { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr); align-items: center; gap: .6rem; }
.filter-step-label { color: var(--muted); font-family: "DM Mono", monospace; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.type-chips { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .15rem; scrollbar-width: thin; }
.type-chip { flex: none; padding: .5rem .85rem; border: 1px solid var(--line); border-radius: .7rem; color: #37392f; background: transparent; font-size: .82rem; font-weight: 700; cursor: pointer; }
.type-chip:hover { background: rgba(23,25,18,.07); }
.type-chip[aria-pressed="true"] { color: #f8f5ed; background: var(--moss-dark); border-color: var(--moss-dark); }
.type-chip small { margin-left: .3rem; opacity: .65; font-family: "DM Mono", monospace; font-size: .68rem; }
.product-name a { color: inherit; text-decoration: none; }
.product-name a:hover { text-decoration: underline; text-underline-offset: .2rem; }
.product-links { display: flex; gap: .8rem; font-size: .78rem; font-weight: 700; }
.product-links a { color: var(--violet); text-underline-offset: .2rem; }
.price.is-quote { font-size: 1rem; color: var(--moss-dark); }
.price-note { color: var(--muted); font-size: .72rem; }
@media (max-width: 720px) {
  .store-toolbar-row { grid-template-columns: 1fr; }
  .filter-step { grid-template-columns: 1fr; gap: .3rem; }
}

/* spec page */
.spec-shell { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 2rem; align-items: start; padding-top: clamp(3.5rem, 5vw, 5rem); }
.spec-crumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; color: var(--muted); font-family: "DM Mono", monospace; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }
.spec-crumbs a { color: inherit; }
.spec-shell h1 { max-width: 16ch; font-size: clamp(2.6rem, 5vw, 4.6rem); }
.spec-desc { max-width: 42rem; margin-top: 1.2rem; color: #4d4c42; font-size: 1.08rem; }
.spec-table { width: 100%; margin-top: 2rem; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: .8rem .2rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { width: 38%; color: var(--muted); font-family: "DM Mono", monospace; font-size: .74rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.spec-buy { display: grid; gap: 1rem; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(247,241,229,.86); box-shadow: var(--shadow); position: sticky; top: 5.5rem; }
.spec-buy .price { font-size: 2rem; }
.spec-actions { display: grid; gap: .6rem; }
.spec-actions .button { width: 100%; }
.spec-source { color: var(--muted); font-size: .76rem; line-height: 1.5; overflow-wrap: anywhere; }
body[data-theme="dark"] .spec-buy { background: rgba(255,255,255,.045); }
body[data-theme="dark"] .spec-desc { color: inherit; opacity: .85; }
@media (max-width: 1050px) { .spec-shell { grid-template-columns: 1fr; } .spec-buy { position: static; } }

/* v3: residential / commercial / government versions */
.variant-badge { align-self: flex-start; padding: .3rem .6rem; border-radius: 999px; color: var(--violet); background: rgba(102,80,165,.1); font-family: "DM Mono", monospace; font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; }
.variant-block { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.variant-title { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 1.2rem; }
.variant-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .8rem; margin-bottom: 1.6rem; }
.variant-card { display: grid; gap: .35rem; padding: 1rem; border: 1px solid var(--line); border-radius: 1rem; background: rgba(247,241,229,.7); }
.variant-card.is-current { border-color: var(--moss-dark); box-shadow: inset 0 0 0 1px var(--moss-dark); }
.variant-market { color: var(--moss-dark); font-family: "DM Mono", monospace; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.variant-card strong { font-size: .95rem; line-height: 1.3; }
.variant-price { font-weight: 700; }
.variant-links { display: flex; flex-wrap: wrap; gap: .8rem; font-size: .8rem; font-weight: 700; }
.variant-links a { color: var(--violet); text-underline-offset: .2rem; }
.variant-links em { color: var(--muted); font-style: normal; }
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 1rem; }
.compare-table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: .9rem; }
.compare-table th, .compare-table td { padding: .75rem .9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }
.compare-table thead th { background: rgba(23,25,18,.05); font-weight: 700; }
.compare-table thead th small { display: block; margin-top: .2rem; color: var(--muted); font-weight: 500; font-size: .74rem; }
.compare-table tbody th { width: 26%; color: var(--muted); font-family: "DM Mono", monospace; font-size: .72rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.compare-table .is-current { background: rgba(128,188,37,.1); }
.compare-table tr.is-diff td { font-weight: 700; }
body[data-theme="dark"] .variant-card { background: rgba(255,255,255,.045); }
body[data-theme="dark"] .compare-table thead th { background: rgba(255,255,255,.06); }

/* v4: account, legal, delivery, admin pages */
.doc-shell { padding-top: clamp(3.5rem, 5vw, 5rem); }
.doc-shell h1 { max-width: 18ch; font-size: clamp(2.6rem, 5vw, 4.4rem); }
.doc-lead { max-width: 46rem; margin-top: 1rem; color: #4d4c42; font-size: 1.1rem; }
.doc-body { max-width: 46rem; margin-top: 2.2rem; }
.doc-body h2 { margin: 2.2rem 0 .7rem; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.doc-body p, .doc-body li { color: #3f3e36; }
.doc-body ul, .doc-body ol { display: grid; gap: .45rem; padding-left: 1.2rem; line-height: 1.65; }
.doc-body a, .doc-note a, .doc-lead a { color: var(--violet); text-underline-offset: .2rem; }
.doc-note { color: var(--muted); font-size: .92rem; }
.delivery-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 2.2rem; border: 1px solid var(--line); }
.delivery-grid article { padding: 1.4rem; border-right: 1px solid var(--line); }
.delivery-grid article:last-child { border-right: 0; }
.delivery-grid span { color: var(--ember); font-family: "DM Mono", monospace; font-size: .78rem; }
.delivery-grid h3 { margin: 1.4rem 0 .5rem; font-size: 1.5rem; }
.delivery-grid p { color: var(--muted); font-size: .92rem; }
.tax-filter { margin: 1.4rem 0 .8rem; max-width: 22rem; }
.tax-filter input, .inline-controls input, .admin-shell input, .admin-shell select { width: 100%; min-height: 2.6rem; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: .7rem; color: var(--ink); background: var(--paper-bright); }
.compare-table th small, .compare-table td small { display: block; margin-top: .2rem; color: var(--muted); font-size: .74rem; font-weight: 500; }
.tax-table tbody th { width: auto; color: var(--ink); font-family: "Manrope", sans-serif; font-size: .92rem; text-transform: none; letter-spacing: 0; }
.account-auth { max-width: 30rem; margin-top: 2rem; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(247,241,229,.86); box-shadow: var(--shadow); }
.auth-tabs { display: flex; gap: .4rem; margin-bottom: 1.2rem; }
.auth-tabs button { flex: 1; min-height: 2.6rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-weight: 700; cursor: pointer; }
.auth-tabs button[aria-selected="true"] { color: #f8f5ed; background: var(--ink); border-color: var(--ink); }
.panel-form label.check { display: flex; align-items: flex-start; gap: .55rem; font-size: .9rem; }
.panel-form label.check input { width: auto; margin-top: .25rem; }
.account-auth .panel-form, .account-card .panel-form { padding: 0; border: 0; background: none; box-shadow: none; }
.account-panels { display: grid; gap: 1.4rem; margin-top: 2rem; }
.account-card { padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(247,241,229,.78); box-shadow: var(--shadow); margin-top: 1.4rem; }
.account-panels .account-card { margin-top: 0; }
.account-card h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 1rem; }
.account-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.account-card-head h2 { margin: 0; }
.panel-form.two-col { grid-template-columns: 1fr 1fr; }
.panel-form.two-col .span-2 { grid-column: 1 / -1; }
.exempt-list { display: grid; gap: .6rem; margin: 0 0 1.4rem; padding: 0; list-style: none; }
.exempt-item { display: grid; gap: .2rem; padding: .8rem 1rem; border: 1px solid var(--line); border-left: 4px solid var(--muted); border-radius: .8rem; font-size: .9rem; }
.exempt-item.is-approved { border-left-color: var(--moss-dark); }
.exempt-item.is-rejected { border-left-color: #a52e2e; }
.exempt-item a { color: var(--violet); font-size: .82rem; }
.inline-controls { display: flex; flex-wrap: wrap; align-items: end; gap: .6rem; }
.inline-controls label { display: grid; gap: .2rem; font-size: .74rem; color: var(--muted); }
.row-actions { display: grid; gap: .4rem; min-width: 10rem; }
.admin-shell .compare-table { min-width: 60rem; font-size: .84rem; }
.quote-signin { display: grid; gap: .6rem; padding: 1rem; border: 1px dashed var(--line); border-radius: 1rem; font-size: .9rem; }
.quote-signin a { color: var(--violet); font-weight: 700; }
.ship-promise { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.2rem; padding: .5rem .85rem; border-radius: 999px; color: var(--moss-dark); background: rgba(128,188,37,.12); font-weight: 700; font-size: .88rem; }
.quote-tax { display: flex; justify-content: space-between; font-size: .88rem; color: var(--muted); }
body[data-theme="dark"] .account-auth, body[data-theme="dark"] .account-card { background: rgba(255,255,255,.045); }
body[data-theme="dark"] .doc-body p, body[data-theme="dark"] .doc-body li, body[data-theme="dark"] .doc-lead { color: inherit; opacity: .88; }
@media (max-width: 720px) {
  .delivery-grid { grid-template-columns: 1fr; }
  .delivery-grid article { border-right: 0; border-bottom: 1px solid var(--line); }
  .panel-form.two-col { grid-template-columns: 1fr; }
}

/* author display rules (grid/flex) must not override the hidden attribute */
.page-store [hidden] { display: none !important; }

/* v5: account-required quotes, PDF receipts */
.quote-signin strong { color: var(--ink); }
.quote-done { display: grid; gap: .7rem; padding: 1rem; border: 1px solid var(--moss-dark); border-radius: 1rem; background: rgba(128,188,37,.1); font-size: .92rem; }
.quote-done .eyebrow { margin: 0; }
.quote-done-actions { display: grid; gap: .5rem; }
.quote-done-actions .button { width: 100%; min-height: 2.8rem; }
.receipt-cell { display: grid; gap: .25rem; white-space: nowrap; }
.receipt-cell a, .link-btn { color: var(--violet); font-weight: 700; font-size: .84rem; text-decoration: underline; text-underline-offset: .2rem; }
.link-btn { padding: 0; border: 0; background: none; cursor: pointer; text-align: left; font-family: inherit; }

/* v6: store control center */
.admin-shell h1 { font-size: clamp(2.4rem, 4.4vw, 3.8rem); }
.dash-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; }
.dash-range { display: flex; gap: .3rem; flex-wrap: wrap; }
.dash-range button { min-height: 2.4rem; padding: .4rem .85rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-weight: 700; font-size: .82rem; cursor: pointer; }
.dash-range button[aria-pressed="true"] { color: #f8f5ed; background: var(--ink); border-color: var(--ink); }
.dash-tabs { display: flex; gap: .3rem; overflow-x: auto; margin: 1.6rem 0 .4rem; padding-bottom: .3rem; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.dash-tabs button { flex: none; padding: .6rem .9rem; border: 0; border-radius: .7rem .7rem 0 0; background: transparent; color: var(--muted); font-weight: 700; font-size: .88rem; cursor: pointer; }
.dash-tabs button[aria-selected="true"] { color: var(--ink); background: rgba(23,25,18,.07); box-shadow: inset 0 -2px 0 var(--moss-dark); }
.dash-panel .account-card { margin-top: 1.2rem; }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.dash-grid .account-card { margin-top: 1.2rem; }
.kpi-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .8rem; margin-top: 1.2rem; }
.kpi { display: grid; gap: .3rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 1rem; background: rgba(247,241,229,.78); }
.kpi span { color: var(--muted); font-family: "DM Mono", monospace; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.kpi strong { font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -.02em; }
.chart svg { display: block; width: 100%; height: auto; }
.chart .grid { stroke: rgba(23,25,18,.12); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: "DM Mono", monospace; }
.chart .line { fill: none; stroke: #466f18; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: #466f18; opacity: .1; }
.chart .dot { fill: #466f18; stroke: var(--paper-bright); stroke-width: 2; }
.chart .hit { fill: transparent; }
.chart .hit:hover { fill: rgba(23,25,18,.05); }
.bar-list { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.bar-list li { display: grid; grid-template-columns: minmax(9rem, 14rem) 1fr 3.5rem; align-items: center; gap: .7rem; padding: .2rem 0; font-size: .86rem; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 14px; }
.bar-fill { display: block; height: 100%; border-radius: 0 4px 4px 0; background: #466f18; }
.bar-value { text-align: right; font-family: "DM Mono", monospace; font-size: .8rem; }
.chart-tip { position: fixed; z-index: 200; max-width: 18rem; padding: .55rem .7rem; border-radius: .6rem; color: #f8f5ed; background: var(--ink); font-size: .8rem; line-height: 1.45; pointer-events: none; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.compare-table tr.clickable { cursor: pointer; }
.compare-table tr.clickable:hover td, .compare-table tr.clickable:hover th { background: rgba(102,80,165,.06); }
.compare-table tr.is-muted { opacity: .55; }
.dash-sub { margin: 1.4rem 0 .4rem; font-size: 1.25rem; }
.agent-toggle { padding: .5rem 0; }
.check-list { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; font-size: .9rem; }
.check-list li { padding: .6rem .8rem; border: 1px solid var(--line); border-left: 4px solid var(--muted); border-radius: .7rem; }
.check-list li.is-ok { border-left-color: var(--moss-dark); }
.check-list li.is-todo { border-left-color: var(--ember); }
.check-list small { display: block; margin-top: .2rem; color: var(--muted); }
body[data-theme="dark"] .kpi { background: rgba(255,255,255,.045); }
body[data-theme="dark"] .chart .grid { stroke: rgba(255,255,255,.12); }
body[data-theme="dark"] .chart .line, body[data-theme="dark"] .chart .dot { stroke: #9fd05a; }
body[data-theme="dark"] .chart .area, body[data-theme="dark"] .bar-fill, body[data-theme="dark"] .chart .dot { fill: #9fd05a; background: #9fd05a; }
@media (max-width: 1050px) { .kpi-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } .dash-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bar-list li { grid-template-columns: 7rem 1fr 2.6rem; } }
.admin-shell input[type="checkbox"] { width: auto; min-height: 0; accent-color: var(--moss-dark); }
.agent-toggle { display: flex; align-items: center; gap: .6rem; font-size: .95rem; font-weight: 600; text-transform: none; letter-spacing: 0; }
.agent-toggle input { width: 1.15rem !important; height: 1.15rem; }
.admin-shell .compare-table tbody th { width: auto; color: var(--ink); font-family: "Manrope", sans-serif; font-size: .88rem; font-weight: 700; letter-spacing: 0; text-transform: none; }
