:root{--bg:#fff5f8;--surface:#fff;--text:#5c3146;--muted:#ad8598;--border:#f7dfe9;--violet:#e76e9d;--violet-dark:#cc4d7f;--lavender:#ffe1ec;--shadow:0 7px 35px rgba(156,53,96,.065);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,sans-serif;color:var(--text);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-width:320px;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}a{text-decoration:none;color:inherit}.hidden{display:none!important}.app-shell{display:flex;min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;width:245px;flex-shrink:0;padding:35px 23px;background:white;border-right:1px solid #fbe3eb;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;padding:0 0 55px 3px}.brand-mark{width:46px;height:46px;background:linear-gradient(138deg,#fa89b2,#ffbdd4);border-radius:16px;color:white;display:grid;place-items:center;font-size:26px;box-shadow:0 6px 15px #ee9ab855;position:relative}.brand-mark .brand-ice{font-size:15px;position:absolute;bottom:4px;right:5px}.brand strong{display:block;font-size:18px;letter-spacing:-.4px}.brand small{font-size:11px;color:#af8b9d;display:block;margin-top:3px}.sidebar-label{font-size:10px;letter-spacing:1.6px;font-weight:800;color:#b79cac;padding-left:13px;margin-bottom:19px}.side-nav{display:grid;gap:7px}.nav-option{display:flex;gap:15px;align-items:center;width:100%;border:0;background:transparent;border-radius:13px;padding:14px 16px;color:#9f7b8d;text-align:left;font-size:14px;font-weight:650}.nav-option.active{background:#ffe5ef;color:#b94c78}.nav-option:hover{background:#fff1f7}.nav-icon{font-size:21px;width:20px;line-height:1}.sidebar-foot{margin-top:auto;font-size:11px;color:#aaaec1;line-height:1.6;display:flex;gap:9px;padding:20px 10px}.tiny-star{color:#eb88ab;font-size:18px}.main-frame{flex:1;min-width:0}.topbar{height:87px;border-bottom:1px solid #f9e5ed;background:rgba(255,255,255,.9);display:flex;align-items:center;justify-content:flex-end;padding:0 6.1%}.topbrand{display:none}.topbar-right{display:flex;align-items:center;gap:18px}.date-tag{color:#a77f92;font-size:12px;font-weight:600}.mode-tag{padding:9px 13px;background:#fff6e6;border-radius:22px;color:#d1a25b;font-size:11px;font-weight:800}.content{max-width:1280px;margin:0 auto;padding:42px 6.1% 100px}.page-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.eyebrow{font-size:10px;font-weight:900;letter-spacing:2.3px;color:#c65f89;margin-bottom:11px}.eyebrow span{color:#e78bad}.page-header h1{font-size:32px;line-height:1.1;font-weight:790;letter-spacing:-1.05px;margin:0 0 10px}.wave{font-size:27px;color:#ffd08d}.page-header p{font-size:13px;color:#a9899b;margin:0}.primary-button,.dark-button,.outline-button{border:0;border-radius:12px;padding:14px 18px;font-size:13px;font-weight:750;display:inline-flex;gap:8px;justify-content:center;align-items:center;transition:.15s}.primary-button{background:var(--violet);color:#fff;box-shadow:0 7px 20px rgba(117,116,226,.2)}.primary-button:hover{background:var(--violet-dark);transform:translateY(-1px)}.dark-button{background:#995575;color:white}.dark-button:hover{background:#ad6484}.outline-button{background:white;color:#b55b83;border:1px solid #f4dbe5}.outline-button:hover{background:#fff0f6}.wide{width:100%}.local-note{background:#fff9e9;border:1px solid #f7ecca;border-radius:14px;padding:12px 15px;display:flex;gap:10px;align-items:flex-start;font-size:12px;color:#947951;line-height:1.6;margin-bottom:20px}.local-note b{font-weight:800}.dot{height:7px;width:7px;background:#e3b664;border-radius:50%;margin-top:6px;flex:none}.kpi-layout{display:grid;grid-template-columns:1.13fr 1fr;gap:17px;margin-bottom:20px}.kpi-card{background:#fff;border:1px solid #f8e3ed;border-radius:20px;box-shadow:var(--shadow)}.kpi-main{position:relative;overflow:hidden;background:linear-gradient(116deg,#e66e9a 0%,#f6adc8 100%);color:white;min-height:242px;padding:30px}.kpi-head{font-size:10px;letter-spacing:2.2px;font-weight:800;color:#fff5fa;display:flex;justify-content:space-between;position:relative;z-index:1}.kpi-symbol{font-size:27px;line-height:.6;opacity:.8}.kpi-amount{font-weight:850;font-size:43px;letter-spacing:-1.8px;margin-top:23px;position:relative;z-index:1}.kpi-detail{font-size:11.5px;color:#fff0f6;margin-top:7px;position:relative;z-index:1}.kpi-pill{display:inline-block;padding:9px 12px;background:#ffffff2c;border:1px solid #ffffff20;border-radius:22px;font-size:10px;font-weight:750;margin-top:22px;position:relative;z-index:1}.glow{position:absolute;border-radius:50%;border:1px solid #ffffff37;pointer-events:none}.glow-one{height:290px;width:290px;right:-85px;top:-40px;box-shadow:0 0 0 48px #ffffff0a,0 0 0 95px #ffffff06}.glow-two{width:130px;height:130px;right:110px;bottom:-104px;background:#ffffff0b}.small-kpis{display:grid;grid-template-columns:1fr 1fr;gap:17px}.kpi-small{padding:24px 22px;min-width:0}.kpi-mini-icon{height:39px;width:39px;border-radius:12px;display:grid;place-items:center;font-size:21px;font-weight:800}.kpi-mini-icon.purple{background:#ffe5f0;color:#e0739d}.kpi-mini-icon.peach{background:#fff0eb;color:#eab3a5}.kpi-small-name{font-size:12px;color:#9b9eb1;margin-top:21px}.kpi-small-value{font-weight:850;letter-spacing:-.7px;font-size:25px;margin:8px 0 9px;white-space:nowrap}.kpi-small-foot{font-size:11px;color:#aaaebc}.two-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}.panel{background:white;border:1px solid var(--border);border-radius:20px;box-shadow:var(--shadow);padding:25px}.panel-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:25px}.panel-heading h2{margin:0;font-size:16px;letter-spacing:-.3px;font-weight:790}.panel-heading h2 span{font-size:16px}.panel-heading p{color:#ae8d9e;font-size:11.5px;margin:8px 0 0}.subtle-pill{font-size:10px;color:#9397ac;background:#f6f7fb;padding:9px 10px;border-radius:9px;white-space:nowrap;font-weight:700}.flavor-chart{display:grid;gap:16px}.flavor-row{display:grid;gap:8px}.flavor-heading{display:flex;align-items:center;justify-content:space-between;font-size:11.5px}.flavor-heading .flavor-left{display:flex;align-items:center;gap:8px;color:#70758d;font-weight:650}.flavor-emoji{height:25px;width:25px;border-radius:8px;display:grid;place-items:center;font-size:14px}.flavor-number{color:#9498ab;font-size:11px;font-variant-numeric:tabular-nums}.bar-track{width:100%;height:7px;background:#f5f5f9;border-radius:10px;overflow:hidden}.bar-fill{height:100%;border-radius:12px;min-width:0;transition:width .35s}.weekly-chart{height:199px;display:flex;justify-content:space-between;gap:16px;align-items:stretch;padding:3px 3px 0}.week-day{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:9px;flex:1;min-width:0}.week-plot{height:150px;width:100%;display:flex;justify-content:flex-end;align-items:center;flex-direction:column}.week-value{font-size:10px;color:#aaa9d1;font-weight:750;margin-bottom:5px}.week-bar{max-width:30px;width:100%;border-radius:8px 8px 4px 4px;background:linear-gradient(#f1a2c0,#ffe0ed);min-height:4px;transition:height .3s}.week-bar.today{background:linear-gradient(#d95f8c,#f39fc1)}.week-label{font-size:10px;font-weight:700;color:#a3a7b8}.week-label.today{color:#d4749c}.weekly-foot{border-top:1px solid #f4f3f8;margin-top:14px;padding-top:13px;color:#bdbecc;font-size:10px}.recent-panel{margin-top:20px}.text-button{font-size:12px;color:#d26690;font-weight:750;border:0;background:transparent}.records-list{display:grid}.record{display:flex;align-items:center;gap:12px;padding:13px 0;border-top:1px solid #f5f5f9;min-height:67px}.record:first-child{border-top:0}.record-icon{height:41px;width:41px;border-radius:13px;display:grid;place-items:center;font-size:20px;flex-shrink:0}.record-description{flex:1;min-width:0}.record-description b{font-size:12px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.record-description small{font-size:10px;color:#a5a7b7;margin-top:5px;display:block}.record-amount{font-size:12px;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}.record-amount.in{color:#38af95}.record-amount.out{color:#e19d9b}.empty-state{text-align:center;padding:30px 10px;color:#a8a9ba;font-size:12px;line-height:1.6}.empty-state .empty-icon{font-size:25px;display:block;margin-bottom:10px}.register-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.sales-panel,.expense-panel{align-self:start}.sales-grid{display:grid;gap:9px}.flavor-choice{border:1.5px solid #f8e3ed;background:#fff;border-radius:13px;padding:12px;display:flex;align-items:center;gap:12px;text-align:left;color:#626881;font-size:12px;font-weight:720}.flavor-choice:hover,.flavor-choice.selected{background:#fff0f6;border-color:#efa1bd}.flavor-choice.selected:after{content:'✓';margin-left:auto;color:#d45c8a;font-weight:900}.flavor-choice .flavor-emoji{width:39px;height:39px;font-size:18px}.quantity-section{border-top:1px solid #f2f3f8;margin-top:21px;padding-top:17px;display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:700}.quantity-stepper{border:1px solid #ebeaf4;border-radius:12px;display:flex;align-items:center;gap:14px}.quantity-stepper button{height:36px;width:37px;background:transparent;border:0;color:#d45c8a;font-size:20px}.quantity-stepper strong{font-size:13px;min-width:10px;text-align:center}.selected-hint{font-size:11px;color:#9ca0b1;text-align:center;margin:20px 0 11px}.field{display:grid;gap:8px;margin-bottom:16px}.field label{font-weight:750;font-size:12px;color:#60667b}.field input,.field select,.auth-card input{width:100%;appearance:none;border:1px solid #e7e8f1;border-radius:12px;padding:14px;background:#fbfcff;font-size:13px;color:#30364d;outline:0}.field input:focus,.field select:focus,.auth-card input:focus{border-color:#e882aa;box-shadow:0 0 0 3px #ed9fc433}.field select{background-image:linear-gradient(45deg,transparent 50%,#9699ad 50%),linear-gradient(135deg,#9699ad 50%,transparent 50%);background-position:calc(100% - 19px) calc(50% - 1px),calc(100% - 14px) calc(50% - 1px);background-size:5px 5px;background-repeat:no-repeat}.history-controls{display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid #f3f4f8;padding-bottom:20px;margin-bottom:1px}.tab-filter{display:flex;gap:7px;flex-wrap:wrap}.tab-filter button{background:#f8f9fc;color:#999bb0;border:0;border-radius:10px;padding:10px 13px;font-size:11px;font-weight:750}.tab-filter button.active{background:#fff0f6;color:#676fd0}.history-count{font-size:11px;color:#b1b3c0;white-space:nowrap}.history-list{min-height:150px}.record-delete{height:29px;width:29px;display:grid;place-items:center;margin-left:3px;border:0;background:#fff;color:#c6c9d1;border-radius:8px;font-size:18px}.record-delete:hover{background:#ffeded;color:#de8c91}.security-panel{padding:24px;background:#ffe5ef;border-radius:17px;margin-top:20px}.security-panel h3{margin:0 0 7px;font-size:14px}.security-panel p{margin:0 0 18px;font-size:12px;line-height:1.6;color:#8d91aa}.security-actions{display:flex;gap:9px;flex-wrap:wrap}.import-label{cursor:pointer}.bottom-nav{display:none}.floating-sale{position:fixed;right:27px;bottom:26px;background:#7279dc;border:0;border-radius:99px;color:white;padding:15px 19px;box-shadow:0 8px 22px #7178dc55;font-weight:800;font-size:13px;display:flex;align-items:center;gap:9px;z-index:5}.floating-sale:hover{background:#656bd1}.overlay{position:fixed;inset:0;z-index:30;background:#24264278;display:flex;justify-content:center;align-items:center;padding:20px}.sheet{width:100%;max-width:440px;border-radius:25px;background:white;padding:28px;box-shadow:0 20px 80px #24264233}.sheet-handle{display:none}.sheet-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:6px}.sheet-title-row h2{font-size:22px;letter-spacing:-.5px;margin:0 0 5px}.sheet-title-row p{font-size:12px;color:#a2a5b6;margin:0}.close-button{font-size:25px;color:#a8acbc;background:#f7f7fb;border:0;border-radius:10px;height:36px;width:36px}.sheet-flavors{margin-top:23px;display:grid;gap:9px}.sheet-choice{display:flex;align-items:center;gap:13px;padding:13px;border:1px solid #ededf4;border-radius:14px;background:#fff;width:100%;text-align:left}.sheet-choice:hover,.sheet-choice:active{border-color:#979be5;background:#f9f8ff}.sheet-choice .flavor-emoji{width:43px;height:43px;font-size:19px}.sheet-choice b{font-size:13px;flex:1;color:#454962}.sheet-choice strong{font-size:12px;color:#868adc}.sheet-note{font-size:11px;line-height:1.5;color:#a4a7b8;margin-top:15px;text-align:center}.toast{opacity:0;pointer-events:none;position:fixed;z-index:45;left:50%;bottom:25px;transform:translate(-50%,12px);background:#303953;color:white;padding:13px 20px;border-radius:14px;font-size:12px;font-weight:700;box-shadow:0 15px 38px #30395344;transition:opacity .2s,transform .2s;white-space:nowrap;max-width:90vw;text-overflow:ellipsis;overflow:hidden}.toast.show{opacity:1;transform:translate(-50%,0)}.auth-screen{position:fixed;inset:0;z-index:50;background:#f8f9fe;display:grid;place-items:center;padding:25px}.auth-card{max-width:380px;width:100%;background:#fff;padding:33px;border:1px solid #eff0f6;box-shadow:var(--shadow);border-radius:25px}.auth-hero{font-size:40px}.auth-card h1{margin:8px 0}.auth-card p{font-size:12px;color:#999cb0;line-height:1.6}.auth-card form{display:grid;gap:15px;margin-top:25px}.auth-card label{font-size:12px;font-weight:700;display:grid;gap:7px}.auth-error{font-size:12px;color:#d37879;margin-top:15px}
@media(max-width:1150px){.sidebar{width:217px}.content{padding-left:4%;padding-right:4%}.topbar{padding:0 4%}.kpi-small{padding:23px 17px}.kpi-small-value{font-size:21px}.panel{padding:21px}}
@media(max-width:900px){.sidebar{display:none}.topbar{justify-content:space-between;padding:0 5%}.topbrand{display:flex;align-items:center;gap:9px;font-size:15px}.mini-mark{height:30px;width:30px;border-radius:9px;background:#8388e4;display:grid;place-items:center;color:white;font-size:18px}.content{padding:32px 5% 122px}.kpi-layout{grid-template-columns:1fr}.kpi-main{min-height:205px}.two-columns{grid-template-columns:1fr 1fr}.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:10;justify-content:space-around;background:#fff;border-top:1px solid #eeeef4;padding:9px 0 calc(8px + env(safe-area-inset-bottom))}.mobile-nav-option{display:grid;gap:4px;justify-items:center;background:transparent;border:0;color:#a1a4b6;font-weight:750;min-width:80px}.mobile-nav-option span{font-size:25px;line-height:1.1}.mobile-nav-option small{font-size:10px}.mobile-nav-option.active{color:#757bd8}.floating-sale{bottom:86px}}
@media(max-width:630px){.topbar{height:66px;padding:0 20px}.date-tag{display:none}.mode-tag{font-size:10px;padding:8px}.content{padding:28px 17px 130px}.page-header h1{font-size:27px}.page-header{align-items:flex-start}.page-header p{font-size:12px;line-height:1.5}.top-cta{display:none}.kpi-layout{gap:13px}.kpi-main{min-height:215px;padding:25px}.kpi-amount{font-size:38px;margin-top:20px}.small-kpis{gap:12px}.kpi-small{padding:16px;min-height:154px}.kpi-mini-icon{height:34px;width:34px;font-size:18px}.kpi-small-name{font-size:11px;margin-top:15px}.kpi-small-value{font-size:22px}.kpi-small-foot{font-size:10px}.two-columns,.register-grid{grid-template-columns:1fr;gap:14px}.panel{padding:21px 18px}.panel-heading{margin-bottom:20px}.panel-heading h2{font-size:15px}.recent-panel{margin-top:14px}.weekly-chart{gap:10px}.history-controls{display:block}.history-count{display:block;margin-top:12px}.security-panel{padding:21px}.security-actions>*{width:100%}.floating-sale{right:16px;bottom:85px}.overlay{align-items:flex-end;padding:0}.sheet{border-radius:25px 25px 0 0;padding:16px 22px calc(25px + env(safe-area-inset-bottom));max-width:none;max-height:94dvh;overflow-y:auto}.sheet-handle{display:block;width:45px;height:5px;border-radius:5px;background:#e6e7ed;margin:0 auto 19px}.sheet-title-row h2{font-size:21px}.sheet-flavors{gap:8px}.sheet-choice{padding:10px 12px}.toast{bottom:80px}}

.recent-actions{display:flex;gap:15px;align-items:center;flex-wrap:wrap}.text-button:disabled{color:#cacdd7}.logout-button{border:0;background:#f5f5fb;border-radius:10px;padding:8px 11px;color:#868da5;font-size:11px;font-weight:800}@media(max-width:420px){.recent-actions{gap:8px}.recent-actions .text-button{font-size:10px}}

/* Cubos Shalon: detalles rosados con lazos, corazones y pequeños brillos */
.sidebar{background:linear-gradient(180deg,#fff 0%,#fff4f8 100%);border-right-color:#f8dbe7}
.brand-mark{border-radius:17px;box-shadow:0 9px 19px #f0adc352}
.brand strong,.topbrand strong{color:#9d3c65}
.brand small{display:none}
.sidebar-label,.eyebrow{color:#d3739b}
.nav-option.active{background:#ffe1ed;color:#b64170}
.kpi-main{background:linear-gradient(120deg,#d85b8b,#ec8cad 66%,#f5b4cc)}
.kpi-card,.panel{border-color:#f8e2ec}
.primary-button{box-shadow:0 8px 20px #d9578b2b}
.primary-button:hover{background:#c94d7c}
.brand-mark:before{content:'🎀';position:absolute;font-size:14px;top:-10px;right:-7px;filter:drop-shadow(0 2px 2px #fff)}
.page-header h1,.sheet h2{color:#8a3459}
.page-header .wave{color:#e877a0}
.topbar{background:#fffafc}
.floating-sale{background:#dc6491!important;color:white}
.auth-screen{background:linear-gradient(140deg,#fff0f6,#ffe0ec)}
@media(max-width:700px){.content{background:linear-gradient(180deg,#fff5f9,#fff9fb 250px)}.topbar{border-bottom-color:#f5dde7}}

/* Cubos Shalon - calculadora mini para gastos e insumos */
.expense-calculator{background:#fff5fa;border:1px solid #f5d5e3;border-radius:15px;margin:3px 0 18px;overflow:hidden}
.expense-calculator>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;list-style:none;cursor:pointer;padding:14px 15px;user-select:none;min-height:50px}
.expense-calculator>summary::-webkit-details-marker{display:none}
.expense-calculator-title{color:#a63d71;font-size:13px;font-weight:800}
.expense-calculator-chevron{color:#c96192;font-size:19px;transition:transform .16s;line-height:1}
.expense-calculator[open] .expense-calculator-chevron{transform:rotate(180deg)}
.expense-calculator-content{border-top:1px solid #f4dce6;padding:13px 14px 16px}
.expense-calculator-help{color:#916b82;font-size:12px;line-height:1.55;margin:0 0 14px}
.expense-calc-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.expense-calc-grid .field{min-width:0;margin-bottom:12px}
.expense-calc-grid .field input{width:100%;min-width:0}
.expense-calc-total{display:flex;justify-content:space-between;align-items:center;gap:8px;background:#fff;border:1px solid #f2d5e1;border-radius:12px;padding:12px 13px}
.expense-calc-total span{font-size:12px;font-weight:650;color:#8b6179}
.expense-calc-total strong{font-size:20px;font-weight:850;font-variant-numeric:tabular-nums;color:#c34c82;white-space:nowrap}
.expense-calc-feedback{margin:10px 2px 0;color:#987386;font-size:11px;line-height:1.5}
.expense-calc-feedback.invalid{color:#b24d68}
.expense-amount-note{color:#9c8191;font-size:11px;line-height:1.45}
@media(max-width:380px){.expense-calc-grid{gap:8px}.expense-calculator-content{padding:12px 10px}.expense-calc-grid .field input{padding:12px 8px}}
