:root{font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;color:#f2f3f5;background:#101116;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}header{padding:17px max(20px,calc((100% - 1280px)/2));display:flex;align-items:center;justify-content:space-between;background:#17191f;border-bottom:1px solid #2d3039;gap:15px}.brand{display:flex;align-items:center;gap:12px}.logo{background:#e62f35;color:white;font-weight:900;font-size:25px;width:44px;height:44px;display:grid;place-items:center;border-radius:12px}.brand small{display:block;color:#8f94a3;font-size:12px;margin-top:4px}.header-right{display:flex;align-items:center;gap:12px;color:#80d4a4;font-size:12px}nav{display:flex;gap:5px;overflow-x:auto;background:#17191f;padding:0 max(16px,calc((100% - 1280px)/2));border-bottom:1px solid #282b34}nav button{padding:16px 17px;border:0;color:#a4a9b8;background:none;white-space:nowrap;border-bottom:3px solid transparent}nav button.active{color:#fff;border-color:#e83f44;font-weight:700}main{max-width:1280px;margin:0 auto;padding:28px 20px 70px}h1{font-size:26px;margin:0 0 8px}h2{font-size:19px;margin:0 0 14px}h3{font-size:16px;margin:0 0 10px}p{color:#a2a6b3;line-height:1.5}small,.muted{color:#8e94a4}.lead{margin:0 0 24px}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:22px 0}.card,.panel{border:1px solid #2d303a;border-radius:14px;background:#1b1e25;padding:20px}.card label{display:block;font-size:12px;color:#a1a6b1;margin-bottom:12px}.card strong{font-size:28px}.card span{display:block;color:#8d93a1;margin-top:6px;font-size:12px}.panel{margin-top:18px}.flex{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.space{justify-content:space-between}.actions{display:flex;gap:9px;flex-wrap:wrap;margin:15px 0}button.primary{background:#db3339;color:white;border:1px solid #ef4248;padding:11px 16px;border-radius:9px;font-weight:700}button.secondary{background:#323641;color:#fff;border:1px solid #494d59;padding:10px 14px;border-radius:9px}button.ghost{background:transparent;color:#e7e8ec;border:1px solid #3c404b;border-radius:9px;padding:9px 13px}button.danger{background:#48262c;color:#ffaab0;border:1px solid #79343e;border-radius:8px;padding:7px 10px}button:disabled{opacity:.45;cursor:not-allowed}input,select,textarea{background:#111319;border:1px solid #414551;border-radius:9px;padding:11px 12px;color:#f0f1f4;min-width:0;max-width:100%}input[type=checkbox]{accent-color:#e43b40}input:focus,select:focus{outline:2px solid #b83a3d;outline-offset:1px}label.field{display:flex;flex-direction:column;gap:6px;color:#b8bdc8;font-size:12px;font-weight:650;min-width:160px;flex:1}.search{flex:1;min-width:220px}.search input{width:100%}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:13px}th{text-align:left;background:#252831;color:#aab0be;font-size:11px;letter-spacing:.045em;text-transform:uppercase;padding:12px;white-space:nowrap}td{padding:13px 12px;border-bottom:1px solid #2c2f38}tr:hover td{background:#22252e}td.num{font-variant-numeric:tabular-nums;text-align:right}td button{padding:7px 10px}code,.code{color:#f7be67;font-size:12px}.pill{font-size:11px;padding:5px 8px;border-radius:8px;background:#303642;color:#cdd1da}.pill.good{background:#173d2b;color:#8ae3ae}.pill.warn{background:#47361e;color:#f7d385}.progress{height:9px;background:#333640;border-radius:8px;overflow:hidden}.progress div{height:100%;background:#d7363b}.stack{display:flex;flex-direction:column;gap:9px}.entry{border:1px solid #343943;border-radius:12px;padding:14px;background:#21252d;margin-bottom:12px}.entry-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr auto;gap:10px;align-items:end}.total{font-size:25px;color:#fff;font-weight:800}.total small{font-size:13px}.modal{position:fixed;inset:0;background:#05060ae0;display:flex;align-items:center;justify-content:center;padding:16px;z-index:30}.modal.hidden{display:none}.dialog{width:min(850px,100%);background:#1a1d24;border:1px solid #474b57;border-radius:16px;padding:26px;position:relative;max-height:92vh;overflow-y:auto}.close{position:absolute;right:18px;top:15px;color:#e6e8ef;background:#373b46;border:0;border-radius:8px;padding:8px 12px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:15px 0}.notice{background:#262a32;border-left:3px solid #edbf5a;padding:13px;border-radius:4px;font-size:13px;color:#d4d6de}#toast{position:fixed;bottom:22px;right:24px;background:#263c30;border:1px solid #50845b;color:#d9ffdf;padding:12px 16px;border-radius:10px;display:none;z-index:50}.empty{text-align:center;padding:35px;color:#9ca2af}.side-note{font-size:12px;color:#9a9eaa}.clickable{cursor:pointer}.admin-tabs button{margin-right:8px;margin-bottom:8px}.checkbox-row{display:flex;align-items:center;gap:8px}.checkbox-row input{width:17px;height:17px}.tag{font-size:11px;color:#f0ce91}.mono{font-variant-numeric:tabular-nums}@media(max-width:900px){.cards{grid-template-columns:repeat(2,1fr)}.entry-grid{grid-template-columns:1fr 1fr}.entry-grid .delete{grid-column:span 2}header{padding:15px}main{padding:20px 12px 70px}}@media(max-width:580px){.cards{grid-template-columns:1fr 1fr;gap:8px}.card{padding:13px}.card strong{font-size:22px}.card label{margin-bottom:7px}nav button{padding:13px}.brand b{font-size:13px}.header-right{flex-direction:column;gap:5px}.header-right button{font-size:11px;padding:6px}.form-grid{grid-template-columns:1fr}.dialog{padding:18px}.entry-grid{grid-template-columns:1fr}.entry-grid .delete{grid-column:auto}h1{font-size:23px}}

/* Controles del encabezado adaptados a pantallas pequeñas */
@media(max-width:640px){header{flex-wrap:wrap}.header-right{width:100%;flex-wrap:wrap;justify-content:flex-end}#updateAppButton{white-space:nowrap}}

/* Diseño Bembos: negro grafito, superficies carbón y ámbar */
:root{--amber:#ffae1a;--amber-bright:#ffb321;--canvas:#0b0c0f;--surface:#14161b;--border:#282c35;--subtle:#999da8;color:#f6f6f7;background:var(--canvas)}
body{background:var(--canvas);color:#f6f6f7}
.app-shell{display:flex;min-height:100vh}
.sidebar{position:sticky;top:0;height:100vh;flex:0 0 290px;background:#101115;border-right:1px solid #242730;display:flex;flex-direction:column;padding:32px 16px 18px;z-index:5}
.identity{display:flex;align-items:center;gap:15px;padding:0 14px}
.brand-symbol{background:var(--amber);width:50px;height:50px;display:grid;place-items:center;border-radius:14px;color:#121212;font-weight:900;font-size:24px}
.brand-title{font-size:18px;line-height:1.13;font-weight:800;letter-spacing:-.5px}
.brand-caption{color:#aebedb;font-size:11px;letter-spacing:3.2px;margin:24px 14px 35px}
.sidebar #tabs{display:flex;flex-direction:column;align-items:stretch;gap:5px;padding:0;border:0;background:transparent;overflow:visible}
.sidebar #tabs button{display:flex;gap:15px;align-items:center;text-align:left;padding:15px 17px;border:0;border-radius:14px;color:#a0a6b4;background:transparent;font-size:16px;font-weight:500;white-space:nowrap;position:relative}
.sidebar #tabs button:hover{background:#1a1c21;color:#fff}
.sidebar #tabs button.active{background:#202228;color:white;font-weight:700}
.sidebar #tabs button.active::after{content:"";width:7px;height:7px;background:var(--amber);border-radius:50%;position:absolute;right:16px}
.nav-symbol{font-size:23px;width:24px;line-height:1;color:#a4aab6;text-align:center}
.sidebar #tabs button.active .nav-symbol{color:var(--amber)}
.sidebar-footer{margin-top:auto;border-top:1px solid #252831;padding-top:16px}
.profile-card{background:#191b20;border-radius:15px;padding:16px}
.profile-card b{display:block;font-size:14px}.profile-card span{font-size:11px;color:#a0a7b8;display:block;margin-top:5px}
.sidebar-footnote{font-size:11px;color:#838997;padding:15px 10px}
.workspace{flex:1;min-width:0;display:flex;flex-direction:column}
header.topbar{background:#0e0f12;padding:17px 28px;border-bottom:1px solid #242730;gap:12px;min-height:72px;flex-wrap:wrap}
.topbar-label{color:#c5a46d;font-size:10px;letter-spacing:2px;font-weight:800}
.header-right{flex-direction:row;flex-wrap:wrap;gap:10px;color:#9398a4;font-size:11px}
.sync-indicator{background:#202229;border-radius:100px;padding:8px 11px;color:#9da0aa;letter-spacing:.5px;font-weight:750}
main{width:100%;max-width:1180px;padding:38px 44px 90px;margin:0 auto}
h1{font-size:36px;letter-spacing:-1.4px;font-weight:830;line-height:1.15}
h2{font-size:21px;letter-spacing:-.5px}h3{font-size:17px}
p,.lead{color:#989da9}
.eyebrow{font-size:11px;color:var(--amber);letter-spacing:2.6px;font-weight:900;margin-bottom:12px;text-transform:uppercase}
.page-title{margin:0 0 10px}
.page-intro{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:24px}
.page-intro p{margin:0}
.cards{grid-template-columns:repeat(4,minmax(0,1fr))}
.card,.panel{background:#15171c;border:1px solid #292e38;border-radius:19px;padding:24px}
.card strong{color:white}
button.primary{background:var(--amber);border:1px solid var(--amber);color:#16140e;border-radius:11px;font-weight:800}
button.primary:hover{background:#ffc34e}
button.secondary{background:#21242b;border-color:#353944;border-radius:10px}
button.ghost{border-color:#363a44;background:#191b20;border-radius:10px}
button.ghost:hover,button.secondary:hover{border-color:var(--amber);color:white}
button.danger{border-radius:9px}
input,select,textarea{background:#111318;border-color:#333841;border-radius:12px}
input:focus,select:focus{outline-color:var(--amber)}
input[type=checkbox]{accent-color:var(--amber)}
.code,code{color:#d6a353}
.progress{background:#22252c;height:10px;margin:22px 0 24px}
.progress div{background:var(--amber)}
.notice{background:#282015;border-color:var(--amber);color:#ddd0b8}
.entry{background:#1a1d23;border-color:#333740}
.dialog{background:#17191e;border-color:#363a42;border-radius:22px}
#toast{background:#22392f}
.admin-tabs button.primary{background:var(--amber)}
.inventory-header{padding:8px 0 4px}
.inventory-summary{background:#14161b;border:1px solid #282d35;border-radius:30px;padding:25px;margin:24px 0}
.inventory-summary .metric{font-size:37px;font-weight:850}
.inventory-summary .metric small{font-size:18px;color:#9396a0}
.inventory-summary .pct{font-size:31px;color:var(--amber);font-weight:900}
.inventory-summary .progress{margin:20px 0 0}
.summary-count{color:#989ba5;font-size:14px;margin:7px 0 0}
.inventory-toolbar{padding:18px 0 20px}
.inventory-toolbar input{width:100%;padding:15px 16px}
.filter-pills{display:flex;gap:9px;flex-wrap:wrap;margin-top:12px}
.filter-pills button{border:1px solid #2c3039;border-radius:999px;background:#111318;color:#9fa4b0;padding:9px 16px;font-size:13px;font-weight:720}
.filter-pills button.selected{color:var(--amber);border-color:var(--amber);background:#241d10}
.inventory-list{display:flex;flex-direction:column;gap:10px;margin-top:12px}
.product-row{display:flex;width:100%;align-items:center;text-align:left;gap:16px;border:1px solid #2c303a;border-radius:17px;background:#15171c;color:white;padding:13px 16px;min-height:78px;cursor:pointer}
.product-row:hover{background:#1d2026;border-color:#66502e}
.product-row .count-icon{width:43px;height:43px;flex-shrink:0;display:grid;place-items:center;background:#262a32;border-radius:13px;font-size:19px;color:#a8aeb8}
.product-row.is-counted .count-icon{background:#12332d;color:#38c9a1}
.product-row .product-main{flex:1;min-width:0}
.product-row .product-main strong{font-size:14px;display:block;overflow-wrap:anywhere}
.product-row .product-main small{display:block;margin-top:6px;font-size:12px;color:#8f96a3}
.product-row .product-total{text-align:right;margin-left:auto;white-space:nowrap}
.product-row .product-total strong{font-size:20px;display:block;font-weight:800}
.product-row .product-total small{font-size:11px;color:#8f94a0}
.product-group{margin:28px 4px 10px;color:#9da0a8;letter-spacing:2px;font-size:12px;font-weight:850}
.inventory-actions{position:sticky;bottom:8px;display:flex;align-items:center;gap:16px;margin-top:20px;border:1px solid #282b33;border-radius:17px;background:#17191e;padding:11px;box-shadow:0 8px 30px #0007;z-index:3}
.inventory-actions .primary{flex:1;padding:16px}
.inventory-actions .progress-label{color:#a0a4ac;font-size:13px;font-weight:800;padding-right:15px}
.table-wrap{border-radius:12px;overflow-x:auto}
th{background:#22252b}
tr:hover td{background:#202329}
@media(max-width:1100px){.sidebar{flex-basis:240px}.workspace main{padding:27px 22px 80px}.topbar-label{display:none}}
@media(max-width:760px){.app-shell{display:block}.sidebar{position:relative;height:auto;width:100%;padding:14px 12px 0}.identity{padding:0 6px}.brand-symbol{width:40px;height:40px;font-size:20px}.brand-title{font-size:15px}.brand-caption{display:none}.sidebar #tabs{margin-top:13px;flex-direction:row;overflow-x:auto;border-top:1px solid #2a2d32;padding:7px 0 5px}.sidebar #tabs button{padding:11px 12px;font-size:12px;border-radius:10px;gap:6px}.nav-symbol{width:auto;font-size:16px}.sidebar #tabs button.active::after{display:none}.sidebar-footer{display:none}header.topbar{padding:12px 15px;min-height:auto}.header-right{width:100%;justify-content:flex-start;flex-direction:row;align-items:center;gap:6px}.header-right button{font-size:11px;padding:8px}.workspace main{padding:20px 14px 74px}h1{font-size:28px}.inventory-summary{padding:19px;border-radius:22px}.inventory-summary .metric{font-size:28px}.inventory-summary .pct{font-size:26px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.page-intro .actions{width:100%}.page-intro button{flex:1}.inventory-actions{bottom:5px}.product-row{gap:10px;padding:12px}.product-row .count-icon{width:34px;height:34px}.product-row .product-main strong{font-size:12px}.product-row .product-total strong{font-size:17px}}

/* Listas mensuales: revisión previa y selección de plantillas */
.selected-count{color:#f4b12c;font-weight:800;margin:0 0 14px}
.selected-list,.template-preview-list{display:flex;flex-direction:column;gap:8px;max-height:380px;overflow-y:auto;margin-top:12px}
.selected-item{display:grid;grid-template-columns:30px 82px minmax(0,1fr) 55px auto;gap:12px;align-items:center;border:1px solid #30343d;background:#191c22;border-radius:12px;padding:11px 13px}
.selected-index{display:grid;place-items:center;width:27px;height:27px;border-radius:9px;background:#413219;color:#ffb321;font-weight:750}
.selected-item strong{font-size:13px;min-width:0;overflow-wrap:anywhere}
.selected-item small{color:#a3a8b2;text-align:right}
.template-preview{margin:14px 0 19px;padding:14px;border:1px solid #373b43;border-radius:13px;background:#111318}
.template-preview>b{color:#ffb321;font-size:13px}
.template-preview-list>div{padding:8px 5px;border-bottom:1px solid #30333a;font-size:12px;color:#eaebee}
.template-preview-list>div:last-child{border-bottom:0}
.template-preview-list small{float:right;color:#a0a6b2}
@media(max-width:680px){.selected-item{grid-template-columns:26px 70px minmax(0,1fr);gap:8px}.selected-item small{grid-column:2}.selected-item button{grid-column:3;justify-self:end}.selected-item strong{font-size:12px}}

/* Acceso ADM a Supabase — interfaz piloto */
body.auth-locked .app-shell{visibility:hidden}
.auth-gate{position:fixed;inset:0;overflow:auto;background:radial-gradient(circle at 5% 4%,#2e2310,transparent 44%),#0b0c10;display:grid;place-items:center;padding:20px;z-index:100}
.auth-gate[hidden]{display:none}
.auth-card{max-width:460px;width:100%;padding:31px;background:#17191e;border:1px solid #32353e;border-radius:23px;box-shadow:0 16px 55px #0008}
.auth-card h1{font-size:30px}
.auth-logo{background:#ffae1a;border-radius:14px;color:#151310;font-size:24px;font-weight:900;width:48px;height:48px;display:grid;place-items:center;margin-bottom:22px}
.auth-card .field{margin-top:6px}
.auth-card .stack{margin:22px 0;gap:12px}
.auth-card form .primary{width:100%;padding:13px}
.auth-card form[hidden],.auth-card [hidden]{display:none}
.auth-card .ghost{width:100%}
.auth-note{color:#aeb0b9;background:#23252b;border-radius:10px;padding:12px;font-size:12px}
.auth-status{color:#ffcb70;font-size:13px;min-height:18px}
#logoutButton{width:100%;margin-top:12px;text-align:left}
#logoutButton[hidden]{display:none}


/* Inicio guiado · identidad oscura y acentos alegres */
.home-dashboard{display:flex;flex-direction:column;gap:28px;max-width:1220px;margin:0 auto}
.home-hero{position:relative;display:grid;grid-template-columns:minmax(0,1.5fr) minmax(180px,.7fr);gap:22px;overflow:hidden;border:1px solid #76552a;border-radius:26px;background:radial-gradient(circle at 86% 14%,#5b3b19 0,transparent 38%),linear-gradient(112deg,#302314 0%,#211d1b 48%,#181b22 100%);padding:32px 35px}
.home-hero::before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(115deg,#ffffff06,transparent 50%)}
.home-hero-content{position:relative;z-index:1}
.home-eyebrow,.home-kicker{font-size:11px;letter-spacing:2px;font-weight:850;color:#ffc66d}
.home-hero h1{font-size:clamp(29px,3vw,43px);letter-spacing:-1.5px;line-height:1.15;margin:13px 0 11px;color:#fff}
.home-hero h1 span{display:block;color:#ffba45}
.home-hero p{font-size:15px;color:#d3c8b9;max-width:550px;margin:0}
.home-hero-tags{display:flex;flex-wrap:wrap;gap:8px;margin:21px 0}
.home-hero-tags span{font-size:11px;color:#f4e6cf;border:1px solid #725331;background:#2c241c;border-radius:999px;padding:8px 12px}
.home-hero-button{border:none;border-radius:12px;padding:13px 18px;font-weight:850;background:#ffb733;color:#1d1710;display:inline-flex;gap:20px;align-items:center}
.home-hero-button:hover{background:#ffd079;transform:translateY(-1px)}
.home-hero-art{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:15px;position:relative}
.home-art-orbit{width:170px;height:170px;border:2px dashed #a97a3670;border-radius:50%;display:grid;place-items:center;position:relative;background:radial-gradient(circle,#ffc45c1f,transparent 70%)}
.home-art-box{width:95px;height:95px;border-radius:26px;background:#ffb735;color:#3d270c;display:grid;place-items:center;font-size:60px;transform:rotate(-9deg);box-shadow:0 16px 32px #0006}
.home-art-check{position:absolute;right:8px;bottom:9px;background:#33d4a0;color:#092f25;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;font-weight:900;font-size:25px;border:5px solid #27221e}
.home-art-caption{font-weight:850;color:#ffda94;font-size:13px}
.home-section-heading{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:15px}
.home-section h2,.home-bottom-grid h2{font-size:22px;letter-spacing:-.5px;margin:6px 0 0}
.home-section-heading p{margin:0;font-size:12px}
.home-quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.home-quick-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:9px;min-height:174px;padding:18px;border-radius:18px;background:#1a1d24;border:1px solid #323740;color:#f7f7f7;transition:transform .15s,border-color .15s,background .15s}
.home-quick-card:hover,.home-quick-card:focus-visible{transform:translateY(-3px);border-color:#d8a147;background:#24252b}
.home-quick-icon{display:grid;place-items:center;width:51px;height:51px;border-radius:15px;font-size:27px;font-weight:900}
.home-quick-card.sun .home-quick-icon{background:#493414;color:#ffbd49}
.home-quick-card.blue .home-quick-icon{background:#1b334d;color:#78bbff}
.home-quick-card.green .home-quick-icon{background:#1b4036;color:#72e8be}
.home-quick-card.purple .home-quick-icon{background:#372749;color:#d7abff}
.home-quick-card strong{font-size:15px}
.home-quick-card small{color:#abb0bb;line-height:1.45;font-size:11px;padding-right:8px}
.home-quick-arrow{position:absolute;right:15px;top:18px;color:#a4a8b3;font-size:19px}
.home-stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.home-stat{background:#191c22;border:1px solid #30343e;border-radius:17px;padding:19px;min-width:0}
.home-stat-icon{font-size:19px;margin-bottom:12px;width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:#373024;color:#ffd07a}
.home-stat.blue .home-stat-icon{background:#20364a;color:#96c7ff}
.home-stat.purple .home-stat-icon{background:#342946;color:#d7abff}
.home-stat.green .home-stat-icon{background:#1b4036;color:#67e5b3}
.home-stat-value{font-size:29px;font-weight:900;font-variant-numeric:tabular-nums;letter-spacing:-1px;color:#fff}
.home-stat-label{font-size:13px;font-weight:800;margin-top:6px}
.home-stat-detail{color:#9ea5b1;font-size:11px;margin-top:7px}
.home-bottom-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:14px}
.home-help,.home-activity{border:1px solid #30343e;border-radius:19px;background:#191c22;padding:24px;min-width:0}
.home-help>p{font-size:13px;margin:10px 0 24px}
.home-steps{display:flex;flex-direction:column;gap:17px}
.home-step{display:flex;align-items:flex-start;gap:14px}
.home-step>span{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:13px;background:#413018;color:#ffc264;font-size:13px;font-weight:900}
.home-step strong,.home-step small{display:block}
.home-step strong{font-size:13px;margin:2px 0 5px}
.home-step small{font-size:12px;color:#a5abb6;line-height:1.5}
.home-recent-row{display:flex;align-items:center;gap:12px;border-bottom:1px solid #30343c;padding:15px 0}
.home-recent-symbol{width:40px;height:40px;flex:none;background:#302719;color:#ffba49;border-radius:13px;display:grid;place-items:center;font-size:20px}
.home-recent-main{flex:1;min-width:0}
.home-recent-main strong,.home-recent-main small{display:block}
.home-recent-main strong{font-size:13px;text-transform:capitalize}
.home-recent-main small{font-size:11px;color:#aab1bc;margin:5px 0 8px}
.home-mini-progress{height:5px;background:#353940;border-radius:99px;overflow:hidden}
.home-mini-progress span{height:100%;display:block;background:#ffbd4d;border-radius:99px}
.home-status{font-size:10px;font-weight:800;border-radius:99px;padding:6px 8px;white-space:nowrap}
.home-status.complete{background:#153b2e;color:#81e6b6}
.home-status.ongoing{background:#44341e;color:#ffcd7b}
.home-no-activity{text-align:center;padding:28px 10px 18px}
.home-no-activity span{font-size:32px;display:block}
.home-no-activity strong{font-size:13px;display:block;margin-top:8px}
.home-no-activity p{font-size:12px}
.home-text-link{margin:17px 0;color:#ffc266;font-size:12px;font-weight:850;background:none;border:0;padding:0;text-align:left}
.home-tip{background:#292518;border:1px solid #5a4628;border-radius:12px;padding:13px 15px;margin-top:14px}
.home-tip strong{color:#ffd58f;font-size:12px}
.home-tip p{font-size:12px;color:#c9bda8;margin:7px 0 0}
.home-safety-note{font-size:11px;color:#aeb3bd;background:#24252b;border-left:3px solid #ffc265;padding:12px 15px;border-radius:9px;margin:0}
@media(max-width:1140px){.home-quick-grid,.home-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-bottom-grid{grid-template-columns:1fr}}
@media(max-width:640px){.home-dashboard{gap:23px}.home-hero{grid-template-columns:1fr;padding:22px;border-radius:20px}.home-hero h1{font-size:31px}.home-hero-art{display:none}.home-section h2,.home-bottom-grid h2{font-size:19px}.home-section-heading>p{display:none}.home-quick-grid,.home-stats-grid{gap:9px}.home-quick-card{min-height:155px;padding:13px}.home-quick-icon{width:43px;height:43px;font-size:23px}.home-quick-card strong{font-size:13px}.home-quick-card small{font-size:10px}.home-stat{padding:13px}.home-stat-value{font-size:25px}.home-stat-label{font-size:11px}.home-help,.home-activity{padding:18px}.home-hero-tags span{font-size:10px}.home-status{font-size:9px}}
@media(prefers-reduced-motion:reduce){.home-quick-card,.home-hero-button{transition:none}.home-quick-card:hover,.home-hero-button:hover{transform:none}}


/* Inicio de operación, adaptado al tablero de referencia */
.overview-page{display:flex;flex-direction:column;gap:28px;max-width:1320px;margin:0 auto}
.overview-welcome{padding:6px 0 8px}
.overview-date{letter-spacing:2.5px;color:#ffb633;font-size:12px;font-weight:850;text-transform:uppercase;margin-bottom:11px}
.overview-welcome h1{font-size:clamp(32px,4vw,48px);font-weight:850;letter-spacing:-1.5px;margin:0 0 5px}
.overview-welcome p{font-size:16px;color:#9da2af;margin:0}
.overview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.overview-card{position:relative;min-height:274px;background:linear-gradient(138deg,#18191e,#16181e);border:1px solid #30343e;border-radius:29px;padding:27px 27px 22px;overflow:hidden}
.overview-card:nth-child(2){background:radial-gradient(circle at 88% 0%,#3d311e70,transparent 65%),#17191e}
.overview-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:6px;max-width:calc(100% - 86px)}
.overview-card-top>span:first-child{color:#a8adba;font-size:12px;letter-spacing:1.9px;font-weight:800;line-height:1.6}
.overview-chip{background:#403018;color:#fbc263;font-size:10px;font-weight:800;border-radius:999px;padding:6px 9px;white-space:nowrap}
.overview-chip.done{background:#173f33;color:#59d9a6}
.overview-number{font-variant-numeric:tabular-nums;font-size:21px;color:#a8b6cd;margin-top:16px}
.overview-number b{font-size:41px;color:#fff;line-height:1}
.overview-remaining{color:#aab4c9;font-size:14px;line-height:1.6;margin-top:9px;max-width:60%}
.overview-ring{position:absolute;right:25px;top:36px;width:86px;height:86px;border-radius:50%;background:conic-gradient(#ffb52f calc(var(--pct)*1%),#2b2e37 0);display:grid;place-items:center}
.overview-ring::before{content:"";position:absolute;inset:9px;background:#1b1d23;border-radius:50%}
.overview-ring strong{position:relative;color:#fff;font-size:17px}
.overview-footer{position:absolute;bottom:22px;left:27px;right:23px;display:flex;align-items:end;justify-content:space-between;gap:10px}
.overview-footer small{font-size:11px;color:#9ea8b8;max-width:110px;line-height:1.5}
.overview-footer button{border:0;border-radius:999px;background:#ffb52e;padding:11px 15px;font-weight:850;color:#16120d;font-size:12px;cursor:pointer}
.overview-footer button:hover{background:#ffd06e}
.overview-sync{background:#14171c}
.overview-sync-heading{display:flex;justify-content:space-between;align-items:center;gap:7px;margin-bottom:20px}
.overview-sync-heading strong{font-size:15px}
.overview-sync-line{display:flex;justify-content:space-between;gap:10px;color:#a4b9dd;font-size:12px;line-height:1.55;margin:12px 0}
.overview-sync-line b{color:#e9edf6;text-align:right;font-size:11px}
.overview-sync>p{color:#aeb4c0;font-size:11px;line-height:1.45;margin:13px 0}
.overview-outline{border:1px solid #3b404b;background:none;color:#cccfd9;border-radius:12px;padding:10px;font-size:11px;font-weight:800;margin-top:4px}
.overview-section-title{color:#a8bddb;font-size:15px;letter-spacing:2.3px;font-weight:800;margin:5px 0 -12px}
.overview-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.overview-shortcuts button{text-align:left;display:flex;flex-direction:column;gap:8px;border:1px solid #30343c;background:#13161b;border-radius:19px;padding:19px;min-height:142px;color:#f5f5f5;cursor:pointer}
.overview-shortcuts button:hover{border-color:#fbb332;background:#1b1c22}
.overview-shortcuts button>span{font-size:24px;color:#ffb734}
.overview-shortcuts button strong{font-size:13px}
.overview-shortcuts button small{font-size:11px;color:#b1c1d8}
.overview-lower{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.overview-panel{background:#181b21;border:1px solid #30343c;border-radius:18px;padding:23px}
.overview-panel h2{font-size:18px;margin:0 0 17px}
.overview-panel>p{font-size:13px;color:#aeb4be}
.overview-recent{display:flex;justify-content:space-between;gap:10px;padding:11px 0;border-bottom:1px solid #33363e}
.overview-recent strong,.overview-recent small{display:block}
.overview-recent strong{font-size:13px}
.overview-recent small{font-size:11px;color:#a1aaba;margin-top:4px}
.overview-recent>span{font-size:11px;color:#ffcf77}
.overview-guide-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.overview-guide-steps span{border:1px solid #454035;background:#28251f;color:#f2ca87;padding:11px;font-size:12px;border-radius:11px}
.remote-admin{display:flex;flex-direction:column;gap:10px}
.remote-admin .panel{margin-top:8px}
.remote-store-list{margin-top:20px;display:flex;flex-direction:column;gap:9px}
.remote-store-item{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid #333941;border-radius:14px;padding:14px;background:#15171d}
.remote-store-item strong,.remote-store-item small{display:block}
.remote-store-item small{font-size:11px;color:#a9afb8;margin-top:5px}
.remote-toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:16px 0}
.remote-empty{background:#20232a;color:#b1b7c2;border-radius:13px;padding:25px;text-align:center}
#remotePurgeButton{margin-top:13px}
@media(max-width:1200px){.overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-sync{grid-column:1/-1;min-height:230px}}
@media(max-width:750px){.overview-grid,.overview-lower{grid-template-columns:1fr}.overview-sync{grid-column:auto}.overview-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-card{min-height:255px}.overview-welcome h1{font-size:35px}.overview-shortcuts button{min-height:127px;padding:14px}.remote-store-item{align-items:flex-start;flex-direction:column}}
@media(max-width:400px){.overview-shortcuts{gap:8px}.overview-ring{width:72px;height:72px;top:49px}.overview-card-top{max-width:calc(100% - 75px)}}


/* Fase cloud, panel seguro por tienda */
.cloud-dashboard{display:flex;flex-direction:column;gap:16px;max-width:1210px;margin:auto}
.cloud-dashboard>.panel{margin-top:0}
.cloud-dashboard .cloud-toolbar{display:flex;align-items:end;gap:20px;flex-wrap:wrap}
.cloud-toolbar .field{min-width:300px;max-width:540px}
.cloud-toolbar>div>small,.cloud-toolbar>div>strong{display:block}
.cloud-toolbar>div>strong{font-size:13px;margin-top:8px}
.cloud-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.cloud-stats .card{padding:16px}
.cloud-stats .card strong{font-size:25px}
.cloud-message{background:#252b35;border:1px solid #414853;border-radius:12px;padding:14px 16px;font-size:13px;color:#d9e1ed}
.cloud-message.success{border-color:#36664f;color:#84e1b1;background:#1c3229}
.cloud-message.error{border-color:#764743;color:#ffaba6;background:#382321}
.cloud-empty{text-align:center;padding:25px;color:#bbc1cd}
.cloud-detail{margin-top:24px;border-top:1px solid #363c46;padding-top:22px}
.cloud-detail>.field{max-width:460px;margin:16px 0}
.cloud-item{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #30343c;border-radius:13px;background:#16191f;padding:13px 15px;margin-bottom:9px}
.cloud-item>div:first-child{flex:1;min-width:0}
.cloud-item strong,.cloud-item small{display:block}
.cloud-item strong{font-size:13px;overflow-wrap:anywhere}
.cloud-item small{font-size:11px;color:#9ea8bb;margin-top:5px}
.cloud-entry-summary{font-size:11px;color:#75d6ac;margin-top:7px;overflow-wrap:anywhere}
.cloud-item-right{display:flex;align-items:center;gap:15px}
.cloud-item-right b{white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:900px){.cloud-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:500px){.cloud-toolbar .field{min-width:0;width:100%}.cloud-item{align-items:flex-start;flex-direction:column}.cloud-item-right{width:100%;justify-content:space-between}}
