.byc-studio-page {
  --byc-yellow: #ffc400;
  --byc-ink: #101315;
  --byc-muted: #697075;
  --byc-line: #e3e5e6;
  --byc-soft: #f3f3f1;
  color: var(--byc-ink);
  background: #f4f3ef;
  min-height: 100vh;
  padding: 48px clamp(14px, 3vw, 46px) 72px;
}

.byc-studio-page *, .byc-studio-page *::before, .byc-studio-page *::after { box-sizing: border-box; }
.byc-studio-page [hidden] { display: none !important; }
.byc-studio-page button, .byc-studio-page input, .byc-studio-page select { font: inherit; }
.byc-studio-page button { cursor: pointer; }

.byc-studio-hero {
  width: min(1540px, 100%);
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(380px, .8fr);
  align-items: end;
  gap: 48px;
}

.byc-studio-hero .eyebrow { color: #896b00; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }
.byc-studio-hero h1 { max-width: 850px; margin: 13px 0 14px; font-size: clamp(38px, 5vw, 72px); line-height: .97; letter-spacing: -.055em; }
.byc-studio-hero h1 em { color: #8c6c00; font-style: normal; }
.byc-studio-hero p { max-width: 760px; color: #585f63; font-size: clamp(16px, 1.45vw, 20px); line-height: 1.58; margin: 0; }
.byc-studio-hero ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #dddcd6; background: rgba(255,255,255,.54); }
.byc-studio-hero li { min-width: 0; padding: 20px 16px; display: flex; gap: 10px; border-right: 1px solid #dddcd6; }
.byc-studio-hero li:last-child { border: 0; }
.byc-studio-hero li > strong { color: #967500; font-size: 12px; letter-spacing: .06em; }
.byc-studio-hero li span { font-size: 12px; font-weight: 900; line-height: 1.2; }
.byc-studio-hero li small { display: block; margin-top: 5px; color: #74797c; font-weight: 600; }

.byc-studio-app { width: min(1540px, 100%); margin: 0 auto; background: #fff; border: 1px solid #dddeda; box-shadow: 0 34px 90px rgba(20,24,27,.13); }
.byc-support-tabs { min-height: 104px; padding: 16px 22px; display: grid; grid-template-columns: 260px 1fr; align-items: center; gap: 26px; background: #111416; color: #fff; }
.byc-support-tabs > div { display: flex; align-items: center; gap: 13px; }
.byc-support-tabs > div span, .byc-section-title > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--byc-yellow); color: #101315; font-size: 12px; font-weight: 950; }
.byc-support-tabs > div b { font-size: 16px; }
.byc-support-tabs nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.byc-support-tabs nav button, .byc-support-tabs nav > a { min-width: 0; min-height: 68px; display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: #fff; background: #1c2022; border: 1px solid #303538; text-align: left; transition: .2s ease; }
.byc-support-tabs nav button:hover, .byc-support-tabs nav > a:hover { border-color: #6e7274; transform: translateY(-1px); }
.byc-support-tabs nav button.is-active { color: #121517; background: var(--byc-yellow); border-color: var(--byc-yellow); box-shadow: 0 9px 24px rgba(255,196,0,.24); }
.byc-support-tabs nav > a.byc-support-premium { border-color: #d5a500; box-shadow: inset 0 0 0 1px rgba(255,196,0,.28); }
.byc-support-tabs nav i { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-style: normal; font-size: 12px; font-weight: 950; }
.byc-support-tabs nav span { min-width: 0; font-weight: 900; }
.byc-support-tabs nav small { display: block; margin-top: 3px; opacity: .64; font-size: 10px; font-weight: 700; }

.byc-studio-grid { min-height: 760px; display: grid; grid-template-columns: minmax(270px, 330px) minmax(470px, 1fr) minmax(300px, 350px); }
.byc-config-panel, .byc-order-panel { min-width: 0; background: #fff; }
.byc-config-panel { border-right: 1px solid var(--byc-line); max-height: 830px; overflow: auto; }
.byc-order-panel { border-left: 1px solid var(--byc-line); padding: 27px 24px; }
.byc-config-section { padding: 23px 22px; border-bottom: 1px solid var(--byc-line); }
.byc-section-title { display: flex; align-items: center; gap: 11px; margin-bottom: 17px; }
.byc-section-title > span { width: 27px; height: 27px; flex: 0 0 auto; font-size: 10px; }
.byc-section-title div { min-width: 0; }
.byc-section-title b { display: block; font-size: 14px; }
.byc-section-title small { display: block; margin-top: 2px; overflow: hidden; color: #73787b; font-size: 10px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.byc-field { display: grid; gap: 8px; color: #646a6e; font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.byc-field select { width: 100%; min-height: 47px; padding: 0 39px 0 13px; color: #16191b; background: #f7f7f5; border: 1px solid #d9dcdd; border-radius: 0; font-size: 13px; font-weight: 800; text-transform: none; letter-spacing: 0; }
.byc-format-detail { min-height: 18px; margin: 9px 0 0; color: #777d80; font-size: 11px; line-height: 1.45; }
.byc-bottle-shapes { margin-top: 15px; padding-top: 15px; border-top: 1px solid #e2e3e0; }
.byc-bottle-shapes > div:first-child { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.byc-bottle-shapes > div:first-child b { font-size: 10px; }
.byc-bottle-shapes > div:first-child span { color: #777d80; font-size: 8px; text-align: right; }
.byc-bottle-shapes > div:last-child { margin-top: 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.byc-bottle-shapes button { min-width: 0; min-height: 76px; padding: 7px; display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 7px; color: #303538; background: #fafaf8; border: 1px solid #d9dbda; text-align: left; }
.byc-bottle-shapes button:hover { border-color: #a68100; }
.byc-bottle-shapes button.is-active { background: #fff8d9; border-color: #d3a300; box-shadow: inset 0 -3px 0 var(--byc-yellow); }
.byc-bottle-shapes button img { width: 31px; height: 61px; object-fit: contain; filter: drop-shadow(0 5px 5px rgba(0,0,0,.18)); }
.byc-bottle-shapes button span { min-width: 0; }
.byc-bottle-shapes button b, .byc-bottle-shapes button small { display: block; overflow: hidden; text-overflow: ellipsis; }
.byc-bottle-shapes button b { font-size: 8px; white-space: nowrap; }
.byc-bottle-shapes button small { margin-top: 4px; color: #7a8082; font-size: 7px; line-height: 1.25; }
.byc-segmented { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
[data-surface-tabs] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.byc-segmented button { min-height: 38px; padding: 7px; color: #555c60; background: #f3f3f1; border: 1px solid #dedfdd; font-size: 11px; font-weight: 850; }
.byc-segmented button.is-active { color: #111416; background: var(--byc-yellow); border-color: #e6af00; }
.byc-segmented button:disabled { cursor: not-allowed; opacity: .42; }
.byc-color-heading { display: flex; justify-content: space-between; margin: 18px 0 10px; font-size: 11px; }
.byc-color-heading span { color: #686e72; }
.byc-color-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.byc-color-swatches button { width: 25px; height: 25px; padding: 0; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #cfd1d1; }
.byc-color-swatches button.is-active { box-shadow: 0 0 0 2px #111416, 0 0 0 4px #fff; }

.byc-upload-zone { min-height: 127px; padding: 17px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #62686b; background: #fafaf8; border: 1px dashed #aeb3b4; text-align: center; transition: .18s ease; }
.byc-upload-zone:hover, .byc-upload-zone.is-dragging { color: #111416; background: #fff9df; border-color: #b88c00; }
.byc-upload-zone input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }
.byc-upload-zone i { width: 35px; height: 35px; display: grid; place-items: center; margin-bottom: 7px; color: #111416; background: var(--byc-yellow); border-radius: 50%; font-style: normal; font-size: 18px; }
.byc-upload-zone b { font-size: 12px; }
.byc-upload-zone span { max-width: 100%; margin-top: 4px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.byc-link-button { width: 100%; margin-top: 9px; padding: 7px; color: #8b2828; background: none; border: 0; font-size: 11px; font-weight: 800; text-decoration: underline; }
.byc-background-tools { margin-top: 14px; padding: 13px; background: #f6f6f3; border: 1px solid #dcddda; }
.byc-background-tools > div:first-child { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; }
.byc-background-tools > div:first-child span { color: #777d80; }
.byc-background-tools label { margin-top: 12px; display: grid; grid-template-columns: 1fr auto; color: #656b6e; font-size: 9px; font-weight: 800; }
.byc-background-tools label input { grid-column: 1 / -1; width: 100%; margin-top: 8px; accent-color: #d3a300; }
.byc-background-actions { margin-top: 11px; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.byc-background-actions button { min-height: 34px; padding: 5px; color: #33383b; background: #fff; border: 1px solid #d3d5d5; font-size: 9px; font-weight: 800; }
.byc-background-actions button:last-child { grid-column: 1 / -1; }
.byc-background-tools p { min-height: 13px; margin: 8px 0 0; color: #757b7e; font-size: 9px; line-height: 1.4; }
.byc-dimension-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.byc-dimension-grid label, .byc-placement-controls label { color: #686e72; font-size: 10px; font-weight: 800; }
.byc-dimension-grid label span, .byc-placement-controls label span { margin-top: 6px; padding: 8px 9px; display: flex; align-items: center; gap: 4px; color: #72777a; background: #f7f7f5; border: 1px solid #d8dadb; }
.byc-dimension-grid input, .byc-placement-controls input { width: 100%; padding: 0; color: #111416; background: transparent; border: 0; font-weight: 900; outline: 0; }
.byc-range-label { display: grid; grid-template-columns: 1fr auto; margin-top: 18px; color: #656b6e; font-size: 10px; font-weight: 800; }
.byc-range-label output { color: #111416; }
.byc-range-label input { grid-column: 1 / -1; width: 100%; margin-top: 10px; accent-color: #d3a300; }
.byc-lock-ratio { margin-top: 11px; display: flex; align-items: center; gap: 7px; color: #5e6467; font-size: 10px; }
.byc-lock-ratio input { accent-color: #111416; }
.byc-placement-controls { margin-top: 14px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px; }
.byc-placement-controls button { min-height: 36px; padding: 7px 11px; color: #111416; background: #fff; border: 1px solid #cfd2d3; font-size: 10px; font-weight: 900; }

.byc-preview-panel { min-width: 0; padding: 24px 30px 26px; display: flex; flex-direction: column; color: #fff; background: #171a1c; overflow: hidden; }
.byc-preview-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.byc-preview-panel > header > div { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; }
.byc-preview-panel > header b { font-size: 13px; }
.byc-preview-panel > header small { grid-column: 2; color: #8f9699; font-size: 10px; margin-top: 2px; }
.byc-live-dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #53d273; box-shadow: 0 0 0 4px rgba(83,210,115,.12); }
.byc-stage-chip { padding: 7px 10px; color: var(--byc-yellow); border: 1px solid #4a4f51; font-size: 9px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.byc-stage { position: relative; min-height: 620px; flex: 1; margin-top: 17px; display: grid; place-items: center; overflow: hidden; border: 1px solid #2b3032; background: radial-gradient(circle at 50% 35%, #3c4245 0, #24282a 31%, #151719 66%); touch-action: none; cursor: grab; perspective: 1000px; }
.byc-stage.is-dragging { cursor: grabbing; }
.byc-stage-light { position: absolute; top: -18%; left: 8%; width: 84%; height: 38%; border-radius: 50%; background: rgba(255,255,255,.10); filter: blur(50px); transform: rotate(-8deg); }
.byc-stage::after { content: ''; position: absolute; left: 18%; right: 18%; bottom: 13%; height: 7%; border-radius: 50%; background: rgba(0,0,0,.58); filter: blur(19px); }
.byc-product-orbit { position: relative; z-index: 2; width: min(74%, 510px); height: min(72%, 500px); display: grid; place-items: center; transform-style: preserve-3d; }
.byc-product { --product-color: #111315; position: relative; width: 310px; height: 390px; transform-style: preserve-3d; transform: rotateX(var(--pitch, -4deg)) rotateY(var(--yaw, 0deg)) rotateZ(var(--roll, 0deg)); transition: transform .12s ease-out; }
.byc-stage.is-dragging .byc-product { transition: none; }
.byc-product-face, .byc-product-depth { position: absolute; inset: 0; transform-style: preserve-3d; }
.byc-product-depth { transform: translateZ(-18px); background: color-mix(in srgb, var(--product-color), #000 45%); }
.byc-product-face { transform: translateZ(8px); background: var(--product-color); overflow: hidden; filter: drop-shadow(-16px 22px 22px rgba(0,0,0,.3)); }
.byc-product-face::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(106deg, rgba(255,255,255,.22), transparent 28%, transparent 66%, rgba(0,0,0,.34)), radial-gradient(ellipse at 50% 0, rgba(255,255,255,.2), transparent 44%); mix-blend-mode: soft-light; }

.byc-product.is-tshirt { width: min(380px, 77%); height: min(445px, 82%); }
.byc-product.is-tshirt .byc-product-face, .byc-product.is-tshirt .byc-product-depth { clip-path: polygon(30% 5%, 40% 0, 60% 0, 70% 5%, 96% 19%, 82% 42%, 73% 36%, 78% 100%, 22% 100%, 27% 36%, 18% 42%, 4% 19%); }
.byc-product.is-tshirt .byc-product-face::before { content: ''; position: absolute; z-index: 3; top: -3%; left: 40%; width: 20%; height: 13%; border-radius: 0 0 50% 50%; background: #202426; box-shadow: inset 0 -4px 7px rgba(255,255,255,.1); }
.byc-product.is-tshirt .byc-print-envelope { left: 27%; top: 22%; width: 46%; height: 60%; }
.byc-product.is-tshirt[data-surface="left-sleeve"] .byc-print-envelope { left: 5%; top: 19%; width: 24%; height: 25%; }
.byc-product.is-tshirt[data-surface="right-sleeve"] .byc-print-envelope { left: 71%; top: 19%; width: 24%; height: 25%; }
.byc-product.is-tshirt[data-surface="back"] .byc-product-face::before { opacity: .4; }
.byc-product.is-tshirt[data-surface="back"] .byc-product-face { transform: translateZ(-8px) rotateY(180deg); }
.byc-product.is-tshirt[data-surface="left-sleeve"] .byc-product-face,
.byc-product.is-tshirt[data-surface="right-sleeve"] .byc-product-face { filter: drop-shadow(-16px 22px 22px rgba(0,0,0,.3)) brightness(1.06); }
.byc-product.is-tshirt[data-surface="left-sleeve"] .byc-print-envelope,
.byc-product.is-tshirt[data-surface="right-sleeve"] .byc-print-envelope { background: rgba(255,196,0,.035); box-shadow: 0 0 0 5px rgba(255,196,0,.05), 0 12px 28px rgba(0,0,0,.16); }

.byc-product.is-slate { width: min(390px, 78%); height: min(360px, 68%); }
.byc-product.is-slate .byc-product-face, .byc-product.is-slate .byc-product-depth { clip-path: polygon(2% 4%, 10% 1%, 27% 3%, 43% 0, 60% 2%, 78% 0, 97% 4%, 99% 18%, 97% 37%, 100% 55%, 97% 77%, 99% 95%, 85% 99%, 67% 97%, 50% 100%, 31% 97%, 14% 100%, 1% 96%, 3% 78%, 0 61%, 3% 43%, 0 23%); background: #292e30; }
.byc-product.is-slate .byc-product-face { background-image: radial-gradient(circle at 16% 28%, rgba(255,255,255,.12) 0 1px, transparent 2px), radial-gradient(circle at 72% 66%, rgba(255,255,255,.09) 0 1px, transparent 2px), linear-gradient(115deg,#383d3f,#222628); background-size: 31px 37px, 43px 47px, auto; }
.byc-product.is-slate .byc-print-envelope { inset: 8%; }

.byc-product.is-glass, .byc-product.is-bottle { width: 190px; height: 410px; }
.byc-product.is-glass .byc-product-face, .byc-product.is-glass .byc-product-depth,
.byc-product.is-bottle .byc-product-face, .byc-product.is-bottle .byc-product-depth { border-radius: 48% 48% 28% 28% / 6% 6% 4% 4%; clip-path: polygon(10% 0,90% 0,96% 8%,96% 94%,88% 100%,12% 100%,4% 94%,4% 8%); }
.byc-product.is-glass .byc-product-face { background: linear-gradient(90deg, rgba(151,190,197,.18), rgba(231,248,250,.55) 20%, rgba(166,205,211,.19) 57%, rgba(240,254,255,.52) 76%, rgba(111,152,159,.26)); border: 1px solid rgba(220,248,250,.55); backdrop-filter: blur(2px); }
.byc-product.is-glass .byc-product-depth { background: rgba(75,111,116,.42); }
.byc-product.is-glass .byc-print-envelope { left: 15%; top: 23%; width: 70%; height: 52%; }
.byc-product.is-bottle .byc-product-face { background: linear-gradient(90deg, color-mix(in srgb,var(--product-color),#000 45%), var(--product-color) 18%, color-mix(in srgb,var(--product-color),#fff 28%) 38%, var(--product-color) 65%, color-mix(in srgb,var(--product-color),#000 35%)); }
.byc-product.is-bottle .byc-product-depth { background: #080a0b; }
.byc-product.is-bottle .byc-print-envelope { left: 14%; top: 23%; width: 72%; height: 54%; }
.byc-product-cap { display: none; position: absolute; z-index: 4; top: -45px; left: 31%; width: 38%; height: 54px; border-radius: 10px 10px 4px 4px; background: linear-gradient(90deg,#080a0b,#596064 40%,#15191b 80%); transform: translateZ(3px); }
.byc-product.is-bottle .byc-product-cap { display: block; }
.byc-product-handle { display: none; position: absolute; z-index: -1; right: -75px; top: 55px; width: 96px; height: 190px; border: 24px solid #2b3032; border-left-width: 18px; border-radius: 0 55px 55px 0; transform: translateZ(-5px); }
.byc-product.has-handle .byc-product-handle { display: block; }
.byc-product.shape-cola .byc-product-face, .byc-product.shape-cola .byc-product-depth { clip-path: polygon(29% 0,71% 0,74% 12%,92% 23%,96% 96%,88% 100%,12% 100%,4% 96%,8% 23%,26% 12%); }
.byc-product.shape-square .byc-product-face, .byc-product.shape-square .byc-product-depth { border-radius: 12px; clip-path: none; }
.byc-product.shape-tumbler { width: 230px; }
.byc-product-reference { display: none; }
.byc-product.is-bottle.has-reference-photo { width: 310px; height: 470px; }
.byc-product.is-bottle.has-reference-photo.shape-tumbler { width: 370px; }
.byc-product.is-bottle.has-reference-photo .byc-product-reference { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; pointer-events: none; user-select: none; filter: drop-shadow(0 28px 24px rgba(0,0,0,.42)); transform: translateZ(-2px); }
.byc-product.is-bottle.has-reference-photo .byc-product-face { z-index: 2; overflow: visible; background: transparent; clip-path: none; border-radius: 0; filter: none; }
.byc-product.is-bottle.has-reference-photo .byc-product-face::after,
.byc-product.is-bottle.has-reference-photo .byc-product-depth,
.byc-product.is-bottle.has-reference-photo .byc-product-cap,
.byc-product.is-bottle.has-reference-photo .byc-product-handle { display: none; }
.byc-product.is-bottle.has-reference-photo .byc-print-zone { border-radius: 8px; }
.byc-product.is-bottle.has-reference-photo.shape-cola .byc-print-envelope { left: 34%; top: 38%; width: 32%; height: 48%; }
.byc-product.is-bottle.has-reference-photo.shape-straight .byc-print-envelope { left: 31%; top: 33%; width: 38%; height: 51%; }
.byc-product.is-bottle.has-reference-photo.shape-sport .byc-print-envelope { left: 31%; top: 42%; width: 38%; height: 34%; }
.byc-product.is-bottle.has-reference-photo.shape-glass .byc-print-envelope { left: 34%; top: 34%; width: 32%; height: 50%; }
.byc-product.is-bottle.has-reference-photo.shape-infuser .byc-print-envelope { left: 36%; top: 55%; width: 28%; height: 29%; }
.byc-product.is-bottle.has-reference-photo.shape-square .byc-print-envelope { left: 29%; top: 35%; width: 42%; height: 49%; }
.byc-product.is-bottle.has-reference-photo.shape-tumbler .byc-print-envelope { left: 16%; top: 33%; width: 37%; height: 40%; }

.byc-print-envelope { position: absolute; z-index: 12; border: 1px dashed rgba(255,196,0,.78); background: rgba(255,196,0,.025); transform: translateZ(24px); transform-style: flat; }
.byc-product.is-slate .byc-print-envelope,
.byc-product.is-plate .byc-print-envelope,
.byc-product.is-notebook .byc-print-envelope,
.byc-product.is-keyring .byc-print-envelope,
.byc-product.is-kitchen .byc-print-envelope,
.byc-product.is-wood .byc-print-envelope { box-shadow: 0 0 0 1px rgba(255,196,0,.14), inset 0 0 24px rgba(255,196,0,.035); }
.byc-print-envelope::before { content: attr(data-max-label); position: absolute; z-index: 5; left: 50%; bottom: calc(100% + 6px); padding: 4px 7px; border-radius: 999px; color: #111416; background: rgba(255,196,0,.94); font-size: 7px; font-weight: 950; line-height: 1; white-space: nowrap; transform: translateX(-50%); pointer-events: none; }
.byc-print-zone { position: absolute; z-index: 2; left: 50%; top: 50%; width: 65%; height: 65%; display: grid; place-items: center; padding: 0; border: 1px dashed rgba(255,196,0,.83); background: rgba(255,196,0,.035); color: inherit; overflow: visible; cursor: grab; transform: translate(-50%,-50%); transform-origin: center; }
.byc-print-zone.is-active { z-index: 3; border-style: solid; box-shadow: 0 0 0 3px rgba(255,196,0,.15), 0 8px 22px rgba(0,0,0,.22); }
.byc-print-zone:active { cursor: grabbing; }
.byc-print-zone > small { position: absolute; z-index: 4; left: 50%; bottom: calc(100% + 7px); padding: 5px 8px; border-radius: 999px; color: #111416; background: var(--byc-yellow); font-size: 8px; font-weight: 950; line-height: 1; white-space: nowrap; transform: translateX(-50%); }
.byc-print-zone::before, .byc-print-zone::after { content: ''; position: absolute; background: rgba(255,196,0,.18); pointer-events: none; }
.byc-print-zone::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.byc-print-zone::after { top: 50%; left: 0; right: 0; height: 1px; }
.byc-print-zone > span { position: relative; z-index: 1; width: 80%; color: rgba(255,255,255,.55); font-size: 10px; font-weight: 750; line-height: 1.35; text-align: center; }
.byc-print-zone img { position: absolute; z-index: 2; left: 50%; top: 50%; width: 100%; height: 100%; max-width: none; object-fit: contain; pointer-events: none; user-select: none; transform: translate(-50%, -50%); transform-origin: center; filter: drop-shadow(0 2px 2px rgba(0,0,0,.22)); }
.byc-print-zone > i[data-zone-handle] { position: absolute; z-index: 9; width: 24px; height: 24px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; background: #1473e6; box-shadow: 0 2px 7px rgba(0,0,0,.3); font-size: 12px; font-style: normal; font-weight: 950; line-height: 1; cursor: pointer; user-select: none; touch-action: none; }
.byc-print-zone > i[data-zone-handle="move"] { left: -13px; top: -13px; cursor: move; }
.byc-print-zone > i[data-zone-handle="delete"] { right: -13px; top: -13px; background: #d52d2d; }
.byc-print-zone > i[data-zone-handle="rotate"] { left: -13px; bottom: -13px; cursor: grab; }
.byc-print-zone > i[data-zone-handle="resize"] { right: -13px; bottom: -13px; cursor: nwse-resize; }
.byc-product.is-glass .byc-print-zone img { opacity: .93; mix-blend-mode: multiply; }
.byc-product.is-wrap .byc-print-envelope,
.byc-product.is-bottle.has-reference-photo.is-wrap .byc-print-envelope { left: 3%; width: 94%; }

/* La zone technique reste au-dessus du support et peut déborder librement. */
.byc-product.is-glass { --byc-envelope-left:15%; --byc-envelope-top:23%; --byc-envelope-width:70%; --byc-envelope-height:52%; }
.byc-product.is-glass.is-wrap { --byc-envelope-left:3%; --byc-envelope-width:94%; }
.byc-product.is-bottle.has-reference-photo { --byc-envelope-left:31%; --byc-envelope-top:33%; --byc-envelope-width:38%; --byc-envelope-height:51%; }
.byc-product.is-bottle.has-reference-photo.shape-cola { --byc-envelope-left:34%; --byc-envelope-top:38%; --byc-envelope-width:32%; --byc-envelope-height:48%; }
.byc-product.is-bottle.has-reference-photo.shape-sport { --byc-envelope-left:31%; --byc-envelope-top:42%; --byc-envelope-width:38%; --byc-envelope-height:34%; }
.byc-product.is-bottle.has-reference-photo.shape-glass { --byc-envelope-left:34%; --byc-envelope-top:34%; --byc-envelope-width:32%; --byc-envelope-height:50%; }
.byc-product.is-bottle.has-reference-photo.shape-infuser { --byc-envelope-left:36%; --byc-envelope-top:55%; --byc-envelope-width:28%; --byc-envelope-height:29%; }
.byc-product.is-bottle.has-reference-photo.shape-square { --byc-envelope-left:29%; --byc-envelope-top:35%; --byc-envelope-width:42%; --byc-envelope-height:49%; }
.byc-product.is-bottle.has-reference-photo.shape-tumbler { --byc-envelope-left:16%; --byc-envelope-top:33%; --byc-envelope-width:37%; --byc-envelope-height:40%; }
.byc-product.is-bottle.has-reference-photo.is-wrap { --byc-envelope-left:3%; --byc-envelope-width:94%; }
.byc-product.is-glass .byc-print-envelope,
.byc-product.is-bottle.has-reference-photo .byc-print-envelope {
  left: calc(var(--byc-envelope-left) + var(--byc-machine-offset-x, 0%));
  top: calc(var(--byc-envelope-top) + var(--byc-machine-offset-y, 0%));
  width: var(--byc-envelope-width);
  height: var(--byc-envelope-height);
  transform: translateZ(24px);
}
.byc-stage-size { position: absolute; z-index: 4; top: 16px; left: 16px; padding: 7px 9px; color: #b8bec0; background: rgba(12,14,15,.7); border: 1px solid #414648; font-size: 9px; font-weight: 750; }
.byc-stage-hint { position: absolute; z-index: 4; left: 50%; bottom: 17px; padding: 8px 12px; display: flex; align-items: center; gap: 7px; color: #adb2b4; background: rgba(12,14,15,.8); border: 1px solid #3a3f41; font-size: 9px; transform: translateX(-50%); white-space: nowrap; }
.byc-stage-hint span { color: var(--byc-yellow); font-size: 15px; }
.byc-view-controls { margin-top: 13px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.byc-mode-switch, .byc-angle-actions { display: flex; gap: 5px; }
.byc-view-controls button { min-height: 35px; padding: 7px 11px; color: #aeb4b6; background: #202426; border: 1px solid #3a4042; font-size: 9px; font-weight: 800; }
.byc-view-controls button:hover, .byc-view-controls button.is-active { color: #111416; background: var(--byc-yellow); border-color: var(--byc-yellow); }

.byc-zone-manager-actions { margin: 16px 0 11px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.byc-zone-manager-actions button, .byc-preview-zone-toolbar button { min-height: 36px; padding: 8px 10px; border: 1px solid #d0d3d3; background: #fff; color: #272b2d; font-size: 9px; font-weight: 900; }
.byc-zone-manager-actions button:first-child, .byc-preview-zone-toolbar button:first-child { border-color: #d9a800; background: var(--byc-yellow); color: #111416; }
.byc-zone-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.byc-zone-tabs button { min-height: 31px; padding: 6px 9px; border: 1px solid #cfd2d2; background: #f7f7f5; color: #4c5356; font-size: 8px; font-weight: 900; }
.byc-zone-tabs button:hover, .byc-zone-tabs button.is-active { border-color: #d9a800; background: #fff5ce; color: #111416; }
.byc-zone-tabs button.is-active { box-shadow: inset 0 0 0 1px var(--byc-yellow); }
.byc-preview-zone-toolbar { margin: 10px 0 2px; padding: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #383e40; background: #171b1d; }
.byc-preview-zone-toolbar > div:last-child { display: flex; gap: 5px; flex: 0 0 auto; }
.byc-preview-zone-toolbar .byc-zone-tabs { min-width: 0; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
.byc-preview-zone-toolbar .byc-zone-tabs button { flex: 0 0 auto; border-color: #414749; background: #24292b; color: #c4c9ca; }
.byc-preview-zone-toolbar .byc-zone-tabs button.is-active { border-color: var(--byc-yellow); background: var(--byc-yellow); color: #111416; }
.byc-preview-zone-toolbar button { min-height: 31px; border-color: #414749; background: #24292b; color: #d0d4d5; }

.byc-order-title { padding-bottom: 20px; border-bottom: 1px solid var(--byc-line); }
.byc-order-title > span { color: #8d6d00; font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.byc-order-title h2 { margin: 8px 0 5px; font-size: 24px; letter-spacing: -.035em; }
.byc-order-title p { margin: 0; color: #707679; font-size: 12px; }
.byc-quality-card { margin: 20px 0; padding: 14px; display: grid; grid-template-columns: 33px 1fr auto; align-items: center; gap: 10px; border: 1px solid #d9dcdd; background: #f6f6f4; }
.byc-quality-icon { width: 31px; height: 31px; display: grid; place-items: center; color: #fff; background: #73797c; border-radius: 50%; font-size: 13px; font-weight: 900; }
.byc-quality-card span { display: block; color: #767c7f; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.byc-quality-card b { display: block; margin-top: 2px; font-size: 12px; }
.byc-quality-card small { display: block; margin-top: 3px; color: #73797c; font-size: 9px; line-height: 1.35; }
.byc-quality-card > strong { font-size: 17px; white-space: nowrap; }
.byc-quality-card.is-excellent { border-color: #81b98e; background: #edf8ef; }
.byc-quality-card.is-excellent .byc-quality-icon { background: #268d43; }
.byc-quality-card.is-usable { border-color: #d4a726; background: #fff8df; }
.byc-quality-card.is-usable .byc-quality-icon { color: #111416; background: var(--byc-yellow); }
.byc-quality-card.is-blocked { border-color: #d28b8b; background: #fff0f0; }
.byc-quality-card.is-blocked .byc-quality-icon { background: #b73131; }
.byc-production-card { padding: 2px 0; border-top: 1px solid var(--byc-line); border-bottom: 1px solid var(--byc-line); }
.byc-production-card > div { min-height: 38px; padding: 11px 0; display: grid; grid-template-columns: minmax(82px, auto) minmax(0, 1fr); align-items: center; gap: 12px; border-bottom: 1px solid #eeeeeb; font-size: 10px; }
.byc-production-card > div:last-child { border: 0; }
.byc-production-card span { color: #72787b; }
.byc-production-card b { min-width: 0; overflow: hidden; font-variant-numeric: tabular-nums; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.byc-price { padding: 22px 0 17px; display: flex; justify-content: space-between; align-items: end; }
.byc-price span { font-size: 11px; font-weight: 850; }
.byc-price small { display: block; margin-top: 3px; color: #858a8d; font-size: 9px; font-weight: 600; }
.byc-price strong { font-size: 28px; letter-spacing: -.05em; }
.byc-quantity { padding: 10px 0; display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 850; }
.byc-quantity > span { display: grid; grid-template-columns: 33px 38px 33px; align-items: center; border: 1px solid #d5d7d7; }
.byc-quantity button { height: 32px; padding: 0; background: #f5f5f3; border: 0; font-weight: 900; }
.byc-quantity output { text-align: center; font-weight: 900; }
.byc-rights { margin: 13px 0; display: flex; align-items: flex-start; gap: 8px; color: #62686b; font-size: 9px; line-height: 1.45; }
.byc-rights input { margin-top: 2px; accent-color: #111416; }
.byc-rights a { color: inherit; font-weight: 850; }
.byc-add-cart { width: 100%; min-height: 52px; padding: 12px 16px; color: #101315; background: var(--byc-yellow); border: 1px solid #dfa900; font-weight: 950; box-shadow: 0 10px 24px rgba(255,196,0,.2); }
.byc-add-cart:disabled { cursor: not-allowed; color: #8b8f90; background: #e7e7e4; border-color: #d5d7d6; box-shadow: none; }
.byc-add-cart.is-loading { color: transparent; position: relative; }
.byc-add-cart.is-loading::after { content: ''; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border: 2px solid #111416; border-right-color: transparent; border-radius: 50%; animation: byc-spin .7s linear infinite; }
.byc-save-draft { width: 100%; margin-top: 9px; padding: 8px; color: #596064; background: none; border: 0; font-size: 10px; font-weight: 850; text-decoration: underline; }
.byc-order-note { min-height: 30px; margin: 7px 0 0; color: #7a7f82; font-size: 9px; line-height: 1.45; text-align: center; }
.byc-order-note.is-error { color: #a62929; font-weight: 800; }
.byc-order-note.is-success { color: #22753a; font-weight: 800; }
.byc-studio-trust { width: min(1540px, 100%); margin: 20px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #d9dad6; background: rgba(255,255,255,.66); }
.byc-studio-trust div { padding: 17px 22px; border-right: 1px solid #d9dad6; }
.byc-studio-trust div:last-child { border: 0; }
.byc-studio-trust b, .byc-studio-trust span { display: block; }
.byc-studio-trust b { font-size: 11px; }
.byc-studio-trust span { margin-top: 4px; color: #747a7d; font-size: 10px; line-height: 1.4; }

@keyframes byc-spin { to { transform: rotate(360deg); } }

@media (max-width: 1180px) {
  .byc-studio-hero { grid-template-columns: 1fr; gap: 24px; }
  .byc-studio-hero ul { max-width: 680px; }
  .byc-studio-grid { grid-template-columns: 290px minmax(430px, 1fr); }
  .byc-order-panel { grid-column: 1 / -1; border-top: 1px solid var(--byc-line); border-left: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
  .byc-order-title, .byc-quality-card, .byc-production-card { grid-column: 1; }
  .byc-price, .byc-quantity, .byc-rights, .byc-add-cart, .byc-save-draft, .byc-order-note { grid-column: 2; }
  .byc-price { grid-row: 1; }
  .byc-quantity { grid-row: 2; }
  .byc-rights { grid-row: 3; }
  .byc-add-cart { grid-row: 4; }
  .byc-save-draft { grid-row: 5; }
  .byc-order-note { grid-row: 6; }
}

@media (max-width: 820px) {
  .byc-studio-page { padding: 28px 10px 50px; }
  .byc-studio-hero ul { grid-template-columns: 1fr; }
  .byc-studio-hero li { border-right: 0; border-bottom: 1px solid #dddcd6; }
  .byc-support-tabs { padding: 13px; display: block; }
  .byc-support-tabs > div { margin-bottom: 12px; }
  .byc-support-tabs nav { grid-template-columns: repeat(4, minmax(82px, 1fr)); overflow-x: auto; padding-bottom: 3px; }
  .byc-support-tabs nav button, .byc-support-tabs nav > a { min-height: 58px; padding: 8px; gap: 7px; }
  .byc-support-tabs nav i { width: 25px; height: 25px; }
  .byc-studio-grid { display: flex; flex-direction: column; }
  .byc-config-panel { order: 1; max-height: none; border-right: 0; }
  .byc-preview-panel { order: 2; min-height: 650px; padding: 20px 12px; }
  .byc-order-panel { order: 3; display: block; padding: 24px 18px; }
  .byc-stage { min-height: 550px; }
  .byc-stage-hint { max-width: 90%; white-space: normal; text-align: center; }
  .byc-view-controls { flex-wrap: wrap; }
  .byc-studio-trust { grid-template-columns: 1fr; }
  .byc-studio-trust div { border-right: 0; border-bottom: 1px solid #d9dad6; }
}

@media (max-width: 520px) {
  .byc-studio-page { padding-inline: 0; }
  .byc-studio-hero { padding-inline: 16px; }
  .byc-studio-hero h1 { font-size: 42px; }
  .byc-studio-app { border-left: 0; border-right: 0; }
  .byc-support-tabs nav button, .byc-support-tabs nav > a { flex-direction: column; justify-content: center; text-align: center; }
  .byc-support-tabs nav small { display: none; }
  .byc-config-section { padding: 21px 17px; }
  .byc-preview-panel { min-height: 610px; }
  .byc-preview-panel > header { align-items: flex-start; }
  .byc-stage-chip { max-width: 135px; white-space: normal; text-align: right; }
  .byc-stage { min-height: 500px; }
  .byc-product.is-tshirt { width: 325px; height: 390px; }
  .byc-product.is-slate { width: 315px; height: 300px; }
  .byc-product.is-glass, .byc-product.is-bottle { width: 155px; height: 365px; }
  .byc-product.is-bottle.has-reference-photo { width: 245px; height: 390px; }
  .byc-product.is-bottle.has-reference-photo.shape-tumbler { width: 295px; }
  .byc-mode-switch { width: 100%; }
  .byc-mode-switch button { flex: 1; }
  .byc-studio-trust { margin-inline: 10px; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .byc-studio-page *, .byc-studio-page *::before, .byc-studio-page *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: .01ms !important; }
}

/* MAJ-0010 — bandeau compact, actions accessibles et aperçu final */
.byc-studio-hero {
  min-height: 0;
  padding-block: clamp(24px, 2.6vw, 38px);
  gap: clamp(28px, 4vw, 58px);
  align-items: center;
}
.byc-studio-hero h1 { max-width: 1050px; font-size: clamp(36px, 3.3vw, 64px); line-height: .94; }
.byc-studio-hero p { margin-top: 14px; font-size: clamp(13px, .72vw, 16px); line-height: 1.5; }
.byc-studio-hero li { padding-block: 10px; }
.byc-studio-hero li span { font-size: clamp(9px, .52vw, 11px); }
.byc-studio-hero li small { font-size: clamp(10px, .58vw, 12px); }
.byc-proof-toggle {
  position: absolute;
  z-index: 30;
  top: 24px;
  right: 24px;
  min-height: 38px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  color: #fff;
  background: rgba(11,13,15,.78);
  backdrop-filter: blur(8px);
  cursor: pointer;
  font-size: clamp(10px, .55vw, 12px);
  box-shadow: 0 8px 24px rgba(0,0,0,.16);
}
.byc-proof-toggle:hover,.byc-proof-toggle[aria-pressed="true"] { color: #111416; border-color: var(--byc-yellow); background: var(--byc-yellow); }
.byc-empty-zone-actions { width: min(94%, 180px) !important; display: grid; gap: 7px; pointer-events: auto; }
.byc-empty-zone-actions > b { color: rgba(255,255,255,.78); font-size: clamp(9px, .52vw, 11px); }
.byc-empty-zone-actions > span { display: flex; justify-content: center; gap: 5px; }
.byc-empty-zone-actions button { min-height: 28px; padding: 0 8px; border: 1px solid rgba(255,196,0,.65); border-radius: 5px; color: #111416; background: var(--byc-yellow); cursor: pointer; font-size: clamp(8px, .45vw, 10px); font-weight: 850; }
.byc-empty-zone-actions button:hover { background: #ffd238; }
.byc-product-orbit,.byc-product,.byc-product-face,.byc-product-depth,.byc-product-reference { pointer-events: none; }
.byc-print-envelope { pointer-events: auto; transform-style: flat; }
.byc-print-zone,.byc-empty-zone-actions,.byc-empty-zone-actions button { pointer-events: auto; }
.byc-print-zone { transform-style: flat; }
.byc-empty-zone-actions { z-index: 30 !important; transform: translateZ(4px); }
.byc-empty-zone-actions button { position: relative; z-index: 31; }
.byc-config-section,.byc-order-panel { font-size: clamp(11px, .56vw, 14px); }
.byc-panel-kicker,.byc-panel-intro,.byc-format-detail,.byc-variant-cards small,.byc-tool-rail button,.byc-object-view-strip button { font-size: clamp(9px, .48vw, 11px); }
.byc-variant-cards b,.byc-variant-cards strong,.byc-preview-panel > header b { font-size: clamp(10px, .54vw, 13px); }
.byc-studio-app.is-proof-mode .byc-print-envelope { border-color: transparent; background: transparent; box-shadow: none; }
.byc-studio-app.is-proof-mode .byc-print-envelope::before,
.byc-studio-app.is-proof-mode .byc-print-zone > small,
.byc-studio-app.is-proof-mode .byc-print-zone::before,
.byc-studio-app.is-proof-mode .byc-print-zone::after,
.byc-studio-app.is-proof-mode .byc-print-zone > i,
.byc-studio-app.is-proof-mode .byc-empty-zone-actions,
.byc-studio-app.is-proof-mode .byc-preview-zone-toolbar,
.byc-studio-app.is-proof-mode .byc-object-view-strip,
.byc-studio-app.is-proof-mode .byc-view-controls,
.byc-studio-app.is-proof-mode .byc-stage-size,
.byc-studio-app.is-proof-mode .byc-stage-hint,
.byc-studio-app.is-proof-mode .byc-preview-panel > header { display: none !important; }
.byc-studio-app.is-proof-mode .byc-print-zone { border-color: transparent; background: transparent; box-shadow: none; cursor: default; }
.byc-studio-app.is-proof-mode .byc-preview-workspace { grid-template-columns: minmax(0,1fr); }
.byc-studio-app.is-proof-mode .byc-stage { margin: 0; }

@media (min-width: 1800px) {
  .byc-studio-hero { padding: 34px clamp(44px,4vw,96px) 32px; gap: 58px; }
  .byc-studio-hero h1 { max-width: 1180px; font-size: clamp(52px,2.75vw,72px); }
  .byc-studio-hero p { max-width: 900px; font-size: clamp(14px,.72vw,18px); }
}
@media (min-width: 2600px) {
  .byc-studio-hero h1 { font-size: clamp(58px,2.35vw,74px); }
  .byc-studio-hero p { font-size: 18px; }
}
@media (max-width: 820px) {
  .byc-studio-hero { padding: 24px 18px 22px; gap: 18px; }
  .byc-studio-hero h1 { font-size: clamp(34px, 10vw, 52px); }
  .byc-proof-toggle { top: 14px; right: 14px; }
}

/* BYC-local-2.9.0 — parité visuelle avec le studio T-shirt */
.byc-studio-page {
  padding: 0;
  background: #ede9e0;
}
.byc-studio-hero {
  width: 100%;
  max-width: 1780px;
  min-height: 390px;
  margin: 0 auto;
  padding: 56px clamp(24px, 4vw, 72px) 40px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 60px;
  align-items: end;
  color: #fff;
  background: #0b0d0f;
  border-bottom: 1px solid #25292b;
}
.byc-studio-hero .eyebrow { color: var(--byc-yellow); font-size: 11px; }
.byc-studio-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(42px, 5.4vw, 82px);
  line-height: .92;
  letter-spacing: -.055em;
  text-transform: uppercase;
}
.byc-studio-hero h1 em { display: block; color: var(--byc-yellow); }
.byc-studio-hero p { max-width: 820px; margin:22px 0 0; color: #b8bec1; font-size: 15px; line-height:1.65; }
.byc-studio-hero ul { display: block; border: 0; background: transparent; }
.byc-studio-hero li { padding: 16px 0; border-right: 0; border-bottom: 1px solid #303436; align-items: flex-start; }
.byc-studio-hero li:last-child { border-bottom: 1px solid #303436; }
.byc-studio-hero li > strong { min-width: 30px; color: var(--byc-yellow); font-size: 10px; }
.byc-studio-hero li span { font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
.byc-studio-hero li small { color: #fff; font-size: 11px; letter-spacing: 0; }
.byc-all-supports { background: #f4f3ef; }
.byc-studio-app {
  width: 100%;
  max-width: 1780px;
  margin: 0 auto;
  border: 0;
  box-shadow: 0 32px 95px rgba(11,13,15,.14);
}
.byc-support-tabs { display: none; }
.byc-studio-grid {
  min-height: 850px;
  grid-template-columns: 88px minmax(250px,310px) minmax(520px,1fr) minmax(300px,360px);
  align-items: stretch;
  background: #f4f1ea;
}
.byc-tool-rail {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 18px 7px;
  color: #fff;
  background: #101315;
  border-right: 1px solid #2b3032;
}
.byc-tool-rail button {
  width: 100%;
  min-height: 82px;
  padding: 9px 3px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  color: #bfc4c6;
  background: transparent;
  border-radius: 8px;
  font-size: 8px;
  font-weight: 850;
  border: 0;
}
.byc-tool-rail button:hover, .byc-tool-rail button.is-active { color: #111416; background: var(--byc-yellow); }
.byc-tool-rail i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: inherit;
  background: rgba(255,255,255,.06);
  border-radius: 7px;
  font-style: normal;
  font-size: 15px;
}
.byc-config-panel {
  max-height: none;
  border-right: 1px solid #d8d4cb;
  scrollbar-width: thin;
}
.byc-config-section { padding: 34px 21px; }
.byc-panel-kicker { display:block; margin-bottom:9px; color:#937100; font-size:8px; font-weight:900; letter-spacing:.14em; text-transform:uppercase; }
.byc-config-section > h2 { margin:0; font-family:"Arial Black",Arial,sans-serif; font-size:25px; line-height:1; letter-spacing:-.035em; text-transform:uppercase; }
.byc-panel-intro { margin:12px 0 20px; color:#6f7477; font-size:9px; line-height:1.55; }
[data-byc-personalization][data-active-config="product"] [data-config-panel]:not([data-config-panel="product"]),
[data-byc-personalization][data-active-config="image"] [data-config-panel]:not([data-config-panel="image"]),
[data-byc-personalization][data-active-config="text"] [data-config-panel]:not([data-config-panel="text"]),
[data-byc-personalization][data-active-config="composition"] [data-config-panel]:not([data-config-panel="composition"]) { display: none !important; }
.byc-history-tools { margin-top:auto; display:grid; gap:8px; width:100%; }
.byc-history-tools button:disabled { opacity:.35; cursor:not-allowed; }
.byc-text-section textarea { width:100%; resize:vertical; min-height:88px; }
.byc-text-tools { display:flex; align-items:end; gap:8px; margin:14px 0; }
.byc-text-tools label { flex:1; display:grid; gap:6px; font-size:11px; font-weight:800; }
.byc-text-tools input[type="color"] { width:100%; height:38px; padding:3px; border:1px solid #d7d5cf; border-radius:7px; background:#fff; }
.byc-text-tools button { width:40px; height:38px; border:1px solid #d7d5cf; border-radius:7px; background:#f6f4ef; }
.byc-text-tools button[aria-pressed="true"] { border-color:var(--byc-yellow); background:var(--byc-yellow); }
.byc-zone-text { position:absolute; z-index:3; inset:0; display:grid; place-items:center; padding:5%; overflow:hidden; line-height:1.05; text-align:center; white-space:pre-wrap; overflow-wrap:anywhere; pointer-events:none; }
.byc-layer-list { display:grid; gap:8px; margin:12px 0 18px; }
.byc-layer-list button { width:100%; display:flex; justify-content:space-between; gap:10px; padding:11px 12px; border:1px solid #ddd9d0; border-radius:8px; background:#f7f5f0; font-size:11px; font-weight:800; text-align:left; }
.byc-layer-list button.is-active { border-color:var(--byc-yellow); box-shadow:inset 3px 0 0 var(--byc-yellow); background:#fff9df; }
@media (min-width: 1181px) {
  .byc-studio-grid { height:942px; min-height:942px; }
  .byc-tool-rail, .byc-config-panel, .byc-preview-panel, .byc-order-panel { height:942px; min-height:0; }
  .byc-config-panel, .byc-order-panel { overflow-y:auto; scrollbar-width:thin; }
}
.byc-section-title > span { color: #8a6900; background: transparent; width: auto; height: auto; font-size: 9px; }
.byc-section-title > div b { font-size: 18px; letter-spacing: -.02em; text-transform: uppercase; }
.byc-section-title > div small { font-size: 9px; }
.byc-native-variant { position: absolute !important; inline-size: 1px !important; block-size: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; }
.byc-variant-cards { margin-top: 18px; display: grid; gap: 9px; }
.byc-variant-cards button {
  width: 100%;
  min-height: 74px;
  padding: 13px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #202426;
  background: #f8f7f3;
  border: 1px solid #dddcd6;
  border-radius: 8px;
  text-align: left;
}
.byc-variant-cards button:hover { border-color: #c89b00; }
.byc-variant-cards button.is-active { background: #fff9df; border-color: var(--byc-yellow); box-shadow: inset 0 -3px 0 var(--byc-yellow); }
.byc-variant-cards span, .byc-variant-cards b, .byc-variant-cards small { display: block; }
.byc-variant-cards b { font-size: 11px; }
.byc-variant-cards small { margin-top: 5px; color: #747a7d; font-size: 8px; line-height: 1.3; }
.byc-variant-cards strong { flex: 0 0 auto; color: #806200; font-size: 10px; }
.byc-format-detail { font-size: 9px; }
.byc-preview-panel { position: relative; padding: 20px 24px 18px; background: #1a1e20; }
.byc-preview-panel > header { position: absolute; z-index: 10; top: 30px; left: 140px; max-width: 155px; }
.byc-preview-panel > header small, .byc-preview-panel > header .byc-stage-chip { display: none; }
.byc-preview-panel > header b { font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.byc-stage {
  min-height: 783px;
  margin-top: 0;
  border-color: #c5c7c4;
  border-radius: 16px;
  background-color: #d8d8d3;
  background-image: radial-gradient(circle at 50% 42%, #f7f7f3 0, #d8d8d3 66%, #c5c6c1 100%);
}
.byc-preview-workspace { min-width: 0; margin-top: 0; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }
.byc-object-view-strip { min-width: 0; display: grid; align-content: start; gap: 10px; }
.byc-object-view-strip button { min-height: 132px; padding: 9px 5px; display: grid; place-items: center; align-content: center; gap: 8px; color: #d8dddf; background: #23282b; border: 1px solid #3c4245; border-radius: 9px; font-size: 8px; font-weight: 850; }
.byc-object-view-strip button:hover, .byc-object-view-strip button.is-active { color: #111416; background: var(--byc-yellow); border-color: var(--byc-yellow); }
.byc-object-view-strip i { width: 46px; height: 58px; display: grid; place-items: center; color: inherit; background: rgba(255,255,255,.08); border-radius: 7px; font-style: normal; font-size: 11px; }
.byc-preview-zone-toolbar { position:absolute; z-index:11; top:27px; left:calc(50% + 50px); right:auto; width:min(285px,46%); height:48px; margin:0; border-radius:8px; background:rgba(7,9,10,.82); transform:translateX(-50%); }
.byc-product-orbit { width: min(94%, 620px); height: min(88%, 690px); }
.byc-product { --byc-flat-wide-max:520px; --byc-flat-tall-max:440px; }
.byc-stage-light { background: rgba(255,255,255,.72); }
.byc-stage::after { background: rgba(45,47,47,.26); }
.byc-stage-size { color: #4c5356; background: rgba(255,255,255,.78); border-color: #cccdc9; }
.byc-stage-hint { color: #d3d7d8; }
.byc-preview-zone-toolbar { border-radius: 8px; }
.byc-product-face { filter: drop-shadow(-16px 22px 20px rgba(0,0,0,.28)); }
.byc-product.is-plate .byc-product-face, .byc-product.is-plate .byc-product-depth { background: linear-gradient(125deg,#e8e9e7,#aeb3b5); border-radius: 4px; }
.byc-product.is-plate .byc-print-envelope { inset: 6%; }
.byc-product.is-notebook .byc-product-face, .byc-product.is-notebook .byc-product-depth { background: linear-gradient(100deg,#181b1d 0 6%,#d9b871 7% 100%); border-radius: 4px 12px 12px 4px; }
.byc-product.is-notebook .byc-print-envelope { left: 14%; top: 9%; width: 78%; height: 82%; }
.byc-product.is-keyring .byc-product-face, .byc-product.is-keyring .byc-product-depth { background: linear-gradient(135deg,#f1f2ef,#aeb2b2); border-radius: 12px; }
.byc-product.is-keyring.shape-round .byc-product-face, .byc-product.is-keyring.shape-round .byc-product-depth { border-radius: 50%; }
.byc-product.is-keyring .byc-product-face::before { content: ''; position: absolute; z-index: 5; top: 4%; left: 50%; width: 8%; aspect-ratio: 1; border-radius: 50%; background: #34383a; transform: translateX(-50%); }
.byc-product.is-keyring .byc-print-envelope { inset: 12%; }
.byc-product.is-kitchen { width: min(390px, 72%); height: min(500px, 82%); }
.byc-product.is-kitchen .byc-product-face, .byc-product.is-kitchen .byc-product-depth { background: linear-gradient(135deg,#f3eee2,#d7cdb9); border-radius: 8px; }
.byc-product.is-kitchen.shape-apron .byc-product-face, .byc-product.is-kitchen.shape-apron .byc-product-depth { clip-path: polygon(31% 0,69% 0,76% 17%,96% 28%,86% 100%,14% 100%,4% 28%,24% 17%); }
.byc-product.is-kitchen .byc-print-envelope { left: 18%; top: 22%; width: 64%; height: 62%; }
.byc-product.is-wood .byc-product-face, .byc-product.is-wood .byc-product-depth { background: repeating-linear-gradient(94deg,#be8d56 0 9px,#c99a63 10px 21px,#b9824d 22px 23px); border-radius: 4px; }
.byc-product.is-wood .byc-print-envelope { inset: 8%; }
.byc-order-panel { padding: 33px 21px; border-left-color: #d8d4cb; }
.byc-order-title h2 { font-size: 27px; line-height: .95; text-transform: uppercase; }
.byc-calibration-note { margin: 16px 0; padding: 12px; color: #624f0a; background: #fff8dc; border: 1px solid #e0bd43; font-size: 9px; line-height: 1.45; }
.byc-studio-trust { width: 100%; max-width: 1780px; margin: 0 auto; }

@media (min-width: 1800px) {
  .byc-studio-hero, .byc-studio-app, .byc-studio-trust { max-width: min(2500px, 94vw); }
  .byc-studio-hero { min-height:0; padding:72px clamp(44px,4vw,96px) 55px; gap:85px; }
  .byc-studio-hero h1 { max-width:1320px; font-size:clamp(70px,4.2vw,108px); }
  .byc-studio-hero p { max-width:1020px; font-size:18px; }
  .byc-studio-grid { height:auto; min-height:1040px; grid-template-columns:110px minmax(350px,410px) minmax(760px,1fr) minmax(400px,470px); }
  .byc-tool-rail, .byc-config-panel, .byc-preview-panel, .byc-order-panel { height:auto; min-height:1040px; }
  .byc-tool-rail { padding:24px 12px; }
  .byc-tool-rail button { min-height:84px; font-size:10px; }
  .byc-tool-rail i { width:39px; height:39px; font-size:21px; }
  .byc-config-section, .byc-order-panel { padding:43px 35px; }
  .byc-panel-kicker { margin-bottom:12px; font-size:10px; }
  .byc-config-section > h2 { font-size:33px; }
  .byc-panel-intro { margin:15px 0 26px; font-size:12px; }
  .byc-preview-panel { padding:27px 32px 24px; }
  .byc-preview-workspace { grid-template-columns:112px minmax(0,1fr); gap:17px; }
  .byc-object-view-strip button { min-height:145px; }
  .byc-stage { min-height:790px; }
  .byc-product-orbit { width:min(96%,880px); height:min(90%,790px); }
  .byc-product { --byc-flat-wide-max:700px; --byc-flat-tall-max:700px; }
  .byc-object-view-strip { grid-template-columns: 1fr; }
  .byc-config-section, .byc-order-panel { font-size: 1.04rem; }
}

@media (min-width: 2600px) {
  .byc-studio-hero, .byc-studio-app, .byc-studio-trust { max-width:min(2860px,94vw); }
  .byc-studio-hero h1 { font-size:clamp(94px,4vw,126px); }
  .byc-studio-hero p { font-size:21px; }
  .byc-studio-grid { min-height:1190px; grid-template-columns:124px minmax(410px,470px) minmax(900px,1fr) minmax(460px,530px); }
  .byc-tool-rail, .byc-config-panel, .byc-preview-panel, .byc-order-panel { min-height:1190px; }
  .byc-tool-rail button { min-height:96px; font-size:11px; }
  .byc-config-section, .byc-order-panel { padding:50px 42px; }
  .byc-config-section > h2 { font-size:38px; }
  .byc-panel-intro { font-size:13px; }
  .byc-preview-panel { padding:32px 38px 28px; }
  .byc-preview-workspace { grid-template-columns:128px minmax(0,1fr); }
  .byc-object-view-strip button { min-height:165px; }
  .byc-stage { min-height:930px; }
  .byc-product-orbit { width:min(96%,1040px); height:min(91%,930px); }
  .byc-product { --byc-flat-wide-max:820px; --byc-flat-tall-max:820px; }
}

@media (min-width:1181px) and (max-width:1320px) {
  .byc-studio-grid { grid-template-columns:76px 270px minmax(450px,1fr) 315px; }
}

@media (max-width: 1180px) {
  .byc-studio-grid { grid-template-columns: 68px 270px minmax(430px, 1fr); }
  .byc-order-panel { grid-column: 2 / -1; }
}

@media (max-width: 820px) {
  .byc-studio-hero { min-height: 0; padding: 38px 18px 30px; grid-template-columns: 1fr; }
  .byc-studio-hero h1 { font-size: clamp(42px, 13vw, 68px); }
  .byc-studio-grid { display: flex; }
  .byc-tool-rail { position: sticky; top: 0; z-index: 20; order: 0; min-height: 66px; padding: 6px; flex-direction: row; }
  .byc-tool-rail button { flex: 1; min-height: 54px; grid-template-columns: auto auto; }
  .byc-tool-rail i { width: 25px; height: 25px; }
  .byc-config-panel { order: 1; }
  .byc-preview-panel { order: 2; }
  .byc-order-panel { order: 3; }
  .byc-stage { min-height: 560px; }
  .byc-preview-workspace { grid-template-columns: 1fr; }
  .byc-object-view-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .byc-object-view-strip button { min-height: 62px; }
  .byc-object-view-strip i { display: none; }
}

/* Les règles de densité restent volontairement en dernier : elles neutralisent
   l'ancien agrandissement 4K sans réduire l'interface de travail. */
.byc-studio-hero { min-height: 0; padding-block: clamp(24px,2.6vw,38px); gap: clamp(28px,4vw,58px); align-items: center; }
.byc-studio-hero h1 { max-width: 1050px; font-size: clamp(36px,3.3vw,64px); line-height: .94; }
.byc-studio-hero p { margin-top: 14px; font-size: clamp(13px,.72vw,16px); line-height: 1.5; }
.byc-studio-hero li { padding-block: 10px; }
@media (min-width:1800px) {
  .byc-studio-hero { padding:34px clamp(44px,4vw,96px) 32px; gap:58px; }
  .byc-studio-hero h1 { max-width:1180px; font-size:clamp(52px,2.75vw,72px); }
  .byc-studio-hero p { max-width:900px; font-size:clamp(14px,.72vw,18px); }
}
@media (min-width:2600px) {
  .byc-studio-hero h1 { font-size:clamp(58px,2.35vw,74px); }
  .byc-studio-hero p { font-size:18px; }
}
@media (max-width:820px) {
  .byc-studio-hero { padding:24px 18px 22px; gap:18px; }
  .byc-studio-hero h1 { font-size:clamp(34px,10vw,52px); }
}
