:root{font-family:"Trebuchet MS","Segoe UI",Arial,sans-serif;color:#202432;background:#f7f8fb;font-synthesis:none;--accent:#f0494c;--accent-dark:#db3a3f;--ink:#1e2430;--muted:#8b92a3;--line:#e9edf3;--sidebar:#151923;--card:white;--shadow:0 7px 26px rgba(37,45,75,.035)}
*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.46;cursor:not-allowed}a{text-decoration:none;color:inherit}[hidden]{display:none!important}h1,h2,h3,p{margin-top:0}h1{font-size:31px;letter-spacing:-1.3px;line-height:1.14}h2{font-size:19px;letter-spacing:-.35px}p{line-height:1.55}code{font-size:.85em;background:#f0f2f6;padding:2px 5px;border-radius:4px}.muted{color:#858d9c;font-size:14px}.small-note{font-size:12px;color:#949cab;margin-top:16px}.brand-lockup{display:flex;align-items:center;gap:12px;font-size:17px;letter-spacing:1.3px;font-weight:800;color:white;white-space:nowrap}.brand-thin{font-weight:400;color:#b4bbc7}.brand-mark{background:linear-gradient(140deg,#ff6f5c,#e83c53);color:white;width:37px;height:37px;border-radius:12px;display:grid;place-items:center;font-size:21px;font-weight:900;box-shadow:0 8px 20px #ee46523d;letter-spacing:0}.eyebrow{font-size:10px;font-weight:800;letter-spacing:2px;color:#ff9a9d}.eyebrow.red{color:#ee4b55}.chip{display:inline-flex;padding:7px 12px;color:#e74a55;border-radius:8px;font-size:10px;font-weight:800;letter-spacing:1.1px;background:#fff0f1}.primary,.secondary{border:0;min-height:42px;padding:11px 17px;font-size:12px;font-weight:750;border-radius:9px;display:inline-flex;align-items:center;gap:10px;justify-content:center;transition:filter .15s,transform .15s}.primary{background:var(--accent);color:white;box-shadow:0 6px 15px #e8484d20}.primary:hover{filter:brightness(.96)}.secondary{background:#f2f4f8;color:#454d60;border:1px solid #e9edf3}.secondary:hover{background:#e8ebf2}.text-button{border:0;background:none;color:#e74954;font-size:12px;font-weight:750}.auth-layout{min-height:100vh;display:grid;grid-template-columns:51% 49%;background:white}.auth-side{background:linear-gradient(150deg,#202635,#161b26 68%,#121722);padding:60px clamp(40px,7vw,105px);position:relative;color:white;overflow:hidden;display:flex;flex-direction:column;min-height:100vh}.auth-side::after{content:"";position:absolute;border:1px solid #ffffff0e;border-radius:50%;width:620px;height:620px;right:-350px;bottom:-300px;box-shadow:0 0 0 75px #ffffff05,0 0 0 150px #ffffff04;pointer-events:none}.auth-side-content{margin:auto 0;max-width:450px;position:relative;z-index:1}.auth-side-content h1{font-size:clamp(32px,3.3vw,51px);letter-spacing:-2px;line-height:1.14;margin:18px 0 23px}.auth-side-content p{font-size:16px;color:#b3bac8;max-width:390px}.auth-side-foot{font-size:10px;letter-spacing:1.7px;color:#80899d}.auth-card{max-width:445px;width:calc(100% - 70px);margin:auto;padding:55px 0}.auth-card h2{font-size:30px;letter-spacing:-1px;margin:20px 0 7px}.auth-card .muted{margin-bottom:30px}.auth-form{display:grid;gap:18px}.auth-form label,.modal label{font-size:12px;color:#475065;font-weight:750;display:grid;gap:9px}.auth-form input,.modal input{padding:13px 14px;border:1px solid #e0e5ee;border-radius:9px;outline:none;background:#fff;color:#202431}.auth-form input:focus,.modal input:focus,#file-search:focus{border-color:#ef747b;box-shadow:0 0 0 3px #faedf0}.auth-form .primary{margin-top:8px;justify-content:space-between;font-size:14px}.auth-error{background:#fff0f0;border:1px solid #f9c1c1;border-radius:10px;padding:12px;color:#ae3341;font-size:13px}.auth-note{margin-top:25px;text-align:center;font-size:11px;color:#9fa6b1}.app-layout{display:flex;min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;width:246px;flex:0 0 246px;background:var(--sidebar);padding:29px 20px 21px;display:flex;flex-direction:column;color:white;z-index:4}.sidebar .brand-lockup{margin:0 6px 44px;font-size:15px}.sidebar .brand-mark{width:35px;height:35px}.workspace{background:#232935;border:1px solid #2c3341;border-radius:11px;padding:13px 11px;display:flex;align-items:center;gap:10px;margin-bottom:40px}.workspace-icon{background:#394052;border-radius:9px;display:grid;place-items:center;width:33px;height:33px;font-size:17px}.workspace b,.workspace small{display:block}.workspace b{font-size:11px}.workspace small{font-size:10px;color:#8994a7;margin-top:4px}.workspace-chevron{margin-left:auto;color:#7b859b}.nav-heading{font-size:9px;color:#6f7a8d;letter-spacing:1.7px;font-weight:900;margin:0 14px 16px}.nav{display:grid;gap:6px}.nav-item{background:transparent;color:#99a4b7;border:none;text-align:left;padding:13px 12px;font-size:12px;border-radius:9px;display:flex;align-items:center;gap:12px;font-weight:700;width:100%}.nav-item:hover{background:#252d3a;color:white}.nav-item.active{background:#35303b;color:#ff747b}.nav-symbol{width:21px;text-align:center;font-size:19px;line-height:14px;font-weight:500}.nav-count{margin-left:auto;border-radius:6px;background:#323b4a;color:#b9c2ce;padding:2px 7px;font-size:10px}.sidebar-bottom{margin-top:auto}.security-pill{background:#202b2b;border:1px solid #334139;border-radius:10px;padding:12px;display:flex;align-items:center;gap:10px;margin-bottom:20px}.security-pill>span{font-size:10px;color:#4cdb9c}.security-pill b,.security-pill small{display:block}.security-pill b{color:#d9e8e4;font-size:11px}.security-pill small{color:#859e9b;font-size:10px;margin-top:3px}.logout{border:0;background:none;color:#8792a6;padding:10px 12px;font-size:11px;font-weight:600}.logout:hover{color:white}.main-area{min-width:0;flex:1;display:flex;flex-direction:column}.topbar{background:white;border-bottom:1px solid var(--line);height:74px;flex:0 0 74px;padding:0 clamp(20px,3.5vw,55px);display:flex;justify-content:space-between;align-items:center}.topbar-location{font-size:10px;letter-spacing:1.4px;color:#a0a7b5;font-weight:800}.topbar-location span{margin:0 10px;color:#d0d4df}.topbar-location b{color:#414b60}.topbar-right{display:flex;align-items:center;gap:20px}.online-tag{color:#a0a7b2;background:#f3f5f8;border:1px solid #e9ecf1;padding:8px 13px;border-radius:20px;font-size:10px;font-weight:750}.online-tag.is-online{color:#23855d;background:#eaf9f1;border-color:#d6f2e4}.user-avatar{height:34px;width:34px;border-radius:50%;display:grid;place-items:center;background:#242c3c;color:white;font-weight:800;font-size:13px}.content{padding:38px clamp(20px,3.5vw,55px) 20px;flex:1;max-width:1700px;width:100%;margin:0 auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:31px}.page-heading h1{margin:8px 0 7px}.page-heading p{color:#8d96a8;font-size:13px;margin:0}.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.metric-card{min-height:158px;background:white;border-radius:13px;box-shadow:var(--shadow);border:1px solid var(--line);padding:25px;position:relative;overflow:hidden}.metric-card>span{font-size:10px;letter-spacing:1.1px;font-weight:850;color:#9ca4b5}.metric-number{font-size:29px;font-weight:850;letter-spacing:-1.5px;margin:20px 0 7px;max-width:90%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.metric-card small{font-size:11px;color:#a0a8b7}.metric-decoration{position:absolute;right:20px;bottom:24px;color:#eef0f5;font-size:58px;pointer-events:none}.section-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:39px 0 19px}.section-header h2{margin:0 0 5px}.section-header p{font-size:12px;color:#97a0af;margin:0}.account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.account-card{background:white;border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow);padding:23px;min-width:0}.account-card-main{display:flex;gap:13px;align-items:center;min-width:0}.account-icon{display:grid;place-items:center;height:44px;width:44px;border-radius:12px;background:#fff0f0;color:#e9474d;font-size:23px;flex:0 0 auto;font-weight:750}.account-name{min-width:0;flex:1}.account-name strong,.account-name small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-name strong{font-size:14px}.account-name small{font-size:11px;color:#99a2af;margin-top:5px}.status-chip{display:inline-flex;align-items:center;gap:6px;font-size:10px;color:#b2b8c2;font-weight:700;white-space:nowrap}.status-chip.connected{color:#269c70}.status-chip::before{content:"";width:6px;height:6px;background:currentColor;border-radius:50%}.quota{margin:19px 0 15px}.quota-track{height:6px;background:#eef0f4;border-radius:20px;overflow:hidden}.quota-track>div{height:100%;background:linear-gradient(90deg,#ff7571,#eb4e56);border-radius:20px;width:0%}.quota-label{display:flex;justify-content:space-between;color:#a6aebb;font-size:11px;margin-top:10px}.account-card-foot{border-top:1px solid #f1f2f6;padding-top:15px;display:flex;gap:8px;align-items:center}.account-card-foot button{font-size:11px;min-height:35px;padding:8px 11px}.account-card-foot .grow{flex:1}.info-strip{margin-top:24px;display:flex;align-items:center;gap:11px;border:1px solid #e8eaf1;background:#f0f3f8;border-radius:10px;font-size:11px;color:#7f8a9c;padding:17px 18px;line-height:1.5}.info-strip span{font-size:21px;color:#8e9aaf}.empty-state{padding:55px 22px;background:white;border:1px dashed #dfe3eb;border-radius:12px;text-align:center;color:#929cad;font-size:13px;line-height:1.8}.account-list{display:grid;gap:12px}.account-row{display:flex;align-items:center;gap:14px;background:white;border:1px solid var(--line);border-radius:12px;padding:16px 19px;min-width:0}.account-row>.account-name{margin-right:auto}.account-row .account-icon{height:40px;width:40px}.row-actions{display:flex;gap:8px;align-items:center}.row-actions button{min-height:35px;padding:7px 10px}.danger-link{color:#c75256!important}.file-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px}.file-account{display:grid;gap:6px;min-width:190px}.file-account>span{color:#9fa7b3;font-weight:800;font-size:9px;letter-spacing:1.2px}.file-account select{border:1px solid #e3e8f0;border-radius:8px;padding:10px;background:white;max-width:350px}.file-actions{display:flex;gap:9px}.explorer{background:white;border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow);min-height:390px;overflow:hidden}.explorer-tools{padding:21px;display:flex;align-items:center;justify-content:space-between;gap:16px}.explorer-tools nav{font-size:12px;color:#4b5364;font-weight:750;display:flex;flex-wrap:wrap;gap:6px}.crumb{font-size:12px;background:none;border:0;color:#6e798a;padding:4px}.crumb:hover{color:var(--accent)}.crumb:last-child{color:#2f3644;font-weight:800}.crumb-sep{color:#c7ced8;padding-top:4px}.explorer-tools input{border:1px solid #e2e6ee;border-radius:8px;padding:10px 12px;font-size:11px;max-width:250px;width:100%;outline:none}.file-head,.file-row{display:grid;grid-template-columns:minmax(200px,1fr) 105px 125px 160px;align-items:center;gap:15px}.file-head{background:#fafbfc;padding:13px 21px;font-size:9px;letter-spacing:1.1px;color:#a5adba;font-weight:800;border-top:1px solid #f0f1f4;border-bottom:1px solid #f0f1f4}.file-row{padding:13px 21px;border-bottom:1px solid #f3f4f7;min-height:58px}.file-row:hover{background:#fcfdff}.file-name{display:flex;align-items:center;gap:11px;min-width:0}.file-name>span{background:#f2f4f8;color:#6d7a91;font-size:16px;width:33px;height:33px;border-radius:9px;display:grid;place-items:center;flex:0 0 auto}.file-name.folder>span{color:#e4a03e;background:#fff6e5}.file-name button{border:0;padding:0;background:none;text-align:left;font-size:12px;font-weight:750;color:#465062;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.file-name button:hover{text-decoration:underline}.file-meta{font-size:11px;color:#99a3b1}.file-row-actions{display:flex;gap:6px;align-items:center}.mini-button{border:1px solid #eaeef3;border-radius:7px;background:white;color:#667286;padding:6px 8px;font-size:10px;font-weight:750;white-space:nowrap}.mini-button:hover{background:#f3f5f9}.transfers-list{display:grid;gap:12px}.transfer{background:white;border:1px solid var(--line);border-radius:10px;padding:15px 18px;display:flex;align-items:center;gap:14px}.transfer-progress{width:100px;height:6px;border-radius:20px;background:#eef1f4;overflow:hidden;margin-left:auto;flex:0 0 100px}.transfer-progress span{display:block;background:var(--accent);height:100%}.transfer>div:nth-child(2){max-width:42%;overflow:hidden}.transfer b,.transfer small{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.transfer b{font-size:12px}.transfer small{font-size:10px;color:#9da6b5;margin-top:4px}.transfer strong{font-size:11px;color:#6d7480;width:90px;text-align:right}footer{color:#b3bac6;font-weight:700;font-size:9px;letter-spacing:1px;margin:50px 0 0}footer span{padding:0 7px}.modal-backdrop{position:fixed;inset:0;background:#131823ac;z-index:10;display:grid;place-items:center;padding:20px}.modal{background:white;width:min(100%,470px);padding:32px;border-radius:16px;position:relative;box-shadow:0 25px 100px #0a112040}.modal-close{position:absolute;right:19px;top:15px;font-size:27px;line-height:1;border:0;background:none;color:#9ba5b5}.modal h2{font-size:24px;margin:17px 0 9px}.modal .muted{line-height:1.5;margin:0 0 27px}.modal form{display:grid;gap:19px}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:8px}.privacy-line{font-size:11px;background:#edf9f3;border-radius:8px;padding:13px;color:#537967;line-height:1.5}.toast{position:fixed;right:20px;bottom:20px;padding:14px 18px;background:#253347;color:white;font-size:12px;box-shadow:0 10px 50px #0002;border-radius:10px;z-index:12;max-width:390px}.toast.error{background:#bd3f4a}.mobile-menu{display:none;border:0;background:none;color:#3b4555;font-size:21px}.sidebar-overlay{display:none}
@media(max-width:1100px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.metrics .metric-card:last-child{grid-column:1/-1}.account-grid{grid-template-columns:1fr}.content{padding-left:24px;padding-right:24px}}
@media(max-width:800px){.sidebar{position:fixed;left:0;top:0;bottom:0;transform:translateX(-100%);transition:transform .2s;width:246px}.sidebar.open{transform:translateX(0)}.mobile-menu{display:block}.topbar{gap:14px;height:66px;flex:0 0 66px}.topbar-location{margin-right:auto}.content{padding:25px 18px}.page-heading{align-items:flex-start}.page-heading .primary{white-space:nowrap}.online-tag{display:none}.auth-layout{grid-template-columns:1fr}.auth-side{min-height:180px;padding:27px}.auth-side-content,.auth-side-foot{display:none}.auth-card{padding:45px 0;width:calc(100% - 44px)}.file-head,.file-row{grid-template-columns:minmax(130px,1fr) 80px 124px}.file-head span:nth-child(3),.file-row>.file-meta:nth-child(3){display:none}}
@media(max-width:560px){.topbar-location{font-size:9px}.page-heading{display:grid;gap:17px}.page-heading .primary{width:max-content}.metrics{grid-template-columns:1fr}.metrics .metric-card:last-child{grid-column:auto}.metric-card{min-height:130px;padding:21px}.metric-number{margin:13px 0 4px}.account-card{padding:17px}.account-card-main{flex-wrap:wrap}.account-card-main .status-chip{width:100%;padding-left:57px}.file-toolbar{align-items:flex-start;flex-direction:column}.file-actions{width:100%}.file-actions button{flex:1}.explorer-tools{display:grid}.explorer-tools input{max-width:none}.file-head,.file-row{grid-template-columns:minmax(120px,1fr) 65px 98px;gap:8px;padding-left:12px;padding-right:12px}.file-row-actions{flex-wrap:wrap}.file-row-actions button{font-size:9px}.account-row{flex-wrap:wrap}.row-actions{width:100%;justify-content:flex-start}.transfer{flex-wrap:wrap}.transfer>div:nth-child(2){flex:1;max-width:70%}.transfer-progress{order:3;flex:1}.transfer strong{order:4}.modal{padding:24px}.section-header{margin-top:30px}}

/* Integração assistida do MEGAJS */
.sdk-notice{background:#fff;border:1px solid #f6d3ad;border-left:4px solid #efad62;box-shadow:var(--shadow);border-radius:12px;padding:19px 22px;display:flex;align-items:center;gap:18px;margin:0 0 24px}
.sdk-notice-icon{width:44px;height:44px;border-radius:12px;background:#fff5e9;display:grid;place-items:center;font-size:23px;color:#b26b2e;flex:0 0 44px}
.sdk-notice-text{flex:1;min-width:0}.sdk-notice-text strong{display:block;color:#485267;font-size:13px;margin-bottom:5px}.sdk-notice-text p{font-size:11px;color:#8b94a4;margin:0;line-height:1.55}.sdk-notice .primary{white-space:nowrap;flex:0 0 auto}
@media(max-width:800px){.sdk-notice{align-items:flex-start;flex-wrap:wrap}.sdk-notice .primary{margin-left:62px}}
@media(max-width:560px){.sdk-notice{gap:12px;padding:16px}.sdk-notice-icon{width:35px;height:35px;flex-basis:35px}.sdk-notice-text{min-width:180px}.sdk-notice .primary{margin-left:0;width:100%}}

/* 1.0.2: botão de sincronização e diagnóstico */
.file-sync-status{font-size:11px;font-weight:650;color:#77869c;display:flex;align-items:center;justify-content:flex-end;min-height:22px;margin:-7px 0 10px;}
.empty-state strong{color:#394454;display:block;font-size:14px;margin-bottom:8px}
.empty-state p{max-width:580px;margin:0 auto 12px;overflow-wrap:anywhere;}
@media(max-width:720px){.file-sync-status{justify-content:flex-start}.file-actions{flex-wrap:wrap}}

/* v1.0.3: detalhes de leitura MEGA */
.diagnostics{margin-top:18px;padding:17px 20px;background:#fff;border:1px solid #e5e9f0;border-radius:12px;font-size:12px;color:#4b5565}
.diagnostics summary{cursor:pointer;font-size:12px;font-weight:750;color:#374155}
.diagnostics p{margin:14px 0 8px}.diagnostics pre{background:#f6f8fb;border:1px solid #e8edf3;border-radius:8px;padding:12px;font-size:11px;white-space:pre-wrap;word-break:break-word;line-height:1.65}

/* v1.0.11 - legibilidade aprimorada, sem dependencias de fontes externas */
body{font-family:"Trebuchet MS","Segoe UI",Arial,sans-serif;letter-spacing:.005em;-webkit-font-smoothing:antialiased}button,input,select,textarea{font-family:inherit} .nav-item{font-size:13px} .topbar-location{font-size:11px} .file-name button,.users-table td{font-size:13px} .muted{line-height:1.65} .cloud-disclaimer{line-height:1.7}
