:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#090d12;--surface:#10161f;--raised:#151e2a;--input:#0c121a;--border:#253040;--fg:#eef2f7;--muted:#8b9aaf;--accent:#28c8d1;--accent-dim:#15363d;--gold:#e7bd69;--shadow:0 24px 90px #0008;font-synthesis:none;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}:root[data-theme=paper]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#f1f4f5;--surface:#fff;--raised:#e8f0ee;--input:#f7f9f8;--border:#d4dedc;--fg:#17352e;--muted:#526b63;--accent:#176b54;--accent-dim:#def1e9;--shadow:0 24px 80px #19362c22}:root[data-theme=graphite]{--bg:#151719;--surface:#202326;--raised:#292d31;--input:#191c1f;--border:#383e43;--fg:#f0f2f4;--muted:#a3adb7;--accent:#c1d0df;--accent-dim:#34404b}:root[data-theme=amethyst]{--bg:#100d19;--surface:#191425;--raised:#241c34;--input:#120f1c;--border:#372b4c;--fg:#f2ecfc;--muted:#a396b7;--accent:#b59aff;--accent-dim:#352745}:root[data-theme=ocean]{--bg:#071321;--surface:#0e1e31;--raised:#152a43;--input:#0b1728;--border:#263d5b;--fg:#e8f3ff;--muted:#91a8c5;--accent:#67b8ff;--accent-dim:#173c5c}:not(:where(.sheet-surface *)){box-sizing:border-box}.sheet-surface .fortune-context-menu{box-sizing:border-box;max-width:calc(100% - 16px);max-height:calc(100% - 16px)}.sheet-surface .fortune-context-menu .luckysheet-cols-menuitem-content{white-space:normal}body{background:var(--bg);color:var(--fg);margin:0}button:not(:where(.sheet-surface *)),input:not(:where(.sheet-surface *)),select:not(:where(.sheet-surface *)),textarea:not(:where(.sheet-surface *)){font:inherit}button:not(:where(.sheet-surface *)){cursor:pointer;color:inherit;background:0 0;border:1px solid #0000;border-radius:7px;justify-content:center;align-items:center;gap:7px;padding:8px 11px;font-size:12px;font-weight:550;transition:background .15s,border-color .15s;display:inline-flex}button:not(:where(.sheet-surface *)):hover{background:var(--raised)}button:not(:where(.sheet-surface *)):disabled{opacity:.5;cursor:default}button:not(:where(.sheet-surface *)):focus-visible,input:not(:where(.sheet-surface *)):focus-visible,select:not(:where(.sheet-surface *)):focus-visible,textarea:not(:where(.sheet-surface *)):focus-visible,summary:not(:where(.sheet-surface *)):focus-visible{outline:2px solid var(--accent);outline-offset:2px}input:not(:where(.sheet-surface *)),select:not(:where(.sheet-surface *)),textarea:not(:where(.sheet-surface *)){min-width:0;color:var(--fg);background:var(--input);border:1px solid var(--border);border-radius:7px;padding:10px 12px;font-size:13px}textarea:not(:where(.sheet-surface *)){resize:vertical}input:not(:where(.sheet-surface *))::placeholder,textarea:not(:where(.sheet-surface *))::placeholder{color:var(--muted)}input[type=checkbox]:not(:where(.sheet-surface *)){accent-color:var(--accent);width:15px;height:15px}label:not(:where(.sheet-surface *)){flex-direction:column;gap:8px;margin:18px 0;font-size:12px;font-weight:550;display:flex}label small:not(:where(.sheet-surface *)){color:var(--muted);font-weight:400;line-height:1.5}p:not(:where(.sheet-surface *)){font-size:13px;line-height:1.7}h2:not(:where(.sheet-surface *)){letter-spacing:-.4px;font-size:18px}h3:not(:where(.sheet-surface *)){margin-top:25px;font-size:14px}small:not(:where(.sheet-surface *)){color:var(--muted);font-size:11px;line-height:1.6;display:block}code:not(:where(.sheet-surface *)){color:var(--accent);font-family:ui-monospace,monospace;font-size:12px}.muted{color:var(--muted)}.small{font-size:11px}.primary{background:var(--accent);color:var(--bg);border-color:var(--accent);padding:11px 15px;font-weight:700}.primary:hover{background:var(--accent);filter:brightness(1.1)}.danger{color:#ffe7e9;background:#612c30;border-color:#a8474d}.error,.warning-text{color:#ffb8a5}:root[data-theme=paper] .primary{color:#fff}:root[data-theme=paper] :is(.error,.warning-text):not(.save-status){color:#a12822}.eyebrow{letter-spacing:2px;color:var(--muted);font-size:10px;font-weight:650;display:block}.pill{color:var(--accent);letter-spacing:1.2px;border:1px solid var(--accent-dim);background:var(--accent-dim);border-radius:20px;align-items:center;gap:7px;padding:7px 11px;font-size:10px;display:inline-flex}.brand{white-space:nowrap;align-items:center;gap:10px;display:flex}.brand img{width:36px;height:36px}.brand span{letter-spacing:-.8px;font-size:21px;font-weight:680}.brand small{letter-spacing:2.1px;margin-left:7px;font-size:8px}.auth{grid-template-columns:1.15fr 1fr;min-height:100dvh;display:grid}.auth-story{border-right:1px solid var(--border);background:radial-gradient(ellipse at 0 95%, #123d424d, transparent 65%), var(--bg);flex-direction:column;align-items:flex-start;padding:50px 10% 35px;display:flex;position:relative;overflow:hidden}.auth-story:after{content:"";pointer-events:none;border:1px solid #28c8d110;border-radius:50%;width:450px;height:450px;position:absolute;top:-220px;right:-130px;box-shadow:0 0 0 75px #28c8d105,0 0 0 150px #28c8d103}.auth-story>.eyebrow{color:var(--accent);letter-spacing:2.5px;margin-top:95px}.auth h1{letter-spacing:-2px;margin:22px 0 17px;font-size:clamp(35px,3.4vw,55px);font-weight:550;line-height:1.15}.auth h1 em{color:var(--accent);font-style:normal}.auth-story p{color:var(--muted);font-size:15px;line-height:1.9}.story-grid{border:1px solid #2b596055;border-radius:9px;grid-template-columns:25px 1.4fr 1fr 1fr;width:100%;max-width:450px;margin:35px 0 55px;display:grid;overflow:hidden;transform:perspective(650px)rotateX(5deg)rotateY(-7deg);box-shadow:10px 22px 50px #0004}.story-grid span{color:#879da9;background:#0c171d;border-bottom:1px solid #253b4255;border-right:1px solid #253b4255;padding:10px;font-size:11px}.story-grid span:nth-child(-n+4){color:var(--accent);background:#14292f}.story-grid span:nth-child(4n+1){color:#627f8a;padding:10px 5px}.story-grid span:last-child{color:var(--accent);background:#12393d;font-weight:700}.auth-story footer{color:var(--muted);align-items:center;gap:8px;margin-top:auto;font-size:10px;display:flex}.auth-form{align-self:center;width:100%;max-width:430px;margin:0 auto;padding:40px 25px}.auth-form h2{letter-spacing:-.9px;margin-top:23px;font-size:27px}.auth-form>p{color:var(--muted)}.auth-form form{margin-top:32px}.auth-form .primary{justify-content:space-between;width:100%;margin-top:25px}.auth-note{margin-top:35px;font-size:11px}.loading{flex-direction:column;justify-content:center;align-items:center;min-height:100dvh;display:flex}.loading img{width:52px}.workspace{flex-direction:column;height:100dvh;min-height:400px;display:flex;overflow:hidden}.demo-banner{color:#624900;background:#fff4d3;flex-shrink:0;align-items:center;gap:12px;padding:7px 16px;font-size:12px;line-height:1.4;display:flex}.demo-banner strong{letter-spacing:1px;font-size:10px}.demo-banner a{color:inherit;margin-left:auto;font-weight:650}.demo-link{color:var(--accent);font-size:13px}.demo-ai-note{border:1px solid var(--border);background:var(--input);color:var(--fg);padding:12px}.app-header{color:#fff;background:#155d47;border-bottom:1px solid #ffffff24;flex-shrink:0;align-items:center;gap:20px;height:56px;padding:6px 16px;display:flex}.app-header .brand{border-right:1px solid #ffffff35;padding-right:20px}.app-header .brand img{width:28px;height:28px}.app-header .brand span{letter-spacing:-.5px;font-size:18px}.title-block{flex-direction:column;align-items:flex-start;gap:2px;min-width:160px;display:flex}.title-block input{color:#fff;background:0 0;border:1px solid #0000;width:250px;padding:3px 5px;font-size:14px;font-weight:600}.title-block input:hover{border-color:#ffffff70}.title-block input:focus{background:#104b39;outline-color:#fff}.save-status{color:#e0eee8;align-items:center;gap:5px;padding-left:6px;font-size:10px;display:flex}.save-status.saved{color:#dcf8e9}.save-status.error,.save-status.conflict{color:#ffe1a3}.status-dot{background:var(--gold);border-radius:50%;width:5px;height:5px}.header-actions{align-items:center;gap:17px;margin-left:auto;display:flex}.local-badge{color:#e0eee8;align-items:center;gap:5px;font-size:10px;display:flex}.ai-button{color:#fff;background:#ffffff12;border:1px solid #ffffff60;padding:7px 11px}.app-header button:hover,.app-header button[aria-pressed=true]{background:#ffffff25}.app-header button:focus-visible{outline-color:#fff}.avatar{color:#fff;background:#ffffff18;border:1px solid #ffffff60;border-radius:50%;width:32px;height:32px;font-size:10px;font-weight:700}.menu-bar{z-index:10;background:var(--surface);border-bottom:1px solid var(--border);flex-shrink:0;justify-content:space-between;align-items:center;gap:14px;min-height:42px;padding:5px 12px;display:flex;position:relative}.menu-bar>div{align-items:center;gap:3px;display:flex}.menu-bar button{color:var(--fg);white-space:nowrap;padding:7px 9px;font-size:12px}.menu-bar button:hover,.menu-bar button.active{color:var(--fg);background:var(--raised)}.menu-bar button.active,.menu-bar button[aria-pressed=true],.menu-bar button[aria-expanded=true]{color:var(--accent);background:var(--accent-dim)}.divider{background:var(--border);width:1px;height:18px;margin:0 6px;display:inline-block}.dropdown{position:relative}.dropdown-menu{background:var(--surface);border:1px solid var(--border);min-width:210px;box-shadow:var(--shadow);border-radius:4px;flex-direction:column;padding:6px;display:flex;position:absolute;top:calc(100% + 4px);left:0}.dropdown-menu button{justify-content:flex-start;padding:11px 12px}.work-area{flex:1;gap:0;min-height:0;padding:0;display:flex;position:relative;overflow:hidden}.sheet-main{background:#fff;border:0;border-radius:0;flex-direction:column;flex:1;min-width:0;min-height:0;display:flex;overflow:hidden}.formula-bar{background:var(--surface);border-bottom:1px solid var(--border);flex-shrink:0;align-items:center;gap:3px;height:36px;padding:5px 8px;display:flex}.formula-bar input{background:var(--input);border:none;border-radius:3px;padding:5px 7px;font-size:12px}.formula-bar input:first-child{width:85px;font-family:ui-monospace,monospace}.formula-bar input[aria-label="Valor ou fórmula"]{background:0 0;flex:1}.formula-bar .fx{color:var(--muted);border-left:1px solid var(--border);padding:0 10px;font:italic 18px Georgia,serif}.formula-bar button{color:var(--muted);padding:4px 6px}.formula-bar output{color:var(--accent);text-overflow:ellipsis;white-space:nowrap;max-width:160px;margin:0 8px;font-family:ui-monospace,monospace;font-size:11px;overflow:hidden}.sheet-surface{color:#222;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;flex:1;min-height:0;font-family:Arial,sans-serif;font-size:13px;position:relative}.sheet-surface .fortune-sheet-container{height:100%;font-family:Arial,sans-serif}.sheet-surface.dark-cells{filter:invert(.93)hue-rotate(180deg)}.file-panel,.side-panel{background:var(--surface);border:1px solid var(--border);scrollbar-width:thin;scrollbar-color:var(--border) transparent;border-radius:0;flex-shrink:0;width:310px;padding:18px;overflow-y:auto}.side-panel{width:355px}.panel-title{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:8px;margin-bottom:17px;padding-bottom:10px;display:flex}.panel-title h2{align-items:center;gap:8px;margin:0;font-size:15px;display:flex}.panel-title button{color:var(--muted);padding:3px}.file-panel .search{border:1px solid var(--border);color:var(--muted);border-radius:6px;flex-direction:row;align-items:center;margin:0 0 13px;padding-left:9px;display:flex;position:relative}.search input{background:0 0;border:0;width:100%;padding-left:0;font-size:12px}.file-panel>.primary{width:100%;margin-bottom:29px}.file-panel .eyebrow{letter-spacing:1.6px;margin-bottom:12px;font-size:9px}.file-row{border:1px solid #0000;border-radius:7px;align-items:center;margin-bottom:6px;display:flex}.file-row.selected{border-color:var(--accent-dim);background:var(--accent-dim)}.file-row>button:first-child{text-align:left;flex:1;justify-content:flex-start;gap:10px;min-width:0;padding:11px 8px;display:flex}.file-row>button:first-child svg{color:var(--accent);flex-shrink:0}.file-row>button:first-child span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.file-row small{margin-top:4px;font-size:9px}.file-row>button:last-child{color:var(--muted);padding:7px}.panel-note{color:var(--muted);border-top:1px solid var(--border);margin-top:25px;padding-top:17px;font-size:10px;line-height:1.8}.empty-state{text-align:center;padding:30px 10px}.empty-state>svg{color:var(--accent)}.empty-state h3{font-size:14px}.empty-state p{color:var(--muted);font-size:12px}.side-panel .primary{width:100%}.side-panel label{font-size:11px}.side-panel textarea{font-size:12px}.privacy-note{color:var(--muted);align-items:flex-start;gap:7px;font-size:10px;display:flex}.privacy-note svg{flex-shrink:0;margin-top:3px}.selection-preview{color:var(--muted);margin:14px 0;font-size:11px}.selection-preview pre{white-space:pre-wrap;background:var(--input);max-height:180px;padding:9px;font-size:10px;overflow:auto}.ai-result{border-top:1px solid var(--border);margin-top:20px;padding-top:14px}.ai-result p{white-space:pre-wrap;font-size:12px}.ai-result td{word-break:break-word}.chart-preview{border:1px solid var(--border);border-radius:8px;margin-top:18px;padding:12px}.chart-canvas{height:240px}.chart-preview details{margin-top:15px;font-size:10px}.chart-preview table{font-size:10px}.chart-list{border-bottom:1px solid var(--border);justify-content:space-between;margin-top:10px;display:flex}.version{border-bottom:1px solid var(--border);align-items:center;gap:10px;padding:15px 0;display:flex}.version>svg{color:var(--muted);flex-shrink:0}.version>div{flex:1}.version strong{font-size:11px}.version small{margin-top:5px;font-size:10px}.version button{border-color:var(--border);padding:5px;font-size:10px}.user-row{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:12px 0;font-size:12px;display:flex}.user-row small{font-size:9px}.audit-row{border-bottom:1px solid var(--border);padding:8px 0;font-size:10px}.audit-row small{font-size:9px}.checkbox{flex-direction:row;align-items:center;gap:9px;font-size:12px;display:flex}.status-bar{border-top:1px solid var(--border);background:var(--surface);color:var(--muted);flex-shrink:0;justify-content:space-between;align-items:center;height:24px;padding:0 12px;font-size:11px;display:flex}.status-bar>span{align-items:center;gap:7px;display:flex}.connected-dot{background:var(--accent);border-radius:50%;width:5px;height:5px}.toast{z-index:2000;border:1px solid var(--border);background:var(--raised);max-width:min(800px,90vw);box-shadow:var(--shadow);border-radius:9px;align-items:center;gap:11px;padding:14px 16px;font-size:12px;line-height:1.6;display:flex;position:fixed;bottom:36px;left:50%;transform:translate(-50%)}.toast>svg{color:var(--gold);flex-shrink:0}.toast button{padding:3px}.modal-backdrop{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);z-index:1000;background:#0009;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.modal{background:var(--surface);border:1px solid var(--border);width:460px;max-height:90dvh;box-shadow:var(--shadow);border-radius:14px;padding:23px;overflow:auto}.modal.wide{width:760px}.modal>header{justify-content:space-between;align-items:center;margin-bottom:20px;display:flex}.modal>header h2{margin:0}.modal>header button{color:var(--muted);padding:3px}.modal>.primary,.modal>.danger{margin:14px 0 5px}.templates{grid-template-columns:repeat(4,1fr);gap:13px;margin:25px 0 14px;display:grid}.templates>button{text-align:left;border:1px solid var(--border);flex-direction:column;align-items:flex-start;gap:8px;padding:0 0 8px;display:flex;overflow:hidden}.templates>button:hover{border-color:var(--accent)}.templates strong,.templates small{padding:0 12px}.templates strong{font-size:12px}.templates small{font-size:10px;line-height:1.5}.template-preview{width:100%;height:100px;color:var(--accent);background:repeating-linear-gradient(0deg,#0000,#0000 18px,#2a556522 19px),repeating-linear-gradient(90deg,#0000,#0000 28px,#2a556522 29px),#13252d;justify-content:center;align-items:center;display:flex}.template-preview.budget{color:#e7bd69;background-color:#2b261c}.template-preview.inventory{color:#b29bf4;background-color:#272037}.template-preview.projects{color:#79caa1;background-color:#18352c}.theme-grid{grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0;display:grid}.theme-grid>button{border:1px solid var(--border);flex-direction:column;align-items:stretch;gap:8px;padding:5px;display:flex}.theme-grid>button.selected{border-color:var(--accent)}.theme-grid>button>span:last-child{justify-content:space-between;padding:2px 3px;font-size:10px;display:flex}.theme-preview{background:#0c121a;border-radius:4px;align-items:center;gap:4px;height:65px;padding:15px;display:flex;position:relative;overflow:hidden}.theme-preview i{background:var(--swatch);opacity:.6;border-radius:2px;width:21%;height:30px;display:block}.theme-preview i:nth-child(2){opacity:.9;height:45px}.theme-preview i:nth-child(3){opacity:.4;height:20px}.theme-preview.paper{background:#e5eee9}.theme-preview.graphite{background:#25292c}.theme-preview.amethyst{background:#20172f}.theme-preview.ocean{background:#0e2843}.callout{color:var(--gold);background:#ad804f11;border:1px solid #ad804f55;border-radius:8px;gap:12px;padding:13px;display:flex}.callout svg{flex-shrink:0;margin-top:4px}.callout p{margin:0;font-size:12px}.help-content p{color:var(--muted);font-size:12px}table:not(:where(.sheet-surface *)){border-collapse:collapse;width:100%;font-size:11px}td:not(:where(.sheet-surface *)),th:not(:where(.sheet-surface *)){border-bottom:1px solid var(--border);text-align:left;padding:8px}summary:not(:where(.sheet-surface *)){cursor:pointer;margin:15px 0;font-size:11px}hr:not(:where(.sheet-surface *)){border:0;border-top:1px solid var(--border);margin:25px 0}@media (width<=1150px){.menu-bar button{padding:7px;font-size:10px}.app-header{gap:15px}.app-header .brand{padding-right:15px}.local-badge{display:none}.title-block input{width:200px}.side-panel{width:310px}.file-panel{width:260px}.header-actions{gap:9px}.status-bar>span:last-child{display:none}}@media (width<=850px){.app-header{gap:10px;height:56px;padding:6px 12px}.app-header .brand span{display:none}.app-header .brand{padding-right:10px}.app-header .brand img{width:30px}.title-block input{width:170px;font-size:12px}.header-actions{gap:5px}.ai-button{padding:7px;font-size:10px}.menu-bar{flex-wrap:wrap;justify-content:flex-start;gap:2px 12px;padding:4px}.menu-bar>div{flex-shrink:0}.work-area{gap:0;padding:0}.side-panel,.file-panel{z-index:20;box-shadow:var(--shadow);width:min(355px,100vw - 20px);position:absolute;top:0;bottom:0;right:0}.file-panel{left:0;right:auto}.formula-bar output{max-width:65px}.formula-bar input:first-child{width:65px}.status-bar{padding:0 10px}.auth-story{padding:35px 10%}.auth-story .eyebrow{margin-top:70px}.auth-story .brand small{display:none}.auth h1{font-size:36px}.story-grid{grid-template-columns:18px 1.3fr 1fr 1fr}.story-grid span{padding:8px 5px;font-size:9px}.templates{grid-template-columns:repeat(2,1fr)}}@media (width<=620px){.demo-banner{gap:8px;padding:6px 10px;font-size:10px}.auth{display:block}.auth-story{min-height:auto;padding:25px}.auth-story .eyebrow{margin-top:30px}.auth h1{margin:15px 0;font-size:34px}.auth-story p,.story-grid,.auth-story footer{display:none}.auth-form{padding:30px 25px}.auth-form h2{font-size:23px}.app-header .title-block input{width:140px}.app-header .ai-button{gap:0;font-size:0}.app-header .ai-button svg{width:18px;height:18px}.title-block{min-width:130px}.menu-bar .command-group{flex-wrap:wrap;flex-shrink:1}.menu-bar .dropdown{position:static}.dropdown-menu{top:100%;left:auto;right:8px}.formula-bar output{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.status-bar>span:nth-child(2){font-size:8px}.modal-backdrop{padding:12px}.modal{padding:18px}.theme-grid{grid-template-columns:repeat(2,1fr)}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}.language-picker{width:auto;max-width:110px;min-height:32px;font:inherit;border:1px solid;border-radius:4px;padding:4px 7px;font-size:12px}.header-actions .language-picker{color:#fff;background:#155d47;flex-shrink:0}.auth-form>.language-picker{align-self:flex-end;margin-bottom:16px}@media (width<=480px){.header-actions .language-picker{max-width:86px;padding-inline:3px}}
