/* layout.css: header, footer, page structure, hero, account shell, admin shell. */

.container { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: clamp(1.25rem, 3vw, 2rem); max-width: 42rem; }
.section-head h2 { font-size: var(--step-2); }
.section-head p { margin-top: 0.7rem; color: var(--muted); }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.page-head { padding: clamp(1.75rem, 4vw, 3rem) 0 clamp(1rem, 2vw, 1.5rem); }
.page-head h1 { font-size: var(--step-2); }
.page-head p { margin-top: 0.6rem; color: var(--muted); max-width: 40rem; }
.crumbs { font-family: var(--font-display); font-size: 0.875rem; color: var(--muted); margin-bottom: 0.8rem; }
.crumbs a { text-underline-offset: 3px; }
.crumbs a:hover { color: var(--accent); }
.grid { display: grid; gap: 1.25rem; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
@media (max-width: 56rem) { .grid.c3, .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 36rem) { .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; } }
.split { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 60rem) { .split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } .split.even { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split.side { grid-template-columns: minmax(0, 1fr) 22rem; } }
.sticky { position: sticky; top: calc(var(--header-h) + 1rem); }

/* ---------- Site header ---------- */
.announce { background: var(--accent-fill); color: var(--on-accent); text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 0.875rem; padding: 0.35rem var(--gutter); }
.site-header {
  position: sticky; top: 0; z-index: 50; min-height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.hdr-in { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; text-decoration: none; color: var(--accent); white-space: nowrap; }
.primary-nav { display: flex; gap: clamp(0.9rem, 2.2vw, 1.9rem); margin-left: clamp(0.5rem, 3vw, 2.5rem); }
.primary-nav a { font-family: var(--font-display); font-weight: 500; text-decoration: none; padding: 0.5rem 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.primary-nav a:hover { border-color: var(--accent); }
.primary-nav a[aria-current="page"] { border-color: var(--accent); color: var(--accent); }
.hdr-actions { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
.cart-btn .count { min-width: 1.4rem; height: 1.4rem; padding: 0 0.3rem; border-radius: 999px; background: #fff; color: #1B5BE0; font-size: 0.8125rem; line-height: 1.4rem; text-align: center; font-variant-numeric: tabular-nums; }
.menu-btn { display: none; }
.acct-menu { position: relative; }
.acct-pop { position: absolute; right: 0; top: calc(100% + 0.5rem); min-width: 15rem; background: var(--plate); border: 1px solid var(--line); border-radius: 10px; padding: 0.5rem; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); z-index: 60; }
.acct-pop a, .acct-pop button { display: block; width: 100%; text-align: left; padding: 0.6rem 0.8rem; border-radius: 6px; text-decoration: none; background: none; border: 0; cursor: pointer; font-family: var(--font-display); font-size: 1rem; }
.acct-pop a:hover, .acct-pop button:hover { background: var(--plate-deep); color: var(--accent); }
.acct-pop .who { padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); margin-bottom: 0.3rem; font-family: var(--font-display); }
.acct-pop .who small { display: block; color: var(--muted); font-size: 0.8125rem; }
@media (max-width: 56rem) {
  .menu-btn { display: inline-flex; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 0.4rem var(--gutter) 1rem; }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 1.125rem; }
}
@media (max-width: 30rem) { .cart-btn .label { display: none; } .hdr-in { gap: 0.4rem; } .brand { font-size: 1.05rem; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); border-top: 1px solid var(--line); margin-top: auto; }
.newsletter { border-bottom: 1px solid var(--line); }
.newsletter .container { display: flex; gap: 1rem 2rem; flex-wrap: wrap; align-items: center; justify-content: space-between; padding-top: 1.75rem; padding-bottom: 1.75rem; }
.newsletter h2 { font-size: 1.3rem; }
.newsletter p { color: var(--muted); font-size: 0.9688rem; }
.newsletter form { display: flex; gap: 0.5rem; flex-wrap: wrap; flex: 1; justify-content: flex-end; min-width: min(100%, 22rem); }
.newsletter input { max-width: 20rem; flex: 1 1 14rem; }
.foot-top { padding-top: 2.5rem; padding-bottom: 2rem; display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 60rem) { .foot-top { grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 3rem; } }
.foot-brand .brand { font-size: 1.3rem; }
.foot-brand p { margin-top: 0.7rem; color: var(--muted); font-size: 0.9688rem; }
.foot-cols { display: grid; gap: 1.75rem 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 40rem) { .foot-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.foot-cols h2 { font-size: 1rem; margin-bottom: 0.6rem; }
.foot-cols a, .foot-cols button.linklike { display: inline-block; padding: 0.25rem 0; font-size: 0.9688rem; color: var(--muted); text-decoration: none; }
.foot-cols a:hover, .foot-cols button.linklike:hover { color: var(--accent); text-decoration: underline; }
.foot-bottom { border-top: 1px solid var(--line); padding-top: 1.1rem; padding-bottom: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; justify-content: space-between; font-size: 0.9rem; color: var(--muted); }
.socials { display: flex; gap: 0.2rem 1.2rem; flex-wrap: wrap; }
.socials a { padding: 0.35rem 0; font-family: var(--font-display); text-decoration: none; }
.socials a:hover { color: var(--accent); text-decoration: underline; }

/* Cookie banner */
.cookie { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 120; max-width: 40rem; margin-left: auto; background: var(--plate); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.25rem; box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55); }
.cookie h2 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.cookie p { color: var(--muted); font-size: 0.9375rem; }
.cookie .row-actions { margin-top: 0.8rem; }

/* ---------- Home hero ---------- */
.hero { padding: clamp(2rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem); }
.hero-grid { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 62rem) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); } }
.hero h1 { font-size: var(--step-3); max-width: 15ch; }
.hero .lede { margin-top: 1.1rem; color: var(--muted); font-size: var(--step-1); line-height: 1.5; max-width: 32rem; }
.hero .alt { margin-top: 1.4rem; }
.quote-card { background: var(--plate); border: 1px solid var(--line); border-radius: 14px; padding: clamp(1rem, 2.5vw, 1.5rem); }
.quote-card h2 { font-size: 1.3rem; margin-bottom: 0.8rem; }
.est-line { display: flex; justify-content: space-between; align-items: baseline; margin-top: 0.9rem; font-family: var(--font-display); }
.est-line b { font-size: 1.9rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.trust { background: var(--deep); border-block: 1px solid var(--line); }
.trust .container { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust .t { padding: 1.3rem 1rem; text-align: center; border-left: 1px solid var(--line); }
.trust .t:first-child { border-left: 0; }
.trust b { display: block; font-family: var(--font-display); font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem); letter-spacing: -0.02em; line-height: 1.15; }
.trust span { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 44rem) { .trust .container { grid-template-columns: repeat(2, minmax(0, 1fr)); } .trust .t:nth-child(3) { border-left: 0; } .trust .t:nth-child(n+3) { border-top: 1px solid var(--line); } }

.cat-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; text-decoration: none; background: var(--plate-deep); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.cat-card:hover img { transform: scale(1.04); }
.cat-card span { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem 1rem 0.8rem; background: linear-gradient(transparent, rgba(3, 9, 16, 0.92)); font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.mat-card { padding: 1.1rem; }
.mat-card h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.mat-card p { color: var(--muted); font-size: 0.98rem; }
.work-card { text-decoration: none; display: block; }
.work-card .wimg { aspect-ratio: 4 / 3; overflow: hidden; background: var(--plate-deep); }
.work-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-card .wbody { padding: 0.85rem 1rem 1rem; }
.work-card h3 { font-size: 1.1rem; }
.review { padding: 1.25rem; }
.review blockquote { margin: 0.6rem 0 0.8rem; font-size: 1.0625rem; line-height: 1.5; }
.review .by { color: var(--muted); font-size: 0.9rem; font-family: var(--font-display); }
.cta-band { background: var(--accent-fill); color: var(--on-accent); }
.cta-band .container { display: flex; gap: 1.25rem 2.5rem; justify-content: space-between; align-items: center; flex-wrap: wrap; padding-top: clamp(2rem, 4vw, 3rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.cta-band h2 { font-size: var(--step-2); }
.cta-band p { margin-top: 0.4rem; max-width: 36rem; }
.cta-band .btn { background: #fff; color: #0A1A3A; }
.cta-band .btn:hover { background: #E3ECFF; }

/* ---------- Shop / product ---------- */
.gallery .main { aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: var(--plate-deep); border: 1px solid var(--line); }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery .thumbs { display: flex; gap: 0.5rem; margin-top: 0.6rem; flex-wrap: wrap; }
.gallery .thumbs button { width: 4.5rem; height: 4.5rem; padding: 0; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--plate-deep); }
.gallery .thumbs button[aria-current="true"] { border-color: var(--accent); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.facts .kv b { color: var(--ink); }
.preview-img { width: 100%; max-height: 14rem; object-fit: contain; border-radius: 8px; background: var(--plate-deep); }

/* Quote */
.viewer { position: relative; background: radial-gradient(circle at 50% 40%, #16324b, #0b1a2a); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 10; touch-action: none; }
.viewer canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.viewer canvas:active { cursor: grabbing; }
.viewer .vhint { position: absolute; left: 0.7rem; bottom: 0.5rem; font-family: var(--font-display); font-size: 0.8125rem; color: var(--muted); pointer-events: none; }
.viewer .vempty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-family: var(--font-display); text-align: center; padding: 1rem; pointer-events: none; }
.file-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.65rem 0; border-top: 1px solid var(--line); font-family: var(--font-display); }
.file-row:first-child { border-top: 0; }
.slice-bar { height: 0.35rem; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: 0.6rem; }
.slice-bar i { display: block; height: 100%; width: 0; background: var(--accent-fill); transition: width 0.12s linear; }

/* ---------- Account shell ---------- */
.shell { display: grid; gap: clamp(1.25rem, 3vw, 2.25rem); grid-template-columns: minmax(0, 1fr); padding-top: clamp(1.5rem, 3vw, 2.5rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 60rem) { .shell { grid-template-columns: 15rem minmax(0, 1fr); } }
.side-nav { font-family: var(--font-display); }
.side-nav h2 { font-size: 0.75rem; color: var(--muted); margin: 1.1rem 0 0.3rem; padding-left: 0.7rem; font-weight: 600; letter-spacing: 0.02em; }
.side-nav h2:first-child { margin-top: 0; }
.side-nav a { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.55rem 0.7rem; border-radius: 6px; text-decoration: none; font-size: 1rem; min-height: 42px; }
.side-nav a:hover { background: var(--plate); }
.side-nav a[aria-current="page"] { background: var(--plate); color: var(--accent); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.side-nav .pill { background: var(--accent-fill); color: var(--on-accent); font-size: 0.75rem; font-weight: 700; padding: 0 0.45rem; border-radius: 999px; }
@media (max-width: 59.99rem) {
  .side-nav { display: flex; gap: 0.4rem; overflow-x: auto; padding-bottom: 0.4rem; border-bottom: 1px solid var(--line); }
  .side-nav h2 { display: none; }
  .side-nav a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 0 0.9rem; }
}
.stat-grid { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.stat { background: var(--plate); border: 1px solid var(--line); border-radius: 10px; padding: 0.9rem 1rem; }
.stat span { display: block; font-family: var(--font-display); font-size: 0.875rem; color: var(--muted); }
.stat b { display: block; font-family: var(--font-display); font-size: 1.7rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat small { color: var(--muted); font-size: 0.8125rem; }
.badge-grid { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
.badge-tile { padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--plate); }
.badge-tile.locked { opacity: 0.5; }
.badge-tile b { font-family: var(--font-display); display: block; }
.badge-tile span { color: var(--muted); font-size: 0.875rem; }

/* ---------- Admin shell ---------- */
body.admin { --header-h: 3.5rem; }
.admin-bar { position: sticky; top: 0; z-index: 50; background: var(--deep); border-bottom: 1px solid var(--line); }
.admin-bar .hdr-in { min-height: var(--header-h); padding-left: var(--gutter); padding-right: var(--gutter); }
.admin-bar .search { flex: 1; max-width: 26rem; }
.admin-layout { display: grid; grid-template-columns: minmax(0, 1fr); flex: 1; }
@media (min-width: 62rem) { .admin-layout { grid-template-columns: 15.5rem minmax(0, 1fr); } }
.admin-side { background: var(--deep); border-right: 1px solid var(--line); padding: 1rem 0.7rem 2rem; font-family: var(--font-display); }
@media (min-width: 62rem) { .admin-side { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow-y: auto; } }
@media (max-width: 61.99rem) { .admin-side { display: none; } .admin-side.open { display: block; } }
.admin-side h2 { font-size: 0.75rem; color: var(--muted); margin: 1.2rem 0 0.3rem; padding-left: 0.7rem; font-weight: 600; }
.admin-side h2:first-child { margin-top: 0; }
.admin-side a { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0.7rem; border-radius: 6px; text-decoration: none; min-height: 40px; }
.admin-side a:hover { background: var(--plate); }
.admin-side a[aria-current="page"] { background: var(--plate); color: var(--accent); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.admin-side .pill { background: var(--bad); color: #3A0A04; font-size: 0.75rem; font-weight: 700; padding: 0 0.45rem; border-radius: 999px; }
.admin-main { padding: clamp(1.1rem, 3vw, 2rem) var(--gutter) 4rem; min-width: 0; }
.admin-main .page-head { padding-top: 0; }
.admin-main .page-head h1 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.kanban { display: grid; gap: 0.8rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 70rem) { .kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 36rem) { .kanban { grid-template-columns: 1fr; } }
.kcol { background: var(--plate-deep); border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem; min-height: 8rem; }
.kcol h3 { font-size: 0.9375rem; display: flex; justify-content: space-between; margin-bottom: 0.6rem; }
.kcard { background: var(--plate); border: 1px solid var(--line); border-radius: 8px; padding: 0.65rem 0.75rem; margin-bottom: 0.5rem; font-family: var(--font-display); font-size: 0.9375rem; }
.kcard a { font-weight: 700; text-decoration: none; }
.kcard a:hover { color: var(--accent); }
.kcard .sub { color: var(--muted); font-size: 0.8438rem; }
.kcard select { min-height: 36px; font-size: 0.875rem; margin-top: 0.4rem; padding: 0.2rem 0.5rem; }
.bars { display: flex; align-items: flex-end; gap: 0.5rem; height: 12rem; padding-top: 1rem; }
.bars .bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 0.35rem; height: 100%; font-family: var(--font-display); font-size: 0.8125rem; color: var(--muted); }
.bars .bar i { display: block; width: 100%; max-width: 3.2rem; background: var(--accent-fill); border-radius: 4px 4px 0 0; min-height: 2px; }
.bars .bar b { color: var(--ink); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.log { font: 0.875rem/1.6 ui-monospace, Consolas, monospace; background: var(--deep); border: 1px solid var(--line); border-radius: 8px; padding: 0.9rem 1rem; overflow-x: auto; white-space: pre; color: #B7CEDD; }
.set-tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.proto-bar { background: rgba(255, 193, 90, 0.12); border-bottom: 1px solid var(--star); text-align: center; font-family: var(--font-display); font-size: 0.875rem; padding: 0.3rem var(--gutter); color: var(--star); }

@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .admin-bar, .admin-side, .no-print, .cookie, .announce { display: none !important; }
  .panel, .well { border-color: #999; background: #fff; color: #000; }
}

.dlg-foot { display: flex; gap: 0.5rem; justify-content: flex-end; flex-wrap: wrap; }
.dlg-foot:empty { display: none; }
.row-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }

/* small-screen header fit */
.brand { min-width: 0; }
.brand span { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 30rem) {
  .brand svg { display: none; }
  .hdr-actions { gap: 0.3rem; }
  .hdr-actions .btn { padding-left: 0.65rem; padding-right: 0.65rem; }
  .hero-grid > *, .split > *, .grid > * { min-width: 0; }
}
.brand { flex: 0 1 auto; overflow: hidden; } .hdr-actions { flex-shrink: 0; }

/* ---------- Admin sidebar groups ---------- */
.ngroup { margin-bottom: 0.15rem; }
.ghead { display: flex; width: 100%; justify-content: space-between; align-items: center; min-height: 40px; padding: 0.4rem 0.7rem; background: none; border: 0; border-radius: 6px; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem; color: var(--ink); text-align: left; }
.ghead:hover { background: var(--plate); }
.ghead svg { transition: transform 0.15s; color: var(--muted); }
.ghead[aria-expanded="true"] svg { transform: rotate(180deg); }
.gitems { padding: 0.1rem 0 0.4rem 0.5rem; margin-left: 0.7rem; border-left: 1px solid var(--line); }
.gitems a { min-height: 36px; font-size: 0.9375rem; }

/* ---------- Social icons ---------- */
.socials { gap: 0.5rem; }
.socials a.soc { width: 44px; height: 44px; padding: 0; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); transition: color 0.15s, border-color 0.15s, background 0.15s; }
.socials a.soc:hover { color: var(--on-accent); background: var(--accent-fill); border-color: var(--accent); text-decoration: none; }

/* ---------- Status colors for new badges ---------- */
.s-low, .s-on-hold { color: var(--muted); }
.s-normal, .s-new, .s-info { color: var(--info); }
.s-high, .s-warn, .s-waiting-on-customer { color: var(--warn); }
.s-urgent, .s-error { color: var(--bad); }
.s-resolved { color: var(--ok); }
.sla { font-family: var(--font-display); font-size: 0.875rem; white-space: nowrap; }
.sla.bad { color: var(--bad); font-weight: 700; }
.sla.warn { color: var(--warn); font-weight: 600; }
.sla.ok { color: var(--ok); }
.bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.bulk[hidden] { display: none !important; }

/* ---------- Ticket thread ---------- */
.thread { display: grid; gap: 0.8rem; }
.msg { border: 1px solid var(--line); border-radius: 10px; padding: 0.8rem 1rem; background: var(--plate); max-width: 46rem; }
.msg .mh { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--font-display); font-size: 0.875rem; color: var(--muted); margin-bottom: 0.35rem; }
.msg .mh b { color: var(--ink); }
.msg.cust { border-left: 4px solid var(--info); }
.msg.staff { border-left: 4px solid var(--accent); background: var(--plate-deep); margin-left: clamp(0rem, 4vw, 2rem); }
.msg.note { border: 1px dashed var(--star); background: rgba(255, 193, 90, 0.08); }
.msg.sys { background: transparent; border: 0; padding: 0.2rem 0; font-size: 0.875rem; color: var(--muted); text-align: center; max-width: none; }
.msg.sys .mh { justify-content: center; margin: 0; }
.msg .mf { margin-top: 0.5rem; }
@media (max-width: 62rem) { .split.side[style] { grid-template-columns: minmax(0, 1fr) !important; } }

/* ---------- Roles ---------- */
.rolelist { display: grid; gap: 0.4rem; align-content: start; }
.rolebtn { text-align: left; padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: 8px; background: var(--plate); cursor: pointer; display: grid; gap: 0.1rem; font-family: var(--font-display); }
.rolebtn span { color: var(--muted); font-size: 0.8125rem; }
.rolebtn:hover { border-color: var(--muted); }
.rolebtn[aria-current="true"] { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.pgroup { border: 1px solid var(--line); border-radius: 8px; padding: 0.5rem 0.9rem 0.8rem; margin: 0.8rem 0 0; }
.pgroup legend { font-family: var(--font-display); font-weight: 600; padding: 0 0.4rem; }
.pgroup .chip { margin: 0.2rem 0; }
.pgroup em { color: var(--star); font-style: normal; font-size: 0.8125rem; }
.pgroup .linklike { float: right; }
table.matrix { min-width: 48rem; }
table.matrix th.c, table.matrix td.c { text-align: center; }
table.matrix tr.grp th { background: var(--plate-deep); color: var(--accent); font-size: 0.8438rem; }
table.matrix .yes { color: var(--ok); font-weight: 700; }
table.matrix .no { color: var(--line); }
@media (max-width: 60rem) { .split[style*="15rem"] { grid-template-columns: minmax(0, 1fr) !important; } }

.admin-main table.data { min-width: 60rem; }
.admin-main table.data tbody th { min-width: 14rem; font-weight: 600; }
.admin-main table.data td { min-width: 5rem; }

/* ===== Round 2: gradients ===== */
:root {
  --grad-accent: linear-gradient(135deg, #1B5BE0 0%, #2F78F5 100%);
  --grad-accent-hi: linear-gradient(135deg, #2A70EE 0%, #5C9BFF 100%);
  --grad-deep: linear-gradient(160deg, #0C1B38 0%, #070E1C 60%, #081326 100%);
  --grad-glow: radial-gradient(60rem 28rem at 85% -10%, rgba(76,141,255,.20), transparent 60%), radial-gradient(40rem 24rem at -5% 20%, rgba(42,112,238,.16), transparent 60%);
  --grad-plate: linear-gradient(180deg, #132447 0%, #0F1B33 100%);
}
/* variant aliases used by the page scripts */
.btn.sm { min-height: 40px; padding: 0.3rem 0.9rem; font-size: 0.9375rem; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--plate); border-color: var(--accent); color: var(--ink); }
.btn.quiet { background: transparent; color: var(--muted); border-color: transparent; }
.btn.quiet:hover { background: var(--plate); color: var(--ink); }
.btn.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn.danger:hover { background: var(--bad); color: #3A0A04; }
.btn.block { display: flex; width: 100%; }
.btn:not(.ghost):not(.quiet):not(.danger):not(.btn-ghost):not(.btn-quiet):not(.btn-danger):not(.btn-dark):not(.danger-ghost) { background-image: var(--grad-accent); border-color: transparent; }
.btn:not(.ghost):not(.quiet):not(.danger):not(.btn-ghost):not(.btn-quiet):not(.btn-danger):not(.btn-dark):not(.danger-ghost):hover { background-image: var(--grad-accent-hi); }
.announce { background-image: linear-gradient(90deg, #1650C8, #2A70EE 55%, #2A70EE); }
.cta-band { background-image: var(--grad-accent); }
.cta-band .btn { background-image: none; }
.hero { background-image: var(--grad-glow); }
.trust { background-image: var(--grad-deep); }
.site-footer { background-image: var(--grad-deep); }
.stat { background-image: var(--grad-plate); }
.stat.g { background-image: linear-gradient(135deg, rgba(76,141,255,.22), rgba(42,112,238,.10)), var(--grad-plate); border-color: #2A5CB0; }
.stat.g b { background: var(--grad-accent-hi); -webkit-background-clip: text; background-clip: text; color: transparent; }
.progress i { background-image: var(--grad-accent); }
.bars .bar i { background-image: linear-gradient(180deg, #7DB0FF, #1B5BE0); }
.tab[aria-pressed="true"], .tab[aria-current="true"], .tab.on { background-image: var(--grad-accent); border-color: transparent; }
.panel { background-image: var(--grad-plate); }
.badge-tile { display: flex; gap: .8rem; align-items: center; background-image: linear-gradient(135deg, color-mix(in srgb, var(--g1, #2A70EE) 18%, transparent), color-mix(in srgb, var(--g2, #1B5BE0) 8%, transparent)), var(--grad-plate); border-color: color-mix(in srgb, var(--g1, #2A70EE) 45%, var(--line)); }
.badge-tile.locked { filter: grayscale(1); }
.bicon { flex: none; display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; color: #fff; background-image: linear-gradient(135deg, var(--g1, #2A70EE), var(--g2, #1B5BE0)); box-shadow: 0 4px 14px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.35); }
.bicon.sm { width: 2rem; height: 2rem; }
.bicon svg { width: 55%; height: 55%; }
.gsw { display: inline-block; width: 1.1rem; height: 1.1rem; border-radius: 50%; margin-right: .4rem; vertical-align: -3px; }
.badge-admin { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }

/* ===== Round 2: dashboard ===== */
.nowrap { white-space: nowrap; }
.quick { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); margin-bottom: 1.25rem; }
.qa { display: block; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); background-image: var(--grad-plate); transition: border-color .15s, transform .15s; }
.qa:hover { border-color: var(--accent); transform: translateY(-2px); }
.qa b { display: block; font-family: var(--font-display); font-size: 1rem; }
.qa span { color: var(--muted); font-size: .8125rem; }
.kpis { margin-bottom: 1.25rem; }
.dash-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); align-items: start; }
.dash-grid .span2 { grid-column: 1 / -1; }
@media (min-width: 70rem) { .dash-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .dash-grid .span2 { grid-column: span 2; } }
.alist { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .45rem; }
.alist li { padding: .5rem .7rem; border-radius: 8px; border-left: 4px solid var(--info); background: rgba(127,182,255,.08); font-size: .9375rem; }
.alist li.warn { border-color: var(--warn); background: rgba(255,193,90,.08); }
.alist li.bad { border-color: var(--bad); background: rgba(255,156,143,.08); }
.alist li.info { border-color: var(--info); }
.funnel { display: grid; grid-template-columns: 6.5rem 1fr 2rem; gap: .75rem; align-items: center; padding: .3rem 0; font-size: .9rem; }
.funnel > span { white-space: nowrap; }
.funnel b { text-align: right; font-variant-numeric: tabular-nums; }

/* ===== Round 2: attachments ===== */
.attach-drop { border: 2px dashed var(--line); border-radius: 10px; padding: 1rem; text-align: center; color: var(--muted); font-size: .9375rem; transition: border-color .15s, background-color .15s; }
.attach-drop.over { border-color: var(--accent); background: rgba(76,141,255,.08); color: var(--ink); }
.attach-list { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .6rem; }
.att-item { display: flex; align-items: center; gap: .5rem; padding: .35rem .5rem; border: 1px solid var(--line); border-radius: 8px; background: var(--plate-deep); max-width: 100%; }
.att-item img, .att-thumb img { width: 3.2rem; height: 3.2rem; object-fit: cover; border-radius: 6px; display: block; }
.att-ico { display: inline-grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 6px; background: var(--plate); font-family: var(--font-display); font-size: .75rem; text-transform: uppercase; }
.att-name { font-size: .8125rem; overflow-wrap: anywhere; }
.att-thumb { padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: zoom-in; }
.mf { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }

/* ===== Round 2: settings ===== */
.settings { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 62rem) { .settings { grid-template-columns: 14rem minmax(0, 1fr); } .sets-nav { align-self: start; } }
.sets-nav { display: flex; flex-wrap: wrap; gap: .3rem; }
@media (min-width: 62rem) { .sets-nav { flex-direction: column; flex-wrap: nowrap; } }
.sbtn { text-align: left; padding: .55rem .8rem; border: 0; border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer; font: inherit; font-family: var(--font-display); }
.sbtn:hover { background: var(--plate); }
.sbtn[aria-current="true"] { background: var(--plate); color: var(--accent); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.srow { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--line); }
.srow.stack { display: block; }
.srow .stext label { font-weight: 600; }
.srow .hint { margin: .15rem 0 0; }
.srow .sctl { margin-top: .4rem; }
.switch { position: relative; display: inline-block; flex: none; width: 3rem; height: 1.7rem; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch .track { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background .15s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: calc(1.7rem - 6px); height: calc(1.7rem - 6px); border-radius: 50%; background: var(--ink); transition: transform .15s; }
.switch input:checked + .track { background-image: var(--grad-accent); }
.switch input:checked + .track::after { transform: translateX(1.3rem); background: #fff; }
.switch input:focus-visible + .track { outline: 3px solid var(--accent); outline-offset: 3px; }
.rowsed table.data { min-width: 0; width: 100%; }
.rowsed td input { width: 100%; min-width: 5rem; }
.savebar { position: sticky; bottom: 1rem; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; padding: .7rem 1rem; border: 1px solid var(--accent); border-radius: 10px; background: var(--deep); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.savebar[hidden] { display: none; }
.hist .kv { font-size: .9rem; }

/* ===== Round 2: impersonation bar ===== */
.imp-bar { display: flex; justify-content: center; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .5rem var(--gutter); background-image: linear-gradient(90deg, #B8561F, #D98324); color: #1b0d02; font-family: var(--font-display); position: sticky; top: 0; z-index: 90; }
.imp-bar .btn { background: #1b0d02; background-image: none; color: #fff; min-height: 34px; }

/* round 2 fixes */
.admin-main .panel table.data { min-width: 0; width: 100%; }
.admin-main .panel table.data tbody th, .admin-main .panel table.data td { min-width: 0; }
.admin-main .panel table.data td input, .admin-main .panel table.data td select { min-width: 4.5rem; }
#sq { flex: 1 1 22rem; max-width: none; width: 100%; }
.srow .sctl input:not([type=checkbox]), .srow .sctl select, .srow .sctl textarea { max-width: 38rem; }
.admin-main .panel .table-wrap { overflow-x: auto; }
.admin-main .panel table.data td.num { white-space: nowrap; }
.chip span { white-space: nowrap; }
.admin-main .panel table.data td .chip { display: inline-block; }
.admin-main .panel table.data td { min-width: 5.5rem; }
.sets-body, .settings > * { min-width: 0; }
.rowsed { overflow-x: auto; }
.rowsed td input { min-width: 4rem; }
.admin-main .panel table.matrix { min-width: 0; }
.admin-main { min-width: 0; overflow-x: clip; }

/* brand image */
.brand-img { height: 2.75rem; width: auto; flex: none; display: block; }
.foot-brand .brand-img { height: 5rem; }
@media (max-width: 30rem) { .brand span { display: none; } }
.banner-band { padding: clamp(1.5rem, 3vw, 2.5rem) 0 0; }
.banner-band img { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0,0,0,.45); }

/* ===== Round 3 ===== */
/* admin sidebar scrolls with the page */
@media (min-width: 62rem) { .admin-side { position: static; height: auto; overflow-y: visible; } }

/* dashboard */
.quick { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .6rem; margin-bottom: 1rem; }
@media (max-width: 62rem) { .quick { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 30rem) { .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qa { padding: .8rem .9rem; text-align: center; background-image: var(--grad-accent); border-color: transparent; color: #fff; }
.qa:hover { border-color: transparent; filter: brightness(1.12); }
.qa b { font-size: .9375rem; }
.kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .6rem; }
@media (max-width: 70rem) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 36rem) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
a.stat.link { display: block; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
a.stat.link:hover { border-color: var(--accent); transform: translateY(-2px); }
a.stat.alert { border-color: var(--bad); background-image: linear-gradient(135deg, rgba(255,156,143,.16), rgba(255,156,143,.04)), var(--grad-plate); }
.neg { color: var(--bad) !important; font-weight: 600; }
.stat.g b { -webkit-text-fill-color: transparent; }
.stat b .neg, .stat b .warnv { -webkit-text-fill-color: currentColor; }
.warnv { color: var(--warn); font-weight: 600; }
.dash { display: grid; gap: .8rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1rem; align-items: stretch; }
.dash > .panel { min-width: 0; }
.dash h2 { font-size: 1.05rem; }
.dash h3.sub { font-size: .9rem; color: var(--muted); margin: .9rem 0 .3rem; }
.d-chart, .d-orders { grid-column: span 2; }
.d-act { grid-column: 1 / -1; }
.d-act .kv:nth-child(n+2) { }
@media (max-width: 70rem) { .dash { grid-template-columns: repeat(2, minmax(0, 1fr)); } .d-chart, .d-orders { grid-column: 1 / -1; } .d-sys { grid-column: 1 / -1; } }
@media (max-width: 42rem) { .dash { grid-template-columns: minmax(0, 1fr); } }
.d-chart .bars { height: 11rem; }
.trow { display: flex; justify-content: space-between; gap: .8rem; padding: .5rem .6rem; margin: 0 -.6rem; border-radius: 8px; text-decoration: none; color: inherit; border-top: 1px solid var(--line); }
.trow:first-of-type { border-top: 0; }
.trow:hover { background: var(--plate-deep); }
.trow.bad { border-left: 3px solid var(--bad); padding-left: .8rem; }
.trow.bad > span { color: var(--bad); }
.dash .table-wrap table.data { min-width: 0; }
.dash .table-wrap td, .dash .table-wrap th { padding-block: .5rem; }

/* misc */
tr.dim > *, .card.dim { opacity: .55; }
.phgrid { display: flex; flex-wrap: wrap; gap: .6rem; }
.phbox { display: grid; gap: .25rem; justify-items: start; max-width: 7rem; }
.phbox img { width: 7rem; height: 7rem; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.htmled .hbar { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin-bottom: .5rem; height: auto; overflow: visible; background: none; border-radius: 0; }   /* .hbar is also a progress-bar class further down; undo its height and clipping here */
.htmled .hbar .sp { flex: 1; }
.htmled .hbar [aria-pressed="true"] { background: var(--plate); border-color: var(--accent); }
.hcode { width: 100%; font-family: ui-monospace, Consolas, Menlo, monospace; font-size: .875rem; line-height: 1.5; min-height: 10rem; resize: vertical; }
.hprev { border: 1px solid var(--line); border-radius: 8px; padding: 1rem; background: var(--plate-deep); min-height: 10rem; }
.hprev[hidden], .hcode[hidden] { display: none; }
.legal-ed { display: grid; gap: .8rem; }
.legal-ed select { max-width: 24rem; }
.legal-ed .hcode { min-height: 22rem; }
.brand-row { display: grid; gap: 1rem; grid-template-columns: 9rem minmax(0, 1fr); align-items: center; padding: 1rem 0; border-top: 1px solid var(--line); }
.brand-row:first-of-type { border-top: 0; }
.brand-row .bprev { background: repeating-conic-gradient(#0A1426 0 25%, #0F1B33 0 50%) 0 0 / 16px 16px; border: 1px solid var(--line); border-radius: 10px; padding: .5rem; display: grid; place-items: center; min-height: 6rem; }
.brand-row .bprev img { max-width: 100%; max-height: 7rem; object-fit: contain; }
@media (max-width: 36rem) { .brand-row { grid-template-columns: minmax(0, 1fr); } }
i.neg, i.warnv { font-style: normal; }
.d-chart { display: flex; flex-direction: column; }
.d-chart .bars { flex: 1; height: auto; min-height: 11rem; }

.lvl { display: inline-block; padding: .1rem .55rem; border-radius: 999px; border: 1px solid var(--line); font-family: var(--font-display); font-size: .8125rem; color: var(--muted); }
.lvl.staff { border-color: var(--accent); color: var(--accent); background: rgba(76,141,255,.1); }

/* ===== Icons ===== */
.ic { flex: none; vertical-align: -3px; }
.btn .ic { margin-right: -.1rem; }
.nl { display: inline-flex; align-items: center; gap: .6rem; min-width: 0; }
.nl .ic { color: var(--accent); opacity: .9; }
.admin-side a[aria-current="page"] .nl .ic, .side-nav a[aria-current="page"] .nl .ic { color: var(--accent-hi); opacity: 1; }
.admin-side a, .side-nav a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.ghead .gl { display: inline-flex; align-items: center; gap: .5rem; }
.ghead .gl .ic { color: var(--muted); }
.page-head h1 { display: flex; align-items: center; gap: .6rem; }
.hic { color: var(--accent); flex: none; }
.stat > span .ic { color: var(--accent); margin-right: .15rem; }
.panel h2 .ic, .dash h2 .ic { color: var(--accent); margin-right: .15rem; }
.dash h2 { display: flex; align-items: center; gap: .4rem; }
.trust .t .tic { display: block; margin: 0 auto .35rem; color: var(--accent); }
.steps .sico { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 12px; margin-bottom: .6rem; color: #fff; background-image: var(--grad-accent); box-shadow: 0 6px 18px rgba(27,91,224,.35); }

/* quick actions box */
.d-quick .quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin: .6rem 0 0; }
.d-quick .qa { display: flex; align-items: center; gap: .55rem; padding: .7rem .8rem; text-align: left; background-image: var(--grad-plate); border: 1px solid var(--line); color: var(--ink); }
.d-quick .qa .ic { color: var(--accent-hi); }
.d-quick .qa:hover { border-color: var(--accent); filter: none; transform: translateY(-1px); }
.d-quick .qa b { font-size: .9375rem; }
@media (max-width: 36rem) { .d-quick .quick { grid-template-columns: minmax(0, 1fr); } }
.d-act { grid-column: span 2; }
@media (max-width: 70rem) { .d-act { grid-column: 1 / -1; } }

/* ===== Round 7 ===== */
dialog.wide { width: min(46rem, calc(100vw - 1.5rem)); }
dialog[open] { display: flex; flex-direction: column; }
dialog .dlg-body { flex: 1 1 auto; min-height: 0; max-height: none; overflow: auto; }
dialog .dlg-head, dialog .dlg-foot { flex: none; }
dialog .dlg-foot { display: flex; justify-content: flex-end; gap: .6rem; flex-wrap: wrap; }
dialog.wide .form-grid { gap: 0 1.1rem; }
dialog.wide .field textarea { min-height: 4.5rem; }
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .22; filter: blur(2px) saturate(.85); z-index: -2; pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, var(--paper) 8%, rgba(7,14,28,.55) 55%, rgba(7,14,28,.25) 100%), linear-gradient(180deg, rgba(7,14,28,0) 55%, var(--paper) 100%); }
.quote-card { background: var(--grad-plate); border: 1px solid var(--accent); box-shadow: 0 0 0 4px rgba(76,141,255,.14), 0 24px 60px rgba(0,0,0,.55), 0 0 60px rgba(42,112,238,.25); position: relative; }
.quote-card h2 { color: var(--accent-hi); }
.quote-card .dropzone { background: rgba(42,112,238,.12); border-color: var(--accent-hi); }
.quote-card .dropzone strong { color: #fff; }
.quote-card .qc-btn { display: flex; justify-content: center; width: 100%; margin-top: .9rem; background-image: var(--grad-accent); color: #fff; font-size: 1.05rem; padding: .85rem 1rem; box-shadow: 0 8px 22px rgba(27,91,224,.5); cursor: pointer; }
.quote-card .qc-btn:hover { filter: brightness(1.1); }
.kcard { cursor: grab; position: relative; padding-left: 1.5rem; transition: box-shadow .15s, border-color .15s; }
.kcard:active { cursor: grabbing; }
.kcard:hover, .kcard:focus-visible { border-color: var(--accent); }
.kcard.dragging { opacity: .45; }
.kgrip { position: absolute; left: .45rem; top: .6rem; color: var(--muted); font-size: .8rem; letter-spacing: -2px; line-height: 1; }
.kcol { transition: background-color .15s, border-color .15s; }
.kcol.over { background: rgba(42,112,238,.14); border-color: var(--accent); border-style: dashed; }
.kempty { padding: 1rem .25rem; text-align: center; }

.chip-s { display: inline-block; padding: .05rem .5rem; border-radius: 99px; font-size: .75rem; font-family: var(--font-display); font-weight: 600; border: 1px solid var(--line); }
.chip-s.ok { color: #6EE7A8; border-color: rgba(110,231,168,.4); } .chip-s.warn { color: #FBBF24; border-color: rgba(251,191,36,.45); } .chip-s.bad { color: #FF8A8A; border-color: rgba(255,138,138,.5); }

/* analytics */
.antools { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: flex-end; padding: .9rem 1.1rem; }
.antools .field { margin: 0; min-width: 11rem; }
.lchart { width: 100%; height: auto; display: block; }
.lchart .gl { stroke: var(--line); stroke-width: 1; }
.lchart .ax { fill: var(--muted); font-size: 11px; font-family: var(--font-display); }
.lchart .ln { fill: none; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.lchart .ln.dash, .sw.dash { stroke-dasharray: 5 4; }
.lchart .ar { fill: rgba(76,141,255,.14); stroke: none; }
.lchart .hit { fill: transparent; }
.lchart .hit:hover { fill: rgba(125,176,255,.08); }
.ch1 { stroke: #7DB0FF; background: #7DB0FF; } .ch2 { stroke: #F5A524; background: #F5A524; } .ch3 { stroke: #3DD68C; background: #3DD68C; } .ch4 { stroke: #E86AB5; background: #E86AB5; } .ch5 { stroke: #B79CFF; background: #B79CFF; } .chc { stroke: #9DB0CB; background: #9DB0CB; }
.lchart .ln { background: none; }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: .4rem; font-size: .875rem; color: var(--muted); font-family: var(--font-display); }
.sw { display: inline-block; width: .9rem; height: .55rem; border-radius: 3px; margin-right: .35rem; vertical-align: middle; }
.sw.dash { background: none !important; border-top: 3px dashed #9DB0CB; height: 0; }
.dl { font-family: var(--font-display); font-size: .8125rem; font-weight: 600; color: var(--muted); }
.dl.good { color: #6EE7A8; } .dl.bad { color: #FF8A8A; }
.hb { height: .5rem; background: var(--line); border-radius: 4px; overflow: hidden; }
.hb i { display: block; height: 100%; background: var(--accent-fill); border-radius: 4px; }
.heat { display: grid; grid-template-columns: 2.4rem repeat(24, minmax(0, 1fr)); gap: 3px; align-items: center; font-size: .75rem; color: var(--muted); font-family: var(--font-display); overflow-x: auto; }
.heat em { font-style: normal; grid-row: 1; }
.heat b { font-weight: 500; }
.heat i { display: block; height: 1.3rem; border-radius: 3px; background: var(--accent-hi); }
.panel .data th[scope="row"] { min-width: 8.5rem; }
.split .panel .table-wrap { overflow-x: auto; }
.hero-bg { filter: none; opacity: .5; object-position: right center; -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 35%, #000 70%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 35%, #000 70%); }
.hero::after { background: linear-gradient(180deg, rgba(7,14,28,.15) 0%, rgba(7,14,28,0) 50%, var(--paper) 100%); }
.hero-bg { opacity: .42; -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 30%, rgba(0,0,0,.5) 55%, #000 80%); mask-image: linear-gradient(90deg, transparent 0%, transparent 30%, rgba(0,0,0,.5) 55%, #000 80%); }
.lchart { max-height: none; }

.lchart .band { fill: rgba(125,176,255,.13); stroke: rgba(125,176,255,.45); stroke-width: 1; }

.rphotos { display: flex; flex-wrap: wrap; gap: .5rem; margin: .3rem 0 .6rem; }
.rph { padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: none; cursor: zoom-in; width: 5.5rem; height: 5.5rem; }
.rph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hint.neg { color: #FF8A8A; font-weight: 600; }

/* round 8 */
.kmeta { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .35rem; }
.kmv { display: flex; gap: .3rem; margin-top: .35rem; }
.kcol.lane.off { opacity: .55; }
.kanban.sched { align-items: start; }
.mailbody { white-space: pre-wrap; font-family: var(--font-body); background: var(--plate-deep); border: 1px solid var(--line); border-radius: 8px; padding: 1rem; margin: .5rem 0 0; line-height: 1.55; }
.shiplabel { background: #fff; color: #000; border: 3px solid #000; padding: 1rem; font-family: Arial, sans-serif; max-width: 26rem; margin: 0 auto; }
.shiplabel small { color: #444; font-size: .7rem; text-transform: uppercase; }
.sl-top { font-size: 1.3rem; border-bottom: 3px solid #000; padding-bottom: .4rem; margin-bottom: .6rem; }
.sl-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; font-size: .9rem; }
.sl-bars { height: 4.5rem; margin: .9rem 0 .3rem; background: repeating-linear-gradient(90deg, #000 0 2px, #fff 2px 4px, #000 4px 5px, #fff 5px 9px, #000 9px 12px, #fff 12px 14px); }
.sl-no { text-align: center; font-family: monospace; font-size: 1.05rem; letter-spacing: .08em; }
.sl-foot { margin-top: .7rem; font-size: .7rem; color: #444; text-align: center; }
@media print {
  body > *:not(dialog.label) { display: none !important; }
  dialog.label { position: static !important; display: block !important; width: 100% !important; max-height: none !important; border: 0 !important; box-shadow: none !important; background: #fff !important; color: #000 !important; }
  dialog.label .dlg-head, dialog.label .dlg-foot { display: none !important; }
  dialog.label .dlg-body { overflow: visible !important; }
}
.cta-band a.btn { background: #fff; background-image: none; color: #0A1A3A; border: 2px solid #fff; font-size: 1.1rem; padding: .9rem 1.8rem; box-shadow: 0 10px 28px rgba(2,10,30,.45); }
.cta-band a.btn:hover { background: #E3ECFF; border-color: #E3ECFF; transform: translateY(-1px); }
.cta-band a.btn .ic { color: #1B5BE0; }
.cta-band a.btn, .cta-band a.btn:hover { background-image: none !important; }
.cta-band a.btn { background-color: #fff !important; color: #0A1A3A !important; border-color: #fff !important; }
.cta-band a.btn:hover { background-color: #E3ECFF !important; }
.cta-band a.btn .ic { color: #1B5BE0 !important; }

/* round 9 */
.giftpromo { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--accent); border-radius: 14px; background: var(--grad-plate); box-shadow: 0 0 0 4px rgba(76,141,255,.1); }
.giftpromo h2 { font-size: var(--step-1); margin: .4rem 0 .2rem; }
.giftpromo p { color: var(--muted); max-width: 34rem; margin: 0; }
#ph .phbox { display: flex; flex-direction: column; align-items: stretch; gap: .5rem; width: 8.5rem; padding-bottom: .2rem; }
#ph .phbox img { width: 100%; height: 7rem; object-fit: cover; border-radius: 8px; }
#ph .phbox .phrm { margin-top: .9rem; color: #FF8A8A; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; }
#ph .phbox .chip-s { align-self: flex-start; }

.ogroup { border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem .2rem; margin-bottom: .7rem; background: var(--plate-deep); }
#ph .phbox { width: 9rem; }
#ph .phbox > .btn, #ph .phbox > .chip-s { min-height: 2.5rem; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
#ph .phbox > .chip-s { align-self: stretch; border-color: transparent; }
#ph .phbox .phrm { margin-top: 1rem; }

.vchips { display: flex; flex-wrap: wrap; gap: .4rem; min-height: 2rem; align-items: center; }
.vchip { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .3rem .25rem .8rem; border: 1px solid var(--accent); border-radius: 99px; background: rgba(42,112,238,.15); font-family: var(--font-display); font-size: .9rem; }
.vchip button { border: 0; background: transparent; color: var(--muted); font-size: 1.15rem; line-height: 1; width: 1.7rem; height: 1.7rem; border-radius: 50%; cursor: pointer; }
.vchip button:hover { background: var(--bad); color: #fff; }

.vchip { padding-right: .3rem; }
.vadd { display: inline-flex; align-items: center; gap: .2rem; font-size: .75rem; color: var(--muted); margin: 0; }
.vadd input { width: 3.6rem; min-height: 1.9rem; padding: .1rem .35rem; font-size: .85rem; border-radius: 6px; }
#vrows input[data-vf=sku] { width: 5rem !important; } #vrows th, #vrows td { padding-left: .5rem; padding-right: .5rem; }
.ogroup table.data th, .ogroup table.data td { padding-left: .4rem; padding-right: .4rem; }
.ogroup table.data input { min-width: 0; }
.ogroup .table-wrap { overflow-x: auto; } .ogroup table.data { min-width: 0; width: 100%; }

/* ---- account: dashboard, addresses, gift cards, security ---- */
.acc-hero { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding: 1.8rem 2rem; border-radius: 16px; border: 1px solid var(--line); background: radial-gradient(120% 140% at 100% 0%, rgba(42,112,238,.32), transparent 55%), linear-gradient(135deg, #0F2147, #0A1530 70%); margin-bottom: 1.2rem; }
.acc-hero h1 { margin: .1rem 0 .4rem; font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.acc-hero p { margin: 0 0 1rem; color: var(--muted); }
.acc-eyebrow { font-size: .85rem; color: var(--accent-2, #7FB0FF) !important; margin: 0 !important; }
.acc-ring { --pct: 0; width: 9.5rem; height: 9.5rem; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--pct) * 1%), rgba(255,255,255,.1) 0); position: relative; flex: none; }
.acc-ring::before { content: ""; position: absolute; inset: .6rem; border-radius: 50%; background: #0A1530; }
.acc-ring > div { position: relative; text-align: center; display: grid; line-height: 1.15; }
.acc-ring b { font-family: var(--font-display); font-size: 1.7rem; } .acc-ring span { font-size: .75rem; color: var(--muted); } .acc-ring em { font-style: normal; font-size: .8rem; color: var(--accent-2, #7FB0FF); font-family: var(--font-display); }
.acc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .9rem; }
.acc-stat { display: grid; gap: .1rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--plate-deep, #0B1730); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.acc-stat:hover { border-color: var(--accent); transform: translateY(-2px); }
.acc-stat b { font-family: var(--font-display); font-size: 1.6rem; } .acc-stat small, .acc-sl { color: var(--muted); font-size: .85rem; }
.acc-sic { width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 10px; background: rgba(42,112,238,.18); color: var(--accent-2, #7FB0FF); margin-bottom: .4rem; }
.acc-cols { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 1.6rem; align-items: start; margin-top: .5rem; }
.acc-h { font-size: 1.2rem; margin: 1.4rem 0 .7rem; } .acc-h2 { font-size: 1.05rem; margin: 0 0 .6rem; }
.acc-order { margin-bottom: .8rem; } .acc-pics { display: flex; } .acc-thumb { width: 2.6rem; height: 2.6rem; border-radius: 10px; overflow: hidden; border: 2px solid var(--plate, #0F1E3D); margin-right: -.6rem; background: #081224; }
.acc-thumb img, .acc-pimg img { width: 100%; height: 100%; object-fit: cover; display: block; } .acc-order .toolbar > div:nth-child(2) { margin-left: 1rem; }
.acc-empty { text-align: center; padding: 2rem 1rem; } .acc-empty h3 { margin: 0 0 .3rem; }
.acc-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .9rem; }
.acc-pick { display: grid; gap: .2rem; text-decoration: none; color: var(--ink); } .acc-pimg { aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.acc-pick:hover .acc-pimg { border-color: var(--accent); }
.acc-links { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; } .acc-links a { display: flex; align-items: center; gap: .5rem; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-size: .9rem; flex-wrap: wrap; }
.acc-links a:hover { border-color: var(--accent); } .acc-links small { color: var(--muted); font-size: .75rem; margin-left: auto; }
.acc-feed { display: flex; gap: .6rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .92rem; } .acc-feed:last-child { border: 0; } .acc-feed small { margin-left: auto; color: var(--muted); white-space: nowrap; }
.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1rem; }
.addr-card { border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem; background: var(--plate-deep, #0B1730); display: flex; flex-direction: column; gap: .5rem; } .addr-card.is-def { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.addr-card address { font-style: normal; line-height: 1.5; } .addr-top { display: flex; gap: .7rem; align-items: center; } .addr-ic { width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 10px; background: rgba(42,112,238,.18); color: var(--accent-2, #7FB0FF); }
.addr-act { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--line); }
.gc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; margin-top: 1rem; }
.gc-card { position: relative; display: grid; gap: .3rem; padding: 1.2rem; border-radius: 16px; min-height: 9.5rem; background: radial-gradient(120% 120% at 100% 0%, rgba(42,112,238,.5), transparent 60%), linear-gradient(135deg, #12306B, #0A1530); border: 1px solid rgba(127,176,255,.35); }
.gc-card.is-off { filter: grayscale(.8); opacity: .7; } .gc-logo { font-family: var(--font-display); font-size: .85rem; color: var(--accent-2, #7FB0FF); } .gc-bal { font-family: var(--font-display); font-size: 2rem; } .gc-code { font-family: monospace; letter-spacing: .08em; color: var(--muted); } .gc-exp { font-size: .8rem; color: var(--muted); }
.gc-card .btn { justify-self: start; margin-top: .3rem; }
.sess-list { display: grid; gap: .7rem; } .sess { display: flex; gap: 1rem; align-items: center; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 12px; flex-wrap: wrap; } .sess.is-me { border-color: var(--accent); background: rgba(42,112,238,.08); }
.sess-ic { width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 12px; background: rgba(42,112,238,.18); color: var(--accent-2, #7FB0FF); } .sess-main { flex: 1; min-width: 14rem; line-height: 1.5; } .sess .btn { margin-left: auto; }
@media (max-width: 62rem) { .acc-cols { grid-template-columns: 1fr; } .acc-hero { grid-template-columns: 1fr; } .acc-ring { justify-self: start; } }
.acc-links a { flex-wrap: nowrap; }

/* ---- settings bar, support categories, support stats ---- */
.setsbar { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.2rem; padding: .35rem; border: 1px solid var(--line); border-radius: 12px; background: var(--plate-deep, #0B1730); }
.setsbar a { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .85rem; border-radius: 9px; text-decoration: none; color: var(--muted); font-family: var(--font-display); font-size: .9rem; }
.setsbar a:hover { color: var(--ink); background: rgba(255,255,255,.05); } .setsbar a[aria-current=page] { color: #fff; background: var(--accent); }
.catlist { display: grid; gap: .6rem; } .catrow { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 12px; } .catrow.is-off { opacity: .7; } .catmain { flex: 1; min-width: 14rem; line-height: 1.5; }
.hbar { display: block; height: .55rem; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; } .hbar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.thm { display: grid; gap: 3px; overflow-x: auto; } .thm-row { display: grid; grid-template-columns: 2.6rem repeat(24, minmax(.7rem, 1fr)); gap: 3px; align-items: center; min-width: 32rem; } .thm-row i { height: 1.35rem; border-radius: 4px; background: rgba(42,112,238,calc(.06 + var(--v) * .94)); } .thm-head span, .thm-day { font-size: .7rem; color: var(--muted); }
.sets-group { margin: 1rem 0 .3rem; padding: 0 .8rem; font-size: .75rem; color: var(--muted); font-family: var(--font-display); letter-spacing: .02em; } .sets-group:first-child { margin-top: 0; }
.sbtn { display: flex; align-items: center; gap: .6rem; width: 100%; text-decoration: none; } .sbtn svg { flex: none; opacity: .8; } .sbtn-link { color: var(--ink); } .sbtn-link:hover { background: var(--plate); }
.sets-nav { padding: .6rem; border: 1px solid var(--line); border-radius: 14px; background: var(--plate-deep, #0B1730); }
.sets-title { display: flex; gap: .9rem; align-items: center; margin-bottom: 1rem; } .sets-title h2 { margin: 0; font-size: 1.4rem; } .sets-title p { margin: 0; } .sets-ic { width: 2.8rem; height: 2.8rem; display: grid; place-items: center; border-radius: 12px; background: rgba(42,112,238,.18); color: var(--accent-2, #7FB0FF); flex: none; }

/* ---- roles and permissions polish ---- */
.rolelist { display: grid; gap: .5rem; align-content: start; }
.rolebtn { display: grid; gap: .25rem; padding: .85rem 1rem; border-radius: 12px; background: var(--plate-deep, #0B1730); transition: border-color .15s, transform .15s; }
.rolebtn:hover { transform: translateY(-1px); } .rolebtn b { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; font-family: var(--font-display); }
.rmeter { display: block; height: .3rem; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: .2rem; } .rmeter u { display: block; height: 100%; background: var(--accent); text-decoration: none; }
.pgroup { border-radius: 12px; padding: .7rem 1.1rem 1rem; margin: 1rem 0 0; background: rgba(255,255,255,.015); position: relative; }
.pgroup legend { font-size: 1rem; } .pgroup .pg-all { position: absolute; right: 1rem; top: -.2rem; }
.permchip { display: flex !important; } 
table.matrix .grp th { background: rgba(42,112,238,.12); font-family: var(--font-display); text-align: left; }
.tpl-pre { width: 100%; min-height: 22rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.vars { display: flex; flex-wrap: wrap; gap: .3rem; margin: .3rem 0 .6rem; } .vars button { font-family: monospace; font-size: .8rem; padding: .15rem .5rem; border: 1px solid var(--line); border-radius: 99px; background: transparent; color: var(--ink); cursor: pointer; } .vars button:hover { border-color: var(--accent); }
.tpl-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } @media (max-width: 62rem) { .tpl-cols { grid-template-columns: 1fr; } }
.pgroup { display: flex; flex-wrap: wrap; gap: .4rem .5rem; align-items: flex-start; padding-top: 1rem; } .pgroup .permchip { display: inline-flex !important; margin: 0; }
.sbtn { font-size: .95rem; padding: .5rem .7rem; }
.pgroup .pg-all { position: static; flex: 0 0 100%; text-align: right; margin: -.3rem 0 .1rem; }

/* ---------- Round 14: home, quote, track, about redesign ---------- */
.bento { display: grid; gap: 1rem; grid-template-columns: 1.4fr 1fr; grid-template-rows: 14rem 14rem; }
.bento .cat-card { aspect-ratio: auto; min-height: 0; height: 100%; }
.bento .cat-card img { position: absolute; inset: 0; }
.bento .bt0 { grid-row: span 2; }
.bento .bt0 span { font-size: 1.6rem; padding-bottom: 1.2rem; }
@media (max-width: 44rem) { .bento { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 13rem; } .bento .bt0 { grid-row: auto; } }
.hiw-grid { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
@media (max-width: 62rem) { .hiw-grid { grid-template-columns: 1fr; } }
.vsteps { list-style: none; margin: 0; padding: 0; position: relative; }
.vsteps li { display: flex; gap: 1rem; padding-bottom: 1.5rem; position: relative; }
.vsteps li:not(:last-child)::before { content: ""; position: absolute; left: 1.45rem; top: 3rem; bottom: .2rem; width: 2px; background: linear-gradient(var(--accent-fill), var(--line)); }
.vsteps .sico { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--plate); border: 2px solid var(--accent-fill); color: var(--accent-hi); margin: 0; }
.vsteps h3 { font-size: 1.2rem; margin: .1rem 0 .2rem; }
.vsteps p { color: var(--muted); max-width: 34rem; }
.receipt { background: var(--plate); border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem; box-shadow: 0 18px 40px rgba(0,0,0,.35); transform: rotate(1.2deg); }
.receipt .rc-head { display: flex; flex-direction: column; padding-bottom: .8rem; margin-bottom: .4rem; border-bottom: 2px dashed var(--line); }
.receipt .rc-total { display: flex; justify-content: space-between; align-items: baseline; margin: .9rem 0 1.1rem; padding-top: .8rem; border-top: 2px dashed var(--line); }
.receipt .rc-total b { font-family: var(--font-display); font-size: 2rem; color: var(--accent-hi); }
.receipt .btn { width: 100%; justify-content: center; }
@media (prefers-reduced-motion: no-preference) { .receipt { transition: transform .25s; } .receipt:hover { transform: rotate(0); } }
.matlist { border-top: 1px solid var(--line); }
.matrow { display: grid; grid-template-columns: 9rem 11rem 1fr; gap: 1rem; align-items: baseline; padding: 1.05rem .4rem; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; transition: background .15s; }
.matrow:hover { background: var(--plate); }
.matrow h3 { font-size: 1.25rem; } .matrow p { color: var(--muted); margin: 0; }
@media (max-width: 52rem) { .matrow { grid-template-columns: 1fr; gap: .3rem; } }
.faq-grid { display: grid; gap: 2rem; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); align-items: start; }
@media (max-width: 52rem) { .faq-grid { grid-template-columns: 1fr; } }

/* quote */
.q-head { display: flex; gap: 1.5rem 3rem; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; padding: 2rem 0 1.5rem; }
.q-head .lede { color: var(--muted); max-width: 38rem; margin-top: .6rem; }
.q-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; color: var(--muted); }
.q-perks li { display: flex; gap: .5rem; align-items: center; } .q-perks .ic { color: var(--ok); }
.qstep { display: flex; align-items: center; gap: .7rem; font-size: 1.3rem; margin-bottom: 1rem; }
.qstep span { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent-fill); color: #fff; font-size: 1rem; }
.dropzone { border-width: 2px; border-style: dashed; padding: 2rem 1rem; }
.viewer { min-height: 20rem; border-radius: 12px; }
aside .panel.sticky { border-color: var(--accent-fill); box-shadow: 0 0 0 1px rgba(76,141,255,.2), 0 18px 40px rgba(0,0,0,.3); }

/* track */
.trk-hero { background: var(--grad-glow, none); border-bottom: 1px solid var(--line); padding: 2.5rem 0; }
.trk-grid { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: start; }
@media (max-width: 52rem) { .trk-grid { grid-template-columns: 1fr; } }
.trk-hero h1 { font-size: var(--step-3); }
.trk-hero .lede { color: var(--muted); margin: .7rem 0 1.4rem; max-width: 34rem; }
.trk-form { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr auto; align-items: end; }
.trk-form .field { margin: 0; } .trk-form .btn { min-height: 48px; }
@media (max-width: 52rem) { .trk-form { grid-template-columns: 1fr; } }
.trk-legend { background: var(--plate); border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem 1.4rem; }
.trk-legend h2 { font-size: 1.1rem; margin-bottom: .6rem; }
.trk-legend ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.trk-legend li { display: grid; } .trk-legend li span { color: var(--muted); font-size: .95rem; }
.trk-card { background: var(--plate); border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; margin-top: 2rem; }
.trk-top { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; } .trk-top h2 { font-size: 1.8rem; }
.trk-cols { display: grid; gap: 1.5rem; grid-template-columns: 1fr 1fr; margin-top: 1.5rem; } @media (max-width: 44rem) { .trk-cols { grid-template-columns: 1fr; } }
.trk-cols h3 { font-size: 1rem; margin-bottom: .5rem; }
.trk-item { display: flex; justify-content: space-between; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.trk-help { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; padding: 1.2rem 1.4rem; border: 1px dashed var(--line); border-radius: 12px; } .trk-help h2 { font-size: 1.15rem; }

/* about */
.abt-intro { padding: 3rem 0 1rem; }
.abt-grid { display: grid; gap: 2rem 4rem; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; }
@media (max-width: 52rem) { .abt-grid { grid-template-columns: 1fr; } }
.abt-grid h1 { font-size: var(--step-3); line-height: 1.05; }
.abt-val .sico { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 12px; margin-bottom: .6rem; background: rgba(76,141,255,.14); color: var(--accent-hi); }
.abt-val h3 { font-size: 1.2rem; margin-bottom: .3rem; } .abt-val p { color: var(--muted); }
.abt-tags { display: flex; flex-wrap: wrap; gap: .6rem; } .abt-tags .tag-chip { font-size: 1rem; padding: .5rem 1rem; }
.abt-contact { display: grid; gap: 2rem; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; } @media (max-width: 52rem) { .abt-contact { grid-template-columns: 1fr; } }
.panel .form-grid:has(.chips) { grid-template-columns: minmax(0, 1fr); }

.litho { margin-top: .8rem; }
.litho canvas { display: block; width: 100%; max-width: 20rem; aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line); margin: .6rem 0; background: #000; }
.bulk { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }

.matcards { display: grid; gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 62rem) { .matcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .matcards { grid-template-columns: 1fr; } }
.matcard { display: flex; flex-direction: column; background: var(--plate); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.matcard:hover { border-color: var(--accent); transform: translateY(-2px); }
.matcard .mimg { aspect-ratio: 1; background: radial-gradient(circle at 50% 45%, #1B3566 0%, var(--plate-deep) 75%); }
.matcard .mimg img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 14px 18px rgba(0,0,0,.45)); transition: transform .3s; }
.matcard:hover .mimg img { transform: scale(1.04); }
.matcard .mbody { padding: 1rem 1.1rem 1.2rem; display: grid; gap: .45rem; }
.matcard h3 { font-size: 1.25rem; } .matcard p { color: var(--muted); font-size: .98rem; margin: 0; }

/* admin search */
dialog:has(.ks) { width: min(40rem, calc(100vw - 2rem)); }
.ks #ksearch { width: 100%; min-height: 52px; font-size: 1.1rem; padding: 0 1rem; }
.kres { margin-top: .8rem; max-height: min(55vh, 28rem); overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--plate-deep); }
.kg { display: flex; justify-content: space-between; align-items: center; padding: .45rem 1rem; background: var(--deep); border-bottom: 1px solid var(--line); font-family: var(--font-display); font-weight: 600; font-size: .85rem; color: var(--muted); position: sticky; top: 0; }
.kr { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.kr:last-child { border-bottom: 0; }
.kr.on { background: rgba(76,141,255,.16); box-shadow: inset 3px 0 0 var(--accent); }
.kr .kt { display: grid; min-width: 0; } .kr .kt b { font-family: var(--font-display); } .kr .kt small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kr .kx { display: flex; gap: .5rem; align-items: center; flex: none; }
.kr mark { background: transparent; color: var(--accent-hi); font-weight: 700; text-decoration: underline; }
.kempty, .kmore { padding: 1.2rem 1rem; color: var(--muted); margin: 0; }
.ks-hint { margin-top: .6rem; }
.matcards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 44rem) { .matcards.two { grid-template-columns: 1fr; } }

/* integrations */
.igrid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); margin-top: 1rem; }
.icard { background: var(--plate); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .7rem; }
.icard.on { border-color: var(--accent-fill); }
.icard p { margin: 0; color: var(--muted); }
.ihead { display: flex; gap: .8rem; align-items: center; } .ihead h2 { font-size: 1.15rem; } .ihead .badge { margin-left: auto; }
.iic { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 10px; background: rgba(76,141,255,.14); color: var(--accent-hi); flex: none; }
.ido { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; font-size: .95rem; } .ido li { display: flex; gap: .45rem; align-items: center; } .ido .ic { color: var(--ok); }
.icard .row-actions { margin-top: auto; }

@media (max-width: 40rem) { #ksbtn { display: none; } .pgroup { min-width: 0; } }
.pgroup { min-width: 0; }
.table-wrap { position: relative; }
.viewer { width: 100%; aspect-ratio: auto; height: 20rem; min-height: 0; }

/* Round 19: bigger rating star, email preview */
.trust b .bigstar { display: inline-block; font-size: 1em; line-height: 1; vertical-align: -.05em; color: inherit; letter-spacing: 0; }
.tpl-bar { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between; margin-bottom: .6rem; }
.tpl-subj { margin: 0 0 .6rem; }
.tpl-frame { background: #dfe7f5; border-radius: 12px; padding: .8rem; display: flex; justify-content: center; }
.tpl-frame iframe { width: 100%; height: 60vh; min-height: 24rem; border: 0; border-radius: 8px; background: #fff; transition: max-width .2s; }
.tpl-frame.phone iframe { max-width: 375px; }
.tpl-gh { font-size: 1rem; margin: 1.4rem 0 .5rem; }
dialog.wide:has(.tpl-frame) { width: min(60rem, 96vw); }

/* Round 20: filament spools */
.spsw { display: inline-block; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--c); border: 2px solid var(--line); margin-right: .55rem; vertical-align: -.2em; }
.spbar { height: .5rem; border-radius: 99px; background: var(--plate-deep); border: 1px solid var(--line); overflow: hidden; margin-bottom: .3rem; }
.spbar span { display: block; height: 100%; background: var(--ok); } .spbar span.low { background: var(--warn); } .spbar span.empty { background: var(--bad); }
dialog.wide:has(.tpl-cols) { width: min(72rem, 96vw); }

.rlog { margin: 0; padding-left: 1.2rem; display: grid; gap: .3rem; } .rrow { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: .35rem 0; }
.rlog li { font-size: .95rem; }

/* Round 24: visual newsletter editor */
dialog.wide:has(.nwed) { width: min(88rem, 98vw); }
.nw-tabs { margin: 1rem 0 .8rem; }
.nwed { display: grid; grid-template-columns: 11rem minmax(0, 1fr) 16rem; gap: 1rem; align-items: start; }
@media (max-width: 62rem) { .nwed { grid-template-columns: 1fr; } }
.nw-pal h3, .nw-props h3 { font-size: .95rem; margin: 0 0 .4rem; }
#npal { display: grid; gap: .4rem; grid-template-columns: 1fr; } @media (max-width: 62rem) { #npal { grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); } }
.nw-pi { display: flex; align-items: center; gap: .55rem; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--plate-deep); color: var(--ink); cursor: grab; font: inherit; text-align: left; }
.nw-pi:hover { border-color: var(--accent); } .nw-pi:active { cursor: grabbing; }
.nw-tools { display: flex; gap: .4rem; align-items: center; margin-bottom: .5rem; opacity: .45; } .nw-tools.on { opacity: 1; }
.nw-tools button, .nw-tools select { min-height: 2.2rem; padding: 0 .7rem; border: 1px solid var(--line); border-radius: 8px; background: var(--plate-deep); color: var(--ink); font: inherit; cursor: pointer; }
.nw-canvas { background: #070E1C; border: 1px solid var(--line); border-radius: 12px; padding: .8rem; max-height: 68vh; overflow: auto; }
.nw-banner img { display: block; width: 100%; max-width: 580px; margin: 0 auto; border-radius: 12px 12px 0 0; }
.nw-card { max-width: 580px; margin: 0 auto; background: #0F1B33; border: 1px solid #223559; border-radius: 0 0 12px 12px; padding: 1rem 1.2rem 1.2rem; position: relative; }
.nw-banner + .nw-card { border-top: 3px solid #2A70EE; }
.nw-blk { position: relative; border: 1px dashed transparent; border-radius: 8px; padding: .15rem .4rem; margin: .1rem -.4rem; }
.nw-blk:hover { border-color: #2A4A87; } .nw-blk.on { border-color: #4C8DFF; background: rgba(76,141,255,.06); }
.nw-blk.before { box-shadow: 0 -3px 0 0 #4C8DFF; } .nw-card.after { box-shadow: 0 3px 0 0 #4C8DFF; } .nw-blk.drag { opacity: .4; }
.nw-bar { display: none; align-items: center; gap: .5rem; font: 600 .72rem/1 var(--font-display); color: #9DB0CB; padding: .15rem 0 .35rem; }
.nw-blk:hover .nw-bar, .nw-blk.on .nw-bar, .nw-blk:focus-within .nw-bar { display: flex; }
.nw-h { cursor: grab; letter-spacing: -2px; padding: 0 .3rem; font-size: 1rem; } .nw-ba { margin-left: auto; display: flex; gap: .25rem; }
.nw-ba button { border: 1px solid #223559; background: #0A1426; color: #EAF0F8; border-radius: 6px; font: inherit; font-size: .72rem; padding: .3rem .5rem; cursor: pointer; }
.nw-ba button:hover { border-color: #4C8DFF; }
.nw-ed { outline: none; } .nw-ed:focus { box-shadow: 0 0 0 2px rgba(76,141,255,.55); border-radius: 4px; }
.nw-ph, .nw-empty { border: 1px dashed #2A4A87; border-radius: 10px; padding: 1.4rem; text-align: center; color: #9DB0CB; font-size: .9rem; }
.nw-foot { margin-top: 1.2rem; padding-top: .8rem; border-top: 1px solid #223559; text-align: center; color: #7F93B2; font-size: .75rem; }
.nw-props .field { margin-bottom: .7rem; }
.nw-tools select { max-width: 12rem; } .nw-pal .hint { font-size: .8rem; }

.nw-rs { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #4C8DFF; border: 2px solid #fff; cursor: nwse-resize; touch-action: none; z-index: 2; box-shadow: 0 1px 4px rgba(0,0,0,.5); }
.nw-rs-h { position: absolute; left: 0; right: 0; bottom: -3px; height: 8px; border-radius: 4px; background: rgba(76,141,255,.55); cursor: ns-resize; touch-action: none; }
.nw-blk:not(.on) .nw-rs, .nw-blk:not(.on) .nw-rs-h { display: none; }
.nw-props output { font-weight: 700; }

.nw-ed:empty::before { content: attr(data-ph); color: #7F93B2; font-weight: 400; }

/* quote page extras */
.q-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 0; margin: 0 0 1.5rem; counter-reset: qs; }
.q-steps li { counter-increment: qs; border: 1px solid var(--line); border-radius: .75rem; padding: .9rem 1rem; display: grid; gap: .25rem; }
.q-steps li::before { content: counter(qs); display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--accent-fill); color: #fff; font-size: .85rem; font-family: var(--font-display); }
.q-steps li span { color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) { .q-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .q-steps { grid-template-columns: 1fr; } }
.chips-s { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .35rem; }
.chip-s { font-size: .75rem; padding: .15rem .55rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.chip-s.ok { color: #4cc38a; border-color: currentColor; }
.chip-s.warn { color: #f0b429; border-color: currentColor; }
.q-break { margin: .5rem 0 .8rem; font-size: .95rem; }
.q-break summary { cursor: pointer; color: #7db4ff; padding: .25rem 0; }
.q-help { margin-top: 1rem; }
.q-help h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.q-next { margin: .6rem 0 .8rem 1.2rem; padding: 0; }
.q-faq { margin-top: 2.5rem; max-width: 52rem; }
.q-faq h2 { font-size: 1.4rem; margin-bottom: .8rem; }
.q-faq details { border-top: 1px solid var(--line); padding: .75rem 0; }
.q-faq details:last-child { border-bottom: 1px solid var(--line); }
.q-faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; }
.q-faq p { color: var(--muted); margin-top: .5rem; max-width: 46rem; }

/* settings: toggles in a row, list editor, social provider cards */
.toggle-row { display: flex; flex-wrap: wrap; gap: .6rem .7rem; margin: .4rem 0 .6rem; }
.toggle-row .field { margin: 0; }
.rows-ed { margin-top: .35rem; }
.rows-h, .rows-r { display: grid; gap: .5rem; align-items: center; }
.rows-h { color: var(--muted); font-size: .85rem; padding: 0 .1rem .3rem; }
.rows-r { margin-bottom: .5rem; }
.rows-r input, .rows-r select { width: 100%; min-width: 0; }
.rows-add { margin-top: .2rem; }
.prov { border: 1px solid var(--line); border-radius: .75rem; padding: .85rem 1rem 1rem; margin-bottom: .85rem; }
.prov > .field { margin-bottom: .5rem; }

/* logs: room under the tiles, clickable rows, detail window */
.stat-grid + .tabs { margin-top: 1.5rem; }
.tabs + #lf, .tabs + form { margin-top: 1.1rem; }
tr.clickrow { cursor: pointer; }
tr.clickrow:hover td, tr.clickrow:focus-visible td { background: rgba(110, 160, 255, .09); }
tr.clickrow:focus-visible { outline: 2px solid var(--accent, #6aa7ff); outline-offset: -2px; }
.nowrap { white-space: nowrap; }
.logmsg { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.log-msg { font-family: var(--font-display); margin-bottom: .8rem; word-break: break-word; }
.log-ctx { background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: .5rem; padding: .7rem .85rem; overflow: auto; max-height: 16rem; font-size: .82rem; white-space: pre-wrap; word-break: break-word; }

/* rewards: even badge cards, with room below the buttons */
#rb > .row-actions { margin-bottom: 1.5rem; }
#rb .badge-grid { align-items: stretch; gap: 1rem; }
#rb .badge-grid > div { display: flex; flex-direction: column; gap: .5rem; }
#rb .badge-grid > div > :first-child { flex: 1; min-height: 6.2rem; }
#rb .badge-grid .muted.small { margin: 0; min-height: 2.6rem; }
#rb .badge-actions { display: flex; justify-content: center; gap: .5rem; }
#lf { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; }
#lf input[type=search] { flex: 2 1 16rem; min-width: 0; }
#lf select { flex: 0 1 12rem; }

/* side menu pills: red while something waits, a calm green 0 when nothing does */
.admin-side .pill.ok { background: rgba(76, 195, 138, .16); color: #5fd49b; box-shadow: inset 0 0 0 1px rgba(76, 195, 138, .35); }
.admin-side .pill.todo { background: var(--bad); color: #3A0A04; }

/* status colors: green = good, yellow = featured or watch, red = stop, blue = in progress, grey = off */
.badge.st-ok { color: var(--ok); } .badge.st-warn { color: var(--warn); } .badge.st-bad { color: var(--bad); } .badge.st-info { color: var(--info); } .badge.st-off { color: var(--muted); } .badge.st-staff { color: #B79BFF; }
.kpis-strip { margin: 0 0 1rem; }
.people-sub { display: block; }
/* more status words so every badge has a meaning color */
.s-active, .s-live, .s-fine, .s-ok, .s-done, .s-sent, .s-published, .s-connected, .s-on, .s-yes, .s-completed, .s-converted, .s-resolved, .s-replaced, .s-credited { color: var(--ok); }
.s-featured, .s-warning, .s-expiring, .s-scheduled, .s-closing, .s-unverified, .s-unpaid, .s-rush, .s-late, .s-waiting, .s-pending-review, .s-requested, .s-changes-requested, .s-unscheduled { color: var(--warn); }
.s-suspended, .s-locked, .s-banned, .s-disabled, .s-out, .s-failed, .s-rejected, .s-declined, .s-voided, .s-expired, .s-overdue, .s-deleted { color: var(--bad); }
.s-invited, .s-in-review, .s-quoted, .s-used, .s-draft-sent, .s-not-connected { color: var(--info); }
.s-draft, .s-archived, .s-hidden, .s-off, .s-none, .s-inactive, .s-used-up { color: var(--muted); }
.s-staff, .s-owner, .s-manager { color: #B79BFF; }
.data td.row-actions { white-space: nowrap; }

/* ---- Status colors, one place for every status word used in the shop and admin ----
   green = fine / done, blue = new or informational, amber = in progress or needs a look, accent = on its way, red = stopped or a problem, grey = off or hidden. */
.s-active, .s-live, .s-paid, .s-approved, .s-accepted, .s-delivered, .s-complete, .s-completed, .s-done, .s-resolved, .s-solved, .s-verified, .s-connected, .s-on, .s-yes, .s-enabled, .s-sent, .s-published, .s-visible, .s-shown, .s-subscribed, .s-success, .s-in-stock, .s-ok, .s-fine, .s-picked-up, .s-converted, .s-ordered, .s-replaced, .s-credited, .s-delivered-ok, .s-opened, .s-clicked, .s-received-back { color: var(--ok); }
.s-received, .s-open, .s-new, .s-priced, .s-quoted, .s-invited, .s-in-review, .s-sending, .s-info, .s-normal, .s-medium, .s-used, .s-redeemed, .s-viewed, .s-not-connected, .s-owner-note { color: var(--info); }
.s-pending, .s-printing, .s-queued, .s-packing, .s-qc, .s-in-progress, .s-partial, .s-partially-paid, .s-processing, .s-waiting, .s-waiting-on-customer, .s-on-hold, .s-unpaid, .s-low, .s-low-stock, .s-high, .s-expiring, .s-requested, .s-changes-requested, .s-unverified, .s-draft-sent, .s-running, .s-scheduled, .s-unscheduled, .s-warning, .s-warn, .s-rush, .s-late, .s-closing, .s-featured, .s-pending-review { color: var(--warn); }
.s-ready, .s-ready-to-ship, .s-shipped, .s-out-for-delivery, .s-returned, .s-in-transit { color: var(--accent); }
.s-cancelled, .s-canceled, .s-refunded, .s-partially-refunded, .s-failed, .s-error, .s-rejected, .s-declined, .s-denied, .s-void, .s-voided, .s-expired, .s-overdue, .s-disabled, .s-suspended, .s-banned, .s-locked, .s-out, .s-out-of-stock, .s-urgent, .s-critical, .s-bounced, .s-suppressed, .s-unsubscribed, .s-closed, .s-deleted, .s-issue, .s-not-sent { color: var(--bad); }
.s-draft, .s-archived, .s-hidden, .s-off, .s-no, .s-none, .s-inactive, .s-unpublished, .s-used-up, .s-neutral, .s-stopped { color: var(--muted); }
.s-staff, .s-owner, .s-manager, .s-admin { color: #B79BFF; }
.s-replied, .s-fixed { color: var(--ok); }
.s-paused, .s-needs-info { color: var(--warn); }
.s-removed { color: var(--bad); }
.s-read, .s-spent { color: var(--muted); }

.s-made-to-order { color: var(--info); }
.stock-n { font-variant-numeric: tabular-nums; }

/* one product page: form on the left, visibility card on the right */
.pe-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr) 19rem; align-items: start; margin-top: 1rem; }
.pe-main > .panel:first-child { margin-top: 0; }
.pe-side { position: sticky; top: 1rem; }
.stack-actions { display: grid; gap: .5rem; }
.stack-actions .btn { justify-content: center; text-align: center; }
.ogroup { border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; margin-bottom: .8rem; }
@media (max-width: 60rem) { .pe-grid { grid-template-columns: minmax(0, 1fr); } .pe-side { position: static; order: -1; } }

/* analytics */
.stat .delta{display:inline-block;font-weight:700;margin-right:.4rem}
.stat .delta.good{color:var(--ok,#3ecf8e)}.stat .delta.bad{color:var(--bad,#ff6b6b)}.stat .delta.flat{color:var(--muted,#9aa)}
.an-chart-head{display:flex;justify-content:space-between;align-items:center;gap:.75rem;flex-wrap:wrap;margin-bottom:.5rem}
.an-chart-sel{display:flex;gap:.5rem;flex-wrap:wrap}
.an-legend{margin:.4rem 0 0;font-size:.85rem}.an-sw{display:inline-block;width:.8rem;height:.8rem;border-radius:2px;background:var(--accent,#2a70ee);vertical-align:-1px}
.sharebar{display:block;min-width:5rem;height:.55rem;border-radius:99px;background:rgba(127,127,127,.25);overflow:hidden}
.sharebar i{display:block;height:100%;background:var(--accent,#2a70ee)}
.an-chart-sel select{width:auto;min-width:11rem}.an-chart-sel{flex-wrap:nowrap}

/* ---------- Dashboard text spacing (2026-11-06 pass) ---------- */
/* card headings: same height and baseline whether the card has a link beside the title or not */
.dash .panel > h2, .dash .panel > .toolbar { min-height: 2rem; display: flex; align-items: center; gap: .5rem; margin: 0 0 .6rem; }
.dash .panel > .toolbar { justify-content: space-between; }
.dash .panel > .toolbar h2 { display: flex; align-items: center; gap: .5rem; margin: 0; }
/* tiles: tighter lines so wrapped captions do not float apart */
.stat-grid .stat span, .stat-grid .stat small { line-height: 1.35; }
.stat-grid .stat small { display: block; margin-top: .25rem; }
/* quick actions: one column in the narrow side card so labels stay on one line */
.d-quick .quick { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.d-quick .qa b { white-space: nowrap; }
/* rows: the right-hand value (time left, price, timestamp) never wraps, the left text takes the room */
.dash .trow > span, .dash .kv > span { min-width: 0; overflow-wrap: anywhere; }
.dash .trow > b, .dash .kv > b { flex: none; white-space: nowrap; text-align: right; }
.dash .trow { align-items: baseline; padding: .6rem .6rem; line-height: 1.4; }
.d-act .kv { padding: .6rem 0; line-height: 1.4; align-items: baseline; }
.dash .alist li, .dash p.muted { line-height: 1.5; }

/* Rewards badge cards: caption and Edit/Award/Delete stay inside the card's column */
#rb .badge-grid > div { min-width: 0; }
#rb .badge-grid .muted.small { line-height: 1.4; min-height: 0; padding: 0 .25rem; }
#rb .badge-actions { flex-wrap: wrap; gap: .25rem; }
#rb .badge-actions .btn { padding-left: .6rem; padding-right: .6rem; min-height: 36px; white-space: nowrap; }
/* buttons and tabs never wrap their own label */
.btn, button.tab, a.tab { white-space: nowrap; }
#rb .badge-actions { flex-wrap: nowrap; justify-content: center; gap: .15rem; }
#rb .badge-actions .btn { padding: 0 .45rem; min-width: 0; gap: .3rem; font-size: .875rem; }

/* Rewards badges: every box the same size, text lined up the same way */
#rb .badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); grid-auto-rows: 1fr; align-items: stretch; }
#rb .badge-grid > div { display: grid; grid-template-rows: 1fr auto auto; height: 100%; }
#rb .badge-grid > div > :first-child { min-height: 8rem; display: flex; align-items: center; gap: .9rem; height: 100%; box-sizing: border-box; }
#rb .badge-grid > div > :first-child p { line-height: 1.4; margin: .25rem 0 0; }
#rb .badge-grid .muted.small { min-height: 2.8rem; display: flex; align-items: center; justify-content: center; text-align: center; }

/* Customer badges: equal boxes, tight text, progress on its own line */
.badge-grid { grid-auto-rows: 1fr; align-items: stretch; }
.badge-tile { box-sizing: border-box; min-height: 7.5rem; height: 100%; }
.badge-tile > div { line-height: 1.35; min-width: 0; }
.badge-tile > div span { line-height: 1.35; display: block; margin-top: .15rem; }
.badge-tile small { display: block; margin-top: .3rem; }

/* Account home: Picked for you tiles all the same size */
.acc-picks { align-items: stretch; }
.acc-pick { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.acc-pick b { font-family: var(--font-display); font-size: .9375rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.acc-pick .acc-pimg { aspect-ratio: 1; display: block; border-radius: 10px; overflow: hidden; background: var(--plate); border: 1px solid var(--line); }
.acc-pick .acc-pimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acc-pick .muted { margin-top: auto; }

/* Quote sliders: full width, hint on its own line */
.q-head ~ .split input[type=range], #infill, #scale { width: 100%; display: block; }
#scale + .hint, #infill + .hint { display: block; margin-top: .35rem; }

/* short table cells stay on one line (class added by layout.js) */
table.data .nw { white-space: nowrap; }

/* Print queue board: on narrow screens each stage keeps a readable width and the board scrolls sideways */
@media (max-width: 70rem) {
  .kanban { grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: minmax(14.5rem, 80%); overflow-x: auto; padding-bottom: .6rem; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .kanban > * { scroll-snap-align: start; min-width: 0; }
}
@media (min-width: 36.01rem) and (max-width: 70rem) { .kanban { grid-auto-columns: minmax(15rem, 32%); } }

/* Quote page: estimate and help box scroll together */
aside .q-side > .panel:first-child { border-color: var(--accent-fill); box-shadow: 0 0 0 1px rgba(76,141,255,.2), 0 18px 40px rgba(0,0,0,.3); }
.q-side { max-height: calc(100vh - var(--header-h) - 2rem); overflow-y: auto; display: grid; gap: 1rem; align-content: start; }
.q-side .q-help { margin: 0; }
.split > aside { align-self: stretch; }

/* Icon-only action buttons in admin tables */
.btn.icon-only { padding: .45rem; min-width: 2.25rem; min-height: 2.25rem; display: inline-flex; align-items: center; justify-content: center; }
.btn.icon-only .ic, .btn.icon-only svg { margin: 0; }
td .row-actions { display: flex; gap: .35rem; }
.btn.icon-only { padding: .35rem; min-width: 2rem; min-height: 2rem; }
td .row-actions { gap: .25rem; }

/* Admin projects */
.pj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
.pj-card { background: var(--panel, #101b33); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.pj-cover { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; background: #0a1326; cursor: pointer; }
.pj-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pj-none { display: grid; place-items: center; height: 100%; color: var(--muted); gap: .3rem; align-content: center; }
.pj-badges { position: absolute; top: .5rem; left: .5rem; display: flex; gap: .3rem; flex-wrap: wrap; }
.pj-body { padding: .8rem .9rem .9rem; display: grid; gap: .5rem; }
.pj-body h3 { font-size: 1rem; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-body p { margin: 0; }
.pj-ed { display: grid; gap: 1.4rem; max-height: 70vh; overflow-y: auto; padding-right: .4rem; }
.pj-ed h3 { font-size: 1rem; margin: 0 0 .5rem; }
.pj-ed .field.wide { grid-column: 1 / -1; }
.pj-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); gap: .6rem; margin-bottom: .7rem; }
.pj-img { position: relative; margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1; cursor: grab; }
.pj-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pj-cover-tag { position: absolute; top: .3rem; left: .3rem; background: var(--accent-fill); color: #fff; font-size: .7rem; padding: .1rem .4rem; border-radius: 6px; }
.pj-img-act { position: absolute; inset: auto 0 0 0; display: flex; gap: .2rem; justify-content: center; padding: .3rem; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.pj-drop { display: flex; align-items: center; gap: .8rem; padding: 1rem; border: 2px dashed var(--line); border-radius: 12px; cursor: pointer; color: var(--muted); }
.pj-drop.over, .pj-drop:hover { border-color: var(--accent-fill); color: var(--text); }

/* Date and time pickers, side by side */
/* date + time pickers (site announcement) */
.dt-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem; margin-bottom: 1rem; }
.dt-card { min-width: 0; margin: 0; padding: .9rem 1rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--plate-deep); }
.dt-card legend { padding: 0 .4rem; font-family: var(--font-display); font-weight: 700; }
.dt-row { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: .6rem; }
.dt-row > div { min-width: 0; }
.dt-row input { min-width: 0; width: 100%; background: var(--deep, #0b1424); }
.dt-sub { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .25rem; }
.dt-say { margin: .55rem 0 0; font-size: .95rem; color: var(--ink); min-height: 1.4em; }
.dt-say.bad { color: #ff9a8a; }
.dt-quick { display: flex; flex-wrap: wrap; gap: .4rem; margin: .7rem 0 0; }
input[type=date], input[type=time], input[type=datetime-local] { color-scheme: dark; }
input[type=date]::-webkit-calendar-picker-indicator, input[type=time]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .8; }

/* Account pages: a styled header card instead of a bare title */
body[data-area="account"] .page-head { padding: 1.4rem 1.5rem 1.3rem 1.75rem !important;
  position: relative; padding: 1.4rem 1.5rem 1.3rem 1.75rem; margin-bottom: 1.25rem; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: linear-gradient(135deg, rgba(42,112,238,.18), rgba(42,112,238,.04) 55%, transparent), var(--plate, #101b33);
}
body[data-area="account"] .page-head::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--grad-accent, var(--accent-fill)); }
body[data-area="account"] .page-head h1 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); letter-spacing: -.01em; }
body[data-area="account"] .page-head p { margin-top: .4rem; }
body[data-area="account"] .page-head .row-actions, body[data-area="account"] .page-head .btn { margin-top: .6rem; }

/* design request box on the quote page */
.q-design { margin-top: 1rem; }
.q-design summary { cursor: pointer; padding: .1rem 0; }
.q-design[open] summary { margin-bottom: .6rem; }
.q-design .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 520px) { .q-design .row2 { grid-template-columns: 1fr; } }

/* admin quote: print time as days / hours / minutes boxes */
.pt-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.pt-row > b { flex: 1 1 100%; overflow-wrap: anywhere; }
.pt-g span, .dhm label span { display: block; font-size: var(--step--1); color: var(--muted, inherit); }
.pt-g input { width: 6rem; }
.dhm { display: inline-flex; gap: .5rem; }
.dhm input { width: 4.2rem; }

/* blocked states picker */
.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .4rem; margin-top: .6rem; }
.state-grid .chip { display: flex; }
.state-grid .chip span { width: 100%; display: flex; justify-content: space-between; gap: .5rem; }

/* shipping weight table dialog */
.wt-table { width: 100%; border-collapse: collapse; }
.wt-table th { text-align: left; font-size: var(--step--1); padding: .3rem .4rem; }
.wt-table td { padding: .25rem .4rem; vertical-align: middle; }

/* admin quote page: the price builder sits full width; keep its parts table and form tidy */
#qcalc .table-wrap { overflow-x: auto; }
#qcalc td { vertical-align: middle; }
#qcalc .form-grid { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
@media (max-width: 62rem) { #qcalc .split.side { grid-template-columns: minmax(0, 1fr) !important; } #qcalc aside .panel { position: static !important; } }

/* print time row: every box has its label underneath, so the boxes line up */
.pt-row { align-items: flex-start; }
.pt-g { display: inline-flex; flex-direction: column-reverse; gap: .1rem; }
.pt-g input { width: 7rem; }

#pw_rows td:nth-child(n+2) { white-space: nowrap; }
#pw_rows td:first-child { overflow-wrap: anywhere; }

/* Used / Added / Set what is left box (spools and parts) */
.use-modes { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.use-amt { display: flex; align-items: center; gap: .6rem; }
.use-amt input { max-width: 12rem; font-size: 1.25rem; font-family: var(--font-display); }
.use-say { margin: .5rem 0 0; font-size: 1rem; color: var(--ink); }
.use-say.bad { color: #ffb36b; }
.use-say .warn-t { color: #ffb36b; font-size: .9rem; }

/* Add / edit spool */
.spf { display: grid; gap: 1rem; }
.spf-sec { margin: 0; padding: .9rem 1rem .4rem; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.spf-sec > legend, .spf-more > summary { padding: 0 .4rem; font-family: var(--font-display); font-weight: 700; }
.spf-more { padding-bottom: .9rem; }
.spf-more > summary { cursor: pointer; padding: .1rem 0; }
.spf-more[open] > summary { margin-bottom: .8rem; }
.spf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 0 1rem; }
.spf-color { grid-column: 1 / -1; }
.spf-colorrow { display: flex; gap: .6rem; align-items: stretch; }
.spf-colorrow input[type=color] { flex: none; width: 3.2rem; min-height: 46px; padding: 3px; border: 2px solid var(--line); border-radius: 6px; background: var(--plate-deep); cursor: pointer; }
.spf-colorrow input[type=color].none { background: repeating-linear-gradient(45deg, var(--plate-deep) 0 6px, var(--line) 6px 8px); }
.spf-colorrow input[type=color].none::-webkit-color-swatch { opacity: 0; }
.spf-inline { display: flex; align-items: center; gap: .5rem; margin-top: .5rem; }
.spf-inline input { max-width: 9rem; }
.field .spf-inline:first-of-type { margin-top: 0; }
.spf-check { display: inline-flex; }
.spf-left { margin: 0 0 1rem; }
.spf .chips { display: flex; flex-wrap: wrap; gap: .4rem; }
@media (max-width: 34rem) { .dt-row { grid-template-columns: 1fr; } .dt-row input[type=time] { max-width: 12rem; } }

/* ---- account: points and tiers ---- */
.rw-hero { display: grid; grid-template-columns: 1fr 1fr; background: linear-gradient(135deg, rgba(76, 141, 255, .16), rgba(76, 141, 255, .03) 60%), var(--plate); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.rw-side { padding: 1.4rem 1.5rem; min-width: 0; }
.rw-tier { border-left: 1px solid var(--line); }
.rw-k { display: block; font-family: var(--font-display); font-size: .85rem; color: var(--muted); letter-spacing: .02em; }
.rw-big { display: block; font-family: var(--font-display); font-size: var(--step-3); line-height: 1.05; margin: .15rem 0 .2rem; color: var(--ink); }
.rw-sub { margin: 0; color: var(--muted); }
.rw-sub b { color: var(--ink); }
.rw-hint { margin: .5rem 0 0; font-size: var(--step--1); color: var(--muted); }
.rw-hint b { color: var(--ink); }
.rw-cash { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.rw-cash label { display: block; font-family: var(--font-display); font-size: .85rem; margin-bottom: .35rem; }
.rw-cash-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.rw-cash-row input { width: 7.5rem; flex: 0 0 auto; }
.rw-pill { display: inline-flex; align-items: center; gap: .4rem; margin: .45rem 0 .5rem; padding: .3rem .8rem; border-radius: 999px; background: rgba(255, 193, 90, .14); border: 1px solid rgba(255, 193, 90, .45); color: var(--star); font-family: var(--font-display); font-size: var(--step-1); font-weight: 700; }
.rw-next { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.rw-bar { height: .55rem; border-radius: 999px; background: var(--plate-deep); border: 1px solid var(--line); overflow: hidden; margin-top: .5rem; }
.rw-bar span { display: block; height: 100%; min-width: .4rem; border-radius: inherit; background: linear-gradient(90deg, var(--accent-fill), var(--accent-hi)); }
.rw-sec { margin-top: 1rem; }
.rw-sec h2 { font-size: 1.1rem; margin: 0 0 .9rem; }
.rw-ladder { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 1rem; position: relative; }
.rw-ladder::before { content: ""; position: absolute; top: .8rem; left: .8rem; right: .8rem; height: 2px; background: var(--line); }
.rw-step { position: relative; display: flex; flex-direction: column; gap: .6rem; }
.rw-step b { font-family: var(--font-display); font-size: 1.05rem; display: block; }
.rw-from { display: block; font-size: var(--step--1); color: var(--muted); }
.rw-step p { margin: .35rem 0 0; font-size: var(--step--1); }
.rw-dot { position: relative; z-index: 1; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--plate-deep); border: 2px solid var(--line); color: var(--ink); }
.rw-step.done .rw-dot { background: var(--accent-fill); border-color: var(--accent-fill); }
.rw-step.here .rw-dot { background: var(--star); border-color: var(--star); color: #1a1405; box-shadow: 0 0 0 4px rgba(255, 193, 90, .18); }
.rw-step.next { color: var(--muted); }
.rw-step.next b { color: var(--ink); opacity: .85; }
.rw-you { display: inline-block; margin-left: .35rem; padding: .05rem .45rem; border-radius: 999px; background: rgba(255, 193, 90, .14); color: var(--star); font-size: .72rem; font-weight: 600; vertical-align: middle; }
.rw-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.rw-cols .rw-sec { margin-top: 1rem; }
.rw-list, .rw-acts { list-style: none; margin: 0; padding: 0; }
.rw-list li, .rw-acts li { display: flex; align-items: center; gap: .8rem; padding: .65rem 0; border-top: 1px solid var(--line); }
.rw-list li:first-child, .rw-acts li:first-child { border-top: 0; padding-top: 0; }
.rw-list li > div, .rw-acts li > div { flex: 1; min-width: 0; }
.rw-list b, .rw-acts b { display: block; font-family: var(--font-display); font-weight: 600; font-size: .98rem; }
.rw-list li > div > span, .rw-acts li > div > span { display: block; font-size: var(--step--1); color: var(--muted); }
.rw-list em, .rw-acts em { font-style: normal; font-family: var(--font-display); font-weight: 700; white-space: nowrap; }
.rw-list em { color: var(--accent-hi); }
.rw-ic { flex: 0 0 auto; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: rgba(76, 141, 255, .14); color: var(--accent-hi); }
.rw-acts em.up { color: var(--ok); }
.rw-acts em.down { color: var(--muted); }
.rw-ic .ic, .rw-dot .ic, .rw-pill .ic { vertical-align: 0; display: block; }
@media (max-width: 52rem) {
  .rw-hero, .rw-cols { grid-template-columns: 1fr; }
  .rw-tier { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 34rem) {
  .rw-side { padding: 1.1rem 1rem; }
  .rw-ladder { grid-template-columns: 1fr; gap: 1.1rem; }
  .rw-ladder::before { top: .8rem; bottom: .8rem; left: .75rem; right: auto; width: 2px; height: auto; }
  .rw-step { flex-direction: row; align-items: flex-start; gap: .8rem; }
  .rw-dot { flex: 0 0 auto; }
}

/* ---- account area: shared look (dashboard, orders, gift cards, referrals, empty states) ---- */
.rw-pill.sm { font-size: .85rem; padding: .2rem .65rem; margin: 0 0 .6rem; }
.dash-hero { grid-template-columns: 1fr auto; align-items: center; }
.dash-hero h1 { margin: 0 0 .35rem; font-size: var(--step-2); }
.dash-hero .row-actions { margin-top: 1.1rem; }
.dash-ring { display: grid; justify-items: center; gap: .3rem; padding: 1.4rem 1.8rem; text-decoration: none; color: var(--ink); text-align: center; }
.dash-ring span { font-size: var(--step--1); color: var(--muted); max-width: 11rem; }
.dash-ring span b { color: var(--ink); }
.dash-ring:hover svg { transform: scale(1.03); }
.dash-ring svg { transition: transform .2s ease; }
.acc-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-top: 1rem; }
.acc-tile { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem; background: var(--plate); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); transition: border-color .15s ease, transform .15s ease; min-width: 0; }
.acc-tile:hover { border-color: var(--accent); transform: translateY(-1px); }
.acc-tile > div { min-width: 0; }
.acc-tile span:not(.rw-ic) { display: block; font-family: var(--font-display); font-size: .85rem; color: var(--muted); }
.acc-tile b { display: block; font-family: var(--font-display); font-size: var(--step-1); line-height: 1.2; }
.acc-tile small { display: block; font-size: .8rem; color: var(--muted); }
.acc-h2 { font-size: 1.25rem; margin: 2rem 0 .8rem; }
.acc-order { margin-bottom: .8rem; }
.acc-todo .btn { flex: 0 0 auto; }
.rw-acts .rw-ic { width: 2rem; height: 2rem; }
.rw-acts a { color: inherit; }
.rw-acts b a { text-decoration: none; }
.rw-acts b a:hover { text-decoration: underline; color: var(--accent-hi); }
.acc-orders li { flex-wrap: wrap; }
.acc-amt { min-width: 5rem; text-align: right; }
.gc-code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace !important; letter-spacing: .03em; }
.gc-bar { max-width: 14rem; height: .4rem; margin-top: .45rem; }
.gc-bal { text-align: right; }
.gc-bal small { display: block; font-size: .8rem; color: var(--muted); }
.gc-list li.off { opacity: .65; }
.ref-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; align-content: center; text-align: center; }
.ref-nums b { display: block; font-family: var(--font-display); font-size: var(--step-2); line-height: 1.1; }
.ref-nums span { font-size: var(--step--1); color: var(--muted); }
.shell .empty { border: 1px dashed var(--line); border-radius: 12px; background: linear-gradient(135deg, rgba(76, 141, 255, .08), transparent 70%), var(--plate); padding: 2.2rem 1.25rem; margin-top: 0; }
.shell .empty h3 { font-size: 1.15rem; margin: 0 0 .35rem; }
.shell .empty p { margin: 0 auto; max-width: 30rem; }
.shell .empty .btn { margin-top: 1.1rem; }
@media (max-width: 60rem) { .acc-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 52rem) {
  .dash-hero { grid-template-columns: 1fr; }
  .dash-ring { grid-auto-flow: column; justify-content: start; align-items: center; gap: 1rem; padding: 1rem 1.5rem 1.4rem; text-align: left; border-top: 1px solid var(--line); }
  .dash-ring svg { width: 80px; height: 80px; }
}
@media (max-width: 34rem) {
  .acc-tile { padding: .8rem; gap: .55rem; }
  .acc-tile .rw-ic { width: 1.9rem; height: 1.9rem; }
  .acc-orders .badge { order: 3; margin-left: 2.8rem; }
  .gc-list li { flex-wrap: wrap; }
}

.rw-acts em.when { font-family: var(--font-body); font-weight: 400; font-size: var(--step--1); color: var(--muted); }

/* ---- admin order page ---- */
.od-strip { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding: 1rem 1.25rem; margin-bottom: 1rem; background: linear-gradient(135deg, rgba(76, 141, 255, .12), rgba(76, 141, 255, .02) 60%), var(--plate); }
.od-strip-track { flex: 1 1 26rem; min-width: 0; }
.od-strip-track .tracker, .od-strip-track > div { margin: 0; }
.od-strip-go { display: grid; gap: .3rem; justify-items: end; }
.od-closed { margin: 0; display: flex; gap: .5rem; align-items: center; color: var(--bad); font-family: var(--font-display); }
.od-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(17rem, 1fr); gap: 1rem; align-items: start; }
.od-main, .od-side { display: grid; gap: 1rem; min-width: 0; }
.od-card { padding: 1.1rem 1.25rem; }
.od-card > header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .8rem; }
.od-card > header h2 { font-size: 1.05rem; margin: 0; }
.od-items, .od-list, .od-notes, .od-tl { list-style: none; margin: 0; padding: 0; }
.od-items li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: .9rem; align-items: center; padding: .7rem 0; border-top: 1px solid var(--line); }
.od-items li:first-child { border-top: 0; padding-top: 0; }
.od-thumb { width: 2.6rem; height: 2.6rem; border-radius: 8px; display: grid; place-items: center; background: var(--plate-deep); border: 1px solid var(--line); color: var(--accent-hi); }
.od-thumb .ic, .od-ic .ic { display: block; vertical-align: 0; }
.od-item b { display: block; font-family: var(--font-display); font-weight: 600; }
.od-item span { display: block; font-size: var(--step--1); color: var(--muted); }
.od-qty { color: var(--muted); font-size: var(--step--1); white-space: nowrap; }
.od-line { font-family: var(--font-display); white-space: nowrap; min-width: 4.5rem; text-align: right; }
.od-sum { margin-top: .6rem; padding-top: .7rem; border-top: 1px solid var(--line); display: grid; gap: .3rem; margin-left: auto; max-width: 22rem; }
.od-sum-row { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--step--1); color: var(--muted); }
.od-sum-row b { color: var(--ink); font-weight: 600; }
.od-sum-row.od-total { margin-top: .3rem; padding-top: .5rem; border-top: 1px solid var(--line); font-size: 1.05rem; color: var(--ink); font-family: var(--font-display); }
.od-sum-row.od-total b { font-size: 1.25rem; }
.od-sum-row.od-due b { color: var(--warn); }
.od-list li { display: flex; align-items: center; gap: .75rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.od-list li:first-child { border-top: 0; padding-top: 0; }
.od-list li > div { flex: 1; min-width: 0; }
.od-list li > div b { display: block; font-family: var(--font-display); font-weight: 600; font-size: .95rem; }
.od-list li > div span { display: block; font-size: var(--step--1); color: var(--muted); }
.od-ic { flex: 0 0 auto; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: rgba(76, 141, 255, .14); color: var(--accent-hi); }
.od-ic.bad { background: rgba(255, 156, 143, .14); color: var(--bad); }
.od-neg { color: var(--bad); }
.od-mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace !important; letter-spacing: .02em; word-break: break-all; }
.od-x { color: var(--muted); }
.od-x:hover { color: var(--bad); }
.od-form { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.od-form h3 { font-size: .95rem; margin: 0 0 .5rem; }
.od-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.od-row input[inputmode=decimal] { width: 8rem; }
.od-danger { margin-top: 1rem; border: 1px solid rgba(255, 156, 143, .35); border-radius: 8px; padding: .6rem .8rem; }
.od-danger summary { cursor: pointer; color: var(--bad); font-family: var(--font-display); font-size: .9rem; }
.od-danger[open] summary { margin-bottom: .6rem; }
.od-tl li { position: relative; display: flex; gap: .8rem; padding: 0 0 .9rem; }
.od-tl li::before { content: ""; position: absolute; left: .38rem; top: .9rem; bottom: 0; width: 2px; background: var(--line); }
.od-tl li:last-child::before { display: none; }
.od-tl-dot { flex: 0 0 auto; width: .8rem; height: .8rem; margin-top: .3rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(76, 141, 255, .2); }
.od-tl li:not(:first-child) .od-tl-dot { background: var(--plate-deep); border: 2px solid var(--line); box-shadow: none; }
.od-tl b { display: block; font-family: var(--font-display); font-weight: 600; font-size: .95rem; }
.od-tl span { display: block; font-size: var(--step--1); color: var(--muted); }
.od-tl p { margin: .25rem 0 0; font-size: var(--step--1); }
.od-who { display: flex; gap: .8rem; align-items: center; }
.od-who > div { min-width: 0; display: grid; }
.od-who b { font-family: var(--font-display); }
.od-who a { font-size: var(--step--1); overflow-wrap: anywhere; }
.od-avatar { flex: 0 0 auto; width: 2.8rem; height: 2.8rem; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-fill), var(--accent-hi)); color: #fff; font-family: var(--font-display); font-weight: 700; }
.od-addr { font-style: normal; line-height: 1.55; }
.od-note { margin-top: .8rem; padding: .7rem .8rem; border-radius: 8px; background: rgba(255, 193, 90, .08); border: 1px solid rgba(255, 193, 90, .3); }
.od-note span { display: block; font-size: .8rem; font-family: var(--font-display); color: var(--warn); margin-bottom: .2rem; }
.od-note p { margin: 0; white-space: pre-wrap; }
.od-notes li { padding: .6rem .75rem; margin-bottom: .5rem; border-radius: 8px; background: var(--plate-deep); border: 1px solid var(--line); }
.od-notes p { margin: 0; white-space: pre-wrap; }
.od-notes span { display: block; margin-top: .25rem; font-size: .8rem; color: var(--muted); }
.od-side textarea { width: 100%; }
@media (max-width: 64rem) { .od-grid { grid-template-columns: 1fr; } }
@media (max-width: 34rem) {
  .od-items li { grid-template-columns: auto minmax(0, 1fr) auto; }
  .od-qty { grid-column: 2; grid-row: 2; }
  .od-strip-go { justify-items: start; }
}
.od-check { display: flex; align-items: center; gap: .5rem; font-size: var(--step--1); cursor: pointer; margin-top: .2rem; }
.od-check input { width: 1.05rem; height: 1.05rem; accent-color: var(--accent); }

/* ---- admin: search dropdown (customers, products) ---- */
.cbx { position: fixed; z-index: 1000; overflow: auto; padding: .35rem; background: var(--plate); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.cbx-opt { display: flex; align-items: center; gap: .7rem; padding: .5rem .6rem; border-radius: 7px; cursor: pointer; }
.cbx-opt[aria-selected="true"] { background: rgba(76, 141, 255, .16); }
.cbx-opt:hover { background: rgba(76, 141, 255, .1); }
.cbx-main { flex: 1; min-width: 0; display: grid; }
.cbx-main b { font-family: var(--font-display); font-weight: 600; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cbx-main span { font-size: .82rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cbx-meta { flex: 0 0 auto; text-align: right; font-size: .8rem; color: var(--muted); line-height: 1.35; }
.cbx-meta b { font-family: var(--font-display); color: var(--ink); font-size: .95rem; }
.cbx mark, .cbx-main mark { background: rgba(255, 193, 90, .25); color: inherit; border-radius: 2px; padding: 0 1px; }
.cbx-av { flex: 0 0 auto; width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-fill), var(--accent-hi)); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .8rem; }
.cbx-th { flex: 0 0 auto; width: 2.6rem; height: 2.6rem; border-radius: 6px; overflow: hidden; display: grid; place-items: center; background: var(--plate-deep); border: 1px solid var(--line); color: var(--muted); }
.cbx-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cbx-th .ic { display: block; vertical-align: 0; }
.cbx-empty { padding: .7rem .8rem; font-size: .9rem; color: var(--muted); }
.cbx-picked { display: flex; align-items: center; gap: .75rem; padding: .7rem .8rem; border: 1px solid var(--accent); border-radius: 10px; background: rgba(76, 141, 255, .08); margin: .2rem 0 .6rem; }
.cbx-picked > div { flex: 1; min-width: 0; display: grid; }
.cbx-picked b { font-family: var(--font-display); }
.cbx-picked span:not(.cbx-av) { font-size: .85rem; color: var(--muted); overflow-wrap: anywhere; }
.cbx-hide > label, .cbx-hide > input { display: none; }
table.no-items { table-layout: fixed; width: 100%; min-width: 34rem; }
table.no-items th:nth-child(1) { width: 36%; } table.no-items th:nth-child(2) { width: 11%; } table.no-items th:nth-child(3) { width: 15%; }
table.no-items th:nth-child(4) { width: 18%; } table.no-items th:nth-child(5) { width: 12%; } table.no-items th:nth-child(6) { width: 8%; }
table.no-items td, table.no-items th { padding-left: .4rem; padding-right: .4rem; }
table.no-items td input, table.no-items td select { width: 100% !important; min-width: 0 !important; }
table.no-items .lsum { white-space: nowrap; text-align: right; font-family: var(--font-display); }
table.no-items td { vertical-align: top; }

/* ---- admin quote page ---- */
.qe-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding: 1rem 1.25rem; margin-bottom: 1.25rem; background: linear-gradient(135deg, rgba(76, 141, 255, .12), rgba(76, 141, 255, .02) 60%), var(--plate); }
.qe-strip .od-who { flex: 1 1 16rem; }
.qe-fig { display: grid; }
.qe-fig span { font-size: .8rem; color: var(--muted); font-family: var(--font-display); }
.qe-fig b { font-family: var(--font-display); font-size: 1.15rem; }
.qe-fig small { font-size: .75rem; color: var(--muted); font-weight: 400; }
table.ql-lines { table-layout: fixed; width: 100%; }
table.ql-lines th:nth-child(1) { width: 42%; } table.ql-lines th:nth-child(2) { width: 14%; } table.ql-lines th:nth-child(3) { width: 20%; } table.ql-lines th:nth-child(4) { width: 16%; } table.ql-lines th:nth-child(5) { width: 8%; }
table.ql-lines td, table.ql-lines th { padding-left: .35rem; padding-right: .35rem; }
table.ql-lines td input { width: 100% !important; min-width: 0 !important; }
.qc-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .4rem; }
#qcalc.qc-closed > :not(.qc-head) { display: none; }
#qcalc.qc-closed .qc-head { margin: 0; }

/* ---- admin product page: sections inside the form, organize card on the side ---- */
#pf .pe-sec { padding: 1.2rem 0 1.2rem; border-top: 1px solid var(--line); }
#pf .pe-sec:first-child { border-top: 0; padding-top: 0; }
#pf .pe-sec h3 { font-size: 1.05rem; margin: 0 0 .25rem; }
#pf .pe-sec > .hint { margin: 0 0 .7rem; }
#pf .pe-sec > .form-grid { margin-top: .5rem; }
#pf .pe-sec > label.chip { display: inline-flex; margin: .3rem 0 .2rem; }
#pf .pe-wide { margin-top: .8rem; }
#pf .pe-foot { display: flex; gap: .5rem; flex-wrap: wrap; margin: .4rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.pe-side .pe-status { margin: .2rem 0 .9rem; }
.pe-org { margin-top: 1rem; }
.pe-org .pe-cats { margin: 0 0 1rem; }
.pe-org .pe-cats legend, .pe-lbl { display: block; font-family: var(--font-display); font-size: .85rem; color: var(--muted); margin-bottom: .45rem; }
.pe-org .chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.pe-flags { display: grid; gap: .45rem; justify-items: start; }
.pe-flags label.chip { display: inline-flex; }

/* ---- admin categories ---- */
.cat-grid { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 1rem; align-items: start; margin-top: 1rem; }
.cat-panel { padding: .4rem .5rem; }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-row { display: flex; align-items: center; gap: .9rem; padding: .65rem .7rem; border-top: 1px solid var(--line); border-radius: 8px; transition: background .3s ease; }
.cat-row:first-child { border-top: 0; }
.cat-row.editing { background: rgba(76, 141, 255, .1); box-shadow: inset 3px 0 0 var(--accent); }
.cat-row.moved { background: rgba(76, 141, 255, .16); }
.cat-row.off .cat-main b { color: var(--muted); }
.cat-move { display: flex; flex-direction: column; gap: 0; }
.cat-move .btn { padding: .05rem .35rem; min-height: 0; line-height: 1; }
.cat-move .btn[disabled] { opacity: .25; }
.cat-move .ic, .cat-act .ic { display: block; vertical-align: 0; margin: 0; }
.cat-num { width: 1.6rem; text-align: center; color: var(--muted); }
.cat-main { flex: 1; min-width: 0; display: grid; }
.cat-main b { font-family: var(--font-display); font-weight: 600; }
.cat-main span { font-size: var(--step--1); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-count { font-size: .8rem; padding: .15rem .6rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); white-space: nowrap; }
.cat-count.none { color: var(--muted); }
.cat-vis { display: flex; align-items: center; gap: .5rem; cursor: pointer; min-width: 6.4rem; }
.cat-vis-l { font-size: var(--step--1); color: var(--muted); }
.cat-act { display: flex; gap: .15rem; }
.cat-form { position: sticky; top: 1rem; }
.cat-form h2 { font-size: 1.1rem; margin: 0 0 .7rem; }
.cat-form textarea { width: 100%; }
@media (max-width: 60rem) { .cat-grid { grid-template-columns: 1fr; } .cat-form { position: static; } }
@media (max-width: 34rem) { .cat-row { flex-wrap: wrap; } .cat-count { order: 5; } }

/* ---- admin reviews ---- */
.rv-bar { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: center; justify-content: space-between; margin: 1rem 0; }
.rv-n { display: inline-block; min-width: 1.3rem; padding: 0 .35rem; margin-left: .25rem; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: .75rem; }
.rv-search { display: flex; align-items: center; gap: .45rem; padding: 0 .7rem; min-width: min(22rem, 100%); border: 1px solid var(--line); border-radius: 8px; background: var(--plate-deep); color: var(--muted); }
.rv-search input { border: 0; background: transparent; padding: .55rem 0; flex: 1; min-width: 0; box-shadow: none; }
.rv-search input:focus { outline: none; }
.rv-search:focus-within { border-color: var(--accent); }
.rv-bulk { display: flex; align-items: center; gap: 1rem; min-height: 2.4rem; padding: .3rem .8rem; margin-bottom: .7rem; border-radius: 8px; background: var(--plate); border: 1px solid var(--line); position: sticky; top: .5rem; z-index: 5; }
.rv-bulk-acts { display: flex; gap: .4rem; }
.rv-list { display: grid; gap: .8rem; }
.rv-card { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: .9rem; align-items: start; padding: 1rem 1.1rem; border-left: 3px solid transparent; }
.rv-card.st-pending { border-left-color: var(--warn); }
.rv-card.st-rejected { opacity: .75; }
.rv-card.picked { box-shadow: 0 0 0 2px var(--accent); }
.rv-pick { margin-top: .75rem; width: 1.05rem; height: 1.05rem; accent-color: var(--accent); }
.rv-av { width: 2.5rem; height: 2.5rem; font-size: .9rem; }
.rv-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; align-items: center; }
.rv-head b { font-family: var(--font-display); }
.rv-stars .stars { color: var(--star); letter-spacing: .05em; }
.rv-tags { display: flex; gap: .35rem; align-items: center; }
.rv-meta { margin: .15rem 0 .5rem; font-size: var(--step--1); color: var(--muted); }
.rv-title { font-size: 1rem; margin: 0 0 .2rem; }
.rv-text { margin: 0; white-space: pre-wrap; }
.rv-photos { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.rv-ph { position: relative; }
.rv-ph img { width: 4.5rem; height: 4.5rem; object-fit: cover; border-radius: 8px; display: block; border: 1px solid var(--line); }
.rv-phx { position: absolute; top: -.4rem; right: -.4rem; width: 1.4rem; height: 1.4rem; border-radius: 50%; border: 1px solid var(--line); background: var(--plate); color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; }
.rv-phx:hover { background: var(--bad); color: #1a0b09; }
.rv-phx .ic { display: block; vertical-align: 0; }
.rv-reply { margin-top: .7rem; padding: .6rem .8rem; border-left: 3px solid var(--accent); background: rgba(76, 141, 255, .08); border-radius: 0 8px 8px 0; }
.rv-reply span { font-size: .8rem; font-family: var(--font-display); color: var(--accent-hi); }
.rv-reply p { margin: .15rem 0 0; white-space: pre-wrap; }
.rv-foot { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin-top: .9rem; }
.rv-feat { display: inline-flex; align-items: center; gap: .45rem; font-size: var(--step--1); margin-left: .3rem; cursor: pointer; }
.rv-del { margin-left: auto; }
@media (max-width: 34rem) { .rv-card { grid-template-columns: auto minmax(0, 1fr); } .rv-av { display: none; } }

/* ---- admin discount code box ---- */
.dc .hint { margin: .3rem 0 0; }
.dc-code { display: flex; gap: .5rem; }
.dc-code input { flex: 1; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; }
.dc-kinds { border: 0; padding: 0; margin: 1rem 0 .4rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.dc-kinds legend { font-family: var(--font-display); font-size: .9rem; margin-bottom: .45rem; }
.dc-kind { position: relative; cursor: pointer; }
.dc-kind input { position: absolute; opacity: 0; inset: 0; }
.dc-kind > span { display: grid; gap: .15rem; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--plate-deep); height: 100%; box-sizing: border-box; }
.dc-kind i { font-style: normal; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: rgba(76, 141, 255, .14); color: var(--accent-hi); font-family: var(--font-display); font-weight: 700; margin-bottom: .3rem; }
.dc-kind i .ic { display: block; vertical-align: 0; }
.dc-kind b { font-family: var(--font-display); }
.dc-kind small { color: var(--muted); font-size: .8rem; }
.dc-kind input:checked + span { border-color: var(--accent); background: rgba(76, 141, 255, .12); box-shadow: inset 0 0 0 1px var(--accent); }
.dc-kind input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.dc-amt { display: flex; align-items: center; gap: .4rem; max-width: 12rem; }
.dc-amt input { flex: 1; min-width: 0; font-size: 1.2rem; font-family: var(--font-display); }
.dc-amt span { font-family: var(--font-display); font-size: 1.2rem; color: var(--muted); }
.dc-say { display: flex; gap: .5rem; align-items: center; margin: .6rem 0 0; padding: .6rem .8rem; border-radius: 8px; background: rgba(255, 193, 90, .08); border: 1px solid rgba(255, 193, 90, .3); font-size: .95rem; }
.dc-say .ic { color: var(--warn); flex: 0 0 auto; vertical-align: 0; }
.dc-h { font-size: .95rem; margin: 1.2rem 0 .3rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.dc-h span { font-family: var(--font-body); font-weight: 400; font-size: .8rem; color: var(--muted); margin-left: .4rem; }
.dc .od-check { margin: .35rem 0; }
@media (max-width: 34rem) { .dc-kinds { grid-template-columns: 1fr; } }

/* ---- reports and tools: downloads grid ---- */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); gap: .9rem; }
.dl-card { padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .8rem; margin: 0 !important; }
.dl-card header { display: flex; gap: .75rem; align-items: flex-start; }
.dl-card h3 { font-size: 1rem; margin: .1rem 0 .15rem; }
.dl-card header p { margin: 0; font-size: var(--step--1); color: var(--muted); }
.dl-ic { flex: 0 0 auto; width: 2.2rem; height: 2.2rem; border-radius: 9px; display: grid; place-items: center; background: rgba(76, 141, 255, .14); color: var(--accent-hi); }
.dl-ic .ic { display: block; vertical-align: 0; }
.dl-rows { display: grid; gap: .35rem; }
.dl-row { display: flex; align-items: center; gap: .6rem; padding: .5rem .65rem; border-radius: 8px; border: 1px solid var(--line); background: var(--plate-deep); color: var(--ink); text-decoration: none; font-size: .92rem; transition: border-color .15s ease, background .15s ease; }
.dl-row:hover { border-color: var(--accent); background: rgba(76, 141, 255, .08); }
.dl-row span { flex: 1; min-width: 0; }
.dl-row small { color: var(--muted); }
.dl-row em { font-style: normal; font-size: .7rem; font-family: var(--font-display); font-weight: 700; letter-spacing: .04em; padding: .05rem .4rem; border-radius: 4px; background: rgba(255, 255, 255, .08); color: var(--muted); }
.dl-row .ic { color: var(--accent-hi); flex: 0 0 auto; vertical-align: 0; }

/* ---- admin settings: section menu, two-column rows, switches, a save bar that follows you ---- */
.set-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 1.5rem; align-items: start; margin-top: 1rem; }
.set-nav { position: sticky; top: 1rem; display: grid; gap: .8rem; }
.set-search { display: flex; align-items: center; gap: .45rem; padding: 0 .65rem; border: 1px solid var(--line); border-radius: 8px; background: var(--plate-deep); color: var(--muted); }
.set-search input { border: 0; background: transparent; padding: .5rem 0; flex: 1; min-width: 0; box-shadow: none; }
.set-search input:focus { outline: none; }
.set-search:focus-within { border-color: var(--accent); }
.set-nav nav { display: grid; gap: .1rem; }
.set-link { display: flex; align-items: center; gap: .6rem; padding: .45rem .65rem; border-radius: 8px; color: var(--muted); text-decoration: none; font-family: var(--font-display); font-size: .92rem; border-left: 3px solid transparent; }
.set-link:hover { background: rgba(255, 255, 255, .04); color: var(--ink); }
.set-link.on { background: rgba(76, 141, 255, .12); color: var(--ink); border-left-color: var(--accent); }
.set-link .ic { flex: 0 0 auto; vertical-align: 0; }
.set-link.on .ic { color: var(--accent-hi); }
.set-more { display: grid; gap: .2rem; padding: .8rem .65rem 0; border-top: 1px solid var(--line); font-size: .85rem; }
.set-more span { font-family: var(--font-display); color: var(--muted); font-size: .78rem; margin-bottom: .2rem; }
.set-more a { color: var(--muted); }
.set-more a:hover { color: var(--accent-hi); }
.set-main { min-width: 0; }
.set-title { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.set-title h2 { margin: 0; font-size: 1.35rem; }
.set-title p { margin: 0; font-size: var(--step--1); color: var(--muted); }
.set-ic { width: 2.6rem; height: 2.6rem; border-radius: 10px; display: grid; place-items: center; background: rgba(76, 141, 255, .14); color: var(--accent-hi); }
.set-ic .ic { display: block; vertical-align: 0; }
.set-group { padding: 1.1rem 1.3rem .4rem; }
.set-group > h2 { margin: 0 0 .3rem; }
.set-group .field.sf { display: grid; grid-template-columns: minmax(10rem, .85fr) minmax(0, 1.6fr); gap: .15rem 1.6rem; align-items: center; padding: .85rem 0; margin: 0; border-top: 1px solid var(--line); }
.set-group > h2 + .field.sf, .set-group > h2 + .toggle-row > .field.sf:first-child { border-top: 0; }
.set-group .field.sf > label:first-child { grid-column: 1; grid-row: 1; margin: 0; }
.set-group .field.sf > .muted.small { grid-column: 1; grid-row: 2; align-self: start; font-size: .82rem; line-height: 1.45; }
.set-group .field.sf > input, .set-group .field.sf > select, .set-group .field.sf > textarea, .set-group .field.sf > .switch { grid-column: 2; grid-row: 1 / span 2; }
.set-group .field.sf > label.small { grid-column: 2; grid-row: 3; }
.set-group .field.sf.st > .switch { justify-self: end; }
.set-group .toggle-row { display: block; margin: 0; }
.set-group .toggle-row .field.sf { margin: 0; }
.set-group .field:not(.sf) { padding: .85rem 0; margin: 0; border-top: 1px solid var(--line); }
.set-group > h2 + .field:not(.sf) { border-top: 0; }
.set-group .prov .field.sf { display: block; border-top: 0; padding: .3rem 0; }
.set-group .prov .field.sf.st { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.set-save { position: sticky; bottom: .8rem; z-index: 6; display: flex; align-items: center; justify-content: flex-end; gap: .7rem; padding: .7rem 1rem; margin-top: 1rem; border-radius: 12px; border: 1px solid var(--line); background: rgba(15, 27, 51, .92); backdrop-filter: blur(6px); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.set-save.dirty { border-color: var(--warn); }
.set-state { margin-right: auto; font-size: var(--step--1); color: var(--muted); }
.set-state.dirty { color: var(--warn); font-weight: 600; }
@media (max-width: 62rem) {
  .set-layout { grid-template-columns: 1fr; }
  .set-nav { position: static; }
  .set-nav nav { display: flex; overflow-x: auto; gap: .3rem; padding-bottom: .3rem; }
  .set-link { white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; }
  .set-link.on { border-bottom-color: var(--accent); }
  .set-more { display: none; }
}
@media (max-width: 40rem) {
  .set-group .field.sf { grid-template-columns: 1fr; }
  .set-group .field.sf > * { grid-column: 1 !important; grid-row: auto !important; }
  .set-group .field.sf.st { grid-template-columns: 1fr auto; }
  .set-group .field.sf.st > .switch { grid-column: 2 !important; grid-row: 1 / span 2 !important; }
}
.set-group .field.sf > input[inputmode="decimal"] { max-width: 12rem; justify-self: start; }
.set-group .field.sf { align-items: start; }
.set-group .field.sf > label:first-child { padding-top: .6rem; }
.set-group .field.sf.st { align-items: center; }
.set-group .field.sf.st > label:first-child { padding-top: 0; }

/* ---- account: addresses ---- */
.ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .9rem; margin-bottom: 1.2rem; }
.ad-card { display: flex; flex-direction: column; gap: .6rem; padding: 1rem 1.1rem; border-radius: 12px; border: 1px solid var(--line); background: var(--plate); transition: border-color .15s ease; }
.ad-card.def { border-color: rgba(76, 141, 255, .6); background: linear-gradient(135deg, rgba(76, 141, 255, .12), rgba(76, 141, 255, .02) 70%), var(--plate); }
.ad-card.editing { box-shadow: 0 0 0 2px var(--accent); }
.ad-card header { display: flex; align-items: center; gap: .55rem; }
.ad-card header b { font-family: var(--font-display); flex: 1; }
.ad-ic { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: rgba(76, 141, 255, .14); color: var(--accent-hi); }
.ad-ic .ic, .ad-def .ic { display: block; vertical-align: 0; }
.ad-def { display: inline-flex; align-items: center; gap: .25rem; font-size: .75rem; font-family: var(--font-display); font-weight: 600; padding: .15rem .55rem; border-radius: 999px; background: rgba(91, 208, 139, .14); color: var(--ok); }
.ad-card address { font-style: normal; line-height: 1.55; }
.ad-phone { margin: 0; font-size: var(--step--1); color: var(--muted); }
.ad-card footer { display: flex; gap: .4rem; align-items: center; margin-top: auto; padding-top: .5rem; border-top: 1px solid var(--line); }
.ad-rm { margin-left: auto; }
.ad-add { display: grid; place-items: center; align-content: center; gap: .4rem; min-height: 10rem; border-radius: 12px; border: 1px dashed var(--line); background: transparent; color: var(--muted); font-family: var(--font-display); cursor: pointer; transition: border-color .15s ease, color .15s ease; }
.ad-add:hover { border-color: var(--accent); color: var(--accent-hi); }
.ad-add .ic { vertical-align: 0; }
.ad-form h2 { font-size: 1.1rem; margin: 0 0 .9rem; }
.ad-labels { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.ad-labels input { flex: 1; min-width: 10rem; }
.ad-row2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0 1rem; }
.ad-row3 { display: grid; grid-template-columns: 1.6fr .6fr 1fr; gap: 0 1rem; }
@media (max-width: 34rem) { .ad-row2, .ad-row3 { grid-template-columns: 1fr; } }

.rvd-stars { display: flex; align-items: center; gap: .15rem; min-height: 2.6rem; }
.rvd-stars label { position: relative; cursor: pointer; font-size: 1.7rem; line-height: 1; color: var(--line); transition: color .1s ease, transform .1s ease; }
.rvd-stars label.on { color: var(--star); }
.rvd-stars label:hover { transform: scale(1.12); }
.rvd-stars input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rvd-stars input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.rvd-stars b { margin-left: .6rem; font-family: var(--font-display); font-size: .9rem; color: var(--muted); }
.rvd-prod { display: flex; gap: .3rem; align-items: center; }
.rvd-prod input { flex: 1; min-width: 0; }

/* ---- admin new order ---- */
.no-grid { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: 1rem; align-items: start; margin-top: 1rem; }
.no-main { display: grid; gap: 1rem; min-width: 0; }
.no-sec { padding: 1.1rem 1.25rem; }
.no-head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: .9rem; }
.no-head h2 { font-size: 1.1rem; margin: 0; flex: 1; }
.no-step { width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; background: rgba(76, 141, 255, .16); color: var(--accent-hi); font-family: var(--font-display); font-weight: 700; font-size: .9rem; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--plate-deep); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; color: var(--muted); font-family: var(--font-display); font-weight: 600; font-size: .85rem; padding: .35rem .8rem; border-radius: 7px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--accent-fill); color: #fff; }
.seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.no-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.no-row3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 0 1rem; }
.no-row2 > [hidden], .no-row3 > [hidden] { display: none; }
.no-inline { display: flex; gap: .4rem; }
.no-inline input { flex: 1; min-width: 0; }
.no-more { margin-top: .6rem; border-top: 1px solid var(--line); padding-top: .7rem; }
.no-more summary { cursor: pointer; font-family: var(--font-display); font-size: .9rem; color: var(--accent-hi); }
.no-more[open] summary { margin-bottom: .6rem; }
.no-pickup { display: flex; gap: .5rem; align-items: center; margin: 0; }
.no-notes summary { display: flex; align-items: center; gap: .6rem; cursor: pointer; list-style: none; }
.no-notes summary::-webkit-details-marker { display: none; }
.no-notes summary h2 { font-size: 1.1rem; margin: 0; }
.no-notes[open] summary { margin-bottom: .8rem; }
.no-side { position: sticky; top: 1rem; }
.no-sum h2 { font-size: 1.1rem; margin: 0 0 .6rem; }
.no-details { margin: .9rem 0 .4rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.no-details .field { margin-bottom: .6rem; }
.no-details label { font-size: .8rem; }
.no-sum .od-check { margin: .3rem 0 .8rem; }
.no-create { width: 100%; justify-content: center; }
.no-cancel { width: 100%; justify-content: center; margin-top: .4rem; text-align: center; }
#cqr:empty { display: none; }
@media (max-width: 64rem) { .no-grid { grid-template-columns: 1fr; } .no-side { position: static; } }
@media (max-width: 40rem) { .no-row2, .no-row3 { grid-template-columns: 1fr; } }
#nodisc .row-actions { grid-column: 1 / -1; margin-top: 0 !important; }

/* ---- admin project editor ---- */
dialog.xwide { width: min(70rem, 96vw); max-width: 96vw; }
.pj-ed2 { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(16rem, 1fr); gap: 1.4rem; align-items: start; }
.pj-ed2 > .notice { grid-column: 1 / -1; }
.pj-left { display: grid; gap: .2rem; min-width: 0; }
.pj-name { font-size: 1.25rem; font-family: var(--font-display); font-weight: 600; }
.pj-pics { margin: .6rem 0 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--plate-deep); }
.pj-sh { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.pj-sh h3, .pj-card h3 { font-size: 1rem; margin: 0; }
.pj-right { display: grid; gap: .8rem; position: sticky; top: 0; }
.pj-card { padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--plate-deep); }
.pj-card h3 { margin-bottom: .6rem; }
.pj-card .field { margin-bottom: .6rem; }
.pj-card .field:last-child { margin-bottom: 0; }
.pj-seg { width: 100%; }
.pj-seg button { flex: 1; }
.pj-card #pj_stn { margin: .4rem 0 .7rem; }
.pj-sw { display: flex; align-items: center; gap: .6rem; cursor: pointer; font-size: var(--step--1); margin-bottom: .8rem; }
.pj-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .7rem; }
@media (max-width: 52rem) { .pj-ed2 { grid-template-columns: 1fr; } .pj-right { position: static; } }

/* ---- public portfolio and project pages ---- */
.pf-hero { padding: 3rem 0 2rem; background: radial-gradient(80% 120% at 0% 0%, rgba(76, 141, 255, .18), transparent 60%); border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.pf-hero h1 { margin: .3rem 0 .6rem; font-size: var(--step-3); }
.pf-hero p { max-width: 40rem; color: var(--muted); font-size: var(--step-0); }
.pf-hero .row-actions { margin-top: 1.2rem; }
.pf-count { margin-top: 1rem !important; font-size: var(--step--1) !important; }
.pf-eyebrow { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-hi); }
.pf-eyebrow .ic { vertical-align: 0; }
.pf-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; align-items: center; margin-bottom: 1.2rem; }
.pf-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.pf-search { display: flex; align-items: center; gap: .45rem; padding: 0 .7rem; border: 1px solid var(--line); border-radius: 999px; background: var(--plate-deep); color: var(--muted); min-width: min(18rem, 100%); }
.pf-search input { border: 0; background: transparent; padding: .5rem 0; flex: 1; min-width: 0; box-shadow: none; }
.pf-search input:focus { outline: none; }
.pf-search:focus-within { border-color: var(--accent); }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.1rem; }
.pf-card { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--plate); color: var(--ink); text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.pf-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 14px 30px rgba(0, 0, 0, .35); }
.pf-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--plate-deep); }
.pf-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.pf-card:hover .pf-img img, .pf-feature:hover .pf-img img { transform: scale(1.04); }
.pf-noimg { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); }
.pf-cat, .pf-n { position: absolute; top: .7rem; padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; font-family: var(--font-display); font-weight: 600; background: rgba(4, 10, 21, .78); color: #fff; backdrop-filter: blur(4px); }
.pf-cat { left: .7rem; }
.pf-n { right: .7rem; display: inline-flex; align-items: center; gap: .25rem; }
.pf-n .ic { vertical-align: 0; }
.pf-body { padding: .9rem 1rem 1.1rem; display: grid; gap: .3rem; }
.pf-body h3 { margin: 0; font-size: 1.1rem; }
.pf-body p { margin: 0; color: var(--muted); font-size: var(--step--1); }
.pf-meta { font-size: .8rem; color: var(--accent-hi); font-family: var(--font-display); }
.pf-feature { display: grid; grid-template-columns: 1.3fr 1fr; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(76, 141, 255, .14), rgba(76, 141, 255, .02) 60%), var(--plate); color: var(--ink); text-decoration: none; margin-bottom: 1.4rem; transition: border-color .2s ease; }
.pf-feature:hover { border-color: var(--accent); }
.pf-feature .pf-img { aspect-ratio: auto; min-height: 20rem; }
.pf-fbody { padding: 2rem; display: flex; flex-direction: column; justify-content: center; gap: .7rem; }
.pf-fbody h2 { margin: 0; font-size: var(--step-2); }
.pf-fbody p { margin: 0; color: var(--muted); }
.pf-specs { display: flex; flex-wrap: wrap; gap: .4rem; }
.pf-specs span { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .6rem; border-radius: 999px; border: 1px solid var(--line); font-size: .8rem; }
.pf-specs .ic { color: var(--accent-hi); vertical-align: 0; }
.pf-go { display: inline-flex; align-items: center; gap: .3rem; font-family: var(--font-display); font-weight: 700; color: var(--accent-hi); margin-top: .4rem; }
.pf-go .ic { vertical-align: 0; transition: transform .2s ease; }
.pf-feature:hover .pf-go .ic { transform: translateX(3px); }
.pf-cta { margin-top: 3rem; padding: 2.2rem 0; background: var(--deep); border-top: 1px solid var(--line); }
.pf-cta .container { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.pf-cta h2 { margin: 0 0 .3rem; font-size: var(--step-1); }
.pf-cta p { margin: 0; color: var(--muted); max-width: 36rem; }
.pj-head { margin: .6rem 0 1.4rem; }
.pj-head h1 { margin: .25rem 0 .4rem; font-size: var(--step-3); }
.pj-lead { font-size: var(--step-0); color: var(--muted); max-width: 46rem; margin: 0; }
.pj-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.pj-tags span { font-size: .8rem; padding: .15rem .55rem; border-radius: 999px; background: rgba(76, 141, 255, .12); color: var(--accent-hi); }
.pj-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 1fr); gap: 1.6rem; align-items: start; }
.pj-main { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--plate-deep); aspect-ratio: 4 / 3; }
.pj-main.pf-noimg { display: grid; place-items: center; }
.pj-zoom { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.pj-zoom img { width: 100%; height: 100%; object-fit: contain; display: block; background: #0a0f1a; }
.pj-zoom:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.pj-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(4, 10, 21, .7); color: #fff; display: grid; place-items: center; cursor: pointer; }
.pj-nav:hover { background: var(--accent-fill); }
.pj-nav .ic { vertical-align: 0; display: block; }
.pj-nav.prev { left: .7rem; } .pj-nav.next { right: .7rem; }
.pj-count { position: absolute; bottom: .7rem; right: .7rem; padding: .15rem .55rem; border-radius: 999px; background: rgba(4, 10, 21, .75); color: #fff; font-size: .78rem; font-family: var(--font-display); }
.pj-cap { margin: .5rem 0 0; font-size: var(--step--1); color: var(--muted); }
.pj-thumbs { display: flex; gap: .5rem; margin-top: .7rem; overflow-x: auto; padding-bottom: .2rem; }
.pj-thumbs button { flex: 0 0 auto; width: 4.6rem; height: 4.6rem; padding: 0; border-radius: 9px; overflow: hidden; border: 2px solid transparent; background: none; cursor: pointer; opacity: .7; }
.pj-thumbs button[aria-current="true"] { border-color: var(--accent); opacity: 1; }
.pj-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pj-side { display: grid; gap: 1rem; position: sticky; top: 1rem; }
.pj-specs { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; padding: 1.1rem; border-radius: 14px; border: 1px solid var(--line); background: var(--plate); }
.pj-specs > div { display: flex; gap: .6rem; align-items: center; }
.pj-si { width: 2.2rem; height: 2.2rem; border-radius: 9px; display: grid; place-items: center; background: rgba(76, 141, 255, .14); color: var(--accent-hi); flex: 0 0 auto; }
.pj-si .ic { display: block; vertical-align: 0; }
.pj-specs small { display: block; font-size: .75rem; color: var(--muted); font-family: var(--font-display); }
.pj-specs b { display: block; font-family: var(--font-display); font-size: .95rem; }
.pj-want { padding: 1.3rem; border-radius: 14px; border: 1px solid rgba(76, 141, 255, .5); background: linear-gradient(135deg, rgba(76, 141, 255, .18), rgba(76, 141, 255, .04)); display: grid; gap: .6rem; }
.pj-want h2 { margin: 0; font-size: 1.2rem; }
.pj-want p { margin: 0; color: var(--muted); font-size: var(--step--1); }
.pj-want .btn { justify-content: center; }
.pj-story { margin-top: 2.5rem; max-width: 48rem; }
.pj-story h2, .pj-more h2, .pj-comments h2 { font-size: var(--step-1); margin: 0 0 .8rem; }
.pj-quote { margin: 2.5rem 0 0; padding: 1.6rem 1.8rem; border-radius: 14px; background: var(--plate); border: 1px solid var(--line); border-left: 4px solid var(--star); max-width: 48rem; }
.pj-quote blockquote { margin: 0; font-size: var(--step-1); line-height: 1.5; font-style: italic; }
.pj-quote blockquote::before { content: "\201C"; color: var(--star); font-size: 2.4rem; line-height: 0; vertical-align: -.45em; margin-right: .2rem; font-style: normal; }
.pj-quote figcaption { margin-top: .7rem; font-family: var(--font-display); color: var(--muted); }
.pj-quote figcaption::before { content: "— "; }
.pj-more { margin-top: 3rem; }
.pj-more-h { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.pj-comments { margin-top: 3rem; max-width: 48rem; }
.pjc { display: flex; gap: .75rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.pjc.reply { margin-left: 2.6rem; }
.pjc p { margin: .2rem 0 .3rem; white-space: pre-wrap; }
.pjc-av { flex: 0 0 auto; width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-fill), var(--accent-hi)); color: #fff; font-family: var(--font-display); font-weight: 700; }
.pjc-form { margin-top: 1rem; display: grid; gap: .6rem; justify-items: start; }
.pjc-form textarea { width: 100%; }
.pj-lb { position: relative; display: grid; place-items: center; background: #05080f; border-radius: 10px; }
.pj-lb img { max-width: 100%; max-height: 78vh; object-fit: contain; display: block; }
@media (max-width: 56rem) { .pf-feature { grid-template-columns: 1fr; } .pf-feature .pf-img { min-height: 14rem; aspect-ratio: 4 / 3; } .pj-layout { grid-template-columns: 1fr; } .pj-side { position: static; } }
@media (max-width: 34rem) { .pf-fbody { padding: 1.3rem; } .pj-specs { grid-template-columns: 1fr; } }
.no-details input, .no-details select { font-size: .88rem; padding-left: .55rem; padding-right: .35rem; min-width: 0; }

/* ---- admin analytics: one tidy bar ---- */
.an-bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .8rem 1.2rem; padding: 1rem 1.2rem .8rem; margin-top: 1rem; }
.an-left { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .7rem; }
.an-left .field { margin: 0; min-width: 11rem; }
.an-left .field label { font-size: .8rem; }
.an-dates { display: flex; gap: .7rem; }
.an-dates[hidden] { display: none; }
.an-dates .field { min-width: 9.5rem; }
.an-right { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.an-views { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.an-sel { min-width: 11rem; max-width: 16rem; padding-top: .45rem; padding-bottom: .45rem; font-size: .9rem; }
.an-menu { position: relative; }
.an-menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; }
.an-menu > summary::-webkit-details-marker { display: none; }
.an-menu .ic { vertical-align: 0; }
.an-pop { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 30; width: 17rem; padding: .35rem; border-radius: 10px; border: 1px solid var(--line); background: var(--plate); box-shadow: 0 16px 36px rgba(0, 0, 0, .45); }
.an-pop a { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: .6rem; padding: .5rem .6rem; border-radius: 7px; color: var(--ink); text-decoration: none; }
.an-pop a:hover, .an-pop a:focus-visible { background: rgba(76, 141, 255, .12); }
.an-pop b { font-family: var(--font-display); font-size: .92rem; }
.an-pop span { grid-column: 1; font-size: .8rem; color: var(--muted); }
.an-pop em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-size: .68rem; font-family: var(--font-display); font-weight: 700; padding: .05rem .4rem; border-radius: 4px; background: rgba(255, 255, 255, .08); color: var(--muted); }
.an-pop-n { margin: .3rem .6rem .2rem; font-size: .75rem; color: var(--muted); }
.an-range { flex-basis: 100%; margin: .1rem 0 0; padding-top: .7rem; border-top: 1px solid var(--line); display: flex; align-items: center; gap: .45rem; font-size: var(--step--1); color: var(--muted); }
.an-range .ic { color: var(--accent-hi); vertical-align: 0; }
@media (max-width: 40rem) { .an-left .field { min-width: 0; flex: 1 1 9rem; } .an-right { width: 100%; } .an-sel { flex: 1; max-width: none; } }
.an-bar { display: grid; grid-template-columns: auto auto; justify-content: space-between; align-items: end; }
.an-right, .an-views { flex-wrap: nowrap; justify-self: end; }
.an-sel { min-width: 10rem; }
.an-range { grid-column: 1 / -1; }
.an-left .field select, .an-left .field input { width: 100%; max-width: 100%; }
@media (max-width: 72rem) {
  .an-bar { grid-template-columns: 1fr; }
  .an-right { justify-self: start; flex-wrap: wrap; }
  .an-views { flex-wrap: wrap; }
}
@media (max-width: 40rem) {
  .an-left { width: 100%; }
  .an-left .field { flex: 1 1 100%; min-width: 0; }
  .an-dates { width: 100%; }
  .an-dates .field { flex: 1 1 0; min-width: 0; }
  .an-right, .an-views { width: 100%; }
  .an-sel { flex: 1 1 100%; min-width: 0; }
}
.an-bar > * { min-width: 0; }
@media (min-width: 72.01rem) { .an-left { flex-wrap: nowrap; } .an-left .field { min-width: 11rem; } }
@media (max-width: 40rem) { .an-bar { padding: .9rem; } .an-left .field select, .an-left .field input, .an-sel { box-sizing: border-box; } .an-dates .field input { padding-left: .5rem; padding-right: .3rem; font-size: .9rem; } }
@media (min-width: 72.01rem) { .an-sel { min-width: 10rem; } .an-left .field { min-width: 10.5rem; } }

/* ---- admin system page ---- */
.sys-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .8rem; }
.sys-h h2 { margin: 0; font-size: 1.15rem; }
.sys-h p { margin: .2rem 0 0; font-size: var(--step--1); color: var(--muted); }
.sys-env { font-size: .8rem; color: var(--muted); font-family: var(--font-display); white-space: nowrap; }
.sys-health { margin-bottom: 1rem; }
.sys-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.6rem; }
.sys-checks li { display: flex; align-items: center; gap: .75rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.sys-checks li > div:nth-child(2) { flex: 1; min-width: 0; }
.sys-checks b, .sys-joblist b, .sys-bklist b, .sys-conn b { display: block; font-family: var(--font-display); font-weight: 600; font-size: .95rem; }
.sys-checks li span:not(.sys-dot), .sys-joblist li span, .sys-bklist li span:not(.sys-dot), .sys-conn li div span { display: block; font-size: var(--step--1); color: var(--muted); }
.sys-act { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
.sys-dot { flex: 0 0 auto; width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; background: rgba(76, 141, 255, .14); color: var(--accent-hi); }
.sys-dot .ic { display: block; vertical-align: 0; }
.st-ok .sys-dot { background: rgba(91, 208, 139, .15); color: var(--ok); }
.st-warn .sys-dot { background: rgba(255, 193, 90, .15); color: var(--warn); }
.st-bad .sys-dot { background: rgba(255, 156, 143, .18); color: var(--bad); }
.st-bad b { color: var(--bad); }
.st-off .sys-dot { background: rgba(255, 255, 255, .06); color: var(--muted); }
.sys-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.sys-col { display: grid; gap: 1rem; }
.sys-setup { margin: .3rem 0 1rem; }
.sys-setup.open { padding: 1rem; border-radius: 10px; border: 1px solid rgba(255, 156, 143, .45); background: rgba(255, 156, 143, .06); }
.sys-setup h3 { margin: 0 0 .6rem; font-size: 1rem; }
.sys-setup summary, .sys-jobs summary { cursor: pointer; font-family: var(--font-display); font-size: .92rem; color: var(--accent-hi); }
.sys-setup details[open] summary { margin-bottom: .7rem; }
.sys-code { margin: .55rem 0; }
.sys-code-l { display: block; font-size: .78rem; font-family: var(--font-display); color: var(--muted); margin-bottom: .25rem; }
.sys-code > div { display: flex; gap: .4rem; align-items: stretch; }
.sys-code code { flex: 1; min-width: 0; display: block; padding: .55rem .7rem; border-radius: 8px; border: 1px solid var(--line); background: var(--plate-deep); font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .8rem; white-space: pre-wrap; word-break: break-all; color: var(--ink); }
.sys-code .ic { vertical-align: 0; }
.sys-jobs { border-top: 1px solid var(--line); padding-top: .8rem; }
.sys-jobs[open] summary { margin-bottom: .5rem; }
.sys-joblist, .sys-bklist, .sys-conn { list-style: none; margin: 0; padding: 0; }
.sys-joblist li, .sys-bklist li, .sys-conn li { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; border-top: 1px solid var(--line); }
.sys-joblist li:first-child, .sys-bklist li:first-child, .sys-conn li:first-child { border-top: 0; }
.sys-joblist li > div, .sys-bklist li > div, .sys-conn li > div { flex: 1; min-width: 0; }
.ok-t { color: var(--ok); } .bad-t { color: var(--bad); }
.sys-sub { font-size: 1rem; margin: 1rem 0 .5rem; }
@media (max-width: 64rem) { .sys-grid { grid-template-columns: 1fr; } }
@media (max-width: 44rem) { .sys-checks { grid-template-columns: 1fr; } .sys-checks li { flex-wrap: wrap; } .sys-act { width: 100%; justify-content: flex-start; padding-left: 2.85rem; } .sys-h { flex-direction: column; } }

/* integrations: what works now vs saved for later */
.ifilt { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.ilive { display: inline-flex; align-items: center; gap: .3rem; margin: .2rem 0 .1rem; font-size: .75rem; font-family: var(--font-display); font-weight: 600; padding: .12rem .55rem; border-radius: 999px; color: var(--muted); border: 1px solid var(--line); width: max-content; }
.ilive.on { color: var(--ok); border-color: rgba(91, 208, 139, .45); background: rgba(91, 208, 139, .08); }
.ilive .ic { vertical-align: 0; }

/* system: PHP on this server, FTP copies */
#php { margin-top: 1rem; }
.sys-php { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.6rem; }
.sys-php h3 { font-size: .95rem; margin: .2rem 0 .4rem; }
.sys-phplist { list-style: none; margin: 0; padding: 0; }
.sys-phplist li { display: flex; align-items: center; gap: .65rem; padding: .5rem 0; border-top: 1px solid var(--line); }
.sys-phplist li:first-child { border-top: 0; }
.sys-phplist li > div { flex: 1; min-width: 0; }
.sys-phplist b { display: block; font-weight: 600; font-size: .9rem; }
.sys-phplist b code { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
.sys-phplist li > div > span { display: block; font-size: .8rem; color: var(--muted); }
.sys-phplist .sys-dot { width: 1.7rem; height: 1.7rem; }
.sys-val { font-size: .8rem; color: var(--muted); text-align: right; max-width: 45%; }
.sys-phplist li.st-warn .sys-val, .sys-phplist li.st-bad .sys-val { color: var(--ink); }
.sys-opt { font-family: var(--font-body); font-weight: 400; font-size: .72rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 .4rem; }
.sys-ftp { display: flex; gap: .5rem; align-items: flex-start; font-size: var(--step--1); margin: .8rem 0 .4rem; padding: .55rem .7rem; border-radius: 8px; border: 1px solid var(--line); }
.sys-ftp.ok { border-color: rgba(91, 208, 139, .45); } .sys-ftp.bad { border-color: rgba(255, 156, 143, .55); }
.sys-ftp .ic { flex: 0 0 auto; vertical-align: 0; margin-top: .15rem; }
@media (max-width: 56rem) { .sys-php { grid-template-columns: 1fr; } }

/* integrations: the connect / settings window */
dialog.ix-dlg { width: min(46rem, calc(100vw - 2rem)); }
.ix { display: grid; gap: 1rem; }
.ix-top { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: start; }
.ix-top .iic { width: 2.75rem; height: 2.75rem; }
.ix-cat { margin: 0; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-family: var(--font-display); font-weight: 600; }
.ix-what { margin: .15rem 0 0; }
.ix-pills { display: flex; flex-direction: column; gap: .35rem; align-items: flex-end; }
.ix-pills .ilive { margin: 0; }
.ix-how { border: 1px solid var(--line); border-radius: 10px; padding: .1rem .9rem; background: color-mix(in srgb, var(--panel) 70%, transparent); }
.ix-how summary { cursor: pointer; padding: .6rem 0; font-family: var(--font-display); font-weight: 600; font-size: .9rem; display: flex; gap: .45rem; align-items: center; list-style: none; }
.ix-how summary::-webkit-details-marker { display: none; }
.ix-how summary::after { content: ''; margin-left: auto; width: .5rem; height: .5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; opacity: .6; }
.ix-how[open] summary::after { transform: rotate(225deg); }
.ix-how ol { margin: 0 0 .6rem; padding-left: 1.3rem; font-size: .9rem; display: grid; gap: .3rem; }
.ix-link { display: inline-flex; gap: .3rem; align-items: center; font-size: .88rem; margin-bottom: .75rem; }
.ix-sec { border-top: 1px solid var(--line); padding-top: .9rem; }
.ix-sec h3 { font-size: .95rem; margin: 0 0 .7rem; }
.ix-sh { display: flex; justify-content: space-between; align-items: baseline; }
.ix-sh .row-actions { gap: .8rem; font-size: .85rem; }
.ix-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; }
.ix-f { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.ix-f.ix-wide, .ix-f:has(textarea) { grid-column: 1 / -1; }
.ix-f label { font-weight: 600; font-size: .9rem; }
.ix-f input, .ix-f select, .ix-f textarea { width: 100%; }
.ix-mono, .ix-f textarea.ix-mono { font-family: ui-monospace, Consolas, monospace; font-size: .82rem; }
.ix-lab { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.ix-saved { display: inline-flex; gap: .25rem; align-items: center; font-size: .75rem; color: var(--ok); }
.ix-pw { display: flex; gap: .3rem; }
.ix-pw input { flex: 1; min-width: 0; }
.ix-help { margin: 0; font-size: .8rem; color: var(--muted); line-height: 1.45; }
.ix-tog { justify-content: flex-end; }
.ix-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem .8rem; margin-bottom: .6rem; }
.ix-check { display: flex; gap: .55rem; align-items: center; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: .9rem; }
.ix-check:has(input:checked) { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.ix-after { display: flex; gap: .55rem; align-items: flex-start; margin: 0; padding: .65rem .8rem; border-radius: 8px; font-size: .88rem; border: 1px dashed var(--line); color: var(--muted); }
.ix-after.live { border-style: solid; border-color: rgba(91, 208, 139, .4); color: var(--ink); }
.ix-after .ic { flex: 0 0 auto; margin-top: .15rem; }
.ix-bridge { border: 1px solid var(--line); border-radius: 10px; padding: .9rem; display: grid; gap: .7rem; }
.ix-bridge p { margin: 0; font-size: .88rem; color: var(--muted); }
.ix-flow { display: flex; align-items: center; gap: .4rem; }
.ix-flow span { display: flex; flex-direction: column; align-items: center; gap: .25rem; text-align: center; font-size: .8rem; font-family: var(--font-display); font-weight: 600; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 8px; min-width: 6.5rem; }
.ix-flow small { font-weight: 400; color: var(--muted); }
.ix-flow i { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--muted) 0 6px, transparent 6px 10px); opacity: .6; }
.ilive.bridge { color: var(--ink); }
.ist { display: inline-flex; align-items: center; gap: .3rem; margin-left: auto; align-self: flex-start; font-size: .75rem; font-family: var(--font-display); font-weight: 600; padding: .12rem .55rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.ist .ic { vertical-align: 0; }
.ist.on { color: var(--ok); border-color: rgba(91, 208, 139, .45); background: rgba(91, 208, 139, .08); }
.ist.off { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 8%, transparent); }
.ix-pills .ist { margin: 0; }
@media (max-width: 40rem) { .ix-grid, .ix-checks { grid-template-columns: 1fr; } .ix-top { grid-template-columns: auto 1fr; } .ix-pills { grid-column: 1 / -1; flex-direction: row; align-items: center; } .ix-flow span { min-width: 0; } }
/* settings, alerts: where alerts go */
.set-where-h { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; flex-wrap: wrap; margin-bottom: .8rem; }
.set-where-l { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: .5rem; }
.set-where-l li { display: flex; align-items: center; gap: .45rem; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 8px; font-size: .88rem; }
.set-where-l li span { margin-left: auto; font-size: .75rem; color: var(--muted); }
.set-where-l li.on { border-color: rgba(91, 208, 139, .45); }
.set-where-l li.on span { color: var(--ok); }

/* shipping and tax: blocked states with reasons, and the address checker */
.bs-panel .toolbar .badge { font-size: .78rem; }
.bs-pick { border: 1px solid var(--line); border-radius: 10px; padding: .1rem .9rem; margin: .8rem 0; }
.bs-pick summary { cursor: pointer; padding: .6rem 0; font-family: var(--font-display); font-weight: 600; font-size: .9rem; }
.bs-pick[open] { padding-bottom: .8rem; }
.bs-note textarea { min-height: 3.6rem; }
.bs-h { margin: .9rem 0 .4rem; display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
.bs-list { display: grid; gap: .45rem; }
.bs-row { display: grid; grid-template-columns: 11rem 1fr; gap: .8rem; align-items: center; }
.bs-row label { font-weight: 600; font-size: .9rem; }
.bs-prev { margin-top: .9rem; display: grid; gap: .3rem; }
.bs-prev .notice { display: flex; gap: .5rem; align-items: flex-start; margin: 0; }
.bs-prev .notice .ic { flex: 0 0 auto; margin-top: .15rem; }
.bs-try { display: grid; gap: .8rem; }
.bs-try-row { display: grid; grid-template-columns: 1.4fr 1fr .8fr .8fr auto; gap: .7rem; align-items: end; }
.bs-try-row .field { margin: 0; }
.bs-try #tr { margin: 0; }
@media (max-width: 48rem) { .bs-row { grid-template-columns: 1fr; gap: .2rem; } .bs-try-row { grid-template-columns: 1fr 1fr; } .bs-try-row .btn { grid-column: 1 / -1; } }
/* checkout: a state we do not ship to */
.blk-note { grid-column: 1 / -1; display: flex; gap: .6rem; align-items: flex-start; margin: 0; }
.blk-note .ic { flex: 0 0 auto; margin-top: .1rem; }
.blk-note[hidden] { display: none; }

/* system page, round 2: jump bar, health tally, PHP section */
.sys-jump { display: flex; gap: .4rem; flex-wrap: wrap; margin: -.4rem 0 1rem; }
.sys-jump a { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; font-family: var(--font-display); font-weight: 600; color: var(--ink); text-decoration: none; }
.sys-jump a:hover { border-color: var(--accent); }
.sys-jump i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--muted); }
.sys-jump i.st-ok { background: var(--ok); } .sys-jump i.st-warn { background: #f5b84b; } .sys-jump i.st-bad { background: #ff8a7a; }
.sys-tally { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.sys-tally span { font-size: .75rem; font-family: var(--font-display); font-weight: 600; padding: .15rem .55rem; border-radius: 999px; border: 1px solid var(--line); }
.sys-tally .st-ok { color: var(--ok); border-color: rgba(91, 208, 139, .4); }
.sys-tally .st-warn { color: #f5b84b; border-color: rgba(245, 184, 75, .45); }
.sys-tally .st-bad { color: #ff8a7a; border-color: rgba(255, 138, 122, .5); }
.sys-tally .sys-env { color: var(--muted); }
.sys-phpx { margin-top: 1rem; display: grid; gap: 1.1rem; }
.sys-phpx h3 { font-size: .95rem; margin: 0 0 .6rem; display: flex; gap: .4rem; align-items: center; }
.px-fix ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.px-fix li { border: 1px solid rgba(245, 184, 75, .45); border-left-width: 4px; border-radius: 8px; padding: .7rem .9rem; display: grid; gap: .3rem; }
.px-fix li.st-bad { border-color: rgba(255, 138, 122, .55); }
.px-fix p { margin: 0; font-size: .88rem; color: var(--muted); }
.px-fix .px-do { color: var(--ink); }
.px-fh { display: flex; gap: .8rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.px-fh code { font-weight: 600; }
.px-nw { display: inline-flex; gap: .45rem; align-items: center; font-size: .82rem; color: var(--muted); }
.px-nw b { color: var(--ink); }
.px-allok { display: flex; gap: .5rem; align-items: center; margin: 0; padding: .6rem .8rem; border: 1px solid rgba(91, 208, 139, .4); border-radius: 8px; color: var(--ok); }
.px-cols { display: grid; grid-template-columns: 1fr 1.25fr; gap: 1.4rem; align-items: start; }
.px-ext { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.px-ext li { display: flex; gap: .45rem; align-items: flex-start; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.px-ext li > span { display: flex; flex-direction: column; min-width: 0; }
.px-ext code, .px-set code { font-size: .82rem; font-weight: 600; }
.px-ext small, .px-set small { color: var(--muted); font-size: .74rem; line-height: 1.35; }
.px-ext em { margin-left: auto; font-style: normal; font-size: .68rem; color: var(--muted); }
.px-ext .ic, .px-i .ic { flex: 0 0 auto; margin-top: .2rem; }
.px-ext li.st-ok .ic, .px-set tr.st-ok .px-i { color: var(--ok); }
.px-ext li.st-bad { border-color: rgba(255, 138, 122, .55); } .px-ext li.st-bad .ic, .px-set tr.st-bad .px-i { color: #ff8a7a; }
.px-set tr.st-warn .px-i { color: #f5b84b; } .px-ext li.st-off .ic { color: var(--muted); }
.px-set { width: 100%; border-collapse: collapse; font-size: .85rem; }
.px-set th, .px-set td { text-align: left; padding: .5rem .4rem; border-top: 1px solid var(--line); vertical-align: top; }
.px-set thead th { border-top: 0; font-size: .75rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.px-set tbody th { display: flex; gap: .45rem; font-weight: 400; }
.px-set tbody th > span:last-child { display: flex; flex-direction: column; }
.px-set tr.st-warn td:nth-child(2), .px-set tr.st-bad td:nth-child(2) { color: #f5b84b; font-weight: 600; }
.px-set td { white-space: nowrap; }
.px-how { border-top: 1px solid var(--line); padding-top: .8rem; }
.px-how summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: .9rem; }
.px-how ol { font-size: .9rem; display: grid; gap: .3rem; margin: .6rem 0; }
@media (max-width: 62rem) { .px-cols { grid-template-columns: 1fr; } }
@media (max-width: 36rem) { .px-ext { grid-template-columns: 1fr; } .px-set td { white-space: normal; } }
/* automations: grouped cards */
.au-sum { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; margin-bottom: 1.4rem; }
.au-sum > div { border: 1px solid var(--line); border-radius: 10px; padding: .7rem .9rem; display: flex; flex-direction: column; gap: .1rem; background: var(--panel); }
.au-sum b { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2; }
.au-sum span { font-size: .78rem; color: var(--muted); }
.au-group { margin-bottom: 1.6rem; }
.au-gh { display: flex; align-items: center; gap: .5rem; margin-bottom: .7rem; }
.au-gh h2 { font-size: 1.05rem; margin: 0; }
.au-gh > span { font-size: .85rem; color: var(--muted); }
.au-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr)); gap: .8rem; }
.au-card { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 1rem 1.1rem .9rem; display: flex; flex-direction: column; gap: .8rem; }
.au-card:not(.on) { opacity: .78; }
.au-card:not(.on) .au-ic { filter: grayscale(1); }
.au-card.on { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.au-card.dirty { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.au-card header { display: grid; grid-template-columns: auto 1fr auto; gap: .75rem; align-items: start; }
.au-card h3 { font-size: 1rem; margin: 0; }
.au-card header p { margin: .15rem 0 0; font-size: .85rem; color: var(--muted); }
.au-ic { width: 2.2rem; height: 2.2rem; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.au-sw { margin-top: .15rem; }
.au-opts { display: flex; flex-wrap: wrap; gap: .5rem .9rem; padding: .7rem .8rem; border-radius: 8px; background: color-mix(in srgb, var(--ink) 4%, transparent); }
.au-in { display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; }
.au-in input { width: 4.6rem; text-align: center; padding: .3rem .4rem; }
.au-in select { width: auto; padding: .3rem .5rem; }
.au-in.au-wide { flex: 1 1 100%; } .au-in.au-wide input { width: auto; flex: 1; text-align: left; }
.au-card footer { display: flex; align-items: center; gap: .6rem; justify-content: space-between; flex-wrap: wrap; margin-top: auto; border-top: 1px solid var(--line); padding-top: .7rem; }
.au-stat { font-size: .8rem; color: var(--muted); }
.au-stat b { color: var(--ink); }
.au-act { display: flex; gap: .35rem; align-items: center; }
.au-act .asv:disabled { opacity: .45; }
@media (max-width: 60rem) { .au-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 30rem) { .au-grid { grid-template-columns: 1fr; } }

/* products: tick boxes and the selection bar */
#ptable td.pk, #ptable th:first-child input { width: 2rem; }
#ptable td.pk input, #pall { width: 1.05rem; height: 1.05rem; cursor: pointer; }
#ptable tr.picked > * { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.pbar { position: sticky; top: .5rem; z-index: 5; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .6rem .8rem; margin-bottom: .7rem; border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--line)); border-radius: 10px; background: var(--panel); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.pbar[hidden] { display: none; }
.pbar .pb-sp { flex: 1; }
.pbar .btn .ic { vertical-align: -2px; }
.btn.danger-ghost { background: transparent; border: 1px solid rgba(255, 138, 122, .55); color: #ff9c8f; }
.btn.danger-ghost:hover { background: rgba(255, 138, 122, .1); }
.pb-list { margin: .3rem 0 .6rem; padding-left: 1.2rem; font-size: .9rem; display: grid; gap: .15rem; }

/* storefront add-ons: Google rating in the footer, Calendly box, the spam check when it needs a click */
.grev { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: inherit; text-decoration: none; margin-right: auto; }
.grev-s { color: #f5b84b; letter-spacing: .05em; } .grev-s i { font-style: normal; opacity: .3; }
.grev:hover b { text-decoration: underline; }
.soc.soc-txt { width: auto; padding: 0 .6rem; font-size: .8rem; font-weight: 600; }
.cal-box { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 1.5rem 0; }
.cal-box h2 { font-size: 1.1rem; margin: 0 0 .2rem; } .cal-box p { margin: 0; color: var(--muted); }
.cap-box { position: fixed; right: 1rem; bottom: 1rem; z-index: 1000; display: none; }
.cap-box.show { display: block; }

.ix-oa { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ix-oa > div { flex: 1 1 18rem; }
.ix-oa h3 { display: flex; gap: .4rem; align-items: center; }
.ix-oa code { font-size: .78rem; word-break: break-all; }

/* customers and staff: sign-in methods, two-step lock, archived */
.pl-tabs { margin: .2rem 0 .8rem; }
.pl-logins { display: inline-flex; gap: .25rem; }
.pl-in { width: 1.45rem; height: 1.45rem; border-radius: 6px; display: inline-grid; place-items: center; font: 700 .72rem/1 var(--font-display); border: 1px solid var(--line); color: var(--ink); }
.pl-in.pl-google { color: #8ab4f8; } .pl-in.pl-facebook { color: #6ea8ff; } .pl-in.pl-twitch { color: #b38cff; } .pl-in.pl-discord { color: #8c95ff; }
.pl-in.pl-apple::before { content: ''; width: .62rem; height: .75rem; background: currentColor; border-radius: 45% 45% 50% 50%; }
.pl-2fa { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; }
.pl-2fa.on { color: var(--ok); background: rgba(91, 208, 139, .12); }
.pl-2fa.off { color: #ff8a7a; background: rgba(255, 138, 122, .12); }
.badge.s-archived { color: var(--muted); border-color: var(--line); }

/* buying a shipping label */
.lb-offer { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: .8rem 1rem; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 10px; }
.lb-offer > div { display: flex; flex-direction: column; gap: .2rem; } .lb-offer b { display: inline-flex; gap: .4rem; align-items: center; } .lb-offer span { font-size: .85rem; color: var(--muted); }
.lb-or { text-align: center; margin: .9rem 0 .4rem; color: var(--muted); font-size: .8rem; }
.lb { display: grid; gap: .9rem; }
.lb-addr { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.lb-addr > div { border: 1px solid var(--line); border-radius: 8px; padding: .6rem .8rem; font-size: .85rem; color: var(--muted); display: flex; flex-direction: column; gap: .1rem; }
.lb-addr span { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; } .lb-addr b { color: var(--ink); }
.lb-parcel { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: .6rem; align-items: end; }
.lb-parcel .field { margin: 0; }
.lb-list { border: 0; margin: 0; padding: 0; display: grid; gap: .4rem; max-height: 20rem; overflow: auto; }
.lb-rate { display: flex; gap: .7rem; align-items: center; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.lb-rate:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); }
.lb-c { flex: 1; display: flex; flex-direction: column; gap: .1rem; } .lb-c small { color: var(--muted); }
.lb-p { font-family: var(--font-display); font-size: 1.05rem; }
.lb-done { display: flex; gap: 1rem; align-items: flex-start; } .lb-done .ic { color: var(--ok); flex: 0 0 auto; } .lb-done h3 { margin: 0 0 .3rem; }
@media (max-width: 40rem) { .lb-addr, .lb-parcel { grid-template-columns: 1fr 1fr; } }

/* checkout: choosing how to pay */
.pay-opts { display: grid; gap: .45rem; margin-top: .6rem; }
.pay-opt { display: flex; gap: .6rem; align-items: center; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 600; }
.pay-opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); }
/* print queue: printers live from the Print bridge */
.plive { margin-bottom: 1.2rem; }
.pl-head { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: .7rem; }
.pl-head h2 { font-size: 1.1rem; margin: 0; display: flex; gap: .4rem; align-items: center; }
.pl-bridge { font-size: .8rem; color: var(--muted); margin-right: auto; }
.pl-bridge.on { color: var(--ok); }
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .7rem; }
.pl-card { border: 1px solid var(--line); border-radius: 12px; padding: .8rem .9rem; background: var(--panel); display: grid; gap: .4rem; }
.pl-card.st-printing { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.pl-card.st-failed { border-color: rgba(255, 138, 122, .6); }
.pl-card.st-offline { opacity: .7; }
.pl-card header { display: flex; justify-content: space-between; gap: .5rem; align-items: flex-start; }
.pl-card header span:not(.badge) { display: block; font-size: .75rem; color: var(--muted); }
.pl-job { margin: 0; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-bar { height: .5rem; border-radius: 999px; background: color-mix(in srgb, var(--ink) 10%, transparent); overflow: hidden; }
.pl-bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.pl-meta, .pl-temps, .pl-wait { margin: 0; font-size: .8rem; color: var(--muted); }
.pl-meta b { color: var(--ink); }
.pl-err { margin: 0; font-size: .8rem; color: #ff9c8f; display: flex; gap: .3rem; align-items: center; }
.pl-act { display: flex; gap: .4rem; }
.pb ol.pb-steps { display: grid; gap: .7rem; padding-left: 1.3rem; }
.pb-json { background: color-mix(in srgb, var(--ink) 6%, transparent); border: 1px solid var(--line); border-radius: 8px; padding: .7rem; font-size: .78rem; overflow: auto; max-height: 14rem; }

/* ---------- Badges (customer page, admin Rewards, customer record) ---------- */
.bd-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); }
.bd-grid.bd-mini { grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); }
.bd-card { position: relative; display: flex; gap: .85rem; align-items: flex-start; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--plate); min-width: 0;
  background-image: linear-gradient(145deg, color-mix(in srgb, var(--g1, #4C8DFF) 13%, transparent), transparent 60%); }
.bd-card.got { border-color: color-mix(in srgb, var(--g1, #4C8DFF) 45%, var(--line)); }
.bd-medal { position: relative; flex: none; display: grid; place-items: center; width: 3.1rem; height: 3.1rem; border-radius: 50%; color: #fff;
  background: linear-gradient(135deg, var(--g1, #4C8DFF), var(--g2, #2A70EE)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--g1, #4C8DFF) 22%, transparent), 0 6px 16px rgba(0, 0, 0, .35); }
.bd-medal em { position: absolute; right: -.35rem; bottom: -.3rem; min-width: 1.35rem; padding: 0 .28rem; border-radius: 999px; font: 700 .66rem/1.25rem var(--font-display); font-style: normal; text-align: center;
  color: var(--ink); background: var(--paper); border: 1px solid color-mix(in srgb, var(--g1, #4C8DFF) 60%, var(--line)); }
.bd-card.locked .bd-medal { filter: grayscale(.85) brightness(.7); box-shadow: none; }
.bd-card.locked .bd-txt > b { color: var(--muted); }
.bd-txt { display: grid; gap: .2rem; min-width: 0; flex: 1; }
.bd-txt > b { font-family: var(--font-display); font-size: 1rem; line-height: 1.25; }
.bd-txt > span { color: var(--muted); font-size: .85rem; line-height: 1.35; }
.bd-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .15rem; }
.bd-rare, .bd-pts { display: inline-block; font: 600 .7rem/1 var(--font-display); letter-spacing: .02em; padding: .25rem .45rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.bd-pts { color: var(--star, #FFC15A); border-color: color-mix(in srgb, var(--star, #FFC15A) 40%, var(--line)); }
.bd-rare.r-common { color: #A9B8CF; }
.bd-rare.r-uncommon { color: #5BD08B; border-color: rgba(91, 208, 139, .4); }
.bd-rare.r-rare { color: #4C8DFF; border-color: rgba(76, 141, 255, .45); }
.bd-rare.r-epic { color: #C084FC; border-color: rgba(192, 132, 252, .45); }
.bd-rare.r-legendary { color: #FFC15A; border-color: rgba(255, 193, 90, .5); background: rgba(255, 193, 90, .08); }
.bd-held { font-size: .78rem; color: var(--muted); }
.bd-when { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; color: var(--muted); }
.bd-card.got .bd-when { color: var(--ok); }
.bd-bar { height: .4rem; border-radius: 999px; background: color-mix(in srgb, var(--line) 80%, transparent); overflow: hidden; margin-top: .2rem; }
.bd-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--g1, #4C8DFF), var(--g2, #2A70EE)); }
.bd-secret { border-style: dashed; background-image: none; }
.bd-secret .bd-medal { background: var(--paper); color: var(--muted); box-shadow: none; border: 1px dashed var(--line); }
.bd-hero { display: flex; gap: 1.5rem; align-items: center; padding: 1.3rem 1.4rem; margin-bottom: 1.4rem; border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(135deg, rgba(76, 141, 255, .14), rgba(192, 132, 252, .08) 60%, transparent), var(--plate); }
.bd-ring { --p: 0; flex: none; width: 7.5rem; height: 7.5rem; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, var(--plate) 78%, transparent 79%), conic-gradient(var(--accent) calc(var(--p) * 1%), color-mix(in srgb, var(--line) 85%, transparent) 0); }
.bd-ring b { font: 700 2rem/1 var(--font-display); }
.bd-ring span { color: var(--muted); font-size: .8rem; }
.bd-hero-txt h2 { margin: 0 0 .3rem; font-size: 1.3rem; }
.bd-hero-txt p { margin: 0 0 .8rem; color: var(--muted); max-width: 42rem; }
.bd-nums { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.bd-nums div { display: grid; }
.bd-nums b { font: 700 1.35rem/1.1 var(--font-display); }
.bd-nums span { color: var(--muted); font-size: .8rem; }
.bd-sec { margin: 0 0 1.6rem; }
.bd-sh { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1rem; margin-bottom: .7rem; }
.bd-sh h2 { margin: 0; font-size: 1.15rem; }
.bd-sh p { margin: 0; font-size: .88rem; }
.bd-count { font: 600 .75rem var(--font-display); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .5rem; margin-left: .3rem; vertical-align: middle; }
.bd-admin { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--plate) 60%, transparent); overflow: hidden; }
.bd-admin .bd-card { border: 0; border-radius: 0; flex: 1; }
.bd-admin.off { opacity: .6; }
.bd-foot { display: grid; gap: .35rem; padding: .6rem 1rem .75rem; border-top: 1px solid var(--line); font-size: .82rem; }
.bd-stat b { font-family: var(--font-display); }
.bd-stat i { color: var(--ok); font-style: normal; }
.bd-rule { color: var(--muted); }
.bd-foot .row-actions { gap: .35rem; }
.bd-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 1rem 0 .6rem; }
.bd-tools input[type=search] { margin-left: auto; max-width: 16rem; }
.bd-filter { margin: 0 0 .5rem; flex-wrap: wrap; }
.bd-note { margin: 0 0 1rem; max-width: 60rem; }
.bd-who-head { display: grid; grid-template-columns: minmax(0, 20rem) 1fr; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.bd-preview { margin-top: .6rem; display: grid; gap: .3rem; max-width: 22rem; }
.rw-kpis { margin-bottom: 1rem; }
.rw-pill.dash-since { margin-left: .4rem; }
@media (max-width: 640px) {
  .bd-hero { flex-direction: column; align-items: flex-start; }
  .bd-who-head { grid-template-columns: 1fr; }
  .bd-tools input[type=search] { margin-left: 0; max-width: none; width: 100%; }
}

/* ---------- read-only chips, switch rows ---------- */
.chip-ro { display: inline-flex; align-items: center; gap: .3rem; font-size: .76rem; padding: .2rem .5rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: color-mix(in srgb, var(--plate) 70%, transparent); }
.chip-ro b { color: var(--ink); }
.switch-row { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.switch-row input { margin-top: .25rem; width: 1.1rem; height: 1.1rem; flex: none; }
.switch-row span { display: grid; gap: .15rem; }
.switch-row small { color: var(--muted); }

/* ---------- Customers: pick several ---------- */
.data td.pk { width: 2rem; }
.data td.pk input, #call { width: 1.05rem; height: 1.05rem; cursor: pointer; }
.data tr.picked > * { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.cu-why { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .35rem; }
.cu-bots { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .8rem; }

/* ---------- Spam filter ---------- */
.sp-top { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin: .6rem 0 0; }
.sp-all { margin: .2rem 0 .6rem; }
.sp-list { display: grid; gap: .6rem; }
.sp-item { display: flex; gap: .8rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--plate); }
.sp-item.picked { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--plate)); }
.sp-pick input { width: 1.05rem; height: 1.05rem; margin-top: .2rem; cursor: pointer; }
.sp-body { display: grid; gap: .4rem; min-width: 0; flex: 1; }
.sp-body .sp-top { margin: 0; gap: .5rem; }
.sp-body .sp-top b { font-family: var(--font-display); }
.sp-when { margin-left: auto; }
.sp-subj { margin: 0; font-weight: 600; }
.sp-msg { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 7.5em; overflow: auto; color: var(--ink); font-size: .92rem; }
.sp-why { display: flex; flex-wrap: wrap; gap: .3rem; }
.sp-lists { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); align-items: start; }
.sp-listbox h2 { font-size: 1.05rem; margin: 0 0 .25rem; }
.sp-listbox.allow { border-color: rgba(91, 208, 139, .4); }
.sp-add { display: flex; gap: .5rem; align-items: flex-start; margin-top: .6rem; }
.sp-add textarea { flex: 1; min-height: 2.4rem; resize: vertical; }
.sp-tip { margin: .25rem 0 .5rem; }
.sp-rules { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .3rem; max-height: 22rem; overflow: auto; }
.sp-rules li { display: flex; align-items: center; gap: .5rem; padding: .35rem .5rem; border: 1px solid var(--line); border-radius: 8px; }
.sp-v { font-weight: 600; overflow-wrap: anywhere; flex: 1; min-width: 0; }
.sp-empty { margin: .6rem 0 0; }
.sp-checks { display: grid; gap: .5rem; justify-items: start; margin-top: .6rem; }
.sp-set { display: grid; gap: .3rem; max-width: 46rem; }
.sp-levels { border: 0; padding: .6rem 0; margin: 0; display: grid; gap: .5rem; border-bottom: 1px solid var(--line); }
.sp-levels legend { font-family: var(--font-display); font-weight: 600; margin-bottom: .4rem; }
.sp-level { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.sp-level:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.sp-level span { display: grid; gap: .1rem; }
.sp-level small { color: var(--muted); }
.sp-test { max-width: 46rem; display: grid; gap: .6rem; }
.sp-verdict { padding: .8rem 1rem; border-radius: 10px; border: 1px solid var(--line); }
.sp-verdict.bad { border-color: rgba(240, 112, 90, .5); background: rgba(240, 112, 90, .08); }
.sp-verdict.ok { border-color: rgba(91, 208, 139, .5); background: rgba(91, 208, 139, .08); }
.sp-verdict ul { margin: .4rem 0; padding-left: 1.2rem; }
@media (max-width: 640px) { .sp-when { margin-left: 0; width: 100%; } .sp-item { padding: .75rem; } }

/* ---------- FAQ editor (admin) ---------- */
.fq-group { margin-bottom: 1rem; }
.fq-group h2 { font-size: 1.05rem; margin: 0 0 .5rem; }
.fq-list { list-style: none; margin: 0; padding: 0; display: grid; }
.fq-row { display: flex; gap: .7rem; align-items: flex-start; padding: .75rem 0; border-top: 1px solid var(--line); }
.fq-row:first-child { border-top: 0; }
.fq-row.off .fq-main { opacity: .55; }
.fq-move { display: grid; gap: .2rem; }
.fq-main { flex: 1; min-width: 0; display: grid; gap: .3rem; }
.fq-main > b { font-family: var(--font-display); }
.fq-a { color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fq-a p, .fq-a ul { margin: 0; }
.fq-tags { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.fq-acts { flex: none; }
.fq-edit { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.fq-prev { display: grid; gap: .3rem; padding: .3rem .9rem; border: 1px dashed var(--line); border-radius: 10px; }
@media (max-width: 760px) { .fq-edit { grid-template-columns: 1fr; } .fq-row { flex-wrap: wrap; } .fq-acts { width: 100%; } }

/* ---------- FAQ page and Contact page (public) ---------- */
.faq-hero, .ct-hero { padding: 3rem 0 2.2rem; border-bottom: 1px solid var(--line);
  background: radial-gradient(60rem 18rem at 15% 0%, rgba(76, 141, 255, .18), transparent 70%), radial-gradient(40rem 14rem at 90% 10%, rgba(63, 197, 214, .12), transparent 70%); }
.faq-hero h1, .ct-hero h1 { margin: .5rem 0 .4rem; font-size: var(--step-3); }
.faq-hero p, .ct-hero p { color: var(--muted); margin: 0; max-width: 40rem; font-size: 1.05rem; }
.faq-kicker { display: inline-flex; align-items: center; gap: .4rem; font: 600 .8rem var(--font-display); letter-spacing: .04em; text-transform: uppercase; color: var(--accent-hi, var(--accent)); }
.faq-search { position: relative; max-width: 36rem; margin-top: 1.3rem; }
.faq-search .ic { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.faq-search input { width: 100%; padding: .9rem 1rem .9rem 2.8rem; font-size: 1.05rem; border-radius: 12px; }
.faq-body { padding-top: 1.5rem; padding-bottom: 3rem; max-width: 52rem; }
.faq-cats { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.4rem; }
.faq-cats button { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 600 .9rem var(--font-display); cursor: pointer; }
.faq-cats button span { font-size: .75rem; color: var(--muted); }
.faq-cats button[aria-pressed="true"] { background: var(--accent-fill); border-color: var(--accent); color: var(--on-accent); }
.faq-cats button[aria-pressed="true"] span { color: inherit; opacity: .8; }
.faq-sec { margin-bottom: 1.6rem; }
.faq-sec h2 { font-size: 1.1rem; margin: 0 0 .2rem; color: var(--muted); font-weight: 600; letter-spacing: .01em; }
.faq-item .acc-body p { margin: 0 0 .7rem; }
.faq-item .acc-body ul { margin: 0 0 .7rem; padding-left: 1.2rem; }
.faq-item.flash summary { color: var(--accent); }
.faq-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; padding-top: .6rem; margin-top: .3rem; border-top: 1px dashed var(--line); }
.faq-vote { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.faq-none { text-align: center; padding: 2.5rem 1rem; border: 1px dashed var(--line); border-radius: 14px; }
.faq-none h2 { font-size: 1.2rem; }
.faq-help { margin-top: 2.5rem; }
.faq-help h2 { font-size: 1.25rem; }
.faq-help-grid, .ct-side { display: grid; gap: .8rem; }
.faq-help-grid { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.faq-help-card, .ct-card { display: grid; gap: .3rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--plate); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.faq-help-card .ic { color: var(--accent); }
.faq-help-card:hover, .ct-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.faq-help-card b, .ct-card b { font-family: var(--font-display); }
.faq-help-card span, .ct-card span { color: var(--muted); font-size: .9rem; }
.ct-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 1.1rem; color: var(--muted); font-size: .92rem; }
.ct-facts span { display: inline-flex; align-items: center; gap: .4rem; }
.ct-facts .ic { color: var(--accent); }
.ct-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.4rem; padding-top: 1.6rem; padding-bottom: 3rem; align-items: start; }
.ct-form h2 { font-size: 1.2rem; margin: 0 0 .8rem; }
.ct-topics { border: 0; padding: 0; margin: 0 0 1rem; }
.ct-topics legend { font: 600 .92rem var(--font-display); margin-bottom: .5rem; }
.ct-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.ct-chip { position: relative; }
.ct-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ct-chip span { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border-radius: 999px; border: 1px solid var(--line); font-size: .9rem; }
.ct-chip input:checked + span { background: var(--accent-fill); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.ct-chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.ct-signed { margin: -.2rem 0 .8rem; display: flex; align-items: center; gap: .35rem; }
.ct-count { display: block; text-align: right; }
.ct-sug { margin: .2rem 0 1rem; padding: .8rem 1rem; border-radius: 12px; border: 1px solid rgba(76, 141, 255, .45); background: rgba(76, 141, 255, .08); }
.ct-sug b { display: flex; align-items: center; gap: .4rem; font-family: var(--font-display); font-size: .92rem; }
.ct-sug ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.ct-send { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: .4rem; }
.ct-card { grid-template-columns: auto 1fr; align-items: center; column-gap: .8rem; }
.ct-card div { display: grid; gap: .15rem; }
.ct-ic { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.ct-faq h3, .ct-ways h3 { font-size: 1rem; margin: 0 0 .5rem; }
.ct-faq ul { margin: 0 0 .6rem; padding-left: 1.1rem; display: grid; gap: .35rem; }
.ct-done { text-align: center; padding: 2.2rem 1.4rem; }
.ct-done-ic { display: inline-grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; background: rgba(91, 208, 139, .15); color: var(--ok); margin-bottom: .6rem; }
.ct-done .row-actions { justify-content: center; margin-top: 1rem; }
.ct-form [aria-invalid="true"] { border-color: var(--bad); }
@media (max-width: 860px) { .ct-grid { grid-template-columns: 1fr; } }

/* ---------- Spam filter: block lists, one at a time ---------- */
.sp-subtabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.sp-subtab { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 600 .9rem var(--font-display); cursor: pointer; }
.sp-subtab span { font-size: .75rem; color: var(--muted); min-width: 1.2rem; padding: .05rem .35rem; border-radius: 999px; background: color-mix(in srgb, var(--line) 60%, transparent); }
.sp-subtab[aria-pressed="true"] { background: var(--accent-fill); border-color: var(--accent); color: var(--on-accent); }
.sp-subtab[aria-pressed="true"] span { color: inherit; background: rgba(255, 255, 255, .18); }
.sp-subtab.allow[aria-pressed="true"] { background: rgba(91, 208, 139, .18); border-color: rgba(91, 208, 139, .6); color: var(--ink); }
.sp-listpanel.allow { border-color: rgba(91, 208, 139, .35); }
.sp-lhelp { margin: 0 0 .8rem; }
.sp-addrow { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(9rem, .7fr); gap: .3rem .8rem; align-items: start; padding: .9rem 1rem; margin-bottom: 1rem; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--paper) 50%, transparent); }
.sp-addrow .field { margin: 0; min-width: 0; }
.sp-addrow input, .sp-addrow select { width: 100%; }
.sp-addbtns { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.sp-hint { display: block; min-height: 1.2em; margin-top: .3rem; overflow-wrap: anywhere; }
.sp-hint.ok { color: var(--ok); }
.sp-hint.bad { color: var(--bad); }
.sp-ltools { margin: 0 0 .6rem; }
.sp-ltools input[type=search] { flex: 1; max-width: 22rem; }
.sp-val { min-width: 12rem; max-width: 26rem; }
.sp-val > span:first-child { display: block; overflow-wrap: anywhere; word-break: break-word; white-space: normal; }
.sp-tags { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .3rem; font-weight: 400; }
.sp-note { max-width: 18rem; overflow-wrap: anywhere; color: var(--muted); }
.chip-ro.gone { text-decoration: line-through; }
.sp-preview { margin-top: .8rem; border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; max-height: 18rem; overflow: auto; }
.sp-psum { margin: 0 0 .4rem; }
.sp-preview ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.sp-preview li { display: flex; flex-wrap: wrap; gap: .2rem .6rem; align-items: baseline; padding: .3rem .4rem; border-radius: 6px; }
.sp-preview li.ok { background: rgba(91, 208, 139, .08); }
.sp-preview li.bad { background: rgba(240, 112, 90, .08); }
.sp-pv { font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 760px) { .sp-addrow { grid-template-columns: 1fr; } .sp-val { min-width: 9rem; } }

#lbar select { width: auto; min-width: 11rem; flex: none; }
#lbar { gap: .6rem; }
.pbar .pb-sp { flex: 1; }

/* ---------- Your printers (Integrations printer cards, Print bridge setup) ---------- */
.sp-addrow.pr-add { grid-template-columns: 1fr; }
.pr-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .3rem .8rem; align-items: start; }
.pr-fields .field { margin: 0; min-width: 0; }
.pr-fields input, .pr-fields select { width: 100%; }
.pr-edit { margin-bottom: .6rem; }
.pr-host { overflow-wrap: anywhere; max-width: 14rem; font-variant-numeric: tabular-nums; }
.pr-none { margin: .4rem 0 0; }
.ix-printers { margin-top: .4rem; }
.ix-printers .sp-addbtns code, .pb-printers .sp-addbtns code { font-size: .8rem; }
.pb-printers { margin-top: .6rem; }
.ix-printers, .ix-printers .sp-addrow, .ix-printers .table-wrap, .pb-printers, .pb-printers .sp-addrow { min-width: 0; max-width: 100%; }
.ix-printers .pr-fields, .pb-printers .pr-fields { grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); }
.ix-printers .table-wrap, .pb-printers .table-wrap { overflow-x: auto; }
.pr-fields .pr-other { margin-top: .4rem; }

/* ---------- Make everyone choose a new password (Backups and system) ---------- */
.ra-head { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.ra-head h2 { display: flex; align-items: center; gap: .5rem; font-size: 1.1rem; margin: 0 0 .3rem; }
.ra-head p { margin: 0; max-width: 46rem; }
.ra-run { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.ra-run.going { border-top-color: color-mix(in srgb, var(--warn) 50%, var(--line)); }
.ra-top { display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: baseline; margin-bottom: .7rem; }
.ra-bar { height: .55rem; margin: .8rem 0 .4rem; }
.ra-dlg { display: grid; gap: .8rem; }
.ra-count { margin: 0; }