/* Fênix — estilos consolidados.
 * Base, componentes e adaptações mantêm a ordem necessária da cascata.
 * Login e prévia compartilham esta folha; preserve seus escopos.
 */

/* Base compartilhada e estrutura */
:root { font-family: Inter,"Segoe UI",Arial,sans-serif; color: #193a3c; background: #f5f7fb; font-synthesis: none; --accent: #087f75; --muted: #71817e; --line: #e3eae6; --surface: #fff; --ink: #193a3c; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { touch-action: manipulation; }
a { color: var(--accent); text-underline-offset: 4px; touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .6; }
[hidden] { display: none !important; }
h1 { margin-top: 0; font-size: 34px; line-height: 1.18; letter-spacing: -1.25px; font-weight: 650; }
h2 { margin-top: 0; font-size: 20px; letter-spacing: -.45px; font-weight: 600; }
h3 { margin-top: 0; font-size: 15px; font-weight: 600; }
p { margin-top: 0; line-height: 1.6; }
small { font-size: 12.5px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #40a594; outline-offset: 3px; }
.muted { color: var(--muted); font-size: 14px; }
.eyebrow { display: block; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 1.7px; margin: 0 0 15px; }
.wordmark { display: flex; align-items: center; font-size: 37px; letter-spacing: -2px; line-height: 1; font-weight: 750; text-decoration: none; color: var(--ink); }
.wordmark>span:first-child { color: var(--accent); }
.wordmark-label { font-size: 11.5px !important; letter-spacing: 2px !important; font-weight: 550; border-left: 1px solid #b5c9c1; margin-left: 15px; padding: 8px 0 8px 15px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; border: 1px solid var(--line); border-radius: 8px; padding: 12px 18px; min-height: 44px; font-weight: 600; font-size: 13.5px; background: white; text-decoration: none; color: var(--ink); white-space: nowrap; }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fcfeff; }
.button:hover { filter: brightness(.96); }
.text-button { background: none; border: none; padding: 8px; }
.text-link { font-size: 13.5px; }
.badge { white-space: nowrap; }
.message { font-size: 14px; border: 1px solid #e6cabe; padding: 13px 16px; color: #8b4934; background: #fff6f2; border-radius: 8px; margin-bottom: 22px; }
.message.success { background: #eaf6ef; border-color: #c4e1d0; color: #286548; }
.skip-link { position: fixed; z-index: 9; left: 15px; top: 10px; background: white; padding: 12px; transform: translateY(-180%); clip-path: inset(50%); }
.skip-link:focus { transform: translateY(0); clip-path: none; }
.app-shell { display: grid; min-height: 100vh; }
.sidebar { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.sidebar .wordmark { padding: 0 8px; }
.workspace-label { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.workspace-label small { display: block; margin-top: 5px; font-weight: 400; }
.workspace-avatar { display: grid; place-items: center; font-size: 17px; }
.nav-item { display: flex; align-items: center; width: 100%; text-align: left; background: none; border: 0; text-decoration: none; }
.nav-item>span { width: 21px; }
.sidebar-bottom { margin-top: auto; padding-top: 30px; }
.dot { width: 5px; height: 5px; display: inline-block; background: #79a56a; border-radius: 50%; margin-right: 4px; }
.external { font-size: 12px; padding: 17px 0; }
.external span { margin-left: auto; font-size: 16px; width: auto; }
.main-shell { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.topbar #breadcrumb { color: #5b6577; }
.topbar #breadcrumb span { padding: 0 10px; color: #5b6577; }
.account { display: flex; align-items: center; }
.account .badge { font-size: 11px; }
#workspace { flex: 1; width: 100%; margin: 0 auto; outline: none; }
.app-footer { display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); }
.app-footer span:first-child { font-weight: 600; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.page-heading h1 { margin: 0 0 9px; }
.page-heading p { margin: 0; }
.hero { position: relative; border-radius: 14px; background: #e9f2ea; padding: 32px 34px; margin-bottom: 25px; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.hero h1 { font-size: 31px; max-width: 420px; margin-bottom: 15px; }
.hero p { max-width: 430px; font-size: 13.5px; color: #5b6577; margin-bottom: 24px; }
.hero-symbol { font-family: Georgia,serif; font-size: 120px; color: #7c8698; line-height: 1; padding: 0 25px; transform: rotate(-10deg); }
.stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; margin-bottom: 30px; }
.stat { background: #fcfeff; border: 1px solid var(--line); border-radius: 10px; padding: 21px 23px; }
.stat-label { display: flex; justify-content: space-between; color: #5b6577; font-size: 12.5px; }
.stat strong { display: block; font-size: 32px; font-weight: 550; letter-spacing: -1px; margin: 17px 0 5px; }
.stat small { color: #5b6577; }
.section-row { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin: 29px 0 15px; }
.section-row h2 { margin: 0; }
.steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid var(--line); border-radius: 10px; background: #fcfeff; overflow: hidden; }
.step { padding: 24px; position: relative; }
.step+.step { border-left: 1px solid var(--line); }
.step h3 { margin-bottom: 10px; }
.step p { font-size: 12.5px; color: var(--muted); min-height: 50px; }
.step .text-button { padding: 5px 0; }
.roadmap { display: flex; gap: 18px; align-items: start; margin-top: 27px; background: #eff1f5; border-radius: 9px; padding: 21px 23px; }
.roadmap p { font-size: 12.5px; color: #5b6577; margin: 0; }
.roadmap strong { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.panel { overflow: hidden; }
.table-wrap { overflow: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 13.5px; }
th { font-size: 11.5px; letter-spacing: .8px; color: #5b6577; font-weight: 550; background: #fcfdfb; padding: 14px 24px; white-space: nowrap; }
td { padding: 20px 24px; border-top: 1px solid #edeff3; vertical-align: middle; }
td strong { font-size: 13.5px; font-weight: 550; }
td small { display: block; color: #5b6577; margin-top: 6px; }
td .button { padding: 8px 13px; min-height: 34px; font-size: 12px; }
.empty { text-align: center; }
.empty-mark { font-size: 32px; }
.empty p { margin: 0 auto 20px; }
.editor-layout { display: grid; gap: 25px; align-items: start; }
.editor-layout.product-editor { grid-template-columns: minmax(0,720px); }
.form-panel h2 { font-size: 15px; margin-bottom: 23px; }
.form-panel label { display: flex; flex-direction: column; gap: 8px; margin-bottom: 21px; }
.login-card label { font-size: 12.5px; font-weight: 600; display: flex; flex-direction: column; gap: 8px; margin-bottom: 21px; }
input, select { touch-action: manipulation; min-width: 0; max-width: 100%; width: 100%; padding: 11px 12px; border: 1px solid #dfe1e5; border-radius: 6px; background: #fcfeff; color: var(--ink); font-size: 13.5px; line-height: 1.4; min-height: 43px; }
textarea { touch-action: manipulation; min-width: 0; max-width: 100%; width: 100%; padding: 11px 12px; border: 1px solid #dfe1e5; border-radius: 6px; background: #fcfeff; color: var(--ink); font-size: 13.5px; line-height: 1.4; resize: vertical; min-height: 100px; }
input::placeholder, textarea::placeholder { color: #5b6577; font-weight: 400; }
input[type=color] { padding: 5px; width: 65px; cursor: pointer; }
input:disabled, select:disabled { background: #f2f4f8; color: #5b6577; }
label small { font-size: 12px; color: #5b6577; font-weight: 400; line-height: 1.5; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-actions { display: flex; align-items: center; gap: 15px; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 4px; }
.form-note { margin: 0 0 22px; }
.preview-side { position: sticky; top: 20px; }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 17px; background: #fff; border: 1px solid var(--line); border-radius: 10px 10px 0 0; font-size: 12px; }
.preview-toolbar strong { font-weight: 600; }
.preview-side iframe { width: 100%; height: 660px; border: 1px solid var(--line); border-top: 0; background: #f6f8f7; border-radius: 0 0 10px 10px; }
.inline-info { margin-top: 15px; }
.security-card { max-width: 640px; }
.loading { padding: 40px; text-align: center; font-size: 14px; color: #5b6577; }
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-card { padding: 70px 10vw; align-self: center; max-width: 700px; }
.login-card .wordmark { margin-bottom: 75px; }
.login-card h1 { font-size: 37px; line-height: 1.2; margin-bottom: 20px; }
.login-card>.muted { margin-bottom: 29px; }
.login-card .button { width: 100%; justify-content: space-between; }
.login-footnote { font-size: 12px; color: #5b6577; margin: 24px 0; }
.login-art { min-height: 100vh; position: relative; background: #193d37; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 70px; }
.art-grid { position: absolute; inset: 0; background-image: linear-gradient(#dde9dd08 1px,transparent 1px),linear-gradient(90deg,#dde9dd08 1px,transparent 1px); background-size: 55px 55px; }
.art-word { font-size: clamp(36px,4.5vw,75px); line-height: 1.05; letter-spacing: -2px; color: #d6e2cf; font-weight: 450; z-index: 1; }
.art-word em { font-family: Georgia,serif; font-weight: 400; color: #abc8ab; }
.login-art>span { position: absolute; bottom: 65px; color: #83a390; font-size: 11.5px; letter-spacing: 2px; }
@media (max-width:1150px) {
  .hero-symbol { font-size: 90px; padding: 0 8px; }
  .preview-side { position: static; }
  .preview-side iframe { height: 620px; }
  .login-card { padding: 55px 8vw; }
  .login-art { padding: 45px; }
}
@media (max-width:760px) {
  .sidebar .wordmark { font-size: 30px; padding: 0 5px; }
  .workspace-label, .nav-label, .sidebar-bottom { display: none; }
  .sidebar nav { margin-top: 17px; padding-bottom: 3px; }
  .nav-item { width: auto; white-space: nowrap; }
  .nav-item>span { width: 14px; }
  .account .badge { display: none; }
  .hero { padding: 25px; min-height: 280px; }
  .hero h1 { font-size: 29px; max-width: 280px; }
  .hero-symbol { display: none; }
  .stats { gap: 9px; margin-bottom: 23px; }
  .stat { padding: 15px 12px; }
  .stat strong { font-size: 26px; }
  .stat-label { font-size: 12px; }
  .stat small { font-size: 11.5px; }
  .steps { grid-template-columns: 1fr; }
  .step+.step { border-left: 0; border-top: 1px solid var(--line); }
  .step { padding: 22px; }
  .step p { min-height: 0; margin-bottom: 10px; }
  .step h3 { margin-top: 3px; }
  .roadmap { display: block; padding: 19px; }
  .roadmap strong { display: block; margin-bottom: 10px; }
  .page-heading .button { gap: 7px; }
  th, td { padding: 15px 18px; }
  .app-footer span:last-child { max-width: 170px; text-align: right; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-actions { flex-wrap: wrap; }
  .login-page { display: block; }
  .login-art { display: none; }
  .login-card { padding: 40px 28px; max-width: 500px; margin: auto; }
  .login-card .wordmark { margin-bottom: 70px; }
  .login-card h1 { font-size: 34px; }
}

/* Catálogo, publicação e etapas opcionais */
.sidebar { overflow-y: auto; }
.row-actions { display: flex; align-items: center; flex-wrap: wrap; }
.spaced-title { margin-top: 20px; }
.funnel-guide { margin-bottom: 22px; }
.funnel-guide ol { padding-left: 19px; font-size: 13.5px; line-height: 1.9; }
.funnel-list { display: grid; gap: 18px; }
.funnel-list .section-row { margin: 0 0 20px; }
.funnel-stages { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-bottom: 22px; }
.funnel-stages>div { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: #f5f8f4; border: 1px solid var(--line); border-radius: 8px; font-size: 13.5px; overflow-wrap: anywhere; }
.funnel-stages small { color: var(--muted); font-size: 12px; }
.funnel-fields { border: 1px solid var(--line); border-radius: 8px; padding: 18px; margin: 0 0 23px; background: #fbfcfa; }
.funnel-fields legend { font-size: 13.5px; font-weight: 650; padding: 0 7px; }
.funnel-fields>p { font-size: 12.5px; line-height: 1.65; color: #5b6577; }
.funnel-fields>small { font-size: 12.5px; line-height: 1.65; color: #5b6577; display: block; }
.funnel-fields label:last-of-type { margin-bottom: 12px; }
.preview-controls { display: flex; flex-wrap: wrap; justify-content: space-between; margin: 5px 0 15px; }
.publication-panel { padding: 22px; }
.publication-current { border-bottom: 1px solid var(--line); padding: 0 0 20px; margin-bottom: 20px; }
.publication-current p { font-size: 12.5px; color: var(--muted); margin: 12px 0; }
.publication-current small { display: block; color: var(--muted); margin-top: 14px; }
.publication-current .button { font-size: 12px; padding: 9px 12px; }
.review-summary { margin-top: 24px; }
.review-summary>p { font-size: 12.5px; color: var(--muted); }
.review-summary h3 { font-size: 14px; }
.review-item { display: grid; padding: 13px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.review-item strong { font-weight: 600; }
input[readonly] { background: #f3f5f9; color: #5b6577; }
@media (max-width:760px) {
  .funnel-stages { grid-template-columns: 1fr; }
  .funnel-list .section-row { align-items: start; flex-wrap: wrap; }
  .funnel-fields { padding: 14px; }
  .publication-panel { padding: 20px; }
}

/* Estrutura da prévia privada */
.preview-page { --accent: #087f75; --accent-ink: #fff; --accent-text: #087f75; }
.preview-banner { padding: 10px 18px; background: #e6f2ec; color: #35634f; border-bottom: 1px solid #d4e6dd; font-size: 11.5px; text-align: center; line-height: 1.6; letter-spacing: .4px; }
.checkout-preview { max-width: 784px; margin: auto; padding: 24px 32px 32px; }
.preview-stack { display: grid; gap: 20px; }
.preview-card { border: 1px solid #e5e9e7; border-radius: 13px; background: #fff; padding: 26px; box-shadow: 0 2px 5px #25392d03; min-width: 0; }
.preview-country { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.preview-country .preview-field { width: 60%; max-width: 255px; }
.preview-country .preview-field>div { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.preview-country .preview-field>div>span { margin: 0; font-size: 14px; }
.preview-product-heading { display: flex; align-items: center; gap: 15px; margin-bottom: 14px; }
.preview-product-heading>div:last-child { min-width: 0; }
.preview-product-heading .eyebrow { font-size: 11.5px; letter-spacing: 1.2px; color: var(--accent-text); margin: 0; }
.preview-product-heading h1 { font-size: 17px; line-height: 1.4; margin: 4px 0; font-weight: 620; letter-spacing: -.2px; overflow-wrap: anywhere; }
.preview-product-price { display: block; font-size: 25px; line-height: 1.4; font-weight: 750; letter-spacing: -.6px; }
.preview-features { list-style: none; display: flex; flex-wrap: wrap; gap: 7px 16px; margin: 0 0 23px; padding: 0 0 22px; border-bottom: 1px solid #e5e9e7; }
.preview-features:empty { padding-bottom: 8px; }
.preview-features li { display: flex; align-items: flex-start; gap: 7px; font-size: 12.5px; color: #576d61; line-height: 1.6; overflow-wrap: anywhere; }
.preview-features li:before { content: "✓"; color: var(--accent-text); }
.preview-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.preview-section-title h3 { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 650; margin: 0; }
.preview-hint { font-size: 12.5px; line-height: 1.65; color: #697773; margin: 0 0 14px; }
.preview-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.preview-field { min-width: 0; }
.preview-field>span { display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 8px; }
.preview-field>div { min-height: 45px; border: 1px solid #dce2de; border-radius: 6px; background: #fff; color: #5b6577; font-size: 13.5px; padding: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.preview-card-label { font-size: 12px; color: #516259; padding: 6px 10px; border-radius: 20px; background: #f2f5f3; }
.preview-payment { display: flex; align-items: center; gap: 14px; border: 1px solid #dfe7e2; border-radius: 9px; padding: 20px; background: #fbfdfb; }
.preview-card-icon { font-size: 33px; color: var(--accent-text); }
.preview-payment strong { font-size: 14px; font-weight: 600; }
.preview-payment p { font-size: 12.5px; line-height: 1.6; color: #697773; margin: 6px 0 0; }
.preview-demo-pill { align-self: flex-start; font-size: 11px; letter-spacing: .8px; border: 1px solid #d9e7df; padding: 4px 5px; border-radius: 4px; color: #5b6577; }
.preview-checkbox { display: block; flex-shrink: 0; width: 18px; height: 18px; border: 1px solid #b7c6bf; border-radius: 4px; background: #fff; margin-top: 1px; }
.preview-addon { display: flex; flex-wrap: wrap; gap: 11px; align-items: flex-start; border: 1px solid #afd5bd; border-radius: 8px; background: #f1f9f2; padding: 16px; margin-bottom: 21px; }
.preview-addon-copy { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.preview-addon .eyebrow { font-size: 11px; letter-spacing: .45px; color: #467250; margin: 0 0 7px; }
.preview-addon h3 { font-size: 13.5px; line-height: 1.5; margin: 0 0 7px; }
.preview-addon p { font-size: 12.5px; color: #5b6577; line-height: 1.6; margin: 0; white-space: pre-line; }
.preview-addon>strong { font-size: 14px; white-space: nowrap; margin-top: 18px; color: #2c6843; }
.preview-addon>small { flex-basis: 100%; font-size: 12px; color: #5b6577; margin-left: 29px; line-height: 1.6; }
.preview-summary-line { display: flex; justify-content: space-between; gap: 20px; margin: 14px 0; font-size: 13.5px; color: #657469; }
.preview-summary-line>span { min-width: 0; line-height: 1.5; overflow-wrap: anywhere; }
.preview-summary-line>strong { white-space: nowrap; color: #202b29; font-weight: 550; }
.preview-total { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #e5e9e7; padding-top: 18px; margin: 18px 0 14px; gap: 14px; font-size: 14px; font-weight: 650; }
.preview-total small { display: block; font-size: 12px; font-weight: 400; color: #697773; margin-top: 5px; }
.preview-total strong { font-size: 26px; letter-spacing: -.6px; font-weight: 750; white-space: nowrap; }
.preview-currency { font-size: 12px; color: #697773; text-align: right; margin: 0 0 23px; line-height: 1.5; }
.preview-terms { color: #697773; margin: 20px 0; }
.preview-cta { background: var(--accent); color: var(--accent-ink); min-height: 49px; padding: 13px 18px; border: 1px solid transparent; border-radius: 7px; text-align: center; font-size: 14px; font-weight: 650; line-height: 1.6; overflow-wrap: anywhere; }
.preview-disclaimer { font-size: 12px; line-height: 1.5; color: #5b6577; text-align: center; margin: 13px 0 0; }
.preview-next-step { display: flex; align-items: center; gap: 15px; font-size: 11.5px; letter-spacing: .9px; color: #697773; text-align: center; margin: 40px 0 25px; line-height: 1.6; }
.preview-next-step:before, .preview-next-step:after { content: ""; height: 1px; flex: 1; background: #d9e3dd; }
.preview-upsell { max-width: 510px; margin: 0 auto; text-align: center; overflow-wrap: anywhere; }
.preview-upsell>.eyebrow { color: var(--accent-text); font-size: 11.5px; margin-bottom: 14px; }
.preview-upsell h2 { font-size: 29px; letter-spacing: -.8px; line-height: 1.25; margin: 13px 0 17px; }
.preview-upsell p { font-size: 13.5px; line-height: 1.8; color: #697773; white-space: pre-line; }
.preview-upsell-art { width: 82px; height: 82px; border-radius: 18px; background: #e1f0e6; color: var(--accent-text); font-size: 54px; font-weight: 250; display: grid; place-items: center; margin: 25px auto; transform: rotate(-6deg); }
.preview-upsell .preview-features { display: grid; max-width: 390px; text-align: left; margin: 0 auto 25px; border: 0; padding: 0; }
.preview-upsell-price { display: grid; gap: 8px; border: 1px solid #e5e9e7; border-radius: 12px; background: white; padding: 23px; margin-bottom: 20px; font-size: 12.5px; color: #697773; }
.upsell-price { display: block; font-size: 33px; letter-spacing: -1px; color: #26282c; }
.preview-upsell-price small { font-size: 12px; }
.preview-upsell .preview-decline { font-size: 13.5px; margin: 18px 0 0; text-decoration: underline; text-underline-offset: 3px; }
.preview-legal { border-top: 1px solid #e5e9e7; margin-top: 35px; padding-top: 24px; font-size: 12px; color: #5b6577; line-height: 1.7; }
.preview-legal p { margin-bottom: 8px; overflow-wrap: anywhere; }
@media (max-width:600px) {
  .checkout-preview { padding: 19px 16px 28px; }
  .preview-stack { gap: 16px; }
  .preview-card { padding: 20px 17px; border-radius: 11px; }
  .preview-country .preview-field { width: 65%; }
  .preview-product-heading { gap: 12px; }
  .preview-product-heading h1 { font-size: 16px; }
  .preview-product-price { font-size: 24px; }
  .preview-field-grid { grid-template-columns: 1fr; }
  .preview-payment { padding: 17px 13px; gap: 10px; }
  .preview-card-icon { display: none; }
  .preview-demo-pill { font-size: 11px; }
  .preview-addon { padding: 15px 12px; gap: 10px; }
  .preview-addon-copy { flex-basis: calc(100% - 30px); }
  .preview-addon>strong { margin: 0 0 0 28px; }
  .preview-total strong { font-size: 25px; }
  .preview-cta { min-height: 51px; }
  .preview-upsell h2 { font-size: 27px; }
  .preview-features li { font-size: 12.5px; }
}

/* Cadastro e integração direta do produtor */
.auth-switch { font-size: 13.5px; color: #5b6577; line-height: 1.8; margin: 22px 0 18px; }
.auth-switch .text-link { margin-left: 4px; }
.registration-page .login-card { padding-top: 38px; padding-bottom: 38px; }
.registration-page .login-card .wordmark { margin-bottom: 35px; }
.registration-page .login-card h1 { font-size: 31px; max-width: 390px; }
.registration-page .login-card>.muted { margin-bottom: 24px; }
.registration-page .login-card label { margin-bottom: 18px; }
.registration-page .login-footnote { line-height: 1.8; margin: 18px 0; }
.login-card small { display: block; font-size: 12px; line-height: 1.65; font-weight: 400; color: #5b6577; }
.workspace-label>div { min-width: 0; }
#workspace-name { display: block; overflow-wrap: anywhere; }
.connection-layout { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(260px,.8fr); gap: 22px; align-items: start; }
.connection-layout .form-panel { min-width: 0; }
.connection-layout h2 { font-size: 21px; margin-bottom: 12px; }
.connection-layout .form-note { margin-top: 16px; }
.connection-meta { display: grid; gap: 12px; margin: 20px 0 24px; padding: 17px; background: #f5f8f4; border: 1px solid var(--line); border-radius: 9px; }
.connection-meta>div { display: flex; gap: 15px; justify-content: space-between; font-size: 12.5px; line-height: 1.7; }
.connection-meta dt { color: #5b6577; }
.connection-meta dd { margin: 0; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.connection-status { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.connection-status small { font-size: 12.5px; color: #5b6577; }
.connection-guide ol { padding-left: 19px; margin: 20px 0; font-size: 13.5px; line-height: 1.9; }
.connection-guide li+li { margin-top: 14px; }
.connection-guide p { font-size: 13.5px; line-height: 1.8; }
.connection-guide a { color: #3a7564; text-underline-offset: 3px; }
.connection-onboarding { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; padding: 20px 24px; }
.connection-onboarding>div { min-width: 0; }
.connection-onboarding h2 { font-size: 17px; margin-bottom: 8px; }
.connection-onboarding p { font-size: 13.5px; line-height: 1.75; color: #5b6577; margin: 0; }
.connection-onboarding .button { flex-shrink: 0; }
#whop-connect-form input[type=password] { font-family: ui-monospace,monospace; font-size: 14px; }
#whop-connect-form input[type=password]::placeholder { font-family: inherit; }
#whop-account-id { font-family: ui-monospace,monospace; }
@media (max-width:1150px) {
  .connection-layout { grid-template-columns: minmax(0,1fr); }
}
@media (max-width:760px) {
  .registration-page .login-card { padding: 32px 25px; }
  .registration-page .login-card .wordmark { margin-bottom: 35px; }
  .registration-page .login-card h1 { font-size: 29px; }
  .connection-onboarding { display: block; padding: 20px; }
  .connection-onboarding .button { margin-top: 16px; }
  .connection-meta>div { flex-direction: column; gap: 3px; }
  .connection-meta dd { text-align: left; }
  .connection-layout .form-panel { padding: 21px; }
  .connection-layout h2 { font-size: 20px; }
  .connection-status { align-items: start; }
  .connection-guide ol { padding-left: 17px; }
}

/* Matriz, parceiros e resultados por moeda */
.catalog-filter { display: flex; justify-content: flex-end; margin: -7px 0 23px; }
.catalog-filter label { min-width: 260px; max-width: 100%; margin: 0; font-size: 12.5px; }
.catalog-filter select { margin-top: 7px; }
.ownership-note { margin: 0 0 23px; }
.ownership-note p { margin: 7px 0 0; }
.subaccount-explanation { padding: 24px 28px; margin-bottom: 27px; }
.subaccount-explanation h2 { font-size: 18px; margin: 0 0 10px; }
.subaccount-explanation p { font-size: 13.5px; line-height: 1.8; color: var(--muted); max-width: 850px; margin: 0; }
.subaccount-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-bottom: 21px; }
.subaccount-card { padding: 25px; min-width: 0; }
.subaccount-card .section-row { margin: 0 0 17px; gap: 12px; align-items: start; }
.subaccount-card h2 { font-size: 18px; line-height: 1.4; overflow-wrap: anywhere; margin: 0; }
.subaccount-card p { font-size: 13.5px; color: var(--muted); margin: 0 0 8px; }
.subaccount-card>small { font-size: 12px; color: #5b6577; }
.subaccount-card .row-actions { margin-top: 24px; }
.subaccount-card .button { font-size: 12px; padding: 10px 12px; }
.subaccount-status-action { margin-top: 17px; font-size: 12px; }
.invite-result { margin: 25px 0; padding: 26px; border-color: #b9d4c2; }
.invite-result h2 { font-size: 23px; margin: 12px 0; overflow-wrap: anywhere; }
.invite-result p { font-size: 13.5px; line-height: 1.75; color: var(--muted); max-width: 660px; }
.invite-result label { margin-top: 20px; }
.invite-result input { font-family: ui-monospace,monospace; font-size: 12.5px; }
.invite-result .row-actions small { font-size: 12px; color: #5b6577; }
.invite-summary { padding: 20px; border: 1px solid #e1e3e7; background: #f4f8f3; border-radius: 10px; margin: 0 0 24px; }
.invite-summary h2 { font-size: 20px; line-height: 1.4; overflow-wrap: anywhere; margin: 12px 0; }
.invite-summary p { font-size: 12.5px; line-height: 1.8; color: #5b6577; margin: 8px 0; }
.invite-summary .button { margin-top: 17px; justify-content: center; white-space: normal; }
.report-context { margin-bottom: 23px; }
.report-context h2 { font-size: 21px; margin: 15px 0 9px; overflow-wrap: anywhere; }
.report-context p { font-size: 12.5px; line-height: 1.75; color: #5b6577; margin: 0; max-width: 850px; }
@media (max-width:1150px) {
  .subaccount-grid { grid-template-columns: 1fr; }
}
@media (max-width:760px) {
  .catalog-filter { display: block; margin: 0 0 21px; }
  .catalog-filter label { min-width: 0; width: 100%; }
  .subaccount-explanation { padding: 21px; }
  .subaccount-card { padding: 22px; }
  .subaccount-card .section-row { flex-wrap: wrap; }
  .subaccount-card .row-actions { gap: 9px; }
  .subaccount-card .text-button { font-size: 12.5px; }
  .invite-result { padding: 21px; }
  .invite-result h2 { font-size: 21px; }
  .report-context h2 { font-size: 19px; }
  .invite-summary { padding: 18px; }
}
.upsell-embed { padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: #fcfeff; margin: 18px 0; }
.upsell-embed summary { font-size: 12.5px; line-height: 1.7; cursor: pointer; color: #43715d; }
.upsell-embed p { font-size: 12.5px; line-height: 1.8; color: #5b6577; margin: 15px 0; }
.upsell-embed textarea { font: 12px/1.8 ui-monospace,monospace; margin-bottom: 12px; resize: vertical; }
.upsell-embed small { display: block; font-size: 12px; line-height: 1.8; color: #5b6577; margin-top: 13px; }
.upsell-embed h3 { font-size: 13.5px; margin: 22px 0 8px; }
.upsell-embed-offer { display: grid; gap: 8px; padding: 12px; background: #f3f8f5; border-radius: 6px; font-size: 12.5px; line-height: 1.7; overflow-wrap: anywhere; }
.upsell-embed .button { font-size: 12px; padding: 10px 13px; max-width: 100%; white-space: normal; }
.preview-external-upsell { padding: 22px; border: 1px solid #cbded0; border-radius: 12px; background: #eef6ef; margin: 0 0 30px; overflow-wrap: anywhere; }
.preview-external-upsell h2 { font-size: 17px; line-height: 1.5; margin: 0 0 12px; }
.preview-external-upsell p { font-size: 12.5px; line-height: 1.8; color: #647b69; margin: 0 0 13px; }
.preview-external-upsell a { font-size: 12.5px; line-height: 1.7; color: #2f6f50; text-underline-offset: 3px; overflow-wrap: anywhere; }
.review-upsell-route { padding: 17px 0; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.8; overflow-wrap: anywhere; }
.review-upsell-route strong { font-size: 13.5px; }
.review-upsell-route p { color: #5b6577; margin: 8px 0; }
.review-upsell-route a { color: #376f54; font-size: 12px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.profile-prompt { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 19px 24px; margin-bottom: 23px; }
.profile-prompt strong { font-size: 14px; }
.profile-prompt p { font-size: 12.5px; line-height: 1.8; color: #5b6577; margin: 7px 0 0; }
.profile-prompt .button { flex-shrink: 0; font-size: 12.5px; }
.security-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; align-items: start; }
.security-grid .security-card { min-width: 0; max-width: none; }
.profile-current-email { font-size: 13.5px; line-height: 1.8; color: #5b6577; margin-bottom: 22px; overflow-wrap: anywhere; }
.security-grid .form-note { margin-top: 19px; }
.security-grid .spaced-title { margin-top: 17px; }
@media (max-width:1150px) {
  .security-grid { grid-template-columns: 1fr; }
  .security-grid .security-card { max-width: 700px; }
}
@media (max-width:760px) {
  .profile-prompt { display: block; padding: 20px; }
  .profile-prompt .button { margin-top: 15px; }
  .profile-current-email { font-size: 12.5px; }
  .security-grid .form-panel { padding: 22px; }
}

/* Produto e navegação por abas */
.product-heading>div { min-width: 0; }
.product-title { display: flex; align-items: center; flex-wrap: wrap; }
.product-title h1 { overflow-wrap: anywhere; margin-bottom: 0; }
.product-title .catalog-status { align-items: center; }
.product-tabs { margin: 0 0 28px; scrollbar-width: thin; }
.product-tab { flex-shrink: 0; background: transparent; }
.product-tab.active { border-bottom-color: #21654f; }
.product-tab:hover:not(:disabled) { color: #205d49; background: #f3f7f1; }
.product-tab:disabled { cursor: not-allowed; }
.product-tab:focus-visible { outline: 3px solid #90b9a8; outline-offset: -3px; }
.checkout-context { display: flex; align-items: start; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 23px 25px; margin-bottom: 23px; }
.checkout-context h2 { font-size: 20px; margin: 0 0 10px; }
.checkout-context p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.7; }
.checkout-context label { display: grid; gap: 8px; font-size: 13.5px; font-weight: 600; min-width: 230px; max-width: 100%; }
.checkout-context .context-main { flex-basis: 100%; border-top: 1px solid var(--line); padding-top: 15px; }
.context-checkout { display: grid; gap: 8px; max-width: 100%; overflow-wrap: anywhere; }
.context-checkout small { font-size: 12px; color: var(--muted); }
.context-checkout strong { font-size: 14px; }
.product-record .link-state-note { font-size: 12.5px; margin-top: 12px; max-width: 530px; }
.product-stage { padding: 25px; }
.product-stage>.section-row { margin-top: 0; align-items: start; }
.product-stage .section-row p { font-size: 13.5px; color: var(--muted); margin: 9px 0 0; max-width: 540px; }
.product-records { display: grid; gap: 14px; }
.product-record { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); min-width: 0; }
.product-record>div:first-child { min-width: 0; }
.product-record h3 { margin: 0 0 8px; font-size: 15px; }
.product-record p { font-size: 13.5px; margin: 0 0 10px; }
.product-record .row-actions { flex-shrink: 0; max-width: 45%; justify-content: flex-end; }
.catalog-status { display: flex; flex-wrap: wrap; gap: 7px; }
.checkout-address { display: block; overflow-wrap: anywhere; color: #355f4a; font-size: 13.5px; line-height: 1.7; margin: 9px 0 13px; }
.checkout-link-panel { margin-bottom: 24px; }
.checkout-link-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.checkout-link-heading h2 { font-size: 17px; margin: 0; }
.checkout-link-panel p { color: var(--muted); max-width: 780px; }
.checkout-link-panel small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 15px; }
.checkout-link-panel .row-actions { margin-top: 17px; }
.stage-empty { padding: 30px 0 15px; color: #707276; }
.stage-empty h3 { font-size: 18px; }
.stage-empty p { font-size: 13.5px; }
.preview-side .publication-panel { margin: 0 0 22px; }
.create-additional { margin: -8px 0 25px; }
.additional-dialog { width: min(650px,calc(100% - 28px)); max-height: 90vh; border: 1px solid var(--line); border-radius: 12px; padding: 28px; color: var(--ink); background: #fcfeff; }
.additional-dialog::backdrop { background: #17352888; }
.additional-dialog .section-row { margin: 0 0 12px; align-items: start; }
.additional-dialog h2 { font-size: 22px; margin: 0; }
.additional-dialog label { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; font-weight: 600; margin: 0 0 20px; }
.additional-dialog fieldset { border: 0; border-top: 1px solid var(--line); padding: 18px 0 0; margin: 22px 0 8px; min-width: 0; }
.additional-dialog legend { padding: 0 10px 0 0; color: #355f4a; font-size: 14px; font-weight: 600; }
.additional-dialog .form-actions { flex-wrap: wrap; }
.form-actions .button { white-space: normal; text-align: center; }
@media (max-width:900px) {
  .product-record { display: block; }
  .product-record .row-actions { max-width: none; justify-content: flex-start; margin-top: 18px; }
  .checkout-link-heading { align-items: start; flex-direction: column; }
}
@media (max-width:760px) {
  .product-heading { flex-direction: column; gap: 15px; }
  .product-tabs { max-width: 100%; }
  .checkout-context { padding: 21px; }
  .checkout-context label { width: 100%; min-width: 0; }
  .checkout-context h2 { font-size: 18px; }
  .product-stage { padding: 21px; }
  .product-stage>.section-row { flex-wrap: wrap; }
  .checkout-link-heading h2 { font-size: 16px; }
  .checkout-link-panel .row-actions { gap: 8px; }
  .checkout-link-panel .button { font-size: 12.5px; padding: 10px 13px; }
  .checkout-address { font-size: 12.5px; }
  .additional-dialog { padding: 22px; }
  .additional-dialog h2 { font-size: 19px; }
  .additional-dialog .form-row { display: block; }
  .form-actions .button { width: 100%; }
  .catalog-status { gap: 5px; }
  .catalog-status .badge { white-space: normal; line-height: 1.5; }
  .editor-layout { gap: 20px; }
}

/* Entrega e prontidão para publicação */
.form-panel .form-check { display: flex; flex-direction: row; align-items: start; gap: 11px; line-height: 1.7; font-weight: 400; }
.form-check input { flex: none; width: 17px; min-height: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--accent); }
.form-check>span { min-width: 0; }
.delivery-test-link { margin: -8px 0 21px; }
.delivery-test-link small { display: block; color: var(--muted); font-size: 12px; line-height: 1.7; margin-top: 10px; }
.delivery-test-link .button { font-size: 12.5px; }
@media (max-width:760px) {
  .form-panel .form-check { font-size: 12.5px; }
  .delivery-test-link .button { max-width: 100%; white-space: normal; }
}
.additional-choice-hint { margin: -9px 0 22px; font-size: 12.5px; line-height: 1.7; color: var(--muted); overflow-wrap: anywhere; }
.additional-choice-hint[data-invalid="true"] { color: #963c27; }
.additional-selector select[aria-invalid="true"] { border-color: #b45c43; }

/* Estrutura operacional, relatórios e navegação */
.studio-app .sidebar { border: 0; z-index: 20; }
.studio-app .wordmark { font-weight: 800; letter-spacing: -2px; }
.studio-app .workspace-avatar { font-family: inherit; }
.studio-app .nav-item>span { font-size: 19px; }
.studio-app .sidebar-bottom .external { color: #9dafbe; font-size: 12px; padding: 20px 4px 0; }
.account-indicator { border-radius: 50%; }
.studio-app .page-heading>.eyebrow, .studio-app .page-heading>div>.eyebrow { display: none; }
.studio-app .button:hover { filter: none; background: #f6f8fa; }
.studio-app .button.primary:hover { background: #076d65; }
.studio-app .panel-heading { border-bottom: 0; margin: 0; display: flex; justify-content: space-between; gap: 15px; }
.studio-app .panel-heading p { margin: 0; line-height: 1.7; }
.studio-app input { background: #fcfeff; border-color: #dfe5ed; border-radius: 8px; font-size: 14px; color: var(--ink); }
.studio-app select, .studio-app textarea { background: #fcfeff; }
.studio-app .form-panel label { line-height: 1.6; }
.studio-app .form-panel input, .studio-app .form-panel select { min-height: 44px; }
.studio-app .product-tabs { border: 0; display: flex; overflow: auto; margin-bottom: 25px; }
.studio-app .product-tab { white-space: nowrap; border: 0; }
.studio-app .product-heading { margin-bottom: 22px; }
.studio-app td small { line-height: 1.8; margin-top: 4px; }
.studio-app .row-actions { gap: 8px; }
.studio-app .row-actions .button { padding: 9px 12px; font-size: 12.5px; min-height: 35px; }
.studio-app .app-footer { padding: 24px 0; }
.studio-app .checkout-link-panel { background: #fbfdfd; }
.studio-app .product-record { padding: 21px 0; }
.studio-app .product-record:last-child { padding-bottom: 0; }
.studio-app .product-record p { color: #5b6577; }
.studio-app .product-title { gap: 13px; }
.studio-app .product-title h1 { font-size: 28px; }
.icon-button { border: 1px solid #e1e6ed; background: #fcfeff; width: 40px; min-width: 40px; height: 40px; font-size: 20px; display: grid; place-items: center; }
.mobile-menu { display: none; }
.analytics-filters { margin-bottom: 23px; }
.analytics-filter-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.filter-selects { display: flex; gap: 9px; align-items: end; }
.analytics-filters label { display: flex; flex-direction: column; gap: 7px; font-size: 12px; color: #5b6577; min-width: 0; }
.analytics-filters label>span { font-size: 12px; }
.analytics-filters select, .analytics-filters input { height: 40px; padding: 0 32px 0 12px; border: 1px solid #dfe5ec; max-width: 100%; width: 100%; font-size: 12.5px; min-height: 40px; }
.analytics-filter-row label>span { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.analytics-filter-detail { display: flex; align-items: end; gap: 12px; margin-top: 18px; }
.analytics-filter-detail>label { flex: 1; max-width: 260px; }
.analytics-filter-detail select { width: 100%; min-width: 0; }
.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin-bottom: 22px; }
.metric-card>div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.metric-card i { font-style: normal; display: grid; place-items: center; font-size: 16px; }
.metric-card>strong { display: block; line-height: 1.2; }
.metric-compare { line-height: 1.7; }
.metric-compare span { margin-left: 3px; }
.analytics-grid { display: grid; grid-template-columns: minmax(0,2.3fr) minmax(230px,1fr); gap: 20px; margin-bottom: 22px; }
.sales-chart { display: block; width: 100%; height: auto; overflow: visible; max-height: 300px; }
.chart-label { font-family: inherit; }
.chart-legend { display: flex; align-items: center; gap: 7px; white-space: nowrap; padding-top: 4px; }
.chart-legend i { width: 7px; height: 7px; }
.chart-footnote { line-height: 1.6; margin: 4px 23px 20px; }
.distribution-panel { padding-bottom: 18px; }
.status-distribution { padding: 0 24px; display: grid; gap: 17px; }
.status-distribution>div { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 9px; }
.status-distribution>div>span { display: flex; align-items: center; gap: 8px; }
.status-distribution strong { font-size: 13.5px; font-weight: 600; }
.distribution-track { border-radius: 5px; grid-column: 1/-1; overflow: hidden; }
.distribution-track>span { display: block; height: 100%; border-radius: 5px; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #92a0b0; }
.status-dot.status-succeeded { background: #37a981; }
.status-dot.status-failed, .status-dot.status-refunded { background: #cb8e7e; }
.status-dot.status-processing, .status-dot.status-requires_action { background: #d4b466; }
.recent-orders { margin-bottom: 22px; overflow: hidden; }
.align-right { text-align: right; }
.order-number { display: block; letter-spacing: .1px; }
.orders-table td:first-child { max-width: 330px; }
.orders-table td small { max-width: 330px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.orders-table td:nth-child(2) { white-space: nowrap; }
.order-status { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; color: #5b6577; background: #f0f4f8; }
.order-status i { border-radius: 50%; background: currentColor; }
.analytics-note { display: flex; align-items: start; gap: 12px; margin: 20px 0; color: #5b6577; }
.analytics-note .badge { flex-shrink: 0; }
.analytics-note p { font-size: 12px; line-height: 1.8; margin: 0; max-width: 960px; }
.quick-access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.quick-access-grid>button { background: #fcfeff; border: 1px solid #e4e9f0; padding: 18px; display: flex; gap: 14px; align-items: center; text-align: left; color: var(--ink); }
.quick-access-grid>button>span { display: grid; place-items: center; font-size: 21px; }
.quick-access-grid strong { display: block; font-weight: 600; }
.quick-access-grid small { display: block; margin-top: 5px; line-height: 1.6; }
.quick-access-grid b { margin-left: auto; font-size: 16px; font-weight: 400; }
.top-products { padding-bottom: 10px; }
.product-ranking { display: flex; align-items: center; gap: 15px; padding: 15px 24px; border-top: 1px solid #edf0f4; }
.product-ranking>span { font-size: 12.5px; color: #5b6577; width: 24px; }
.product-ranking>div { flex: 1; }
.product-ranking strong { font-size: 13.5px; font-weight: 550; }
.product-ranking small { display: block; font-size: 12px; color: #5b6577; margin-top: 6px; }
.table-empty { text-align: center; padding: 37px 10px; }
.table-empty>span { display: grid; place-items: center; margin: 0 auto 15px; font-size: 23px; }
.table-empty strong { display: block; font-weight: 550; }
.table-empty p { margin: 9px 0 0; }
.compact-empty { padding: 25px 8px; line-height: 1.8; display: block !important; }
.top-products>.compact-empty { padding: 15px 24px 30px; }
.skeleton-card { padding: 22px; height: 156px; display: grid; align-content: start; gap: 18px; }
.skeleton-card>span { display: block; height: 12px; width: 60%; }
.skeleton-card>strong { display: block; height: 27px; width: 45%; }
.skeleton-card>small { display: block; height: 9px; width: 70%; }
.skeleton-chart { height: 300px; display: grid; place-items: center; }
.skeleton-chart p { font-size: 13.5px; color: #5b6577; }
.studio-app .preview-side { min-width: 0; }
@media (max-width:1200px) {
  .studio-app .sidebar { padding-inline: 14px; }
  .metric-card i { display: none; }
  .metric-compare span { display: block; margin: 0; }
  .analytics-grid { grid-template-columns: minmax(0,2fr) minmax(210px,1fr); }
  .studio-app .account .account-indicator { display: none; }
}
@media (max-width:980px) {
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric-card i { display: grid; }
  .metric-compare span { display: inline; margin-left: 4px; }
  .analytics-grid { grid-template-columns: 1fr; }
  .status-distribution { grid-template-columns: 1fr 1fr; }
  .distribution-panel .panel-heading { padding-bottom: 15px; }
  .quick-access-grid { grid-template-columns: 1fr; }
}
@media (max-width:760px) {
  .studio-app .app-shell { display: block; }
  .studio-app .sidebar { display: flex; position: fixed; top: 0; bottom: 0; left: 0; height: 100dvh; transform: translateX(-100%); transition: transform .2s ease; overflow-y: auto; box-shadow: 8px 0 30px #0d1c2b25; }
  .studio-app .topbar { gap: 12px; }
  .mobile-menu { display: grid; font-size: 17px; }
  .studio-app #breadcrumb { font-size: 12px; line-height: 1.6; flex: 1; }
  .studio-app #account-name { display: none; }
  .studio-app .page-heading { align-items: start; gap: 12px; }
  .analytics-filter-row { align-items: start; flex-wrap: wrap; gap: 12px; }
  .analytics-filter-detail { gap: 9px; flex-wrap: wrap; }
  .analytics-filter-detail>label { max-width: none; }
  .analytics-filter-detail label>span { font-size: 11.5px; }
  .analytics-filters select, .analytics-filters input { padding-left: 10px; }
  .metric-grid { margin-bottom: 16px; }
  .metric-card i { display: none; }
  .metric-compare span { margin: 0; }
  .analytics-grid { gap: 16px; margin-bottom: 16px; }
  .sales-chart { min-height: 160px; }
  .chart-footnote { margin: 6px 18px 18px; }
  .status-distribution { padding-inline: 18px; gap: 17px; }
  .studio-app td { font-size: 12px; }
  .orders-table { min-width: 590px; }
  .orders-table td:first-child { max-width: 220px; }
  .orders-table td small { max-width: 215px; }
  .analytics-note { flex-direction: column; gap: 8px; }
  .analytics-note p { font-size: 11.5px; }
  .studio-app .app-footer span:last-child { display: none; }
  .studio-app .product-title h1 { font-size: 24px; }
  .studio-app .editor-layout { display: block; }
  .studio-app .preview-side { margin-top: 20px; }
  .product-ranking { padding: 15px 18px; gap: 10px; }
  .product-ranking strong { font-size: 12.5px; }
  .quick-access-grid { gap: 12px; margin-top: 20px; }
}
@media (max-width:370px) {
  .studio-app #workspace, .studio-app .topbar { padding-inline: 12px; }
  .filter-selects { width: 100%; margin: 0; }
  .filter-selects label:nth-child(2) { flex: 1; }
  .status-distribution { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion:reduce) {
  .studio-app .sidebar { transition: none; }
}

/* Editor do funil */
.multi-funnel-fields { border: 0 !important; padding: 0 !important; margin-top: 0 !important; }
.multi-funnel-fields>legend { display: none; }
.funnel-editor-header { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin: 0 0 20px; }
.funnel-editor-header h3 { font-size: 18px; margin-bottom: 9px; letter-spacing: -.3px; }
.funnel-editor-header p { font-size: 12.5px; line-height: 1.8; color: #5b6577; margin: 0; }
.funnel-editor-header .eyebrow { font-size: 11px; margin-bottom: 10px; }
.funnel-count { flex: none; white-space: nowrap; font-size: 12px; padding: 7px 9px; background: #f0f2f6; color: #5b6577; border-radius: 6px; }
.funnel-start, .funnel-end { display: flex; align-items: center; gap: 12px; padding: 17px 18px; border: 1px dashed #dcdee2; border-radius: 10px; background: #f8fbfa; }
.funnel-start>span, .funnel-end>span { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; color: #5b6577; background: #e9f4ef; font-size: 17px; }
.funnel-start strong, .funnel-end strong { display: block; font-size: 12.5px; font-weight: 600; }
.funnel-start small, .funnel-end small { display: block; font-size: 11.5px !important; color: #5b6577; margin-top: 4px; }
.funnel-step { border: 1px solid #dce5eb; border-radius: 11px; margin-top: 24px; position: relative; background: #fcfeff; }
.funnel-step::before { content: "↓"; position: absolute; top: -23px; left: 29px; color: #7c8698; font-size: 15px; }
.funnel-step-title { display: flex; align-items: center; gap: 11px; padding: 16px 17px; background: #f9fbfc; border-radius: 11px 11px 0 0; border-bottom: 1px solid #e8edf2; }
.funnel-position { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; font-size: 12.5px; font-weight: 650; color: #278478; background: #e5f2ed; }
.funnel-step-title>div:not(.funnel-step-actions) { min-width: 0; flex: 1; }
.funnel-step-title h3 { margin: 0; line-height: 1.5; overflow-wrap: anywhere; }
.funnel-step-title small { display: block; color: #5b6577; margin-top: 3px; }
.funnel-step-actions { display: flex; gap: 4px; }
.funnel-step-actions button { width: 27px; height: 28px; border: 1px solid #e1e8ed; border-radius: 6px; color: #5b6577; background: #fcfeff; font-size: 14px; }
.funnel-step-actions .remove-step { color: #5b6577; margin-left: 3px; }
.funnel-step-body { padding: 19px 18px 0; }
.funnel-step-body .form-row { gap: 14px; }
.funnel-step-body label { margin-bottom: 18px !important; }
.funnel-step-body select, .funnel-step-body input { min-height: 40px !important; }
.decline-route { display: flex; align-items: center; gap: 16px; margin: 0 0 20px; padding: 13px 14px; border-radius: 8px; background: #f7f9fb; }
.decline-route>span { font-size: 12px; white-space: nowrap; color: #5b6577; }
.decline-route select { flex: 1; width: 100%; min-width: 0; background: #fcfeff; }
.step-integration { border-top: 1px solid #e7edf2; padding-top: 15px; margin-bottom: 16px; }
.step-integration summary { font-size: 12px; color: #5b6577; cursor: pointer; line-height: 1.8; display: list-item; }
.step-integration summary>span { float: right; font-size: 11.5px; color: #5b6577; }
.step-integration p { font-size: 12px; line-height: 1.8; color: #5b6577; margin: 16px 0; }
.step-integration textarea { font-family: monospace; font-size: 12px !important; padding: 12px; line-height: 1.7; resize: vertical; min-height: 64px; }
.step-integration .button { font-size: 12px; min-height: 32px; padding: 8px 10px; margin: -6px 0 18px; }
.step-integration>small { display: block; font-size: 11.5px !important; line-height: 1.8; color: #5b6577; overflow-wrap: anywhere; }
.funnel-accept-route { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 18px; background: #f3f9f6; border-top: 1px solid #e3eee7; border-radius: 0 0 11px 11px; font-size: 12px; color: #5b6577; }
.funnel-accept-route>span { color: #5b6577; font-size: 11.5px; }
.add-funnel-step { display: flex !important; width: 100%; border-style: dashed !important; color: #5b6577 !important; margin: 22px 0; background: #fbfdfc !important; }
.funnel-empty { padding: 27px 15px 5px; text-align: center; color: #5b6577; }
.funnel-empty strong { font-size: 13.5px; font-weight: 500; }
.funnel-empty p { font-size: 12px; margin: 10px 0 0; }
.funnel-end { margin-top: 0; }
.funnel-editor #funnel-validation { margin-top: 20px; }
.studio-app .funnel-fields { min-width: 0; }
.studio-app .funnel-editor .form-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
@media (max-width:760px) {
  .funnel-editor-header { gap: 10px; }
  .funnel-editor-header h3 { font-size: 16px; }
  .funnel-count { font-size: 11.5px; }
  .funnel-step-body { padding: 18px 14px 0; }
  .funnel-step-title { padding: 14px 12px; gap: 8px; }
  .funnel-step-actions { gap: 3px; }
  .funnel-step-actions button { width: 25px; height: 27px; }
  .funnel-step-body .form-row { display: block !important; }
  .decline-route { display: block; padding: 12px; }
  .decline-route>span { display: block; margin-bottom: 8px; }
  .decline-route select { width: 100%; }
  .step-integration summary>span { float: none; display: block; margin-left: 15px; }
  .funnel-start, .funnel-end { padding: 15px 13px; }
  .funnel-start small, .funnel-end small { font-size: 11px !important; }
  .studio-app .sidebar { visibility: hidden; pointer-events: none; }
  .studio-app.navigation-open .sidebar { transform: none; visibility: visible; pointer-events: auto; }
  .studio-app .sidebar nav { display: flex; flex-direction: column; overflow: visible; width: 100%; gap: 5px; }
  .studio-app .sidebar .nav-item { width: 100%; justify-content: flex-start; }
  .studio-app .sidebar .workspace-label { display: flex; }
  .studio-app .sidebar .nav-label { display: block; }
  .studio-app .sidebar .wordmark { padding-top: 15px; }
  .studio-app .sidebar .sidebar-bottom { display: block; margin-top: auto; padding-top: 25px; }
}

/* Prévia compacta do checkout */
.preview-page .checkout-preview { max-width: 620px; padding: 28px 24px 12px; }
.preview-page .preview-banner { border: 0; padding: 12px 10px 0; }
.preview-page .preview-stack { display: block; border: 1px solid #e3e8e8; background: #fff; border-radius: 18px; box-shadow: 0 10px 35px #18323206; padding: 0 32px; }
.preview-page .preview-card { background: none; border: 0; padding: 27px 0; margin: 0; }
.preview-page .preview-identity { padding-top: 20px; }
.preview-page .preview-card+.preview-card { border-top: 1px solid #e8eced; }
.preview-page .preview-country { margin-bottom: 27px; gap: 24px; }
.preview-page .preview-country .preview-field { width: 55%; }
.preview-page .preview-country .preview-field>span { display: block; font-size: 12px; margin-bottom: 5px; color: #697477; }
.preview-page .preview-country .preview-field>div { height: 36px; min-height: 36px; padding: 7px 10px; background: #fcfdfd; border: 1px solid #e4e9e8; border-radius: 6px; font-size: 13.5px; color: #697477; }
.preview-page .preview-product-heading { display: block; margin-bottom: 27px; }
.preview-page .preview-product-heading h1 { margin: 0 0 10px; }
.preview-page .preview-product-price { line-height: 1.25; }
.preview-page .preview-field-grid { grid-template-columns: 1fr; gap: 16px; }
.preview-page .preview-field-grid .preview-field>div { min-height: 48px; padding: 12px 13px; border-color: #dce3e3; border-radius: 7px; font-size: 14px; }
.preview-page .preview-summary-line { margin: 10px 0; }
.preview-page .preview-total { margin-top: 16px; padding-top: 17px; }
.preview-page .preview-currency { text-align: left; margin-bottom: 15px; }
.preview-page .preview-hint { line-height: 1.65; }
.preview-page .preview-legal { padding: 18px 12px; }
.preview-page .preview-upsell { margin-top: 24px; }
.preview-page .preview-terms { margin: 15px 0; }
@media (max-width:600px) {
  .preview-page .checkout-preview { max-width: 520px; padding: 16px 12px 0; }
  .preview-page .preview-stack { padding: 0 22px; border-radius: 14px; box-shadow: none; }
  .preview-page .preview-card { padding: 23px 0; }
  .preview-page .preview-identity { padding-top: 16px; }
  .preview-page .preview-country { gap: 12px; margin-bottom: 24px; }
  .preview-page .preview-country .preview-field { width: 60%; }
  .preview-page .preview-payment { padding: 17px 13px; }
}
@media (max-width:360px) {
  .preview-page .checkout-preview { padding: 10px 8px 0; }
  .preview-page .preview-stack { padding: 0 17px; border-radius: 12px; }
  .preview-page .preview-country { gap: 10px; }
}

/* Editor, publicação e tracking */
.workspace-help { font-size: 13.5px; color: #355c52; line-height: 1.7; }
.workspace-help .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #29977b; margin-right: 6px; }
.workspace-help p { font-size: 12.5px; color: #8a98a3; margin: 7px 0 0; }
.report-context { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #35594c; }
.report-context .dot { width: 7px; height: 7px; background: #248b73; border-radius: 50%; }
.report-context small { font-size: 12px; color: #5b6577; margin-left: 8px; }
.advanced-settings { border: 1px solid #e5e7eb; margin: 20px 0; padding: 0 16px; background: #fbfcfd; }
.advanced-settings>summary { cursor: pointer; font-size: 13.5px; font-weight: 550; color: #5f6165; padding: 16px 0; line-height: 1.7; list-style-position: inside; }
.advanced-settings>summary>span { font-size: 12px; font-weight: 400; color: #5b6577; margin-left: 8px; }
.advanced-settings[open]>summary { margin-bottom: 8px; border-bottom: 1px solid #e9ebef; }
.advanced-settings .form-note { background: transparent; padding: 0 0 15px; margin: 0; border: 0; }
.advanced-settings input, .advanced-settings select, .advanced-settings textarea { background: #fcfeff; }
.editor-actions { position: sticky; bottom: 0; z-index: 2; display: flex; justify-content: flex-end; background: #fcfeff; padding: 16px 0 8px; margin-top: 26px; border-top: 1px solid #edeff3; }
.editor-actions .button { min-width: 145px; }
.publish-requirements { background: #fffbf2; border: 1px solid #f1e6cb; border-radius: 9px; padding: 16px; margin-top: 18px; font-size: 13.5px; }
.publish-requirements strong { font-size: 13.5px; }
.publish-requirements ul { margin: 10px 0 0; padding-left: 17px; line-height: 1.8; }
.publish-requirements li+li { margin-top: 6px; }
.publish-auto-note { font-size: 12.5px; color: #447f68; line-height: 1.7; margin: 20px 0 0; }
.studio-app .preview-side .publication-panel { padding: 24px; }
.studio-app .publication-panel h2 { font-size: 16px; margin-bottom: 18px; }
.studio-app .preview-details { margin-top: 18px; overflow: hidden; padding: 0 20px; }
.preview-details>summary { font-size: 13.5px; font-weight: 550; cursor: pointer; padding: 18px 0; color: #536e77; }
.preview-details iframe { width: 100%; height: 620px; border: 1px solid #e6eced; border-radius: 8px; background: #f8fafb; }
.preview-details .preview-toolbar { font-size: 12.5px; margin-bottom: 15px; }
.currency-results { display: flex; gap: 10px; margin: 0 0 20px; flex-wrap: wrap; }
.currency-results>button { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; text-align: left; border: 1px solid #e0e8ec; background: #fcfeff; border-radius: 9px; padding: 12px 16px; color: #6a6c70; min-width: 174px; }
.currency-results>button.active { background: #f0f8f5; border-color: #8bb8aa; }
.currency-results span { font-size: 12.5px; }
.currency-results strong { font-size: 14px; text-align: right; }
.currency-results small { grid-column: 1/-1; font-size: 12px; }
.studio-app .funnel-step-actions [data-step-edit] { width: auto; padding: 0 10px; font-size: 12.5px; color: #387769; min-width: 50px; }
.funnel-step-body[hidden], .step-integration[hidden], .external-step-settings[hidden] { display: none !important; }
.funnel-step:has(.funnel-step-body[hidden]) .funnel-step-title { border-bottom: 0; }
.studio-app .funnel-step-body label, .studio-app .funnel-step-body select, .studio-app .funnel-step-body input { font-size: 13.5px !important; }
.studio-app .funnel-step-body .step-integration label { font-size: 12.5px !important; }
.studio-app .funnel-step-title h3 { font-size: 14px; }
.studio-app .funnel-step-title small { font-size: 12.5px; }
.connection-settings form { margin-top: 15px; }
.studio-app .review-item { grid-template-columns: 1fr auto; gap: 6px; font-size: 13.5px; }
.studio-app .review-item>span:first-child { grid-column: 1/-1; font-size: 12px; color: #5b6577; }
.studio-app .review-item strong { font-size: 13.5px; overflow-wrap: anywhere; }
.studio-app .checkout-link-panel { padding: 22px 25px; }
.studio-app .checkout-link-panel h2 { font-size: 18px; }
.studio-app .checkout-link-panel p { font-size: 13.5px; line-height: 1.7; }
.studio-app .checkout-link-panel .checkout-address { font-size: 13.5px; }
.studio-app .editor-layout { grid-template-columns: minmax(0,1.7fr) minmax(260px,1fr); }
.studio-app .product-editor { grid-template-columns: minmax(0,780px); }
.studio-app .editor-layout>.form-panel { min-width: 0; }
@media (max-width:1050px) {
  .studio-app .editor-layout { grid-template-columns: minmax(0,1fr); }
  .studio-app .preview-side { margin-top: 0; }
  .studio-app .editor-actions { position: static; }
  .preview-details iframe { height: 550px; }
}
@media (max-width:760px) {
  .report-context { width: 100%; font-size: 13.5px; }
  .report-context small { margin-left: auto; }
  .filter-selects>label { flex: 1; }
  .advanced-settings { padding: 0 13px; }
  .advanced-settings>summary { font-size: 12.5px; }
  .editor-actions { gap: 8px; }
  .editor-actions .button { min-width: 0; flex: 1; font-size: 12.5px; padding: 12px 10px; }
  .studio-app .checkout-link-panel { padding: 20px 18px; }
  .studio-app .funnel-step-actions [data-step-edit] { min-width: 42px; padding: 0 6px; font-size: 12px; }
  .studio-app .funnel-step-title h3 { font-size: 13.5px; }
  .currency-results>button { flex: 1; min-width: 135px; padding: 12px; }
  .studio-app .preview-side .publication-panel { padding: 22px 18px; }
  .studio-app .funnel-step-actions { flex-wrap: wrap; justify-content: flex-end; max-width: 100px; }
  .studio-app .funnel-step-body label { font-size: 12.5px !important; }
}
.studio-app #status { scroll-margin-top: 90px; }
.meta-layout { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 24px; align-items: start; }
.meta-diagnostics { min-width: 0; }
.meta-title { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 16px; }
.meta-title h2 { font-size: 18px; margin: 0; line-height: 1.4; }
.meta-title .eyebrow { margin-bottom: 9px; font-size: 11.5px; }
.form-panel .meta-choice { display: flex; flex-direction: row; align-items: flex-start; gap: 11px; cursor: pointer; margin-bottom: 16px; line-height: 1.6; }
.meta-choice input[type=checkbox] { appearance: auto; accent-color: var(--accent); width: 17px; height: 17px; min-height: 17px; flex: 0 0 17px; padding: 0; margin: 1px 0 0; }
.meta-choice span { min-width: 0; }
.meta-choice small { display: block; margin-top: 4px; }
.meta-enable { padding: 16px; background: #f2f8f5; border: 1px solid #dcebe3; border-radius: 8px; }
.meta-events { border: 0; padding: 0; margin: 26px 0 0; min-width: 0; }
.meta-events legend { font-size: 12.5px; font-weight: 650; padding: 0; margin-bottom: 15px; }
.meta-test-settings { margin-top: 22px; }
.meta-diagnostics .panel-heading { align-items: start; }
.meta-diagnostics .panel-heading p { font-size: 12px; line-height: 1.7; margin: 8px 0 0; color: var(--muted); }
.meta-diagnostics .panel-heading .button { min-height: 36px; padding: 8px 10px; font-size: 12px; }
.meta-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 23px 24px 16px; gap: 12px; }
.meta-metrics strong { display: block; font-size: 25px; font-weight: 600; margin-bottom: 5px; }
.meta-metrics span { display: block; font-size: 12px; color: var(--muted); }
.meta-last-delivery { font-size: 12px; color: var(--muted); padding: 0 24px; margin-bottom: 20px; line-height: 1.8; }
.meta-error { margin: 0 24px 20px; overflow-wrap: anywhere; }
.meta-event { padding: 20px 24px; border-top: 1px solid var(--line); min-width: 0; }
.meta-event>div { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.meta-event strong { font-size: 12.5px; font-weight: 600; margin-right: auto; }
.meta-event>p { font-size: 12px; color: var(--muted); margin: 10px 0; }
.meta-event summary { font-size: 12px; color: var(--accent); cursor: pointer; line-height: 1.6; }
.meta-event dl { font-size: 12px; line-height: 1.7; margin: 12px 0 0; display: grid; gap: 8px; }
.meta-event dl>div { display: grid; grid-template-columns: minmax(90px,1fr) minmax(0,1.5fr); gap: 12px; }
.meta-event dt { color: var(--muted); }
.meta-event dd { margin: 0; overflow-wrap: anywhere; }
.meta-diagnostics>.compact-empty { padding: 10px 24px 24px; font-size: 12.5px; }
.meta-receipt-note { font-size: 12px; line-height: 1.9; color: var(--muted); padding: 20px 24px; margin: 0; border-top: 1px solid var(--line); background: #fafcfb; }
@media (max-width:1100px) {
  .meta-layout { grid-template-columns: minmax(0,1fr); }
}
@media (max-width:420px) {
  .meta-title { flex-direction: column; }
  .meta-title h2 { font-size: 17px; }
  .meta-event, .meta-receipt-note { padding: 18px; }
  .meta-metrics { padding: 20px 18px 15px; }
  .meta-last-delivery { padding: 0 18px; }
  .meta-event dl>div { grid-template-columns: 1fr; gap: 2px; }
}

/* Tokens compartilhados do Studio e da autenticação */
.studio-app, .login-page { --font:  ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; --ink:  #101828; --ink-2:  #344054; --muted:  #5b6577; --line:  #e4e7ec; --line-strong:  #d0d5dd; --surface:  #fff; --canvas:  #f5f6f8; --subtle:  #f9fafb; --accent:  #087f75; --brand:  #087f75; --brand-700:  #066a61; --brand-50:  #ecf7f5; --brand-100:  #d2efea; --brand-glow:  #5eead4; --ok:  #067647; --ok-soft:  #ecfdf3; --warn:  #b54708; --warn-soft:  #fffaeb; --bad:  #b42318; --bad-soft:  #fef3f2; --r-sm:  8px; --r:  10px; --r-lg:  14px; --r-xl:  18px; --sh-xs:  0 1px 2px rgba(16, 24, 40, .05); --sh-sm:  0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06); --sh-md:  0 4px 8px -2px rgba(16, 24, 40, .08), 0 2px 4px -2px rgba(16, 24, 40, .05); --sh-lg:  0 16px 32px -12px rgba(16, 24, 40, .22), 0 4px 8px -4px rgba(16, 24, 40, .06); --ease:  cubic-bezier(.2, .7, .2, 1); font-family: var(--font); color: var(--ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.studio-app { background: var(--canvas); font-size: 14px; line-height: 1.5; }
.studio-app :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible, .login-page :is(button,a,input,select,textarea,summary):focus-visible { outline: 3px solid color-mix(in srgb,var(--brand) 45%,transparent); outline-offset: 2px; }
.studio-app .icon, .login-page .icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Moldura: barra lateral */
.studio-app .app-shell { grid-template-columns: 248px minmax(0,1fr); }
.studio-app .sidebar { background: radial-gradient(120% 60%at 0% 0%,rgba(45,212,191,.10),transparent 60%),linear-gradient(180deg,#0b1220 0%,#0e182a 100%); color: #d6deea; padding: 24px 14px 18px; border-right: 1px solid rgba(255,255,255,.04); }
.studio-app .wordmark { color: #fff; font-size: 34px; }
.studio-app .wordmark>span:first-child { color: var(--brand-glow); }
.studio-app .wordmark-label { color: #9fb0c4; border-color: rgba(255,255,255,.14); font-size: 11px !important; letter-spacing: .22em !important; }
.studio-app .workspace-label { margin: 24px 0 22px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.08); color: #f4f7fb; font-size: 14px; }
.studio-app .workspace-label small { color: #a9b6c6; font-size: 12.5px; }
.studio-app .workspace-avatar { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg,#14b8a6,#0e7490); color: #fff; border: 0; font-weight: 750; box-shadow: 0 4px 12px -4px rgba(20,184,166,.6); }
.studio-app .nav-label { color: #8a99ad; font-size: 11px; letter-spacing: .14em; margin: 0 10px 8px; }
.studio-app .nav-item { position: relative; padding: 10px 12px; margin: 2px 0; gap: 12px; border-radius: 10px; color: #b7c3d2; font-size: 14px; font-weight: 550; transition: background-color .15s var(--ease),color .15s var(--ease); }
.studio-app .nav-item .icon { width: 19px; height: 19px; opacity: .9; }
.studio-app .nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.studio-app .nav-item.active { background: linear-gradient(90deg,rgba(45,212,191,.18),rgba(45,212,191,.06)); color: #effffb; font-weight: 650; }
.studio-app .nav-item.active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand-glow); }
.studio-app .nav-item.active .icon { color: var(--brand-glow); opacity: 1; }
.studio-app .nav-item:focus-visible { outline-color: var(--brand-glow); }
.studio-app .sidebar-bottom .workspace-help { padding: 14px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); color: #dfe7f1; font-size: 13px; font-weight: 600; }
.studio-app .sidebar-bottom .workspace-help p { color: #a9b6c6; font-size: 12.5px; font-weight: 400; margin: 6px 0 0; }
.studio-app .sidebar-bottom .dot { background: var(--brand-glow); box-shadow: 0 0 0 3px rgba(94,234,212,.18); }

/* Moldura: barra superior e área de trabalho */
.studio-app .topbar { position: sticky; top: 0; z-index: 15; min-height: 64px; padding: 12px 32px; background: rgba(255,255,255,.82); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); font-size: 13.5px; }
.studio-app #breadcrumb { color: var(--muted); }
.studio-app #breadcrumb span { color: #98a2b3; }
.studio-app .account { gap: 12px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.studio-app .account-indicator { width: 32px; height: 32px; border: 0; background: linear-gradient(135deg,#14b8a6,#0e7490); box-shadow: 0 0 0 3px #fff,0 0 0 4px var(--line); }
.studio-app .account .text-button { font-size: 13.5px; color: var(--muted); padding: 6px 10px; border-radius: 8px; }
.studio-app .account .text-button:hover { background: var(--subtle); color: var(--ink); }
.studio-app #workspace { padding: 32px 36px 48px; max-width: 1440px; }
.studio-app .app-footer { margin: 0 36px; font-size: 12.5px; color: var(--muted); border-color: var(--line); }
.studio-app .app-footer span:first-child { color: var(--ink-2); }
.studio-app .page-heading { margin-bottom: 24px; }
.studio-app .page-heading h1, .studio-app h1 { font-size: 28px; font-weight: 720; letter-spacing: -.022em; color: var(--ink); }
.studio-app .page-heading p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.studio-app h2 { font-size: 17px; font-weight: 680; letter-spacing: -.012em; color: var(--ink); }
.studio-app .eyebrow { font-size: 11.5px; letter-spacing: .1em; color: var(--muted); font-weight: 700; }

/* Botões */
.studio-app .button, .login-page .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); color: var(--ink-2); font-size: 13.5px; font-weight: 640; line-height: 1.2; box-shadow: var(--sh-xs); text-decoration: none; transition: background-color .15s var(--ease),border-color .15s var(--ease),box-shadow .15s var(--ease),transform .15s var(--ease),color .15s var(--ease); }
.studio-app .button:hover:not(:disabled), .login-page .button:hover:not(:disabled) { background: var(--subtle); border-color: #b9c1cd; color: var(--ink); filter: none; }
.studio-app .button:active:not(:disabled), .login-page .button:active:not(:disabled) { transform: translateY(1px); }
.studio-app .button.primary, .login-page .button.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.1),0 8px 18px -10px rgba(8,127,117,.75); }
.studio-app .button.primary:hover:not(:disabled), .login-page .button.primary:hover:not(:disabled) { background: var(--brand-700); border-color: var(--brand-700); color: #fff; transform: translateY(-1px); }
.studio-app .button.primary:active:not(:disabled) { transform: translateY(0); }
.studio-app .button:disabled, .login-page .button:disabled { opacity: .55; box-shadow: none; }
.studio-app .button .icon { width: 16px; height: 16px; stroke-width: 2.2; }
.studio-app .text-button { color: var(--brand-700); font-size: 13.5px; font-weight: 640; border-radius: 8px; text-decoration: none; }
.studio-app .text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.studio-app .text-link, .login-page .text-link { color: var(--brand-700); font-weight: 600; }
.studio-app .icon-button { border-color: var(--line); border-radius: var(--r); color: var(--ink-2); box-shadow: var(--sh-xs); }
.studio-app .icon-button .icon { width: 20px; height: 20px; }

/* Cartões, painéis e notas */
.studio-app .panel { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-xs); }
.studio-app .panel-heading { padding: 20px 22px 16px; align-items: center; flex-wrap: wrap; }
.studio-app .panel-heading h2 { font-size: 16px; margin: 0; }
.studio-app .panel-heading p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.panel-title-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.studio-app .form-panel { padding: 24px; }
.studio-app .form-note { font-size: 13px; color: var(--ink-2); line-height: 1.65; background: var(--subtle); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.studio-app .inline-info { font-size: 13px; line-height: 1.65; color: var(--muted); }

/* Campos */
.studio-app input:not([type=checkbox]):not([type=radio]):not([type=color]), .studio-app select, .studio-app textarea, .login-page input:not([type=checkbox]):not([type=radio]), .login-page select { min-height: 42px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: var(--r); background-color: var(--surface); color: var(--ink); font-size: 14px; box-shadow: var(--sh-xs); transition: border-color .15s var(--ease),box-shadow .15s var(--ease); }
.studio-app textarea { line-height: 1.55; }
.studio-app select, .login-page select { -webkit-appearance: none; appearance: none; padding-right: 36px; background-image: url(data:image/svg+xml,%3Csvg\ xmlns=\'http://www.w3.org/2000/svg\'\ viewBox=\'0\ 0\ 24\ 24\'\ fill=\'none\'\ stroke=\'%235b6577\'\ stroke-width=\'2\'\ stroke-linecap=\'round\'\ stroke-linejoin=\'round\'%3E%3Cpath\ d=\'m6\ 9\ 6\ 6\ 6-6\'/%3E%3C/svg%3E); background-repeat: no-repeat; background-position: right 11px center; background-size: 16px; cursor: pointer; }
.studio-app input:not([type=checkbox]):not([type=radio]):hover, .studio-app select:hover, .studio-app textarea:hover { border-color: #b9c1cd; }
.studio-app input:not([type=checkbox]):not([type=radio]):focus, .studio-app select:focus, .studio-app textarea:focus, .login-page input:not([type=checkbox]):not([type=radio]):focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.studio-app input::placeholder, .studio-app textarea::placeholder, .login-page input::placeholder { color: #7c8698; }
.studio-app input:disabled, .studio-app select:disabled, .studio-app textarea:disabled, .studio-app input[readonly] { background-color: var(--subtle); color: var(--muted); box-shadow: none; }
.studio-app input[type=checkbox], .studio-app input[type=radio] { accent-color: var(--brand); width: 18px; height: 18px; }
.studio-app .form-panel label, .login-page .login-card label { font-size: 13.5px; font-weight: 620; color: var(--ink-2); }
.studio-app label small, .studio-app .form-panel small, .login-page .login-card small { font-size: 12.5px; color: var(--muted); font-weight: 400; line-height: 1.55; }

/* Tabelas */
.studio-app table { font-size: 13.5px; }
.studio-app th { background: var(--subtle); color: var(--muted); font-size: 11.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; padding: 11px 20px; border-bottom: 1px solid var(--line); }
.studio-app td { padding: 15px 20px; border-color: #eef0f3; color: var(--ink-2); }
.studio-app td strong { color: var(--ink); font-weight: 620; }
.studio-app td small { color: var(--muted); font-size: 12.5px; }
.studio-app tbody tr { transition: background-color .12s var(--ease); }
.studio-app tbody tr:hover td { background: #fafbfc; }
.studio-app .order-number { color: var(--ink); font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.studio-app .orders-table td:nth-child(2) { font-size: 13px; color: var(--muted); }
.studio-app tbody tr[hidden] { display: none; }

/* Selos e situação */
.studio-app .badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 640; letter-spacing: 0; line-height: 1.5; background: var(--ok-soft); color: var(--ok); border: 1px solid #abefc6; }
.studio-app .badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.studio-app .badge.neutral { background: #f2f4f7; color: #475467; border-color: #e4e7ec; }
.studio-app .badge.pending { background: var(--warn-soft); color: var(--warn); border-color: #fedf89; }
.studio-app .analytics-note .badge::before { display: none; }
.studio-app .order-status { font-size: 12px; font-weight: 640; padding: 3px 10px; border-radius: 999px; border: 1px solid transparent; }
.studio-app .order-status i { width: 6px; height: 6px; }
.studio-app .order-status.status-succeeded { color: var(--ok); background: var(--ok-soft); border-color: #abefc6; }
.studio-app .order-status.status-failed, .studio-app .order-status.status-refunded { color: var(--bad); background: var(--bad-soft); border-color: #fecdca; }
.studio-app .order-status.status-processing, .studio-app .order-status.status-requires_action { color: var(--warn); background: var(--warn-soft); border-color: #fedf89; }
.studio-app .order-status.status-created { color: #475467; background: #f2f4f7; border-color: #e4e7ec; }

/* Indicadores e gráfico */
.studio-app .metric-grid { gap: 16px; }
.studio-app .metric-card { padding: 20px; transition: box-shadow .2s var(--ease),transform .2s var(--ease); }
.studio-app .metric-card:hover { box-shadow: var(--sh-md); transform: translateY(-1px); }
.studio-app .metric-card>div { font-size: 13.5px; color: var(--muted); font-weight: 560; }
.studio-app .metric-card i { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-50); color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand-100); }
.studio-app .metric-card i .icon { width: 19px; height: 19px; }
.studio-app .metric-card>strong { font-weight: 740; letter-spacing: -.025em; color: var(--ink); margin: 14px 0 10px; font-variant-numeric: tabular-nums; }
.studio-app .metric-compare { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 640; color: var(--muted); }
.studio-app .metric-compare.positive { color: var(--ok); }
.studio-app .metric-compare.negative { color: var(--bad); }
.studio-app .metric-compare span { color: var(--muted); font-weight: 450; }
.studio-app .sales-chart { padding: 0 14px 4px; }
.studio-app .chart-grid { stroke: #eef0f3; stroke-width: 1; }
.studio-app .chart-label { fill: #667085; font-size: 12px; }
.studio-app .chart-bar { fill: var(--brand); opacity: .88; transform-box: fill-box; transform-origin: 50% 100%; animation: studio-grow .55s var(--ease) both; transition: opacity .15s var(--ease); }
.studio-app .chart-bar:hover { opacity: 1; fill: var(--brand-700); }
.studio-app .chart-bar:focus-visible { opacity: 1; fill: var(--brand-700); outline: none; stroke: var(--ink); stroke-width: 2; }
.studio-app .chart-legend { font-size: 12.5px; color: var(--muted); }
.studio-app .chart-legend i { background: var(--brand); border-radius: 3px; }
.studio-app .chart-footnote { font-size: 12.5px; color: var(--muted); }
.studio-app .distribution-track { height: 6px; background: #f2f4f7; }
.studio-app .distribution-track>span { background: linear-gradient(90deg,#14b8a6,var(--brand)); animation: studio-fill .7s var(--ease) both; transform-origin: left; }
.studio-app .status-distribution>div { font-size: 13.5px; }
.studio-app .status-distribution>div>span { color: var(--ink-2); }
.studio-app .currency-results button { border-radius: var(--r-lg); transition: border-color .15s var(--ease),box-shadow .15s var(--ease); }
.studio-app .currency-results button.active { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.studio-app .currency-results small { color: var(--muted); }

/* Acesso rápido e estados vazios */
.studio-app .quick-access-grid>button { border-radius: var(--r-lg); box-shadow: var(--sh-xs); transition: border-color .15s var(--ease),box-shadow .2s var(--ease),transform .2s var(--ease); }
.studio-app .quick-access-grid>button:hover { border-color: #c7cdd6; box-shadow: var(--sh-md); transform: translateY(-1px); }
.studio-app .quick-access-grid>button>span { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-50); color: var(--brand); }
.studio-app .quick-access-grid>button>span .icon { width: 21px; height: 21px; }
.studio-app .quick-access-grid strong { font-size: 14.5px; color: var(--ink); }
.studio-app .quick-access-grid small { font-size: 13px; color: var(--muted); }
.studio-app .quick-access-grid b { color: #98a2b3; transition: transform .2s var(--ease),color .2s var(--ease); }
.studio-app .quick-access-grid>button:hover b { color: var(--brand); transform: translate(2px,-2px); }
.studio-app .empty { padding: 56px 24px; }
.studio-app .empty-mark { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 16px; background: var(--brand-50); color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand-100); }
.studio-app .empty-mark .icon { width: 26px; height: 26px; }
.studio-app .empty h2 { font-size: 19px; }
.studio-app .empty p { font-size: 14.5px; color: var(--muted); max-width: 420px; }
.studio-app .table-empty>span { width: 48px; height: 48px; border-radius: 14px; background: #f2f4f7; color: #667085; }
.studio-app .table-empty>span .icon { width: 22px; height: 22px; }
.studio-app .table-empty strong { color: var(--ink-2); font-size: 14.5px; }
.studio-app .table-empty p, .studio-app .compact-empty { color: var(--muted); font-size: 13.5px; }

/* Busca local nas tabelas */
.table-search { position: relative; display: flex; align-items: center; min-width: 0; flex: 0 1 300px; margin-left: auto; }
.table-search .icon { position: absolute; left: 12px; width: 16px; height: 16px; color: #7c8698; pointer-events: none; }
.studio-app .table-search input { min-height: 38px !important; padding-left: 36px !important; font-size: 13.5px !important; border-radius: 999px !important; background: var(--subtle) !important; }
.studio-app .table-search input:focus { background: var(--surface) !important; }
.table-search-empty { margin: 0; padding: 18px 22px 22px; color: var(--muted); font-size: 13.5px; text-align: center; }

/* Abas do produto: controle segmentado; no celular quebram linha, sem abas escondidas */
.studio-app .product-tabs { background: #eef0f3; border-radius: 12px; padding: 4px; gap: 2px; box-shadow: inset 0 1px 2px rgba(16,24,40,.05); }
.studio-app .product-tab { border-radius: 9px; padding: 9px 15px; color: #475467; font-size: 13.5px; font-weight: 620; transition: background-color .15s var(--ease),color .15s var(--ease),box-shadow .15s var(--ease); }
.studio-app .product-tab:hover:not(:disabled):not(.active) { background: rgba(255,255,255,.6); color: var(--ink); }
.studio-app .product-tab.active { background: #fff; color: var(--ink); box-shadow: var(--sh-sm); }
.studio-app .product-tab:disabled { opacity: .45; }

/* Diálogo, detalhes e esqueletos */
.studio-app dialog { border: 0; border-radius: var(--r-xl); box-shadow: 0 32px 64px -16px rgba(16,24,40,.35); padding: 0; animation: studio-pop .22s var(--ease) both; }
.studio-app dialog::backdrop { background: rgba(16,24,40,.45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.studio-app details>summary { cursor: pointer; }
.studio-app .advanced-settings { border-radius: var(--r-lg); }
.studio-app .skeleton-card>span, .studio-app .skeleton-card>strong, .studio-app .skeleton-card>small { background: linear-gradient(90deg,#eef0f3 25%,#f7f8fa 45%,#eef0f3 65%)0 0/300% 100%; animation: studio-shimmer 1.4s ease-in-out infinite; border-radius: 6px; }
.studio-app .skeleton-chart { background: linear-gradient(90deg,#fff 30%,#fafbfc 50%,#fff 70%)0 0/300% 100%; animation: studio-shimmer 1.6s ease-in-out infinite; }
.studio-app .loading { color: var(--muted); font-size: 14.5px; }

/* Avisos: flutuam no canto, sempre visíveis perto de qualquer ação */
.studio-app #status.message { position: fixed; z-index: 60; right: 20px; bottom: 20px; width: min(440px,calc(100vw - 32px)); margin: 0; padding: 14px 18px 14px 50px; border: 1px solid var(--line); border-left: 4px solid var(--bad); border-radius: 12px; background: #fff; color: var(--ink); font-size: 14px; line-height: 1.5; box-shadow: var(--sh-lg); cursor: pointer; animation: studio-toast .32s var(--ease) both; }
.studio-app #status.message::before { content: "!"; position: absolute; left: 14px; top: 13px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--bad-soft); color: var(--bad); font-weight: 800; font-size: 14px; }
.studio-app #status.message.success { border-left-color: var(--ok); }
.studio-app #status.message.success::before { content: "✓"; background: var(--ok-soft); color: var(--ok); }
.studio-app .message:not(#status) { border-radius: var(--r); font-size: 14px; }
.login-page .message { border-radius: var(--r); font-size: 14px; animation: studio-in .25s var(--ease) both; }

/* Menu móvel: fundo escurecido que fecha ao tocar */
.nav-backdrop { display: none; }

/* Movimento de entrada do conteúdo */
.studio-app #content>* { animation: studio-in .34s var(--ease) both; }
.studio-app #content>*:nth-child(2) { animation-delay: .03s; }
.studio-app #content>*:nth-child(3) { animation-delay: .06s; }
.studio-app #content>*:nth-child(4) { animation-delay: .09s; }
.studio-app #content>*:nth-child(5) { animation-delay: .12s; }
.studio-app #content>*:nth-child(n+6) { animation-delay: .15s; }

/* Login e cadastro */
.login-page { background: #fff; }
.login-page .login-card { padding: 56px clamp(28px,7vw,96px); }
.login-page .login-card .wordmark { color: var(--ink); margin-bottom: 48px; }
.login-page .login-card .wordmark>span:first-child { color: var(--brand); }
.login-page .wordmark-label { color: var(--muted); border-color: var(--line-strong); font-size: 11px !important; letter-spacing: .22em !important; }
.login-page .eyebrow { color: var(--brand-700); font-size: 12px; letter-spacing: .12em; font-weight: 700; }
.login-page .login-card h1 { font-size: clamp(30px,3.2vw,40px); font-weight: 760; letter-spacing: -.03em; line-height: 1.12; color: var(--ink); }
.login-page .login-card>.muted { font-size: 15.5px; color: var(--muted); line-height: 1.6; }
.login-page .login-card label { gap: 7px; margin-bottom: 18px; }
.login-page .login-card input { min-height: 46px !important; font-size: 15px !important; }
.login-page .login-card .button.primary { width: 100%; min-height: 48px; font-size: 15px; justify-content: center; gap: 10px; margin-top: 4px; }
.login-page .login-footnote, .login-page .auth-switch { font-size: 13.5px; color: var(--muted); }
.login-page .login-art { background: radial-gradient(80% 60%at 20% 15%,rgba(45,212,191,.32),transparent 60%),radial-gradient(70% 60%at 85% 85%,rgba(14,116,144,.45),transparent 60%),linear-gradient(160deg,#0b1220 0%,#0e1b2e 55%,#0b2a33 100%); }
.login-page .art-grid { opacity: .9; mask-image: radial-gradient(80% 80%at 50% 40%,#000 40%,transparent 100%); -webkit-mask-image: radial-gradient(80% 80%at 50% 40%,#000 40%,transparent 100%); }
.login-page .art-word { color: #eef6ff; font-weight: 650; letter-spacing: -.035em; text-shadow: 0 10px 40px rgba(0,0,0,.25); animation: studio-in .6s .1s var(--ease) both; }
.login-page .art-word em { color: var(--brand-glow); font-style: normal; font-family: inherit; font-weight: 700; }
.login-page .login-art>span { color: #a9c4c4; font-size: 12px; letter-spacing: .22em; }

/* Prévia do checkout dentro do painel: mesmo vocabulário visual do checkout publicado */
.preview-page { font-family: ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif; background: #f5f6f8; color: #0f1729; -webkit-font-smoothing: antialiased; }
.preview-page .preview-banner { background: #fff6e9; color: #7a3e06; border-bottom-color: #f6dfbd; font-size: 12.5px; letter-spacing: 0; }
.preview-page .preview-card { border-color: #e4e7ec; border-radius: 16px; box-shadow: 0 1px 2px rgba(15,23,41,.06); }
.preview-page .preview-product-heading h1 { font-size: 26px; font-weight: 720; letter-spacing: -.02em; line-height: 1.18; }
.preview-page .preview-product-price { font-size: 30px; font-weight: 760; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.preview-page .preview-section-title h3 { font-size: 17px; font-weight: 680; }
.preview-page .preview-field>span { font-size: 13.5px; font-weight: 600; color: #344054; }
.preview-page .preview-field>div { min-height: 50px; border-color: #cfd5df; border-radius: 12px; color: #6b7485; font-size: 15px; display: flex; align-items: center; }
.preview-page .preview-addon { border: 1.5px dashed color-mix(in srgb,var(--accent) 38%,#fff); border-radius: 16px; background: color-mix(in srgb,var(--accent) 5%,#fff); }
.preview-page .preview-addon .eyebrow { color: var(--accent-text); font-size: 11.5px; letter-spacing: .08em; }
.preview-page .preview-addon h3 { font-size: 15.5px; }
.preview-page .preview-addon p, .preview-page .preview-addon>small { font-size: 13.5px; color: #344054; }
.preview-page .preview-addon>strong { color: var(--accent-text); font-size: 15.5px; }
.preview-page .preview-summary-line { font-size: 14.5px; color: #344054; }
.preview-page .preview-total strong { font-size: 24px; letter-spacing: -.02em; }
.preview-page .preview-cta { min-height: 56px; border-radius: 12px; font-size: 16.5px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 12px 26px -14px color-mix(in srgb,var(--accent) 45%,transparent); }
.preview-page .preview-disclaimer, .preview-page .preview-currency, .preview-page .preview-terms, .preview-page .preview-hint { font-size: 13px; color: #5b6577; }
.preview-page .preview-upsell h2 { font-size: 26px; font-weight: 730; letter-spacing: -.02em; }
.preview-page .preview-upsell p, .preview-page .preview-features li { font-size: 15px; color: #344054; }
.preview-page .preview-upsell-price { border: 1.5px solid color-mix(in srgb,var(--accent) 38%,#fff); border-radius: 16px; background: color-mix(in srgb,var(--accent) 5%,#fff); font-size: 13.5px; }
.preview-page .upsell-price { font-size: 34px; font-weight: 780; letter-spacing: -.025em; }
.preview-page .preview-legal { font-size: 12.5px; color: #5b6577; }
.preview-page .preview-next-step { font-size: 12px; letter-spacing: .1em; color: #5b6577; }

/* Responsivo */
.studio-app .metric-card>strong { font-size: clamp(21px,1.9vw,28px); overflow-wrap: anywhere; }
@media (max-width:1200px) {
  .studio-app .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .studio-app .metric-card>strong { font-size: 26px; }
  .studio-app th, .studio-app td { padding-left: 14px; padding-right: 14px; }
  .studio-app .orders-table td:first-child { max-width: 240px; }
  .studio-app .orders-table td small { max-width: 230px; }
  .studio-app .app-shell { grid-template-columns: 220px minmax(0,1fr); }
  .studio-app #workspace { padding: 28px 24px 40px; }
  .studio-app .topbar { padding-inline: 24px; }
}
@media (max-width:760px) {
  .studio-app .topbar { padding: 10px 16px; min-height: 58px; }
  .studio-app #workspace { padding: 22px 16px 32px; }
  .studio-app .app-footer { margin: 0 16px; }
  .studio-app h1, .studio-app .page-heading h1 { font-size: 24px; }
  .studio-app .page-heading p { font-size: 14px; }
  .studio-app .mobile-menu { width: 40px; min-width: 40px; height: 40px; }
  .studio-app .page-heading .button { font-size: 13.5px; padding: 9px 14px; min-height: 42px; }
  .studio-app .page-heading .button>span { display: inline; }
  .studio-app .sidebar { width: 272px; max-width: 86vw; }
  .studio-app.navigation-open .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 19; background: rgba(16,24,40,.45); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); animation: studio-fade .2s var(--ease) both; }
  .studio-app .product-tabs { flex-wrap: wrap; overflow: visible; }
  .studio-app .product-tab { flex: 1 1 auto; padding: 9px 12px; font-size: 13px; text-align: center; }
  .studio-app .metric-card { padding: 16px; }
  .studio-app .metric-card>strong { font-size: 20px; }
  .studio-app .metric-compare { font-size: 12px; }
  .studio-app .metric-compare span { display: block; }
  .studio-app .analytics-filters select, .studio-app .analytics-filters input { font-size: 13.5px; min-height: 42px; height: 42px; }
  .studio-app .panel-heading { padding: 18px 16px 14px; }
  .table-search { flex: 1 1 100%; margin-left: 0; }
}

/* Tabelas com rótulos viram cartões legíveis, sem rolagem lateral escondida */
@media (max-width:760px) {
  .studio-app table:has(td[data-label]) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .studio-app table:has(td[data-label]) { min-width: 0 !important; display: block; width: 100%; }
  .studio-app table:has(td[data-label]) tbody { display: block; width: 100%; }
  .studio-app table:has(td[data-label]) tr { display: block; width: 100%; padding: 12px 16px; border-top: 1px solid #eef0f3; }
  .studio-app table:has(td[data-label]) tr[hidden] { display: none; }
  .studio-app table:has(td[data-label]) td { width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 6px 0; border: 0; text-align: right; max-width: none !important; }
  .studio-app table:has(td[data-label]) td::before { content: attr(data-label); flex-shrink: 0; color: var(--muted); font-size: 12.5px; font-weight: 600; text-align: left; }
  .studio-app table:has(td[data-label]) td:first-child { display: block; text-align: left; padding-bottom: 8px; }
  .studio-app table:has(td[data-label]) td:first-child::before { display: none; }
  .studio-app table:has(td[data-label]) td small { white-space: normal !important; max-width: none !important; }
  .studio-app table:has(td[data-label]) td.align-right>* { display: inline; }
  .studio-app table:has(td[data-label]) td.align-right small { margin-left: 4px; }
  .studio-app table:has(td[data-label]) .row-actions { justify-content: flex-end; }
  .studio-app #status.message { right: 12px; left: 12px; bottom: 12px; width: auto; }
  .login-page .login-card { padding: 36px 22px; }
  .login-page .login-card .wordmark { margin-bottom: 36px; }
}
@media (prefers-reduced-motion:reduce) {
  .studio-app *, .studio-app *::before, .studio-app *::after, .login-page *, .login-page *::before, .login-page *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.studio-app #refresh-analytics .icon { width: 18px; height: 18px; }
@media (max-width:760px) {
  .studio-app .filter-selects { display: grid; grid-template-columns: minmax(0,1fr) auto; width: 100%; margin: 0; gap: 8px; }
  .studio-app .filter-selects>label:first-child { grid-column: 1/-1; }
  .studio-app .analytics-filter-detail>label { flex: 1 1 100%; }
}

/* Contraste e alvos de toque */
.studio-app .sidebar, .login-page .login-art { background-color: #0b1220; }
.studio-app .button, .login-page .button { min-height: 42px; }

/* Aprovação de contas: área exclusiva do master e confirmação de solicitação. */
.studio-app .master-stats .stat strong { margin-bottom: 0; }
.studio-app .master-filters { display: grid; grid-template-columns: minmax(160px,220px) minmax(200px,1fr); gap: 18px; padding: 0 22px 20px; }
.studio-app .master-filters label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.studio-app .master-accounts td:first-child { overflow-wrap: anywhere; }
.studio-app .master-accounts .row-actions { flex-wrap: wrap; }
.studio-app .master-protected { color: var(--brand-700); font-size: 12.5px; }
.studio-app .master-loading { padding: 0 22px; font-size: 13px; color: var(--muted); }
.login-page .registration-result { border: 1px solid #abefc6; background: var(--ok-soft); padding: 22px; border-radius: var(--r-lg); margin-bottom: 24px; }
.login-page .registration-result h2 { font-size: 23px; margin-bottom: 12px; }
.login-page .registration-result p { color: var(--ink-2); font-size: 14px; }
.login-page .registration-result p:last-child { margin-bottom: 0; }
@media (max-width:760px) {
  .studio-app .master-filters { grid-template-columns: 1fr; padding: 0 16px 18px; gap: 12px; }
  .studio-app .master-loading { padding-inline: 16px; }
}
.studio-app .nav-item { min-height: 44px; }
.studio-app .product-tab { min-height: 40px; }
@media (max-width:760px) {
  .studio-app .button, .studio-app .product-tab, .studio-app .text-button, .studio-app input:not([type=checkbox]):not([type=radio]):not([type=color]), .studio-app select { min-height: 44px; }
  .studio-app .icon-button { min-height: 44px; min-width: 44px; height: 44px; }
}
.studio-app .muted-dash { font-weight: 600; color: #667085; }
.studio-app .publish-requirements, .studio-app .publish-requirements * { color: #7a2e0e; }
.preview-page .preview-upsell-price, .preview-page .preview-upsell-price small { color: #475467; }
.preview-page .preview-external-upsell p, .preview-page .preview-external-upsell small { color: #344054; }

/* Integrações por produto: resumo leve e configuração em janela dedicada */
.integration-summary { min-width: 0; }
.integration-summary>p { color: var(--muted); line-height: 1.7; }
.integration-summary-details { display: grid; gap: 18px; margin: 25px 0; }
.integration-summary-details dt { color: var(--muted); font-size: 12px; margin-bottom: 5px; }
.integration-summary-details dd { margin: 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.integration-summary .row-actions { justify-content: flex-start; }
.integration-scope-note { background: var(--subtle); border: 1px solid var(--line); border-radius: var(--r); padding: 15px 17px; margin-top: 24px; }
.integration-scope-note strong { font-size: 13px; }
.integration-scope-note p { color: var(--muted); font-size: 12.5px; line-height: 1.7; margin: 7px 0 0; }
.studio-app .integration-dialog { width: min(620px,calc(100% - 28px)); max-height: calc(100dvh - 32px); overflow: auto; color: var(--ink); background: var(--surface); overscroll-behavior: contain; }
.integration-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.integration-dialog-heading>div { min-width: 0; }
.integration-dialog-heading h2 { font-size: 22px; line-height: 1.3; margin: 0 0 10px; }
.integration-dialog-heading p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.integration-dialog-heading .icon-button { flex-shrink: 0; }
.integration-dialog .button { max-width: 100%; white-space: normal; text-align: center; }
.integration-dialog .form-actions { flex-wrap: wrap; gap: 10px; }
.integration-dialog code { overflow-wrap: anywhere; font-size: 11.5px; }
.integration-dialog .advanced-settings { padding: 17px; }
.integration-dialog .message { overflow-wrap: anywhere; }
.integration-protocol { display: grid; gap: 8px; font-size: 12px; }
.integration-protocol>div { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 12px; }
.integration-protocol dt { color: var(--muted); }
.integration-protocol dd { margin: 0; overflow-wrap: anywhere; }
.integration-secret-help { display: block; margin-top: 10px; }
.integration-secret-result { padding: 16px 0 0; }
.integration-secret-result label { margin-bottom: 12px; }
@media (max-width:420px) {
  .studio-app .integration-dialog-inner { padding: 20px 18px; }
  .integration-dialog-heading { gap: 6px; }
  .integration-dialog-heading h2 { font-size: 19px; }
  .integration-dialog .advanced-settings { padding: 14px; }
  .integration-dialog .form-actions>.button { flex: 1 1 100%; }
  .integration-protocol>div { grid-template-columns: minmax(0,1fr); gap: 2px; }
}

/* Animações */
@keyframes studio-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes studio-fade{from{opacity:0}to{opacity:1}}
@keyframes studio-pop{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
@keyframes studio-toast{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
@keyframes studio-grow{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@keyframes studio-fill{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes studio-shimmer{from{background-position:100%0}to{background-position:0 0}}

/* Autenticador e recuperação: segredos ficam apenas nesta tela. */
.studio-app .mfa-card { max-width: none; margin-bottom: 24px; }
.mfa-card p { color: var(--muted); font-size: 14px; line-height: 1.75; }
.mfa-card h2 { margin: 12px 0 0; }
.mfa-card h3 { font-size: 17px; margin: 0 0 16px; }
.mfa-heading { display: flex; justify-content: space-between; align-items: start; gap: 18px; margin-bottom: 18px; }
.mfa-heading .badge { flex-shrink: 0; margin-top: 4px; }
.mfa-compact-form { max-width: 440px; margin: 24px 0; }
.mfa-setup { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 36px; margin-top: 25px; }
.mfa-qr { display: block; max-width: 100%; height: auto; background: white; border: 1px solid var(--line); border-radius: 12px; padding: 6px; }
#mfa-secret { font-family: ui-monospace,monospace; font-size: 13px; }
.mfa-card .form-actions { flex-wrap: wrap; }
.mfa-recovery-codes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; max-width: 800px; padding: 20px; margin: 20px 0; background: var(--subtle); border: 1px solid var(--line); border-radius: 12px; }
.mfa-recovery-codes code { font-family: ui-monospace,monospace; font-size: 14px; overflow-wrap: anywhere; }
.mfa-codes-result:focus { outline: none; }
.mfa-management { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-top: 25px; }
.mfa-management details { min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 18px; align-self: start; }
.mfa-management summary { cursor: pointer; font-size: 14px; font-weight: 600; line-height: 1.6; }
.mfa-management form { padding-top: 18px; }
.login-page .auth-secondary { display: block; width: 100%; padding: 11px 0; margin-top: 10px; text-align: center; }
.login-page .auth-recover { margin-top: 22px; text-align: center; font-size: 14px; }
.login-page input[name="code"] { font-family: ui-monospace,monospace; letter-spacing: .14em; }
@media (max-width:760px) {
  .studio-app .mfa-card { padding: 22px; }
  .mfa-heading { flex-wrap: wrap; }
  .mfa-setup, .mfa-management { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .mfa-recovery-codes { grid-template-columns: minmax(0,1fr); padding: 14px; gap: 14px; }
  .mfa-recovery-codes code { font-size: 12px; }
  .mfa-card .form-actions>.button { flex: 1 1 100%; }
}

/* Resultados: reembolsos, chargebacks, gráfico interativo e detalhe do pedido */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.incident-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: -6px 0 22px; }
.studio-app .incident-card>strong { display: flex; align-items: baseline; gap: 6px; }
.studio-app .incident-card>strong small { font-size: 14px; font-weight: 560; color: var(--muted); letter-spacing: 0; }
.studio-app .incident-card.refund i { background: var(--warn-soft); color: var(--warn); box-shadow: inset 0 0 0 1px #fedf89; }
.studio-app .incident-card.chargeback i { background: var(--bad-soft); color: var(--bad); box-shadow: inset 0 0 0 1px #fecdca; }
.incident-detail { margin: 0 0 8px; font-size: 13px; color: var(--muted); line-height: 1.55; }
.incident-detail b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.studio-app .chart-legend { gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.studio-app .chart-legend>span { display: inline-flex; align-items: center; gap: 6px; }
.studio-app .chart-legend i.refund { background: #f79009; border-radius: 50%; }
.studio-app .chart-legend i.chargeback { background: #f04438; border-radius: 50%; }
.chart-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; padding: 0 23px 6px; }
.chart-summary>div { min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--subtle); }
.chart-summary span { display: block; font-size: 12px; color: var(--muted); }
.chart-summary strong { font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.chart-summary small { margin-left: 6px; font-size: 12px; color: var(--muted); }
.sales-chart-wrap { position: relative; margin: 6px 12px 0; border-radius: var(--r); outline: none; touch-action: pan-y; }
.sales-chart-wrap:focus-visible { box-shadow: 0 0 0 3px var(--brand-100); }
.chart-canvas { height: var(--chart-height,270px); }
.studio-app .sales-chart-wrap .sales-chart { display: block; width: 100%; height: 100%; max-height: none; padding: 0; overflow: visible; }
.studio-app .chart-axis { stroke: #d0d5dd; }
.chart-future { fill: #f9fafb; }
.chart-fill-top { stop-color: var(--brand); stop-opacity: .2; }
.chart-fill-bottom { stop-color: var(--brand); stop-opacity: 0; }
.chart-area { animation: studio-fade .5s var(--ease) both; }
.chart-line { fill: none; stroke: var(--brand); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.chart-dot { fill: var(--surface); stroke: var(--brand); stroke-width: 2; }
.chart-now { stroke: #98a2b3; stroke-width: 1; stroke-dasharray: 3 3; }
.chart-now-label { fill: #667085; font-size: 11px; font-weight: 600; }
.chart-mark.refund { fill: #f79009; }
.chart-mark.chargeback { fill: #f04438; }
.chart-band { fill: var(--brand-50); }
.chart-cursor { stroke: var(--brand); stroke-width: 1; stroke-dasharray: 2 3; }
.chart-focus { fill: var(--surface); stroke: var(--brand); stroke-width: 2.5; }
.chart-hover[hidden], .chart-focus[hidden] { display: none; }
.chart-tooltip { position: absolute; top: 4px; left: 0; z-index: 2; width: max-content; min-width: 210px; max-width: 270px; padding: 10px 12px; border-radius: 10px; background: #101828; color: #fff; box-shadow: var(--sh-lg); font-size: 12.5px; line-height: 1.45; pointer-events: none; }
.chart-tooltip[hidden] { display: none; }
.chart-tooltip strong { display: block; margin-bottom: 7px; color: #fff; font-size: 12.5px; font-weight: 700; }
.chart-tooltip dl { display: grid; gap: 4px; margin: 0; }
.chart-tooltip dl>div { display: flex; justify-content: space-between; gap: 16px; }
.chart-tooltip dt { display: flex; align-items: center; gap: 6px; color: #d0d5dd; white-space: nowrap; }
.chart-tooltip dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chart-tooltip p { margin: 6px 0 0; color: #d0d5dd; font-size: 12px; }
.tip-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.tip-dot.sales { background: var(--brand-glow); }
.tip-dot.refund { background: #fdb022; }
.tip-dot.chargeback { background: #f97066; }
.studio-app .orders-clickable tbody tr { cursor: pointer; }
.order-open { display: inline-block; padding: 0; border: 0; background: none; font: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: color .15s var(--ease),text-decoration-color .15s var(--ease); }
.studio-app .orders-clickable tbody tr:hover .order-open, .order-open:focus-visible { color: var(--brand); text-decoration-color: currentColor; }
.row-open { width: 36px; color: #98a2b3; text-align: right; }
.row-open .icon { width: 16px; height: 16px; vertical-align: middle; transition: transform .15s var(--ease); }
.studio-app .orders-clickable tbody tr:hover .row-open { color: var(--brand); }
.studio-app .orders-clickable tbody tr:hover .row-open .icon { transform: translateX(2px); }
.row-open-head { width: 36px; }
.studio-app .order-status.status-chargeback { color: var(--bad); background: var(--bad-soft); border-color: #fecdca; }
.order-flag { display: inline-block; margin-left: 6px; padding: 2px 8px; border: 1px solid #fedf89; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-size: 11.5px; font-weight: 640; white-space: nowrap; }
.order-drawer { position: fixed; inset: 0 0 0 auto; width: min(480px,100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; border-left: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--sh-lg); overflow: auto; overscroll-behavior: contain; }
.order-drawer[open] { animation: order-drawer-in .22s var(--ease) both; }
.order-drawer::backdrop { background: rgba(16,24,40,.38); }
.order-drawer-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); background: var(--surface); }
.order-drawer-head span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.order-drawer-head h2 { margin: 2px 0 0; font-size: 19px; font-variant-numeric: tabular-nums; }
.order-drawer-body { display: grid; gap: 20px; padding: 18px 22px 30px; }
.order-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px; border: 1px solid var(--brand-100); border-radius: var(--r-lg); background: linear-gradient(135deg,var(--brand-50),var(--surface) 70%); }
.order-hero>div>span { display: block; font-size: 12.5px; color: var(--muted); }
.order-hero>.order-status { flex-shrink: 0; }
.order-hero strong { display: block; margin: 4px 0 2px; font-size: 26px; font-weight: 740; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.order-hero small { display: block; font-size: 12.5px; color: var(--muted); }
.order-section h3 { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.order-fields { margin: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.order-fields>div { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid #eef0f3; }
.order-fields>div:first-child { border-top: 0; }
.order-fields dt { font-size: 13px; color: var(--muted); }
.order-fields dd { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; font-size: 13.5px; color: var(--ink); }
.order-fields dd>span { min-width: 0; overflow-wrap: anywhere; }
.copy-chip { flex-shrink: 0; padding: 2px 10px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink-2); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.copy-chip:hover, .copy-chip:focus-visible { border-color: var(--brand); color: var(--brand); }
.order-items, .order-incidents { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.order-items li, .order-incidents li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-top: 1px solid #eef0f3; }
.order-items li:first-child, .order-incidents li:first-child { border-top: 0; }
.order-items li>div:first-child, .order-incidents li>div { min-width: 0; }
.order-items strong, .order-incidents strong { display: block; font-size: 13.5px; color: var(--ink); font-weight: 620; overflow-wrap: anywhere; }
.order-items small, .order-incidents small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.order-items li>div:last-child { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.order-items b, .order-incidents b { font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.order-incidents li { justify-content: flex-start; align-items: flex-start; }
.order-incidents li>b { margin-left: auto; }
.incident-icon { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--warn-soft); color: var(--warn); }
.order-incidents li.chargeback .incident-icon { background: var(--bad-soft); color: var(--bad); }
.incident-icon .icon { width: 16px; height: 16px; }
.order-note { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.order-note .icon { flex-shrink: 0; width: 15px; height: 15px; margin-top: 2px; }
.order-skeleton { display: grid; gap: 12px; }
.order-skeleton span { display: block; height: 72px; border-radius: var(--r); background: linear-gradient(90deg,#eef0f3 25%,#f7f8fa 45%,#eef0f3 65%)0 0/300% 100%; animation: studio-shimmer 1.4s ease-in-out infinite; }
.order-skeleton span:first-child { height: 96px; }
@keyframes order-drawer-in{from{opacity:.4;transform:translateX(24px)}to{opacity:1;transform:none}}
@media (max-width:980px) {
  .chart-summary { padding-inline: 18px; }
}
@media (max-width:760px) {
  .incident-grid { margin: -2px 0 16px; gap: 12px; }
  .studio-app .incident-card i { display: none; }
  .chart-summary { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; padding: 0 14px 4px; }
  .chart-summary>div { padding: 8px 10px; }
  .chart-summary strong { font-size: 13.5px; }
  .chart-summary small { display: block; margin: 0; }
  .sales-chart-wrap { margin: 4px 4px 0; }
  .chart-canvas { height: 230px; }
  .studio-app .chart-legend { justify-content: flex-start; }
  .studio-app table:has(td[data-label]) td.row-open, .row-open-head { display: none !important; }
  .order-drawer { width: 100vw; border-left: 0; }
  .order-drawer-head, .order-drawer-body { padding-inline: 16px; }
  .order-fields>div { grid-template-columns: 92px minmax(0,1fr); padding: 10px 12px; }
}
@media (max-width:600px) {
  .incident-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion:reduce) {
  .order-drawer[open], .chart-area { animation: none; }
}
.experience-panel{margin-bottom:24px}
.experience-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;padding:0 24px 24px}
.experience-summary>div{display:flex;flex-direction:column;gap:8px;min-width:0}
.experience-summary span{font-size:12px;color:var(--muted,#64748b)}
.experience-summary strong{font-size:25px;line-height:1.25;letter-spacing:-.04em}
.experience-summary small{font-size:11px;line-height:1.5;color:var(--muted,#64748b)}
.experience-devices{display:flex;flex-wrap:wrap;gap:12px 24px;padding:16px 24px;border-top:1px solid var(--line,#e2e8f0);font-size:12px;color:var(--muted,#64748b)}
.experience-devices b{color:var(--ink,#172f2b);margin-right:6px}
.experience-details{padding:0 24px 12px}
.experience-details summary{padding:12px 0;cursor:pointer;font-size:12px;font-weight:600}
.experience-details table{min-width:480px}
@media(max-width:700px){.experience-summary{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 16px 20px;gap:20px 16px}.experience-summary strong{font-size:23px}.experience-devices{padding:16px}.experience-details{padding:0 16px 12px}}

/* Visão geral repaginada — 12/10/2026: resumo em cartões, filtros recolhidos, celular primeiro */
.studio-app .dash-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.studio-app .dash-heading h1 { margin: 2px 0 0; font-size: 30px; font-weight: 760; letter-spacing: -.02em; line-height: 1.15; }
.studio-app .dash-greeting { font-size: 13px; color: var(--muted); }
.studio-app .dash-create { min-height: 44px; }
.studio-app .dash-toolbar { position: relative; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.studio-app .period-switch { display: flex; gap: 4px; padding: 4px; background: #e9edf1; border-radius: 12px; }
.studio-app .period-option { position: relative; display: block; }
.studio-app .period-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.studio-app .period-option span { display: grid; place-items: center; min-height: 36px; padding: 0 14px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: background-color .15s var(--ease),color .15s var(--ease); }
.studio-app .period-option input:checked + span { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(16,24,40,.12); }
.studio-app .period-option input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.studio-app .more-periods .period-option span { border: 1px solid var(--line-strong); background: var(--surface); }
.studio-app .more-periods .period-option input:checked + span { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.studio-app .toolbar-button { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
.studio-app .toolbar-button:hover { border-color: #b9c1cd; }
.studio-app .toolbar-button .icon { width: 18px; height: 18px; }
.studio-app .toolbar-button.icon-only { width: 44px; padding: 0; justify-content: center; }
.studio-app .filter-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12px; display: inline-grid; place-items: center; box-sizing: border-box; }
.studio-app .filter-panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; width: min(560px,100%); box-sizing: border-box; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-lg); padding: 16px 18px 18px; display: grid; gap: 14px; }
.studio-app .filter-panel[hidden], .studio-app .filter-backdrop[hidden] { display: none; }
.studio-app .filter-backdrop { display: none; }
.studio-app .filter-panel-head { display: flex; align-items: center; justify-content: space-between; }
.studio-app .filter-panel-head strong { font-size: 16px; }
.studio-app .more-periods { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; padding: 0; border: 0; }
.studio-app .more-periods legend { width: 100%; margin-bottom: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.studio-app .filter-dates { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)) auto; gap: 10px; align-items: end; }
.studio-app .filter-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.studio-app .filter-grid label, .studio-app .filter-dates label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.studio-app .filter-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.studio-app .kpi-row { display: grid; grid-template-columns: minmax(0,1.5fr) repeat(3,minmax(0,1fr)); gap: 16px; margin-bottom: 16px; }
.studio-app .hero-card { background: #0d3330; color: #fff; border-radius: 18px; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.studio-app .hero-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 600; color: #b7e6de; }
.studio-app .hero-card > strong { font-size: 36px; font-weight: 780; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.studio-app .hero-pill { flex-shrink: 0; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 10px; background: #5eead4; color: #0d3330; white-space: nowrap; }
.studio-app .hero-pill.down { background: #fecdca; color: #7a271a; }
.studio-app .hero-pill.neutral { background: rgba(255,255,255,.14); color: #d6f1ec; }
.studio-app .hero-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: #d6f1ec; }
.studio-app .hero-meta b { color: #fff; font-variant-numeric: tabular-nums; }
.studio-app .kpi-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; box-shadow: var(--sh-xs); }
.studio-app .kpi-card > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.studio-app .kpi-card > strong { font-size: 26px; font-weight: 760; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.studio-app .kpi-delta { font-size: 12px; font-weight: 700; color: var(--muted); }
.studio-app .kpi-delta.up { color: var(--ok); }
.studio-app .kpi-delta.down { color: var(--bad); }
.studio-app .dash-grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(280px,1fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.studio-app .dash-main, .studio-app .dash-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.studio-app .card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 18px 20px 0; }
.studio-app .card-head h2 { margin: 0; font-size: 16px; font-weight: 700; }
.studio-app .card-head > span { font-size: 13px; color: var(--muted); }
.studio-app .card-note { margin: 6px 20px 0; font-size: 12.5px; color: var(--muted); }
.studio-app .chart-panel { padding-bottom: 14px; margin: 0; }
.studio-app .chart-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 8px 20px 0; font-size: 13px; color: var(--muted); }
.studio-app .chart-stats span { display: inline-flex; align-items: baseline; gap: 6px; }
.studio-app .chart-stats small { font-size: 13px; }
.studio-app .chart-stats b { color: var(--ink); font-variant-numeric: tabular-nums; }
.studio-app .post-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.studio-app .post-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; box-shadow: var(--sh-xs); }
.studio-app .post-label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.studio-app .post-label .icon { width: 16px; height: 16px; }
.studio-app .post-card.refund .post-label { color: var(--warn); }
.studio-app .post-card.chargeback .post-label { color: var(--bad); }
.studio-app .post-card > strong { font-size: 26px; font-weight: 780; font-variant-numeric: tabular-nums; }
.studio-app .post-card > small { font-size: 12.5px; color: var(--muted); }
.studio-app .post-card .metric-compare { font-size: 12px; font-weight: 600; color: var(--muted); }
.studio-app .post-card .metric-compare.positive { color: var(--ok); }
.studio-app .post-card .metric-compare.negative { color: var(--bad); }
.studio-app .status-card, .studio-app .top-card { margin: 0; padding-bottom: 18px; }
.studio-app .status-bar { display: flex; gap: 2px; height: 12px; margin: 14px 20px 0; border-radius: 999px; overflow: hidden; background: #f2f4f7; }
.studio-app .status-seg.status-succeeded, .studio-app .status-legend .status-dot.status-succeeded { background: var(--brand); }
.studio-app .status-seg.status-failed, .studio-app .status-legend .status-dot.status-failed { background: #d92d20; }
.studio-app .status-seg.status-processing, .studio-app .status-legend .status-dot.status-processing { background: #dc6803; }
.studio-app .status-seg.status-requires_action, .studio-app .status-legend .status-dot.status-requires_action { background: #f79009; }
.studio-app .status-seg.status-created, .studio-app .status-legend .status-dot.status-created { background: #98a2b3; }
.studio-app .status-seg.status-refunded, .studio-app .status-legend .status-dot.status-refunded { background: #7a5af8; }
.studio-app .status-legend { list-style: none; margin: 14px 20px 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.studio-app .status-legend li { display: flex; align-items: center; gap: 8px; }
.studio-app .status-legend b { margin-left: auto; color: var(--ink); font-variant-numeric: tabular-nums; }
.studio-app .status-legend .status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.studio-app .top-list { list-style: none; margin: 12px 20px 0; padding: 0; display: grid; gap: 12px; }
.studio-app .top-list li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.studio-app .top-rank { width: 28px; height: 28px; flex-shrink: 0; border-radius: 8px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.studio-app .top-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.studio-app .top-name b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio-app .top-name small { font-size: 12px; color: var(--muted); }
.studio-app .top-value { font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.studio-app .status-card .compact-empty, .studio-app .top-card .compact-empty { padding: 12px 20px 0; }
.studio-app .recent-orders { margin-bottom: 16px; }
.studio-app .recent-orders .card-head { padding-bottom: 8px; align-items: center; }
.studio-app .order-list { list-style: none; margin: 0; padding: 0; }
.studio-app .order-list li { border-top: 1px solid #f0f2f5; }
.studio-app .order-list li[hidden] { display: none; }
.studio-app .order-row { width: 100%; display: grid; grid-template-columns: 36px minmax(0,1fr) auto minmax(96px,auto) 16px; align-items: center; gap: 14px; padding: 12px 20px; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.studio-app .order-row:hover { background: #fafbfc; }
.studio-app .order-row:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.studio-app .order-avatar { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: #f2f4f7; color: #475467; }
.studio-app .order-avatar.ok { background: var(--brand-50); color: var(--brand); }
.studio-app .order-avatar.bad { background: var(--bad-soft); color: var(--bad); }
.studio-app .order-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.studio-app .order-main b { font-size: 14px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio-app .order-main em { font-style: normal; color: var(--muted); font-weight: 600; }
.studio-app .order-main small { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.studio-app .order-state { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.studio-app .order-value { font-size: 14px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.studio-app .order-chevron { width: 16px; height: 16px; color: #98a2b3; }
.studio-app .order-row:hover .order-chevron { color: var(--brand); }
.studio-app .recent-orders .table-search { flex: 0 1 280px; }
.studio-app .experience-panel { margin-bottom: 16px; }
.studio-app .experience-toggle { display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 14px 20px; cursor: pointer; list-style: none; }
.studio-app .experience-toggle::-webkit-details-marker { display: none; }
.studio-app .experience-icon { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; }
.studio-app .experience-icon .icon { width: 18px; height: 18px; }
.studio-app .experience-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.studio-app .experience-title b { font-size: 15px; }
.studio-app .experience-title small { font-size: 12.5px; color: var(--muted); }
.studio-app .experience-chevron { width: 18px; height: 18px; color: var(--muted); transform: rotate(90deg); transition: transform .2s var(--ease); }
.studio-app .experience-panel[open] .experience-chevron { transform: rotate(-90deg); }
.studio-app .experience-body { border-top: 1px solid var(--line); padding-top: 4px; }
.studio-app .dash-info { margin: 4px 0 16px; color: var(--muted); font-size: 12.5px; }
.studio-app .dash-info summary { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; cursor: pointer; font-weight: 600; list-style: none; }
.studio-app .dash-info summary::-webkit-details-marker { display: none; }
.studio-app .dash-info summary .icon { width: 16px; height: 16px; }
.studio-app .dash-info p { margin: 4px 0 0; line-height: 1.7; max-width: 900px; }
.studio-app .setup-banner { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 16px; border: 1px solid #c4e8e1; border-radius: 16px; background: var(--brand-50); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.studio-app .setup-banner > span:first-child { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.studio-app .setup-banner > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.studio-app .setup-banner small { color: #2f5b56; font-size: 12.5px; }
.studio-app .skeleton-hero { min-height: 128px; background: #e3e9ec; }
.studio-app .skeleton-kpi { min-height: 128px; }
@media (max-width:1100px) {
  .studio-app .kpi-row { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .studio-app .kpi-row .hero-card, .studio-app .kpi-row .skeleton-hero { grid-column: 1 / -1; }
  .studio-app .dash-grid { grid-template-columns: minmax(0,1fr); }
  .studio-app .dash-side { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
}
@media (max-width:760px) {
  .studio-app .dash-heading { margin-bottom: 12px; }
  .studio-app .dash-heading h1 { font-size: 24px; }
  .studio-app .dash-create span { display: none; }
  .studio-app .dash-create { width: 44px; padding: 0; justify-content: center; }
  .studio-app .dash-toolbar { flex-wrap: nowrap; margin-bottom: 14px; }
  .studio-app .dash-toolbar .period-switch { flex: 1; min-width: 0; }
  .studio-app .dash-toolbar .period-switch .period-option { flex: 1; }
  .studio-app .dash-toolbar .period-option span { padding: 0 6px; }
  .studio-app .toolbar-label { display: none; }
  .studio-app #toggle-filters { width: 44px; padding: 0; justify-content: center; position: relative; }
  .studio-app #toggle-filters .filter-count { position: absolute; top: -6px; right: -6px; }
  .studio-app .filter-backdrop { display: block; position: fixed; inset: 0; z-index: 39; background: rgba(16,24,40,.45); }
  .studio-app .filter-panel { position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 82dvh; overflow-y: auto; border-radius: 20px 20px 0 0; padding: 16px 16px calc(18px + env(safe-area-inset-bottom)); }
  .studio-app .filter-grid, .studio-app .filter-dates { grid-template-columns: minmax(0,1fr); }
  .studio-app .filter-actions .button { flex: 1; }
  .studio-app .kpi-row { gap: 10px; margin-bottom: 12px; }
  .studio-app .hero-card { padding: 18px; border-radius: 20px; }
  .studio-app .hero-card > strong { font-size: 34px; }
  .studio-app .kpi-card { padding: 12px; border-radius: 16px; gap: 4px; }
  .studio-app .kpi-card > span { font-size: 12px; }
  .studio-app .kpi-card > strong { font-size: 17px; white-space: nowrap; overflow-wrap: normal; }
  .studio-app .kpi-vs { display: none; }
  .studio-app .kpi-delta { font-size: 11.5px; }
  .studio-app .dash-grid { gap: 12px; margin-bottom: 12px; }
  .studio-app .dash-main { gap: 12px; }
  .studio-app .dash-side { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  .studio-app .card-head { padding: 16px 16px 0; }
  .studio-app .chart-stats { padding: 8px 16px 0; font-size: 12.5px; gap: 4px 14px; }
  .studio-app .chart-stats small { font-size: 12.5px; }
  .studio-app .post-grid { gap: 10px; }
  .studio-app .post-card { padding: 12px 14px; }
  .studio-app .post-card > strong { font-size: 22px; }
  .studio-app .status-bar, .studio-app .status-legend, .studio-app .top-list { margin-inline: 16px; }
  .studio-app .status-legend { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px 14px; font-size: 13px; }
  .studio-app .order-row { grid-template-columns: 36px minmax(0,1fr) auto; grid-template-areas: "avatar main value" "avatar main state"; gap: 2px 12px; padding: 10px 16px; }
  .studio-app .order-avatar { grid-area: avatar; }
  .studio-app .order-main { grid-area: main; }
  .studio-app .order-value { grid-area: value; }
  .studio-app .order-state { grid-area: state; }
  .studio-app .order-state .order-status { font-size: 11px; padding: 2px 8px; }
  .studio-app .order-state .order-flag { display: none; }
  .studio-app .order-chevron { display: none; }
  .studio-app .recent-orders .card-head { flex-wrap: wrap; }
  .studio-app .recent-orders .table-search { flex: 1 1 100%; margin: 0; }
  .studio-app .experience-toggle { padding: 12px 16px; }
}
/* A animação de entrada cria um contêiner para elementos fixos: a gaveta de filtros do celular precisa da tela inteira. */
.studio-app #content > .dash-toolbar { animation: none; }
/* Líquido da Whop: aviso de pendência e conta do pedido */
.studio-app .hero-pending { font-size: 12.5px; color: #b7e6de; }
.studio-app .top-value small { font-weight: 600; color: var(--muted); font-size: 11.5px; }
.studio-app .charge-list { display: grid; gap: 10px; }
.studio-app .charge-card { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 6px; }
.studio-app .charge-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 2px; }
.studio-app .charge-head strong { font-size: 14px; }
.studio-app .charge-line { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-2); }
.studio-app .charge-line b { font-variant-numeric: tabular-nums; font-weight: 600; }
.studio-app .charge-line.net { padding-top: 6px; border-top: 1px dashed var(--line); color: var(--ink); }
.studio-app .charge-line.net b { font-weight: 800; }
.studio-app .item-net { font-size: 12px; color: var(--muted); white-space: nowrap; }
/* Etapa 3: Pedidos, Resultados e barra inferior do app no celular */
.studio-app .orders-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.studio-app .orders-summary > div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: grid; gap: 4px; min-width: 0; }
.studio-app .orders-summary span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.studio-app .orders-summary strong { font-size: 20px; font-weight: 750; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.studio-app .order-chips { display: flex; gap: 8px; padding: 4px 20px 12px; overflow-x: auto; scrollbar-width: none; }
.studio-app .order-chips::-webkit-scrollbar { display: none; }
.studio-app .order-chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.studio-app .order-chip b { font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.studio-app .order-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.studio-app .order-chip[aria-pressed="true"] b { color: #d0d5dd; }
.studio-app .order-list .order-day { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 20px 6px; background: var(--subtle, #f9fafb); font-weight: 700; font-size: 13px; color: var(--ink); }
.studio-app .order-list .order-day small { font-weight: 600; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.studio-app .product-results, .studio-app .period-results { margin-bottom: 16px; overflow: hidden; }
.studio-app .product-results table, .studio-app .period-results table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.studio-app .product-results th, .studio-app .period-results th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 650; padding: 8px 20px; border-bottom: 1px solid var(--line); }
.studio-app .product-results td, .studio-app .period-results td { padding: 12px 20px; border-top: 1px solid #f0f2f5; font-variant-numeric: tabular-nums; vertical-align: middle; }
.studio-app .product-results .align-right, .studio-app .period-results .align-right { text-align: right; white-space: nowrap; }
.studio-app .product-results td small, .studio-app .period-results td small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.studio-app .share-cell { display: flex; align-items: center; gap: 10px; min-width: 140px; }
.studio-app .share-bar { flex: 1; height: 8px; border-radius: 999px; background: #eef1f4; overflow: hidden; }
.studio-app .share-bar i { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.studio-app .share-cell small { display: inline !important; min-width: 44px; text-align: right; }
.studio-app .tabbar { display: none; }
.studio-app .period-table .pd-unit { display: none; }
@media (max-width:760px) {
  .studio-app .orders-summary { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 12px; }
  .studio-app .orders-summary > div { padding: 12px; border-radius: 14px; }
  .studio-app .orders-summary strong { font-size: 17px; }
  .studio-app .order-chips { padding: 4px 16px 12px; }
  .studio-app .order-list .order-day { padding: 12px 16px 6px; }
  .studio-app .product-results td, .studio-app .period-results td { padding: 6px 0; }
  .studio-app .share-cell { min-width: 0; width: 60%; }
  .studio-app .period-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .studio-app .period-table, .studio-app .period-table tbody { display: block; width: 100%; }
  .studio-app .period-table tr { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2px 12px; padding: 10px 16px; border-top: 1px solid #f0f2f5; }
  .studio-app .period-results .period-table td { padding: 0; border: 0; font-size: 13px; }
  .studio-app .period-table .pd-when { grid-area: 1 / 1; }
  .studio-app .period-table .pd-net { grid-area: 1 / 2; font-weight: 700; }
  .studio-app .period-table .pd-net small { display: inline; margin-left: 4px; }
  .studio-app .period-table .pd-orders { grid-area: 2 / 1; text-align: left; color: var(--muted); font-size: 12.5px; }
  .studio-app .period-table .pd-refund, .studio-app .period-table .pd-chargeback { grid-column: 1 / -1; text-align: left; font-size: 12.5px; }
  .studio-app .period-table .pd-refund { color: #b54708; }
  .studio-app .period-table .pd-chargeback { color: #b42318; }
  .studio-app .period-table .pd-none { display: none; }
  .studio-app .period-table .pd-unit { display: inline; }
  /* A barra fica fora de #content: a animação de entrada do conteúdo não a prende. */
  .studio-app .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 18; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-top: 1px solid var(--line); }
  .studio-app .tab-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; padding: 0; border: 0; border-radius: 12px; background: none; color: var(--muted); font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
  .studio-app .tab-item .icon { width: 22px; height: 22px; }
  .studio-app .tab-item.active { color: var(--brand); font-weight: 750; }
  .studio-app .main-shell { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .studio-app .mobile-menu { display: none; }
  .studio-app .editor-actions { bottom: calc(66px + env(safe-area-inset-bottom)); }
  .studio-app #status.message { bottom: calc(78px + env(safe-area-inset-bottom)); }
}
.studio-app .orders-summary small { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.studio-app .product-results td b { overflow-wrap: anywhere; }
.studio-app .tab-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Área segura lateral do iPhone deitado (viewport-fit=cover). Sem notch, env() vale 0. */
.studio-app .main-shell { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.studio-app .sidebar { padding-left: max(14px, env(safe-area-inset-left)); }
@media (max-width:760px) {
  .studio-app .tabbar { padding-left: max(6px, env(safe-area-inset-left)); padding-right: max(6px, env(safe-area-inset-right)); }
}
@media (max-width:360px) {
  .studio-app .tab-item { font-size: 10px; }
}

/* Etapa 4: instalação do app (PWA) */
.studio-app .install-entry { display: flex; align-items: center; gap: 10px; width: 100%; margin-bottom: 12px; padding: 10px 12px; border: 1px solid rgba(94,234,212,.28); border-radius: 12px; background: rgba(94,234,212,.08); color: #e6fffa; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
.studio-app .install-entry[hidden] { display: none; }
.studio-app .install-entry .icon { width: 18px; height: 18px; color: var(--brand-glow); }
.studio-app .install-sheet { width: min(420px,calc(100vw - 32px)); max-width: 100vw; box-sizing: border-box; margin: auto; padding: 12px 20px 22px; border: 0; border-radius: 24px; background: #fff; color: var(--ink, #101828); box-shadow: 0 -12px 40px rgba(16,24,40,.25); font-family: var(--font, system-ui, sans-serif); }
.studio-app .install-sheet[open] { display: flex; flex-direction: column; gap: 16px; }
.studio-app .install-sheet::backdrop { background: rgba(16,24,40,.5); }
.studio-app .install-sheet .install-handle { align-self: center; width: 40px; height: 5px; border-radius: 999px; background: #d0d5dd; }
.studio-app .install-sheet .install-head { display: flex; align-items: center; gap: 14px; }
.studio-app .install-sheet .install-head img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 6px 16px rgba(8,127,117,.35); }
.studio-app .install-sheet .install-head div { display: grid; gap: 2px; }
.studio-app .install-sheet .install-head strong { font-size: 19px; font-weight: 750; }
.studio-app .install-sheet .install-head small { font-size: 13px; color: var(--muted, #5b6577); }
.studio-app .install-sheet .install-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.studio-app .install-sheet .install-perks li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2, #344054); }
.studio-app .install-sheet .install-perks span { width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; border-radius: 9px; background: #ecf7f5; color: var(--brand, #087f75); }
.studio-app .install-sheet .install-perks .icon { width: 17px; height: 17px; }
.studio-app .install-sheet .install-steps { background: #f9fafb; border: 1px solid var(--line, #e4e7ec); border-radius: 16px; padding: 14px; font-size: 13px; color: var(--ink-2, #344054); }
.studio-app .install-sheet .install-steps ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.studio-app .install-sheet .button.primary { min-height: 50px; border-radius: 14px; font-size: 16px; }
.studio-app .install-sheet .text-button { align-self: center; min-height: 44px; }
@media (max-width:760px) {
  .studio-app .install-sheet { width: 100vw; margin: auto 0 0; border-radius: 26px 26px 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
}
/* Etapa 5: notificações de venda */
.studio-app #notify-app[aria-pressed="true"] { background: rgba(94,234,212,.16); border-color: rgba(94,234,212,.5); }
.studio-app #notify-app:disabled { opacity: .7; cursor: not-allowed; }

/* Checkout v2: cronômetro, banner e foto do produto (18/10/2026) */
.design-fieldset { border: 0; border-top: 1px solid var(--line); padding: 16px 0 0; margin: 16px 0 0; min-width: 0; }
.design-fieldset legend { font-weight: 650; padding: 0 6px 0 0; }
.design-image { display: grid; gap: 8px; padding: 16px 0 0; margin-top: 16px; border-top: 1px solid var(--line); }
.design-image-label { font-weight: 650; }
.design-image img { max-width: 100%; max-height: 160px; width: auto; justify-self: start; border-radius: 10px; border: 1px solid var(--line); background: var(--page, #f5f6f8); }
.design-image[data-design-image="avatar"] img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.design-image-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.design-image-actions .button { cursor: pointer; }
.preview-timer-clock { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; font-weight: 700; }
.preview-timer-clock span { display: inline-grid; place-items: center; min-width: 38px; height: 36px; border-radius: 6px; background: color-mix(in srgb, currentColor 16%, transparent); font-size: 20px; }
.preview-timer p { margin: 8px 0 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.preview-banner-image { display: block; width: 100%; height: auto; margin-bottom: 14px; border-radius: 12px; }
.preview-avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.preview-v2 .preview-timer { margin: 0 0 14px; padding: 12px 16px 14px; border-radius: 12px; background: var(--timer-bg); color: var(--timer-ink); text-align: center; }
.preview-page .preview-v2 .preview-product-heading { display: flex; align-items: center; gap: 14px; }
.preview-page .preview-v2 .preview-product-heading h1 { margin: 0 0 4px; font-size: 17px; font-weight: 620; line-height: 1.3; }
.preview-page .preview-v2 .preview-product-price { font-size: 26px; }

/* Manual Meta history is isolated from product settings and sales reports. */
.meta-history-panel { padding: 24px; }
.meta-history-panel .card-head { padding: 0; margin-bottom: 12px; }
.meta-history-panel p { margin: 12px 0 20px; }
#mh-form { display: grid; gap: 18px; margin-top: 24px; }
#mh-form > label, #mh-form .form-grid > label { display: grid; gap: 8px; min-width: 0; }
.meta-history-products { display: grid; gap: 10px; max-height: 320px; overflow: auto; border: 1px solid #d9dee7; border-radius: 12px; padding: 16px; min-width: 0; }
.meta-history-products label.check { display: flex; gap: 10px; align-items: center; margin: 0; overflow-wrap: anywhere; }
.meta-history-products input { flex: 0 0 auto; margin: 0; }
#mh-form .form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
#mh-preview:not(:empty) { padding: 14px; border-radius: 10px; background: #f3f6f8; }
#mh-results { margin-top: 14px; overflow-wrap: anywhere; }
#mh-results li { margin-bottom: 10px; }
.meta-history-panel h3 { margin: 28px 0 14px; }
@media (max-width: 540px) { .meta-history-panel { padding: 16px; } #mh-form .form-grid { grid-template-columns: 1fr; } }

.preview-product-photo { display:block; width:100%; max-width:589px; max-height:420px; height:auto; object-fit:contain; margin:18px auto; }
.preview-product-quantity { display:inline-block; border-radius:6px; padding:4px 8px; background:#f1f5f3; color:#182521; font-size:13px; font-weight:600; }
.design-product-fields .design-image img { width:100%; max-width:400px; height:auto; max-height:240px; object-fit:contain; border-radius:0; }

.meta-pixel-row { display:grid; gap:12px; min-width:0; padding:16px; margin-bottom:14px; border:1px solid var(--line); border-radius:12px; }
.meta-pixel-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.meta-pixel-summary { display:grid; gap:10px; list-style:none; padding:0; margin:16px 0; }
.meta-pixel-summary li { display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:space-between; padding:12px; border:1px solid var(--line); border-radius:10px; }
.meta-pixel-summary small { display:block; margin-top:4px; }
#meta-pixel-fields { min-width:0; }

/* Catalog bulk editor: keep selection and optional changes compact. */
#bulk-panel .field-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:16px; margin:16px 0; }
#bulk-panel .check-label { display:flex; align-items:flex-start; gap:10px; margin:18px 0; }
#bulk-panel .check-label input { width:18px; height:18px; min-height:18px; flex:0 0 18px; margin:2px 0 0; }
#bulk-panel > .table-wrap { max-height:380px; overflow:auto; }
#bulk-panel hr { border:0; border-top:1px solid var(--line,#e2e8f0); margin:24px 0; }
#bulk-panel #bulk-feedback:empty { display:none; }
#bulk-panel #bulk-results p { overflow-wrap:anywhere; }
#bulk-panel .field-grid[hidden] { display:none; }
@media(max-width:600px) { #bulk-panel .field-grid { grid-template-columns:1fr; } }
