/* Lens Custom wireframe: local artwork studio and illustrative concept gallery. */
.lens-custom-page { max-width: 1440px; margin-inline: auto; font-family: var(--font-inter); }
html:has(.lens-custom-page) { scroll-behavior: smooth; }
.lens-custom-page h1, .lens-custom-page h2, .lens-custom-page h3 { font-family: var(--font-manrope); letter-spacing: -.035em; }
.lens-custom-page .ui-eyebrow { margin: 0 0 12px; }
.custom-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; padding-block: 64px 72px; }
.custom-hero h1 { margin: 0; font-size: clamp(38px, 4.5vw, 68px); font-weight: 600; line-height: 1.15; }
.custom-hero h1 > span { display: inline-block; color: var(--color-primary); transform: skewX(-8deg); }
.custom-hero > div > p:not(.ui-eyebrow) { max-width: 46ch; margin: 24px 0 28px; color: var(--color-text-secondary); line-height: 1.8; }
.custom-hero__ideas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 16px; }
.custom-hero__ideas .custom-concept { transform: rotate(-8deg) translateY(12px); box-shadow: 0 12px 28px rgb(22 22 22 / 10%); }
.custom-hero__ideas .custom-concept:nth-child(2) { transform: translateY(-24px); }
.custom-hero__ideas .custom-concept:nth-child(3) { transform: rotate(8deg) translateY(12px); }
.custom-terms { text-align: left; }
.custom-terms > summary { font: 600 13px/1.6 var(--font-manrope); }
.custom-terms .ui-accordion__content p { margin: 12px 0; color: var(--color-text-secondary); font-size: 12px; line-height: 1.8; }
.custom-consent { align-items: flex-start; width: 100%; text-align: left; font-size: 12px; line-height: 1.7; }
.custom-consent .ui-checkbox__mark { margin-top: 2px; }
.custom-consent .ui-choice-input[aria-invalid=true] + .ui-checkbox__mark { border-color: var(--color-border-error); }
.custom-concept { min-width: 0; padding: 10px; border-radius: 16px; background: var(--color-surface); }
.custom-concept__art { display: grid; place-items: center; aspect-ratio: 1; padding: 18%; border-radius: 10px; background: var(--concept-surface, #fbe8ee); }
.custom-concept p { margin: 12px 0 4px; text-align: center; color: var(--color-text-secondary); font: 600 12px/1.5 var(--font-manrope); }
.custom-lens-art { display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, transparent 0 26%, #ffffff40 27% 31%, transparent 32% 54%, var(--concept-accent, #925d72) 67%, transparent 71%), repeating-conic-gradient(var(--concept-color, #d995aa) 0deg 3deg, var(--concept-accent, #925d72) 4deg 5deg, var(--concept-color, #d995aa) 6deg 9deg); -webkit-mask-image: radial-gradient(circle, transparent 0 24%, #000 28% 64%, transparent 71%); mask-image: radial-gradient(circle, transparent 0 24%, #000 28% 64%, transparent 71%); opacity: .85; }
.custom-studio { padding: clamp(24px, 3.3vw, 48px); border-radius: 24px; background: var(--color-surface); scroll-margin-top: calc(var(--site-header-height) + 20px); }
.custom-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; }
.custom-section-heading h2 { margin: 0; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.3; font-weight: 600; }
.custom-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); align-items: stretch; gap: 24px; }
.custom-editor, .custom-result { min-width: 0; padding: 24px; border-radius: 16px; background: var(--color-surface-brand); }
.custom-editor { display: flex; flex-direction: column; }
.custom-tabs { margin-bottom: 24px; }
.custom-tabs .ui-tab { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 8px; border: 0; font: 600 14px/1.5 var(--font-manrope); white-space: nowrap; }
.custom-tabs .ui-icon { --icon-size: 18px; }
.custom-editor__body { display: grid; flex: 1; }
.custom-upload { display: flex; flex-direction: column; }
.custom-upload__drop { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 20px; min-height: 430px; padding: 32px 24px; border: 1px dashed var(--color-border-input); border-radius: 12px; background: var(--color-surface); text-align: center; }
.custom-upload__drop.is-dragging { border: 2px solid var(--color-primary); background: var(--color-surface-selected); }
.custom-upload__empty { display: grid; justify-items: center; gap: 16px; }
.custom-upload__icon { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; color: var(--color-primary); background: var(--color-surface-brand); }
.custom-upload__icon .ui-icon { --icon-size: 32px; }
.custom-upload__empty h3 { margin: 0; font-size: 22px; font-weight: 600; }
.custom-upload__empty p { max-width: 30ch; margin: 0; color: var(--color-text-secondary); font-size: 14px; line-height: 1.8; }
.custom-upload__drop small { color: var(--color-text-muted); font-size: 12px; }
.custom-upload__image { display: block; width: 100%; max-height: 300px; object-fit: contain; }
.custom-upload .ui-field__error { margin-bottom: 0; }
.custom-draw { align-self: start; }
.custom-draw__tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.custom-colors, .custom-draw__actions { display: flex; align-items: center; gap: 6px; }
.custom-color { display: grid; place-items: center; width: 32px; height: 40px; padding: 4px; border: 0; background: transparent; cursor: pointer; }
.custom-color::before { content: ''; width: 24px; height: 24px; border-radius: 50%; background: var(--swatch); }
.custom-color[aria-pressed=true]::before { outline: 2px solid var(--color-text-primary); outline-offset: 3px; }
.custom-color-picker { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--color-surface); cursor: pointer; }
.custom-color-picker input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.custom-color-picker:focus-within { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.custom-draw__actions .ui-icon-button { background: var(--color-surface); border-radius: 50%; }
.custom-canvas-wrap { position: relative; overflow: hidden; border-radius: 12px; background: var(--color-surface); }
.custom-canvas-wrap canvas { display: block; width: 100%; aspect-ratio: 1; touch-action: none; cursor: crosshair; }
.custom-canvas-guide { position: absolute; inset: 0; pointer-events: none; }
.custom-canvas-guide::before { content: ''; position: absolute; inset: 7%; border: 1px dashed var(--color-border-input); border-radius: 50%; }
.custom-canvas-guide::after { content: ''; position: absolute; inset: 34%; border: 1px dashed var(--color-border-input); border-radius: 50%; }
.custom-brush { display: flex; align-items: center; gap: 16px; margin-top: 16px; color: var(--color-text-secondary); font-size: 13px; }
.custom-brush input { flex: 1; min-width: 0; accent-color: var(--color-primary); }
.custom-brush output { min-width: 2ch; font-variant-numeric: tabular-nums; }
.custom-result { display: flex; flex-direction: column; text-align: center; }
.custom-result__heading h3 { margin: 8px 0 0; font-weight: 600; font-size: 25px; }
.custom-result__stage { position: relative; display: grid; place-items: center; flex: 1; min-height: 280px; margin-block: 24px; border-radius: 50%; background: radial-gradient(circle, var(--color-surface) 0 65%, transparent 66%); }
.custom-result__stage canvas { display: block; width: 100%; max-width: 400px; aspect-ratio: 1; }
.custom-result__empty { position: absolute; max-width: 18ch; color: var(--color-text-muted); font-size: 13px; }
.custom-result__guidance { margin: 0 0 20px; }
.custom-download { width: 100%; gap: 10px; }
.custom-result__note { margin: 16px 0 0; color: var(--color-text-muted); font-size: 12px; line-height: 1.8; }
.custom-gallery { padding-block: 64px 72px; }
.custom-demo-label { margin: 0; color: var(--color-text-muted); font-size: 12px; }
.custom-gallery__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px; }
html.custom-guide-open { overflow: hidden; }
.custom-guide { position: fixed; inset: 0; width: 100%; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 72px 24px 24px; overflow: hidden; border: 0; background: radial-gradient(ellipse at center, #fff 20%, var(--color-surface-brand) 100%); color: var(--color-text-primary); font-family: var(--font-inter); }
.custom-guide::backdrop { background: var(--color-surface); }
.custom-guide[open] { display: grid; place-items: center; }
.custom-guide__close { position: absolute; top: max(20px, env(safe-area-inset-top)); right: max(24px, env(safe-area-inset-right)); z-index: 1; }
.custom-guide__close .ui-icon { --icon-size: 28px; }
.custom-guide__content { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 24px; width: min(100%, 1000px); height: min(740px, 100%); min-width: 0; min-height: 0; text-align: center; }
.custom-guide__heading h2 { margin: 0; font: 600 clamp(28px, 4vw, 42px)/1.3 var(--font-manrope); }
.custom-guide__panels { min-width: 0; min-height: 0; padding: 8px 4px; overflow-x: hidden; overflow-y: auto; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: var(--color-primary) transparent; overscroll-behavior: contain; }
.custom-guide__panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px; min-width: 0; min-height: 100%; text-align: left; animation: custom-reveal 440ms cubic-bezier(.22, 1, .36, 1) both; }
.custom-guide__panel.custom-guide__intro { display: flex; flex-direction: column; justify-content: center; gap: 28px; text-align: center; }
.custom-guide__copy h3 { margin: 0; font: 600 clamp(24px, 3vw, 34px)/1.3 var(--font-manrope); }
.custom-guide__copy > p:not(.ui-eyebrow):not(.custom-demo-label) { max-width: 56ch; margin: 20px auto 0; color: var(--color-text-secondary); font-size: 15px; line-height: 1.8; }
.custom-guide__copy small { display: block; margin-top: 20px; color: var(--color-text-muted); font-size: 12px; line-height: 1.8; }
.custom-guide__intro .custom-demo-label { margin-bottom: 10px; }
.custom-marquee { flex-shrink: 0; width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5% 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5% 95%, transparent); }
.custom-marquee__track { display: flex; width: max-content; animation: custom-flow 42s linear infinite; }
.custom-marquee__group { display: flex; flex-shrink: 0; gap: 20px; padding: 8px 20px 8px 0; }
.custom-marquee .custom-concept { width: 174px; box-shadow: 0 8px 24px rgb(80 40 50 / 4%); }
.custom-marquee:hover .custom-marquee__track { animation-play-state: paused; }
.custom-guide__visual { height: 340px; min-width: 0; padding: 24px; border-radius: 24px; overflow: hidden; background: var(--color-surface-brand); }
.custom-guide__mockup { display: flex; flex-direction: column; align-items: center; width: 100%; height: 100%; padding: 20px; border-radius: 16px; background: var(--color-surface); box-shadow: 0 8px 20px rgb(50 30 35 / 5%); }
.custom-guide__mockup-tabs { display: flex; justify-content: space-between; gap: 16px; width: 100%; padding-bottom: 12px; border-bottom: 1px solid var(--color-border); font: 600 12px/1.5 var(--font-manrope); }
.custom-guide__mockup-tabs > span { display: flex; align-items: center; gap: 8px; }
.custom-guide__mockup-tabs .is-active { color: var(--color-primary); }
.custom-guide__mockup-tabs .ui-icon { --icon-size: 18px; }
.custom-guide__upload, .custom-guide__drawing { position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 18px; width: 100%; min-height: 0; }
.custom-guide__upload .custom-lens-art, .custom-guide__drawing .custom-lens-art, .custom-guide__result .custom-lens-art { width: 140px; flex-shrink: 0; }
.custom-guide__mock-button { max-width: 100%; padding: 9px 22px; border-radius: var(--radius-control); background: var(--color-primary); color: var(--color-text-inverse); font: 700 12px/1.5 var(--font-manrope); text-align: center; }
.custom-guide__palette { display: flex; gap: 10px; }
.custom-guide__palette i { width: 16px; height: 16px; border-radius: 50%; background: #EA939C; }
.custom-guide__palette i:nth-child(2) { background: #b8a2cd; }
.custom-guide__palette i:nth-child(3) { background: #9bbfce; }
.custom-guide__palette i:nth-child(4) { background: #b1c3a4; }
.custom-guide__pen { position: absolute; bottom: 18px; right: 22%; color: var(--color-primary); transform: rotate(-25deg); }
.custom-guide__pen .ui-icon { --icon-size: 32px; }
.custom-guide__result { justify-content: center; gap: 20px; }
.custom-guide__result .ui-eyebrow { font-size: 10px; margin: 0; }
.custom-guide__footer { padding-top: 12px; border-top: 1px solid var(--color-border); }
.custom-guide__navigation { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-bottom: 8px; }
.custom-guide__navigation > .ui-button { min-width: 0; padding-inline: 0; white-space: nowrap; }
.custom-guide__navigation > :first-child { justify-self: start; }
.custom-guide__navigation > :last-child { justify-self: end; }
.custom-guide__indicators { display: flex; align-items: center; }
.custom-guide__dot { display: grid; place-items: center; width: 40px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.custom-guide__dot span { width: 7px; height: 7px; border-radius: 99px; background: var(--color-primary); opacity: .35; transition: width 300ms ease, opacity 300ms ease; }
.custom-guide__dot[aria-current=step] span { width: 28px; opacity: 1; }
.custom-guide__dot:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -3px; border-radius: 8px; }
@keyframes custom-flow { to { transform: translateX(-50%); } }
@keyframes custom-reveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (width < 1200px) {
    .custom-hero { gap: 28px; }
    .custom-hero__ideas { gap: 8px; }
    .custom-concept { padding: 8px; }
    .custom-hero__ideas .custom-concept p { font-size: 10px; }
    .custom-layout { grid-template-columns: minmax(0, 1.25fr) minmax(260px, 1fr); gap: 20px; }
    .custom-editor, .custom-result { padding: 20px; }
    .custom-gallery__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (width < 768px) {
    .custom-hero { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-block: 32px 48px; }
    .custom-hero h1 { font-size: clamp(36px, 10vw, 48px); }
    .custom-hero > div > p:not(.ui-eyebrow) { font-size: 14px; margin-block: 20px 24px; }
    .custom-hero__ideas { gap: 12px; padding-inline: 8px; }
    .custom-hero__ideas .custom-concept p { font-size: 11px; }
    .custom-studio { padding: 24px 16px; margin-inline: -8px; border-radius: 20px; }
    .custom-layout { grid-template-columns: minmax(0, 1fr); }
    .custom-editor, .custom-result { padding: 16px; }
    .custom-tabs .ui-tab { gap: 6px; font-size: 13px; }
    .custom-tabs .ui-icon { --icon-size: 16px; }
    .custom-upload__drop { min-height: 340px; padding: 24px 16px; }
    .custom-upload__empty h3 { font-size: 20px; }
    .custom-upload__empty p { font-size: 13px; }
    .custom-color { width: 28px; }
    .custom-color::before { width: 20px; height: 20px; }
    .custom-colors { gap: 4px; }
    .custom-draw__tools { justify-content: center; }
    .custom-draw__actions { margin-left: auto; }
    .custom-result__stage { margin-block: 16px; min-height: 240px; }
    .custom-result__stage canvas { max-width: 300px; }
    .custom-gallery { padding-block: 48px; }
    .custom-gallery .custom-section-heading { align-items: start; flex-direction: column; gap: 12px; }
    .custom-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .custom-guide { padding: max(64px, calc(env(safe-area-inset-top) + 52px)) 24px max(20px, env(safe-area-inset-bottom)); }
    .custom-guide__content { height: 100%; gap: 16px; }
    .custom-guide__panel { grid-template-columns: minmax(0, 1fr); gap: 24px; min-height: 0; }
    .custom-guide__panel.custom-guide__intro { min-height: 100%; gap: 24px; }
    .custom-guide__visual { height: 250px; padding: 16px; }
    .custom-guide__mockup { padding: 16px; }
    .custom-guide__upload .custom-lens-art, .custom-guide__drawing .custom-lens-art, .custom-guide__result .custom-lens-art { width: 100px; }
    .custom-guide__mock-button { padding: 8px 16px; font-size: 11px; }
    .custom-guide__result { gap: 12px; }
    .custom-guide__copy > p:not(.ui-eyebrow):not(.custom-demo-label) { margin-top: 14px; font-size: 14px; }
    .custom-guide__copy small { margin-top: 14px; }
    .custom-marquee .custom-concept { width: 140px; }
    .custom-marquee__group { gap: 12px; padding-right: 12px; }
    .custom-guide__navigation { gap: 8px; }
    .custom-guide__navigation > .ui-button { gap: 4px; font-size: 12px; }
    .custom-guide__navigation .ui-icon { --icon-size: 16px; }
    .custom-guide__dot { width: 28px; }
    .custom-guide__dot[aria-current=step] span { width: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    html:has(.lens-custom-page) { scroll-behavior: auto; }
    .custom-marquee__track, .custom-guide__panel { animation: none; }
    .custom-guide__dot span { transition: none; }
}
.lens-custom-page [hidden] { display: none; }

/* Public names, publishing and community cards. */
.custom-name-label { margin: 0 0 8px; text-align: left; color: var(--color-text-secondary); font-size: 13px; }
.custom-publish { display: grid; gap: 12px; }
.custom-name-input, .custom-share input { width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px; border: 1px solid var(--color-border-input); border-radius: var(--radius-control); background: var(--color-surface); color: var(--color-text-primary); font: 400 14px/1.5 var(--font-inter); }
.custom-name-input:focus { outline: 2px solid var(--color-primary); outline-offset: -2px; border-color: var(--color-primary); }
.custom-name-input[aria-invalid=true] { border-color: var(--color-border-error); }
.custom-publish .ui-field__error { margin: 0; text-align: left; }
.custom-result > .custom-download { margin-top: 10px; }
.custom-gallery__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.custom-concept__author { display: block; margin: 4px 0 0; color: var(--color-text-muted); font: 400 12px/1.5 var(--font-inter); overflow-wrap: anywhere; }
.custom-concept__author { text-align: center; font-size: 10px; }
.custom-concept__published { display: block; width: 100%; height: auto; }
.custom-concept p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.custom-gallery__empty { padding: 40px 24px; border-radius: 16px; background: var(--color-surface); text-align: center; }
.custom-gallery__empty h3 { margin: 0 0 12px; }
.custom-gallery__empty p { color: var(--color-text-secondary); font-size: 14px; }
.custom-pagination { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 24px; }
.custom-gallery__grid { position: relative; }
.custom-gallery__collection.is-enhanced .custom-gallery__viewport { overflow: hidden; height: var(--gallery-height); transition: height 520ms cubic-bezier(.22, 1, .36, 1); }
.custom-gallery__collection.is-folded .custom-gallery__viewport { mask-image: linear-gradient(to bottom, #000 var(--gallery-fade-start), transparent 100%); }
.custom-gallery__more { display: flex; justify-content: center; padding-top: 20px; }
.custom-gallery__expand { width: 144px; max-width: 100%; height: 44px; min-height: 44px; padding: 0; border-radius: 999px; background: transparent; box-shadow: 0 6px 18px rgb(22 22 22 / 10%); transition: color var(--transition-ui), border-color 280ms ease, box-shadow 280ms ease; }
.custom-gallery__expand:is(:hover, :focus-visible, :active):not(:disabled) { background: transparent; }
.custom-gallery__expand .ui-icon { --icon-size: 28px; stroke-width: 2.5; transition: transform 280ms cubic-bezier(.22, 1, .36, 1); }
.custom-gallery__expand:focus-visible:not(:disabled) { border-color: var(--color-primary-hover); box-shadow: 0 8px 22px rgb(22 22 22 / 16%); }
@media (hover: hover) and (pointer: fine) {
    .custom-gallery__expand:hover:not(:disabled) { border-color: var(--color-primary-hover); box-shadow: 0 8px 22px rgb(22 22 22 / 16%); }
}
@media (prefers-reduced-motion: no-preference) {
    .custom-gallery__expand:focus-visible:not(:disabled) .ui-icon { transform: translateY(4px); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .custom-gallery__expand:hover:not(:disabled) .ui-icon { transform: translateY(4px); }
}
.custom-gallery__expand:disabled { opacity: .5; cursor: wait; }
.custom-gallery__status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
    .custom-gallery__collection.is-enhanced .custom-gallery__viewport { transition: none; }
    .custom-gallery__expand, .custom-gallery__expand .ui-icon { transition: none; }
}
@media print {
    .custom-gallery__collection.is-enhanced .custom-gallery__viewport { height: auto; overflow: visible; mask-image: none; }
    .custom-gallery__more { display: none; }
}
.custom-shared { padding-block: 48px 64px; }
.custom-shared h1 { margin: 0; font-size: clamp(30px, 4vw, 48px); overflow-wrap: anywhere; }
.custom-shared__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px; padding: 32px; border-radius: 24px; background: var(--color-surface); }
.custom-shared__copy h2 { margin: 0; font-size: clamp(25px, 3vw, 38px); }
.custom-shared__copy > p:not(.ui-eyebrow):not(.custom-result__note) { color: var(--color-text-secondary); font-size: 14px; line-height: 1.8; }
.custom-share-label { display: block; margin: 24px 0 8px; color: var(--color-text-secondary); font-size: 13px; }
.custom-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.custom-share input { flex: 1 1 220px; }
.custom-share .ui-button { white-space: nowrap; }
.custom-share-status { min-height: 24px; }
@media (width < 1200px) {
    .custom-gallery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .custom-shared__body { gap: 28px; padding: 24px; }
}
@media (width < 768px) {
    .custom-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .custom-shared > .custom-section-heading { align-items: start; flex-direction: column; }
    .custom-shared__body { grid-template-columns: minmax(0, 1fr); padding: 16px; }
    .custom-shared__copy { padding: 8px; }
}
