:root {
  color-scheme: light;
  --ink:#111b31; --muted:#4c5a72; --paper:#fff; --bg:#f5f7fc; --line:#dbe2ef;
  --blue:#1648db; --blue-dark:#123bb5; --blue-wash:#eaf1ff; --blue-edge:#b8cafc;
  --danger:#a32c40; --radius:13px;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size:16px; color:var(--ink); background:var(--bg); font-synthesis:none;
}
*,*::before,*::after { box-sizing:border-box }
[hidden] { display:none!important }
body { margin:0; min-width:280px }
h1,h2,h3,p { margin:0 }
h1,h2,h3 { line-height:1.14; letter-spacing:-.027em; font-weight:750 }
h1 { font-size:clamp(1.9rem,calc(1.72rem + .55vw),2.35rem) }
h2 { font-size:1.17rem }
p { line-height:1.55 }
a { color:var(--blue); text-underline-offset:.19em }
button,input,textarea,select { font:inherit }
button,a,input,textarea,select { -webkit-tap-highlight-color:transparent }
:focus-visible { outline:3px solid #3669ef; outline-offset:3px }
button { cursor:pointer }
button:disabled { cursor:wait; opacity:.65 }
img { display:block; width:100%; height:100%; object-fit:cover }
svg { flex:none; vertical-align:middle }
ul { list-style:none; padding:0; margin:0 }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0 }
.skip { position:fixed; top:.5rem; left:.5rem; z-index:20; background:var(--paper); padding:.75rem; transform:translateY(-170%) }
.skip:focus { transform:none }
.brand { display:inline-flex; align-items:center; gap:.62rem; color:var(--ink); text-decoration:none; font-size:1.28rem; font-weight:800; letter-spacing:-.045em; white-space:nowrap }
.brand-mark { flex:none; width:2rem; height:2rem; border-radius:.62rem; display:grid; place-items:center; color:#fff; background:var(--blue) }
.button { display:inline-flex; justify-content:center; align-items:center; gap:.55rem; min-height:46px; padding:.62rem 1rem; border:1px solid transparent; border-radius:10px; background:var(--blue); color:#fff; text-decoration:none; text-align:center; font-weight:700; font-size:.94rem; line-height:1.2; transition:background .15s,color .15s,border-color .15s }
.button:hover { background:var(--blue-dark) }
.button.secondary { background:var(--paper); color:var(--blue-dark); border-color:var(--line) }
.button.secondary:hover,.button.plain:hover { background:var(--blue-wash); border-color:var(--blue-edge) }
.button.plain { background:transparent; color:var(--ink) }
.button.small { min-height:44px; padding:.48rem .78rem; font-size:.875rem }
.button.danger { color:var(--danger) }
.icon-button { display:grid; place-items:center; min-width:44px; min-height:44px; padding:0; background:none; border:1px solid transparent; border-radius:9px; text-decoration:none; color:var(--muted); font-size:1.65rem }
.icon-button:hover { color:var(--blue); background:var(--blue-wash) }
.back { display:inline-flex; align-items:center; gap:.35rem; margin-bottom:1rem; font-size:.9rem; color:var(--muted); text-decoration:none; min-height:34px }
.surface { background:var(--paper); border:1px solid var(--line); border-radius:var(--radius) }
.field { display:flex; flex-direction:column; gap:.45rem; min-width:0; font-size:.92rem; font-weight:650 }
.field input,.field textarea,.period select,.search-control { border:1px solid #bdc8db; border-radius:10px; background:#fff; color:var(--ink) }
.field input,.field textarea,.period select { width:100%; min-height:46px; padding:.72rem .82rem; font-size:1rem; font-weight:500 }
.field textarea { resize:vertical }
.field textarea::placeholder,.field input::placeholder,.search-control input::placeholder { color:#5d687d }
.field :is(input,textarea):focus,.search-control:focus-within { border-color:var(--blue); outline:2px solid var(--blue-edge); outline-offset:1px }
.note,.section-note { color:var(--muted); font-size:.91rem }
.note.info { background:var(--blue-wash); color:#243c6e; padding:.75rem 1rem; border-radius:10px }
.form-status { font-size:.9rem; color:var(--danger) }
.form-status.success { color:#1b6142 }
.form-link { display:inline-flex; align-items:center; gap:.3rem; justify-self:start; font-size:.9rem }
.thumb { position:relative; overflow:hidden; width:74px; height:74px; border-radius:10px; display:grid; place-items:center; background:#edf2fc; color:#3f5898; flex:none }
.thumb img,.avatar img { position:absolute; inset:0 }
.avatar { width:80px; height:80px; position:relative; overflow:hidden; flex:none; display:grid; place-items:center; color:#1a3770; background:#e4edfc; border:3px solid white; border-radius:50%; font-size:1.48rem; font-weight:800 }
.toast { position:fixed; z-index:20; bottom:max(1.4rem,env(safe-area-inset-bottom)); left:50%; transform:translateX(-50%); max-width:min(90vw,460px); width:max-content; background:#18264a; color:#fff; border-radius:10px; padding:.75rem 1rem; font-size:.9rem; box-shadow:0 6px 20px #1a285d26 }
.workspace { min-height:100svh; display:grid; align-content:start; grid-template-columns:15rem minmax(0,1fr); grid-template-rows:auto 1fr }
.workspace-bar { grid-column:1/-1; background:var(--paper); border-bottom:1px solid var(--line); min-height:66px; display:flex; align-items:center; padding:.85rem 1.5rem }
.workspace-nav { display:flex; flex-direction:column; gap:.35rem; padding:1.4rem .9rem; min-height:calc(100svh - 68px); background:var(--paper); border-right:1px solid var(--line) }
.workspace-nav a { min-height:48px; display:flex; justify-content:flex-start; align-items:center; gap:.75rem; padding:.6rem .9rem; border-radius:10px; color:var(--muted); text-decoration:none; font-size:.94rem; font-weight:650 }
.workspace-nav a:hover,.workspace-nav a[aria-current] { background:var(--blue-wash); color:var(--blue-dark) }
.dashboard { width:min(100%,820px); padding:2rem clamp(1rem,3.6vw,3rem) 3rem; margin-inline:auto }
.page-heading { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:.8rem; margin-bottom:1.35rem }
.page-heading p,.row-text p,.link-info p,.report-head p { color:var(--muted); font-size:.9rem; margin-top:.32rem }
.product-tools { display:grid; grid-template-columns:1fr auto; gap:.65rem; margin-bottom:1rem }
.search-control { min-width:0; display:flex; align-items:center; gap:.6rem; min-height:46px; padding:0 .75rem; color:var(--muted) }
.search-control input { padding:.62rem 0; background:none; color:var(--ink); border:0; width:100%; min-width:0; outline:0!important }
.product-list,.links-list,.rank-list { background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden }
.product-row { display:flex; gap:.85rem; min-height:96px; align-items:center; padding:.75rem }
.product-row+.product-row,.link-row+.link-row,.rank-list li+li { border-top:1px solid var(--line) }
.row-text,.link-info div { flex:1; min-width:0; overflow-wrap:anywhere }
.row-text h2,.link-info h2 { font-size:1.04rem }
.row-text p { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden }
.empty { text-align:center; background:var(--paper); border:1px dashed #aab9d9; border-radius:var(--radius); padding:2.3rem 1.15rem }
.empty-icon,.link-mark { display:grid; place-items:center; width:46px; height:46px; flex:none; border-radius:11px; color:var(--blue-dark); background:var(--blue-wash) }
.empty-icon { margin:0 auto .8rem }
.empty p { color:var(--muted); margin:.45rem auto 0; max-width:36ch }
.empty .button { margin-top:1rem }
.modal { width:min(calc(100% - 1.25rem),640px); color:var(--ink); border:1px solid var(--line); border-radius:16px; padding:1rem; max-height:calc(100svh - 2rem); overflow:auto }
.modal::backdrop { background:#101b3680 }
.modal-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:.8rem }
.modal form,.edit-form,.auth form { display:grid; gap:1rem }
.modal form>.button,.edit-form>.button,.auth form>.button { justify-self:start; min-width:9rem }
.import-list { display:grid; gap:.75rem; margin:1rem 0 }
.import-item { border:1px solid var(--line); border-radius:var(--radius); padding:.8rem; display:grid; gap:.65rem }
.import-item legend { font-size:.9rem; padding:0 .35rem; font-weight:650 }
.import-item .note { overflow-wrap:anywhere }
.import-url { color:var(--muted); font-size:.78rem; overflow-wrap:anywhere }
.product-edit-preview,.photo-control { display:flex; align-items:center; flex-wrap:wrap; gap:.75rem }
.product-edit-preview p { color:var(--muted); font-size:.88rem }
.edit-form { padding:1rem }
.archive-form,.profile-links,.report-state { margin-top:1.1rem }
.link-row { padding:.9rem; display:grid; gap:.75rem }
.link-info,.link-actions,.report-actions,.profile-links { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem }
.link-info { gap:.75rem; flex-wrap:nowrap }
.section-heading { display:flex; align-items:center; justify-content:space-between; gap:.5rem; margin-top:1.2rem }
.section-heading a { font-size:.89rem }
.section-heading h2 span { color:var(--muted); margin-left:.15rem; font-size:.9rem }
.section-note { margin:.35rem 0 .85rem }
.selection { margin-top:.75rem; display:grid; gap:.55rem }
.select-row { display:flex; align-items:center; justify-content:space-between; padding:.35rem; gap:.2rem; background:#fff; border:1px solid var(--line); border-radius:11px }
.select-row:has(:checked) { border-color:#a9bef8; background:#fafdff }
.select-row label { display:flex; align-items:center; gap:.55rem; flex:1; min-width:0; min-height:56px; cursor:pointer; font-weight:650; line-height:1.22; font-size:.93rem; overflow-wrap:anywhere }
.select-row input { margin:0 0 0 .25rem; width:1.1rem; height:1.1rem; flex:none; accent-color:var(--blue) }
.select-row .thumb { width:40px; height:40px }
.order-buttons { display:flex; flex:none }
.order-buttons button { min-width:44px }
.select-row:not(:has(:checked)) .order-buttons { visibility:hidden }
.save-bar { position:sticky; z-index:2; bottom:0; background:var(--bg); padding:.72rem 0 1rem; margin-top:.4rem; border-top:1px solid var(--line) }
.save-bar .button { width:min(100%,24rem); margin-top:.15rem }
.report-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.75rem; margin-bottom:1rem }
.period select { padding-right:.45rem; font-size:.87rem }
.metrics { display:grid; grid-template-columns:1fr 1fr; gap:.8rem; margin-bottom:1rem }
.metrics div { display:flex; flex-direction:column; background:#eaf0fc; padding:.95rem; border-radius:var(--radius) }
.metrics strong { font-size:2rem; line-height:1.1; letter-spacing:-.04em; font-variant-numeric:tabular-nums }
.metrics span { margin-top:.3rem; color:#354768; font-size:.86rem }
.ranking { margin-top:1.3rem }
.rank-list { margin-top:.65rem }
.rank-list:empty::after { display:block; content:"Nenhum produto no período."; padding:.9rem }
.rank-list li { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:.7rem; align-items:center; padding:.65rem }
.rank-list .thumb { width:46px; height:46px }
.rank-list strong { font-size:.9rem; overflow-wrap:anywhere }
.rank-list li>span:last-child { font-variant-numeric:tabular-nums; font-weight:750; font-size:1.02rem }
meter { display:block; width:100%; height:.55rem; margin-top:.3rem; accent-color:var(--blue) }
meter::-webkit-meter-bar { background:#e1e8f6; border:0; border-radius:20px }
meter::-webkit-meter-optimum-value { background:var(--blue); border-radius:20px }
meter::-moz-meter-bar { background:var(--blue); border-radius:20px }
.themes { padding:0; margin:0; border:0; min-width:0 }
.themes legend { margin-bottom:.5rem; font-weight:650; font-size:.92rem }
.themes>div { display:flex; flex-wrap:wrap; gap:.55rem }
.swatch { position:relative; display:grid; width:45px; height:45px; place-items:center; cursor:pointer; border-radius:10px; background:var(--theme-cover); color:var(--theme-ink); border:1px solid #aeb9ca }
.swatch input { position:absolute; opacity:0; width:100%; height:100%; margin:0; cursor:pointer }
.swatch span { visibility:hidden }
.swatch:has(:checked) { outline:2px solid var(--theme-accent); outline-offset:2px }
.swatch:has(:checked) span { visibility:visible }
.swatch:has(:focus-visible) { outline:3px dashed var(--theme-accent); outline-offset:3px }
.photo-control label { position:relative; cursor:pointer }
.photo-control label:focus-within { outline:3px solid #3669ef; outline-offset:3px }
.plan-card { background:#e6efff; border-radius:var(--radius); padding:1.3rem; width:min(100%,30rem) }
.plan-price { font-size:2.6rem; font-weight:800; letter-spacing:-.045em; line-height:1.1; margin:.7rem 0 1rem }
.plan-price small,.home-plan small { font-size:.98rem; font-weight:650; letter-spacing:0 }
.plan-card ul { display:grid; gap:.45rem; font-size:.94rem; margin:0 0 1rem }
.plan-card li { display:flex; align-items:center; gap:.6rem }
.plan-card li svg { color:var(--blue-dark) }
.plan-card form .button { margin-top:.7rem; width:100% }
.provider { width:min(100%,30rem); color:var(--muted); text-align:center; margin-top:.7rem; font-size:.85rem }
.site-header { background:var(--paper); border-bottom:1px solid var(--line) }
.site-wrap { width:min(100% - 2.5rem,1120px); margin-inline:auto }
.site-header .site-wrap,.site-footer .site-wrap { min-height:71px; display:flex; align-items:center; justify-content:space-between; gap:.7rem }
.site-header nav { display:flex; align-items:center; gap:1rem }
.site-header nav>a:not(.button),.site-footer a:not(.brand) { font-size:.9rem; font-weight:650; text-decoration:none; color:var(--muted) }
.hero { display:grid; grid-template-columns:1fr minmax(270px,.78fr); gap:clamp(2rem,8vw,7rem); align-items:center; padding:clamp(2.4rem,8vw,6rem) 0 }
.hero h1 { font-size:clamp(2.65rem,calc(1.8rem + 4vw),5rem); line-height:1.01; letter-spacing:-.04em }
.hero-copy p { max-width:38ch; color:var(--muted); margin-top:1.05rem; font-size:clamp(1.02rem,calc(.95rem + .35vw),1.24rem) }
.hero-actions { display:flex; flex-wrap:wrap; gap:.6rem; margin-top:1.45rem }
.hero-sample { background:#fff; border:1px solid #c6d4f2; border-radius:17px; overflow:hidden; box-shadow:0 12px 35px #28418c18 }
.sample-browser { display:flex; align-items:center; gap:.3rem; padding:.65rem .8rem; border-bottom:1px solid #d4e2fc }
.sample-browser span { width:.42rem; height:.42rem; border-radius:50%; background:#a8bce9 }
.sample-browser a { margin-left:auto; color:var(--muted); font-size:.76rem; text-decoration:none }
.sample-person { display:flex; align-items:center; gap:.8rem; background:#dceaff; padding:.85rem }
.sample-person .avatar { width:53px; height:53px; font-size:1rem }
.sample-person div { display:grid; gap:.18rem }
.sample-person div span { color:#38557b; font-size:.8rem }
.sample-list { padding:.85rem }
.sample-list h2 { margin:.15rem 0 .5rem }
.sample-row { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:.7rem; border-top:1px solid var(--line); padding:.5rem 0; font-size:.86rem }
.sample-row .thumb { width:50px; height:43px }
.sample-row>span:last-child { color:var(--blue) }
.how { padding:2.3rem 0; border-top:1px solid var(--line) }
.how>h2 { font-size:clamp(1.45rem,2.2vw,2rem); margin-bottom:1rem }
.how>div { display:grid; grid-template-columns:repeat(3,1fr); gap:1.3rem }
.how article svg { color:var(--blue); margin:.2rem 0 .6rem }
.how h3 { font-size:1.08rem }
.how article p { color:var(--muted); margin-top:.35rem; font-size:.95rem }
.home-plan { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:1rem; background:#e6efff; padding:1.25rem; border-radius:var(--radius); margin:0 0 2.5rem }
.home-plan div:first-child p { margin-top:.35rem; color:var(--muted) }
.home-plan div:last-child { display:flex; flex-wrap:wrap; gap:.6rem; align-items:center }
.home-plan strong { font-size:1.5rem; letter-spacing:-.03em }
.site-footer { border-top:1px solid var(--line); background:#fff }
.guest-header { width:min(100% - 2rem,700px); margin:2rem auto 1rem }
.auth,.legal { width:min(100% - 2rem,460px); margin:0 auto 2rem; padding:1.25rem }
.auth h1,.legal h1 { font-size:1.8rem }
.auth>p { margin:.65rem 0 1.15rem; color:var(--muted) }
.auth-footer { border-top:1px solid var(--line); margin-top:1.2rem; padding-top:.85rem; display:flex; gap:.4rem; flex-wrap:wrap; color:var(--muted); font-size:.91rem }
.auth-footer>a:last-child:not(:first-child) { margin-left:auto }
.legal { width:min(100% - 2rem,700px) }
.legal h2 { margin:1.1rem 0 .35rem }
.legal p { color:var(--muted) }

.theme-azul { --theme-cover:#dceeff;--theme-accent:#1446d7;--theme-ink:#101d39 }
.theme-lilas { --theme-cover:#efe5ff;--theme-accent:#6130a0;--theme-ink:#211037 }
.theme-pessego { --theme-cover:#ffebdb;--theme-accent:#933c20;--theme-ink:#311c17 }
.theme-verde { --theme-cover:#dff3e6;--theme-accent:#195f47;--theme-ink:#132d24 }
.theme-rosa { --theme-cover:#fce5ef;--theme-accent:#a02e5c;--theme-ink:#39162a }
.public-body { background:#eef2f9 }
.storefront { width:min(100%,620px); margin:auto; min-height:100svh; display:flex; flex-direction:column; background:white; color:var(--theme-ink); overflow:hidden }
.shop-cover { padding:1.5rem 1.1rem 2rem; text-align:center; background:var(--theme-cover) }
.shop-cover .avatar { width:91px; height:91px; margin:0 auto .65rem; background:#fff; color:var(--theme-ink) }
.shop-cover :is(h1,p) { font-size:1.57rem; font-weight:800; letter-spacing:-.035em; overflow-wrap:anywhere }
.socials { display:flex; flex-wrap:wrap; justify-content:center; gap:.18rem .7rem; margin-top:.1rem }
.socials a { display:inline-flex; align-items:center; gap:.25rem; min-height:44px; color:var(--theme-ink); font-size:.84rem; text-decoration:none }
.socials a:hover { text-decoration:underline }
.shop-content { flex:1; margin-top:-.8rem; position:relative; border-radius:20px 20px 0 0; padding:1.05rem 1rem 1.3rem; background:#fff }
.shop-content>h1 { font-size:1.57rem; text-align:center; margin:0 0 .8rem; overflow-wrap:anywhere }
.shop-row { display:grid; grid-template-columns:minmax(82px,27%) 1fr; gap:.8rem; align-items:center; padding:.75rem 0 }
.shop-row+.shop-row { border-top:1px solid #dce3ed }
.shop-row .thumb { width:100%; height:auto; aspect-ratio:1.08; background:var(--theme-cover); color:var(--theme-accent) }
.shop-row h2 { font-size:1rem; overflow-wrap:anywhere }
.shop-row p { font-size:.85rem; margin-top:.26rem; overflow-wrap:anywhere; color:#4c5a72 }
.storefront-button { margin-top:.52rem; background:var(--theme-accent); font-size:.88rem; min-height:44px }
.storefront-button:hover { background:var(--theme-ink) }
.shop-disclosure { font-size:.81rem; color:#4c5a72; margin-top:1rem }
.shop-footer { padding:.9rem 1rem; text-align:center; background:#eef2f9; color:#43516c; font-size:.84rem }
.shop-footer a { color:inherit; text-decoration:none }
.shop-footer a:hover { text-decoration:underline }
.shop-links { display:grid; gap:.6rem }
.shop-links a { display:flex; align-items:center; gap:.65rem; padding:.65rem .85rem; border:1px solid var(--line); border-radius:10px; color:var(--theme-ink); text-decoration:none; min-height:46px }
.shop-links a span { flex:1; overflow-wrap:anywhere }
.shop-links a:hover { background:var(--theme-cover) }
.all-selections { display:inline-flex; align-items:center; min-height:44px; margin-top:.35rem; color:var(--theme-accent); font-size:.88rem }
.demo-buy { display:inline-flex; margin-top:.4rem; align-items:center; border-radius:8px; min-height:36px; padding:.4rem .72rem; background:var(--blue-wash); color:var(--blue-dark); font-size:.85rem }
.publish-dialog .button { width:100%; margin-top:.75rem }

@media (max-width:700px) {
  .workspace { display:block }
  .workspace-bar { min-height:57px; padding:.65rem 1rem }
  .workspace-nav { position:fixed; inset:auto 0 0; z-index:4; display:grid; grid-template-columns:repeat(3,1fr); min-height:0; padding:.18rem .5rem max(.25rem,env(safe-area-inset-bottom)); gap:.2rem; border:0; border-top:1px solid var(--line) }
  .workspace-nav a { flex-direction:column; justify-content:center; min-height:54px; gap:.2rem; padding:.3rem .4rem; font-size:.79rem }
  .dashboard { padding:1.35rem 1rem calc(5.7rem + env(safe-area-inset-bottom)); width:min(100%,640px) }
  .save-bar { bottom:calc(3.65rem + env(safe-area-inset-bottom)); }
  .save-bar .button,.edit-form>.button { width:100% }
  .toast { bottom:calc(4.5rem + env(safe-area-inset-bottom)) }
}
@media (max-width:599px) {
  .site-wrap { width:calc(100% - 2rem) }
  .site-header .site-wrap,.site-footer .site-wrap { min-height:64px }
  .site-header nav { gap:.6rem }
  .site-header nav .button { display:none }
  .hero { grid-template-columns:1fr; gap:1.6rem; padding-top:2.2rem }
  .hero-copy p { margin-top:.8rem }
  .how>div { grid-template-columns:1fr; gap:1rem }
  .how article { border-top:1px solid var(--line); padding-top:.65rem }
}
@media (max-width:355px) {
  .dashboard { padding-inline:.65rem }
  .product-tools { grid-template-columns:1fr }
  .thumb { width:56px; height:56px }
  .order-buttons button { min-width:36px }
  .shop-row { gap:.55rem }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { transition:none!important; scroll-behavior:auto!important }
}
