* { box-sizing: border-box; margin: 0; padding: 0; }
:root { --tabbar-h: 84px; }
html { scroll-padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 16px); }
body { font-family: system-ui, sans-serif; background: #f6f6f8; color: #222; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 16px); }
.topbar { background: #111; padding: 14px 20px; }
.logo { color: #fff; font-weight: 800; font-size: 1.3rem; text-decoration: none; }
main { padding: 20px; max-width: 1000px; margin: auto; }
h2 { margin: 20px 0 12px; }
.hero { background: linear-gradient(135deg, #ff6b35, #f7931e); color: #fff; border-radius: 16px; padding: 30px 20px; }
.hero p { margin: 8px 0 16px; }
.btn, button { background: #111; color: #fff; border: 0; border-radius: 10px; padding: 10px 16px; cursor: pointer; text-decoration: none; display: inline-block; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.card { background: #fff; border-radius: 14px; padding: 14px; text-align: center; box-shadow: 0 2px 8px #0001; }
.card .img { font-size: 3rem; background: #f0f0f3; border-radius: 10px; padding: 20px 0; margin-bottom: 8px; }
.price { color: #f7931e; font-weight: 700; margin: 6px 0 10px; }
.cart { list-style: none; background: #fff; border-radius: 12px; }
.cart li { display: flex; gap: 10px; align-items: center; padding: 12px; border-bottom: 1px solid #eee; }
.cart li span { margin-left: auto; }
.cart li button { padding: 4px 10px; }
.total { font-weight: 700; margin: 14px 0; }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; display: flex; border-top: 1px solid #ddd; z-index: 50; padding-bottom: env(safe-area-inset-bottom, 0px); }
.tabbar a { flex: 1; min-width: 0; text-align: center; padding: 6px 2px 8px; text-decoration: none; color: #888; font-size: 1.2rem; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.tabbar a span { font-size: .65rem; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tabbar a.active { color: #f7931e; }
#cart-count { background: #f7931e; color: #fff; border-radius: 8px; padding: 0 5px; font-size: .7rem; }
.topbar { display: flex; justify-content: space-between; align-items: center; }
#user-badge { color: #ccc; font-size: .85rem; }
.btn.light { background: #fff; color: #111; }
.shopcard { background: #fff; border-radius: 14px; padding: 16px; text-decoration: none; color: inherit; box-shadow: 0 2px 8px #0001; }
.shopcard p { color: #666; font-size: .9rem; margin: 6px 0; }
.shopcard small { color: #999; }
.shopname a { color: #888; font-size: .8rem; }
.storehead { color: #fff; border-radius: 16px; padding: 30px 20px; margin-bottom: 16px; }
.panel { background: #fff; border-radius: 14px; padding: 18px; box-shadow: 0 2px 8px #0001; display: flex; flex-direction: column; gap: 10px; }
.panel input, .panel textarea { padding: 10px; border: 1px solid #ddd; border-radius: 8px; font: inherit; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 12px 0; }
.muted { color: #999; font-size: .85rem; margin-top: 10px; }
h3 { margin: 14px 0 8px; }
/* ---- Multi-boutiques + thèmes ---- */
.row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.narrow { max-width: 480px; margin-top: 20px; }
.light-outline { background: transparent !important; color: #111 !important; border: 1px solid #111 !important; }
.danger { background: #c62828; }
.panel label { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.panel select { padding: 8px; border-radius: 8px; border: 1px solid #ddd; font: inherit; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; }
.preset { font-size: .75rem; padding: 6px 10px; }
.preview { border: 2px dashed #ccc; border-radius: 12px; overflow: hidden; }

/* ---- Produits façon Shopify ---- */
.photo { padding: 0 !important; overflow: hidden; aspect-ratio: var(--ratio, 1 / 1); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card a { color: inherit; text-decoration: none; }
.cardlink { display: block; }
.price s { color: #999; font-weight: 400; margin-left: 6px; }
button:disabled { opacity: .5; cursor: not-allowed; }
.mini { width: 44px; height: 44px; border-radius: 8px; background: #f0f0f3; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.mini.photo { aspect-ratio: auto; }
.ptable, .vtable { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; margin-top: 8px; }
.ptable th, .ptable td, .vtable th, .vtable td { padding: 10px; border-bottom: 1px solid #eee; text-align: left; vertical-align: middle; }
.ptable th, .vtable th { background: #fafafa; font-size: .8rem; color: #666; }
.vtable input { width: 100%; padding: 6px; border: 1px solid #ddd; border-radius: 6px; }
.nowrap { white-space: nowrap; }
.btn.small, button.small { padding: 6px 10px; font-size: .8rem; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; background: #eee; font-size: .75rem; }
.badge.ok { background: #d7f5df; color: #1b6b35; }
.badge.draft { background: #fdeccf; color: #8a5a00; }
.badge.sale { background: #c62828; color: #fff; }
.peditor { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
@media (max-width: 800px) { .peditor { grid-template-columns: 1fr; } .ptable td:nth-child(3), .ptable th:nth-child(3) { display: none; } }
.peditor .col { display: flex; flex-direction: column; gap: 14px; }
.panel label.stack { flex-direction: column; align-items: stretch; gap: 4px; font-size: .85rem; color: #555; }
.panel label.check { justify-content: flex-start; font-size: .9rem; }
.cols3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.short { width: 90px; }
.imgs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumb { width: 100px; border: 2px solid #eee; border-radius: 10px; overflow: hidden; background: #fff; }
.thumb.main { border-color: #f7931e; }
.thumb img { width: 100%; height: 90px; object-fit: cover; display: block; }
.thumb-actions { display: flex; justify-content: space-between; align-items: center; padding: 4px; }
.thumb-actions button { padding: 2px 8px; font-size: .75rem; }
.upload { display: inline-block !important; border: 2px dashed #bbb; border-radius: 10px; padding: 16px; text-align: center; cursor: pointer; color: #555; }
.upload input { display: none; }
.optrow { display: grid; grid-template-columns: 1fr 2fr auto; gap: 8px; margin-bottom: 8px; }
.optrow input { padding: 8px; border: 1px solid #ddd; border-radius: 8px; }
.btn.big { padding: 14px; font-size: 1rem; width: 100%; }
.pp { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 700px) { .pp { grid-template-columns: 1fr; } }
.gallery #main-img { width: 100%; border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; }
.gallery .thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.gallery .thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; cursor: pointer; }
.big-emoji { font-size: 8rem; text-align: center; padding: 60px 0; background: var(--card); border-radius: var(--radius); }
.ppinfo { display: flex; flex-direction: column; gap: 12px; }
.ppinfo select, .ppinfo input { padding: 10px; border: 1px solid #ccc; border-radius: 8px; font: inherit; }
.ppinfo label.stack { display: flex; flex-direction: column; gap: 4px; }
.price.big { font-size: 1.5rem; }
.pdesc { line-height: 1.6; opacity: .85; }
.cart li .mini { margin-right: 4px; }
/* ---- Commandes ---- */
.qtybox { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.qtybox button { padding: 2px 9px; }
.cart li > span:last-child { min-width: 90px; text-align: right; }
.chip { padding: 6px 12px; border-radius: 16px; background: #fff; border: 1px solid #ddd; text-decoration: none; color: #333; font-size: .85rem; }
.chip.on { background: #111; color: #fff; border-color: #111; }
.order { margin-top: 10px; }
.order summary { cursor: pointer; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.order .right { margin-left: auto; }
.order p { line-height: 1.6; font-size: .9rem; }
.st-pending { background: #fdeccf; color: #8a5a00; }
.st-paid { background: #d6e9ff; color: #0b4a8b; }
.st-shipped { background: #d7f5df; color: #1b6b35; }
.pill { background: #f7931e; color: #fff; border-radius: 10px; padding: 0 7px; font-size: .75rem; }
hr { border: 0; border-top: 1px solid #eee; margin: 8px 0; }

/* ---- Vitrine thémable (sections) ---- */
.storefront { background: var(--bg); color: var(--text); font-family: var(--font); border-radius: 16px; min-height: 300px; overflow: clip; }
.storefront h1, .storefront h2, .storefront h3, .sf-word { font-family: var(--font-h); letter-spacing: var(--ls); }
.storefront.upper h1, .storefront.upper h2, .storefront.upper .sf-word, .storefront.upper .sf-btn, .storefront.upper .sf-announce, .storefront.upper .sf-menu { text-transform: uppercase; }
.storefront a { color: inherit; }
.sf-sec { padding: 20px 16px; }
.sf-title { margin: 4px 0 14px; }
.storefront button, .storefront .sf-btn { background: var(--btn-bg); color: var(--btn-text); border-radius: var(--btn-radius); font-family: var(--font); }
.storefront .sf-ico, .storefront .sf-link { background: transparent; color: inherit; border-radius: 6px; padding: 6px; }
.storefront .price { color: var(--primary); }
.storefront .desc { opacity: .75; font-size: .85rem; margin: 4px 0; }
.sf-announce { background: var(--ann-bg); color: var(--ann-text); text-align: center; font-weight: 700; font-size: .78rem; padding: 8px 12px; letter-spacing: calc(var(--ls) / 2 + .5px); }
.sf-header { background: var(--head-bg); color: var(--head-text); z-index: 5; }
.sf-header.sticky { position: sticky; top: 0; box-shadow: 0 2px 10px #0002; }
.sf-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 16px; }
.sf-brand { text-decoration: none; display: flex; flex-direction: column; justify-content: center; }
.sf-brand img { height: var(--logo-h); max-width: 220px; object-fit: contain; }
.sf-word { font-weight: 800; font-size: calc(var(--logo-h) * .55 + 6px); line-height: 1.1; }
.sf-brand small { opacity: .75; font-size: .75rem; }
.sf-icons { display: flex; gap: 4px; justify-content: flex-end; align-items: center; }
.sf-ico { display: inline-flex; align-items: center; position: relative; text-decoration: none; }
.sf-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.sf-count { position: absolute; top: -2px; right: -4px; background: var(--primary); color: #fff; border-radius: 8px; font-size: .65rem; padding: 0 4px; }
.sf-burger { display: none !important; }
.hs-menu .sf-burger { display: inline-flex !important; }
.hs-menu .sf-brand, .hs-center .sf-brand { align-items: center; text-align: center; }
.hs-left .sf-bar { grid-template-columns: 1fr auto; }
.hs-center .sf-bar { grid-template-columns: 1fr auto 1fr; } .hs-center .sf-brand { grid-column: 2; } .hs-center .sf-icons { grid-column: 3; }
.sf-menu { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 0 16px 10px; font-size: .9rem; }
.hs-center .sf-menu { justify-content: center; }
.sf-menu a, .sf-menu .sf-link { text-decoration: none; opacity: .9; padding: 2px 0; font-size: .9rem; }
.hs-menu .sf-menu { display: none; flex-direction: column; padding: 4px 16px 14px; }
.hs-menu.open-menu .sf-menu { display: flex; }
.sf-search { display: none; padding: 0 16px 12px; }
.open-search .sf-search { display: block; }
.sf-search input { width: 100%; padding: 10px; border-radius: 8px; border: 1px solid #8884; font: inherit; }
.sf-flash { background: var(--accent); color: #fff; text-align: center; padding: 10px 12px; font-size: .9rem; }
.countdown { font-variant-numeric: tabular-nums; font-weight: 700; background: #0003; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.storefront .storehead { color: #fff; border-radius: 0; padding: 36px 20px; margin: 0; }
.storefront.banner-minimal .storehead { color: var(--text); border-bottom: 3px solid var(--primary); padding: 18px 16px; }
.sf-hero { position: relative; overflow: hidden; display: flex; align-items: center; }
.sf-hero.slideshow { color: #fff; min-height: 380px; }
.sf-hero.h-s { min-height: 260px; } .sf-hero.h-l { min-height: 540px; }
@media (max-width: 600px) { .sf-hero.slideshow { min-height: 300px; } .sf-hero.h-s { min-height: 220px; } .sf-hero.h-l { min-height: 420px; } }
.slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .8s; }
.slide.on { opacity: 1; }
.sf-overlay { position: absolute; inset: 0; background: #000; }
.sf-hero-text { position: relative; width: 100%; padding: 30px 20px; display: flex; flex-direction: column; gap: 12px; }
.sf-hero-text.align-center { align-items: center; text-align: center; }
.sf-hero-text.align-left { align-items: flex-start; }
.sf-hero.slideshow h1 { font-size: clamp(2rem, 7vw, 4.2rem); line-height: 1.05; }
.sf-hero-text p { max-width: 600px; opacity: .92; }
.sf-btn { display: inline-block; padding: 13px 26px; text-decoration: none; font-weight: 700; letter-spacing: calc(var(--ls) / 2 + .5px); }
.dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.storefront .dot { width: 10px; height: 10px; padding: 0; border-radius: 50%; background: #fff6; border: 0; }
.storefront .dot.on { background: #fff; }
.storefront .products { display: grid; gap: 14px; }
.storefront.layout-grid .products { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
.storefront.layout-large .products { grid-template-columns: repeat(min(var(--cols), 2), minmax(0, 1fr)); }
@media (max-width: 600px) { .storefront.layout-grid .products { grid-template-columns: repeat(2, minmax(0, 1fr)); } .storefront.layout-large .products { grid-template-columns: 1fr; } }
.storefront.layout-large .card .img:not(.photo) { font-size: 5rem; }
.storefront.layout-list .products { grid-template-columns: 1fr; }
.storefront.layout-list .card { display: flex; gap: 14px; text-align: left; align-items: center; }
.storefront.layout-list .card .cardlink { width: 110px; flex-shrink: 0; }
.storefront.layout-list .card .img { margin: 0; }
.storefront.layout-list .card .info { flex: 1; }
.storefront .card { background: var(--card); color: var(--text); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.storefront .card .img { border-radius: calc(var(--radius) * .7); background: color-mix(in srgb, var(--primary) 12%, var(--card)); aspect-ratio: var(--ratio); display: flex; align-items: center; justify-content: center; padding: 0; }
.storefront .card .img img { transition: transform .4s; }
.card-border .card { box-shadow: none; border: 1px solid color-mix(in srgb, var(--text) 18%, transparent); }
.card-flat .card { box-shadow: none; background: transparent; padding: 0 0 8px; }
.cardlink { position: relative; }
.badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.storefront .badge.sale, .ppinfo .badge.sale { background: var(--sale, #c62828); color: #fff; }
.badge.low { background: #ffb020; color: #3a2500; }
.ppinfo .badges { position: static; flex-direction: row; }
.hover-zoom .card:hover .img img { transform: scale(1.07); }
.hover-lift .card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px #0002; }
.hover-shadow .card:hover { box-shadow: 0 10px 30px #0003; }
@keyframes sfFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sfUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.enter-fade .sf-sec, .enter-fade .card, .enter-fade .sf-hero-text { animation: sfFade .7s both; }
.enter-slide .sf-sec, .enter-slide .card, .enter-slide .sf-hero-text { animation: sfUp .6s both; }
.storefront .card:nth-child(2) { animation-delay: .06s; } .storefront .card:nth-child(3) { animation-delay: .12s; } .storefront .card:nth-child(n+4) { animation-delay: .18s; }
.no-anim *, .no-anim { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { .storefront *, .storefront { animation: none !important; transition: none !important; } }
.sf-rich { text-align: center; max-width: 720px; margin: auto; line-height: 1.7; }
.sf-it { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.sf-it img { width: 100%; border-radius: var(--radius); object-fit: cover; max-height: 420px; }
.sf-it.side-right img { order: 2; }
@media (max-width: 640px) { .sf-it { grid-template-columns: 1fr; } .sf-it.side-right img { order: 0; } }
.sf-it p { line-height: 1.7; }
.sf-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.sf-feat { background: var(--card); border-radius: var(--radius); padding: 18px; text-align: center; }
.sf-feat .ico { font-size: 1.8rem; } .sf-feat h3 { margin: 8px 0 4px; font-size: 1rem; } .sf-feat p { opacity: .8; font-size: .9rem; }
.sf-quote p { font-style: italic; margin: 8px 0; } .stars { color: #f5b301; letter-spacing: 2px; }
.sf-footer { background: var(--foot-bg); color: var(--foot-text); text-align: center; padding: 26px 16px; display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.sf-footer small { opacity: .6; }
.sf-social { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sf-social a { border: 1px solid currentColor; border-radius: 20px; padding: 5px 12px; text-decoration: none; font-size: .85rem; }
.pp-left { } .pp-right .gallery { order: 2; } .pp-stacked { grid-template-columns: 1fr !important; max-width: 640px; margin: auto; }
.pp-flash { background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 8px; }
.shoplogo { height: 40px; max-width: 140px; object-fit: contain; }
/* ---- Éditeur de thème ---- */
.editor { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 16px; align-items: start; }
.ed-top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.dirty { color: #c66a00; font-size: .85rem; font-weight: 600; }
.ed-form { gap: 4px; max-height: none; }
.ed-form details { border-bottom: 1px solid #eee; padding: 6px 0; }
.ed-form summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.ed-body { display: flex; flex-direction: column; gap: 10px; padding: 6px 0 10px; }
.ed-colors { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; font-size: .85rem; }
.ed-colors input[type=color] { width: 42px; height: 30px; border: 1px solid #ddd; border-radius: 6px; padding: 0; background: none; }
.rng { display: flex; align-items: center; gap: 6px; } .rng output { font-size: .8rem; min-width: 52px; color: #666; }
.secrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px dashed #eee; font-size: .9rem; }
.ed-img { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .9rem; }
.ed-img img { height: 44px; max-width: 120px; object-fit: contain; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 / 12px 12px; border-radius: 6px; }
.upload.small { padding: 8px 12px; font-size: .85rem; }
.ed-item { border: 1px solid #eee; border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.ed-actions { position: sticky; bottom: 70px; background: #fff; padding: 10px 0 4px; display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid #eee; z-index: 3; }
.ed-preview { position: sticky; top: 10px; }
.ed-prevbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.preview { border: 2px dashed #ccc; border-radius: 12px; overflow: auto; max-height: calc(100vh - 120px); background: #fff; }
.preview.dev-mobile { max-width: 390px; margin: auto; }
.preview .storefront a, .preview .storefront button:not(.dot):not(.sf-ico):not(.sf-burger), .preview .storefront input { pointer-events: none; }
.preview .storefront .sf-icons a { pointer-events: none; }
.ed-switch { display: none; gap: 6px; margin: 8px 0; }
.ed-switch button { flex: 1; background: #eee; color: #111; } .ed-switch button.on { background: #111; color: #fff; }
@media (max-width: 860px) {
  .editor { grid-template-columns: 1fr; } .ed-switch { display: flex; position: sticky; top: 0; z-index: 4; background: #f6f6f8; padding: 6px 0; }
  .ed-show-settings .ed-preview { display: none; } .ed-show-preview .ed-form { display: none; }
  .ed-preview { position: static; } .preview { max-height: none; }
}
/* ---- Sections avancées ---- */
.sf-bar { grid-template-columns: 1fr auto 1fr; }
.hs-left .sf-bar { grid-template-columns: auto 1fr auto; } .hs-left .sf-brand { order: 0; } .hs-left .sf-left { order: 1; } .hs-left .sf-icons { order: 2; }
.hs-center .sf-brand { grid-column: auto; } .hs-center .sf-icons { grid-column: auto; }
.sf-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sf-note { font-size: .78rem; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-hbtn { padding: 7px 12px; font-size: .75rem; margin-right: 6px; }
@media (max-width: 600px) { .sf-note, .sf-hbtn { display: none; } main > .storefront, main > div > .storefront { margin: 0 -20px; border-radius: 0; } }
.storefront.grain { position: relative; }
.storefront.grain::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 20; opacity: .13; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.sf-marquee { overflow: hidden; background: var(--primary); color: var(--btn-text); padding: 12px 0; white-space: nowrap; font-family: var(--font-h); letter-spacing: var(--ls); }
.upper .sf-marquee { text-transform: uppercase; }
.sf-marquee .track { display: inline-flex; gap: 22px; animation: sfMarquee var(--dur) linear infinite; font-size: 1.1rem; }
.sf-marquee i { font-style: normal; opacity: .7; }
@keyframes sfMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.sf-spot { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.sf-spot.rev .spot-img { order: 2; }
.spot-img { display: flex; align-items: center; justify-content: center; }
.spot-img img { max-height: 100%; max-width: 100%; object-fit: contain; filter: drop-shadow(0 18px 24px #0005); }
.spot-img span { font-size: 6rem; }
.spot-label { display: inline-block; background: var(--accent); color: #fff; padding: 3px 10px; font-size: .72rem; font-weight: 700; letter-spacing: 1px; border-radius: 3px; }
.spot-txt { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; } .spot-txt h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
@media (max-width: 640px) { .sf-spot { grid-template-columns: 1fr; } .sf-spot.rev .spot-img { order: 0; } }
.scene { position: sticky; top: 0; min-height: 70vh; display: flex; align-items: center; padding: 40px 24px; overflow: hidden; }
.scene.pos-center { justify-content: center; text-align: center; } .scene.pos-right { justify-content: flex-end; text-align: right; }
.scene-in { position: relative; max-width: 560px; display: flex; flex-direction: column; gap: 12px; }
.scene-in h2 { font-size: clamp(1.8rem, 5vw, 3.4rem); line-height: 1.05; } .scene-in small { opacity: .7; }
.scene-word { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--font-h); font-size: clamp(4rem, 18vw, 13rem); font-weight: 900;
  color: inherit; -webkit-text-fill-color: transparent; -webkit-text-stroke: 2px currentColor; opacity: .3; white-space: nowrap; line-height: 1; pointer-events: none; }
.preview .scene { min-height: 380px; }
.sf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; text-align: center; }
.stat .val { font-family: var(--font-h); font-size: clamp(2.2rem, 6vw, 3.6rem); color: var(--primary); line-height: 1; }
.stat .val em { font-family: Georgia, serif; font-size: .55em; margin-left: 2px; }
.stat p { font-weight: 600; margin-top: 6px; } .stat small { opacity: .65; }
.sf-cta { position: relative; background: var(--secondary); background-size: cover; background-position: center; color: #fff; text-align: center; padding: 70px 20px; }
.sf-cta-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.sf-cta h2 { font-size: clamp(2rem, 6vw, 3.8rem); line-height: 1.05; } .sf-cta h2 span { color: var(--primary); }
.sf-cta small { letter-spacing: 2px; opacity: .85; }
.sf-legal { opacity: .7; text-align: center; font-size: .85rem; line-height: 1.6; }
.sf-fmenu { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; } .sf-fmenu a { text-decoration: none; }
.ed-body h4 { margin: 4px 0 0; font-size: .9rem; }
@media (prefers-reduced-motion: reduce) { .sf-marquee .track { animation: none !important; } }
/* éditeur : l'aperçu ne doit jamais élargir la colonne (bandeau défilant, etc.) */
.editor > * { min-width: 0; }
.preview .storefront { max-width: 100%; }
.sf-marquee { max-width: 100%; }
main:has(.editor) { max-width: 1400px; }
.ed-form .ed-actions button { flex: 1 1 auto; }
@media (max-width: 480px) { .sf-word { font-size: calc(var(--logo-h) * .38 + 6px); } .sf-brand img { max-width: 150px; } }
/* ---------- Import depuis un lien ---------- */
.imp-url { display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.imp-url label { flex: 1 1 260px; min-width: 0; height: auto; margin: 0; display: flex; flex-direction: column; gap: 6px; text-align: left; font-weight: 600; }
.imp-url input { width: 100%; box-sizing: border-box; margin: 0; }
.imp-url button { flex: 0 0 auto; margin: 0; }
.imp-status { padding: 12px 14px; border-radius: 10px; background: #f1f1f5; margin: 12px 0; }
.imp-status.ok { background: #e8f6ec; color: #1d5e2f; }
.imp-status.warn { background: #fff4e0; color: #7a4a00; }
.imp-review { display: grid; gap: 14px; }
.imp-review .panel { margin: 0; }
.imp-review label.stack input, .imp-review label.stack textarea, .imp-review label.stack select { width: 100%; }
.imp-review label.check { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.imp-found { margin: 6px 0 10px; }
.imp-go { font-size: 1.05rem; padding: 14px 22px; justify-self: start; }
.vwrap { overflow-x: auto; }
.imp-cta { border-left: 6px solid #f7931e; }
@media (max-width: 600px) {
  .imp-url button, .imp-go { width: 100%; }
  .imp-review .two { grid-template-columns: 1fr; }
  .imp-review .thumb { width: calc(33% - 8px); }
}
/* ---------- Bouton favori ---------- */
.bm-code textarea { width: 100%; font-family: monospace; font-size: .75rem; margin-top: 10px; box-sizing: border-box; }
.bm-copy { font-size: 1.05rem; padding: 12px 20px; }
.steps { padding-left: 22px; line-height: 1.6; } .steps li { margin: 8px 0; }
.bm-drag { cursor: grab; }
.imp-dest select { width: 100%; margin-top: 6px; }
/* ---------- Voir / partager ma boutique ---------- */
.share-box .share-main { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.share-left { flex: 1 1 280px; display: grid; gap: 10px; min-width: 0; }
.view-shop { font-size: 1.05rem; padding: 12px 18px; text-align: center; }
.share-url { display: flex; gap: 6px; } .share-url input { flex: 1; min-width: 0; margin: 0; } .share-url button { margin: 0; white-space: nowrap; }
.btn.wa { background: #25d366; color: #fff; }
.share-qr { width: 132px; text-align: center; } .share-qr svg { width: 132px; height: 132px; display: block; background: #fff; }
.share-box.big { border: 2px solid #25d366; }
.share-fold { margin: 8px 0 12px; } .share-fold summary { cursor: pointer; font-weight: 600; }
.ed-top .small-view { margin-left: auto; padding: 8px 14px; font-size: .9rem; }
@media (max-width: 600px) { .share-qr { margin: 0 auto; } .share-left .row > * { flex: 1 1 100%; text-align: center; } }
/* ---------- Pages de la boutique ---------- */
.sf-page { padding: 8px 0 24px; }
.cat-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 10px 0; }
.cat-bar .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-sort select { margin-left: 6px; }
.sf-more { text-align: center; margin-top: 18px; }
.col-hero { background-size: cover; background-position: center; border-radius: var(--radius, 12px); min-height: 200px; display: flex; align-items: flex-end; position: relative; overflow: hidden; margin-bottom: 12px; }
.col-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.col-hero-in { position: relative; padding: 18px; color: #fff; } .col-hero-in h1 { margin: 0; }
.col-desc { max-width: 760px; }
.pg-img { width: 100%; max-height: 360px; object-fit: cover; border-radius: var(--radius, 12px); margin-bottom: 12px; }
.rich { line-height: 1.65; max-width: 760px; } .rich h2 { margin: 18px 0 6px; } .rich h3 { margin: 14px 0 6px; } .rich blockquote { border-left: 4px solid var(--primary); margin: 10px 0; padding: 4px 14px; opacity: .85; }
.rich a { color: var(--primary); text-decoration: underline; }
.contact-cards { display: grid; gap: 10px; max-width: 520px; margin: 16px 0; } .contact-cards .sf-btn { text-align: center; } .ct-wa { background: #25d366 !important; color: #fff !important; }
.faq { max-width: 760px; margin-top: 14px; } .faq details { border-bottom: 1px solid rgba(127,127,127,.25); padding: 12px 0; } .faq summary { cursor: pointer; font-weight: 600; }
.search-big { width: 100%; font-size: 1.1rem; padding: 12px 14px; box-sizing: border-box; margin: 8px 0 14px; }
.prev-page { display: block; margin: 8px 0; } .prev-page select { margin-left: 6px; }
/* ---------- Éditeur du site ---------- */
.tabs { margin: 10px 0; } .site-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid #eee; }
.site-row-main { display: flex; gap: 10px; align-items: center; } .site-row-main img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.site-form label.stack input, .site-form label.stack textarea { width: 100%; box-sizing: border-box; }
.pick-filter { width: 100%; box-sizing: border-box; } .pick-list { max-height: 360px; overflow: auto; border: 1px solid #eee; border-radius: 10px; padding: 4px; }
.pick { display: flex; gap: 10px; align-items: center; padding: 6px; border-bottom: 1px solid #f3f3f3; cursor: pointer; } .pick .mini { width: 40px; height: 40px; flex: 0 0 40px; }
.rich-bar { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; } .rich-bar button { padding: 6px 10px; font-size: .85rem; background: #f1f1f5; color: #222; }
.rich-ed { min-height: 180px; border: 1px solid #ddd; border-radius: 10px; padding: 10px 12px; background: #fff; outline: none; } .rich-ed:focus { border-color: #f7931e; }
.menu-row { display: grid; grid-template-columns: 1fr 140px 1fr auto; gap: 6px; align-items: center; margin-bottom: 8px; }
.menu-row input, .menu-row select { margin: 0; min-width: 0; width: 100%; box-sizing: border-box; }
.tpl-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.site-save { position: sticky; bottom: 70px; padding: 10px 0; z-index: 5; } .site-save button { width: 100%; box-shadow: 0 4px 16px rgba(0,0,0,.15); }
@media (max-width: 600px) { .menu-row { grid-template-columns: 1fr 1fr; } .menu-row .nowrap { grid-column: 1 / -1; } .cat-bar { flex-direction: column; align-items: stretch; } }
/* ---------- Import boutique Shopify ---------- */
.shp-list { max-height: 50vh; } .shp-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 6px; border-bottom: 1px solid #f1f1f1; cursor: pointer; }
.shp-row input { margin-top: 4px; } .shp-name { display: flex; flex-direction: column; min-width: 0; } .shp-name b { font-weight: 600; }
.progress { height: 14px; background: #eee; border-radius: 8px; overflow: hidden; } .progress > div { height: 100%; background: #25d366; transition: width .3s; }
#shp-shop { width: 100%; } .small-note { font-size: .85rem; }
/* ---------- Boutiques tendance ---------- */
.est-badge { display: inline-block; background: #fff4e0; color: #7a4a00; border: 1px solid #f0c36d; border-radius: 999px; padding: 1px 8px; font-size: .75rem; font-weight: 600; cursor: help; white-space: nowrap; }
.tr-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 10px 0; } .tr-bar .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.tr-card { display: block; color: inherit; text-decoration: none; margin: 0; } .tr-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.tr-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.tr-score { display: flex; align-items: center; gap: 8px; margin: 8px 0; color: #f7931e; } .tr-score small { color: #777; flex: 1; }
.score { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #f7931e; color: #fff; font-weight: 800; }
.score.s0, .score.s1, .score.s2 { background: #9e9e9e; } .score.s7, .score.s8, .score.s9 { background: #2e7d32; }
.tr-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .tr-kpis div { background: #f7f7f9; border-radius: 10px; padding: 8px; } .tr-kpis b { display: block; font-size: 1.05rem; } .tr-kpis small { color: #666; }
.tr-kpis.big { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin: 12px 0; }
.tr-prod { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid #eee; }
.tr-prod img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: #f3f3f3; } .tr-pinfo { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .tr-pinfo a { color: inherit; }
.tr-price { font-weight: 700; } .badge.sale { background: #c62828; color: #fff; } .tr-hist summary { cursor: pointer; font-size: .85rem; color: #555; } .spark { vertical-align: middle; color: #f7931e; }
.tr-actions select { margin-left: 6px; } .tr-promo { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
@media (max-width: 600px) { .tr-prod { grid-template-columns: 56px 1fr; } .tr-prod button { grid-column: 1 / -1; } }
/* Tableau des variantes : ne dépasse jamais l'écran du téléphone (sinon la page défile de côté) */
.vwrap, #var-list { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.vtable { table-layout: fixed; }
.vtable th:first-child, .vtable td:first-child { width: 40%; word-break: break-word; }
.vtable input { min-width: 0; box-sizing: border-box; font-size: 16px; }
/* Liste des produits du tableau de bord en cartes sur téléphone (le tableau dépassait l'écran) */
@media (max-width: 600px) {
  .ptable, .ptable tbody, .ptable tr, .ptable td { display: block; }
  .ptable tr:first-child { display: none; }
  .ptable tr { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 10px; row-gap: 4px; padding: 10px; border-bottom: 1px solid #eee; }
  .ptable td { padding: 0; border: 0; min-width: 0; overflow-wrap: anywhere; }
  .ptable td:first-child { grid-row: span 3; }
  .ptable td.nowrap { grid-column: 1 / -1; white-space: normal; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
  .ptable td[colspan] { grid-column: 1 / -1; }
}
.two > *, .panel { min-width: 0; }
.peditor > *, .col { min-width: 0; }
select, input, textarea { max-width: 100%; }
.optrow { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; }
.optrow input { min-width: 0; width: 100%; box-sizing: border-box; }

/* ---------- Imports (version Cloudflare) ---------- */
.imp-toast { position: fixed; left: 8px; right: 8px; bottom: calc(var(--tabbar-h, 84px) + env(safe-area-inset-bottom, 0px) + 8px); z-index: 50; background: #1f2a1f; color: #fff; border-radius: 12px; padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; box-shadow: 0 6px 24px rgba(0,0,0,.25); max-width: 640px; margin: 0 auto; }
.imp-toast > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.imp-toast-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.imp-recent .imp-list { list-style: none; padding: 0; margin: 0; }
.imp-recent .imp-list li { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #eee; }
.imp-recent .imp-list li:last-child { border-bottom: 0; }
.imp-recent .imp-info { min-width: 0; overflow-wrap: anywhere; }
.psel-bar { align-items: center; gap: 10px; margin-top: 8px; }
.psel-bar label { display: flex; align-items: center; gap: 6px; }
.psel-wrap { position: relative; display: inline-block; }
.psel-wrap input.psel { position: absolute; top: -6px; left: -6px; width: 22px; height: 22px; margin: 0; z-index: 1; accent-color: #d33; }

/* ---------- App installable (PWA, version Cloudflare) ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo img { width: 36px; height: 36px; border-radius: 8px; display: block; flex-shrink: 0; }
.pwa-bar { display: flex; justify-content: center; align-items: center; padding: 8px 16px; background: #0a2a5e; }
.pwa-bar[hidden], .pwa-ios[hidden] { display: none !important; }
.pwa-install { background: #00c9c8; color: #0a2a5e; font-weight: 700; border: 0; border-radius: 10px; padding: 8px 16px; cursor: pointer; font-size: .95rem; }
.pwa-ios { position: relative; display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; margin: 0; padding: 12px 16px; background: #0a2a5e; color: #fff; font-size: .9rem; line-height: 1.4; }
.pwa-ios p { margin: 0; flex: 1; }
.pwa-ios-close { background: transparent; color: #fff; border: 0; font-size: 1.4rem; line-height: 1; padding: 0 4px; cursor: pointer; }

/* Connexion Google et confirmation d'email */
.auth-google { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.auth-google[hidden] { display: none !important; }
.auth-or { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; color: #667; font-size: .85rem; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: #e2e5ec; }
.auth-or span { line-height: 1; }
.google-btn { display: flex; justify-content: center; min-height: 40px; }
.auth-banner, .auth-flash { margin: 0 0 14px; }
.auth-banner { border-left: 4px solid #00c9c8; background: #f3fbfb; }
.auth-flash.ok { border-left: 4px solid #1a7f4c; background: #eef8f1; }
.auth-flash.err { border-left: 4px solid #c0392b; background: #fdf0ee; }
.auth-banner button { align-self: flex-start; }
/* ---- SamShop lancement : accueil marketing, légal, onboarding, stats, admin, support ---- */
:root { --navy: #0a2a5e; --teal: #00c9c8; --navy-2: #071c3e; --ink: #142033; --soft: #e8eef8; }
.site-footer { max-width: 1000px; margin: 28px auto 24px; padding: 20px 20px 12px; color: #5b6573; font-size: .82rem; text-align: center; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-bottom: 8px; }
.site-footer a { color: var(--navy); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #00a3a2; }
body.sf-on .site-footer { display: none; }

.support-fab { position: fixed; right: 14px; bottom: calc(var(--tabbar-h, 84px) + env(safe-area-inset-bottom, 0px) + 12px); z-index: 40; background: #25d366; color: #073; font-weight: 700; text-decoration: none; border-radius: 999px; padding: 12px 16px; box-shadow: 0 6px 20px #0003; font-size: .9rem; }
.support-fab:hover { filter: brightness(1.05); }
.inbox-bell { position: relative; margin-right: 10px; text-decoration: none; color: #fff; font-size: 1.1rem; }
.inbox-bell .pill, .tab-badge { position: absolute; top: -6px; right: -8px; background: #c62828; color: #fff; border-radius: 8px; font-size: .65rem; padding: 0 5px; min-width: 16px; text-align: center; }
#user-badge { display: flex; align-items: center; gap: 8px; }

/* Marketing */
.mk { margin: -20px -20px 0; width: calc(100% + 40px); color: var(--ink); }
.mk-hero { background: linear-gradient(160deg, var(--navy-2) 0%, var(--navy) 55%, #0e3a7a 100%); color: #fff; padding: 42px 20px 48px; text-align: center; position: relative; overflow: hidden; }
.mk-hero::after { content: ""; position: absolute; left: 50%; bottom: -40px; width: 180%; height: 90px; background: #f6f6f8; border-radius: 50%; transform: translateX(-50%); }
.mk-hero img { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 14px; box-shadow: 0 8px 24px #0004; }
.mk-hero h1 { font-size: clamp(1.7rem, 6vw, 2.6rem); line-height: 1.15; letter-spacing: -.02em; max-width: 18ch; margin: 0 auto; }
.mk-hero p { margin: 14px auto 22px; max-width: 36em; opacity: .92; font-size: 1.05rem; }
.mk-hero .row { justify-content: center; gap: 10px; position: relative; z-index: 1; }
.mk-hero .btn { background: var(--teal); color: var(--navy); font-weight: 800; }
.mk-hero .btn.ghost { background: transparent; color: #fff; border: 2px solid #fff8; }
.mk-wrap { max-width: 1000px; margin: 0 auto; padding: 8px 20px 40px; }
.mk h2 { text-align: center; margin: 36px 0 18px; color: var(--navy); font-size: 1.45rem; }
.mk-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .mk-grid { grid-template-columns: 1fr 1fr; } .mk-grid.feat { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .mk-grid.feat { grid-template-columns: repeat(5, 1fr); } .mk-grid.prices { grid-template-columns: repeat(3, 1fr); } }
.mk-card { background: #fff; border-radius: 16px; padding: 18px; box-shadow: 0 2px 12px #0a2a5e12; border: 1px solid #e6ecf5; }
.mk-card h3 { margin: 0 0 8px; color: var(--navy); font-size: 1.02rem; }
.mk-card .ico { font-size: 1.6rem; margin-bottom: 8px; }
.mk-card p { color: #4a5568; font-size: .92rem; margin: 0; }
.mk-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; background: linear-gradient(135deg, #0a2a5e, #0e4a88); color: #fff; border: 0; }
.mk-demo p { color: #d9e4f5; }
.mk-demo .btn { background: var(--teal); color: var(--navy); font-weight: 800; margin-left: auto; }
.mk-soon { display: inline-block; background: #fff3; color: var(--navy); background: #e6fffe; border-radius: 999px; padding: 2px 8px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.mk-price { text-align: center; }
.mk-price .amt { font-size: 1.4rem; font-weight: 800; color: var(--navy); margin: 8px 0; }
.mk-price ul { list-style: none; text-align: left; color: #4a5568; font-size: .9rem; display: flex; flex-direction: column; gap: 6px; margin: 12px 0 0; }
.mk-price.feat { border-color: var(--teal); box-shadow: 0 6px 20px #00c9c822; }
.mk-cta { text-align: center; background: var(--navy); color: #fff; border: 0; padding: 28px 18px; }
.mk-cta h2 { color: #fff; margin: 0 0 8px; }
.mk-cta p { color: #c9d6ee; margin: 0 0 16px; }
.mk-cta .btn { background: var(--teal); color: var(--navy); font-weight: 800; }
.mk details.faq { background: #fff; border-radius: 12px; padding: 4px 16px; border: 1px solid #e6ecf5; }
.mk details.faq + details.faq { margin-top: 8px; }
.mk details.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 14px 0; }
.mk details.faq p { margin: 0 0 14px; color: #4a5568; }

/* Légal / contact */
.legal { max-width: 720px; margin: 0 auto; }
.legal h1 { color: var(--navy); font-size: 1.6rem; }
.legal h3 { color: var(--navy); margin-top: 22px; }
.legal p, .legal li { line-height: 1.6; }
.legal ul { margin: 8px 0 12px 1.2em; }
.legal .updated { color: #889; font-size: .85rem; }
.ph { background: #fff4c8; padding: 0 4px; border-radius: 4px; }

/* Onboarding */
.ob { background: linear-gradient(180deg, #f4fffe, #fff); border: 1px solid #b7efee; border-radius: 16px; padding: 16px; margin: 0 0 18px; }
.ob h3 { margin: 0 0 6px; color: var(--navy); }
.ob ol { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.ob li { display: flex; gap: 10px; align-items: flex-start; background: #fff; border-radius: 12px; padding: 10px 12px; border: 1px solid #e6ecf5; }
.ob li.done { opacity: .72; }
.ob .mark { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; background: var(--soft); color: var(--navy); flex-shrink: 0; }
.ob li.done .mark { background: var(--teal); color: var(--navy); }
.ob .ob-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ob-banner { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: #e6fffe; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; }
.ob-banner a { margin-left: auto; }

/* Stats */
.st-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 700px) { .st-kpis { grid-template-columns: repeat(4, 1fr); } }
.st-kpi { background: #fff; border-radius: 14px; padding: 14px; box-shadow: 0 2px 8px #0001; }
.st-kpi b { display: block; font-size: 1.5rem; color: var(--navy); }
.st-kpi span { color: #667; font-size: .8rem; }
.st-chart { background: #fff; border-radius: 14px; padding: 14px; margin-top: 14px; box-shadow: 0 2px 8px #0001; overflow-x: auto; }
.st-bars { display: flex; align-items: flex-end; gap: 4px; height: 140px; min-width: 280px; }
.st-bars i { flex: 1; background: linear-gradient(180deg, var(--teal), var(--navy)); border-radius: 4px 4px 0 0; min-height: 2px; display: block; }
.st-axis { display: flex; justify-content: space-between; font-size: .7rem; color: #889; margin-top: 4px; }
.st-tabs { display: flex; gap: 8px; margin: 8px 0; }

/* Admin */
.ad table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; font-size: .88rem; }
.ad th, .ad td { padding: 8px 10px; border-bottom: 1px solid #eee; text-align: left; vertical-align: middle; }
.ad th { background: var(--navy); color: #fff; font-weight: 600; }
.ad .ok { color: #1b6b35; } .ad .bad { color: #c62828; font-weight: 700; }
.ad-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 16px; }
.contact-msg { white-space: pre-wrap; }

/* Inbox */
.inbox-list { list-style: none; }
.inbox-list li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid #eee; }
