.eyebrow,
.muted {
  color: var(--muted);
}

.eyebrow {
  color: var(--brand);
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lede {
  max-width: 620px;
  font-size: 20px;
  line-height: 1.5;
}

.contact-note {
  margin-top: 28px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.contact-note a {
  color: var(--text);
  text-underline-offset: 5px;
}

.primary-link,
.primary-button,
button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.primary-link,
.secondary-link,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-color: var(--brand);
  background: var(--brand);
  color: white;
  font-weight: 500;
}

.secondary-link {
  background: transparent;
  color: var(--brand);
}

.secondary-link:disabled {
  cursor: not-allowed;
  border-color: var(--line);
  color: var(--muted);
  opacity: 0.55;
}

.primary-button:disabled {
  cursor: not-allowed;
  border-color: var(--line);
  background: var(--line);
  color: var(--muted);
  opacity: 0.7;
}

.pbl-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(20px, 3vw, 34px);
  padding: clamp(22px, 4vw, 58px);
}

.featured-media {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 18px;
}

.hero-media-stage {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  container-type: size;
}

.hero-media-stage > .artwork-media,
.hero-media-stage > .process-video-button {
  width: fit-content;
  height: fit-content;
  max-width: 100cqw;
  max-height: 100cqh;
  box-sizing: border-box;
}

.hero-media-stage .artwork-media-button {
  width: fit-content;
  height: fit-content;
}

.hero-media-stage .artwork-media img {
  max-width: calc(100cqw - var(--artwork-frame-padding-total));
  max-height: calc(100cqh - var(--artwork-frame-padding-total));
}

.hero-media-stage .process-video {
  width: auto;
  height: auto;
  max-width: 100cqw;
  max-height: 100cqh;
  box-sizing: border-box;
}

.process-video {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(70vh, 560px);
  display: block;
  background: var(--surface-2);
  border: 1px solid var(--line);
  object-fit: contain;
  padding: clamp(12px, 2vw, 22px);
}

.hero-process .process-video {
  min-height: 0;
  filter: saturate(0.78);
  justify-self: center;
}

.process-video-button {
  width: fit-content;
  height: auto;
  justify-self: center;
}

.featured-copy {
  width: 100%;
  max-width: 640px;
  display: grid;
  align-content: start;
}

.featured-copy h2 {
  min-height: 2lh;
}

.featured-copy .primary-link {
  width: fit-content;
  margin-top: 12px;
}

.featured-copy h2,
.process-section h2,
.studio-panel h2,
.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 68px);
  font-weight: 300;
  line-height: 0.98;
}

.featured-copy p,
.artwork-card p,
.studio-panel p {
  line-height: 1.55;
}

.artwork-description {
  white-space: pre-line;
}

.section-band {
  padding: clamp(46px, 7vw, 104px) clamp(22px, 4vw, 58px);
  border-top: 1px solid var(--line);
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.artwork-card h3 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 300;
  line-height: 1.05;
}

.artwork-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.artwork-card {
  display: grid;
  grid-template-rows: auto 42px 1fr;
  gap: 8px;
}

.artwork-card-gallery {
  display: contents;
}

.artwork-card-body {
  display: grid;
  grid-template-rows: 84px minmax(0, 1fr) 32px 44px;
  align-items: start;
  height: 100%;
  padding: 0 clamp(12px, 2vw, 20px) 4px;
}

.artwork-meta {
  display: flex;
  justify-content: space-between;
  align-self: center;
  gap: 12px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.artwork-action {
  width: 100%;
  min-height: 44px;
}

.artwork-card-actions {
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.artwork-card-actions .artwork-action {
  flex: 1;
}

.artwork-checkout-error {
  margin: 8px 0 0;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.4;
}

.artwork-like-form {
  flex: 0 0 auto;
  margin-left: auto;
}

.artwork-like-button {
  position: relative;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  padding: 6px;
  background: transparent;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.artwork-like-button::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  z-index: 2;
  width: max-content;
  max-width: 180px;
  border: 1px solid var(--line);
  padding: 6px 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translateY(2px);
  transition: opacity 120ms ease, transform 120ms ease;
  white-space: nowrap;
}

.artwork-like-button:hover::after,
.artwork-like-button:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.artwork-like-button:hover,
.artwork-like-button.liked {
  color: var(--brand);
}

.artwork-like-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.artwork-like-heart {
  font-size: 22px;
  line-height: 1;
}

.artwork-action:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.interest-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  text-underline-offset: 4px;
  text-decoration: underline;
}

.interest-link:hover {
  color: var(--text);
}

.interest-dialog {
  width: min(420px, calc(100vw - 36px));
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 0;
  box-shadow: var(--shadow);
}

.interest-dialog::backdrop {
  background: rgba(17, 17, 17, 0.22);
}

.interest-dialog-form {
  position: relative;
  display: grid;
  gap: 14px;
  padding: clamp(22px, 5vw, 34px);
}

.interest-dialog h4,
.interest-dialog p {
  margin: 0;
}

.interest-dialog h4 {
  font-size: 24px;
  font-weight: 300;
  line-height: 1.1;
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
}

.dialog-close:hover {
  color: var(--text);
}

.artwork-media {
  --artwork-frame-padding: clamp(12px, 2vw, 22px);
  --artwork-frame-padding-total: clamp(24px, 4vw, 44px);
  width: fit-content;
  max-width: 100%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface-2);
  padding: var(--artwork-frame-padding);
  justify-self: center;
}

.artwork-media-slot {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: end center;
  container-type: size;
}

.artwork-media-slot .artwork-media {
  width: fit-content;
  height: fit-content;
  max-width: 100cqw;
  max-height: 100cqh;
  box-sizing: border-box;
}

.artwork-media-slot .artwork-media-button,
.artwork-media-slot .artwork-card-media-item {
  width: fit-content;
  height: fit-content;
}

.artwork-media-slot .artwork-media img,
.artwork-media-slot .artwork-media video {
  max-width: calc(100cqw - var(--artwork-frame-padding-total));
  max-height: calc(100cqh - var(--artwork-frame-padding-total));
}

.artwork-card-media-item {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
}

.artwork-card-media-item[hidden] {
  display: none;
}

.artwork-card-media-item video {
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
}

.artwork-media-button {
  width: 100%;
  height: 100%;
  display: flex;
  min-width: 0;
  min-height: 0;
  place-items: center;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.artwork-media-button:hover {
  cursor: zoom-in;
}

.artwork-media-button picture {
  display: flex;
}

.artwork-media img {
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: min(70vh, 560px);
  display: block;
  object-fit: contain;
  object-position: center;
}

.artwork-preview-dialog {
  box-sizing: border-box;
  inline-size: max-content;
  block-size: max-content;
  width: max-content;
  height: max-content;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  padding: 0;
  box-shadow: var(--shadow);
  overflow: hidden;
  line-height: 0;
}

.artwork-preview-dialog[open] {
  display: inline-grid;
}

.artwork-preview-dialog::backdrop {
  background: rgba(17, 17, 17, 0.36);
}

.artwork-preview-frame {
  box-sizing: border-box;
  position: relative;
  width: max-content;
  height: max-content;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 32px);
  background: var(--surface-2);
  line-height: 0;
}

.artwork-preview-frame img {
  max-width: min(1000px, calc(100vw - 96px));
  max-height: calc(100dvh - 128px);
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  justify-self: center;
  align-self: center;
}

.artwork-preview-gallery {
  width: max-content;
  height: max-content;
  grid-template-rows: auto auto;
  gap: 14px;
}

.artwork-preview-stage {
  width: max-content;
  height: max-content;
  max-width: 100%;
  max-height: calc(100dvh - 150px);
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
}

.artwork-preview-item {
  width: max-content;
  height: max-content;
  max-width: 100%;
  max-height: calc(100dvh - 150px);
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
}

.artwork-preview-item[hidden] {
  display: none;
}

.artwork-preview-item img,
.artwork-preview-item video {
  width: auto;
  height: auto;
  max-width: min(1000px, calc(100vw - 96px));
  max-height: calc(100dvh - 190px);
  display: block;
  object-fit: contain;
}

.artwork-media-thumbnails {
  width: 100%;
  min-width: 0;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  padding: 2px;
}

.artwork-media-thumbnail {
  position: relative;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 4px;
  background: var(--surface);
}

.artwork-media-thumbnail.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}

.artwork-media-thumbnail img,
.artwork-media-thumbnail video {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  display: block;
  object-fit: cover;
}

.artwork-card-thumbnails {
  min-height: 42px;
  justify-content: center;
  gap: 6px;
  padding: 2px 0;
}

.artwork-card-thumbnail-slot {
  min-width: 0;
  height: 42px;
}

.artwork-card-thumbnails .artwork-media-thumbnail {
  flex-basis: 38px;
  width: 38px;
  height: 38px;
  padding: 2px;
  opacity: 0.58;
}

.artwork-card-thumbnails .artwork-media-thumbnail.active,
.artwork-card-thumbnails .artwork-media-thumbnail:hover {
  opacity: 1;
}

.artwork-video-badge {
  position: absolute;
  right: 3px;
  bottom: 3px;
  padding: 3px 4px;
  background: rgba(17, 17, 17, 0.78);
  color: #fff;
  font-size: 9px;
  line-height: 1;
}

.process-video-dialog video {
  max-width: min(1000px, calc(100vw - 96px));
  max-height: calc(100dvh - 128px);
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.process-section,
.studio-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(24px, 5vw, 68px);
  align-items: center;
}

.process-media-frame img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(70vh, 520px);
}

.studio-panel {
  margin: clamp(34px, 5vw, 70px) clamp(22px, 4vw, 58px);
  padding: clamp(28px, 5vw, 70px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 1px color-mix(in srgb, var(--brand) 28%, transparent);
}

.studio-logo-frame {
  box-sizing: border-box;
  max-width: min(100%, 460px);
  justify-self: center;
}

.pbl-bio {
  display: grid;
  gap: 8px;
  margin: 18px 0 22px;
}

.pbl-bio p {
  margin: 0;
  color: var(--text);
  font-size: clamp(16px, 1.6vw, 19px);
  letter-spacing: 0.02em;
}

.pbl-bio strong {
  font-weight: 400;
}

.page-hero {
  padding: clamp(54px, 8vw, 120px) clamp(22px, 4vw, 58px);
}

.page-hero h1 {
  max-width: 980px;
}

.checkout-result {
  min-height: calc(100vh - 64px);
  display: grid;
  align-items: center;
  padding: 72px clamp(22px, 4vw, 58px);
}

.checkout-result-inner {
  width: min(760px, 100%);
  display: grid;
  gap: 20px;
}

.checkout-result h1 {
  margin: 0;
  max-width: 720px;
  font-size: 64px;
  font-weight: 300;
  line-height: 1;
}

.checkout-result-lede {
  margin: 0;
  max-width: 660px;
  font-size: 21px;
  line-height: 1.55;
}

.checkout-result-note {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  line-height: 1.6;
}

.checkout-result-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.checkout-result-canceled .eyebrow {
  color: var(--muted);
}

@media (max-width: 760px) {
  .checkout-result {
    min-height: calc(100vh - 96px);
    align-items: start;
    padding-top: 72px;
  }

  .checkout-result h1 {
    font-size: 42px;
  }

  .checkout-result-lede {
    font-size: 18px;
  }

  .checkout-result-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 30px clamp(22px, 4vw, 58px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a {
  text-decoration: none;
}

.site-footer nav a {
  position: relative;
}

.site-footer nav a + a {
  padding-left: 16px;
}

.site-footer nav a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 14px;
  background: var(--line);
  transform: translateY(-50%);
}

.footer-identity {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-brand {
  font-weight: 500;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.social-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.gallery-list {
  padding-top: 0;
}

@media (prefers-reduced-motion: reduce) {
  .process-video {
    animation: none;
  }
}
.shop-shell {
  height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(320px, 390px) 1fr;
  align-items: stretch;
  overflow: hidden;
}

[x-cloak] {
  display: none !important;
}

.panel {
  min-height: 0;
  background: var(--surface);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.staff-banner {
  display: grid;
  gap: 4px;
  margin: 20px 20px 0;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.staff-banner strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.panel-section {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.panel-section h1,
.panel-section h2 {
  margin: 0 0 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  padding: 9px 10px;
}

.field-hint {
  margin: 7px 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.custom-size-row {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.custom-size-toggle {
  margin-bottom: 12px;
}

.measurement-input {
  position: relative;
  display: block;
}

.measurement-input input {
  padding-right: 42px;
}

.measurement-input > span {
  position: absolute;
  top: 50%;
  right: 11px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.stack {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.check {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 9px;
  min-height: 30px;
}

.check input {
  width: 18px;
  min-height: 18px;
}

.disabled {
  opacity: 0.65;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.segmented button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.preview-stage {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  justify-items: center;
  gap: 18px;
  padding: clamp(18px, 4vw, 44px);
  background: var(--bg);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.map-stage {
  min-width: 0;
  width: 100%;
  display: grid;
  justify-items: start;
}

.map-wrap {
  position: relative;
  min-width: 0;
  width: min(100%, calc((100vh - 164px) * var(--preview-aspect, 0.7071)));
  max-width: calc(100vw - 390px - clamp(18px, 4vw, 44px) * 2);
  max-height: calc(100vh - 64px - clamp(18px, 4vw, 44px) * 2);
  aspect-ratio: var(--preview-aspect, 0.7071);
  min-height: 0;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.generated-svg-preview {
  position: absolute;
  top: clamp(18px, 4vw, 44px);
  right: clamp(18px, 4vw, 44px);
  z-index: 5;
  display: grid;
  justify-items: end;
  max-width: calc(100% - clamp(36px, 8vw, 88px));
}

.generated-svg-preview.is-expanded {
  position: fixed;
  top: calc(64px + clamp(18px, 4vw, 44px));
  width: min(
    var(--generated-svg-preview-width, 560px),
    calc(100vw - clamp(36px, 8vw, 88px))
  );
  max-width: calc(100vw - clamp(36px, 8vw, 88px));
  max-height: calc(100vh - 64px - clamp(36px, 8vw, 88px));
  justify-items: stretch;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.generated-svg-preview-toggle {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.generated-svg-preview-resize-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 10px;
  cursor: ew-resize;
  touch-action: none;
}

.generated-svg-preview-resize-handle.is-left {
  left: -5px;
}

.generated-svg-preview-resize-handle.is-right {
  right: -5px;
}

.generated-svg-preview.is-outdated .generated-svg-preview-toggle {
  border-color: color-mix(in srgb, var(--accent) 46%, var(--line));
}

.generated-svg-preview-content {
  display: grid;
  gap: 12px;
  padding: 10px;
}

.generated-svg-preview-drag-handle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.generated-svg-preview-drag-handle:active {
  cursor: grabbing;
}

.generated-svg-preview-drag-handle h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
}

.generated-svg-preview-collapse {
  display: grid;
  place-items: center;
  width: 32px;
  min-height: 32px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.generated-svg-preview.is-outdated {
  color: var(--text);
}

.generated-svg-preview-footer {
  display: grid;
  gap: 10px;
}

.generated-svg-preview-actions {
  display: grid;
  gap: 8px;
}

.generated-svg-preview-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}

.generated-svg-preview-warning {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line));
  border-radius: 8px;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
}

.generated-svg-preview-warning p {
  flex: 1 1 280px;
  margin: 0;
}

.generated-svg-preview-frame {
  position: relative;
  width: 100%;
  aspect-ratio: var(--preview-aspect, 0.7071);
  overflow: hidden;
  border: 1px solid var(--line);
  box-sizing: border-box;
  background: var(--surface);
}

.generated-svg-preview.is-outdated .generated-svg-preview-frame {
  border-color: color-mix(in srgb, var(--accent) 46%, var(--line));
}

.generated-svg-preview.is-outdated .generated-svg-preview-frame::after {
  content: "Outdated SVG";
  position: absolute;
  top: 10px;
  left: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line));
  border-radius: 999px;
  padding: 5px 9px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  color: var(--text);
  font-size: 12px;
  line-height: 1;
  backdrop-filter: blur(4px);
}

.generated-svg-preview-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.generated-svg-preview.is-outdated .generated-svg-preview-frame img {
  opacity: 0.55;
  filter: grayscale(0.7);
}

.map-print-area {
  position: absolute;
  top: var(--print-padding-y, 3%);
  right: var(--print-padding-x, 3%);
  bottom: var(--print-padding-y, 3%);
  left: var(--print-padding-x, 3%);
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line);
}

.map-map-area {
  position: absolute;
  top: 0;
  right: 0;
  bottom: var(--footer-height, 16%);
  left: 0;
  overflow: hidden;
  background: var(--bg);
}

#map {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  transform-origin: center;
}

.map-detail-stepper {
  display: grid;
  grid-template-columns: 18px minmax(22px, auto) 18px;
  align-items: stretch;
  min-height: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.map-detail-stepper button {
  width: 18px;
  min-height: 24px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.map-detail-stepper button:first-child {
  border-right: 1px solid var(--line);
}

.map-detail-stepper button:last-child {
  border-left: 1px solid var(--line);
}

.map-detail-stepper button:disabled {
  color: var(--muted);
  cursor: default;
  opacity: 0.45;
}

.map-detail-stepper-value {
  display: grid;
  place-content: center;
  min-width: 22px;
  padding: 2px 4px;
  text-align: center;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.map-detail-stepper.disabled {
  opacity: 0.5;
}

.map-footer-area {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: var(--footer-height, 16%);
  display: grid;
  grid-template-columns: minmax(74px, 1fr) minmax(0, 1.8fr) minmax(34px, 1fr);
  align-items: center;
  gap: clamp(4px, 1.2vw, 10px);
  border-top: 1px solid var(--line);
  padding: 0 clamp(5px, 1.2vw, 12px);
  box-sizing: border-box;
  background: var(--surface);
  container-type: size;
}

.map-signature-logo {
  position: relative;
  z-index: 2;
  display: inline-block;
  width: var(--signature-logo-width, 88%);
  height: var(--signature-logo-height, 88%);
  max-width: 100%;
  justify-self: end;
  align-self: center;
  background: transparent;
  pointer-events: none;
}

.map-signature-logo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--signature-logo-color, var(--brand));
  mask: var(--signature-logo-url) center / contain no-repeat;
  -webkit-mask: var(--signature-logo-url) center / contain no-repeat;
}

.layer-color-swatch {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border: 1px solid var(--line);
  background: var(--layer-color);
}

.plotter-pen-list,
.plotter-pen-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.plotter-pen-list {
  margin-bottom: 12px;
}

.map-layer-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.map-layer-table th,
.map-layer-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.map-layer-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.map-layer-table th:first-child {
  width: 34%;
}

.map-layer-table th:nth-child(2) {
  width: 17%;
}

.map-layer-table th:nth-child(3) {
  width: 27%;
}

.map-layer-table th:nth-child(4) {
  width: 22%;
}

.map-layer-table th:first-child,
.map-layer-table td:first-child {
  padding-left: 0;
}

.map-layer-table th:last-child,
.map-layer-table td:last-child {
  padding-right: 0;
}

.map-detail-column-header {
  display: grid;
  gap: 6px;
}

.map-detail-column-header small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}

.map-layer-table .map-layer-border-group-start td {
  border-top: 2px solid var(--text);
  padding-top: 10px;
}

.map-layer-group-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.map-layer-boundary-toggle {
  width: fit-content;
}

.subdivision-detail-control {
  margin-top: 10px;
}

.subdivision-detail-control select {
  min-height: 34px;
  padding: 6px 8px;
}

.subdivision-range-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}

.layer-fill-effect-select {
  min-height: 30px;
  max-width: 150px;
}

.fill-pattern-panel {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.fill-pattern-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fill-pattern-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

.fill-pattern-item {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  padding: 12px;
  background: var(--bg);
}

.fill-pattern-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fill-pattern-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fill-pattern-pen-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.fill-pattern-point-fields {
  display: contents;
}

.poi-radius-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.poi-radius-circle {
  position: absolute;
  border: 1px dashed var(--poi-radius-color, var(--brand));
  border-radius: 9999px;
  background: color-mix(in srgb, var(--poi-radius-color, var(--brand)) 10%, transparent);
  box-sizing: border-box;
}

.point-of-interest-marker {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 2px solid var(--bg);
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 1px var(--text);
  color: var(--bg);
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
}

.plotter-pen-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.plotter-pen-chip.disabled {
  opacity: 0.45;
}

.plotter-pen-swatch {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--pen-color);
}

.plotter-pen-option {
  position: relative;
  display: inline-grid;
  grid-template-columns: none;
  cursor: pointer;
}

.plotter-pen-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plotter-pen-option input:checked + .plotter-pen-swatch {
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text);
}

.plotter-pen-options.disabled {
  opacity: 0.35;
  pointer-events: none;
}

.maptiler-free-logo-attribution {
  z-index: 3;
  display: inline-flex;
  width: fit-content;
  pointer-events: auto;
}

.maptiler-free-logo-attribution img {
  display: block;
  height: 14px;
  width: auto;
}

.map-data-attribution {
  z-index: 3;
  display: grid;
  gap: 1px;
  justify-items: start;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  padding: 2px 4px;
  background: rgba(255, 255, 255, 0.88);
  color: #1f2933;
  font-size: 8px;
  line-height: 1.12;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  pointer-events: auto;
}

.map-data-attribution a {
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-footer-attribution,
.map-footer-text {
  min-width: 0;
}

.map-footer-attribution {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 2px;
  overflow: hidden;
}

.map-footer-text {
  display: grid;
  align-content: center;
  justify-self: center;
  width: 100%;
  gap: 2px;
  text-align: center;
  line-height: 1.25;
  pointer-events: none;
}

.map-footer-text strong,
.map-footer-text span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-footer-text strong {
  color: var(--text);
  font-size: clamp(8px, calc(var(--footer-text-size, 18cqh) * var(--footer-title-scale, 1.15)), 18px);
  font-weight: 500;
  margin-bottom: var(--footer-title-gap, 0);
}

.map-footer-text span {
  color: var(--muted);
  font-size: clamp(7px, var(--footer-text-size, 18cqh), 16px);
  white-space: pre;
}

.map-data-attribution a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.status-pill {
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 8px 11px;
}

.message {
  color: var(--accent-strong);
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.share-link {
  width: fit-content;
}

.production-summary {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.production-summary p {
  margin: 0;
  overflow-wrap: anywhere;
}

.error {
  color: var(--danger);
}

.narrow {
  max-width: 680px;
  margin: 0 auto;
  padding: 70px 22px;
}

@media (max-width: 860px) {
  .pbl-hero,
  .section-grid,
  .artwork-grid,
  .process-section,
  .studio-panel {
    grid-template-columns: 1fr;
  }

  .pbl-hero {
    padding-top: 28px;
  }

  .featured-media {
    grid-template-rows: auto auto;
  }

  .featured-copy h2 {
    min-height: 0;
  }

  .artwork-card-body {
    grid-template-rows: auto auto 32px 44px;
  }

  .studio-logo-frame {
    justify-self: start;
    max-width: min(100%, 280px);
  }

  .shop-shell {
    height: auto;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .panel {
    min-height: 0;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: visible;
  }

  .preview-stage {
    min-height: 72vh;
    overflow: visible;
  }

  .map-wrap {
    width: min(100%, calc(72vh * var(--preview-aspect, 0.7071)));
    max-width: calc(100vw - clamp(18px, 4vw, 44px) * 2);
  }

  .generated-svg-preview.is-expanded {
    width: min(
      var(--generated-svg-preview-width, 560px),
      calc(100vw - clamp(36px, 8vw, 88px))
    );
    max-height: calc(72vh - clamp(36px, 8vw, 88px));
  }
}
