/* Workspace presentation. Conversion, billing and document rules live elsewhere. */
.authenticated{--bg:#eef1f5;--surface:#fff;--ink:#172235;--muted:#5e6b7e;--line:#d9e0e9;--soft:#f3f6fb;--radius:14px;--action-soft:color-mix(in srgb,var(--primary) 7%,var(--surface));font-size:14px;line-height:1.55}
.authenticated :is(h1,h2,h3){color:var(--ink);letter-spacing:-.025em}.authenticated h1{font-size:30px;font-weight:700;line-height:1.2}.authenticated h2{font-size:21px;font-weight:650}.authenticated p{line-height:1.65}
.authenticated :is(.button,.icon-button,.ui-icon-action,input,select,textarea){border-radius:9px}.authenticated .button{gap:8px;min-height:46px;font-weight:650;box-shadow:none;transition:background .15s,box-shadow .15s}.authenticated .button:hover{transform:none;filter:brightness(.96);box-shadow:0 3px 9px #15244510}.authenticated .button.secondary{background:var(--surface);color:var(--ink);border:1px solid var(--line)}
.authenticated :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid var(--primary);outline-offset:3px}.authenticated .button:disabled{filter:none;box-shadow:none}.authenticated .next-action-pulse{animation:none}.authenticated .button.next-action-pulse{box-shadow:0 3px 10px color-mix(in srgb,var(--primary) 18%,transparent)}
.authenticated :is(.panel,.converter-card){border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 2px 6px #15244504}.authenticated :is(input:not([type=checkbox]):not([type=radio]),textarea,select){border:1px solid var(--line);background:var(--surface);color:var(--ink);min-height:42px}.authenticated .eyebrow{font-size:11px;font-weight:650;letter-spacing:.09em;color:var(--muted)}
.authenticated .sidebar{padding:28px 14px 16px;background:var(--surface)}.authenticated .sidebar>.brand{margin-bottom:28px;gap:9px}.authenticated .brand small{font-size:7.5px;letter-spacing:.65px;white-space:nowrap}.authenticated .brand-mark{flex:none;border:0;border-radius:12px;width:36px;height:36px;color:#473b09}
.authenticated .side-nav{gap:14px}.authenticated .sidebar .nav-group{margin:0}.authenticated .nav-group>span{font-size:10px;letter-spacing:.09em;padding:0 14px 6px}.authenticated .side-nav a{min-height:40px;font-size:13px;padding:10px 12px;border-radius:9px;color:var(--muted);gap:10px;border-left:0}.authenticated .side-nav a .icon{width:18px;height:18px}.authenticated .side-nav a.active,.authenticated .side-nav a[href*="page=converter"]{background:var(--action-soft);color:var(--ink);border-left:0;box-shadow:none;font-weight:650}.authenticated .side-nav a.active{box-shadow:inset 3px 0 var(--primary)}.authenticated .side-nav a:hover{background:var(--soft);color:var(--ink)}
.authenticated .workspace-header{box-shadow:none;background:var(--surface);height:68px}.authenticated .workspace-context{color:var(--ink);font-size:13px;font-weight:600}.authenticated .header-help{color:var(--muted);font-size:13px}.authenticated .portal-top-actions{position:static;padding:10px 30px;min-height:48px;background:var(--bg);border:0;justify-content:flex-end}.authenticated .portal-top-actions>.button{margin-right:auto;font-size:12px;min-height:34px}.authenticated .portal-addon{border:0;background:transparent;color:var(--muted);padding:0;gap:8px}.authenticated .portal-addon b{display:inline;color:var(--primary);font-size:12px;margin-left:8px;font-weight:650}.authenticated .portal-addon .icon{width:17px;height:17px}.authenticated .portal-addon span{font-size:12px}
.authenticated[data-workspace-page=converter] .portal-top-actions>.button,.authenticated[data-workspace-page=dashboard] .portal-top-actions>.button{display:none}.authenticated .portal-top-actions:has(>.button:only-child){display:none}
.authenticated .app-shell,.authenticated .admin-shell{padding-top:22px;padding-bottom:44px}.authenticated .page-head{margin-bottom:24px}.authenticated .page-head p{margin-top:7px;color:var(--muted)}.authenticated .preview-bar{border-radius:0;font-size:12px;padding-block:10px}.authenticated .preview-bar .button{min-height:36px;font-size:12px}
/* Dashboard: one starting point and useful supporting actions. */
.authenticated .dashboard-start{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:38px;align-items:center;padding:32px;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:0 3px 9px #15244505}.dashboard-start h2{font-size:28px!important;line-height:1.25;margin:9px 0 12px}.dashboard-start p{max-width:55ch}.dashboard-start .action-row{display:flex;align-items:center;gap:22px;flex-wrap:wrap;margin-top:24px}.dashboard-start .action-row>a:not(.button){font-size:13px;font-weight:600}.dashboard-balance{border-left:1px solid var(--line);padding-left:32px;display:grid;gap:5px}.dashboard-balance>span{font-size:12px;color:var(--muted)}.dashboard-balance strong{font-size:44px;line-height:1.15;letter-spacing:-.045em;font-weight:650;color:var(--ink)}.dashboard-balance a{font-size:12px;margin-top:12px;text-decoration:underline;text-underline-offset:3px}
.dashboard-path{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:22px 0 32px;padding:0 8px;list-style:none}.dashboard-path li{display:flex;gap:12px;align-items:flex-start}.dashboard-path .path-number{color:var(--muted);background:var(--surface);border:1px solid var(--line);border-radius:50%;font-size:11px;min-width:28px;height:28px;display:grid;place-items:center}.dashboard-path b{display:block;font-size:13px;color:var(--ink);font-weight:600}.dashboard-path p{font-size:12px;line-height:1.5;margin-top:4px}
.dashboard-section-head{display:flex;justify-content:space-between;align-items:center;margin:10px 0 12px}.authenticated .dashboard-section-head h2{font-size:17px}.authenticated .portal-tiles{gap:12px;margin:0 0 24px;grid-template-columns:repeat(4,minmax(0,1fr))}.authenticated .portal-tile{padding:20px;border-radius:12px;min-height:150px;gap:10px;transition:border-color .15s,box-shadow .15s}.authenticated .portal-tile:hover{background:var(--surface);box-shadow:0 3px 10px #15244508;border-color:var(--primary)}.portal-tile-top{display:flex;align-items:center;justify-content:space-between;color:var(--muted)}.authenticated .portal-tile strong{font-size:15px;font-weight:650}.authenticated .portal-tile small{font-size:12px;line-height:1.5}.authenticated .portal-tile .icon{width:19px;height:19px}
.authenticated .portal-onboarding{display:flex;align-items:flex-start;gap:18px;border-radius:12px;padding:22px;margin:22px 0;background:var(--surface)}.portal-onboarding>.icon{margin-top:3px;color:var(--muted);width:24px;height:24px}.authenticated .portal-onboarding h2{font-size:17px;font-weight:650}.authenticated .portal-onboarding p{font-size:13px;max-width:85ch}.portal-onboarding details{font-size:12px;color:var(--muted);margin-top:10px}.portal-onboarding summary{cursor:pointer;color:var(--ink)}.portal-onboarding .action-row{display:flex;flex-wrap:wrap;gap:16px;align-items:center;margin-top:14px;font-size:13px}.portal-onboarding .button{min-height:38px;font-size:12px}.authenticated .sd-referral{border-left:1px solid var(--line);padding:24px;gap:30px}.authenticated .sd-referral h2{font-size:18px;line-height:1.4;margin:5px 0 8px}.authenticated .sd-referral p{font-size:13px}.authenticated .sd-referral #copyReferral{background:var(--soft);color:var(--ink);border:1px solid var(--line)}
/* Conversion: a predictable three-step path. */
.authenticated .converter-card{padding:28px;max-width:1260px;margin-inline:auto}.authenticated .converter-toolbar{border:0;margin-bottom:22px;padding:0;align-items:flex-start}.converter-toolbar h1{font-size:28px}.converter-intro{font-size:13px;margin-top:8px}.authenticated .quota-small{display:flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid var(--line);background:var(--soft);border-radius:8px;font-size:11px;white-space:nowrap}.authenticated .quota-small b{font-size:15px;color:var(--ink)}
.conversion-steps{display:grid;grid-template-columns:repeat(3,1fr);list-style:none;margin:0 0 26px;padding:0;border-bottom:1px solid var(--line);gap:18px}.conversion-steps li{display:flex;align-items:center;gap:9px;padding:0 0 16px;color:var(--muted);font-size:12px;font-weight:550;position:relative}.conversion-steps li>span{border:1px solid var(--line);border-radius:50%;width:26px;height:26px;display:grid;place-items:center;flex:none;font-size:11px}.conversion-steps .current{color:var(--ink);font-weight:650}.conversion-steps .current:after{content:"";position:absolute;bottom:-1px;left:0;right:0;background:var(--primary);height:2px}.conversion-steps .current>span{background:var(--primary);color:var(--brand-ink,#fff);border-color:var(--primary)}.conversion-steps .complete>span{color:var(--good);background:color-mix(in srgb,var(--good) 8%,var(--surface));border-color:color-mix(in srgb,var(--good) 30%,var(--line))}
.authenticated .platform-choice-heading{font-size:14px;font-weight:650;color:var(--ink);margin-bottom:12px}.authenticated .manual-platforms{gap:10px;margin-bottom:18px}.authenticated .manual-platforms button{border:1px solid var(--line)!important;background:var(--surface)!important;padding:15px!important;border-radius:10px!important;min-height:80px!important;box-shadow:none!important;display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;column-gap:12px!important;align-items:center!important;text-align:left!important}.authenticated .manual-platforms button[aria-pressed=true]{border-color:var(--primary)!important;background:var(--action-soft)!important;box-shadow:inset 0 0 0 1px var(--primary)!important}.authenticated .manual-platforms .platform-emblem{grid-row:1 / 3;width:34px;height:34px;font-size:15px;border-radius:9px}.authenticated .manual-platforms .platform-name{font-size:14px;color:var(--ink);font-weight:600}.authenticated .manual-platforms small{font-size:11px;line-height:1.4;color:var(--muted);margin:3px 0 0!important;grid-column:2}.authenticated .manual-platforms button:hover:not(:disabled){border-color:var(--primary)!important;transform:none}.authenticated .manual-platforms button:disabled{opacity:.65}
.authenticated .platform-rule,.authenticated .platform-rule:has(a[hidden]){display:block;padding:0 0 20px;border:0;background:none;margin:0}.authenticated .platform-rule b{display:block;font-size:13px;color:var(--ink);font-weight:600;margin-bottom:4px}.authenticated .platform-rule p{display:block;font-size:12px;max-width:90ch;color:var(--muted);line-height:1.6}.authenticated .platform-rule a{display:inline-block;font-size:12px;margin-top:6px;text-decoration:underline;text-underline-offset:3px}.authenticated .platform-rule a[hidden]{display:none}
.authenticated .conversion-feedback{padding:14px 16px;border:1px solid var(--line);border-radius:9px;background:var(--soft);margin:0 0 14px;gap:12px;box-shadow:none}.authenticated .conversion-feedback b{font-size:14px;font-weight:600}.authenticated .conversion-feedback small{font-size:12px;line-height:1.5;margin-top:3px;color:var(--muted)}.authenticated .feedback-symbol{width:26px;height:26px;min-width:26px}.authenticated .conversion-feedback.neutral .feedback-symbol{background:transparent;color:var(--muted)}.authenticated .feedback-track{display:none}.authenticated .conversion-feedback.ok{background:color-mix(in srgb,var(--good) 5%,var(--surface));border-color:color-mix(in srgb,var(--good) 18%,var(--line))}.authenticated .conversion-feedback.warning{background:#fff8e9;border-color:#e8cf9b;color:#694715}.authenticated .converter-foot{font-size:12px;line-height:1.5;margin-top:22px;padding-top:16px;color:var(--muted)}.authenticated .engine-frame{display:block;width:100%;border:0;min-height:0}
.conversion-estimate{font-size:12px;color:var(--muted);margin:0 0 12px;display:flex;align-items:center;gap:8px}.conversion-estimate .icon{width:16px;height:16px}.conversion-progress{border:1px solid var(--line);border-radius:12px;padding:22px;margin:14px 0 20px;background:var(--action-soft)}.progress-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.progress-heading h2{font-size:18px!important;margin:0 0 5px}.progress-heading p{font-size:13px}.progress-clock{display:grid;text-align:right;gap:3px;white-space:nowrap}.progress-clock b{font-size:16px;color:var(--ink);font-variant-numeric:tabular-nums}.progress-clock small{font-size:11px}.conversion-meter{height:7px;background:color-mix(in srgb,var(--primary) 12%,var(--surface));border-radius:10px;overflow:hidden;margin:20px 0 10px}.conversion-meter>span{height:100%;display:block;width:0;background:var(--primary);border-radius:inherit;transition:width .25s ease}.conversion-meter[data-indeterminate=true]>span{width:30%!important;animation:workspace-progress 1.8s ease-in-out infinite}.progress-bottom{display:flex;align-items:center;justify-content:space-between;gap:15px;color:var(--muted);font-size:11px}.progress-bottom span{font-variant-numeric:tabular-nums}.conversion-progress>p:last-child{font-size:12px;margin-top:15px;color:var(--muted)}
.authenticated[data-workspace-ux=ready][data-conversion-phase=converting] #engineFeedback,.authenticated[data-workspace-ux=ready][data-conversion-phase=saving] #engineFeedback{display:none}.authenticated[data-conversion-phase=review] #converterEditor,.authenticated[data-conversion-phase=converting] #converterEditor,.authenticated[data-conversion-phase=saving] #converterEditor{display:none}
.authenticated .inline-mask-review{padding:0!important;border:0;box-shadow:none}.authenticated .inline-mask-head{margin:0 0 20px;align-items:flex-start}.authenticated .inline-mask-head h2{font-size:20px}.authenticated .inline-mask-head p{font-size:13px;line-height:1.6;max-width:67ch;margin-top:7px}.authenticated .mask-progress{padding:6px 10px;border-radius:7px;background:var(--soft);color:var(--muted);font-size:11px;white-space:normal}.authenticated .inline-mask-review .mask-table-head,.authenticated .inline-mask-review .mask-row{grid-template-columns:minmax(240px,1.4fr) minmax(160px,1fr) minmax(130px,.8fr) 22px;gap:14px}.authenticated .mask-table-head{background:var(--soft);padding:12px;border-radius:8px 8px 0 0;font-size:11px}.authenticated .mask-row{padding:16px 12px;min-height:70px}.authenticated .mask-row input{border-radius:7px!important;min-height:42px;height:42px;font-size:14px;padding:8px 10px}.authenticated .mask-original b{font-size:13px!important;line-height:1.55!important;font-weight:500!important}.authenticated .mask-original small{display:block;font-size:12px;margin-top:4px;line-height:1.4;white-space:normal}.authenticated .mask-review-actions{display:flex;position:sticky;bottom:0;background:var(--surface);border-top:1px solid var(--line);padding:18px 0 4px;gap:12px;margin-top:16px;z-index:4}.authenticated .mask-review-actions .button{font-size:13px}
.authenticated .ready-state{padding:18px 0 4px}.authenticated .ready-summary{align-items:center;gap:18px;margin-bottom:24px}.authenticated .ready-icon{width:54px;height:54px;border-radius:50%;color:var(--good);background:color-mix(in srgb,var(--good) 9%,var(--surface));box-shadow:none}.authenticated .ready-summary h2{font-size:25px;line-height:1.35;font-weight:650;max-width:30ch}.authenticated .ready-summary p{font-size:13px;margin-top:7px}.authenticated .ready-actions{gap:12px}.authenticated #openReady{min-height:50px;padding-inline:25px}.authenticated #downloadReady{min-height:46px;width:auto;padding:0 18px}.authenticated .ready-note{font-size:12px;line-height:1.6;margin-top:14px}.authenticated .ready-links{border-top:1px solid var(--line);padding-top:18px;margin-top:24px;gap:22px;flex-wrap:wrap}.authenticated .ready-links :is(a,button){font-size:13px}.authenticated #newConversion{margin-top:16px;min-height:52px;background:#1769aa;color:#fff;border-color:#1769aa;font-size:15px;font-weight:750}.authenticated #newConversion:hover{background:#125889;border-color:#125889}.authenticated .ghost-link{font-size:12px;text-decoration:underline;margin:14px 0 0}.authenticated .conversion-error{border-radius:12px;padding:22px}.authenticated .conversion-error .ready-actions{flex-wrap:wrap}.authenticated .conversion-error b{font-size:18px}.authenticated .conversion-error p{margin:10px 0;font-size:13px}.authenticated .market-confirm{border-radius:16px;padding:28px}.authenticated .market-confirm h2{font-size:22px}.authenticated .market-confirm p{font-size:14px;line-height:1.6}
html[data-theme=dark] .authenticated{--bg:#111823;--surface:#192331;--ink:#e7edf5;--muted:#a7b4c6;--line:#334257;--soft:#202e40;--action-soft:color-mix(in srgb,var(--primary) 12%,var(--surface))}html[data-theme=dark] .authenticated .portal-addon{background:none;border:0;color:var(--muted)}html[data-theme=dark] .authenticated .portal-addon b{color:#b1cbff}html[data-theme=dark] .authenticated .conversion-feedback.warning{background:#342c1b;border-color:#675433;color:#f1d7a1}html[data-theme=dark] .authenticated .button.secondary{background:var(--surface);color:var(--ink);border-color:var(--line)}
@media(max-width:1100px){.authenticated .portal-tiles{grid-template-columns:1fr 1fr}.authenticated .converter-card{padding:22px}.authenticated .manual-platforms button{grid-template-columns:30px minmax(0,1fr)!important;gap:9px!important;padding:12px!important}.authenticated .manual-platforms .platform-emblem{width:30px;height:30px}.authenticated .manual-platforms small{font-size:10px}}
@media(max-width:760px){.authenticated h1{font-size:25px}.authenticated .app-shell,.authenticated .admin-shell{padding:16px 14px 88px}.authenticated .workspace-header{height:62px}.authenticated .portal-top-actions{padding:10px 16px;margin:0;min-height:0}.authenticated .portal-addon span{font-size:11px}.authenticated .portal-addon b{font-size:11px}.authenticated .portal-top-actions>.button{font-size:11px}.authenticated .converter-card{padding:20px 16px}.authenticated .converter-toolbar{gap:14px;flex-wrap:wrap;margin-bottom:22px}.converter-toolbar h1{font-size:24px!important}.authenticated .quota-small{padding:5px 9px;font-size:10px}.converter-intro{font-size:12px}.conversion-steps{gap:10px;margin-bottom:22px}.conversion-steps li{font-size:11px;gap:6px;align-items:flex-start;padding-bottom:13px}.conversion-steps li>span{width:22px;height:22px;font-size:10px}.authenticated .manual-platforms{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.authenticated .manual-platforms button{display:flex!important;flex-direction:column;min-height:105px!important;padding:12px 6px!important;align-items:center!important;text-align:center!important;gap:6px!important}.authenticated .manual-platforms .platform-name{font-size:12px}.authenticated .manual-platforms small{display:none}.authenticated .platform-rule{padding-bottom:16px}.authenticated .platform-rule b{font-size:12px}.authenticated .platform-rule p{font-size:12px}.authenticated .conversion-feedback{padding:12px}.authenticated .conversion-feedback b{font-size:13px}.conversion-progress{padding:18px 15px}.progress-heading{gap:14px;flex-wrap:wrap}.progress-clock{text-align:left}.progress-bottom{font-size:10px;align-items:flex-start}.authenticated .inline-mask-head{flex-wrap:wrap;gap:12px}.authenticated .inline-mask-review .mask-table-head{display:none}.authenticated .inline-mask-review .mask-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:16px 0}.authenticated .mask-row .mask-original{grid-column:1/-1}.authenticated .mask-field>span{display:block!important;font-size:10px;color:var(--muted);margin-bottom:5px}.authenticated .mask-row input{font-size:16px}.authenticated .mask-row .mask-check{display:none}.authenticated .mask-review-actions{position:static;display:flex;flex-direction:column;gap:10px}.authenticated .mask-review-actions .button{width:100%}.authenticated .ready-summary h2{font-size:22px}.authenticated .ready-summary{align-items:flex-start;gap:12px}.authenticated .ready-icon{width:38px;height:38px;flex:none}.authenticated .ready-actions{display:flex;flex-wrap:wrap}.authenticated #openReady{width:100%}.authenticated #downloadReady{min-height:42px}.dashboard-start{grid-template-columns:1fr!important;gap:22px!important;padding:24px!important}.dashboard-start h2{font-size:26px!important}.dashboard-balance{border-left:0;border-top:1px solid var(--line);padding:18px 0 0;grid-template-columns:1fr auto;align-items:center}.dashboard-balance strong{grid-column:2;grid-row:1/3;font-size:32px}.dashboard-balance a{margin-top:0}.dashboard-path{grid-template-columns:1fr;gap:14px;margin:22px 0;padding:0}.authenticated .portal-tile{padding:16px;min-height:145px}.authenticated .portal-onboarding{padding:18px;gap:12px}.authenticated .portal-onboarding h2{font-size:16px}.authenticated .sd-referral{padding:20px}.authenticated .mobile-tabs{background:var(--surface);border-top:1px solid var(--line)}.authenticated .mobile-tabs a.active{color:var(--primary)}}
@keyframes workspace-progress{0%{transform:translateX(-110%)}100%{transform:translateX(440%)}}
@media(prefers-reduced-motion:reduce){.authenticated *,.authenticated *:before,.authenticated *:after{animation:none!important;scroll-behavior:auto!important;transition:none!important}.conversion-meter[data-indeterminate=true]>span{width:35%!important;opacity:.6}}

/* Keep the engine running while focusing the visible UI on its progress. */
.authenticated[data-workspace-ux=ready][data-conversion-phase=converting] #engine,.authenticated[data-workspace-ux=ready][data-conversion-phase=saving] #engine{height:1px!important;min-height:0!important;opacity:0;pointer-events:none}

.authenticated .button.small{min-height:36px;font-size:12px}

html[data-theme=dark] .authenticated :is(.app-shell,.admin-shell) a:not(.button):not(.portal-tile),html[data-theme=dark] .authenticated .ghost-link{color:#b1cbff}
@media(max-width:760px){.authenticated .converter-intro,.authenticated .converter-toolbar .eyebrow{display:none}.authenticated .converter-toolbar{margin-bottom:16px}.authenticated .manual-platforms button{min-height:94px!important}.authenticated .conversion-steps{margin-bottom:18px}}

.authenticated .ready-actions{display:flex;align-items:center;justify-content:flex-start}.authenticated .ready-actions>.button{flex:none}

/* 3.0.3: concise screens and actionable stages. */
.conversion-steps li{padding-bottom:0}.conversion-steps button{display:flex;align-items:center;gap:9px;width:100%;text-align:left;padding:0 0 16px;border:0;background:none;color:inherit;font-size:inherit;font-weight:inherit}.conversion-steps button>span{width:26px;height:26px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;flex:none;font-size:11px}.conversion-steps .current button>span{background:var(--primary);color:var(--brand-ink,#fff);border-color:var(--primary)}.conversion-steps button:disabled{opacity:.65;cursor:default}.conversion-steps button:not(:disabled):hover{text-decoration:underline;text-underline-offset:4px}.authenticated .platform-rule b{display:none}.authenticated .platform-rule{padding-bottom:12px}.authenticated .platform-rule p{font-size:13px}.authenticated .converter-intro{display:block!important}.authenticated #readyUsage{display:none}.authenticated[data-workspace-page=dashboard] .portal-tiles{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:20px}.authenticated .portal-tile{min-height:115px}.authenticated .dashboard-start h2{max-width:19ch}.authenticated .ready-links{justify-content:flex-start}.authenticated .portal-extension-copy .button{margin-top:16px}.authenticated .portal-extension-copy ol{padding-left:20px}.authenticated .portal-extension-copy h2{margin-bottom:8px}
@media(max-width:760px){.conversion-steps button{gap:6px;font-size:11px}.conversion-steps button>span{width:22px;height:22px}.authenticated[data-workspace-page=dashboard] .portal-tiles{grid-template-columns:1fr}.authenticated .portal-tile{min-height:90px}.authenticated .converter-intro{font-size:12px}.authenticated .manual-platforms button{min-height:84px!important}}

.authenticated[data-conversion-phase=ready] .converter-intro{display:none!important}

/* 3.0.8: distinct action colors, clearer review cards and prominent invitations. */
.authenticated{--bg:#e3e9f1;--line:#c3cfdd;--soft:#edf2f8}
.authenticated .dashboard-start{background:linear-gradient(120deg,#eef5ff,#fff);border-top:4px solid #2463a5}
.authenticated .dashboard-balance strong{color:#13644f}
.authenticated .portal-tile:nth-child(1){background:#eaf2ff;border-top:4px solid #2463a5}
.authenticated .portal-tile:nth-child(2){background:#e7f5ef;border-top:4px solid #167052}
.authenticated .portal-tile:nth-child(3){background:#fff3d9;border-top:4px solid #b97909}
.authenticated .sd-referral{margin:24px 0;padding:28px;border:2px solid #d8a632;border-left:7px solid #c18b15;background:linear-gradient(120deg,#fff1c9,#fffaf0);box-shadow:0 7px 20px #40300c0d;color:#253047;align-items:center}
.authenticated .sd-referral .eyebrow{color:#765009;font-weight:800;letter-spacing:.12em}
.authenticated .sd-referral h2{font-size:26px;line-height:1.25;color:#172b46;max-width:23ch}
.authenticated .sd-referral h2 strong{display:block;font-size:38px;color:#805000;margin-top:8px}
.authenticated .sd-referral p{color:#38475b;max-width:45ch;font-size:15px;line-height:1.6}
.authenticated .sd-referral label,.authenticated .sd-referral small{color:#38475b}
.authenticated .sd-referral input{background:#fff;color:#172b46;border:1px solid #baa778;font-weight:600}
.authenticated .sd-referral #copyReferral{background:#185b9e!important;color:#fff!important;border-color:#185b9e!important;min-height:48px}
.authenticated .sd-referral .referral-whatsapp{background:#146c43!important;color:#fff!important;border-color:#146c43!important;min-height:48px}
.authenticated #openReady{background:#146c43!important;color:#fff!important;border-color:#146c43!important}
.authenticated #newConversion{background:#f3c34c!important;color:#182a43!important;border:2px solid #b47b07!important;font-weight:800;min-height:54px;font-size:16px;padding:16px 26px}
.authenticated .inline-mask-review{background:#e8eef6!important;padding:20px!important;border:1px solid #bac9db!important;border-radius:14px}
.authenticated .mask-row{background:#fff!important;border:1px solid #b4c5d8!important;border-radius:10px;margin:12px 0;padding:16px!important;box-shadow:0 2px 5px #172b4610}
.authenticated .mask-original{background:#e8f0fb;color:#183859;padding:12px;border-left:4px solid #2463a5;border-radius:5px}
.authenticated .mask-original b{font-weight:700!important;font-size:14px!important}
.authenticated .mask-original small{color:#3d5674}
.authenticated .mask-field>span{color:#314761;font-weight:700;font-size:12px}
.authenticated .mask-row input{background:#fff!important;color:#172b46!important;border:1px solid #8096b0!important;min-height:46px}
.authenticated .mask-row input::placeholder{color:#56677c;opacity:1}
.authenticated .mask-row input:focus{outline:3px solid #9bbfea;outline-offset:2px}
.authenticated .mask-progress{background:#d9e8fb;color:#1c4778;font-weight:700}
.authenticated .portal-onboarding{background:#eaf3ff;border-left:4px solid #2463a5}
html[data-theme=dark] .authenticated .dashboard-start{background:#1b2c42}
html[data-theme=dark] .authenticated .dashboard-balance strong{color:#80dfb5}
html[data-theme=dark] .authenticated .portal-tile{background:#1d2d42}
html[data-theme=dark] .authenticated .portal-onboarding{background:#1c304a}
html[data-theme=dark] .authenticated .inline-mask-review{background:#162536!important}
html[data-theme=dark] .authenticated .inline-mask-head,html[data-theme=dark] .authenticated .inline-mask-head h2{color:#e7edf5}
html[data-theme=dark] .authenticated .mask-row{background:#233448!important}
html[data-theme=dark] .authenticated .mask-field>span{color:#d4e1f2}
.authenticated .button:focus-visible{outline:3px solid #367cc8;outline-offset:3px}
@media(max-width:760px){.authenticated .sd-referral{grid-template-columns:1fr;gap:20px;padding:20px}.authenticated .sd-referral h2{font-size:23px}.authenticated .sd-referral h2 strong{font-size:34px}.authenticated .sd-referral .action-row{display:grid;grid-template-columns:1fr}.authenticated .inline-mask-review{padding:14px!important}.authenticated #newConversion{width:100%}}
@media(max-width:520px){.authenticated .inline-mask-review .mask-row{grid-template-columns:1fr}.authenticated .mask-original{grid-column:1}}
.mail-center-notice{display:flex;align-items:center;justify-content:space-between;gap:20px;border-left:5px solid #2463a5!important}.mail-center-notice h2{margin:0 0 8px}.mail-center-notice p{overflow-wrap:anywhere}.mail-center-tabs{display:flex;flex-wrap:wrap;gap:12px;margin:22px 0 12px}.mail-tab{padding:15px 20px;background:var(--surface);border:1px solid var(--line);border-radius:9px;text-decoration:none;color:var(--ink)!important;display:flex;gap:20px;align-items:center}.mail-tab strong{font-size:24px}.mail-tab.active{background:#185b9e;color:#fff!important;border-color:#185b9e}.mail-center-search{margin:22px 0}.mail-center-search>div{display:flex;gap:10px;margin-top:8px}.mail-center-search input{flex:1;min-width:0}.mail-center-row{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:18px 0;border-bottom:1px solid var(--line)}.mail-center-row:last-child{border:0}.mail-center-row>div{min-width:0;flex:1}.mail-center-row strong,.mail-center-row p{overflow-wrap:anywhere}.mail-center-row p{margin:6px 0}.mail-center-row small{color:var(--muted)}.mail-state{font-size:12px;font-weight:700;padding:6px 10px;border-radius:6px}.mail-state-sent{background:#dff3e9;color:#135235}.mail-state-failed{background:#fbe6e6;color:#892323}.mail-state-queue{background:#fff0c6;color:#76500a}.mail-center-error{width:100%;background:#fbe6e6;color:#892323;padding:10px;border-radius:6px}.mail-center-pagination{display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:center;margin:20px 0}@media(max-width:600px){.mail-center-notice{flex-direction:column;align-items:stretch}.mail-tab{flex:1;padding:12px;gap:10px;flex-direction:column}.mail-center-row{flex-direction:column}.mail-center-notice .button{width:100%}}

.smtp-config-alert{padding:12px 14px;background:#fff0c6;color:#62430a;border:1px solid #c99b31;border-radius:7px;font-weight:700}.smtp-help{font-size:12px;color:var(--muted);line-height:1.5;margin-top:14px}html[data-theme=dark] .smtp-config-alert{background:#42371e;color:#f8e5b4;border-color:#806226}

/* 3.0.44: conversor sem login e confirmação de CNPJ novo. */
.public-converter{padding:28px 16px 72px}
.converter-free-note{grid-column:1/-1;margin:0 0 18px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;font-size:14px;line-height:1.55;color:var(--muted);background:var(--bg)}
.converter-free-note a{font-weight:600;white-space:nowrap}
.doc-confirm-list{margin:12px 0;padding-left:18px;font-weight:600}
.doc-confirm-list li{margin:4px 0}
.sales-table{width:100%;border-collapse:collapse;font-size:13px}
.sales-table th,.sales-table td{padding:9px 10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.sales-table th{font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);font-weight:700}
.sales-table td.num,.sales-table th.num{text-align:right;white-space:nowrap}
.sales-table-wrap{overflow-x:auto}
.sales-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin-bottom:20px}
.sales-kpis div{border:1px solid var(--line);border-radius:12px;padding:14px;background:var(--surface,#fff)}
.sales-kpis b{display:block;font-size:22px;margin-top:4px}
.sales-kpis span{font-size:12px;color:var(--muted)}
.sales-tag{display:inline-block;padding:2px 8px;border-radius:20px;font-size:11px;font-weight:700;background:var(--bg);border:1px solid var(--line)}
.sales-tag.paid{color:var(--good);border-color:currentColor}
/* 3.0.46: no conversor público, app.css (página de vendas) usa .converter-card como grade de 2 colunas; aqui ela é o painel do conversor. */
.public-converter .converter-card{display:block;min-height:0;grid-template-columns:none;transition:none}
.public-converter .converter-card:hover{transform:none}
@media (max-width:640px){.public-converter{padding:16px 12px 56px}.public-converter .converter-card{padding:18px 14px}}
.converter-free-note{border-color:#9fd7b4;background:#eefaf2}
.converter-free-note p{margin:0}
.converter-free-note .converter-free-big{font-size:17px;line-height:1.45;color:var(--ink,#1c2533);margin-bottom:6px}
.converter-free-note .converter-free-big b{color:#13703d}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .converter-free-note{background:#12291c;border-color:#2c6b45}:root:not([data-theme="light"]) .converter-free-note .converter-free-big{color:#e9f5ee}:root:not([data-theme="light"]) .converter-free-note .converter-free-big b{color:#7fe0a5}}
:root[data-theme="dark"] .converter-free-note{background:#12291c;border-color:#2c6b45}:root[data-theme="dark"] .converter-free-note .converter-free-big{color:#e9f5ee}:root[data-theme="dark"] .converter-free-note .converter-free-big b{color:#7fe0a5}

/* 3.0.49: hierarquia da tela de conversão. Primeiro o resultado da leitura e o botão de converter; o resto fica discreto. */
.converter-card p.converter-free-note{margin:0 0 18px;padding:10px 14px;border:1px solid var(--line);border-radius:8px;background:var(--soft,#f5f7fa);font-size:13px;line-height:1.5;color:var(--muted)}
.converter-card p.converter-free-note b{color:var(--ink);font-weight:600}
:root[data-theme="dark"] .converter-card p.converter-free-note{background:#202e40;border-color:#334257}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .converter-card p.converter-free-note{background:#202e40;border-color:#334257}}
.converter-card .platform-choice-heading{font-size:12px;font-weight:500;color:var(--muted);margin:4px 0 8px}
.converter-card .platform-buttons.manual-platforms{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:16px}
.converter-card .platform-buttons.manual-platforms button{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:10px!important;min-height:52px!important;padding:8px 12px!important;border:1px solid var(--line)!important;border-radius:9px!important;background:var(--surface)!important;box-shadow:none!important;text-align:left}
.converter-card .platform-buttons.manual-platforms button[aria-pressed=true]{border:2px solid var(--primary,#2455d6)!important;background:color-mix(in srgb,var(--primary,#2455d6) 6%,var(--surface))!important}
.converter-card .platform-buttons.manual-platforms .platform-emblem{width:28px!important;height:28px!important;min-width:28px;font-size:13px!important;border-radius:7px!important;margin:0!important}
.converter-card .platform-buttons.manual-platforms .platform-name{font-size:14px;font-weight:600}
.converter-card .platform-buttons.manual-platforms small{display:none!important}
.converter-card .conversion-feedback.ok.has-cta{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;padding:20px 22px;gap:12px 14px;border:1px solid #9fd7b9;border-left:5px solid #15966b;background:#e9f8f0;margin:12px 0 16px}
.converter-card .conversion-feedback.has-cta .feedback-content{grid-column:2}.converter-card .conversion-feedback.has-cta .feedback-symbol{grid-column:1;grid-row:1}
.converter-card .conversion-feedback.has-cta .feedback-content b{font-size:21px;font-weight:700;line-height:1.3;color:#0f5c3d}
.converter-card .conversion-feedback.has-cta .feedback-content small{font-size:13px;color:#2d6a52;opacity:1}
.converter-card .conversion-feedback.has-cta .feedback-symbol{flex-basis:40px;width:40px;height:40px;font-size:22px}
.converter-card .feedback-cta{grid-column:1/-1;display:grid;gap:8px;margin-top:4px}.converter-card .feedback-cta[hidden]{display:none}
.converter-card .button.convert-cta{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:58px;padding:0 20px;border:0;border-radius:10px;background:var(--primary,#2455d6);color:#fff;font-size:18px;font-weight:700;box-shadow:0 6px 16px rgba(36,85,214,.28);white-space:normal}
.converter-card .button.convert-cta .icon{width:22px;height:22px}
.converter-card .button.convert-cta:hover:not(:disabled){filter:brightness(.93)}
.converter-card .button.convert-cta:focus-visible{outline:3px solid #9bb8f2;outline-offset:3px}
.converter-card .button.convert-cta:disabled{opacity:.6;box-shadow:none}
.converter-card .feedback-cta .conversion-estimate{justify-content:center;margin:0;font-size:12px;color:#2d6a52}
:root[data-theme="dark"] .converter-card .conversion-feedback.ok.has-cta{background:#173c2f;border-color:#2b6954;border-left-color:#2fbf8a}
:root[data-theme="dark"] .converter-card .conversion-feedback.has-cta :is(.feedback-content b,.feedback-content small,.conversion-estimate){color:#d4f3e3}
@media(max-width:650px){.converter-card .platform-buttons.manual-platforms button{flex-direction:column!important;gap:4px!important;min-height:64px!important;padding:8px 4px!important}.converter-card .platform-buttons.manual-platforms .platform-name{font-size:12px}.converter-card .conversion-feedback.has-cta{padding:16px}.converter-card .conversion-feedback.has-cta .feedback-content b{font-size:18px}.converter-card .button.convert-cta{font-size:17px;min-height:56px}}
