/* Swiss Dark storefront. The same rail carries the navigation, storefronts and forms. */
:root { --max: 1440px; --maker-accent: var(--white); }
.site-header { position: sticky; top: 0; z-index: 60; }
.site-header .site-header-inner { grid-template-columns: auto auto minmax(0, 1fr) auto auto; }
.site-header .header-search { min-width: 0; margin: 0; }
.site-header .header-search input { flex: 1; min-width: 0; font-size: 16px; }
.header-action.cart, .header-account summary {
  cursor: pointer; background: var(--black); color: var(--white); font: 700 14px var(--sans);
  padding-inline: 16px; min-height: 44px;
}
.header-action.cart { gap: 8px; }
.header-action.cart .cart-icon { flex: none; display: block; }
.header-action.cart .cart-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--white); color: var(--black); font: 700 12px/1 var(--mono);
}
.header-action.cart:is(:hover, [aria-current="page"]) .cart-count { background: var(--black); color: var(--white); }
.header-account { position: relative; }
.header-account summary { display: grid; align-items: center; height: 100%; border: 0; }
.header-account > div { position: absolute; right: 0; top: 100%; min-width: max-content; border: 2px solid var(--white); background: var(--black); }
.header-account a { display: block; padding: 12px 16px; }
.header-account a:hover, .header-action.cart:is(:hover, [aria-current="page"]), .header-account summary:hover { background: var(--white); color: var(--black); }
.site-header :focus-visible { outline-offset: -3px; }

#main > :is(.home, .cat, .product, .deals-page, .maker-head, .maker-story-grid, .catalog, .idx-section, .notes, .door, .page-band, .store-canvas),
#main > .store-editor { width: 100%; max-width: var(--max); margin-inline: auto; }
.storefront :is(.w, .tile-card, .tile-body, .tile-foot, .buy.product-buy, .notes, .story-col, .deal-card, .product-lede, .product .prose) {
  background: var(--black); color: var(--white);
}
.storefront :is(.sec-bar, .tile-card, .tile-foot, .spec-cell, .product .buy, .notes-list li, .deal-card) { border-color: var(--white); }
.storefront .sec-bar { padding: 24px var(--gutter); border-bottom: 2px solid var(--white); }
.storefront .sec-code, .tag, .dir-badge {
  display: inline-flex; align-items: center; width: fit-content; padding: 4px 10px;
  border: 2px solid var(--white); background: var(--black); color: var(--white); font: 700 12px var(--mono);
}
.storefront .sec-title { color: var(--white); }
.storefront .tag.is-hand { color: var(--black); background: var(--hand); border-color: var(--hand); }
.storefront .home-cut { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); border: 2px solid var(--white); border-top: 0; }
.hero-left, .hero-right { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 40px var(--gutter); }
.hero-left { padding-top: 48px; border-right: 2px solid var(--white); }
.hero-right { padding-block: 36px; gap: 18px; }
.hero-title { margin-top: 24px; font-size: clamp(36px, 4.6vw, 64px); font-weight: 800; letter-spacing: var(--track-title); line-height: 1; color: var(--hand); }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 2px solid var(--white); padding-top: 16px; font: 13px var(--mono); }
.iogen-credit { --maker-accent: var(--hand); }
.potd-head, .potd-foot, .potd-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.potd-head svg { flex: none; }
.potd-mark { cursor: pointer; touch-action: manipulation; }
@keyframes potd-dot-step {
  0%, 24.99% { fill: var(--hand); }
  25%, 100% { fill: var(--white); }
}
@keyframes potd-ring-step {
  0%, 24.99% { stroke: var(--hand); }
  25%, 100% { stroke: var(--white); }
}
.potd-mark:is(:hover, :active, .is-touch) .potd-r0 { animation: potd-dot-step 1s steps(1, end) infinite; }
.potd-mark:is(:hover, :active, .is-touch) .potd-r1 { animation: potd-ring-step 1s steps(1, end) -0.75s infinite; }
.potd-mark:is(:hover, :active, .is-touch) .potd-r2 { animation: potd-ring-step 1s steps(1, end) -0.5s infinite; }
.potd-mark:is(:hover, :active, .is-touch) .potd-r3 { animation: potd-ring-step 1s steps(1, end) -0.25s infinite; }
@media (prefers-reduced-motion: reduce) {
  .potd-mark:is(:hover, :active, .is-touch) circle { animation: none; }
}
.potd-frame { border: 2px solid var(--white); }
.potd-media { position: relative; width: 100%; aspect-ratio: 16/9; max-height: 220px; overflow: hidden; border-bottom: 2px solid var(--white); }
.potd-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.potd-body { display: grid; gap: 10px; padding: 18px 20px; }
.potd-body h2 { font-size: 24px; font-weight: 800; }
.potd-actions { justify-content: flex-start; }
.potd-foot { padding: 12px 20px; border-top: 2px solid var(--white); font: 13px var(--mono); }
.home-featured { border-inline: 2px solid var(--white); }
.storefront :is(.tile-desc, .tile-price, .shelf-desc, .maker-link, .creator-block) { color: var(--maker-accent); }
.storefront .tile-grid { background: var(--black); border-bottom: 2px solid var(--white); }
.tile-card { position: relative; }
.storefront .tile-card { border: 1px solid var(--white); outline: 0; }
.tile-card::after { content: ''; position: absolute; inset: 0; border: 2px solid transparent; pointer-events: none; z-index: 3; }
.tile-preview-video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; pointer-events: none; z-index: 1; opacity: 0; }
.tile-preview-video.is-ready { opacity: 1; }
.storefront .tile-badge { z-index: 2; }
@media (hover: hover) {
  .storefront .tile-card:hover { outline: 0; }
  .storefront .tile-card:hover::after { border-color: var(--white); }
}
.storefront .tile-card:focus-within { outline: 0; }
.storefront .tile-card:focus-within::after { border-color: var(--white); }
.tile-card .tile-foot { border-top: 2px solid var(--white); }
.storefront .tile-card-link:hover, .maker-link:hover, .soft-link:hover { text-decoration: underline; }
.maker-link, .soft-link { position: relative; z-index: 2; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.btn-maker, .btn-maker-outline {
  display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 6px 12px;
  font: 700 13px var(--mono); border: 2px solid var(--maker-accent); color: var(--maker-accent); background: var(--black);
  cursor: pointer;
}
.potd-actions .btn-maker, .potd-actions .btn-maker-outline { min-height: 44px; }
.btn-maker, .btn-maker-outline:hover { color: var(--black); background: var(--maker-accent); }
.btn-maker:hover { color: var(--maker-accent); background: var(--black); }
.cart-form { display: inline-flex; margin: 0; position: relative; z-index: 2; }
.tile-bottom { display: grid; gap: 12px; }
.tile-actions { display: flex; align-items: center; gap: 8px; }
.tile-actions .cart-form { width: 100%; }
.tile-cart-btn { width: 100%; min-height: 44px; }
.shelf-cart-btn { min-height: 44px; padding: 10px 16px; }
.storefront .tile-badge { background: var(--maker-accent); color: var(--black); }
.tile-card.bare > .tile-badge { position: static; align-self: flex-start; margin: 0 20px 12px; }
.tile-media:has(.store-pin-badge) .tile-badge:not(.store-pin-badge),
.tile-card.bare:has(> .store-pin-badge) > .tile-badge:not(.store-pin-badge) { display: none; }
.storefront .tile-price s { color: var(--white); }

.grouped-directory { scroll-margin-top: 124px; }
.directory-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.catalogue-filters { display: grid; gap: 10px; padding: 14px var(--gutter); border-bottom: 2px solid var(--white); }
.filter-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; }
.filter-select { display: grid; gap: 4px; min-width: 175px; flex: 1 1 180px; max-width: 260px; }
.filter-select > span, .software-jump > span { font: 700 11px var(--mono); color: var(--white); }
.filter-select > select {
  width: 100%; min-height: 36px; padding: 6px 28px 6px 10px;
  font: 600 13px var(--sans); font-variant-numeric: tabular-nums;
  background: var(--black); color: var(--white); border: 2px solid var(--white); border-radius: 0;
  cursor: pointer;
}
.filter-select > select:hover { border-color: var(--hand); }
.filter-toggles { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-left: auto; }
.software-jump { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; padding-top: 8px; border-top: 2px solid var(--white); font: 12px var(--mono); }
.software-jump-links { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.storefront .chip-btn {
  min-height: 36px; padding: 5px 12px; gap: 6px; font-size: 13px; line-height: 1.2;
  border: 2px solid var(--white); background: var(--black); color: var(--white); font-family: var(--sans);
}
.storefront .chip-btn .cnt {
  border: 0; padding: 0; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.storefront .chip-btn[aria-current="true"] { background: var(--white); color: var(--black); border-color: var(--white); }
.storefront .chip-btn:hover:not([aria-current="true"]) { background: var(--hand); color: var(--black); border-color: var(--hand); }
.dir-columns { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, .75fr) 8rem; align-items: center; gap: 12px; padding: 12px var(--gutter); }
.dir-sort { border-bottom: 2px solid var(--white); font: 700 13px var(--mono); }
.dir-sort a[aria-current] { color: var(--hand); }
.maker-group { border-bottom: 2px solid var(--white); }
.maker-group summary::-webkit-details-marker { display: none; }
.maker-group-bar { cursor: pointer; list-style: none; font-size: 14px; transition: background-color 80ms ease; }
.maker-group-bar:hover { background: color-mix(in srgb, var(--maker-accent) 10%, var(--black)); }
.maker-group[open] > .maker-group-bar {
  border-left: 4px solid var(--maker-accent);
  padding-left: calc(var(--gutter) - 4px);
  border-bottom: 2px solid var(--maker-accent);
}
.mg-maker { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mg-maker .maker-link { font-size: 17px; font-weight: 700; }
.mg-toggle {
  display: inline-grid; place-items: center; width: 22px; height: 22px; flex: 0 0 22px;
  border: 2px solid var(--maker-accent); color: var(--maker-accent); background: var(--black);
  font: 700 14px/1 var(--mono);
}
.mg-toggle::before { content: '+'; }
.maker-group[open] .mg-toggle { background: var(--maker-accent); color: var(--black); }
.maker-group[open] .mg-toggle::before { content: '−'; }
.dir-badge { padding: 2px 5px; font-size: 10px; }
.dir-count, .mg-price { font: 13px var(--mono); }
.mg-shop { justify-self: end; }
.dir-sort > :last-child { text-align: right; }
.maker-products {
  margin-left: calc(var(--gutter) + 10px);
  margin-right: var(--gutter);
  margin-bottom: 14px;
  border-left: 2px solid var(--maker-accent);
  border-bottom: 2px solid var(--maker-accent);
}
.maker-products .idx-item { border-top: 1px solid var(--white); }
.maker-products .idx-item:first-child { border-top: 0; }
.maker-products .idx-trigger {
  padding: 10px 14px 10px 18px;
  font-size: 14px;
}
.maker-products .idx-trigger::before {
  content: '└';
  margin-right: 8px;
  color: var(--maker-accent);
  font-family: var(--mono);
  font-weight: 700;
}
.grouped-directory :is(.idx-shelf, .shelf-media-col, .shelf-info-col, .idx-trigger) { background: var(--black); color: var(--white); border-color: var(--white); }
.grouped-directory .idx-trigger:hover { background: color-mix(in srgb, var(--maker-accent) 12%, var(--black)); color: var(--white); }
.storefront .maker-story-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.storefront .story-col { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.storefront .maker-name { color: var(--maker-accent); }
.storefront .creator-block .sec-code { color: var(--maker-accent); border-color: var(--maker-accent); }
.storefront .story-col:last-child { border-right: 0; }
.storefront .said { width: 100%; max-width: 62ch; border-left: 4px solid var(--maker-accent); padding-left: 16px; font-size: 18px; line-height: 1.6; }
.storefront .said p + p { margin-top: 1em; }
.storefront .makers-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); background: var(--white); }
.storefront .makers-grid .band, .storefront .makers-grid .band .fld { background: var(--black); color: var(--white); }
.storefront .makers-grid .band .art { order: 0; }
.storefront .makers-grid .band .fld { border-top: 4px solid var(--maker-accent, var(--white)); }
.storefront .makers-grid .band h2,
.storefront .makers-grid .band .price { color: var(--maker-accent, var(--white)); }
.storefront .makers-grid .band:hover .fld { background: var(--black); }
.offsite-makers-shelf { border-top: 2px solid var(--white); border-bottom: 2px solid var(--white); background: var(--black); color: var(--white); }
.offsite-makers-shelf summary::-webkit-details-marker { display: none; }
.offsite-makers-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 18px var(--gutter); cursor: pointer; list-style: none;
}
.offsite-makers-bar:hover { background: var(--black); }
.offsite-makers-bar:hover h2 { color: var(--hand); }
.offsite-makers-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.offsite-makers-left h2 { font-size: 22px; font-weight: 700; margin: 0; }
.offsite-toggle {
  display: inline-grid; place-items: center; width: 24px; height: 24px; flex: 0 0 24px;
  border: 2px solid var(--white); color: var(--white); background: var(--black);
  font: 700 16px/1 var(--mono);
}
.offsite-toggle::before { content: '+'; }
.offsite-makers-shelf[open] .offsite-toggle { background: var(--hand); border-color: var(--hand); color: var(--black); }
.offsite-makers-shelf[open] .offsite-toggle::before { content: '−'; }
.offsite-makers-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 2px; background: var(--white); border-top: 2px solid var(--white);
}
.offsite-maker-card {
  display: grid; gap: 8px; padding: 14px 16px; background: var(--black); color: var(--white); text-decoration: none;
}
.offsite-maker-card:hover { background: var(--black); }
.offsite-maker-card:hover h3 { color: var(--hand); }
.offsite-maker-top { display: flex; align-items: baseline; gap: 10px; }
.offsite-rank { font: 700 12px var(--mono); color: var(--hand); font-variant-numeric: tabular-nums; }
.offsite-maker-top h3 { font-size: 16px; font-weight: 700; margin: 0; flex: 1; }
.offsite-count { font: 700 13px var(--mono); color: var(--white); font-variant-numeric: tabular-nums; }
.offsite-meta { margin: 0; font: 12px var(--mono); color: var(--white); }
.storefront .notes-list li { border-color: var(--white); }
.storefront .product .product-buy :is(.go, .btn-primary) { background: var(--maker-accent); border-color: var(--maker-accent); color: var(--black); }
.storefront .product .product-buy .btn-secondary { background: var(--black); border-color: var(--maker-accent); color: var(--maker-accent); }
.storefront .product .product-buy :is(.keep, .check-line, .amt) { color: var(--white); }
.storefront .app-store-info { display: grid; gap: 16px; padding: 24px var(--gutter); border-bottom: 2px solid var(--white); }
.app-store-info img, .app-store-info iframe { width: min(100%, 720px); height: auto; aspect-ratio: 16/9; border: 2px solid var(--white); object-fit: cover; }

:focus-visible { outline: 2px solid var(--hand); outline-offset: 2px; box-shadow: none; }
#main :is(input:not([type=hidden],[type=radio],[type=checkbox],[type=color]), textarea, select) {
  background: var(--black); color: var(--white); border: 2px solid var(--white); border-radius: 0;
}
#main :is(input, textarea)::placeholder { color: color-mix(in srgb, var(--white) 65%, transparent); opacity: 1; }
#main :is(input, textarea, select):focus-visible { background: var(--black); color: var(--white); outline: 2px solid var(--hand); outline-offset: 2px; }
#main select option { background: var(--black); color: var(--white); }

@media (max-width: 780px) {
  .site-header .site-header-inner { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; }
  .site-header .logo-cell { grid-area: 1 / 1; }
  .site-header .logo-cell .logo { margin: 0; padding: 8px; min-height: 44px; }
  .site-header .logo-cell .logo svg { height: 23px; }
  .site-header .main-nav { grid-area: 1 / 2; overflow: visible; }
  .site-header .main-nav a, .site-header .header-action, .header-account summary { min-height: 44px; padding-inline: 7px; font-size: 13px; }
  .site-header :is(.header-action.signin, .header-account) { grid-area: 1 / 3; }
  .site-header .header-search { display: flex; grid-area: 2 / 1 / 3 / 3; width: auto; border-top: 2px solid var(--white); border-right: 2px solid var(--white); }
  .site-header .header-search input { min-height: 44px; padding-inline: 12px; }
  .site-header .header-action.cart { grid-area: 2 / 3; border-top: 2px solid var(--white); border-right: 0; padding-inline: 10px; gap: 6px; }
  .storefront .home-cut { grid-template-columns: 1fr; }
  .hero-left { border-right: 0; border-bottom: 2px solid var(--white); }
  .hero-left, .hero-right { padding: 24px var(--gutter); }
  .filter-select { max-width: none; flex: 1 1 100%; }
  .filter-toggles { margin-left: 0; }
  .maker-products { margin-left: var(--gutter); }
  .storefront .chip-btn { min-height: 40px; }
  .dir-sort { display: flex; flex-wrap: wrap; gap: 8px 16px; }
  .dir-sort > :last-child { display: none; }
  .maker-group-bar { grid-template-columns: minmax(0, 1fr) minmax(0, .65fr) auto; gap: 8px; }
  .mg-maker { grid-area: 1 / 1 / 2 / 3; }
  .mg-price { grid-area: 1 / 3; text-align: right; }
  .mg-cat { grid-area: 2 / 1; }
  .mg-app { grid-area: 2 / 2; }
  .mg-shop { grid-area: 2 / 3; }
  .storefront .story-col { border-right: 0; }
}
.store-editor-bar {
  position: sticky; top: 60px; z-index: 50; min-height: 48px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding: 4px var(--gutter); border-bottom: 2px solid var(--white); background: var(--black); color: var(--white);
}
.store-editor-bar :is(button, a), .canvas-tool-controls :is(button, a), .canvas-cover-actions button {
  padding: 4px 8px; min-height: 34px; background: var(--black); color: var(--white); border: 2px solid var(--white); font: 700 13px var(--sans); cursor: pointer;
}
.store-editor-bar button:is([aria-pressed=true], [type=submit]), .canvas-tool-controls button[aria-pressed=true], .canvas-cover-actions button { color: var(--black); background: var(--white); }
.store-editor-bar [role=status] { margin-inline-end: auto; font-size: 13px; }
.store-editor .maker-name, .story-col { position: relative; }
.store-editor .inline-maker-name, .store-editor .creator-field {
  position: absolute; inset: 0; width: 100%; height: 100%; font: inherit; letter-spacing: inherit; color: inherit;
}
#main.storefront .inline-maker-name { border: 0; padding: 0; color: inherit; }
#main.storefront .creator-field {
  border: 0; border-left: 4px solid var(--maker-accent); color: inherit;
  padding: 0 0 0 16px; margin: 0; resize: none; font: inherit; font-size: 18px; line-height: 1.6;
}
.store-editor .story-col { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: 'badge' 'bio' 'credit'; }
.store-editor .story-col .sec-code { grid-area: badge; }
.store-editor .story-col > .said { grid-area: bio; }
.store-editor .story-col .credit { grid-area: credit; }
.store-editor [data-public-bio]:empty { min-height: 58px; }
.store-editor [data-store-mode=edit] :is([data-public-name], [data-public-bio]) { visibility: hidden; }
.store-editor [data-store-mode=preview] :is(.inline-maker-name, .creator-field, [data-editor-control]) { display: none; }
.store-editor:has([data-store-mode=preview]) > [data-editor-control] { display: none; }
.store-editor [data-store-mode=preview] [data-store-hidden] { display: none; }
.store-editor [data-store-mode=edit] [data-store-hidden] :is(.tile-media, .tile-body) { opacity: .45; }
.canvas-pop { position: relative; width: fit-content; }
.canvas-pop summary { cursor: pointer; list-style: none; }
.canvas-pop-body { position: absolute; z-index: 8; top: 100%; right: 0; width: min(430px, 88vw); max-height: 55vh; overflow: auto; padding: 16px; border: 2px solid var(--white); background: var(--black); }
.maker-side { position: relative; }
.maker-side .canvas-pop { position: absolute; right: 0; bottom: 100%; }
.canvas-tool-controls { position: absolute; inset: 8px 8px auto auto; z-index: 4; display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; max-width: calc(100% - 16px); }
.maker-banner { display: block; width: 100%; height: auto; aspect-ratio: 32 / 9; object-fit: cover; }
.canvas-cover { display: grid; gap: 12px; min-inline-size: 0; margin: 24px var(--gutter); padding: 16px; }
.canvas-cover input[type=file] { min-inline-size: 0; width: 100%; }
.canvas-cover-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.canvas-cover-actions button { min-height: 44px; }
@media (max-width: 780px) { .store-editor-bar { top: 92px; } .maker-side .canvas-pop { bottom: 0; } }
.dir-tool-row { cursor: pointer; list-style: none; font-size: 14px; }
.dir-tool-row::-webkit-details-marker { display: none; }
.dir-tool-row .mg-maker { padding-inline-start: 18px; }
.dir-tool-row .mg-shop { display: flex; align-items: center; gap: 8px; }
.dir-tool-row .idx-toggle-ind { position: static; }
.idx-item[open] .dir-tool-row .idx-toggle-ind::before { content: '−'; }
@media (max-width: 780px) {
  .dir-tool-row { grid-template-columns: minmax(0, 1fr) minmax(0, .65fr) auto; gap: 8px; }
  .header-account > div { max-width: 100vw; }
}

.storefront .door { align-items: start; }
.storefront .door-in { justify-self: start; }

@media (max-width: 360px) {
  .site-header .main-nav a, .site-header .header-action, .header-account summary { padding-inline: 4px; font-size: 12px; }
  .site-header .logo-cell .logo svg { height: 20px; }
}

/* Seller Desk Agents & API controls (/sell/agents/*), Swiss Dark tokens (0px corners). */
.ag-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 20px; }
.ag-rule { border: 2px solid var(--line, rgba(255,255,255,.22)); padding: 16px 18px; }
.ag-rule h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.ag-rule p { margin: 0; font-size: 14px; opacity: .82; line-height: 1.5; }
.ag-presets { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.ag-presets-label { font-size: 14px; font-weight: 600; margin-right: 4px; }
.ag-presets button[aria-pressed="true"],
.ag-tabs button[aria-selected="true"] { background: var(--white); color: var(--black); border-color: var(--white); }
.ag-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 18px; }
.ag-tab-panel { border: 2px solid var(--line, rgba(255,255,255,.22)); padding: 18px 20px; }
.ag-tab-panel[hidden] { display: none; }
.ag-fold { margin-top: 16px; }
.ag-fold summary { cursor: pointer; font-size: 14px; font-weight: 600; opacity: .85; padding: 6px 0; }
.ag-fold summary:hover { opacity: 1; }
.ag-scope-code { font-size: 12px; opacity: .6; margin-left: 4px; }
.ag-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.ag-pill { font-size: 12px; font-weight: 600; padding: 3px 8px; border: 1px solid currentColor; opacity: .85; }
.ag-meta-quiet { font-size: 12px; opacity: .6; }
.ag-minted { padding: 28px var(--gutter); border-bottom: 2px solid var(--white); }
.ag-code-row { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; margin: 14px 0; }
.ag-pre { margin: 0; padding: 14px 16px; border: 2px solid currentColor; border-radius: 0; font-family: var(--mono); font-size: 13px; line-height: 1.45; overflow-x: auto; flex: 1 1 280px; }
.ag-copy { min-height: 44px; border-radius: 0; white-space: nowrap; }
.ag-scopes { margin: 12px 0 0; padding: 16px; border: 2px solid currentColor; border-radius: 0; display: grid; gap: 10px; }
.ag-scopes legend { padding: 0 6px; font-weight: 600; font-size: 14px; }
.ag-scope-opt { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.ag-scope-opt input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--hand); }
.ag-snippets { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 18px; }
.ag-snip-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.ag-snip-head h3 { font-size: 16px; font-weight: 600; }
.ag-approve-box { border-left: 4px solid var(--hand); padding-left: 20px; display: grid; gap: 16px; }
.ag-diff-table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.ag-diff-table th, .ag-diff-table td { border: 2px solid var(--white); padding: 10px 12px; text-align: left; font-size: 15px; }
.ag-decision { display: grid; gap: 14px; padding-top: 8px; }
.ag-decision-btns { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Permission-aware live search & command dropdown (.header-search) */
.site-header .header-search { position: relative; }
.search-drop {
  position: absolute; top: 100%; left: -2px; right: -2px; z-index: 200;
  background: var(--black); color: var(--white);
  border: 2px solid var(--white); border-top: 2px solid var(--hand);
  max-height: min(72vh, 520px); overflow-y: auto;
  display: grid; gap: 0;
}
.search-drop[hidden] { display: none; }
.sd-row {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  width: 100%; padding: 10px 14px; text-align: left; text-decoration: none;
  background: var(--black); color: var(--white);
  border: 0; border-bottom: 1px solid var(--white); cursor: pointer;
  font-family: var(--sans);
}
.sd-row:hover, .sd-row.is-active { background: var(--white); color: var(--black); }
.sd-row:hover .sd-sub, .sd-row.is-active .sd-sub,
.sd-row:hover .sd-price, .sd-row.is-active .sd-price,
.sd-row:hover s, .sd-row.is-active s { color: var(--black); }
.sd-row:hover .sd-badge, .sd-row.is-active .sd-badge { border-color: var(--black); color: var(--black); background: var(--hand); }
.sd-thumb {
  width: 64px; height: 36px; object-fit: cover; display: block;
  border: 2px solid var(--white); background: var(--black);
}
.sd-row:hover .sd-thumb, .sd-row.is-active .sd-thumb { border-color: var(--black); }
.sd-badge {
  display: inline-grid; place-items: center; min-height: 28px; padding: 2px 6px;
  border: 2px solid var(--hand); color: var(--hand); background: var(--black);
  font: 700 11px var(--mono); text-align: center;
}
.sd-main { display: grid; gap: 2px; min-width: 0; }
.sd-title { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-sub { font: 12px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-right { display: flex; align-items: center; gap: 8px; flex: none; font: 700 13px var(--mono); font-variant-numeric: tabular-nums; }
.sd-price.is-sale { color: var(--hand); }
.sd-right s { font-weight: 400; }
.sd-action-btn {
  padding: 4px 10px; border: 2px solid var(--hand); background: var(--hand); color: var(--black);
  font: 700 12px var(--mono);
}
.sd-pill {
  padding: 2px 6px; border: 2px solid var(--white); font: 700 11px var(--mono);
}
.sd-foot {
  display: block; padding: 10px 14px; text-decoration: none;
  background: var(--black); color: var(--hand); font: 700 12px var(--mono);
}
.sd-foot:hover { background: var(--hand); color: var(--black); }
.sd-empty { padding: 14px; font: 13px var(--mono); color: var(--white); }

/* Deals page: Swiss Dark parity */
.deals-hero { border-bottom: 2px solid var(--white); }
.deals-filters.k { background: var(--black); color: var(--white); border-bottom: 2px solid var(--white); }
.deals-filters.k .chip-btn {
  background: var(--black); color: var(--white); border: 2px solid var(--white);
}
.deals-filters.k .chip-btn[aria-current="true"] {
  background: var(--white); color: var(--black); border-color: var(--white);
}
@media (hover: hover) {
  .deals-filters.k .chip-btn:hover:not([aria-current="true"]) {
    background: var(--hand); color: var(--black); border-color: var(--hand);
  }
}
.deals-submit.k { background: var(--black); color: var(--white); border-bottom: 2px solid var(--white); }
.deals-submit.k .shelf-cta { background: var(--white); color: var(--black); border: 2px solid var(--white); }
@media (hover: hover) {
  .deals-submit.k .shelf-cta:hover { background: var(--hand); color: var(--black); border-color: var(--hand); }
}

/* Product stage carousel video thumbnail play indicator */
.thumb-btn { position: relative; }
.thumb-btn .thumb-play {
  position: absolute; left: 4px; bottom: 4px;
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; padding-left: 2px;
  background: var(--hand); color: var(--black);
  border: 1px solid var(--black);
  font: 700 11px/1 var(--mono);
  pointer-events: none;
}
.thumb-btn.vid:hover .thumb-play,
.thumb-btn.vid[aria-current="true"] .thumb-play {
  background: var(--white); color: var(--black);
}
