:root{color-scheme:dark;font:15px 'Segoe UI',system-ui,sans-serif;color:#eeeaf8;background:#12131b}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 70% 0,#35264b55,transparent 60%);min-height:100vh}a{color:#c8b0ff;text-decoration:none}a:hover{text-decoration:underline}.top{padding:22px 5%;display:flex;justify-content:space-between;gap:20px;align-items:center;border-bottom:1px solid #353140;background:#191923}.brand{font-size:24px;font-weight:700;color:#f3efff;white-space:nowrap}.brand span{display:inline-grid;place-items:center;border-radius:13px;background:#7040de;width:44px;height:44px;margin-right:10px}nav{display:flex;gap:20px;align-items:center;flex-wrap:wrap}main{max-width:1220px;margin:44px auto;padding:0 24px}h1{font-size:34px;letter-spacing:-1px;margin:10px 0 16px}h2{font-size:21px}h3{font-size:17px}p{line-height:1.6;color:#bfb8d0}.eyebrow{font-size:11px;letter-spacing:2px;color:#b69bfa}.card{background:#20212a;border:1px solid #3a3547;border-radius:22px;padding:26px;margin-bottom:22px}.auth{max-width:480px;margin:60px auto}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:18px}.metric{font-size:30px;font-weight:700;color:#e4d9ff}.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}label{display:block;color:#c9c0da;font-size:13px;margin:16px 0 6px}input,select{background:#15161f;border:1px solid #554864;border-radius:10px;padding:12px;color:#f5f0ff;font:inherit;max-width:100%;width:100%}input[type=checkbox]{width:auto}button,.button{background:#7345da;color:white;border:1px solid #8961d9;border-radius:11px;padding:12px 18px;font:inherit;cursor:pointer;display:inline-block}button:hover,.button:hover{background:#8255e4;text-decoration:none}button.secondary{background:#2a2538}button.danger{background:#942b45;border-color:#af3652}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #cbb1ff;outline-offset:3px}form>button{margin-top:20px}form>button.wide{width:100%}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px}th,td{padding:13px 10px;text-align:left;border-bottom:1px solid #3b3547;vertical-align:top}th{color:#b8a2df;font-weight:500;white-space:nowrap}td select,td input{min-width:135px}td small{display:block;color:#aca2bf;margin-top:5px}.badge{display:inline-block;padding:5px 10px;border-radius:20px;background:#322742;color:#d0b9ff;font-size:12px}#notice{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#322641;border:1px solid #8961b2;border-radius:12px;padding:14px 22px;max-width:90vw;z-index:100;box-shadow:0 10px 40px #0008}#notice:empty{display:none}[hidden]{display:none!important}.links{display:flex;justify-content:space-between;gap:16px;margin-top:24px}.links button{padding:0;background:none;border:0;color:#c9b1ff}.section-title{margin-top:34px}.muted{color:#aca2bf}@media(max-width:700px){.top{align-items:flex-start;flex-direction:column}nav{gap:13px;font-size:13px}h1{font-size:28px}.auth{margin:24px auto}.card{padding:20px}main{padding:0 16px;margin-top:26px}}

.admin-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;align-items:end}.admin-form input[type=checkbox]{width:auto}.stat-row{display:flex;gap:18px;align-items:center;margin:10px 0}.stat-row progress{flex:1;accent-color:#9265ec;height:12px}.stat-row span{min-width:45px}td button{margin:0 4px 6px 0}section[id]{scroll-margin-top:24px}
.storefront>h1{font-size:clamp(36px,5vw,64px);max-width:850px;line-height:1.08}.hero{margin:38px 0 50px;padding:clamp(24px,5vw,60px);border:1px solid #665083;border-radius:28px;background:radial-gradient(ellipse at right,#6335a877,transparent 75%),#211c30}.hero h2{font-size:clamp(26px,4vw,44px);max-width:550px}.hero p{max-width:600px}.plan{display:flex;flex-direction:column}.plan .button,.plan button{margin-top:auto;text-align:center}.plan .metric{font-size:40px}.card>.button+button{margin:10px}

.legal-footer{padding:28px 5%;border-top:1px solid #554864;margin-top:48px;font-size:13px}.legal-footer nav{gap:20px}.legal-document{max-width:900px;margin:24px auto}.legal-document p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.legal-document h2{margin-top:30px}.legal-actions,.legal-history{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.legal-history{border-bottom:1px solid #554864;padding:16px 0;margin-bottom:16px}.legal-history p{width:100%;margin:0}.legal-consent{margin:20px 0;padding:16px;border:1px solid #665083;border-radius:12px}.legal-consent label{font-size:14px;line-height:1.7;margin:0 0 10px}.legal-consent input,.request-confirm input{margin-right:8px}.request-form{margin-top:24px;max-width:800px}.request-card{overflow-wrap:anywhere}.request-card details{margin-top:22px;padding:16px;border:1px solid #554864;border-radius:12px}.request-card summary{cursor:pointer}.request-event{border-left:3px solid #8961d9;padding-left:14px}.request-message{white-space:pre-wrap}.request-card button{margin:12px 8px 0 0}textarea{width:100%;max-width:100%;resize:vertical;background:#15161f;border:1px solid #554864;border-radius:10px;padding:12px;color:#f5f0ff;font:inherit}textarea:focus-visible{outline:2px solid #cbb1ff;outline-offset:3px}
.client-error-log{margin:0;max-height:220px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.5 Consolas,monospace;color:#d8d0e8}
.suggestion-text{margin:0;max-height:220px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}
.chat-row>td{background:#191a22}.chat-log{display:flex;flex-direction:column;gap:10px;max-height:420px;overflow:auto;padding:4px 2px 12px}.chat-bubble{max-width:75%;padding:10px 14px;border-radius:14px;background:#2a2538}.chat-bubble p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;color:#eeeaf8}.chat-bubble small{margin-top:6px}.chat-user{align-self:flex-start}.chat-admin{align-self:flex-end;background:#4a2f8c}.chat-images{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.chat-images img{display:block;max-width:220px;max-height:160px;border-radius:8px;border:1px solid #554864;background:#15161f}.chat-images a:focus-visible{outline:2px solid #cbb1ff;outline-offset:3px;border-radius:8px}.chat-note{align-self:center;margin:0;font-size:12px;color:#aca2bf}.chat-row textarea{display:block;width:100%;margin:8px 0 10px;background:#15161f;border:1px solid #554864;border-radius:10px;padding:12px;color:#f5f0ff;font:inherit;resize:vertical}.chat-row textarea:focus-visible{outline:2px solid #cbb1ff;outline-offset:3px}
.ai-spec{margin:0 0 12px;padding:10px 14px;border:1px solid #554864;border-radius:10px;background:#15161f}.ai-spec summary{cursor:pointer;color:#cbb1ff}.ai-spec pre{margin:8px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.5 ui-monospace,Consolas,monospace;color:#eeeaf8;max-height:360px;overflow:auto}.ai-error{color:#ff9d9d}
/* /admin and /account (body.dashboard): summary, tabs, cards, tables and state badges */
.dashboard main{max-width:1280px}.dashboard h1{font-size:30px;margin:6px 0;overflow-wrap:anywhere}.dashboard h1+p{margin-top:0}.dashboard h2{font-size:19px;letter-spacing:-.2px;margin:0 0 12px}.dashboard [id]{scroll-margin-top:84px}
.dashboard .card{background:linear-gradient(180deg,#23242e,#1f2029);border-color:#34303f;border-radius:18px;padding:24px;box-shadow:0 1px 2px #0005,0 12px 32px #0003;min-width:0}
.dashboard .grid{gap:16px;margin-bottom:22px}.dashboard .metric-card{padding:18px 20px;margin:0}.dashboard .metric-card p{margin:0 0 6px;font-size:13px;color:#bfb8d0}.dashboard .metric{font-size:26px;letter-spacing:-.5px;overflow-wrap:anywhere}
.summary{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 6px}.summary-item{display:flex;align-items:baseline;gap:8px;padding:9px 14px;border:1px solid #3a3547;border-radius:12px;background:#1c1d26}.summary-item strong{font-size:18px;color:#e4d9ff}.summary-item span{font-size:13px;color:#bfb8d0}
.dash-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:0 0 6px}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}.panel-head h2{margin:0}
.dashboard .button,.dashboard button{border-radius:10px;transition:background .15s,box-shadow .15s}.dashboard .button.primary{background:linear-gradient(135deg,#7a4ae6,#5d35c4);border-color:#9470e4;font-weight:600;box-shadow:0 6px 20px #6a3bd944}.dashboard button.secondary:hover{background:#372f4a}.dashboard button.danger:hover{background:#a8304f}
.dashboard button:focus-visible,.dashboard .button:focus-visible{outline:2px solid #cbb1ff;outline-offset:3px;box-shadow:0 0 0 5px #7345da44}
.tabs-bar{position:sticky;top:0;z-index:5;display:flex;align-items:flex-end;gap:12px;margin:18px 0 22px;border-bottom:1px solid #3a3547;background:#12131bf0;backdrop-filter:blur(8px)}
.tabs{position:relative;display:flex;gap:2px;flex:1;min-width:0;overflow-x:auto;scrollbar-width:thin}
.dashboard .tab{flex:none;display:inline-flex;align-items:center;gap:8px;background:none;border:0;border-bottom:3px solid transparent;border-radius:10px 10px 0 0;color:#c9c0da;padding:14px 16px 11px;white-space:nowrap}
.dashboard .tab:hover{background:#ffffff0d;color:#fff}.dashboard .tab[aria-selected=true]{color:#fff;font-weight:600;border-bottom-color:#a57cff;background:#7345da26}.dashboard .tab:focus-visible{outline-offset:-3px;box-shadow:none}
.tab-count{min-width:22px;padding:1px 7px;border-radius:20px;background:#7345da;color:#fff;font-size:12px;font-weight:600;text-align:center}
.dashboard .tab-link{flex:none;align-self:center;margin-bottom:6px;padding:9px 14px;font-size:14px;white-space:nowrap;background:#2f2640;border-color:#a57cff}.dashboard .tab-link:hover{background:#3d3057}.dashboard .button.primary:hover{background:linear-gradient(135deg,#8759ee,#6a40d4)}
.tab-panel:focus-visible{outline:2px solid #cbb1ff;outline-offset:6px;border-radius:12px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.dashboard .table-scroll{margin-top:14px;border:1px solid #34303f;border-radius:12px;max-width:100%}.dashboard .table-scroll.tall{max-height:70vh}
.dashboard th{position:sticky;top:0;z-index:1;background:#2a2536;color:#cdb9f2;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.6px}.dashboard td{border-bottom-color:#2f2b3a}
.dashboard tbody tr:not(.chat-row):nth-child(even)>td{background:#ffffff06}.dashboard tbody tr:not(.chat-row):hover>td{background:#7345da1a}.dashboard tbody tr:last-child>td{border-bottom:0}
.badge{white-space:nowrap}.badge.ok{background:#1d3a2b;color:#9ee6b8}.badge.warn{background:#3d3120;color:#f5d08a}.badge.off{background:#46202b;color:#ffb3c0}
.dashboard .admin-form{margin-top:8px}.dashboard .admin-form label{margin:0;display:flex;flex-direction:column;gap:6px}.dashboard .admin-form label.row{flex-direction:row;align-items:center;min-height:46px;gap:10px}.dashboard .admin-form>button{margin-top:0}
.collapsible>summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px;border-radius:8px}.collapsible>summary::-webkit-details-marker{display:none}.collapsible>summary:after{content:'+';font-size:24px;line-height:1;color:#b69bfa}.collapsible[open]>summary:after{content:'−'}.collapsible>summary h2{margin:0}.collapsible>summary:focus-visible{outline:2px solid #cbb1ff;outline-offset:4px}.collapsible[open]>summary{margin-bottom:12px}
.callout{padding:14px 18px;border:1px solid #5a4680;border-left:4px solid #a57cff;border-radius:12px;background:#231d33;color:#d6cce6;margin:0 0 22px}
.shortcuts{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.shortcut{display:flex;flex-direction:column;gap:6px;padding:16px 18px;border:1px solid #3a3547;border-radius:14px;background:#191a23;color:#eeeaf8;transition:border-color .15s,background .15s}.shortcut:hover{text-decoration:none;border-color:#8961d9;background:#221d31}.shortcut strong{color:#e4d9ff}.shortcut span{color:#bfb8d0;font-size:13px}
/* Conexões of Minha conta › Resumo: the period cards are buttons that look like the metric cards; the chosen one stays marked */
.dashboard .connection-periods{margin:6px 0 4px}.dashboard button.period-card{display:block;width:100%;text-align:left;color:inherit;background:#191a23;border:1px solid #3a3547;border-radius:14px;box-shadow:none;cursor:pointer;transition:border-color .15s,background .15s}.dashboard button.period-card:hover{background:#221d31;border-color:#8961d9}.dashboard button.period-card[aria-pressed=true]{background:#7345da26;border-color:#a57cff;box-shadow:inset 0 0 0 1px #a57cff}
.connection-list h3{margin:18px 0 0}.connection-list>p{margin:14px 0 0}
@media(max-width:700px){.dashboard h1{font-size:25px}.dashboard .card{padding:18px;border-radius:16px}.dashboard .metric{font-size:22px}.tabs-bar{position:static;flex-wrap:wrap;gap:0}.dashboard [id]{scroll-margin-top:16px}.tabs{flex:1 1 100%;order:1}.dashboard .tab-link{margin:8px 0}.dashboard .tab{padding:12px 13px 10px;font-size:14px}.dashboard .admin-form{grid-template-columns:1fr}.panel-head button{width:100%}.dash-actions .button{width:100%;text-align:center}.summary-item{flex:1 1 40%}.shortcuts{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.dashboard *{transition:none!important}}
