/* Refinement pass: retain KIRVATO's graphite/champagne and silver/sapphire identity. */
:root {
  --k-focus: #a0793c;
  --k-ease: cubic-bezier(0.2, 0.75, 0.2, 1);
  --k-shadow: 0 12px 32px #24324212;
  --k-silver: #eef0f2;
  --k-text: #263746;
}
::selection {
  background: #d6bd87;
  color: #17212b;
}
input,
textarea {
  caret-color: #86632e;
}
a {
  text-underline-offset: 0.24em;
}
html {
  scrollbar-color: #8d98a3 #e5e8eb;
}
h1,
h2,
h3 {
  text-wrap: balance;
  letter-spacing: -0.035em;
}
.card-price strong,
.detail-price strong,
.selection-info strong {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
}
.owner-entry {
  display: inline-block;
  margin: 12px 0 0 20px;
  min-height: 44px;
  padding: 10px 0;
  color: #d8c7a7;
}
.owner-access a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}
body:before,
.main:before,
.catalog-stage:after,
.product-visual:after,
.contact-strip:after {
  display: none;
}
.scroll-progress {
  box-shadow: none;
}
.header {
  backdrop-filter: none;
  background: #15171b;
  box-shadow: none;
}
.brand img,
.brand:hover img {
  box-shadow: 0 0 0 1px #c7ae7d55;
  transform: none;
}
.brand strong {
  text-shadow: none;
}
.intro > div:first-child,
.payment-note,
.catalog-type-tabs {
  animation: none;
}
.intro {
  min-height: 200px;
  padding-top: 34px;
  padding-bottom: 34px;
}
.intro h1 {
  font-size: clamp(40px, 4.3vw, 60px);
  text-shadow: none;
  line-height: 1.08;
}
.intro h1 span {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: #dac6a0;
}
.intro .eyebrow {
  display: none;
}
.intro-description {
  line-height: 1.65;
  color: #bac0c8;
}
.payment-note {
  background: none;
  border-radius: 0;
}
.catalog-type-tabs:before {
  display: none;
}
.catalog-stage {
  background: #edf0f2;
  box-shadow: 0 -1px 0 #fff8;
  border-radius: 22px 22px 0 0;
}
.catalog-stage .catalog-controls {
  box-shadow: none;
  backdrop-filter: none;
  background: #f7f8f9;
  border: 1px solid #d4dbe0;
}
.catalog-stage .product-card {
  box-shadow: var(--k-shadow);
  transform-style: flat;
  transition:
    box-shadow 0.24s var(--k-ease),
    border-color 0.24s var(--k-ease);
  border-radius: 18px;
}
.product-card:before,
.product-card:after {
  display: none;
}
.catalog-stage .product-card:hover {
  transform: none !important;
  box-shadow: 0 18px 38px #2432421c;
}
.catalog-stage .product-card.sealed {
  border-top-width: 2px;
}
.catalog-stage .product-card.used {
  border-top-width: 2px;
}
.model-heading h2 {
  font-weight: 650;
  line-height: 1.18;
}
.sealed-seal,
.catalog-stage .product-card.used .used-seal {
  box-shadow: none;
  border-radius: 7px;
}
.card-price {
  border-top-color: #bcc4cc80;
}
.card-price > span {
  font-size: 14px;
}
.card-price small {
  font-size: 14px;
  line-height: 1.6;
}
.card-colors {
  gap: 7px;
}
.color-button {
  min-height: 44px;
  min-width: 44px;
}
.choose-button:before,
.dark-button:before,
.gold-button:before {
  display: none;
}
.choose-button,
.purchase-button {
  min-height: 50px;
  border-radius: 9px;
}
.choose-button:hover,
.dark-button:hover,
.gold-button:hover {
  box-shadow: none;
  transform: none;
}
.download-art {
  min-height: 44px;
  text-decoration: none;
  font-size: 14px !important;
}
.download-art:hover {
  text-decoration: underline;
  opacity: 1;
}
.contact-strip {
  box-shadow: none;
}
.detail-art:before {
  display: none;
}
.detail-dialog .detail-info {
  background: #f9fafb;
}
.detail-battery,
.used-battery {
  box-shadow: none;
  border-left-width: 1px !important;
}
.detail-secondary button {
  min-height: 44px;
}
.image-caption {
  line-height: 1.4;
}
.family {
  min-height: 44px;
}
.header-contact {
  box-shadow: none;
}
.header-contact:hover {
  box-shadow: none;
  transform: none;
}
.intro h1,
.detail-info h2 {
  letter-spacing: -0.035em;
}
/* Studio: quieter surfaces, consistent labels and obvious working controls. */
.studio-header {
  border-bottom: 1px solid #c6aa7540;
}
.studio-header > div {
  line-height: 1.7;
}
.studio-header a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.studio-header .studio-brand {
  display: flex;
}
.studio-brand small {
  font-size: 12px;
}
.studio-intro .eyebrow {
  display: none;
}
.studio-intro h1 {
  font-weight: 600;
  letter-spacing: -0.035em;
}
.studio-nav {
  gap: 10px;
}
.studio-nav button {
  border-radius: 8px;
  min-height: 46px;
}
.studio-nav button[aria-pressed="true"] {
  background: #20384d;
  border-color: #20384d;
}
.controls {
  border-radius: 14px;
  box-shadow: none;
  border-color: #d1d9e0;
}
.step-label {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #56697a;
}
.helper {
  font-size: 14px;
  color: #546679;
}
.selection-info {
  border-left-width: 1px;
  border: 1px solid #c6d5e1;
  background: #eef4f8;
}
.preview {
  background: #e1e6eb;
  border-radius: 14px;
  box-shadow: var(--k-shadow);
}
.preview-heading {
  font-size: 12px;
  letter-spacing: 0.04em;
}
.preview canvas {
  filter: drop-shadow(0 10px 16px #20324520);
}
.creative-panel {
  border: 0;
  border-top: 1px solid #d5dde4;
  border-radius: 0;
  padding: 20px 0 0;
}
.studio-utilities {
  margin-top: 36px;
  border-top: 1px solid #c7d0d8;
  padding-top: 6px;
}
.studio-utilities details {
  max-width: 900px;
}
.studio-utilities p,
.studio-utilities li {
  font-size: 15px;
  line-height: 1.7;
  color: #455d70;
}
.studio-utilities li + li {
  margin-top: 10px;
}
.backup-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  margin: 18px 0;
}
.backup-import {
  margin: 0;
  font-size: 14px;
}
.backup-import input {
  max-width: 280px;
}
.studio-footer {
  font-size: 14px;
}
.studio-utilities summary {
  font-size: 16px;
}
summary:focus-visible {
  outline: 3px solid var(--k-focus);
  outline-offset: 5px;
}
.studio-header > div a {
  white-space: nowrap;
}
.week article,
.guide-grid article {
  box-shadow: none;
}
.studio-brand small {
  letter-spacing: 0.04em;
}
@media (max-width: 760px) {
  .intro {
    display: none;
  }
  .catalog-stage {
    border-radius: 16px 16px 0 0;
  }
  .catalog-stage .catalog-type {
    min-height: 46px;
  }
  .owner-access {
    text-align: center;
  }
  .owner-entry {
    margin-left: 0;
    display: block;
  }
  .studio-brand small {
    font-size: 12px;
  }
  .studio-header {
    gap: 12px;
  }
  .studio-header > div {
    font-size: 13px;
    max-width: 145px;
  }
  .studio-header > div a {
    font-size: 13px;
  }
  .studio-utilities {
    margin-top: 26px;
  }
  .backup-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .backup-actions > * {
    width: 100%;
  }
  .catalog-stage .product-card {
    border-radius: 14px;
  }
  .catalog-stage .sort-box select {
    font-size: 14px;
    min-height: 40px;
  }
  .results-row {
    min-height: 40px;
  }
  .model-heading h2 {
    font-size: 26px;
  }
  .card-price strong {
    font-size: 32px;
  }
  .preview-heading {
    font-size: 12px;
    letter-spacing: 0;
  }
  .studio-header .studio-brand {
    font-size: 18px;
  }
  .studio-nav button {
    font-size: 14px;
  }
  .header-contact {
    min-width: 44px;
    min-height: 44px;
  }
}

/* A direct catalog share must keep a clear, reachable return path on phones. */
.detail-back-button {
  position: sticky;
  top: 0;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin: -12px 0 16px;
  padding: 10px 14px;
  border: 1px solid #d7c8aa;
  border-radius: 999px;
  background: #fff;
  color: #39342b;
  font-weight: 650;
}
.detail-back-button svg {
  width: 19px;
  height: 19px;
}
.studio-header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: none !important;
}
.studio-header-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
}
.studio-header-actions .studio-back-link {
  border-bottom: 1px solid #a6926c;
  color: #f0dfba;
  font-weight: 650;
}
.studio-header-actions .studio-signout-link {
  color: #d0d2d5;
}
.studio-nav {
  flex-wrap: nowrap;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.studio-nav button {
  flex: 0 0 auto;
  white-space: nowrap;
}
.catalog-art-panel {
  display: grid;
  gap: 24px;
}
.catalog-art-controls > h2,
.bulk-export > h2 {
  margin: 0 0 10px;
  color: #252a30;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1.2;
}
.catalog-art-controls > p:first-of-type,
.bulk-export > p:first-of-type {
  margin: 0 0 20px;
  color: #596979;
  line-height: 1.55;
}
.catalog-art-editor-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 22px 0 8px;
}
.catalog-art-editor-heading h3 {
  margin: 0;
  font-size: 1rem;
}
.catalog-art-editor-heading button {
  min-height: 42px;
  padding: 8px 11px;
  font-size: 0.8rem;
}
.catalog-art-prices {
  display: grid;
  gap: 6px;
  margin: 8px 0 16px;
}
.catalog-price-edit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(112px, 150px);
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 7px 0;
  border-bottom: 1px solid #e2e6e9;
  color: #344554;
  font-size: 0.9rem;
}
.catalog-price-edit-row input {
  min-height: 44px;
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.catalog-art-actions,
.bulk-export-actions {
  display: grid;
  gap: 9px;
}
.catalog-art-actions button,
.bulk-export-actions button {
  width: 100%;
  min-height: 48px;
}
.catalog-art-preview {
  position: sticky;
  top: 16px;
}
.catalog-art-preview canvas {
  display: block;
  width: min(100%, 440px);
  max-height: 82svh;
  margin: 0 auto;
  object-fit: contain;
  background: #14171b;
  border-radius: 12px;
  box-shadow: 0 18px 38px #10182026;
}
.bulk-price-editor {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}
.bulk-price-group {
  border-top: 1px solid #d7dde2;
  padding-top: 9px;
}
.bulk-price-group > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #273949;
  font-weight: 650;
}
.bulk-price-group .catalog-art-prices {
  padding: 0 10px 8px;
}
.bulk-files {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.bulk-file-card {
  min-width: 0;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 12px;
  border: 1px solid #d5dce2;
  border-radius: 13px;
  background: #f8f9fa;
}
.bulk-file-card img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 7px;
  background: #171a1f;
}
.bulk-file-card p {
  overflow-wrap: anywhere;
  font-size: 0.9rem;
  font-weight: 650;
}
.bulk-file-card .actions {
  display: grid;
  gap: 7px;
}
.bulk-file-card .actions > * {
  width: 100%;
}
@media (max-width: 760px) {
  .studio-header {
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding-inline: 16px;
  }
  .studio-header-actions {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    padding-left: 54px;
  }
  .studio-header-actions a {
    min-height: 42px;
  }
  .studio-nav {
    gap: 7px;
    padding: 0 2px 10px;
    margin-right: -16px;
    margin-left: -16px;
  }
  .studio-nav button {
    min-height: 46px;
    padding: 10px 13px;
    font-size: 0.86rem;
  }
  .catalog-art-workspace {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .catalog-art-preview {
    order: -1;
    width: 100%;
    padding: 16px;
    position: static;
  }
  .catalog-art-preview canvas {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 64svh;
    border-radius: 9px;
  }
  .catalog-art-controls,
  .bulk-export {
    padding: 18px;
  }
  .catalog-price-edit-row {
    grid-template-columns: minmax(0, 1fr) minmax(108px, 132px);
    font-size: 0.86rem;
  }
  .bulk-files {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .bulk-file-card {
    padding: 8px;
  }
  .bulk-file-card img {
    max-height: 240px;
  }
  dialog.detail-dialog {
    max-height: min(94dvh, calc(100vh - env(safe-area-inset-top)));
    padding-bottom: env(safe-area-inset-bottom);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .detail-back-button {
    top: env(safe-area-inset-top);
    min-height: 48px;
    margin: -8px 0 14px;
    box-shadow: 0 4px 12px #10182012;
  }
}
@media (max-width: 380px) {
  .studio-header-actions {
    padding-left: 0;
  }
  .catalog-price-edit-row {
    grid-template-columns: minmax(0, 1fr) minmax(100px, 116px);
    gap: 7px;
  }
  .bulk-files {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Keep catalog art prices and storage visibility easy to edit on touch screens. */
.catalog-price-edit-row {
  grid-template-columns: minmax(0, 1fr) minmax(112px, 150px);
}
.catalog-art-variant-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin: 0;
  cursor: pointer;
}
.catalog-art-variant-toggle input {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  accent-color: #9a7535;
}
@media (max-width: 760px) {
  .catalog-price-edit-row {
    grid-template-columns: minmax(0, 1fr) minmax(108px, 132px);
  }
}
@media (max-width: 380px) {
  .catalog-price-edit-row {
    grid-template-columns: minmax(0, 1fr) minmax(100px, 116px);
  }
  .catalog-art-variant-toggle {
    gap: 6px;
    font-size: 0.8rem;
  }
}

/* Impeccable final system — quiet technological luxury, built for touch first. */
:root {
  --k-graphite: #15181d;
  --k-graphite-soft: #222831;
  --k-platinum: #edf0f2;
  --k-paper: #fbfaf7;
  --k-champagne: #8a682f;
  --k-sapphire: #245c88;
  --k-copy: #1b2732;
  --k-muted: #526474;
  --k-line: #cbd3da;
  --k-radius-sm: 8px;
  --k-radius-md: 14px;
  --k-radius-lg: 20px;
  --k-space-1: 4px;
  --k-space-2: 8px;
  --k-space-3: 12px;
  --k-space-4: 16px;
  --k-space-5: 24px;
  --k-space-6: 32px;
  --k-space-7: 48px;
  --k-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
html {
  scroll-padding-top: var(--k-space-4);
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
body {
  font-size: 1rem;
  line-height: 1.55;
}
:is(button, a, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--k-focus);
  outline-offset: 4px;
}
button:disabled,
[aria-disabled="true"] {
  opacity: 0.52;
  cursor: not-allowed;
}
.header-inner,
.studio-header {
  padding-left: max(var(--k-space-4), env(safe-area-inset-left));
  padding-right: max(var(--k-space-4), env(safe-area-inset-right));
}
footer,
.studio-footer {
  padding-bottom: max(var(--k-space-5), env(safe-area-inset-bottom));
}
.brand strong,
.studio-brand {
  font-weight: 600;
}
.brand strong {
  letter-spacing: 0.16em;
}
.brand small {
  letter-spacing: 0.12em;
}
.studio-brand {
  letter-spacing: 0.13em;
}
.brand small,
.studio-brand small {
  line-height: 1.35;
}
.product-card {
  contain: layout paint;
}
.card-price strong,
.detail-price strong,
.selection-info strong,
.comparison-price {
  font-feature-settings: "tnum" 1;
}
.catalog-stage .product-card .model-heading h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 650;
  letter-spacing: -0.03em;
}
.catalog-stage .product-card .model-heading > span {
  font-size: 0.875rem;
  line-height: 1.4;
}
.catalog-stage .product-card .card-price > span,
.catalog-stage .product-card .card-price small {
  color: #5d6873;
}
.catalog-stage .product-card.used .card-price > span,
.catalog-stage .product-card.used .card-price small {
  color: #4e6578;
}
.catalog-stage .product-card.cpo-card .card-price > span,
.catalog-stage .product-card.cpo-card .card-price small {
  color: #c1c7cf;
}
.catalog-stage .product-card .card-price strong {
  font-size: clamp(1.85rem, 3vw, 2.25rem);
  font-weight: 600;
}
.catalog-stage .product-card .image-caption {
  font-size: 0.8125rem;
}
.catalog-stage .product-card .choose-button {
  font-size: 0.9375rem;
}
.cpo-seal span,
.catalog-stage .product-card.used .used-seal span,
.used-label,
.cpo-label small {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  line-height: 1.25;
}
.cpo-box-image {
  filter: drop-shadow(0 12px 12px #15181d38);
}
.catalog-stage .search-box input,
.catalog-stage select {
  font-size: 1rem;
}
.catalog-stage .search-box,
.catalog-stage .sort-box select,
.catalog-stage .filter-button {
  min-height: 48px;
}
.catalog-stage .results-row {
  font-size: 0.875rem;
}
.catalog-stage .results-row span {
  color: #5d6873;
}
.catalog-stage .product-card {
  transition:
    border-color 0.22s var(--k-ease-out),
    box-shadow 0.28s var(--k-ease-out);
}
.catalog-stage .product-card:hover {
  box-shadow: 0 18px 40px #2432421a;
}
.catalog-stage .art-button .product-image {
  transition:
    transform 0.28s var(--k-ease-out),
    filter 0.28s var(--k-ease-out);
}
.catalog-stage
  :is(
    .choose-button,
    .purchase-button,
    .dark-button,
    .gold-button,
    .filter-button,
    .catalog-type
  ):active {
  transform: scale(0.985) !important;
}
.catalog-stage .catalog-type {
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.24s var(--k-ease-out);
}
.catalog-stage .filter-chip {
  min-height: 44px;
}
.catalog-stage .text-button {
  min-height: 44px;
}
.share-dialog {
  position: relative;
  width: min(460px, calc(100vw - 32px));
  padding: 32px;
  border-radius: var(--k-radius-lg);
  background: var(--k-paper);
}
.share-dialog h2 {
  font-size: clamp(1.45rem, 4vw, 1.8rem);
  line-height: 1.2;
  margin: 0 44px 10px 0;
}
.share-dialog p {
  max-width: 42ch;
  color: var(--k-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 22px;
}
.share-dialog > a {
  min-height: 50px;
  margin-top: 10px;
}
.share-dialog .close-dialog {
  top: 14px;
  right: 14px;
}
.share-more {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
  margin-top: 14px;
}
.share-more:empty {
  display: none;
}
.share-more .text-button {
  min-height: 44px;
  color: var(--k-graphite);
  text-decoration-color: var(--k-champagne);
}
dialog[open] {
  animation: k-dialog-in 0.34s var(--k-ease-out);
}
dialog::backdrop {
  animation: k-backdrop-in 0.2s ease-out both;
}
@keyframes k-dialog-in {
  from {
    opacity: 0;
    transform: translateY(14px);
    clip-path: inset(0 0 8% 0 round 18px);
  }
  to {
    opacity: 1;
    transform: none;
    clip-path: inset(0 round 18px);
  }
}
@keyframes k-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
::view-transition-old(root) {
  animation: k-view-out 0.12s ease-out both;
}
::view-transition-new(root) {
  animation: k-view-in 0.28s var(--k-ease-out) both;
}
@keyframes k-view-out {
  to {
    opacity: 0.72;
  }
}
@keyframes k-view-in {
  from {
    opacity: 0.72;
    clip-path: inset(0 0 2% 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0);
  }
}

/* Studio: a clear production surface, with progressive disclosure. */
body:has(.studio-header) {
  background: #edf0f3;
  color: var(--k-copy);
}
.studio-header {
  min-height: 88px;
}
.studio-header > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 8px;
}
.studio-brand small {
  font-size: 0.75rem;
  letter-spacing: 0.045em;
}
.studio-intro {
  max-width: 68ch;
  margin-bottom: 24px;
}
.studio-intro h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  margin-bottom: 10px;
}
.studio-intro > p:last-child {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--k-muted);
}
.studio-nav {
  gap: 8px;
  margin-bottom: 24px;
}
.studio-nav button {
  position: relative;
  min-height: 48px;
  padding: 11px 18px;
  font-size: 0.9375rem;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}
.studio-nav button[aria-selected="true"] {
  background: #20384d;
  border-color: #20384d;
  color: #fff;
}
.studio-nav button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -17px;
  height: 2px;
  background: #98753c;
}
.controls {
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--k-radius-md);
  background: #fff;
}
.controls label {
  font-size: 0.9375rem;
  line-height: 1.45;
}
.controls
  :is(select, textarea, input:not([type="checkbox"]):not([type="range"])) {
  min-height: 48px;
  font-size: 1rem;
  line-height: 1.4;
  border-color: #b8c4ce;
  background: #fbfcfd;
}
.controls textarea {
  min-height: 132px;
}
.step-label {
  font-size: 0.8125rem;
  line-height: 1.3;
  letter-spacing: 0.045em;
  font-weight: 700;
  color: #4f6475;
}
.helper {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #4b6073;
  max-width: 65ch;
}
.selection-info {
  font-size: 0.9375rem;
  line-height: 1.45;
  border-color: #b7c9d8;
}
.selection-info strong {
  font-size: 1.5rem;
}
.controls details {
  margin-top: 20px;
}
.controls summary,
.studio-utilities summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 40px 8px 0;
  font-size: 1rem;
  line-height: 1.4;
  list-style: none;
}
.controls summary::-webkit-details-marker,
.studio-utilities summary::-webkit-details-marker {
  display: none;
}
.controls summary::after,
.studio-utilities summary::after {
  content: "";
  position: absolute;
  right: 8px;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s var(--k-ease-out);
}
.controls details[open] > summary::after,
.studio-utilities details[open] > summary::after {
  transform: rotate(225deg);
}
.creative-panel {
  padding-top: 12px;
}
.actions {
  margin-top: 18px;
}
.actions :is(button, a),
#file-actions :is(button, a) {
  min-height: 50px;
  font-size: 0.9375rem;
}
.preview {
  border-color: #c7d0d8;
  background: #e3e8ec;
}
.preview-heading {
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: #43586a;
}
.preview canvas {
  filter: drop-shadow(0 12px 20px #2032451a);
}
#export-status {
  font-size: 0.9375rem;
  color: #3f5669;
}
.studio-footer {
  font-size: 0.875rem;
  line-height: 1.6;
}
#studio-toast:not(:empty) {
  bottom: max(24px, env(safe-area-inset-bottom));
  font-size: 0.9375rem;
  line-height: 1.5;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .catalog-stage .art-button:hover .product-image {
    transform: translateY(-3px) scale(1.018);
    filter: drop-shadow(0 16px 14px #24324220);
  }
  .catalog-stage .product-card:hover {
    border-color: #a68c5e;
  }
  .studio-nav button:hover,
  .controls button:hover {
    border-color: #8fa0ae;
  }
}

@media (max-width: 900px) and (min-width: 761px) {
  .workspace,
  .content-grid {
    grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
    gap: 24px;
  }
  .studio-header {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .catalog-stage .product-grid {
    gap: 18px;
  }
}

@media (max-width: 760px) {
  .intro {
    display: block !important;
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }
  .header-inner {
    min-height: 64px;
    padding-top: 7px;
    padding-bottom: 7px;
  }
  .brand img {
    width: 40px;
    height: 40px;
  }
  .brand strong {
    font-size: 1.05rem;
    letter-spacing: 0.13em;
  }
  .navigation {
    gap: 4px;
  }
  .nav-button {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
  }
  .catalog-stage {
    padding-top: 10px;
  }
  .catalog-stage .catalog-type-tabs {
    margin-bottom: 8px;
  }
  .catalog-stage .catalog-type {
    min-height: 48px;
  }
  .catalog-stage .catalog-controls {
    padding: 10px !important;
  }
  .catalog-stage .search-row {
    gap: 8px;
  }
  .catalog-stage .search-box input,
  .catalog-stage .sort-box select,
  .catalog-stage .advanced-filters select {
    font-size: 1rem;
  }
  .catalog-stage .sort-box select {
    min-height: 44px;
  }
  .catalog-stage .results-row {
    min-height: 42px;
    margin: 6px 0;
  }
  .catalog-stage .product-grid {
    gap: 18px;
  }
  .catalog-stage .product-card .card-topline {
    min-height: 52px !important;
  }
  .catalog-stage .product-card .model-heading h2 {
    font-size: 1.6rem;
  }
  .catalog-stage .product-card .card-price strong {
    font-size: 2rem;
  }
  .catalog-stage .product-visual {
    height: clamp(245px, 72vw, 290px);
    min-height: 245px;
  }
  .catalog-stage .product-card .card-content {
    padding-bottom: 16px;
  }
  .catalog-stage
    .product-card
    :is(.choose-button, .compare-toggle, .download-art, .color-button) {
    min-height: 48px;
  }
  .catalog-stage .product-card .color-button {
    min-width: 48px;
  }
  .sealed-seal span,
  .catalog-stage .product-card.used .used-seal span,
  .cpo-seal span {
    font-size: 0.75rem !important;
    line-height: 1.35;
  }
  .share-dialog {
    width: 100vw;
    max-width: 100vw;
    padding: 30px 20px max(24px, env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
  }
  .studio-header {
    min-height: 72px;
    padding-top: 10px;
    padding-bottom: 10px;
    align-items: flex-start;
  }
  .studio-header .studio-brand {
    font-size: 1.05rem;
    letter-spacing: 0.11em;
  }
  .studio-header .studio-brand img {
    width: 42px;
    height: 42px;
  }
  .studio-header > div {
    max-width: 150px;
    font-size: 0.8125rem;
    line-height: 1.45;
  }
  main:has(.studio-nav) {
    padding: 12px max(16px, env(safe-area-inset-left)) 44px
      max(16px, env(safe-area-inset-right));
  }
  .studio-intro {
    display: block !important;
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }
  .studio-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 14px;
    padding-bottom: 12px;
  }
  .studio-nav button {
    min-height: 48px;
    padding: 9px 10px;
    font-size: 0.875rem;
  }
  .studio-nav button:last-child {
    grid-column: 1/-1;
  }
  .studio-nav button[aria-selected="true"]::after {
    bottom: -13px;
  }
  .workspace,
  .content-grid {
    gap: 16px;
  }
  .controls {
    order: 0;
    padding: 18px 16px;
  }
  .preview {
    order: 0;
    position: static;
    padding: 12px;
  }
  .preview canvas {
    max-height: 38svh;
  }
  .field-pair {
    grid-template-columns: 1fr;
  }
  .controls label {
    font-size: 0.9375rem;
  }
  .controls
    :is(select, textarea, input:not([type="checkbox"]):not([type="range"])) {
    font-size: 1rem;
  }
  .actions.row {
    grid-template-columns: 1fr;
  }
  .backup-actions > * {
    min-height: 48px;
  }
  .studio-footer {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
}

@media (max-width: 380px) {
  .header-contact {
    display: none;
  }
  .brand strong {
    font-size: 1rem;
  }
  .catalog-stage .catalog-type {
    font-size: 0.8125rem;
  }
  .catalog-stage .filter-button {
    min-width: 84px;
  }
  .studio-header > div {
    max-width: 130px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(button, a, input, select, textarea, summary) {
    transition:
      color 0.12s linear,
      background-color 0.12s linear,
      border-color 0.12s linear !important;
  }
  .scroll-progress {
    display: block;
  }
  .catalog-stage .product-card,
  .catalog-stage .product-image,
  dialog[open],
  dialog::backdrop {
    animation: none !important;
    transform: none !important;
    filter: none !important;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }
}

@media (forced-colors: active) {
  :is(button, a, input, select, textarea, summary):focus-visible {
    outline: 3px solid Highlight !important;
  }
  .swatch {
    forced-color-adjust: none;
  }
}

/* Dark sealed-card experiment: preserve the gold seal and clear price hierarchy. */
.catalog-stage .product-card.sealed:not(.flagship) {
  color: #f4f0e7;
  background: linear-gradient(145deg, #24272c, #17191d 72%);
  border-color: #a78a53;
  box-shadow:
    0 20px 48px #11151b32,
    inset 0 1px #fff1;
}
.catalog-stage .product-card.sealed:not(.flagship) .model-heading h2,
.catalog-stage .product-card.sealed:not(.flagship) .card-price strong {
  color: #f7f4ed;
}
.catalog-stage .product-card.sealed:not(.flagship) .model-heading > span,
.catalog-stage .product-card.sealed:not(.flagship) .card-price > span,
.catalog-stage .product-card.sealed:not(.flagship) .card-price small,
.catalog-stage .product-card.sealed:not(.flagship) .color-label,
.catalog-stage .product-card.sealed:not(.flagship) .image-caption,
.catalog-stage .product-card.sealed:not(.flagship) .compare-toggle {
  color: #c9c3b7;
}
.catalog-stage .product-card.sealed:not(.flagship) .product-visual {
  background: radial-gradient(
    ellipse at 50% 48%,
    #48433a 0,
    #25272b 43%,
    #1a1c20 78%
  );
  border-color: #d2b77e35;
}
.catalog-stage .product-card.sealed:not(.flagship) .sealed-seal {
  color: #f1dfb8;
  background: #3c3322;
  border-color: #a78a53;
}
.catalog-stage .product-card.sealed:not(.flagship) .card-price,
.catalog-stage .product-card.sealed:not(.flagship) .card-colors {
  border-color: #d8bc8334;
}
.catalog-stage .product-card.sealed:not(.flagship) .sealed-price-guide {
  margin: 18px 0 22px;
  padding: 16px 18px;
  border: 1px solid #d8bc8350;
  border-radius: 14px;
  background: #11131890;
}
.catalog-stage .product-card.sealed .card-content {
  container-type: inline-size;
}
.sealed-price-guide h3 {
  margin: 0 0 12px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e1ca99;
}
.sealed-price-group + .sealed-price-group {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #ffffff1c;
}
.sealed-price-group > strong {
  display: block;
  margin-bottom: 5px;
  color: #fff;
  font-size: 0.86rem;
}
.sealed-price-group ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.sealed-price-group li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
  color: #d4d0c8;
}
.sealed-price-group li b {
  white-space: nowrap;
  color: #f4e2b9;
  font-weight: 650;
}
@container (max-width: 500px) {
  .sealed-price-group ul {
    grid-template-columns: 1fr;
  }
}
.cpo-note > summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: 700;
  color: #5f4515;
}
.cpo-copy {
  padding-top: 12px;
}
.cpo-copy h3 {
  font-size: 1rem;
}
.cpo-copy ul {
  padding-left: 1.25rem;
}
.cpo-copy li {
  margin: 0.7rem 0;
}
.cpo-verification {
  padding: 12px;
  border-left: 3px solid #9e7f45;
  background: #f7f2e8;
  color: #3d3526;
  font-size: 0.88rem;
}

@media (max-width: 520px) {
  .sealed-price-group ul {
    grid-template-columns: 1fr;
  }
  .catalog-stage .product-card.sealed:not(.flagship) {
    border-radius: 20px;
  }
}

@media (max-width: 760px) {
  .studio-intro {
    display: block !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 0 16px !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
    border: 0 !important;
  }
  .studio-intro h1 {
    margin-bottom: 6px;
    font-size: clamp(1.45rem, 7vw, 2rem);
  }
  .studio-intro > p {
    margin: 0;
    font-size: 0.93rem;
  }
}

/* Versão do aparelho (americana / só eSIM): informação que o cliente precisa ver. */
.region-tag {
  display: flex;
  width: fit-content;
  flex-basis: 100%;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
  padding: 4px 9px;
  border: 1px solid #d9c391;
  border-radius: 999px;
  background: #f8f2e5;
  color: #6f5525;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.detail-info .region-tag {
  margin: -14px 0 20px;
}
