body {
  margin: 0;
  background: var(--c-canvas);
  color: var(--c-fg);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}

.zl-logo { display: inline-flex; align-items: center; gap: .42em; color: var(--c-fg); }
.zl-logo svg { width: 26px; height: 26px; flex-shrink: 0; }
.zl-logo-word { font-weight: 600; font-size: 20.28px; letter-spacing: -.03em; line-height: 1; }
.zl-fill-accent { fill: var(--c-accent); }
.zl-fill-fg { fill: var(--c-fg); }

.zl-chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 16px; background: var(--c-wa-header); }
.zl-avatar { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: #ffffff1f; }
.zl-chat-name { margin: 0; font-size: .875rem; font-weight: 500; color: #fff; }
.zl-chat-presence { margin: 0; font-size: .72rem; color: #ffffffb3; }

.zl-thread { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 18px 16px; }
.zl-msg { display: flex; }
.zl-msg--in { justify-content: flex-start; }
.zl-msg--out { justify-content: flex-end; }
.zl-bubble { max-width: 78%; border-radius: 13px; padding: 6px 10px; font-size: .95rem; line-height: 1.45; color: var(--c-fg); }
.zl-msg--in .zl-bubble { background: var(--c-wa-in); border-top-left-radius: 4px; }
.zl-msg--out .zl-bubble { background: var(--c-wa-out); border-top-right-radius: 4px; }
.zl-bubble--card { background: var(--c-wa-in) !important; border: 1px solid var(--c-line); padding: 8px 10px; }
.zl-time { display: block; margin-top: 2px; text-align: right; font-size: .62rem; color: var(--c-fg-muted); font-variant-numeric: tabular-nums; }

.zl-composer { display: flex; align-items: center; gap: 8px; padding: 10px 14px 14px; background: var(--c-surface); }
.chat-input { flex: 1; min-width: 0; height: 48px; padding: 0 18px; border-radius: 9999px; border: 1px solid var(--c-line); background: var(--c-canvas); font: inherit; font-size: 1rem; color: var(--c-fg); outline: 0; }
.chat-input:focus { border-color: var(--c-fg-subtle); }
.chat-input::placeholder { color: var(--c-fg-subtle); }
.chat-input:disabled { opacity: .5; }
.zl-send { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 48px; height: 48px; border: 0; border-radius: 9999px; background: var(--c-line-strong); color: var(--c-on-accent); cursor: pointer; transition: background-color .2s; }
.zl-send.ready { background: var(--c-accent-solid); }
.zl-send:disabled { cursor: default; }
.zl-send svg { width: 15px; height: 15px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@keyframes zl-pop { from { opacity: 0; transform: scale(.94) translateY(10px); } to { opacity: 1; transform: none; } }
.pop { animation: zl-pop .45s cubic-bezier(.215, .61, .355, 1) both; }

@keyframes zl-on { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }
.lit { animation: zl-on .5s cubic-bezier(.215, .61, .355, 1); }

@keyframes zl-spin { to { transform: rotate(360deg); } }
.spin { width: 14px; height: 14px; border-radius: 9999px; border: 2px solid var(--c-line-strong); border-top-color: var(--c-accent-solid); box-sizing: border-box; animation: zl-spin .7s linear infinite; }

.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 9999px; background: var(--c-fg-subtle); animation: zl-blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes zl-blink { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }

.rot { display: inline-grid; color: var(--c-accent-solid); }
.rot span { grid-area: 1 / 1; opacity: 0; animation: zl-rot 7.5s infinite; }
.rot span:nth-child(2) { animation-delay: 2.5s; }
.rot span:nth-child(3) { animation-delay: 5s; }
@keyframes zl-rot { 0% { opacity: 0; transform: translateY(.25em); } 4%, 30% { opacity: 1; transform: none; } 34%, 100% { opacity: 0; transform: translateY(-.25em); } }

@media (prefers-reduced-motion: reduce) {
  .pop, .lit, .spin, .typing i { animation: none; }
  .rot span { animation: none; }
  .rot span:first-child { opacity: 1; }
}

.single { height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: 20px; padding: 20px; box-sizing: border-box; }
.chat-box { min-height: 0; display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; border: 1px solid var(--c-line); background: var(--c-surface); box-shadow: var(--lift); }
.chat-who { flex: 1; min-width: 0; }
.reset { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 0; border-radius: 9999px; background: #ffffff24; color: #ffffff; font: inherit; font-size: .75rem; font-weight: 500; cursor: pointer; }
.reset[hidden] { display: none; }
.wall { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column-reverse; background: var(--c-wa-bg); }
.panel { min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }

@media (max-width: 900px) {
  .single { height: auto; grid-template-columns: minmax(0, 1fr); }
  .chat-box { height: 78vh; }
  .panel { display: contents; }
  .intro { order: -1; }
}

.intro { padding: 4px 4px 2px; }
.intro .zl-logo { height: 48px; }
.headline { margin: 14px 0 0; font-size: clamp(1.5rem, 2vw, 1.9rem); line-height: 1.1; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
.col-label { margin: 0 0 8px 4px; font-size: .75rem; font-weight: 600; color: var(--c-fg-subtle); }
.opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.opt { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 12px; border: 0; background: var(--c-fg); color: #ffffff; font: inherit; text-align: left; cursor: pointer; transition: background-color .2s, opacity .3s, transform .15s; }
.opt span { min-width: 0; font-size: .82rem; font-weight: 500; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opt svg { width: 18px; height: 18px; flex-shrink: 0; }
.opt:active:not(:disabled) { transform: scale(.97); }
.opt:disabled { cursor: default; opacity: .55; }
.opt:focus-visible { outline: 2px solid var(--c-fg); outline-offset: 2px; }
.opt[aria-pressed="true"] { background: var(--c-accent-solid); opacity: 1; }
.opt.soon { background: var(--c-surface-2); color: var(--c-fg-subtle); opacity: 1; }
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.flow-col { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.flow-col .col-label { margin-bottom: 2px; }
.flow-card { padding: 7px 9px; border-radius: 12px; background: var(--c-surface); border: 1px solid var(--c-line); }
.flow-title { margin: 0; font-size: .8rem; font-weight: 600; line-height: 1.2; }
.flow-text { margin: 3px 0 0; font-size: .72rem; line-height: 1.35; color: var(--c-fg-muted); }

.bubble-typing { padding: 10px 14px; }
.scan { width: min(340px, 85%); max-width: none; padding: 6px 14px; }
.scan-host { margin: 6px 0 4px; font-size: .72rem; font-weight: 600; color: var(--c-fg-subtle); }
.scan-row { padding: 9px 0; border-top: 1px solid var(--c-line); transition: opacity .3s; }
.scan-host + .scan-row { border-top: 0; }
.scan-row.pending { opacity: .4; }
.scan-line { display: flex; align-items: center; gap: 10px; font-size: .85rem; }
.scan-state { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex-shrink: 0; }
.scan-dot { width: 8px; height: 8px; border-radius: 9999px; background: var(--c-line-strong); }
.scan-check { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 9999px; background: var(--c-accent-solid); color: #ffffff; }
.scan-cross { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 9999px; background: var(--c-fg-subtle); color: #ffffff; }
.scan-row.failed .scan-label { color: var(--c-fg-muted); }
.scan-label { flex: 1; }
.scan-value { font-weight: 600; font-variant-numeric: tabular-nums; }
.scan-value:empty { display: none; }
.scan-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 8px 0 0 28px; }
.scan-thumbs span { aspect-ratio: 1 / 1; border-radius: 8px; background-color: var(--c-surface-2); background-size: cover; background-position: center; }
.scan-swatches { display: flex; gap: 6px; margin: 8px 0 0 28px; }
.scan-swatches span { width: 28px; height: 28px; border-radius: 8px; border: 1px solid #16161a14; }

[hidden] { display: none !important; }

.zl-chat-head, .wall, .zl-send { transition: background-color .3s; }
.store-avatar { display: none; background: #ffffff; color: var(--brand); font-weight: 700; font-size: .9rem; }
.store-mode .store-avatar { display: flex; }
.store-mode .zellen-avatar { display: none; }
.store-mode .zl-chat-head { background: var(--brand); }
.store-mode .wall { background: var(--wall); }
.store-mode .zl-msg--out .zl-bubble { background: var(--soft); }
.store-mode .zl-send { background: var(--brand); }

@keyframes zl-suck { 0% { transform: none; opacity: 1; filter: none; } 100% { transform: scale(0) rotate(-200deg); opacity: 0; filter: blur(6px); } }
.suck { animation: zl-suck .8s cubic-bezier(.55, .05, .7, .2) both; }
@keyframes zl-spawn { 0% { transform: scale(0) rotate(160deg); opacity: 0; filter: blur(6px); } 70% { transform: scale(1.02) rotate(-2deg); opacity: 1; filter: none; } 100% { transform: none; } }
.spawn { animation: zl-spawn .8s cubic-bezier(.215, .61, .355, 1) both; }
@media (prefers-reduced-motion: reduce) {
  .suck, .spawn { animation: none; }
}

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 14px 0; background: var(--c-surface); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 9999px; border: 1px solid var(--brand, var(--c-line-strong)); background: var(--c-surface); color: var(--brand, var(--c-fg)); font: inherit; font-size: .78rem; font-weight: 500; white-space: nowrap; cursor: pointer; }
.chip:focus-visible { outline: 2px solid var(--c-fg); outline-offset: 2px; }

.zl-badge { display: inline-flex; align-items: center; border-radius: 9999px; padding: 2px 8px; font-size: .68rem; font-weight: 500; }
.zl-card-title { margin: 0; font-size: .8rem; font-weight: 500; color: var(--c-fg); }
.zl-card-price { margin: 4px 0 0; font-size: .95rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.zl-card-meta { margin: 0; font-size: .72rem; color: var(--c-fg-muted); }
.zl-card-total { margin: 6px 0 0; padding-top: 6px; border-top: 1px solid var(--c-line); font-size: .9rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.zl-pay-icon { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: .5rem; flex-shrink: 0; background: var(--soft); color: var(--brand); }
.zl-pay-icon svg { width: 16px; height: 16px; }

.product-card { width: 230px; max-width: 85%; padding: 6px; box-sizing: border-box; }
.product-tile { aspect-ratio: 4 / 3; display: flex; align-items: flex-end; padding: 8px; box-sizing: border-box; border-radius: 9px; background-size: cover; background-position: center; }
.product-tag { background: #ffffffd9; color: var(--c-fg); }
.product-body { padding: 8px 6px 2px; }
.product-name { font-size: .88rem; }

.methods-card { width: 300px; max-width: 85%; padding: 4px 12px; box-sizing: border-box; }
.method { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--c-line); }
.method:first-child { border-top: 0; }
.method-mark { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; font-size: .68rem; font-weight: 700; }
.method-label { flex: 1; min-width: 0; }
.method-name { display: block; font-size: .85rem; font-weight: 500; }
.method-note { display: block; font-size: .72rem; color: var(--c-fg-muted); }

.pay-card { width: 240px; max-width: 85%; box-sizing: border-box; }
.pay-head { display: flex; align-items: center; gap: 10px; }
.pay-label { min-width: 0; }
.pay-price { font-size: .95rem; font-variant-numeric: tabular-nums; }
.pay-link { margin: 8px 0 0; font-size: .85rem; color: #027eb5; text-decoration: underline; word-break: break-all; }

.photo-bubble { padding: 4px; }
.receipt { width: 210px; padding: 18px 16px 14px; box-sizing: border-box; border-radius: 10px; background: linear-gradient(180deg, #f4f5f7, #e9ebee); color: #1d2433; transform: rotate(-1.2deg); box-shadow: inset 0 0 0 1px #0000000d; }
.receipt-top { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.receipt-check { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9999px; background: #1f9d55; color: #ffffff; }
.receipt-check svg { width: 15px; height: 15px; }
.receipt-title { font-size: .72rem; color: #5b6475; }
.receipt-amount { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.receipt-lines { margin-top: 12px; display: flex; flex-direction: column; gap: 5px; font-size: .66rem; color: #5b6475; }
.receipt-line { display: flex; justify-content: space-between; gap: 8px; }
.receipt-value { color: #1d2433; font-variant-numeric: tabular-nums; }
.receipt-line:first-child .receipt-value { font-weight: 600; }
.photo-bubble .zl-time { padding: 2px 6px 0; }

.paid-card { width: 280px; max-width: 85%; box-sizing: border-box; }
.paid-head { display: flex; align-items: center; gap: 10px; }
.paid-head .zl-card-title { font-size: .9rem; }
.paid-check { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 9999px; background: var(--brand); color: #ffffff; }
.paid-total { display: flex; justify-content: space-between; gap: 8px; }
.paid-item { font-weight: 400; font-size: .8rem; color: var(--c-fg-muted); }

.tracking-card { width: 300px; max-width: 85%; padding: 12px 14px; box-sizing: border-box; }
.tracking-card > .zl-card-title { font-size: .88rem; }
.track { margin-top: 12px; display: flex; flex-direction: column; }
.track-step { display: flex; gap: 10px; align-items: flex-start; }
.track-rail { display: flex; flex-direction: column; align-items: center; width: 12px; flex-shrink: 0; }
.track-dot { width: 10px; height: 10px; margin-top: 3px; border-radius: 9999px; background: var(--brand); }
.track-line { width: 2px; height: 22px; background: var(--c-line); }
.track-step.done .track-line { background: var(--brand); }
.track-step.now .track-dot { box-shadow: 0 0 0 3px var(--soft); }
.track-step.next .track-dot { background: var(--c-line-strong); }
.track-label { flex: 1; display: flex; justify-content: space-between; gap: 8px; font-size: .8rem; }
.track-step.now .track-label { font-weight: 600; }
.track-step.next .track-label { color: var(--c-fg-subtle); }
.track-when { font-weight: 400; font-variant-numeric: tabular-nums; color: var(--c-fg-subtle); }

.flow-col .col-label, .flow-card { transition: color .3s, border-color .3s; }
.flow-col.now .col-label { color: var(--brand); }
.flow-col.now .flow-card { border-color: var(--brand); }

.plans { margin-top: auto; padding: 18px; border-radius: 1rem; border: 1px solid var(--c-line); background: var(--c-surface); }
.plans-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.plans-price { margin: 0; display: flex; align-items: baseline; gap: 6px; }
#plan-price { font-size: 2.4rem; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.plans-month { font-size: .9rem; color: var(--c-fg-muted); }
.plans-tier { margin: 0; font-size: .85rem; color: var(--c-fg-muted); font-variant-numeric: tabular-nums; }
.tier { display: block; -webkit-appearance: none; appearance: none; width: 100%; height: 6px; margin: 16px 0 0; border-radius: 9999px; background: linear-gradient(var(--c-accent-solid), var(--c-accent-solid)) 0 / var(--fill, 0%) 100% no-repeat, var(--c-surface-2); outline: 0; cursor: pointer; }
.tier::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 9999px; background: #ffffff; border: 2px solid var(--c-accent-solid); box-shadow: 0 1px 4px #0003; }
.tier::-moz-range-thumb { width: 18px; height: 18px; border-radius: 9999px; background: #ffffff; border: 2px solid var(--c-accent-solid); }
.tier:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--c-fg); outline-offset: 2px; }
.tier-labels { display: flex; justify-content: space-between; margin-top: 6px; font-size: .75rem; color: var(--c-fg-subtle); font-variant-numeric: tabular-nums; }
.tier-labels .on { color: var(--c-fg); font-weight: 600; }
.plans-note { margin: 12px 0 0; font-size: .75rem; line-height: 1.4; color: var(--c-fg-subtle); }
.plans-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.zl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 48px; padding: 0 12px; border-radius: 9999px; border: 1px solid transparent; font: inherit; font-size: 1rem; font-weight: 600; white-space: nowrap; cursor: pointer; text-decoration: none; transition: transform .15s, background-color .15s, border-color .15s; }
.zl-btn:active { transform: scale(.98); }
.zl-btn:focus-visible { outline: 2px solid var(--c-fg); outline-offset: 2px; }
.zl-btn--primary { background: var(--c-accent-solid); color: var(--c-on-accent); }
.zl-btn--secondary { background: transparent; color: var(--c-fg); border-color: var(--c-line-strong); font-weight: 500; }
.zl-btn--secondary:hover { border-color: var(--c-fg); background: var(--c-surface-2); }
.plans-contact { display: flex; margin-top: 14px; }
