/* Store styles: tokens, base, components, pages. Restrained palette, one accent (indigo). */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("/fonts/plex-sans-latin-wght.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("/fonts/plex-sans-latin-ext-wght.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: italic;
  font-weight: 100 700;
  font-display: swap;
  src: url("/fonts/plex-sans-latin-wght-italic.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/plex-mono-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/plex-mono-latin-500.woff2") format("woff2");
}

/* ---------------------------------------------------------------- tokens */

:root {
  color-scheme: light dark;
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-2: #f4f4f2;
  --surface-3: #eaeae7;
  --text: #1b1b1f;
  --text-2: #4b4b53;
  --text-3: #66666e;
  --border: #e4e4e1;
  --border-strong: #cdcdc8;

  --accent: #2b4c8c;
  --accent-hover: #1e3a70;
  --accent-soft: #edf1f9;
  --ai: #6a3d9a;
  --ai-soft: #f3edfa;
  --primary: #1b1b1f;
  --primary-hover: #34343b;
  --on-primary: #ffffff;

  --success: #19703f;
  --success-soft: #ebf6ef;
  --warning: #855700;
  --warning-soft: #fcf5e4;
  --danger: #b42318;
  --danger-soft: #fdefed;
  --danger-solid: #b42318;
  --info: #2b4c8c;
  --info-soft: #edf1f9;

  --todo-bg: #fff3d1;
  --todo-text: #634400;
  --todo-border: #e9cd85;
  --focus: #2b4c8c;
  --hatch: rgba(27, 27, 31, 0.045);

  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;
  --shadow-pop: 0 1px 2px rgba(20, 20, 30, 0.06), 0 8px 24px rgba(20, 20, 30, 0.08);

  --container: 1160px;
  --gutter: 16px;
  --header-h: 60px;
}

@media (min-width: 640px) {
  :root {
    --gutter: 24px;
  }
}
@media (min-width: 1024px) {
  :root {
    --gutter: 32px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111113;
    --surface: #18181b;
    --surface-2: #1f1f23;
    --surface-3: #2a2a2f;
    --text: #ececee;
    --text-2: #b6b6bd;
    --text-3: #92929b;
    --border: #2b2b31;
    --border-strong: #3d3d45;

    --accent: #a3bcf0;
    --accent-hover: #c2d2f6;
    --accent-soft: #1c2437;
    --ai: #cfb2f2;
    --ai-soft: #251c33;
    --primary: #ececee;
    --primary-hover: #ffffff;
    --on-primary: #111113;

    --success: #74d19c;
    --success-soft: #142219;
    --warning: #e9bd64;
    --warning-soft: #261f10;
    --danger: #f28b7e;
    --danger-soft: #2a1613;
    --info: #a3bcf0;
    --info-soft: #1c2437;

    --todo-bg: #33290f;
    --todo-text: #f2d690;
    --todo-border: #5a4818;
    --focus: #a3bcf0;
    --hatch: rgba(236, 236, 238, 0.04);
    --shadow-pop: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

/* ---------------------------------------------------------------- base */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 56px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "kern";
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
}
img,
video {
  height: auto;
}
h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(1.75rem, 1.45rem + 1.1vw, 2.25rem);
  letter-spacing: -0.018em;
}
h2 {
  font-size: 1.375rem;
}
h3 {
  font-size: 1.0625rem;
}
.h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
p {
  margin: 0 0 1em;
}
a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover {
  color: var(--accent-hover);
  text-decoration-thickness: 2px;
}
code,
kbd,
pre,
.mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
}
hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}
::selection {
  background: var(--accent-soft);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}
main:focus {
  outline: none;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  background: var(--primary);
  color: var(--on-primary);
  padding: 8px 14px;
  border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow {
  max-width: calc(640px + 2 * var(--gutter));
}
.narrow--wide {
  max-width: calc(820px + 2 * var(--gutter));
}

.muted {
  color: var(--text-2);
}
.small {
  font-size: 0.875rem;
}
.strong {
  font-weight: 600;
}
.success {
  color: var(--success);
}
.nowrap {
  white-space: nowrap;
}
.pre-line {
  white-space: pre-line;
}
.break {
  overflow-wrap: anywhere;
}
.d-block {
  display: block;
}
.truncate {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.strike {
  text-decoration: line-through;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.5rem;
}
.lead {
  font-size: 1.125rem;
  color: var(--text-2);
}
.icon {
  flex: none;
}

/* ---------------------------------------------------------------- "To complete" markers */

mark.todo {
  background: var(--todo-bg);
  color: var(--todo-text);
  border: 1px dashed var(--todo-border);
  border-radius: var(--radius-sm);
  padding: 0.05em 0.4em;
  font-size: 0.9em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.todo-label {
  font-family: var(--font-mono);
  font-size: 0.72em;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: 0.35em;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover {
  text-decoration: none;
}
.btn--primary {
  background: var(--primary);
  color: var(--on-primary);
}
.btn--primary:hover {
  background: var(--primary-hover);
  color: var(--on-primary);
}
.btn--secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--secondary:hover {
  background: var(--surface-2);
  color: var(--text);
}
.btn--ghost {
  background: transparent;
  color: var(--text-2);
}
.btn--ghost:hover {
  background: var(--surface-2);
  color: var(--text);
}
.btn--danger {
  background: var(--danger-solid);
  color: #fff;
}
.btn--danger:hover {
  background: color-mix(in srgb, var(--danger-solid) 86%, #000);
  color: #fff;
}
.btn--sm {
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.875rem;
  gap: 6px;
}
.btn--lg {
  min-height: 48px;
  padding: 0 20px;
  font-size: 1rem;
}
.btn--block {
  display: flex;
  width: 100%;
}
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.btn-row--end {
  margin-left: auto;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.link-arrow:hover {
  text-decoration: underline;
}
.inline-form {
  display: inline-flex;
  margin: 0;
}

/* ---------------------------------------------------------------- badges, alerts */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  padding: 0 7px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  vertical-align: middle;
}
.badge--neutral {
  background: var(--surface-2);
  color: var(--text-2);
  border-color: var(--border);
}
.badge--success {
  background: var(--success-soft);
  color: var(--success);
}
.badge--warning {
  background: var(--warning-soft);
  color: var(--warning);
}
.badge--danger {
  background: var(--danger-soft);
  color: var(--danger);
}
.badge--info,
.badge--accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.alert {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin: 0 0 20px;
  font-size: 0.9375rem;
}
.alert > .icon {
  margin-top: 3px;
}
.alert p:last-child,
.alert__body > :last-child {
  margin-bottom: 0;
}
.alert__title {
  font-weight: 600;
  margin: 0 0 2px;
}
.alert--success {
  background: var(--success-soft);
  border-color: color-mix(in srgb, var(--success) 25%, transparent);
}
.alert--success > .icon {
  color: var(--success);
}
.alert--error {
  background: var(--danger-soft);
  border-color: color-mix(in srgb, var(--danger) 25%, transparent);
}
.alert--error > .icon {
  color: var(--danger);
}
.alert--warning {
  background: var(--warning-soft);
  border-color: color-mix(in srgb, var(--warning) 25%, transparent);
}
.alert--warning > .icon {
  color: var(--warning);
}
.alert--info {
  background: var(--info-soft);
  border-color: color-mix(in srgb, var(--info) 22%, transparent);
}
.alert--info > .icon {
  color: var(--info);
}
.alert .inline-form {
  margin-top: 8px;
}
.flash-slot {
  padding-top: 20px;
}
.flash-slot .alert {
  margin-bottom: 0;
}

.empty {
  text-align: center;
  padding: 48px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  margin: 8px 0 24px;
}
.empty__icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-2);
  margin-bottom: 12px;
}
.empty__title {
  font-weight: 600;
  font-size: 1.0625rem;
  margin-bottom: 4px;
}
.empty__body {
  color: var(--text-2);
}
.empty__body > :last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------------------- forms */

.form {
  margin: 0;
}
.form--narrow {
  max-width: 460px;
}
.field {
  margin: 0 0 16px;
  min-width: 0;
}
.field__labelrow {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}
.field__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0 0 6px;
  color: var(--text);
}
.field__req {
  color: var(--danger);
}
.field__hint {
  font-size: 0.8125rem;
  color: var(--text-2);
  margin: 6px 0 0;
}
.field__error {
  font-size: 0.8125rem;
  color: var(--danger);
  margin: 6px 0 0;
  font-weight: 500;
}
.input,
.select,
.textarea {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
  line-height: 1.4;
  transition: border-color 0.15s ease;
}
.textarea {
  min-height: 96px;
  line-height: 1.55;
  resize: vertical;
}
.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--text-3);
}
.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
}
.input[readonly] {
  background: var(--surface-2);
  color: var(--text-2);
}
.has-error .input,
.has-error .textarea,
.input[aria-invalid="true"] {
  border-color: var(--danger);
}
.select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.input--num {
  width: 84px;
}
.input-group {
  display: flex;
  align-items: stretch;
}
.input-group__prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 0.875rem;
  white-space: nowrap;
}
.input-group .input {
  border-radius: 0 var(--radius) var(--radius) 0;
}
.input-icon {
  position: relative;
}
.input-icon > .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
}
.input-icon .input {
  padding-left: 38px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 12px;
}
.check input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--accent);
  flex: none;
}
.check label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.9375rem;
  cursor: pointer;
}
.check__hint {
  font-size: 0.8125rem;
  color: var(--text-2);
}
.check {
  flex-wrap: wrap;
}
.check > label {
  flex: 1 1 0%;
  min-width: 0;
}
.notify-tick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 10px;
  cursor: pointer;
}
.send-confirm {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 18px;
}
.check > .field__error {
  flex-basis: 100%;
  margin: 0 0 0 28px;
}
.check-group {
  display: grid;
  gap: 4px;
  margin: 4px 0 16px;
  padding: 14px 16px 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}
.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}
.check-list {
  display: grid;
  gap: 2px;
  max-height: 420px;
  overflow: auto;
  padding: 4px 2px;
}
.fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 16px;
  min-width: 0;
}
.fieldset--boxed {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px 4px;
  margin-bottom: 16px;
}
.form-grid {
  display: grid;
  gap: 0 20px;
}
@media (min-width: 720px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}
.form-actions--split {
  justify-content: space-between;
}
.form-actions--center {
  justify-content: center;
}
.form-status {
  font-size: 0.875rem;
  margin: 4px 0 0;
  color: var(--text-2);
}
.form-status:empty {
  display: none;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.disclosure {
  margin: 16px 0;
  font-size: 0.9375rem;
}
.disclosure > summary {
  cursor: pointer;
  color: var(--accent);
}

/* ---------------------------------------------------------------- header */

.env-banner {
  background: var(--warning-soft);
  color: var(--warning);
  border-bottom: 1px solid color-mix(in srgb, var(--warning) 20%, transparent);
  font-size: 0.8125rem;
  text-align: center;
  padding: 6px 0;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "brand actions" "nav nav";
  align-items: center;
  column-gap: 16px;
  min-height: var(--header-h);
}
.brand {
  grid-area: brand;
  font-weight: 650;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand:hover {
  color: var(--text);
  text-decoration: none;
}
.site-nav {
  grid-area: nav;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin: 0 calc(var(--gutter) * -1);
  padding: 0 calc(var(--gutter) - 10px) 8px;
}
.site-nav a,
.header-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: var(--radius);
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
}
.site-nav a:hover,
.header-link:hover {
  color: var(--text);
  background: var(--surface-2);
}
.site-nav a[aria-current="page"],
.header-link[aria-current="page"] {
  color: var(--text);
  background: var(--surface-2);
}
.header-actions {
  grid-area: actions;
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}
.header-link {
  position: relative;
}
.count-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.75rem;
  font-weight: 600;
}
@media (max-width: 479px) {
  .header-link__text {
    display: none;
  }
}
@media (min-width: 760px) {
  .site-header__inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand nav actions";
  }
  .site-nav {
    margin: 0;
    padding: 0;
    overflow: visible;
  }
}

/* ---------------------------------------------------------------- footer */

.site-main {
  flex: 1;
}
.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.9375rem;
}
.site-footer__grid {
  display: grid;
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 32px;
  grid-template-columns: 1fr 1fr;
}
.site-footer__brand {
  grid-column: 1 / -1;
  align-self: start;
  display: flex;
  align-items: center;
  gap: 14px;
}
.site-footer__brand p:last-child {
  margin-bottom: 0;
}
.site-footer__logo {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--border);
}
@media (min-width: 860px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
  .site-footer__brand {
    grid-column: auto;
  }
}
.brand--footer {
  margin-bottom: 6px;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.site-footer a {
  color: var(--text-2);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--text);
  text-decoration: underline;
}
.site-footer__withdraw {
  font-weight: 600;
  color: var(--text);
}
.site-footer__head {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 10px;
}
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-bottom: 24px;
  color: var(--text-3);
  font-size: 0.8125rem;
}
.site-footer__bottom::before {
  content: "";
  flex-basis: 100%;
  border-top: 1px solid var(--border);
  margin-bottom: 8px;
}
.site-footer__bottom p {
  margin: 0;
}
.draft-dot {
  color: var(--warning);
  font-size: 0.8125rem;
}

/* ---------------------------------------------------------------- page sections */

.page-head {
  padding: 36px 0 20px;
}
.page-head h1 {
  margin-bottom: 4px;
}
.page-head p {
  margin: 0;
}
/* platform tabs inside a shop category (All / Daz Studio / Blender / Unreal Engine) */
.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.subnav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.subnav a:hover {
  color: var(--text);
  background: var(--surface-2);
}
.subnav a[aria-current="page"] {
  color: var(--surface);
  background: var(--text);
  box-shadow: none;
}
.section {
  padding: 56px 0 0;
}
.section--muted {
  margin-top: 56px;
  padding: 48px 0;
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.section--muted + .section {
  padding-top: 56px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.section-head h2 {
  margin: 0;
}
.text-section {
  max-width: 720px;
}

/* hero */
.hero {
  padding: 48px 0 8px;
}
.hero__grid {
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero {
    padding: 72px 0 16px;
  }
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 56px;
  }
}
.hero__title {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.024em;
  margin-bottom: 16px;
}
.hero__lead {
  font-size: 1.125rem;
  color: var(--text-2);
  max-width: 34em;
  margin-bottom: 28px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.cta-band h2 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}
.cta-band p {
  margin: 0;
}

/* slider (views/slider.tsx): a swipeable row; site.js adds arrows, dots and autoplay */
.slider {
  position: relative;
}
.slider__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  border-radius: var(--radius-lg);
}
.slider--js .slider__track {
  scrollbar-width: none;
}
.slider--js .slider__track::-webkit-scrollbar {
  display: none;
}
.slider__track:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.slider__slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
}
.slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-pop);
  cursor: pointer;
}
.slider__nav:hover {
  background: var(--surface-2);
}
.slider__nav--prev {
  left: 12px;
}
.slider__nav--next {
  right: 12px;
}
.slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.slider__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface-3);
  cursor: pointer;
}
.slider__dot[aria-current="true"] {
  background: var(--accent);
  border-color: var(--accent);
}
@media (prefers-reduced-motion: reduce) {
  .slider__track {
    scroll-behavior: auto;
  }
}

/* front page slider */
.home-slider {
  padding: 28px 0 8px;
}
.slide {
  display: grid;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
}
.slide__media {
  position: relative;
  display: block;
  background: var(--surface-2);
}
.slide__media img,
.slide__media .ph {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.slide__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 24px 24px 28px;
}
.slide__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.slide__meta:empty {
  display: none;
}
.slide__title {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}
.slide__title a {
  color: inherit;
  text-decoration: none;
}
.slide__title a:hover {
  text-decoration: underline;
}
.slide__text {
  color: var(--text-2);
  font-size: 1.0625rem;
  margin: 0;
}
.slide__price {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 4px 0 0;
}
.slide__actions {
  margin-top: 8px;
}
@media (min-width: 900px) {
  .home-slider {
    padding: 40px 0 8px;
  }
  .slide {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  }
  .slide__body {
    padding: 40px 72px 40px 40px;
  }
  .home-slider--compact .slide {
    height: 320px;
  }
  .home-slider--standard .slide {
    height: 440px;
  }
  .home-slider--tall .slide {
    height: 560px;
  }
  /* One row as tall as the slide: a tall (portrait) picture used to stretch the row past the slide's
     height, which cut off the picture and pushed the text out of view (LiveDrape, 2026-11-26). */
  .slide {
    grid-template-rows: minmax(0, 1fr);
  }
  .slide__media {
    min-height: 0;
    overflow: hidden;
  }
  .slide__media img,
  .slide__media .ph {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
  }
}
.home-slider .slider__nav--prev {
  left: -10px;
}
.home-slider .slider__nav--next {
  right: -10px;
}
@media (max-width: 899px) {
  .home-slider .slider__nav {
    top: 28%;
  }
  .home-slider .slider__nav--prev {
    left: 8px;
  }
  .home-slider .slider__nav--next {
    right: 8px;
  }
}

/* product page: picture slider */
.slider--gallery .gallery__item {
  margin: 0;
  position: relative;
}
.slider--gallery .slider__nav {
  top: calc(50% - 20px);
}

.field__tools {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* login safety reminder (sign-in, sign-up, settings) */
.safety-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 20px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-2);
}
.safety-note svg {
  flex: none;
  margin-top: 2px;
  color: var(--accent);
}
.safety-note strong {
  color: var(--text);
}
.block .safety-note {
  margin: 0 0 16px;
  max-width: 40rem;
}

/* support page */
.callout {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 16px 20px;
  margin: 0 0 28px;
}
.callout__title {
  font-size: 1.0625rem;
  margin: 0 0 4px;
}
.callout p {
  margin: 0;
  color: var(--text-2);
}

/* dashboard: options in columns */
.check-cols {
  display: grid;
  gap: 2px 24px;
}
@media (min-width: 700px) {
  .check-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------------------------------------------------------------- placeholders and media */

.ph {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background-color: var(--surface-2);
  background-image: repeating-linear-gradient(135deg, transparent 0 11px, var(--hatch) 11px 12px);
  color: var(--text-3);
}
.ph__inner {
  display: grid;
  justify-items: center;
  gap: 8px;
}
.ph__kind {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.ph__label {
  font-size: 0.8125rem;
  color: var(--text-2);
  max-width: 34ch;
  line-height: 1.45;
}
.ph--sm {
  padding: 8px;
  border-radius: var(--radius);
}
.ph--sm .ph__kind {
  font-size: 0.625rem;
}
.ph--lg .ph__label {
  font-size: 0.9375rem;
}
.media-img,
.media-video {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.media-img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
/* A product picture in its frame (views/ui.tsx MediaView): the frame has the border and cuts off what the zoom
   pushes outside; position / zoom per picture (product_media.framing) via the .cf-* classes. */
.media-frame {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.media-frame .media-img {
  display: block;
  border: 0;
  border-radius: 0;
  object-position: var(--fx, 50%) var(--fy, 50%);
  transform: scale(var(--fz, 1));
  transform-origin: var(--fx, 50%) var(--fy, 50%);
}
.video-embed {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-3);
}
.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-embed__play {
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 16px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.video-embed__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
}
.video-embed__note {
  font-size: 0.75rem;
  color: var(--text-2);
  font-weight: 400;
  max-width: 36ch;
}

/* ---------------------------------------------------------------- product cards */

.product-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.product-card:hover {
  border-color: var(--border-strong);
}
.product-card__media {
  display: block;
  border-bottom: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
}
.product-card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
/* Picture framing (Dashboard -> product -> Front page): --fx/--fy = the point that stays in view, --fz = zoom
   around it. Set by the .cf-x-* / .cf-y-* / .cf-z-* classes at the end of this file (no inline styles: CSP). */
.product-card__media,
.slide__media {
  overflow: hidden;
}
.product-card__media img,
.slide__media img {
  object-position: var(--fx, 50%) var(--fy, 50%);
  transform: scale(var(--fz, 1));
  transform-origin: var(--fx, 50%) var(--fy, 50%);
}
.product-card__media .ph {
  border: 0;
  border-radius: 0;
}
.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 18px 18px;
}
.product-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.8125rem;
  min-height: 22px;
  margin-bottom: 6px;
}
.product-card__title {
  font-size: 1.125rem;
  margin: 0 0 6px;
}
.product-card__title a {
  color: var(--text);
  text-decoration: none;
}
.product-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.product-card {
  position: relative;
}
.product-card__title a:hover {
  text-decoration: underline;
}
.product-card__tagline {
  color: var(--text-2);
  font-size: 0.9375rem;
  flex: 1;
}
.product-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
}
.price {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.price--unset {
  font-weight: 500;
  color: var(--text-2);
}
/* A free product: "Free" in green (cards, slider, product page, everywhere Price is used). */
.price--free {
  color: var(--success);
}
/* sale: the regular price crossed out before the sale price */
.price__was {
  color: var(--text-3);
  font-weight: 400;
  text-decoration-thickness: 1px;
}
.product-card__price {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.buy-box__sale {
  margin: 0 0 12px;
  font-size: 0.875rem;
}

/* ---------------------------------------------------------------- shop toolbar */

.toolbar {
  display: grid;
  gap: 0 12px;
  grid-template-columns: 1fr;
  align-items: end;
  padding: 16px;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.toolbar .field {
  margin-bottom: 12px;
}
.toolbar__submit {
  margin-bottom: 12px;
}
@media (min-width: 640px) {
  .toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .toolbar__search {
    grid-column: 1 / -1;
  }
}
@media (min-width: 960px) {
  .toolbar {
    grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(150px, 1fr)) auto;
    padding-bottom: 4px;
  }
  .toolbar__search {
    grid-column: auto;
  }
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 0.875rem;
  text-decoration: none;
}
.chip:hover {
  background: var(--surface-2);
  color: var(--text);
}
.chip--plain {
  border-color: transparent;
  background: transparent;
  color: var(--accent);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 32px 0 0;
}
.pagination__pages {
  display: flex;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pagination__link,
.pagination__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9375rem;
}
a.pagination__link:hover,
a.pagination__num:hover {
  background: var(--surface-2);
  color: var(--text);
}
.pagination__num.is-current {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}
.is-disabled {
  opacity: 0.45;
}

/* ---------------------------------------------------------------- breadcrumbs */

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-size: 0.875rem;
  color: var(--text-2);
}
.breadcrumbs li + li::before {
  content: "/";
  margin: 0 8px;
  color: var(--text-3);
}
.breadcrumbs a {
  color: var(--text-2);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ---------------------------------------------------------------- product page */

.product-page {
  padding-top: 24px;
}
.preview-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 20px;
  border: 1px dashed var(--todo-border);
  background: var(--todo-bg);
  color: var(--todo-text);
  border-radius: var(--radius);
  font-size: 0.9375rem;
}
.product-top {
  display: grid;
  gap: 20px;
  grid-template-areas: "main" "buy" "rest";
}
.gallery__main {
  grid-area: main;
}
.buy-box {
  grid-area: buy;
}
.gallery__grid {
  grid-area: rest;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 960px) {
  .product-top {
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);
    grid-template-areas: "main buy" "rest buy";
    grid-template-rows: auto 1fr;
    column-gap: 40px;
    row-gap: 16px;
    align-items: start;
  }
  .buy-box {
    position: sticky;
    top: calc(var(--header-h) + 20px);
  }
  .gallery__grid {
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}
.gallery__grid figure {
  margin: 0;
}
.gallery__grid figcaption {
  font-size: 0.8125rem;
  color: var(--text-2);
  margin-top: 6px;
}
/* product page: click a picture or video to see it large (views/lightbox.tsx). Always dark, in both themes. */
.zoomable {
  display: block;
  cursor: zoom-in;
  border-radius: var(--radius-lg);
}
.zoomable:hover .media-frame {
  border-color: var(--border-strong);
}
.zoomable-video {
  position: relative;
}
.zoomable-video video {
  display: block;
}
.zoomable-video__open {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: transparent;
  cursor: zoom-in;
}
.zoomable-video__open[hidden] {
  display: none;
}
.zoomable-video__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(10, 10, 12, 0.66);
  color: #fff;
}
.zoomable-video__open:hover .zoomable-video__icon {
  background: rgba(10, 10, 12, 0.86);
}
.lightbox-open {
  overflow: hidden;
}
.lightbox {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 24px 80px;
  background: rgba(10, 10, 12, 0.985);
  color: #f4f4f5;
  overflow: hidden;
}
.lightbox:focus {
  outline: none;
}
.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lightbox-in 0.15s ease-out;
}
@keyframes lightbox-in {
  from {
    opacity: 0;
  }
}
.lightbox__stage {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}
.lightbox__stage--video {
  width: 100%;
}
.lightbox__video {
  display: block;
  width: 100%;
  max-height: calc(100vh - 110px);
  max-height: calc(100dvh - 110px);
  border-radius: var(--radius);
  background: #000;
}
.lightbox__embed {
  width: 100%;
  max-width: calc((100vh - 110px) * 16 / 9);
  max-width: calc((100dvh - 110px) * 16 / 9);
}
.lightbox__img[hidden],
.lightbox__video[hidden],
.lightbox__embed[hidden] {
  display: none;
}
.lightbox__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 110px);
  max-height: calc(100dvh - 110px);
  border-radius: var(--radius);
}
.lightbox__caption {
  font-size: 0.875rem;
  color: #d4d4d8;
  text-align: center;
}
.lightbox__count {
  margin-right: 10px;
  color: #a1a1aa;
  white-space: nowrap;
}
.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
}
.lightbox__btn[hidden] {
  display: none;
}
.lightbox__btn:hover {
  background: rgba(255, 255, 255, 0.26);
}
.lightbox__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.lightbox__btn--close {
  top: 16px;
  right: 16px;
}
.lightbox__btn--prev,
.lightbox__btn--next {
  top: calc(50% - 22px);
}
.lightbox__btn--prev {
  left: 18px;
}
.lightbox__btn--next {
  right: 18px;
}
@media (max-width: 639px) {
  .lightbox {
    padding: 68px 8px 76px;
  }
  .lightbox__img,
  .lightbox__video {
    max-height: calc(100vh - 200px);
    max-height: calc(100dvh - 200px);
  }
  .lightbox__btn--prev,
  .lightbox__btn--next {
    top: auto;
    bottom: 16px;
  }
  .lightbox__btn--prev {
    left: calc(50% - 56px);
  }
  .lightbox__btn--next {
    right: calc(50% - 56px);
  }
}
.buy-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.buy-box__title {
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem);
  margin-bottom: 6px;
}
.buy-box__tagline {
  color: var(--text-2);
  margin-bottom: 18px;
}
.buy-box__price {
  font-size: 1.625rem;
  margin-bottom: 4px;
}
.buy-box__price .muted {
  font-size: 0.875rem;
  font-weight: 400;
}
.buy-box__note {
  font-size: 0.8125rem;
  color: var(--text-2);
  margin-bottom: 0;
}
.buy-box__actions {
  display: grid;
  gap: 8px;
  margin: 18px 0 4px;
  justify-items: start;
}
.buy-box__actions .btn--block {
  justify-self: stretch;
}
.buy-box__includes {
  margin-top: 18px;
}
.buy-box__includes ul {
  margin: 6px 0 0;
  padding-left: 1.2em;
  font-size: 0.9375rem;
}
.facts {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  border-top: 1px solid var(--border);
}
.facts li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.facts__k {
  color: var(--text-2);
}

.section-tabs {
  position: sticky;
  top: var(--header-h);
  z-index: 5;
  margin: 40px 0 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.section-tabs ul {
  display: flex;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-x: auto;
}
.section-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.section-tabs a:hover {
  color: var(--text);
  border-bottom-color: var(--border-strong);
}
.product-body {
  max-width: 780px;
}
.product-section {
  padding: 36px 0 8px;
  border-bottom: 1px solid var(--border);
}
.product-section:last-child {
  border-bottom: 0;
}

/* "Good to know" (views/good-to-know.tsx): honest limits, on the product page and in My Products. */
.good-to-know {
  padding: 18px 20px;
  background: var(--info-soft);
  border: 1px solid color-mix(in srgb, var(--info) 28%, transparent);
  border-left: 4px solid var(--info);
  border-radius: var(--radius);
  scroll-margin-top: 80px;
}
.good-to-know__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
}
.good-to-know__title .icon {
  color: var(--info);
}
.good-to-know > :last-child {
  margin-bottom: 0;
}
.good-to-know__report {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--info) 22%, transparent);
  font-size: 0.9375rem;
}
.buy-box__know {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin: 4px 0 0;
  font-size: 0.875rem;
  color: var(--text-2);
}
.buy-box__know .icon {
  flex: none;
  margin-top: 2px;
  color: var(--info);
}

/* prose (rendered Markdown) */
.prose {
  overflow-wrap: break-word;
}
.prose > :last-child {
  margin-bottom: 0;
}
.prose h1,
.prose h2,
.prose h3 {
  margin-top: 1.4em;
}
.prose h2 {
  font-size: 1.25rem;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
  margin: 0 0 1em;
}
.prose li {
  margin: 0.25em 0;
}
.prose li::marker {
  color: var(--text-3);
}
.prose code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.05em 0.35em;
}
.prose pre {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  overflow-x: auto;
}
.prose pre code {
  background: none;
  border: 0;
  padding: 0;
}
.prose blockquote {
  margin: 0 0 1em;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--border-strong);
  color: var(--text-2);
}
.prose table {
  border-collapse: collapse;
  margin: 0 0 1em;
  font-size: 0.9375rem;
}
.prose th,
.prose td {
  border: 1px solid var(--border);
  padding: 6px 10px;
  text-align: left;
}
.doc h2 {
  margin-top: 1.6em;
}

/* changelog */
.changelog {
  list-style: none;
  padding: 0;
  margin: 0;
}
.changelog__item {
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.changelog__item:first-child {
  border-top: 0;
  padding-top: 4px;
}
.changelog__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  font-size: 1rem;
  margin-bottom: 8px;
}
.changelog__head time {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-2);
}
.changelog details > summary {
  cursor: pointer;
  list-style-position: outside;
}
.changelog--feed .changelog__head a {
  color: var(--text);
  text-decoration: none;
}
.changelog--feed .changelog__head a:hover {
  text-decoration: underline;
}

.release-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}
.release-list__item {
  display: grid;
  gap: 2px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 720px) {
  .release-list__item {
    grid-template-columns: 260px 120px 1fr;
    align-items: baseline;
  }
}
.release-list__product {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.release-list__product:hover {
  text-decoration: underline;
}
.release-list__item p {
  margin: 0;
  font-size: 0.9375rem;
}
.release-list__item time {
  font-size: 0.875rem;
  color: var(--text-2);
}

/* ---------------------------------------------------------------- cart */

.cart-layout {
  display: grid;
  gap: 24px;
  align-items: start;
}
@media (min-width: 960px) {
  .cart-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
  }
  .cart-summary {
    position: sticky;
    top: calc(var(--header-h) + 20px);
  }
}
.cart-items {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.cart-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  grid-template-areas: "media body price" "media body remove";
  gap: 4px 16px;
  padding: 16px;
  border-top: 1px solid var(--border);
}
.cart-item:first-child {
  border-top: 0;
}
.cart-item__media {
  grid-area: media;
}
.cart-item__media img {
  width: 88px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.cart-item__media .ph {
  width: 88px;
}
.cart-item__body {
  grid-area: body;
}
.cart-item__name {
  font-weight: 600;
  margin-bottom: 2px;
}
.cart-item__name a {
  color: var(--text);
  text-decoration: none;
}
.cart-item__name a:hover {
  text-decoration: underline;
}
.cart-item__price {
  grid-area: price;
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  display: grid;
}
.cart-item__remove {
  grid-area: remove;
  justify-self: end;
  align-self: end;
}
.cart-item__problem {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--danger);
  font-size: 0.875rem;
  font-weight: 500;
  margin: 6px 0 0;
}
.cart-item__note {
  color: var(--warning);
  margin: 6px 0 0;
}
.cart-item.has-problem {
  background: var(--danger-soft);
}
.cart-summary {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 20px;
}
.cart-summary__title {
  font-size: 1.125rem;
}
.discount {
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.discount__row {
  display: flex;
  gap: 8px;
}
.discount__applied {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
}
.discount__applied span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.totals {
  margin: 0 0 12px;
}
.totals > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  font-size: 0.9375rem;
}
.totals dt {
  color: var(--text-2);
}
.totals dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.totals .success dt,
.totals .success dd {
  color: var(--success);
}
.totals__total {
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 12px !important;
  font-size: 1.125rem !important;
  font-weight: 600;
}
.totals__total dt {
  color: var(--text) !important;
}
.cart-summary__auth,
.checkout-form {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.checkout-form .check label {
  font-size: 0.875rem;
}
.admin-note {
  color: var(--warning);
}

/* ---------------------------------------------------------------- confirmation */

.confirm {
  text-align: center;
  padding: 48px 0 0;
}
.confirm__icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-2);
  margin-bottom: 16px;
}
.confirm__icon--ok {
  background: var(--success-soft);
  color: var(--success);
}
.confirm__icon--warn {
  background: var(--warning-soft);
  color: var(--warning);
}
.confirm__items {
  list-style: none;
  padding: 0;
  margin: 24px auto;
  max-width: 440px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.confirm__items li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}
.confirm__items li:first-child {
  border-top: 0;
}
.confirm__total {
  font-weight: 600;
}
.spinner {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2.5px solid var(--border-strong);
  border-top-color: var(--text);
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------------------------------------------------------------- account */

.account {
  display: grid;
  gap: 24px;
  padding-top: 32px;
}
@media (min-width: 900px) {
  .account {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 40px;
  }
}
.account > * {
  min-width: 0;
}
.account__who {
  display: grid;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}
.account__nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
}
@media (min-width: 900px) {
  .account__nav ul {
    flex-direction: column;
  }
}
.account__nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  white-space: nowrap;
}
.account__nav a:hover {
  background: var(--surface-2);
  color: var(--text);
}
.account__nav a[aria-current="page"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border);
}
.account__title {
  margin-bottom: 20px;
}
.block {
  margin: 0 0 32px;
}
.block__title {
  font-size: 1.125rem;
  margin-bottom: 12px;
}
.tiles {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 32px;
}
.tile {
  display: grid;
  gap: 2px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}
.tile:hover {
  border-color: var(--border-strong);
  color: var(--text);
}
.tile .icon {
  color: var(--text-3);
  margin-bottom: 6px;
}
.tile__value {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
}
.tile__value--text {
  font-size: 1.125rem;
}
.tile__label {
  font-size: 0.875rem;
  color: var(--text-2);
}

.library {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.library__item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
@media (max-width: 559px) {
  .library__item {
    grid-template-columns: 1fr;
  }
  .library__media {
    max-width: 200px;
  }
}
.library__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.library__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.library__title {
  font-size: 1.125rem;
  margin: 0;
}
.library__title a {
  color: var(--text);
  text-decoration: none;
}
.library__title a:hover {
  text-decoration: underline;
}
.library__body p {
  margin: 4px 0 10px;
}
.library__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.license {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  margin: 0 0 12px;
  font-size: 0.9375rem;
}
.license--compact {
  padding: 8px 10px;
  font-size: 0.875rem;
}
.license__label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
}
.license__code {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  user-select: all;
}
/* Hidden by default (screen sharing, streams); the eye button is a checkbox, so it works without JavaScript. */
.license__full,
.license__hide-text,
.license__toggle:checked ~ .license__code .license__masked,
.license__toggle:checked ~ .license__show .license__show-text {
  display: none;
}
.license__toggle:checked ~ .license__code .license__full,
.license__toggle:checked ~ .license__show .license__hide-text {
  display: inline;
}
.license__show {
  cursor: pointer;
}
.license__toggle:focus-visible ~ .license__show {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.license--pending {
  color: var(--text-2);
}

.versions {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.versions__item {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.versions__item.is-latest {
  border-color: var(--border-strong);
}
.versions__head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 8px;
}
.versions__head time {
  color: var(--text-2);
  font-size: 0.875rem;
}
.versions__notes {
  margin-top: 10px;
  font-size: 0.9375rem;
}
.versions__notes summary {
  cursor: pointer;
  color: var(--accent);
  margin-bottom: 6px;
}
.files {
  list-style: none;
  padding: 0;
  margin: 0;
}
.files__item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.files__item:first-child {
  border-top: 0;
}
.files__item > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.files__label {
  font-weight: 500;
}
.files__hash summary {
  font-size: 0.8125rem;
  color: var(--text-2);
  cursor: pointer;
}
.files__hash code {
  overflow-wrap: anywhere;
}

/* auth */
.auth-card {
  margin: 40px auto 0;
  max-width: 440px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.auth-card h1 {
  font-size: 1.625rem;
}
.auth-card__alt {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--text-2);
}

/* tables */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.table th,
.table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.table thead th {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface-2);
  white-space: nowrap;
}
.table tbody tr:last-child td {
  border-bottom: 0;
}
.table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.table--compact th,
.table--compact td {
  padding: 8px 12px;
}
.table-wrap > .table {
  background: var(--surface);
}

/* receipt */
.receipt {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 24px;
  margin-bottom: 20px;
}
.receipt__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}
.receipt__number {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 2px;
}
.receipt__table tfoot th {
  text-align: right;
  font-weight: 400;
  color: var(--text-2);
}
.receipt__table tfoot td,
.receipt__table tfoot th {
  border-bottom: 0;
  padding-top: 6px;
  padding-bottom: 6px;
}
.receipt__total th,
.receipt__total td {
  font-weight: 600 !important;
  color: var(--text) !important;
  border-top: 1px solid var(--border);
}
.receipt__meta {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 20px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
}
.receipt__meta dt {
  font-size: 0.8125rem;
  color: var(--text-2);
  margin-bottom: 2px;
}
.receipt__meta dd {
  margin: 0;
}

/* support */
.support__grid {
  display: grid;
  gap: 40px;
  align-items: start;
}
@media (min-width: 960px) {
  .support__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 56px;
  }
  .support__form {
    position: sticky;
    top: calc(var(--header-h) + 20px);
  }
}
.support__form {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.faq-group {
  margin-bottom: 28px;
}
.faq-group__title {
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}
.faq {
  border-bottom: 1px solid var(--border);
}
.faq:first-of-type {
  border-top: 1px solid var(--border);
}
.faq > summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}
.faq > summary::-webkit-details-marker {
  display: none;
}
.faq > summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-right: 1.6px solid var(--text-2);
  border-bottom: 1.6px solid var(--text-2);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.faq[open] > summary::after {
  transform: rotate(225deg);
  margin-top: 10px;
}
.faq > .prose {
  padding: 0 0 16px;
  color: var(--text-2);
}

.error-page {
  padding-top: 64px;
}

/* ---------------------------------------------------------------- motion, print */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .spinner {
    animation: none;
    border-top-color: var(--border-strong);
  }
}

@media print {
  .site-header,
  .site-footer,
  .env-banner,
  .account__nav,
  .no-print,
  .skip-link,
  .breadcrumbs {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .account {
    display: block;
    padding: 0;
  }
  .receipt {
    border: 0;
    padding: 0;
  }
}

/* ---------------------------------------------------------------- AI labels */
.badge--ai {
  background: var(--ai-soft);
  color: var(--ai);
}
.badge--ai .icon {
  vertical-align: -2px;
}
.product-card__media,
.gallery__main,
.gallery__grid figure {
  position: relative;
}
.buy-box__ai {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 8px;
}

/* ---------------------------------------------------------------- reviews */
.stars {
  color: #c98a00;
  letter-spacing: 1px;
  white-space: nowrap;
}
.stars__off {
  color: var(--border);
}
.buy-box__rating {
  margin: 0 0 8px;
  font-size: 0.875rem;
}
/* Buy box top row: badge + category left, the average rating (one star + number) right. */
.buy-box__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 0.5rem;
}
.buy-box__top .eyebrow {
  margin-bottom: 0;
}
.buy-box__avg {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.buy-box__avg:hover {
  text-decoration: underline;
}
.buy-box__avg-star {
  color: #c98a00;
  font-size: 1.15em;
}
.buy-box__rating a {
  color: inherit;
  text-decoration: none;
}
.buy-box__rating a:hover {
  text-decoration: underline;
}

/* "★★★★★ 4.8 | 12 ratings" (views/ui.tsx StarRating): product cards and the buy box */
.star-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-2);
}
.star-rating > a {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
}
.star-rating > a:hover {
  text-decoration: none;
}
.star-rating > a:hover .star-rating__text {
  text-decoration: underline;
}
.star-rating__stars {
  color: #c98a00;
  font-size: 1.05em;
  letter-spacing: 1px;
  white-space: nowrap;
}
.star-rating__off {
  color: var(--border-strong);
}
.star-rating__value {
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.star-rating__sep {
  color: var(--text-3);
  margin: 0 6px;
}
.product-card__rating {
  margin: -2px 0 8px;
}

/* ---------------------------------------------------------------- pulse: like, favorite, views */
/* views/pulse.tsx, under the buy button. Pill buttons with the count inside; pressed ones fill
   their icon (heart: red, star: gold). */
.pulse {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.pulse__form {
  margin: 0;
}
.pulse__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px 6px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease;
}
.pulse__btn:hover {
  border-color: var(--text-3);
  background: var(--surface-2);
}
.pulse__btn:disabled {
  cursor: default;
  opacity: 0.6;
}
.pulse__btn[aria-busy="true"] {
  cursor: progress;
}
.pulse__btn svg {
  flex: none;
  transition: transform 0.2s ease;
}
.pulse__n {
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.pulse__n:empty {
  display: none;
}
.pulse__btn--like[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--danger) 45%, var(--border));
  background: var(--danger-soft);
}
.pulse__btn--like[aria-pressed="true"] svg {
  color: var(--danger);
  fill: currentColor;
}
.pulse__btn--favorite[aria-pressed="true"] {
  border-color: color-mix(in srgb, #c98a00 50%, var(--border));
  background: var(--warning-soft);
}
.pulse__btn--favorite[aria-pressed="true"] svg {
  color: #c98a00;
  fill: currentColor;
}
.pulse__btn[aria-pressed="true"] svg {
  transform: scale(1.08);
}
.pulse__views {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--text-2);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
.pulse__views[hidden] {
  display: none;
}
/* "Add to wishlist" right under the buy button: a plain secondary button that fills its bookmark
   when the product is on the list. */
.wish {
  margin: 8px 0 0;
}
.wish__btn svg {
  flex: none;
}
.wish__btn[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  background: var(--accent-soft);
  color: var(--accent);
}
.wish__btn[aria-pressed="true"] svg {
  fill: currentColor;
}
/* Account -> Wishlist: a card with its buttons underneath */
.wish-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wish-item > .product-card {
  flex: 1;
}
.wish-item__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.wish-item__actions form {
  margin: 0;
}
.wish-item__actions .form-status:empty {
  display: none;
}
.wish-total {
  margin-top: 20px;
  font-size: 0.9375rem;
}
.pulse__status {
  flex-basis: 100%;
  margin: 0;
  color: var(--text-2);
  font-size: 0.8125rem;
}
.pulse__status:empty {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .pulse__btn,
  .pulse__btn svg {
    transition: none;
  }
}
.reviews__summary {
  font-size: 1rem;
}
.review-list {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.review {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--surface);
}
.review__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.review__body {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}
.review-form {
  margin-top: 16px;
  max-width: 640px;
}
.review-form__title {
  margin-top: 0;
}
.rating-input {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rating-input label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  color: #c98a00;
}
.rating-input input {
  accent-color: var(--accent);
}

/* An empty picture slot as customers see it: a calm tile, no notes. */
.ph--plain .ph__inner {
  opacity: 0.45;
}

/* Website design: optional picture banners at the top of a page (Dashboard -> Website design,
   src/lib/design.ts). Position (--bx/--by), zoom (--bz) and shade (--shade) come from /design.css.
   Heights follow the banner's own width (container queries), so the dashboard preview shows the
   computer and the phone size side by side. */
.banner-wrap {
  container-type: inline-size;
  padding-top: 24px;
}
.banner {
  --bx: 50%;
  --by: 50%;
  --bz: 1;
  --shade: 0.35;
  --shade-rgb: 0, 0, 0;
  --h: 170px;
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: var(--h);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}
.banner--sm {
  --h: 120px;
}
.banner--lg {
  --h: 230px;
}
@container (min-width: 600px) {
  .banner--sm {
    --h: 160px;
  }
  .banner--md {
    --h: 240px;
  }
  .banner--lg {
    --h: 320px;
  }
}
@container (min-width: 900px) {
  .banner--sm {
    --h: 200px;
  }
  .banner--md {
    --h: 300px;
  }
  .banner--lg {
    --h: 420px;
  }
}
/* "Whole picture": the banner takes the picture's own shape (--ar from design.css, the first
   picture's width / height), so nothing is cut off on any screen. Text over it can make it taller. */
.banner--full {
  min-height: auto;
  aspect-ratio: var(--ar, 16 / 9);
}
.banner [hidden] {
  display: none !important;
}
.banner__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--bx) var(--by);
  transform: scale(var(--bz));
  transform-origin: var(--bx) var(--by);
}
.banner__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(var(--shade-rgb), var(--shade));
}
.banner--left .banner__shade {
  background: linear-gradient(90deg, rgba(var(--shade-rgb), var(--shade)) 0%, rgba(var(--shade-rgb), calc(var(--shade) * 0.55)) 60%, rgba(var(--shade-rgb), calc(var(--shade) * 0.15)) 100%);
}
.banner--right .banner__shade {
  background: linear-gradient(270deg, rgba(var(--shade-rgb), var(--shade)) 0%, rgba(var(--shade-rgb), calc(var(--shade) * 0.55)) 60%, rgba(var(--shade-rgb), calc(var(--shade) * 0.15)) 100%);
}
.banner--plain .banner__shade {
  display: none;
}
.banner--ink-dark {
  --shade-rgb: 255, 255, 255;
}
.banner__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 20px;
}
@container (min-width: 600px) {
  .banner__body {
    padding: 28px 36px;
  }
}
@container (min-width: 900px) {
  .banner__body {
    padding: 36px 56px;
  }
}
.banner--left .banner__body {
  align-items: flex-start;
  text-align: left;
}
.banner--center .banner__body {
  align-items: center;
  text-align: center;
}
.banner--right .banner__body {
  align-items: flex-end;
  text-align: right;
}
.banner__body > * {
  max-width: 36em;
}
.banner--ink-light .banner__body {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.banner--ink-dark .banner__body {
  color: #111113;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}
.banner__title {
  margin: 0;
  font-size: clamp(1.375rem, 1rem + 2.4cqi, 2.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.banner__text {
  margin: 0;
  font-size: clamp(0.9375rem, 0.85rem + 0.5cqi, 1.125rem);
  line-height: 1.5;
}
.banner__btn {
  position: relative;
  z-index: 1; /* above the picture link */
  margin-top: 6px;
  text-shadow: none;
}
/* Picture link (Dashboard -> Website design -> Link): the whole banner is clickable. */
.banner__cover {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.banner__cover:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
}
.banner:has(.banner__cover:hover) .banner__img {
  filter: brightness(1.05);
}
.banner__img {
  transition: filter 0.2s ease;
}
@media (prefers-reduced-motion: reduce) {
  .banner__img {
    transition: none;
  }
}
.banner--ink-light .banner__btn {
  background: #fff;
  border-color: #fff;
  color: #111113;
}
.banner--ink-light .banner__btn:hover {
  background: #e9e9ec;
  color: #111113;
}
.banner--ink-dark .banner__btn {
  background: #111113;
  border-color: #111113;
  color: #fff;
}
.banner--ink-dark .banner__btn:hover {
  background: #34343b;
  color: #fff;
}
@media (min-width: 900px) {
  .banner-wrap {
    padding-top: 32px;
  }
}

/* ---------------------------------------------------------------- pictures beside the page */
/* Dashboard -> Website design -> Sides of the page (views/side.tsx). They sit in the empty space
   left and right of the top of the page and scroll away with it, like the rest of the page.
   Smaller screens have no room for them, so they are hidden there (and, being lazy-loaded,
   never downloaded). */
.side-art {
  display: none;
}
/* The box is the free space of the first screen: from level with the top of the content (32px
   under the menu) to 24px above the bottom of the screen, and from 16px off the screen's edge to
   24px before the page (at most 760px wide, for very wide screens). About 370 x 830 on a 1920
   screen, 690 x 1180 on a 2560 one. */
@media (min-width: 1500px) {
  .site-main {
    position: relative; /* the side pictures are placed from the top of the main area */
  }
  .side-art {
    display: block;
    position: absolute;
    top: 32px;
    z-index: 4; /* below the sticky header and section tabs */
    width: min(760px, calc((100% - var(--container)) / 2 + var(--gutter) - 40px));
    height: calc(100vh - var(--header-h) - 56px);
    pointer-events: none; /* only the picture itself takes clicks */
  }
  .side-art--left {
    right: calc(50% + var(--container) / 2 - var(--gutter) + 24px);
  }
  .side-art--right {
    left: calc(50% + var(--container) / 2 - var(--gutter) + 24px);
  }
}
.side-art--left {
  text-align: right; /* the picture hugs the page */
}
/* "Whole picture": as big as the free space allows. The frame is exactly as big as the picture,
   so click areas land on their spots; it also cuts off what the zoom pushes outside. */
.side-art__frame {
  position: relative;
  display: inline-block;
  vertical-align: top;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  pointer-events: auto;
}
/* "Fill the free space": the picture covers the whole box; the edges can be cut off. */
.side-art--fill .side-art__frame,
.side-art--fill .side-art__link {
  display: block;
  width: 100%;
  height: 100%;
}
.side-art--fill .side-art__img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}
.side-art__link {
  display: block;
  border-radius: var(--radius-lg);
}
.side-art__link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -3px; /* inside: the frame cuts off what is outside */
}
/* Position and zoom (Dashboard: the side picture's "Position and zoom"; values from /design.css):
   the point --sx/--sy stays in view, --sz zooms in around it. */
.side-art__img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - var(--header-h) - 56px); /* the box height: 32px under the menu, 24px above the bottom */
  object-position: var(--sx, 50%) var(--sy, 50%);
  transform: scale(var(--sz, 1));
  transform-origin: var(--sx, 50%) var(--sy, 50%);
  transition: filter 0.2s ease;
}
.side-art__link:hover .side-art__img {
  filter: brightness(1.05);
}
@media (prefers-reduced-motion: reduce) {
  .side-art__img {
    transition: none;
  }
}
@media print {
  .side-art {
    display: none;
  }
}

/* ---------------------------------------------------------------- click areas on pictures */
/* Dashboard -> Website design -> Click areas: links over spots of a banner or side picture.
   site.js "Click areas" places them where the spot is shown; without JavaScript they stay hidden
   (the picture link, if any, still works). */
.hotspot {
  position: absolute;
  z-index: 2;
  display: none;
  border-radius: 6px;
}
.hotspot.is-placed {
  display: block;
}
.hotspot:hover {
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.9),
    0 0 0 4px rgba(0, 0, 0, 0.3);
}
.hotspot:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------- banner with several pictures */
/* views/banner.tsx PageBanner + site.js "Banner pictures": the pictures lie on top of each other
   in one spot (as tall as the tallest) and fade in turn. Without JavaScript: the first one. */
.banner-show {
  position: relative;
}
.banner-show__slides {
  display: grid;
}
.banner-show__slides > .banner {
  grid-area: 1 / 1;
}
.banner-show__slides > .banner:not(:first-child) {
  visibility: hidden;
}
.banner-show.is-ready .banner-show__slides > .banner {
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.6s ease,
    visibility 0s linear 0.6s;
}
.banner-show.is-ready .banner-show__slides > .banner.is-active {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.6s ease;
}
@media (prefers-reduced-motion: reduce) {
  .banner-show.is-ready .banner-show__slides > .banner,
  .banner-show.is-ready .banner-show__slides > .banner.is-active {
    transition: none;
  }
}
.banner-show__controls {
  position: absolute;
  left: 50%;
  bottom: 8px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  transform: translateX(-50%);
}
.banner-show:not(.is-ready) .banner-show__controls {
  display: none;
}
.banner-show__pause,
.banner-show__dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #fff;
  cursor: pointer;
}
.banner-show__dot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}
.banner-show__dot[aria-current="true"]::before {
  background: #fff;
}
.banner-show__dot:hover::before {
  background: rgba(255, 255, 255, 0.85);
}
.banner-show__pause:focus-visible,
.banner-show__dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
}
.banner-show__when-paused,
.banner-show.is-paused .banner-show__when-playing {
  display: none;
}
.banner-show.is-paused .banner-show__when-paused {
  display: inline-flex;
}
.banner-show__when-playing {
  display: inline-flex;
}

/* Reviews: the store's reply under a review, and the author's own "Edit or delete your review" box (views/product.tsx). */
.review__reply {
  margin-top: 10px;
  padding: 10px 14px;
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.review__reply-head {
  margin: 0 0 4px;
  color: var(--text-2);
}
.review__reply p:last-child {
  margin-bottom: 0;
}
.review__own {
  margin-top: 8px;
}
.review__own > summary {
  cursor: pointer;
  color: var(--text-2);
}
.review__own .review-form {
  margin: 10px 0 8px;
}

/* Picture framing values (lib/display.ts framingClass): position 0-100 %, zoom 100-300 % in steps of 5. */
.cf-x-0{--fx:0%}.cf-x-1{--fx:1%}.cf-x-2{--fx:2%}.cf-x-3{--fx:3%}.cf-x-4{--fx:4%}.cf-x-5{--fx:5%}.cf-x-6{--fx:6%}.cf-x-7{--fx:7%}.cf-x-8{--fx:8%}.cf-x-9{--fx:9%}.cf-x-10{--fx:10%}.cf-x-11{--fx:11%}.cf-x-12{--fx:12%}.cf-x-13{--fx:13%}.cf-x-14{--fx:14%}.cf-x-15{--fx:15%}.cf-x-16{--fx:16%}.cf-x-17{--fx:17%}.cf-x-18{--fx:18%}.cf-x-19{--fx:19%}.cf-x-20{--fx:20%}.cf-x-21{--fx:21%}.cf-x-22{--fx:22%}.cf-x-23{--fx:23%}.cf-x-24{--fx:24%}.cf-x-25{--fx:25%}.cf-x-26{--fx:26%}.cf-x-27{--fx:27%}.cf-x-28{--fx:28%}.cf-x-29{--fx:29%}.cf-x-30{--fx:30%}.cf-x-31{--fx:31%}.cf-x-32{--fx:32%}.cf-x-33{--fx:33%}.cf-x-34{--fx:34%}.cf-x-35{--fx:35%}.cf-x-36{--fx:36%}.cf-x-37{--fx:37%}.cf-x-38{--fx:38%}.cf-x-39{--fx:39%}.cf-x-40{--fx:40%}.cf-x-41{--fx:41%}.cf-x-42{--fx:42%}.cf-x-43{--fx:43%}.cf-x-44{--fx:44%}.cf-x-45{--fx:45%}.cf-x-46{--fx:46%}.cf-x-47{--fx:47%}.cf-x-48{--fx:48%}.cf-x-49{--fx:49%}.cf-x-50{--fx:50%}.cf-x-51{--fx:51%}.cf-x-52{--fx:52%}.cf-x-53{--fx:53%}.cf-x-54{--fx:54%}.cf-x-55{--fx:55%}.cf-x-56{--fx:56%}.cf-x-57{--fx:57%}.cf-x-58{--fx:58%}.cf-x-59{--fx:59%}.cf-x-60{--fx:60%}.cf-x-61{--fx:61%}.cf-x-62{--fx:62%}.cf-x-63{--fx:63%}.cf-x-64{--fx:64%}.cf-x-65{--fx:65%}.cf-x-66{--fx:66%}.cf-x-67{--fx:67%}.cf-x-68{--fx:68%}.cf-x-69{--fx:69%}.cf-x-70{--fx:70%}.cf-x-71{--fx:71%}.cf-x-72{--fx:72%}.cf-x-73{--fx:73%}.cf-x-74{--fx:74%}.cf-x-75{--fx:75%}.cf-x-76{--fx:76%}.cf-x-77{--fx:77%}.cf-x-78{--fx:78%}.cf-x-79{--fx:79%}.cf-x-80{--fx:80%}.cf-x-81{--fx:81%}.cf-x-82{--fx:82%}.cf-x-83{--fx:83%}.cf-x-84{--fx:84%}.cf-x-85{--fx:85%}.cf-x-86{--fx:86%}.cf-x-87{--fx:87%}.cf-x-88{--fx:88%}.cf-x-89{--fx:89%}.cf-x-90{--fx:90%}.cf-x-91{--fx:91%}.cf-x-92{--fx:92%}.cf-x-93{--fx:93%}.cf-x-94{--fx:94%}.cf-x-95{--fx:95%}.cf-x-96{--fx:96%}.cf-x-97{--fx:97%}.cf-x-98{--fx:98%}.cf-x-99{--fx:99%}.cf-x-100{--fx:100%}
.cf-y-0{--fy:0%}.cf-y-1{--fy:1%}.cf-y-2{--fy:2%}.cf-y-3{--fy:3%}.cf-y-4{--fy:4%}.cf-y-5{--fy:5%}.cf-y-6{--fy:6%}.cf-y-7{--fy:7%}.cf-y-8{--fy:8%}.cf-y-9{--fy:9%}.cf-y-10{--fy:10%}.cf-y-11{--fy:11%}.cf-y-12{--fy:12%}.cf-y-13{--fy:13%}.cf-y-14{--fy:14%}.cf-y-15{--fy:15%}.cf-y-16{--fy:16%}.cf-y-17{--fy:17%}.cf-y-18{--fy:18%}.cf-y-19{--fy:19%}.cf-y-20{--fy:20%}.cf-y-21{--fy:21%}.cf-y-22{--fy:22%}.cf-y-23{--fy:23%}.cf-y-24{--fy:24%}.cf-y-25{--fy:25%}.cf-y-26{--fy:26%}.cf-y-27{--fy:27%}.cf-y-28{--fy:28%}.cf-y-29{--fy:29%}.cf-y-30{--fy:30%}.cf-y-31{--fy:31%}.cf-y-32{--fy:32%}.cf-y-33{--fy:33%}.cf-y-34{--fy:34%}.cf-y-35{--fy:35%}.cf-y-36{--fy:36%}.cf-y-37{--fy:37%}.cf-y-38{--fy:38%}.cf-y-39{--fy:39%}.cf-y-40{--fy:40%}.cf-y-41{--fy:41%}.cf-y-42{--fy:42%}.cf-y-43{--fy:43%}.cf-y-44{--fy:44%}.cf-y-45{--fy:45%}.cf-y-46{--fy:46%}.cf-y-47{--fy:47%}.cf-y-48{--fy:48%}.cf-y-49{--fy:49%}.cf-y-50{--fy:50%}.cf-y-51{--fy:51%}.cf-y-52{--fy:52%}.cf-y-53{--fy:53%}.cf-y-54{--fy:54%}.cf-y-55{--fy:55%}.cf-y-56{--fy:56%}.cf-y-57{--fy:57%}.cf-y-58{--fy:58%}.cf-y-59{--fy:59%}.cf-y-60{--fy:60%}.cf-y-61{--fy:61%}.cf-y-62{--fy:62%}.cf-y-63{--fy:63%}.cf-y-64{--fy:64%}.cf-y-65{--fy:65%}.cf-y-66{--fy:66%}.cf-y-67{--fy:67%}.cf-y-68{--fy:68%}.cf-y-69{--fy:69%}.cf-y-70{--fy:70%}.cf-y-71{--fy:71%}.cf-y-72{--fy:72%}.cf-y-73{--fy:73%}.cf-y-74{--fy:74%}.cf-y-75{--fy:75%}.cf-y-76{--fy:76%}.cf-y-77{--fy:77%}.cf-y-78{--fy:78%}.cf-y-79{--fy:79%}.cf-y-80{--fy:80%}.cf-y-81{--fy:81%}.cf-y-82{--fy:82%}.cf-y-83{--fy:83%}.cf-y-84{--fy:84%}.cf-y-85{--fy:85%}.cf-y-86{--fy:86%}.cf-y-87{--fy:87%}.cf-y-88{--fy:88%}.cf-y-89{--fy:89%}.cf-y-90{--fy:90%}.cf-y-91{--fy:91%}.cf-y-92{--fy:92%}.cf-y-93{--fy:93%}.cf-y-94{--fy:94%}.cf-y-95{--fy:95%}.cf-y-96{--fy:96%}.cf-y-97{--fy:97%}.cf-y-98{--fy:98%}.cf-y-99{--fy:99%}.cf-y-100{--fy:100%}
.cf-z-100{--fz:1}.cf-z-105{--fz:1.05}.cf-z-110{--fz:1.1}.cf-z-115{--fz:1.15}.cf-z-120{--fz:1.2}.cf-z-125{--fz:1.25}.cf-z-130{--fz:1.3}.cf-z-135{--fz:1.35}.cf-z-140{--fz:1.4}.cf-z-145{--fz:1.45}.cf-z-150{--fz:1.5}.cf-z-155{--fz:1.55}.cf-z-160{--fz:1.6}.cf-z-165{--fz:1.65}.cf-z-170{--fz:1.7}.cf-z-175{--fz:1.75}.cf-z-180{--fz:1.8}.cf-z-185{--fz:1.85}.cf-z-190{--fz:1.9}.cf-z-195{--fz:1.95}.cf-z-200{--fz:2}.cf-z-205{--fz:2.05}.cf-z-210{--fz:2.1}.cf-z-215{--fz:2.15}.cf-z-220{--fz:2.2}.cf-z-225{--fz:2.25}.cf-z-230{--fz:2.3}.cf-z-235{--fz:2.35}.cf-z-240{--fz:2.4}.cf-z-245{--fz:2.45}.cf-z-250{--fz:2.5}.cf-z-255{--fz:2.55}.cf-z-260{--fz:2.6}.cf-z-265{--fz:2.65}.cf-z-270{--fz:2.7}.cf-z-275{--fz:2.75}.cf-z-280{--fz:2.8}.cf-z-285{--fz:2.85}.cf-z-290{--fz:2.9}.cf-z-295{--fz:2.95}.cf-z-300{--fz:3}
