/* BAD IDEA WEAR — Category A: visual skin only.
 * Loaded after the existing styles. Layout, responsive geometry, interactions,
 * artwork, product swatches and rendered garment/model canvases stay untouched.
 */
.commerce-auth-dialog {
  box-sizing: border-box;
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: clamp(24px, 5vw, 38px);
  border: 1px solid #656565;
  border-radius: 18px;
  color: #f5f5f2;
  background: #121212;
}
.commerce-auth-close {
  display: flex;
  justify-content: flex-end;
  margin: -10px -12px 18px 0;
}
.commerce-auth-close button {
  min-width: 44px;
  min-height: 44px;
  font-size: 24px;
}
.commerce-auth-dialog .commerce-kicker {
  color: #c9ff45;
}
.commerce-auth-dialog h2 {
  margin: 16px 0 12px;
  font-family: 'Arial Black', Arial, Helvetica, sans-serif;
  font-size: clamp(26px, 6vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}
.commerce-auth-dialog p {
  line-height: 1.55;
}
.commerce-auth-lead {
  font-size: 18px;
  font-weight: 700;
}
.commerce-auth-provider {
  color: #ababab;
  font-size: 13px;
}
.commerce-auth-dialog .commerce-auth-error {
  padding: 12px 14px;
  border-left: 3px solid #c9ff45;
  background: #242424;
}
.commerce-auth-actions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.commerce-auth-actions .commerce-btn {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
}
.commerce-auth-dialog :focus-visible {
  outline: 2px solid #c9ff45;
  outline-offset: 4px;
}

:root {
  --bg: #0a0a0a;
  --panel: #121212;
  --panel2: #181818;
  --line: #303030;
  --ink: #f5f5f2;
  --muted: #ababab;
  --lime: #c9ff45;
  --lilac: #f5f5f2;
  --bi-control: #191919;
  --bi-hover: #242424;
  --bi-border: #656565;
  --bi-heading: 'Arial Black', Arial, Helvetica, sans-serif;
  color-scheme: only dark;
}
#studio {
  --panel: #121212;
  --line: #303030;
}
.commerce-page {
  --commerce-paper: #f5f5f2;
  --commerce-soft: #ababab;
}

/* A clean wordmark occupies the existing logo slot; the original source remains
 * the favicon. No extra image competes with the name in the header or footer. */
.wordmark.bi-wordmark {
  color: #f5f5f2;
  letter-spacing: 0;
  font-style: normal;
}
.wordmark.bi-wordmark .bi-wordmark-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-style: normal;
}
.bi-wordmark-text strong {
  font-family: var(--bi-heading);
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1.2px;
}
.wordmark .bi-wordmark-text sup {
  display: inline;
  vertical-align: super;
  margin: 0 0 0 2px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 8px;
  letter-spacing: 0;
}
.bi-wordmark-text small {
  font-size: 8px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.58em;
}
.site-header,
.commerce-header,
.site-footer,
.commerce-footer {
  border-color: var(--line);
}
.site-header nav,
.commerce-header nav a,
.commerce-menu-links a,
.commerce-menu-links button {
  color: #d0d0ce;
}
.commerce-header nav a[aria-current='page'],
.site-header nav a:hover,
.commerce-header nav a:hover {
  color: var(--lime);
}
.commerce-mode,
.demo-bar {
  background: #121212;
  color: #ababab;
  box-shadow: inset 0 -1px var(--line);
}
.demo-bar .status-dot {
  color: var(--lime);
}

/* Editorial typography stays within the existing headline and note blocks. */
.hero h1,
.commerce-main h1,
#studio h2,
.section-heading h2,
.ts-collection-editor-note p,
.ts-collection-catalog h2,
.closing-cta h2 {
  font-family: var(--bi-heading);
  font-weight: 900;
}
.ts-collection-intro h1 {
  font-size: clamp(40px, 5.25vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}
.ts-collection-intro .commerce-kicker {
  font-size: 10px;
  letter-spacing: 0.16em;
}
.ts-collection-editor-note {
  isolation: isolate;
  overflow: hidden;
  border-color: #454545;
  background:
    linear-gradient(90deg, #ffffff05 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(#ffffff05 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(145deg, #252525, #111 75%);
  box-shadow: inset 0 0 0 1px #ffffff12;
}
.ts-collection-editor-note .bi-poster-type {
  position: absolute;
  right: -20px;
  bottom: -24px;
  z-index: -1;
  pointer-events: none;
  color: #ffffff12;
  font-family: var(--bi-heading);
  font-size: clamp(96px, 10.3vw, 156px);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.07em;
  user-select: none;
}
.ts-collection-editor-note .ts-collection-editor-mark {
  display: inline-block;
  pointer-events: none;
  padding: 7px 10px;
  background: var(--lime);
  color: var(--bg);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.025em;
  transform: rotate(-4deg);
}
.ts-collection-editor-note p {
  line-height: 1.07;
  letter-spacing: -0.045em;
}
.ts-collection-editor-note > span:last-child {
  color: #c1c1be;
}
.ts-collection-intro h1 em,
.commerce-hero h1 em,
.section-heading .serif-italic {
  color: var(--ink);
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
}
.lime-text,
.hand-arrow,
.hero-scribble,
.closing-star,
.ts-collection-editor-mark,
.commerce-kicker {
  color: var(--ink);
}
.hero-description,
.hero-small,
.hero-design-label div > span,
.site-footer p,
.site-footer > span,
.commerce-lead {
  color: var(--muted);
}
.hero-circle,
.hero-circle:after {
  border-color: var(--line);
  background: transparent;
}
.hero-grid {
  background-image: radial-gradient(#73737344 1px, transparent 1px);
}
.hero-design-label,
.floating-label {
  background: #121212ed;
  color: var(--ink);
  border-color: var(--bi-border);
  border-radius: 4px;
}
.ticker {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.sticker-lilac {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* Existing actions: restrained defaults, lime only for emphasis and selection. */
.button,
.commerce-btn,
.v-btn,
.v-iconbtn,
.icon-button,
.commerce-header-bag,
.commerce-menu-toggle,
.commerce-editor-controls .icon-only-save {
  border-radius: 4px;
  box-shadow: none;
}
.primary,
.commerce-btn,
.round-button {
  background: var(--lime);
  color: var(--bg);
}
.primary:hover:not(:disabled),
.commerce-btn:not(.secondary):not(.danger):hover:not(:disabled) {
  background: #d7ff7a;
  box-shadow: none;
}
.secondary,
.commerce-btn.secondary,
.v-btn,
.v-iconbtn,
.icon-button,
.commerce-header-bag,
.commerce-menu-toggle,
.commerce-editor-controls .icon-only-save {
  background: var(--bi-control);
  color: var(--ink);
  border-color: var(--bi-border);
}
.secondary:hover:not(:disabled),
.v-btn:hover:not(:disabled),
.v-iconbtn:hover:not(:disabled),
.icon-button:hover:not(:disabled),
.commerce-header-bag:hover,
.commerce-menu-toggle:hover,
.commerce-editor-controls .icon-only-save:hover:not(:disabled) {
  background: var(--bi-hover);
  border-color: var(--lime);
}
.text-link,
.v-link,
.commerce-link {
  color: var(--ink);
  border-color: #767676;
}
.text-link:hover,
.v-link:hover,
.commerce-link:hover {
  color: var(--lime);
}
#commerce-bag-count,
.cart-button #cart-count {
  background: var(--lime);
  color: var(--bg);
}

/* Shop cards retain their illustrations, aspect ratios and ordering. */
.ts-collection-card-link,
.ts-collection-media,
.commerce-card,
.commerce-empty,
.commerce-row,
.commerce-product-photo,
.commerce-hero-photo {
  border-radius: 4px;
}
.ts-collection-media,
.ts-collection-tone-sage,
.ts-collection-tone-lilac,
.ts-collection-tone-lime,
.inspo-art {
  background: radial-gradient(ellipse at 48% 25%, #4b4b4b, #343434 70%);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px #ffffff18;
}
.ts-collection-media::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid #ffffff0d;
  border-radius: inherit;
  pointer-events: none;
}
.ts-collection-card-link:hover .ts-collection-media::after {
  border-color: #ffffff40;
}
.ts-collection-badge {
  background: #0a0a0ae0;
  color: var(--ink);
  border-radius: 2px;
  letter-spacing: 0.025em;
}
.ts-collection-product {
  letter-spacing: 0.04em;
}
.ts-collection-price {
  font-variant-numeric: tabular-nums;
}
.ts-collection-illustration {
  color: #e2e2e0;
}
.ts-collection-card-cta {
  color: var(--ink);
}
.ts-collection-card-link:hover .ts-collection-card-cta {
  color: var(--lime);
}
.commerce-empty,
.commerce-row,
.commerce-design-icon {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--bi-border);
}
.commerce-caption {
  background: var(--panel2);
  color: var(--muted);
}
.commerce-pill,
.v-badge,
.v-technique-badge,
.ts-tech-pill {
  background: var(--panel2);
  color: #cececc;
  border-color: var(--bi-border);
  border-radius: 3px;
}

/* Editor chrome. No selectors target garment SVG content or canvas pixels. */
.v-studio,
.studio-shell {
  background: var(--panel);
  border-color: var(--bi-border);
  border-radius: 5px;
  box-shadow: 0 8px 32px #0003;
}
.v-library,
.v-inspector,
.v-preview,
.v-top,
.v-output,
.v-checks,
.v-preview-footer,
.v-export-row,
.v-production,
.v-image-tools,
.v-image-adjust,
.v-image-main,
.v-modal-head,
.v-modal-foot,
.cart-summary {
  background: var(--panel);
  border-color: var(--line);
}
.v-top {
  background: linear-gradient(180deg, #1b1b1b, #141414);
}
.v-preview-head {
  background: #141414;
  color: var(--ink);
  border-color: var(--line);
}
.v-area-bar,
.v-stage-foot,
.v3-mobile-tabs,
.v3-workflows,
.ts-viewport-tools {
  background: var(--panel2);
  color: var(--ink);
  border-color: var(--line);
}
.v-label,
.v-field,
.field-label,
.v-details summary,
.v3-accordion summary,
.v-production summary,
.commerce-form label,
.commerce-editor-bar label {
  color: #d6d6d3;
}
.v3-subtitle,
.v-mini,
.v-field > span,
.v-empty,
.v-preview-head small,
.v-stage-foot,
.v-stage-foot #stage-hint,
.v-preview-footer span,
.v-checks p,
.v-production p,
.v-below,
.v-image-toolbar,
.v-check,
.v-instruction,
.v-modal-foot p,
.v-honest small,
.v-cart-meta,
.v3-library-tip,
.v-technique p,
.v-area-bar > span,
.v3-font-grid small,
.v-layer-tech,
.v-layer-tech.stitch,
#save-status,
.commerce-editor-note,
.studio-disclaimer,
.cart-quantity .remove-cart {
  color: var(--muted);
}
.v-preview-footer .primary span {
  color: var(--bg);
}
.v-product-options button,
.v-area-bar button,
.v-tile,
.v-stickers button,
.v-layer,
.v-format button,
.v-align button,
.v3-font-grid button,
.v-mask-tools button,
.v3-workflows button,
.ts-viewport-tools button,
.ts-viewport-tools select,
.v-view-switch {
  background: linear-gradient(180deg, #1e1e1e, var(--bi-control));
  color: #d6d6d3;
  border-color: var(--bi-border);
  border-radius: 4px;
}
.v-view-switch button,
.v3-mobile-tabs button,
.v-layer button {
  color: #c3c3c0;
}
.v-layer > span,
.v-font-sample,
.v-tile b,
.v-label span {
  color: var(--ink);
}
.v-tile:hover,
.v-stickers button:hover,
.ts-viewport-tools button:hover,
.ts-viewport-tools select:hover {
  background: var(--bi-hover);
  border-color: var(--lime);
}
.v-layer.active,
.v-product-options button[aria-pressed='true'],
.v-area-bar button[aria-pressed='true'],
.v-format button[aria-pressed='true'],
.v3-font-grid button[aria-pressed='true'],
.v-view-switch button[aria-pressed='true'] {
  background: var(--bi-hover);
  border-color: var(--lime);
  color: var(--lime);
  box-shadow: none;
}
.v-view-switch button[aria-pressed='true'] {
  box-shadow: inset 0 -2px var(--lime);
}
.v-mask-tools button[aria-pressed='true'],
.v3-workflows button[aria-pressed='true'],
.v3-mobile-tabs button[aria-pressed='true'],
.ts-viewport-tools button[aria-pressed='true'] {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--bg);
}
.v-swatches button {
  border-color: var(--panel);
  box-shadow: 0 0 0 1px #717171;
}
.v-swatches button[aria-pressed='true'] {
  box-shadow: 0 0 0 2px var(--lime);
}
.v-field input:not([type='range']):not([type='color']),
.v-field select,
.v-field textarea,
.text-input,
#export-dpi,
.commerce-form input:not([type='checkbox']):not([type='radio']),
.commerce-form select,
.commerce-form textarea,
.commerce-editor-bar input,
.commerce-account select,
.commerce-language {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bi-border);
  border-radius: 4px;
}
.commerce-form option,
.commerce-account option,
.commerce-top-actions .commerce-language option {
  background: var(--panel);
  color: var(--ink);
}
input::placeholder,
textarea::placeholder,
.text-input::placeholder {
  color: #999;
}
.v-field input[type='color'],
.v-format input[type='color'] {
  background: var(--panel);
  border-color: var(--bi-border);
}
.v-divider {
  background: var(--line);
}
.v-details,
.v3-workflows,
.v3-bg-choice button,
.v-font-sample,
.commerce-table-wrap th,
.commerce-table-wrap td,
.commerce-size-row,
.commerce-order-line,
.cart-quantity button {
  border-color: var(--line);
}
.v3-bg-choice button[aria-pressed='true'] {
  border-color: var(--lime);
  box-shadow: 0 0 0 1px var(--lime);
}
.v-technique,
.v-honest,
.v3-banner,
.commerce-note,
.commerce-editor-bar,
.upload-info,
.subtle {
  background: var(--panel2);
  color: #d6d6d3;
  border-color: var(--bi-border);
  border-radius: 4px;
}
.v-technique {
  box-shadow: inset 2px 0 #555;
}
.commerce-customer .commerce-editor-bar {
  background: transparent;
  border-color: var(--line);
}
.v3-banner p,
.commerce-editor-bar .commerce-save-state {
  color: var(--muted);
}

/* Workshop transparency backdrop only: neutralize CSS behind the bitmap,
 * without changing canvas pixels, checker geometry or explicit white/black modes. */
.v-canvas-scroll {
  background-color: #303030;
}
.v-canvas-scroll:not([data-background='white']):not([data-background='black']) canvas {
  background-image: repeating-conic-gradient(#696969 0% 25%, #404040 0% 50%);
}

/* All existing dialogs use the same skin; no focus or modal behavior changes. */
.v-image-dialog,
#confirm-dialog,
.info-dialog,
.cart-dialog,
.commerce-dialog,
.ts-viewport-dialog,
.ts-model-dialog,
dialog.commerce-menu-drawer {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--bi-border);
  box-shadow: 0 16px 60px #0006;
}
.v-image-dialog,
#confirm-dialog,
.info-dialog,
.commerce-dialog,
.ts-viewport-dialog,
.ts-model-dialog {
  border-radius: 5px;
}
.v-image-dialog::backdrop,
#confirm-dialog::backdrop,
.commerce-dialog::backdrop,
.ts-viewport-dialog::backdrop,
.ts-model-dialog::backdrop,
.commerce-menu-drawer::backdrop {
  background: #000b;
}
#confirm-dialog p,
.commerce-menu-identity,
.commerce-menu-auth .commerce-customer-name,
.commerce-menu-drawer .commerce-menu-help,
.commerce-menu-drawer .commerce-menu-footer {
  color: var(--muted);
}
.commerce-menu-links {
  border-color: var(--line);
}
.commerce-menu-links a,
.commerce-menu-links button,
.commerce-menu-heading [data-action='close-menu'] {
  border-radius: 4px;
  border-color: var(--bi-border);
}
.commerce-menu-links a:hover,
.commerce-menu-links button:hover,
.commerce-menu-links a[aria-current='page'],
.commerce-menu-heading [data-action='close-menu']:hover {
  background: var(--bi-hover);
  color: var(--lime);
}
.commerce-toast,
.toast {
  background: var(--panel2);
  color: var(--ink);
  border: 1px solid var(--bi-border);
  border-radius: 4px;
  box-shadow: 0 8px 28px #0005;
}

/* Model gallery controls are chrome. The photos, canvas and detail SVG remain
 * exactly as rendered, including their neutral photographic backgrounds. */
.v-stage.v-lifestyle {
  background: var(--panel);
}
.ts-model-gallery,
.ts-model-heading h3,
.ts-model-detail h4 {
  color: var(--ink);
}
.ts-model-overline,
.ts-model-simulation,
.ts-model-person > span,
.ts-model-caption,
#model-angle-count,
.ts-model-status,
.ts-model-disclosure,
.ts-model-detail p,
.ts-model-dialog-heading {
  color: var(--muted);
}
.ts-model-modes {
  background: var(--bi-control);
  border-color: var(--bi-border);
  border-radius: 4px;
}
.ts-model-gallery .ts-model-modes button,
.ts-model-gallery #model-expand,
.ts-model-gallery #model-close,
.ts-model-angles button {
  color: #cececc;
}
.ts-model-gallery .ts-model-modes button[aria-pressed='true'],
.ts-model-angles button[aria-pressed='true'] {
  background: var(--bi-hover);
  color: var(--lime);
  border-color: var(--lime);
}
.ts-model-angles button:hover {
  border-color: var(--lime);
}
.ts-model-hero,
.ts-model-detail,
.ts-model-detail > svg {
  border-color: var(--bi-border);
}

/* Warning/error semantics remain visually distinct, in addition to their text.
 * These restrained semantic colors are not additional brand accents. */
.commerce-note.warning,
.commerce-conflict {
  background: #201d18;
  color: #edd8b0;
  border-color: #877353;
  border-radius: 4px;
}
.commerce-btn.danger,
.commerce-toast.error,
.toast.error {
  background: #281c1b;
  color: #f3c9c3;
  border-color: #986d67;
}
.ts-model-gallery[data-state='error'] .ts-model-status {
  color: #f3c9c3;
}

/* Existing disabled opacity and checked/pressed indicators are retained. */
button:focus-visible,
a:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.commerce-top-actions :focus-visible,
.commerce-menu-drawer :focus-visible,
.commerce-editor-controls :focus-visible,
.ts-model-gallery button:focus-visible,
.ts-viewport-tools button:focus-visible,
.ts-viewport-tools select:focus-visible {
  outline-color: var(--lime);
}
.toggle-row input:focus-visible + .switch-ui {
  outline-color: var(--lime);
}
textarea:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

/* Scale only the brand within its existing header slot on narrow screens. */
@media (max-width: 800px) {
  .ts-collection-intro h1 {
    font-size: clamp(30px, 8.8vw, 58px);
    line-height: 1.02;
  }
}
@media (max-width: 480px) {
  .bi-wordmark-text strong {
    font-size: 23px;
    letter-spacing: -1px;
  }
  .bi-wordmark-text small {
    font-size: 7px;
  }
}
@media (max-width: 360px) {
  .bi-wordmark-text strong {
    font-size: 21px;
  }
}
