:root { --maker-max: 1180px; --maker-reading: 720px; }
.sticker-page { overflow-x: clip; background: var(--paper); }
.sticker-page .site-header { position: sticky; top: 0; z-index: 50; }
.sticker-page .brand, .sticker-page .nav a { text-decoration: none; }
.sticker-page .nav a[aria-current="page"] { background: var(--mint); color: var(--soft-ink); }
.maker-shell { width: min(calc(100% - (2 * var(--gutter))), var(--maker-max)); min-width: 0; margin-inline: auto; }
.maker-kicker { margin-bottom: 13px; color: var(--pine); font-size: 12px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }

.maker-hero { position: relative; overflow: hidden; padding: clamp(64px, 10vw, 118px) 0 clamp(60px, 8vw, 92px); }
.maker-hero::before { content: ""; position: absolute; inset: auto -11vw -55% auto; width: min(58vw, 760px); aspect-ratio: 1; border-radius: 50%; background: var(--mint); opacity: .72; }
.maker-hero__grid { position: relative; display: grid; gap: 54px; align-items: center; }
.maker-hero__grid > * { min-width: 0; }
.maker-hero h1 { max-width: 840px; font-family: var(--font-display); font-size: clamp(46px, 8vw, 90px); line-height: .94; letter-spacing: -.06em; }
.maker-hero__lead { max-width: 710px; margin-top: 24px; color: var(--ink-2); font-size: clamp(18px, 2vw, 22px); line-height: 1.6; }
.maker-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 30px; }
.maker-text-link { color: var(--pine); font-weight: 800; text-underline-offset: 4px; }
.maker-private { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--ink-3); font-size: 14px; }
.maker-private span { color: var(--pine); }
.maker-hero__proof { position: relative; min-height: 360px; padding: 36px; border: 1px solid var(--line); border-radius: 34px; background: color-mix(in srgb, var(--surface) 88%, transparent); box-shadow: var(--shadow); }
.proof-sticker { display: grid; place-items: center; width: min(70%, 260px); aspect-ratio: 1; margin: 0 auto; border-radius: 45% 55% 51% 49% / 49% 43% 57% 51%; background: var(--pine); color: var(--on-pine); box-shadow: 0 0 0 8px var(--surface), 0 22px 54px -26px rgba(4,68,47,.58); transform: rotate(-4deg); }
.proof-sticker span { font: 900 clamp(54px, 7vw, 84px)/1 var(--font-display); letter-spacing: -.08em; transform: rotate(4deg); }
.maker-hero__proof dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 34px; }
.maker-hero__proof dl div { padding: 12px; border-radius: 12px; background: var(--surface-2); text-align: center; }
.maker-hero__proof dt { color: var(--ink-3); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.maker-hero__proof dd { margin-top: 3px; font-size: 14px; font-weight: 850; }

.maker-section { padding: clamp(68px, 9vw, 112px) 0; }
.maker-section--soft { background: var(--surface-2); }
.maker-section__intro { max-width: 760px; margin-bottom: 36px; }
.maker-section__intro h2, .info-grid h2, .source-note h2 { font-family: var(--font-display); font-size: clamp(34px, 5.3vw, 58px); line-height: 1.03; letter-spacing: -.045em; }
.maker-section__intro > p:last-child, .info-grid article > p { margin-top: 16px; color: var(--ink-2); font-size: 18px; line-height: 1.7; }

.editor { overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); box-shadow: 0 26px 80px -42px rgba(4, 68, 47, .48); }
.editor.is-dragging { outline: 3px solid var(--mint-strong); outline-offset: 4px; }
.editor__topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.editor__topbar > div:first-child { min-width: 0; }
.editor__topbar strong, .editor__topbar span { display: block; }
.editor__topbar strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.editor__topbar span { margin-top: 3px; color: var(--ink-3); font-size: 12px; }
.editor__top-actions, .property-row, .export-dock__actions { display: flex; gap: 8px; }
.icon-button, .text-button, .soft-action { min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--ink); font: 800 15px/1 var(--font); }
.icon-button:hover, .text-button:hover, .soft-action:hover { border-color: var(--pine); color: var(--pine); }
.icon-button:disabled { opacity: .38; cursor: not-allowed; }
.editor__layout { display: grid; grid-template-columns: 78px minmax(0, 1fr) 310px; min-height: 660px; }
.tool-rail { display: flex; flex-direction: column; gap: 7px; padding: 14px 8px; border-right: 1px solid var(--line); background: var(--surface-2); }
.tool-button { display: grid; place-items: center; gap: 6px; min-height: 66px; padding: 8px 4px; border: 1px solid transparent; border-radius: 13px; background: transparent; color: var(--ink-3); font: 750 11px/1 var(--font); }
.tool-button > span:first-child { font-size: 21px; }
.tool-button:hover, .tool-button.is-active { border-color: var(--mint-strong); background: var(--mint); color: var(--soft-ink); }
.canvas-zone { position: relative; display: grid; place-items: center; align-content: center; gap: 16px; min-width: 0; padding: 32px; background-color: color-mix(in srgb, var(--paper) 85%, var(--surface)); background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 20px 20px; }
.empty-state { max-width: 470px; padding: 42px 30px; text-align: center; }
.empty-state__art { display: grid; place-items: center; width: 78px; height: 78px; margin: 0 auto 20px; border: 2px dashed var(--mint-strong); border-radius: 24px; background: var(--mint); color: var(--pine); font-size: 38px; }
.empty-state h3 { font-family: var(--font-display); font-size: clamp(25px, 3vw, 34px); line-height: 1.12; }
.empty-state p { margin: 12px auto 22px; color: var(--ink-2); line-height: 1.6; }
.empty-state span { display: block; margin-top: 14px; color: var(--ink-3); font-size: 12px; }
.canvas-wrap { position: relative; width: min(100%, 560px); aspect-ratio: 1; overflow: hidden; border: 1px solid var(--line-2); border-radius: 18px; background-color: #f7f7f5; background-image: linear-gradient(45deg, #d9ddda 25%, transparent 25%), linear-gradient(-45deg, #d9ddda 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #d9ddda 75%), linear-gradient(-45deg, transparent 75%, #d9ddda 75%); background-size: 24px 24px; background-position: 0 0, 0 12px, 12px -12px, -12px 0; box-shadow: 0 22px 50px -32px rgba(0,0,0,.5); touch-action: none; cursor: grab; }
.canvas-wrap.is-erasing { cursor: none; }
.canvas-wrap.is-selecting { cursor: crosshair; }
.canvas-wrap.is-text-moving { cursor: move; }
.canvas-wrap:active { cursor: grabbing; }
#stickerCanvas { display: block; width: 100%; height: 100%; }
.safe-area { position: absolute; inset: 6.25%; border: 1px dashed rgba(255,255,255,.9); border-radius: 16px; box-shadow: 0 0 0 1px rgba(4,68,47,.35); pointer-events: none; }
.brush-cursor { position: absolute; width: 36px; height: 36px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #101513; pointer-events: none; transform: translate(-50%, -50%); opacity: 0; }
.canvas-wrap.is-erasing .brush-cursor { opacity: 1; }
.canvas-controls { display: flex; align-items: center; gap: 8px; padding: 7px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.canvas-controls output { min-width: 54px; color: var(--ink-2); font-size: 13px; font-weight: 800; text-align: center; }
.canvas-help { max-width: 520px; color: var(--ink-3); font-size: 13px; text-align: center; }
.properties { padding: 24px 20px; border-left: 1px solid var(--line); background: var(--surface); }
.property-panel { display: grid; gap: 22px; }
.property-heading { display: grid; grid-template-columns: 30px 1fr; gap: 10px; }
.property-heading > span { color: var(--pine); font-size: 12px; font-weight: 900; }
.property-heading h3 { font-family: var(--font-display); font-size: 24px; line-height: 1.08; }
.property-heading p { margin-top: 6px; color: var(--ink-3); font-size: 13px; line-height: 1.45; }
.property-panel fieldset { border: 0; }
.property-panel legend, .select-field > span, .color-field > span { display: block; margin-bottom: 8px; color: var(--ink-2); font-size: 13px; font-weight: 800; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); }
.segmented--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.segmented button { min-height: 38px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-3); font: 750 12px/1 var(--font); }
.segmented button.is-active { background: var(--surface); color: var(--pine); box-shadow: 0 2px 8px rgba(4,68,47,.12); }
.range-field { display: grid; gap: 9px; }
.range-field > span { display: flex; justify-content: space-between; color: var(--ink-2); font-size: 13px; }
.range-field output { color: var(--pine); font-weight: 800; }
.range-field input { width: 100%; accent-color: var(--pine); }
.property-row > * { flex: 1; }
.soft-action { padding: 0 10px; background: var(--surface-2); }
.check-field { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 14px; font-weight: 700; }
.check-field input { width: 18px; height: 18px; accent-color: var(--pine); }
.select-field input:not([type="color"]), .select-field select { width: 100%; min-height: 43px; padding: 9px 10px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface); color: var(--ink); font: inherit; }
.color-field input { width: 100%; height: 44px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.panel-note { padding: 13px; border-radius: 10px; background: var(--mint); color: var(--soft-ink); font-size: 12px; line-height: 1.55; }
.auto-background-card { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--mint-strong); border-radius: 12px; background: var(--mint); }
.auto-background-card strong, .auto-background-card span { display: block; }
.auto-background-card strong { color: var(--soft-ink); font-size: 14px; }
.auto-background-card span { margin-top: 4px; color: color-mix(in srgb, var(--soft-ink) 78%, transparent); font-size: 12px; line-height: 1.45; }
.auto-background-card .btn { width: 100%; }
#brushSettings { display: grid; gap: 18px; }
.chat-previews { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chat-preview { display: grid; place-items: center; gap: 7px; padding: 14px 8px; border-radius: 12px; }
.chat-preview span { font-size: 11px; font-weight: 850; text-transform: uppercase; }
.chat-preview canvas { width: 88px; height: 88px; }
.chat-preview--light { background: #ece6dd; color: #24302a; }
.chat-preview--dark { background: #0b141a; color: #dbe4df; }
.export-dock { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; padding: 13px 18px; border-top: 1px solid var(--line); background: var(--surface); }
.export-check { display: grid; grid-template-columns: 12px minmax(0, 1fr); align-items: center; gap: 12px; min-width: 0; }
.export-check__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); box-shadow: 0 0 0 5px var(--surface-2); }
.export-check__dot.is-working { background: #d59b19; }
.export-check__dot.is-valid { background: var(--pine); }
.export-check__dot.is-error { background: #b44737; }
.export-check strong, .export-check span { display: block; }
.export-check span { overflow: hidden; margin-top: 3px; color: var(--ink-3); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.status-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.how-steps { display: grid; gap: 1px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--line); list-style: none; }
.how-steps li { display: grid; grid-template-columns: 50px 1fr; gap: 20px; padding: clamp(24px, 4vw, 36px); background: var(--surface); }
.how-steps li > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--pine); color: var(--on-pine); font-weight: 900; }
.how-steps h3 { font-family: var(--font-display); font-size: 24px; }
.how-steps p { margin-top: 7px; color: var(--ink-2); line-height: 1.6; }
.info-grid { display: grid; gap: 42px; align-items: start; }
.info-grid article p { max-width: var(--maker-reading); }
.info-grid code { padding: 2px 5px; border-radius: 5px; background: var(--surface-2); }
.spec-card { padding: clamp(24px, 4vw, 34px); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.spec-card h3 { font-family: var(--font-display); font-size: 28px; }
.spec-card ul { margin-top: 18px; }
.spec-card li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); }
.spec-card li span { color: var(--ink-3); }
.spec-card p { margin-top: 18px; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.maker-faq { max-width: 860px; }
.maker-faq details { border-top: 1px solid var(--line); }
.maker-faq details:last-child { border-bottom: 1px solid var(--line); }
.maker-faq summary { padding: 22px 36px 22px 0; cursor: pointer; font-size: 18px; font-weight: 850; }
.maker-faq p { max-width: 740px; padding: 0 0 22px; color: var(--ink-2); line-height: 1.7; }
.source-note { padding-top: 64px; }
.source-note h2 { font-size: clamp(29px, 4vw, 44px); }
.source-note p { max-width: 850px; margin-top: 14px; color: var(--ink-2); line-height: 1.7; }
.source-note a { color: var(--pine); text-underline-offset: 3px; }

@media (min-width: 880px) {
  .maker-hero__grid { grid-template-columns: minmax(0, 1.45fr) minmax(320px, .65fr); }
  .how-steps { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr); }
}
@media (max-width: 1020px) {
  .editor__layout { grid-template-columns: 70px minmax(0, 1fr); }
  .properties { grid-column: 1 / -1; border-top: 1px solid var(--line); border-left: 0; }
  .property-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
  .property-heading { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .maker-hero { padding-top: 50px; }
  .maker-hero h1 { max-width: 100%; font-size: clamp(40px, 11.5vw, 48px); overflow-wrap: anywhere; }
  .maker-hero__proof { width: 100%; min-width: 0; min-height: 310px; padding: 26px; }
  .maker-hero__proof dd { overflow-wrap: anywhere; font-size: 12px; }
  .editor { margin-inline: calc(-1 * var(--gutter)); border-right: 0; border-left: 0; border-radius: 0; }
  .editor__topbar { position: sticky; top: 64px; z-index: 10; }
  .editor__topbar span { display: none; }
  .editor__top-actions .icon-button { display: none; }
  .editor__layout { display: flex; min-height: auto; flex-direction: column; }
  .tool-rail { order: 2; position: sticky; z-index: 8; bottom: 0; flex-direction: row; justify-content: space-around; padding: 7px max(7px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(7px, env(safe-area-inset-left)); border-top: 1px solid var(--line); border-right: 0; }
  .tool-button { flex: 1; min-height: 58px; }
  .canvas-zone { order: 1; min-height: 520px; padding: 20px 14px; }
  .empty-state { padding: 30px 14px; }
  .properties { order: 3; padding: 22px 18px; }
  .property-panel { grid-template-columns: 1fr; }
  .property-heading { grid-column: auto; }
  .export-dock { position: sticky; z-index: 9; bottom: 0; align-items: stretch; flex-direction: column; padding-bottom: calc(13px + env(safe-area-inset-bottom)); }
  .export-check span { white-space: normal; }
  .export-dock__actions .btn { flex: 1; }
  .how-steps li { grid-template-columns: 42px 1fr; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
.caption-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.caption-presets button { min-height: 38px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface-2); color: var(--ink-2); font-weight: 750; }
.caption-presets button:hover, .caption-presets button:focus-visible { border-color: var(--pine); color: var(--pine); }
