:root{color-scheme:dark;--bg:#101010;--card:#1c1c1c;--line:#303030;--text:#f5f5f5;--muted:#bdbdbd;--yellow:#f2c40f;--green:#4caf50;--red:#f5b8bd;font-family:Roboto,'Noto Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:16px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);-webkit-text-size-adjust:100%;font-variant-numeric:tabular-nums}body.light{color-scheme:light;--bg:#f4f3ef;--card:#fff;--line:#deded8;--text:#17191c;--muted:#60646a;--green:#167649;--red:#b02c2c}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;touch-action:manipulation;min-height:48px;border:0;border-radius:14px;padding:12px 16px;background:var(--card);color:var(--text);font-weight:650}button:disabled{opacity:.45;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid var(--yellow);outline-offset:3px}a{color:var(--yellow)}input,select{width:100%;min-height:50px;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:12px;padding:12px;margin-top:7px;font-size:16px}input[type=checkbox]{width:22px;min-height:22px;margin:0;accent-color:var(--yellow)}label{display:block;color:var(--muted);font-size:.88rem;margin:16px 0}h1,h2,h3,p{margin:0}h1{font-size:2rem;letter-spacing:-1px}h2{font-size:1.12rem;letter-spacing:-.3px}h3{font-size:1rem}p{line-height:1.55}small,.muted{color:var(--muted)}.shell{max-width:600px;margin:auto;padding:max(20px,env(safe-area-inset-top)) 20px calc(110px + env(safe-area-inset-bottom))}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px;gap:12px}.brand{display:flex;gap:10px;align-items:center;font-weight:750;letter-spacing:-.5px}.brand img{border-radius:10px;width:34px;height:34px}.status{font-size:.72rem;color:var(--green);background:var(--card);padding:8px 10px;border-radius:30px;max-width:53%;text-align:right}.status.warn{color:var(--yellow)}.eyebrow{font-size:.72rem;letter-spacing:1.7px;color:var(--muted);font-weight:650;text-transform:uppercase;margin-bottom:8px}.heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;gap:8px}.heading p{margin-top:5px;font-size:.87rem;color:var(--muted)}.card{background:var(--card);border:1px solid var(--line);border-radius:22px;padding:20px;margin-bottom:16px}.hero{position:relative;background:linear-gradient(135deg,#f9d969,#edc443);color:#242017;border:0;padding:24px}.hero .eyebrow{color:#5e5128}.amount{font-size:clamp(2.5rem,12vw,3.7rem);line-height:1.15;font-weight:760;letter-spacing:-2px;margin:10px 0 20px}.hero .small{font-size:.82rem}.hero progress{width:100%;height:6px;display:block;margin:10px 0 8px;accent-color:#242017;border:0;border-radius:4px;overflow:hidden}.hero progress::-webkit-progress-bar{background:#d5b044}.hero progress::-webkit-progress-value{background:#282319}.hero-foot{display:flex;justify-content:space-between;font-size:.8rem;color:#534522}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}.metric{padding:16px;border-radius:18px;background:var(--card);border:1px solid var(--line)}.metric small{display:block;margin-bottom:8px}.metric strong{font-size:1.3rem}.section-head{display:flex;justify-content:space-between;align-items:center;margin:26px 0 12px}.section-head button{font-size:.8rem;background:transparent;color:var(--yellow);padding:8px}.primary{background:var(--yellow);color:#252015}.wide{width:100%}.actions{margin-top:16px}.action{display:flex;gap:12px;align-items:center;text-align:left;padding:18px 16px}.action svg{color:var(--yellow)}.action small{display:block;font-size:.74rem;font-weight:400;margin-top:3px}.secondary-actions{display:flex;gap:8px;margin-top:12px}.secondary-actions button{flex:1;font-size:.82rem;border:1px solid var(--line)}svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}.row:last-child{border-bottom:0}.row small{display:block;font-size:.75rem;margin-top:4px}.row .left{display:flex;gap:12px;align-items:center}.round{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--bg);color:var(--yellow)}button.row{width:100%;border-radius:0;background:transparent;text-align:left;padding:14px 0}.positive{color:var(--green)}.negative{color:var(--red)}.empty{padding:32px 16px;text-align:center;color:var(--muted);font-size:.9rem;line-height:1.6}.empty svg{width:36px;height:36px;margin-bottom:12px}.tabbar{position:fixed;z-index:5;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:600px;display:grid;grid-template-columns:repeat(4,1fr);padding:8px 8px max(12px,env(safe-area-inset-bottom));background:var(--bg);border-top:1px solid var(--line)}.tabbar button{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:.67rem;min-width:0;padding:8px 2px;color:var(--muted);background:transparent;font-weight:500}.tabbar button[aria-current=page]{color:var(--yellow)}.tabbar svg{width:22px;height:22px}.install{padding:16px;font-size:.85rem;display:flex;gap:12px;margin:20px 0;border:1px dashed var(--line);border-radius:16px;color:var(--muted)}.install svg{color:var(--yellow)}.install strong{color:var(--text)}.login{max-width:440px;margin:auto;padding:max(32px,env(safe-area-inset-top)) 24px 40px}.login .logo{width:76px;height:76px;border-radius:20px;margin-bottom:24px}.login h1{font-size:2.6rem;margin-bottom:12px}.login>p{color:var(--muted);margin-bottom:24px}.check{display:flex;align-items:flex-start;gap:12px;line-height:1.5}.check input{flex-shrink:0;margin-top:2px}.error{color:var(--red);font-size:.9rem;line-height:1.5;margin:12px 0}.banner{padding:14px;border:1px solid #b79b42;background:var(--card);border-radius:14px;line-height:1.5;font-size:.85rem;margin-bottom:16px}.banner button{margin-top:8px;width:100%}.loading{padding:20vh 20px;text-align:center}.loading h1{margin:16px}dialog{position:fixed;inset:auto 0 0;margin:0 auto;width:100%;max-width:600px;max-height:92dvh;overflow:auto;border:1px solid var(--line);border-bottom:0;border-radius:28px 28px 0 0;padding:24px 24px max(28px,env(safe-area-inset-bottom));background:var(--card);color:var(--text)}dialog::backdrop{background:#0009;backdrop-filter:blur(4px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.dialog-head button{background:var(--bg);padding:8px;min-width:44px;min-height:44px}.dialog-head h2{font-size:1.3rem}.dialog-actions{display:flex;gap:12px;margin-top:24px}.dialog-actions button{flex:1}.money-input{font-size:2.6rem;text-align:center;font-weight:700;letter-spacing:-1px;height:90px}.danger{color:var(--red);border:1px solid var(--line)}.summary-line{display:flex;justify-content:space-between;gap:14px;padding:12px 0;color:var(--muted);font-size:.92rem}.summary-line strong{color:var(--text)}.summary-total{border-top:1px solid var(--line);font-size:1.1rem}.filter{display:flex;gap:8px;margin:16px 0}.filter input{margin:0;min-width:0}.calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;text-align:center;margin-top:16px}.calendar span{padding:8px 0;font-size:.8rem}.calendar button{padding:4px;min-height:44px;border-radius:50%;position:relative;font-weight:400}.calendar button.has-data::after{content:'';width:4px;height:4px;border-radius:50%;background:var(--yellow);position:absolute;bottom:5px;left:calc(50% - 2px)}.calendar button.selected{background:var(--yellow);color:#242017}.calendar button.today{outline:1px solid var(--muted)}.subtle{font-size:.8rem;color:var(--muted);margin-top:12px;line-height:1.6}#notice{position:fixed;z-index:20;bottom:calc(95px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);max-width:90%;border-radius:14px;padding:0;background:var(--text);color:var(--bg);box-shadow:0 8px 40px #0004;font-size:.88rem}#notice:not(:empty){padding:14px 20px}.print-only{display:none}@media(min-width:700px){.shell{padding-top:36px}.login{padding-top:60px}}@media print{body{background:#fff;color:#111}.topbar,.tabbar,.no-print,dialog,#notice,.heading button{display:none!important}.shell{max-width:none;padding:0}.card,.hero,.metric{background:white!important;color:#111;border:1px solid #ccc;break-inside:avoid}.muted,small,.summary-line{color:#444}.summary-line strong{color:#111}.print-only{display:block}.amount{font-size:36px}}@media(prefers-reduced-motion:no-preference){dialog[open]{animation:appear .18s ease-out}@keyframes appear{from{transform:translateY(24px);opacity:0}to{transform:translateY(0);opacity:1}}@media(prefers-contrast:more){:root{--muted:#c3c6cc;--line:#777}.status{border:1px solid currentColor}}

/* Panel y componentes con la paleta y la jerarquía visual de TaxiPilot Android. */
.shell{max-width:600px;padding-top:max(12px,env(safe-area-inset-top));}
.topbar{min-height:72px;margin-bottom:18px;padding:10px 14px 10px 18px;border:1px solid #292929;border-radius:30px;background:#1b1b1b;}
.brand{font-size:1.05rem;letter-spacing:0;}.brand img{width:38px;height:38px;border-radius:13px;}
.status{min-height:40px;max-width:58%;background:#242424;color:#f2c40f;font-size:.74rem;padding:8px 12px;}.status.warn{color:#f2c40f;}
.home-date{text-align:center;color:var(--muted);font-size:.76rem;font-weight:650;letter-spacing:.08em;text-transform:uppercase;margin:12px 0 16px;}
.card{background:var(--card);border:1px solid #2a2a2a;border-radius:24px;padding:20px;margin-bottom:14px;}
.hero{padding:0 0 14px;background:#1c1c1c;color:var(--text);overflow:hidden;text-align:center;}
.hero .eyebrow{height:46px;display:flex;align-items:center;justify-content:center;gap:8px;background:#272727;color:#f5f5f5;margin:0;padding:0 16px;font-size:.69rem;letter-spacing:.08em;}
.hero .eyebrow svg{width:15px;height:15px;color:var(--green);}
.amount{font-size:clamp(2.8rem,13vw,3.65rem);font-weight:850;letter-spacing:-1.7px;line-height:1.12;margin:12px 8px 8px;color:#fafafa;}
.ride-count{display:table;margin:0 auto;padding:5px 12px;border-radius:9px;background:#292929;color:#c6c6c6;font-size:.77rem;}
.shift-state{margin:8px auto 0;color:#b8b8b8;font-size:.75rem;}
.goal{margin:14px 16px 0;padding:8px 10px 0;}.goal-label{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#bdbdbd;font-size:.72rem;}
.goal-label strong{font-size:.76rem;color:#e3a936;}.goal-label .goal-hit{color:#4caf50;}
.hero progress{height:7px;margin:10px 0 0;accent-color:#4caf50;background:#393939;}
.hero progress::-webkit-progress-bar{background:#393939;border-radius:8px;}.hero progress::-webkit-progress-value{background:#4caf50;border-radius:8px;}
.totals-grid{gap:12px;margin:0 0 12px;}
.metric{min-width:0;min-height:124px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px;padding:0 0 12px;overflow:hidden;background:#1c1c1c;border:1px solid #292929;border-radius:24px;text-align:center;}
.metric small{width:100%;min-height:39px;display:flex;align-items:center;justify-content:center;gap:7px;margin:0 0 4px;padding:8px 4px;background:#272727;color:#f2f2f2;font-size:.67rem;font-weight:750;letter-spacing:.05em;}
.metric small svg{width:14px;height:14px;color:#a7a7a7;}.metric strong{font-size:1.48rem;line-height:1.2;}.metric>span{font-size:.73rem;color:#c2c2c2;}
.metric-cash strong,.action-cash svg{color:#45cf8b;}.metric-card strong,.action-card svg{color:#38a5ed;}
.reparto-pill{width:100%;min-height:52px;display:flex;align-items:center;gap:10px;margin:0 0 12px;padding:8px 16px;border:0;border-radius:28px;background:#252525;color:#f1f1f1;text-align:left;font-size:.72rem;letter-spacing:.045em;}
.reparto-pill>svg:first-child{width:18px;height:18px;color:#c4c4ca;}.reparto-pill>span{flex:1;font-weight:750;}.reparto-pill strong{color:#f2c40f;font-size:.84rem;letter-spacing:0;}.reparto-pill>svg:last-child{width:17px;height:17px;color:#bdbdbd;transform:rotate(90deg);}
.actions{margin:8px 0 12px;}.action{min-height:78px;gap:12px;background:#202020;border:1px solid #2b2b2b;border-radius:20px;}
.action-cash{border-color:#264535;}.action-card{border-color:#243c4b;}.action svg{width:24px;height:24px;}.action small{color:#bcbcbc;}
.secondary-actions{gap:10px;margin:0 0 12px;}.secondary-actions button{min-height:48px;border:1px solid #363636;border-radius:15px;background:#232323;color:#e5e5e5;}
.end-shift{min-height:64px;margin:0 0 18px;border:0;border-radius:20px;background:#f3b9be;color:#51282b;font-size:.9rem;font-weight:850;letter-spacing:.1em;}
.primary{background:#f2c40f;color:#1a1500;}.no-shift-expense{margin-bottom:8px;background:#202020;border:1px solid #323232;color:#e1e1e1;}
.recent-card{margin:0 0 14px;overflow:hidden;background:#1c1c1c;border:1px solid #292929;border-radius:24px;}
.recent-heading{min-height:48px;display:flex;align-items:center;gap:9px;padding:0 18px;background:#272727;color:#f3f3f3;font-size:.71rem;font-weight:800;letter-spacing:.06em;}
.recent-heading svg{width:17px;height:17px;color:#bbb;}.recent-card .row{padding:15px 16px;margin:0 14px;width:calc(100% - 28px);border-bottom:1px solid #303030;background:transparent;}
.recent-card .row:last-of-type{border-bottom:0;}.recent-card .round{background:#18344a;color:#36a5ee;border-radius:50%;}.recent-card .round svg{width:20px;height:20px;}
.recent-card .left>span:last-child{font-weight:600;color:#f4f4f4;}.recent-card .left small{color:#bbb;font-weight:400;}
.extra-totals .metric{min-height:96px;padding-bottom:12px;}.extra-totals .metric small{min-height:34px;}
.tabbar{background:#111;border-top:1px solid #292929;}.tabbar button[aria-current=page]{color:#f2c40f;}
.row{border-color:#303030;}.round{background:#282828;}.dialog-head button{background:#292929;}.dialog-head h2{font-size:1.15rem;}.money-input{color:#fafafa;}
input,select{background:#171717;border-color:#383838;}.metric,.card,.hero,.recent-card{box-shadow:0 1px 1px #0002;}
body.light .topbar,body.light .hero,body.light .metric,body.light .recent-card,body.light .action{background:#fff;border-color:#dfdfdf;}
body.light .hero .eyebrow,body.light .metric small,body.light .recent-heading{background:#f0f0f0;color:#272727;}
body.light .ride-count,body.light .shift-state{background:#eee;color:#444;}
body.light .reparto-pill,body.light .secondary-actions button,body.light .no-shift-expense{background:#eee;color:#242424;border-color:#dedede;}
body.light .tabbar{background:#fff;border-color:#ddd;}
}

/* Pantalla de acceso alineada con el login del panel de control. */
body.login-mode{min-height:100svh;display:flex;align-items:center;justify-content:center;padding:24px;background:#141414;color:#f2f2f7;font-family:'Nunito Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;-webkit-font-smoothing:antialiased;overflow-y:auto}
body.login-mode::before{content:'';position:fixed;inset:0;background-image:linear-gradient(rgba(245,197,24,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(245,197,24,.03) 1px,transparent 1px);background-size:40px 40px;pointer-events:none}
body.login-mode #root{width:100%}.login-wrap{position:relative;width:100%;max-width:400px;margin:auto;display:flex;flex-direction:column;align-items:center;gap:24px;animation:login-up .4s ease}
@keyframes login-up{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
.logo-block{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}.login-logo{width:72px;height:72px;object-fit:cover;border-radius:22px;box-shadow:0 8px 32px rgba(245,197,24,.2)}
.logo-block h1{font-size:28px;font-weight:900;letter-spacing:-.5px}.logo-block p{font-size:13px;color:#636366;line-height:1.5;font-weight:600}
.login-card{width:100%;display:flex;flex-direction:column;gap:16px;padding:24px;background:#1c1c1e;border:1px solid #2a2a2a;border-radius:14px}
.login-card .role-tabs{display:flex;gap:3px;padding:3px;background:#242426;border:1px solid #2a2a2a;border-radius:10px}.login-card .rtab{flex:1;min-height:40px;padding:8px;border:0;border-radius:8px;background:transparent;color:#636366;text-align:center;font-size:13px;font-weight:800}.login-card .rtab.on{background:#f5c518;color:#111}
.login-card .field{display:flex;flex-direction:column;gap:7px}.login-card .field>label{margin:0;color:#636366;font-size:11px;font-weight:800;letter-spacing:.6px;text-transform:uppercase}.login-card input:not([type=checkbox]),.login-card select{width:100%;min-height:46px;margin:0;padding:11px 13px;border:1.5px solid #333336;border-radius:10px;background:#242426;color:#f2f2f7;font-size:14px;font-weight:600;outline:none;transition:border-color .15s}.login-card input:focus,.login-card select:focus{border-color:rgba(245,197,24,.5)}.login-card input::placeholder{color:#636366}.login-card select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23636366' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;padding-right:30px}
.login-card .city-label{display:flex!important;align-items:center;justify-content:space-between}.login-card #detect-city{display:flex;align-items:center;gap:4px;min-height:26px;padding:0 2px;border:0;background:transparent;color:#636366;font-size:11px;font-weight:800}.login-card #detect-city svg{width:13px;height:13px;stroke:currentColor;fill:none}.login-card #detect-city.detected{color:#2ecc71}
.login-card .pin-wrap{position:relative}.login-card .pin-wrap input{padding-right:48px}.login-card .pin-toggle{position:absolute;top:50%;right:8px;transform:translateY(-50%);display:grid;place-items:center;width:36px;min-height:36px;padding:6px;border:0;background:transparent;color:#636366}.login-card .pin-toggle svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2}
.login-card .hint{padding-left:2px;color:#636366;font-size:11px;font-weight:600}.login-card .hint span{color:#f5c518}
.login-card .submit-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:48px;margin-top:4px;padding:14px;border:0;border-radius:10px;background:#f5c518;color:#111;font-size:15px;font-weight:800}.login-card .submit-btn:disabled{opacity:.5;cursor:wait}.login-card .error-msg{display:none;align-items:center;gap:7px;padding:11px 14px;border:1px solid rgba(231,76,60,.25);border-radius:10px;background:rgba(231,76,60,.1);color:#e74c3c;font-size:13px;font-weight:700}.login-card .error-msg.show{display:flex;animation:login-up .2s ease}.login-card .error-msg svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2.5}.login-card .spinner{display:none;width:18px;height:18px;border:2px solid rgba(17,17,17,.3);border-top-color:#111;border-radius:50%;animation:login-spin .6s linear infinite}.login-card .spinner.show{display:block}@keyframes login-spin{to{transform:rotate(360deg)}}
.login-card .resume-back{min-height:44px;padding:10px;border:1px solid #333336;border-radius:10px;background:#242426;color:#f2f2f7;font-size:13px;font-weight:700}.login-footer{color:#636366;font-size:12px;font-weight:600;text-align:center}.login-footer a{color:inherit;text-decoration:none}
@media(max-height:760px){body.login-mode{align-items:flex-start;padding-top:max(24px,env(safe-area-inset-top));padding-bottom:max(24px,env(safe-area-inset-bottom))}}

.login-card input:-webkit-autofill,.login-card input:-webkit-autofill:hover,.login-card input:-webkit-autofill:focus{-webkit-text-fill-color:#f2f2f7;-webkit-box-shadow:0 0 0 1000px #242426 inset;caret-color:#f2f2f7;transition:background-color 9999s ease-out 0s}

/* Dashboard: CTA fija y gastos por tipo, como la pantalla principal de Android. */
.dashboard-shell{padding-bottom:calc(190px + env(safe-area-inset-bottom));}
.expense-bubbles{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 14px;}
.expense-bubbles button{min-width:0;min-height:56px;display:flex;align-items:center;justify-content:center;gap:7px;padding:10px;border:1px solid #292929;border-radius:28px;background:#1c1c1c;color:var(--text);font-size:.83rem;font-weight:700;white-space:nowrap;}
.expense-bubbles svg{width:18px;height:18px;color:var(--muted);}
.dashboard-action{position:fixed;z-index:6;left:50%;bottom:calc(76px + env(safe-area-inset-bottom));transform:translateX(-50%);width:min(100%,600px);display:flex;align-items:center;gap:12px;padding:0 20px;pointer-events:none;}
.dashboard-action button{pointer-events:auto;}
.shift-cta{flex:1;height:64px;border:1px solid #ffffff33;border-radius:20px;background:#f2c40f;color:#171300;font-size:1.08rem;font-weight:900;letter-spacing:.09em;box-shadow:0 8px 20px #0004;}
.shift-cta.working{background:#e45a61;color:#fff;}
.dashboard-tip{width:58px;height:58px;min-height:58px;display:grid;place-items:center;padding:12px;border-radius:50%;background:#2799d6;color:white;box-shadow:0 8px 20px #0004;}
.dashboard-tip svg{width:24px;height:24px;}
@media(min-width:700px){.dashboard-action{bottom:calc(80px + env(safe-area-inset-bottom));}}

.no-activity{min-height:166px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--text);font-weight:800;letter-spacing:.04em}.no-activity svg{width:48px;height:48px;color:#292929}.no-activity p{font-size:.85rem}

.metric[data-action="add"]{width:100%;font-weight:inherit;cursor:pointer;transition:transform .12s ease,border-color .12s ease;}.metric[data-action="add"]:active{transform:scale(.98);}.metric[data-action="add"]:focus-visible{outline:3px solid var(--yellow);outline-offset:3px;}
.money-pad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:-7px 0 16px}.money-key{min-height:54px;padding:8px;border:1px solid var(--line);border-radius:14px;background:var(--bg);color:var(--text);font-size:1.45rem;font-weight:800;touch-action:manipulation}.money-key:active{background:var(--card);color:var(--yellow);transform:scale(.98)}.money-key:focus-visible{outline:3px solid var(--yellow);outline-offset:2px}.money-input{caret-color:transparent;cursor:default;user-select:none;-webkit-user-select:none}
.money-key-spacer{min-height:54px}

/* Teclado superpuesto compartido por importes e inicio/cierre de jornada. */
.android-keypad{max-height:92dvh;padding:20px 20px max(24px,env(safe-area-inset-bottom));}
.android-keypad .dialog-head{gap:10px;margin-bottom:14px;}
.android-keypad .dialog-head h2{flex:1;text-align:center;padding-left:44px;font-size:1rem;}
.keypad-form{display:flex;flex-direction:column;align-items:stretch;}
.keypad-actions-wrap{min-height:40px;display:flex;justify-content:flex-end;}
.keypad-actions{display:flex;gap:8px;}
.keypad-toggle{width:54px;min-width:54px;height:40px;min-height:40px;display:grid;place-items:center;padding:8px;border:1px solid var(--line);border-radius:12px;background:#292929;color:var(--text);}
.keypad-toggle svg{width:20px;height:20px;}
.keypad-toggle.active{background:var(--yellow);color:#171300;border-color:var(--yellow);}
.keypad-value-wrap{position:relative;}.keypad-fold{position:absolute;right:0;bottom:12px;width:44px;min-width:44px;height:32px;min-height:32px;padding:0;display:grid;place-items:center;border:1px solid var(--line);border-radius:10px;background:#292929;color:var(--text);font-size:1.1rem;line-height:1;}
.keypad-quick{display:flex;gap:8px;margin:0 0 14px;}.keypad-quick[hidden]{display:none;}
.keypad-pct{margin:0 0 14px;display:flex;flex-direction:column;gap:3px;}.keypad-pct[hidden]{display:none;}.keypad-pct label{display:flex;align-items:center;gap:10px;margin:0;color:var(--text);font-size:.92rem;font-weight:700;}.keypad-pct input{width:92px;min-height:42px;margin:0;text-align:center;font-weight:800;}.keypad-pct small{color:var(--muted);font-size:.72rem;}
.keypad-quick-btn{flex:1;min-width:0;min-height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:6px 2px;border:1px solid var(--line);border-radius:14px;background:#292929;color:var(--text);font-size:.74rem;font-weight:800;}
.keypad-quick-btn svg{width:20px;height:20px;color:var(--yellow);}.keypad-quick-btn span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;}
.keypad-quick-btn.active{background:var(--yellow);color:#171300;border-color:var(--yellow);}.keypad-quick-btn.active svg{color:#171300;}
.keypad-value{display:block;min-height:58px;margin:0 0 12px;text-align:center;color:var(--text);font-size:3rem;line-height:1.2;font-weight:800;letter-spacing:-1px;font-variant-numeric:tabular-nums;}
.money-pad{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 18px;}
.money-key{aspect-ratio:1.5;min-height:48px;border:0;border-radius:16px;background:#2a2a2c;color:#f5f5f7;font-size:1.65rem;font-weight:850;}
.money-key:active{background:color-mix(in srgb,var(--yellow) 22%,#2a2a2c);color:var(--yellow);transform:none;}
.money-key-spacer{aspect-ratio:1.5;min-height:48px;}
.keypad-confirm{min-height:56px;border-radius:16px;font-size:1rem;font-weight:850;letter-spacing:.04em;}
.keypad-feedback{min-height:0;margin:-5px 0 10px;color:var(--yellow);text-align:center;font-size:.82rem;line-height:1.35;}.keypad-feedback:empty{display:none;}
@media(max-width:380px){.android-keypad{padding-left:16px;padding-right:16px}.keypad-value{font-size:2.6rem}.money-pad{gap:6px}.money-key,.money-key-spacer{min-height:44px}}
@media(orientation:landscape) and (max-height:500px){.android-keypad{max-height:100dvh;padding-top:12px}.android-keypad .dialog-head{margin-bottom:8px}.keypad-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);column-gap:16px;align-items:center}.keypad-actions-wrap{grid-column:1/-1}.keypad-value-wrap{grid-column:1;grid-row:2}.keypad-value{font-size:2.2rem}.keypad-quick{grid-column:1;grid-row:3;margin:0 0 8px}.keypad-quick-btn{padding:6px 2px;font-size:.64rem;letter-spacing:-.2px}.keypad-pct{grid-column:1/-1;grid-row:5;margin:6px 0 0;flex-direction:row;align-items:center;gap:10px}.keypad-pct small{font-size:.66rem}.money-pad{grid-column:2;grid-row:2/5;gap:5px;margin:0}.money-key,.money-key-spacer{min-height:36px}.keypad-confirm{grid-column:1;grid-row:4;min-height:48px}}

/* Ajustes compactos para iPhone SE/mini y móviles estrechos. */
@media(max-width:380px){
  .shell{padding-left:12px;padding-right:12px;}
  .topbar{gap:8px;padding-left:12px;padding-right:12px;}
  .brand{min-width:0;gap:8px;font-size:.96rem;white-space:nowrap;}
  .brand img{width:34px;height:34px;}
  .status{max-width:54%;padding:7px 9px;font-size:.68rem;}
  .card{padding:16px;border-radius:20px;}
  .hero{padding:0 0 12px;}
  .totals-grid,.grid2{gap:8px;}
  .metric{border-radius:20px;}
  .metric strong{font-size:clamp(1.05rem,5vw,1.35rem);}
  .dashboard-action{gap:8px;padding-left:12px;padding-right:12px;}
  .shift-cta{height:58px;font-size:.92rem;letter-spacing:.06em;}
  .dashboard-tip{width:52px;height:52px;min-height:52px;}
  .login-card{padding:18px;}
  dialog{padding:18px 16px max(20px,env(safe-area-inset-bottom));}
  .money-input{font-size:2.2rem;height:78px;}
  .money-pad{gap:6px;}
  .money-key{min-height:48px;padding:6px;font-size:1.3rem;}
  .money-key-spacer{min-height:48px;}
}

/* En iPhone apaisado se reserva el alto para navegar y se compacta el teclado. */
@media(orientation:landscape) and (max-height:500px){
  .shell{padding-top:max(8px,env(safe-area-inset-top));padding-bottom:calc(150px + env(safe-area-inset-bottom));}
  .topbar{min-height:56px;margin-bottom:12px;}
  .dashboard-shell{padding-bottom:calc(150px + env(safe-area-inset-bottom));}
  .dashboard-action{bottom:calc(68px + env(safe-area-inset-bottom));}
  .shift-cta{height:50px;font-size:.9rem;}
  .dashboard-tip{width:48px;height:48px;min-height:48px;}
  dialog{max-height:100dvh;padding-top:12px;padding-bottom:max(14px,env(safe-area-inset-bottom));}
  .dialog-head{margin-bottom:8px;}
  .money-input{height:58px;font-size:1.8rem;}
  .money-pad{gap:5px;margin-bottom:10px;}
  .money-key{min-height:40px;font-size:1.1rem;}
  .money-key-spacer{min-height:40px;}
}

/* Estimación de reparto plegable, con la misma composición y desglose que Android. */
.estimate-card{overflow:hidden;margin:0 0 12px;border:1px solid #2a2a2a;border-radius:20px;background:#1c1c1c;}
.estimate-head{width:100%;min-height:52px;display:flex;align-items:center;gap:10px;padding:8px 16px;border:0;border-radius:0;background:#252525;color:#f1f1f1;text-align:left;font-size:.72rem;letter-spacing:.045em;}
.estimate-head>svg{width:18px;height:18px;color:#c4c4ca;}
.estimate-head>span:nth-child(2){flex:1;font-weight:800;}
.estimate-head>strong{color:var(--yellow);font-size:.84rem;letter-spacing:0;white-space:nowrap;}
.estimate-chevron{font-size:1.25rem;line-height:1;color:#bdbdbd;transform:rotate(0);transition:transform .18s ease;}
.estimate-chevron.expanded{transform:rotate(180deg);}
.estimate-body{display:grid;gap:14px;padding:16px 18px 20px;animation:estimate-open .18s ease-out;}
.share-row{min-width:0;}
.share-row-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;color:var(--text);font-size:.88rem;}
.share-values{display:flex;align-items:baseline;justify-content:flex-end;gap:5px;white-space:nowrap;font-variant-numeric:tabular-nums;}
.share-values strong{font-size:.94rem;}
.share-extra{font-size:.78rem;}
.share-extra.plus{color:var(--green);}
.share-extra.minus{color:var(--red);}
.share-track{height:8px;overflow:hidden;border-radius:99px;background:#353535;}
.share-track span{display:block;height:100%;border-radius:inherit;background:#4a9eff;}
.share-row:nth-child(2) .share-track span{background:var(--yellow);}
@keyframes estimate-open{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
body.light .estimate-card{background:#fff;border-color:#dedede;}
body.light .estimate-head{background:#eee;color:#242424;}
body.light .share-track{background:#ddd;}
@media(max-width:360px){.estimate-head{gap:8px;padding-left:12px;padding-right:12px;font-size:.68rem}.estimate-body{padding-left:14px;padding-right:14px}.share-row-top{font-size:.82rem}.share-values strong{font-size:.88rem}.share-extra{font-size:.72rem}}

/* Historial con jerarquía visual y resúmenes equivalentes al APK. */
.history-liquidation{overflow:hidden;margin:0 0 16px;border:1px solid #303030;border-radius:24px;background:#1c1c1c;}
.history-liquidation>header{min-height:42px;display:flex;align-items:center;justify-content:center;gap:8px;background:#262626;color:var(--text);font-size:.68rem;font-weight:850;letter-spacing:.08em;}
.history-liquidation>header svg{width:16px;height:16px;color:var(--yellow);}
.history-liquidation-body{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:18px;}
.history-period,.history-gross,.history-settlement{display:flex;flex-direction:column;gap:5px;min-width:0;}
.history-period span,.history-gross>span,.history-settlement>span{font-size:.65rem;font-weight:800;letter-spacing:.06em;color:var(--muted);text-transform:uppercase;}
.history-period strong{font-size:.92rem;text-transform:capitalize;}
.history-gross strong{font-size:1.6rem;line-height:1.2;}
.history-gross small{font-size:.76rem;}
.history-settlement{justify-content:center;align-items:flex-end;text-align:right;}
.history-settlement strong{font-size:1.15rem;color:var(--yellow);}
.history-payments{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.history-payments>div{display:grid;gap:7px;padding:12px;border-radius:16px;background:#242424;}
.history-payments small{display:flex;align-items:center;gap:6px;font-size:.65rem;font-weight:800;letter-spacing:.05em;color:#e6e6e6;}
.history-payments small svg{width:15px;height:15px;color:var(--muted);}
.history-payments>div:first-child strong{color:#45cf8b}.history-payments>div:last-child strong{color:#38a5ed}
.history-payments strong{font-size:1.12rem}.history-tips{grid-column:1/-1;display:flex;justify-content:space-between;color:var(--muted);font-size:.83rem}.history-tips strong{color:#45cf8b;}
.history-calendar-card{padding:0;overflow:hidden;}.history-calendar-toggle{width:100%;display:flex;align-items:center;gap:10px;padding:10px 16px;border-radius:0;background:#252525;text-align:left;font-size:.8rem;}.history-calendar-toggle svg{width:18px;height:18px;color:var(--yellow)}.history-calendar-toggle span{flex:1}.history-calendar-toggle b{font-size:1.1rem;color:var(--muted)}
.history-calendar{padding:0 14px 14px;}.history-cal-head{display:grid;grid-template-columns:44px 1fr 44px auto;align-items:center;gap:6px;padding-top:12px;text-align:center;}.history-cal-head strong{text-transform:capitalize;font-size:.88rem}.history-cal-head button{min-height:38px;padding:5px 10px;border:1px solid var(--line);background:transparent;}.history-calendar .calendar{margin-top:8px;gap:3px}.history-calendar .calendar button{min-height:40px}.history-calendar .calendar button i{position:absolute;left:50%;bottom:5px;width:4px;height:4px;border-radius:50%;background:var(--yellow);transform:translateX(-50%)}
.history-year{overflow:hidden;margin:0 0 12px;border:1px solid #2a2a2a;border-radius:22px;background:#1c1c1c;}.history-year-head{width:100%;display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:0;background:#242424;text-align:left;}.history-year-head>span:first-child{flex:1;display:flex;flex-direction:column;gap:4px}.history-year-head b{font-size:1.05rem}.history-year-head small,.history-year-head strong small{display:block;font-size:.72rem;font-weight:500;color:var(--muted)}.history-year-head>strong{text-align:right;font-size:.95rem}.history-year-head strong small{margin-top:3px}.history-chevron{color:var(--muted);font-size:1.1rem;}
.history-months{display:flex;gap:8px;overflow-x:auto;padding:12px;scrollbar-width:thin;}.history-month-chip{flex:0 0 auto;min-width:72px;display:flex;flex-direction:column;align-items:center;gap:4px;padding:9px 10px;border:1px solid var(--line);background:#202020;}.history-month-chip b{font-size:.77rem}.history-month-chip small{font-size:.66rem;white-space:nowrap}.history-month-chip.selected{border-color:var(--yellow);background:var(--yellow);color:#171300}.history-month-chip.selected small{color:#393000;}
.history-month{overflow:hidden;margin:0 12px 12px;border:1px solid #303030;border-radius:18px;background:#1b1b1b;}.history-month>header{display:flex;justify-content:space-between;gap:8px;padding:13px 15px;background:#252525;text-transform:capitalize;font-size:.86rem;font-weight:800}.history-month>header span{color:var(--yellow);white-space:nowrap;}
.history-activity{border-bottom:1px solid #303030}.history-activity:last-child{border-bottom:0}.history-activity-main{width:100%;display:flex;align-items:center;gap:11px;padding:14px 12px;border-radius:0;background:transparent;text-align:left}.history-activity-icon{width:34px;height:34px;display:grid;place-items:center;flex:none;border-radius:50%;background:#18344a;color:#38a5ed}.history-activity-icon svg{width:18px;height:18px}.history-activity-icon.expense{background:#3a2424;color:#ef7373}.history-activity-label{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.history-activity-label b{font-size:.85rem}.history-activity-label small{font-size:.73rem}.history-activity-amount{text-align:right;font-size:.92rem;font-weight:850;white-space:nowrap}.history-activity-amount small{display:block;margin-top:3px;font-size:.68rem;font-weight:500}.history-ride-detail{padding:0 12px 10px}.history-ride-detail>summary{padding:7px 0;color:var(--muted);font-size:.75rem;cursor:pointer}.history-ride-detail .row{width:100%;}.history-month .empty{padding:18px;text-align:center;color:var(--muted);font-size:.82rem;}
body.light .history-liquidation,body.light .history-year,body.light .history-month{background:#fff;border-color:#ddd}body.light .history-liquidation>header,body.light .history-calendar-toggle,body.light .history-year-head,body.light .history-month>header{background:#eee;color:#242424}body.light .history-payments>div,body.light .history-month-chip{background:#f3f3f3}body.light .history-month-chip.selected{background:var(--yellow)}
@media(max-width:360px){.history-liquidation-body{gap:12px;padding:14px}.history-gross strong{font-size:1.35rem}.history-settlement strong{font-size:1rem}.history-cal-head{grid-template-columns:38px 1fr 38px auto;padding-left:0;padding-right:0}.history-month{margin-left:8px;margin-right:8px}.history-activity-main{gap:8px;padding-left:8px;padding-right:8px}.history-activity-amount{font-size:.84rem}}

/* Afinado visual del resumen: compacto y alineado como la tarjeta LiquidationMainCard de Android. */
.history-liquidation>header{justify-content:flex-start;gap:8px;padding:0 18px;}
.history-liquidation>header small{margin-left:auto;color:var(--muted);font-size:.69rem;font-weight:600;letter-spacing:0;text-transform:none;white-space:nowrap;}
.history-liquidation-body{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:16px;padding:16px 18px;}
.history-summary-main,.history-gross{min-width:0;display:flex;flex-direction:column;gap:5px;}
.history-summary-main>span,.history-gross>span{color:var(--muted);font-size:.64rem;font-weight:800;letter-spacing:.055em;}
.history-summary-main>strong{font-size:1.05rem;line-height:1.2;font-weight:900;color:var(--yellow);}
.history-gross{align-items:flex-end;text-align:right;}
.history-gross>strong{font-size:1.75rem;line-height:1.15;font-weight:850;letter-spacing:-.04em;}
.history-gross>small{font-size:.7rem;line-height:1.25;}
.history-payments{gap:10px;}
.history-payments>div{min-height:76px;align-content:center;justify-items:center;gap:6px;padding:10px;border-radius:16px;}
.history-payments small{font-size:.61rem;}
.history-payments strong{font-size:1.08rem;}
.history-tips{grid-column:1/-1;margin:0;padding-top:10px;border-top:1px solid #303030;font-size:.76rem;}
.history-months{padding:10px 12px 12px;}
.history-year-head{min-height:70px;padding:12px 16px;}
.history-month>header{min-height:42px;padding:11px 15px;}
.history-activity-main{min-height:66px;padding-top:12px;padding-bottom:12px;}
.history-cal-head{grid-template-columns:40px minmax(0,1fr) 40px auto;gap:6px;}
.history-cal-head button{min-width:38px;min-height:38px;padding:6px 9px;border-radius:12px;font-size:.82rem;}
.history-calendar .calendar button{min-height:38px;padding:3px;font-size:.86rem;}
.history-calendar .calendar span{padding:5px 0;font-size:.7rem;font-weight:700;}
.history-activity.selected{background:#202020;}
body.light .history-activity.selected{background:#f3f3f3;}
@media(max-width:380px){.history-liquidation>header{padding:0 14px}.history-liquidation>header small{font-size:.62rem}.history-liquidation-body{gap:12px;padding:14px}.history-summary-main>strong{font-size:.95rem}.history-gross>strong{font-size:1.55rem}.history-payments>div{min-height:70px}.history-cal-head{grid-template-columns:36px minmax(0,1fr) 36px auto;gap:4px}.history-cal-head button{padding:5px 7px}.history-calendar .calendar button{min-height:34px;font-size:.8rem}}

/* History refined against Android HistoryScreen: tighter liquidation and compact month/shift rows. */
.history-liquidation>header{min-height:38px;justify-content:center;padding:0 14px;font-size:.66rem;}
.history-liquidation>header small{font-size:.65rem;}
.history-liquidation-body{gap:12px;padding:14px 16px;}
.history-summary-main>strong{font-size:1.08rem;}
.history-gross>strong{font-size:1.55rem;}
.history-payments{gap:10px;}
.history-payments>div{min-height:64px;padding:8px 10px;border-radius:14px;}
.history-payments small{font-size:.58rem;}
.history-payments strong{font-size:1rem;}
.history-year{margin-bottom:10px;border-radius:24px;}
.history-year-head{min-height:64px;padding:12px 16px;background:#222;}
.history-months{gap:7px;padding:10px 12px;}
.history-month-chip{min-width:68px;gap:3px;padding:8px 9px;border-radius:14px;}
.history-month-chip small{font-size:.62rem;line-height:1.2;}
.history-month>header{padding:11px 14px;font-size:.82rem;}
.history-month>header span{font-size:.78rem;}
.history-activity-main{min-height:60px;padding:10px 14px;}
.history-activity-icon{width:32px;height:32px;}
.history-activity-label b{font-size:.83rem;}
.history-activity-label small,.history-activity-amount small{font-size:.68rem;}
.history-activity-amount{font-size:.9rem;}
.history-ride-detail{padding-left:14px;padding-right:14px;}
body.light .history-year-head{background:#eee;}
@media(max-width:380px){.history-liquidation>header{justify-content:flex-start}.history-liquidation-body{gap:10px;padding:12px}.history-gross>strong{font-size:1.4rem}.history-payments>div{min-height:60px;padding:7px}.history-month>header span{font-size:.68rem}}

/* Calendario de historial replicando la cuadrícula compacta del APK. */
.history-calendar{padding:0 8px 12px;}
.history-cal-head{grid-template-columns:34px minmax(0,1fr) 34px 34px;gap:3px;padding-top:8px;}
.history-cal-head strong{font-size:.73rem;letter-spacing:.04em;text-transform:uppercase;}
.history-cal-head button{min-width:30px;min-height:30px;padding:3px;border-radius:10px;background:transparent;font-size:1rem;}
.history-cal-head button:last-child svg{width:16px;height:16px;color:var(--yellow);}
@media(max-width:380px){.history-calendar{padding-left:4px;padding-right:4px}}
.history-calendar-top{display:flex;align-items:center;gap:4px;padding:6px 8px;background:#252525;}
.history-calendar-top .history-calendar-today{flex:none;display:grid;place-items:center;width:34px;min-height:34px;padding:0;border-radius:10px;background:#202020;}
.history-calendar-top .history-calendar-today svg{width:16px;height:16px;color:var(--yellow);}
.history-calendar-top .history-calendar-toggle{flex:1;min-width:0;justify-content:flex-start;gap:8px;padding:7px 8px;background:transparent;}
.history-calendar-top .history-calendar-toggle>svg{display:none;}
.history-calendar-top .history-calendar-toggle span{flex:0 1 auto;font-size:.72rem;font-weight:850;letter-spacing:.04em;text-transform:uppercase;}
.history-calendar-top .history-calendar-toggle b{margin-left:0;font-size:.95rem;}
.history-calendar-top .history-calendar-toggle i{margin-left:auto;color:var(--muted);font-size:1rem;font-style:normal;}
body.light .history-calendar-top{background:#eee;}
body.light .history-calendar-top .history-calendar-today{background:#f7f7f7;}
.history-calendar-top .history-calendar-toggle>svg{display:block;flex:none;width:28px;height:28px;padding:6px;border-radius:8px;background:#202020;color:var(--yellow);}
body.light .history-calendar-top .history-calendar-toggle>svg{background:#f7f7f7;}

.history-calendar-top .history-calendar-toggle{display:grid;grid-template-columns:minmax(0,1fr) auto auto minmax(0,1fr);align-items:center;justify-content:stretch;}
.history-calendar-top .history-calendar-toggle>svg{grid-column:1;justify-self:start;}
.history-calendar-top .history-calendar-toggle>span{grid-column:2;flex:none;white-space:nowrap;}
.history-calendar-top .history-calendar-toggle>b{grid-column:3;margin:0;}
.history-calendar-top .history-calendar-toggle>i{grid-column:4;justify-self:end;margin:0;}
.history-month>header>strong{display:flex;flex-direction:column;gap:3px;min-width:0;text-transform:capitalize;}
.history-month>header>strong small{color:var(--muted);font-size:.68rem;font-weight:500;text-transform:none;}
.history-month>header>span{font-weight:800;}
.history-activity-icon{background:#332d12;color:var(--yellow);}
.history-activity-icon.expense{background:#3a2424;color:#ef7373;}
.history-activity-main{min-height:76px;}
.history-activity-main,.tpcal-circ{-webkit-touch-callout:none;user-select:none;touch-action:manipulation;}
.history-shift-choice{text-align:left;}
.history-calendar-top .history-calendar-toggle>svg{display:none;}
.history-calendar-top .history-calendar-toggle>span{grid-column:2;}
.shell{padding-bottom:calc(24px + env(safe-area-inset-bottom));}
.dashboard-shell{padding-bottom:calc(100px + env(safe-area-inset-bottom));}
.topbar{position:sticky;top:0;z-index:8;min-height:58px;margin-bottom:16px;padding:8px 10px 8px 14px;gap:8px;background:#1b1b1b;}
.brand{min-width:0;min-height:42px;display:flex;align-items:center;gap:8px;padding:0;border:0;border-radius:0;background:transparent;color:var(--text);font-size:.9rem;font-weight:800;white-space:nowrap;}
.brand img{width:34px;height:34px;border-radius:50%;}
.brand-copy{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;line-height:1.05;}
.brand-copy>b{font-size:inherit;}
.brand-copy .work-duration{display:flex;align-items:center;gap:4px;color:var(--yellow);font-size:.62rem;line-height:1;font-weight:800;letter-spacing:.02em;}
.work-duration i{width:7px;height:7px;border-radius:50%;background:var(--yellow);}
.brand[aria-current="page"]{color:var(--text);}
.top-actions{display:flex;align-items:center;gap:5px;}
.top-action,.topbar>.status{width:36px;min-width:36px;height:36px;min-height:36px;display:grid;place-items:center;padding:0;border:1px solid transparent;border-radius:50%;background:#292929;color:#d0d0d0;}
.top-action svg,.topbar>.status svg{width:18px;height:18px;}
.top-action[aria-current="page"]{background:var(--yellow);color:#171300;}
.topbar>.status{color:var(--green);}
.topbar>.status.warn{color:var(--yellow);}
.settings-topbar{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;gap:8px;text-align:center;}
.settings-topbar .top-back{width:38px;min-width:38px;height:38px;min-height:38px;display:grid;place-items:center;padding:0;border-radius:50%;background:#292929;color:var(--muted);}
.settings-topbar .topbar-title{font-size:1rem;font-weight:800;}
.settings-topbar>.status{justify-self:end;}
/* 2026-10-16 (lito: «el botón no está abajo en el iPhone»): justo encima de la rayita; sin rayita, 12 px */
.dashboard-action{bottom:max(12px,env(safe-area-inset-bottom));}
#notice{bottom:calc(16px + env(safe-area-inset-bottom));}
body:has(.dashboard-shell) #notice{bottom:calc(88px + env(safe-area-inset-bottom));}
@media(max-width:380px){.topbar{padding-left:9px;padding-right:8px;gap:4px}.brand{gap:6px;font-size:.8rem}.brand img{width:30px;height:30px}.top-actions{gap:3px}.top-action,.topbar>.status{width:31px;min-width:31px;height:31px;min-height:31px}.top-action svg,.topbar>.status svg{width:16px;height:16px}}
.history-liquidation>header{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);justify-content:initial;gap:6px;padding:0 14px;}
.history-liquidation-title{grid-column:2;display:flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;}
.history-liquidation-title svg{width:16px;height:16px;color:var(--yellow);}
.history-liquidation>header>small{grid-column:3;justify-self:end;margin-left:0;}
.history-calendar-top{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;min-height:50px;}
.history-calendar-title-group{grid-column:2;display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;}
.history-calendar-top .history-calendar-today{width:30px;min-width:30px;min-height:30px;height:30px;padding:0;background:transparent;}
.history-calendar-top .history-calendar-toggle{display:flex;flex:none;align-items:center;justify-content:center;gap:5px;min-height:38px;padding:5px 2px;white-space:nowrap;}
.history-calendar-top .history-calendar-toggle>span{font-size:.72rem;font-weight:850;letter-spacing:.04em;text-transform:uppercase;}
.history-calendar-top .history-calendar-toggle>b{margin:0;font-size:.95rem;}
.history-calendar-top .history-calendar-toggle>i{display:none;}
.history-calendar-top .history-calendar-next{grid-column:3;justify-self:end;padding-right:8px;color:var(--muted);font-size:1.15rem;font-style:normal;}
@media(max-width:380px){.history-liquidation>header{padding:0 8px;gap:3px}.history-liquidation-title{gap:5px;font-size:.59rem}.history-liquidation-title svg{width:14px;height:14px}.history-liquidation>header>small{font-size:.56rem}.history-calendar-title-group{gap:3px}.history-calendar-top .history-calendar-toggle{gap:3px}.history-calendar-top .history-calendar-toggle>span{font-size:.64rem}}
.sync-indicator{width:36px;min-width:36px;height:36px;min-height:36px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:transparent;color:var(--green);}
.sync-indicator>span{width:9px;height:9px;border-radius:50%;background:currentColor;box-shadow:0 0 8px currentColor;}
.sync-synced{color:#25cf78;}
.sync-uploading,.sync-downloading,.sync-pending{color:var(--yellow);}
.sync-error{color:#ff5555;}
.sync-offline{color:#858585;}
.sync-uploading>span,.sync-downloading>span,.sync-pending>span,.sync-error>span{animation:sync-pulse 1.2s ease-in-out infinite;}
.settings-topbar>.sync-indicator{justify-self:end;}
@keyframes sync-pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.35;transform:scale(.78)}}
@media(prefers-reduced-motion:reduce){.sync-indicator>span{animation:none!important}}
.metric-cash small svg,.history-payments>div:first-child small svg{color:#45cf8b;}
.metric-card small svg,.history-payments>div:last-child small svg{color:#38a5ed;}
.recent-card .round.cash-icon{background:#183a2a;color:#45cf8b;}
.recent-card .round.card-icon{background:#18344a;color:#38a5ed;}
.recent-card .round.tip-icon{background:#183a2a;color:#45cf8b;}
html,body{scrollbar-width:none;-ms-overflow-style:none;}
html::-webkit-scrollbar,body::-webkit-scrollbar,*::-webkit-scrollbar{display:none;width:0;height:0;}
.settings-page{display:flex;flex-direction:column;gap:20px;padding-bottom:28px;}
.settings-section{min-width:0;}
.settings-section-title{margin:0 0 8px 12px;color:var(--muted);font-size:.69rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;}
.settings-card{overflow:hidden;border:1px solid var(--line);border-radius:24px;background:color-mix(in srgb,var(--card) 95%,transparent);}
.settings-row{width:100%;min-height:68px;display:flex;align-items:center;gap:14px;padding:12px 14px;border:0;border-radius:0;background:transparent;text-align:left;}
.settings-row+.settings-row{border-top:1px solid color-mix(in srgb,var(--line) 72%,transparent);}
.settings-row:active{background:color-mix(in srgb,var(--line) 34%,transparent);}
.settings-row .settings-icon{width:36px;height:36px;min-width:36px;display:grid;place-items:center;border-radius:50%;background:color-mix(in srgb,var(--line) 58%,transparent);color:var(--yellow);}
.settings-icon svg{width:17px;height:17px;}
.settings-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px;}
.settings-copy b{overflow:hidden;color:var(--text);font-size:.88rem;font-weight:800;text-overflow:ellipsis;white-space:nowrap;}
.settings-copy small{color:var(--muted);font-size:.73rem;line-height:1.4;}
.settings-chevron{color:var(--muted);font-size:1.5rem;line-height:1;}
.settings-switch{width:48px;height:28px;display:flex;align-items:center;padding:3px;border:2px solid #727272;border-radius:20px;background:#313131;transition:background .18s,border-color .18s;}
.settings-switch i{width:18px;height:18px;border-radius:50%;background:#888;transition:transform .18s,background .18s;}
.settings-switch.on{border-color:var(--yellow);background:var(--yellow);}
.settings-switch.on i{transform:translateX(18px);background:#151515;}
.settings-row.is-switch{min-height:64px;}
.settings-actions{padding-top:2px;}
.settings-actions .subtle{padding:0 4px;}
.today-schedule-badges{min-width:0;display:flex;align-items:center;justify-content:center;gap:8px;}
.today-schedule-pill{min-height:34px;display:flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid color-mix(in srgb,var(--text) 12%,transparent);border-radius:14px;background:color-mix(in srgb,var(--bg) 45%,transparent);color:var(--text);white-space:nowrap;}
.today-schedule-pill svg{width:16px;height:16px;flex:none;}
.today-schedule-pill b{font-size:.875rem;font-weight:800;line-height:1;}
.history-liquidation>header{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);}
.history-liquidation-actions{grid-column:1;justify-self:start;display:flex;align-items:center;gap:4px;}
.history-liquidation-actions button{width:30px;min-width:30px;height:30px;min-height:30px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:#202020;color:var(--text);}
.history-liquidation-actions svg{width:16px;height:16px;color:inherit;}
.install-float{position:fixed;z-index:20;left:50%;bottom:calc(92px + env(safe-area-inset-bottom));transform:translateX(-50%);width:min(560px,calc(100% - 28px));display:flex;align-items:center;gap:12px;padding:13px 46px 13px 14px;border:1px solid var(--line);border-radius:18px;background:var(--card);box-shadow:0 12px 36px #0008;animation:install-in .25s ease-out;}
.install-mark{width:38px;height:38px;display:grid;place-items:center;flex:none;border-radius:13px;background:color-mix(in srgb,var(--yellow) 15%,var(--bg));color:var(--yellow)}
.install-mark svg{width:20px;height:20px}.install-copy{min-width:0;flex:1}.install-copy b,.install-copy small{display:block}.install-copy b{font-size:.88rem}.install-copy small{font-size:.72rem;margin-top:3px;line-height:1.25}.install-cta{min-height:40px;padding:8px 14px;background:var(--yellow);color:#211d10;font-size:.8rem;white-space:nowrap}.install-dismiss{position:absolute;right:7px;top:7px;width:32px;min-width:32px;min-height:32px;padding:0;background:transparent;color:var(--muted);font-size:22px;font-weight:400}
@keyframes install-in{from{opacity:0;translate:0 8px}to{opacity:1;translate:0 0}}
body.light .history-liquidation-actions button{background:#f7f7f7;}
@media(max-width:360px){.today-schedule-badges{gap:4px}.today-schedule-pill{gap:4px;padding:6px 7px}.settings-row{gap:10px;padding-inline:11px}}
.collected-head{display:flex;align-items:center;justify-content:center;position:relative;min-height:46px;margin:-14px -24px 10px;padding:0 48px;background:#272727;border-radius:22px 22px 0 0}
.collected-head .eyebrow{display:flex;align-items:center;gap:8px;margin:0;background:transparent;color:#f3f3f3}
.collected-head .eyebrow svg{width:16px;height:16px;color:var(--green)}
.amount-visibility{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:34px;min-width:34px;height:34px;min-height:34px;display:grid;place-items:center;padding:5px;border-radius:50%;background:transparent;color:#c8c8ce}
.amount-visibility svg{width:20px;height:20px}
.amount-visibility.is-hidden{color:var(--yellow)}
body.light .topbar{background:#fff;border-color:#dfdfdf}
body.light .top-action,body.light .topbar>.status,body.light .settings-topbar .top-back{background:#f0f0f0;color:#555;border-color:#e3e3e3}
body.light .top-action[aria-current="page"]{background:var(--yellow);color:#171300;border-color:var(--yellow)}
body.light .sync-indicator{background:transparent;border-color:transparent}
body.light .settings-switch:not(.on){background:#e4e4e4;border-color:#888}
body.light .settings-switch:not(.on) i{background:#777}
body.light .collected-head{background:#f0f0f0}
body.light .collected-head .eyebrow{color:#272727}
body.light .amount-visibility{color:#555}
body.light .amount-visibility.is-hidden{color:#b28e00}
body.light .amount{color:var(--text)}
body.light .hero .eyebrow{background:#f0f0f0;color:#272727}
body.light .goal-label{color:#555}
body.light .goal-label strong{color:#936500}
body.light .goal-label .goal-hit{color:var(--green)}
body.light .hero progress,body.light .hero progress::-webkit-progress-bar{background:#dedede}
body.light .metric>span{color:#555}
body.light input:not([type=checkbox]),body.light select{background:#fff;color:var(--text);border-color:var(--line)}
body.light .dialog-head button{background:#f0f0f0;color:var(--text)}
.driver-invitation{max-width:440px;border:1px solid var(--line);border-radius:28px;background:linear-gradient(145deg,#202424,var(--card));padding:26px;}
.driver-invitation .dialog-head{display:none}
.invite-prompt{text-align:center;padding:2px 0 4px}
.invite-mark{display:grid;place-items:center;width:64px;height:64px;margin:0 auto 18px;border-radius:50%;background:#facc1522;color:var(--yellow)}
.invite-mark svg{width:30px;height:30px}
.invite-eyebrow{font-size:.68rem;letter-spacing:1.4px;font-weight:800;color:var(--muted);margin:0 0 8px}
.invite-prompt h3{font-size:1.35rem;margin:0 0 8px}
.invite-license{display:inline-block;padding:7px 12px;border-radius:18px;background:var(--bg);font-size:.8rem}
.invite-prompt>p:not(.invite-eyebrow):not(.invite-error){color:var(--muted);line-height:1.55;margin:16px 0 22px}
.invite-buttons{display:flex;gap:10px}
.invite-buttons button{flex:1;min-height:48px;font-size:.76rem;font-weight:800}
.invite-buttons .danger-button{background:#d9302f;color:#fff}
.invite-error{color:var(--red);font-size:.82rem;line-height:1.4;margin:12px 0 0}
@media(min-width:700px){.driver-invitation{inset:50% auto auto 50%;transform:translate(-50%,-50%);border-bottom:1px solid var(--line);border-radius:28px}}
/* Claude 2026-10-13: con 1fr|auto|1fr, entre 380 y 430 px (iPhone 15/16) la fecha «SEM. 12/10 - 18/10» se montaba
   sobre «LIQUIDACIÓN SEMANAL». En estrecho el título cede: se recorta con «…» y la fecha se lee entera. */
@media(max-width:430px){.history-liquidation>header{grid-template-columns:auto minmax(0,1fr) auto}.history-liquidation-title{justify-content:flex-start;min-width:0;overflow:hidden}.history-liquidation-title>span{overflow:hidden;text-overflow:ellipsis}}
/* La flecha de volver de Ajustes apuntaba a la derecha (el icono «arrow» es el de avanzar) */
.top-back svg{transform:scaleX(-1)}
/* Claude 2026-10-13: pantallas bajas (iPhone SE 667 px, 13 mini 812 px): el panel se compacta para que «HISTORIAL RECIENTE /
   SIN ACTIVIDAD» quede por encima del botón flotante de la jornada (asomaba por debajo de él), como en Android */
@media(max-height:820px){
 .dashboard-shell .home-date{margin-bottom:8px}
 .dashboard-shell .card,.dashboard-shell .hero{margin-bottom:10px}
 .dashboard-shell .amount{font-size:2.4rem;margin:4px 0 8px}
 .dashboard-shell .totals-grid{gap:10px;margin-bottom:10px}
 .dashboard-shell .metric{padding:0 0 8px;min-height:0}/* la franja de EFECTIVO/TARJETA llega a los bordes (con 8px 12px quedaba metida, 2026-10-14) */
 .dashboard-shell .metric small{margin-bottom:2px;min-height:32px}
 .dashboard-shell .estimate-card{margin-bottom:10px}
 .dashboard-shell .no-activity{padding:12px 16px;min-height:0}
 .dashboard-shell .no-activity svg{width:30px;height:30px;margin-bottom:4px}
}
/* Claude 2026-10-13: la franja «RECAUDACIÓN HOY» tenía margen −14px arriba (de cuando la tarjeta tenía relleno) y el
   texto quedaba pegado al borde superior en todos los iPhone */
.hero>.collected-head{margin:0 0 10px}

/* Recuperación del PIN con llave (llave.mjs) */
.llave-pin label{display:block;margin:12px 0}
.llave-pin p{line-height:1.5}
.llave-ok{font-weight:800;color:var(--yellow);font-size:1.05rem;margin-bottom:8px}
#sheet .dialog-actions .danger{background:transparent}
.llaves{list-style:none;margin:8px 0 12px;padding:0}
.llave-fila{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.llave-fila:last-child{border-bottom:0}
.llave-fila b{display:block}
.llave-fila small{display:block;color:var(--muted);font-size:.78rem;margin-top:3px}
.llave-fila button{min-height:40px;padding:8px 14px;background:transparent;border:1px solid var(--line)}
/* Claude 2026-10-14: con flex space-between las burbujas quedaban centradas entre el logo y los botones (que son mucho
   más anchos), no en la barra. Rejilla de 3 columnas con los laterales iguales: burbujas en el centro exacto; si en
   muy estrecho no cabe, cada lateral se queda con su contenido y no se desborda nada */
.topbar:has(.today-schedule-badges){display:grid;grid-template-columns:minmax(max-content,1fr) auto minmax(max-content,1fr);align-items:center}
.topbar:has(.today-schedule-badges)>.brand-side{justify-self:start}
.topbar:has(.today-schedule-badges)>.top-actions{justify-self:end}
/* Claude 2026-10-14: cabecera como la de la app Android (DashboardHeader.kt): «TaxiPilot» con «LM. 367» debajo (con la
   jornada en marcha, el tiempo trabajado), burbujas de 14 px de radio en el centro y dos botones redondos de 36 px con
   borde y 12 px entre ellos. El punto de sincronización (sólo web) va junto al título para dejar la derecha igual */
.topbar{padding-left:12px;padding-right:12px}
.brand-side{min-width:0;display:flex;align-items:center;gap:2px}
.brand-side>.brand{min-height:40px}
.brand .brand-copy{align-items:center;gap:3px}
.brand .brand-copy>b{font-size:1rem;font-weight:800;letter-spacing:0}
.brand-lic{color:var(--muted);font-size:.62rem;font-weight:500;letter-spacing:.02em}
.brand-side>.sync-indicator{width:22px;min-width:22px;height:22px;min-height:22px}
.top-actions{gap:12px}
.top-action{width:36px;min-width:36px;height:36px;min-height:36px;border:1px solid color-mix(in srgb,var(--text) 12%,transparent)}
@media(max-width:360px){.top-actions{gap:6px}.brand .brand-copy>b{font-size:.88rem}}
body.light .brand-lic{color:#666}
/* Claude 2026-10-14: la cabecera del mes es un botón que pliega/despliega sus jornadas (como Android) */
.history-month>.history-month-head{width:100%;min-height:42px;display:flex;justify-content:space-between;align-items:center;gap:8px;padding:11px 14px;border:0;border-radius:0;background:#252525;color:var(--text);text-align:left;font-size:.82rem;font-weight:800;text-transform:capitalize;cursor:pointer}
.history-month>.history-month-head>strong{display:flex;flex-direction:column;gap:3px;min-width:0;margin-right:auto;text-transform:capitalize}
.history-month>.history-month-head>strong small{color:var(--muted);font-size:.68rem;font-weight:500;text-transform:none}
.history-month>.history-month-head>span{font-size:.78rem;font-weight:800}
.history-month>.history-month-head>.history-chevron{font-style:normal;color:var(--muted);width:18px;text-align:center}
body.light .history-month>.history-month-head{background:#eee;color:#242424}
@media(max-width:380px){.history-month>.history-month-head>span{font-size:.68rem}}
/* Claude 2026-10-14: ventana «Generar reporte PDF» (como la de Android): cada opción con su explicación debajo */
.pdf-sheet .wide.actions{display:flex;flex-direction:column;align-items:flex-start;gap:3px;width:100%;text-align:left;margin-bottom:10px;padding:13px 16px;background:var(--card);border:1px solid var(--line);border-radius:16px;color:var(--text);text-transform:none}
.pdf-sheet .wide.actions b{font-size:.95rem}.pdf-sheet .wide.actions small{color:var(--muted);font-size:.75rem;font-weight:500}
.pdf-sheet [data-pdf-mes]{text-transform:capitalize}
/* Claude 2026-10-14 · fluidez de la app instalada: la fuente de la pantalla de entrada se sirve desde aquí (antes, una
   hoja de Google Fonts que bloqueaba el primer pintado en cada arranque y no funcionaba sin red); fuera los
   backdrop-filter de las barras (eran opacas: no se veía y costaba en cada desplazamiento) y el punto verde ya no
   late cuando la copia está al día (animación infinita para nada) */
@font-face{font-family:'Nunito Sans';font-style:normal;font-weight:200 1000;font-display:swap;src:url(/app/fuentes/nunito-sans-latin.woff2) format('woff2')}
/* Claude 2026-10-14: la barra de arriba (sticky, top:0) nacía a 12 px del borde y en los primeros 12 px de desplazamiento
   subía hasta pegarse: se veía un salto. Ahora se queda fija donde nace (top = el mismo relleno superior de la página,
   muesca incluida) y el hueco entre ella y el borde se tapa con una sombra opaca del color del fondo (una sombra exterior nunca se
   pinta encima de la barra; un ::before con z-index -1 sí tapaba su mitad de arriba) */
.shell{--hueco-arriba:max(12px,env(safe-area-inset-top));padding-top:var(--hueco-arriba)}
@media(orientation:landscape) and (max-height:500px){.shell{--hueco-arriba:max(8px,env(safe-area-inset-top))}}
.topbar{top:var(--hueco-arriba,0px)}
.topbar{box-shadow:0 calc(-1 * var(--hueco-arriba,0px)) 0 12px var(--bg)}
@media print{.topbar{box-shadow:none}}
/* Teclado numérico: la tecla se marca al apoyar el dedo (clase .pulsada, porque con touchstart cancelado iOS no aplica
   :active) y no se selecciona texto ni sale la lupa al dejar el dedo apoyado */
.money-pad{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.money-key.pulsada{background:color-mix(in srgb,var(--yellow) 22%,#2a2a2c);color:var(--yellow)}
body.light .money-key.pulsada{background:color-mix(in srgb,var(--yellow) 30%,#fff)}
/* Mantener pulsada una carrera: sin selección de texto ni menú del sistema; ventana «Eliminar carrera» como la de Android */
.row[data-action="edit"]{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.borrar-carrera{text-align:center;padding:4px 0 16px}.borrar-carrera p{margin:0 0 8px;font-size:1rem;font-weight:500}
.borrar-carrera strong{font-size:1.25rem;font-weight:900;color:var(--yellow)}
.secondary-actions .danger[data-delete-confirm]{background:#d9302f;border-color:#d9302f;color:#fff;font-weight:800}

/* Panel sin jornada que cabe entero: sin desplazar ni rebotar (ajustarScroll en app.mjs) */
html.sin-scroll,html.sin-scroll body{overflow:hidden;overscroll-behavior:none}
/* Calendario del historial igual que el de la app Android (HistoryCalendar.kt, 2026-10-24): cada marca dice UNA cosa */
:root{--cal-descanso:#4A5A66;--cal-aeropuerto:#1D4E7A;--cal-rojo:#FF6B6B;--cal-linea:rgba(255,255,255,.24);--cal-banda:rgba(242,196,15,.22)}
body.light{--cal-descanso:#9EADB9;--cal-aeropuerto:#8FC4F0;--cal-rojo:#B71C1C;--cal-linea:rgba(0,0,0,.2)}
@supports (color:color-mix(in srgb,red 50%,transparent)){:root{--cal-banda:color-mix(in srgb,var(--yellow) 22%,transparent)}}
.tpcal-semana,.tpcal{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.tpcal-semana{margin-top:6px;padding-bottom:8px}.tpcal-semana span{text-align:center;font-size:11px;font-weight:700;color:var(--muted);opacity:.6}
.tpcal{touch-action:pan-y}
.tpcal-dia{position:relative;height:48px;display:flex;align-items:center;justify-content:center;border-top:1px solid var(--cal-linea)}
.tpcal-dia.semana::before{content:"";position:absolute;inset:3px 0;background:var(--cal-banda)}
.tpcal-dia.semana-ini::before{border-radius:999px 0 0 999px}.tpcal-dia.semana-fin::before{border-radius:0 999px 999px 0}
.tpcal-circ{position:relative;z-index:1;margin:0 0 3px;width:36px;height:36px;min-height:36px;padding:0;border-radius:50%;background:transparent;color:var(--text);display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1;font-weight:400}
.tpcal-circ b{font-size:14px;font-weight:inherit}.tpcal-circ.fuerte{font-weight:700}
.tpcal-circ small{font-size:9px;font-weight:400;opacity:.6;margin-top:1px}
.tpcal-circ.descanso{background:var(--cal-descanso)}.tpcal-circ.descanso.parcial{background:color-mix(in srgb,var(--cal-descanso) 45%,transparent)}
.tpcal-circ.aeropuerto{background:var(--cal-aeropuerto)}
.tpcal-circ.rojo{color:var(--cal-rojo)}
.tpcal-circ.elegido{background:var(--yellow);color:#171300}.tpcal-circ.elegido small{opacity:.7}
.tpcal-circ.aro-santa{box-shadow:inset 0 0 0 2.5px #8E24AA}.tpcal-circ.aro-feria{box-shadow:inset 0 0 0 2.5px #EC407A}.tpcal-circ.aro-navidad{box-shadow:inset 0 0 0 2.5px #2E7D32}
.tpcal-hoy{position:absolute;z-index:1;left:50%;top:50%;width:42px;height:42px;margin:-22.5px 0 0 -21px;border:2px solid var(--yellow);border-radius:50%;box-sizing:border-box;pointer-events:none}
.tpcal-raya{position:absolute;z-index:1;bottom:1px;left:50%;width:14px;height:3px;margin-left:-7px;border-radius:2px;background:var(--text)}
.tpcal-leyenda{display:flex;flex-wrap:wrap;gap:8px 14px;padding:8px 4px 4px;font-size:11px;color:var(--muted)}
.tpcal-leyenda span{display:inline-flex;align-items:center;gap:5px;min-height:16px}.tpcal-ley-rojo{color:var(--cal-rojo);font-weight:700}
.ley-circ{width:14px;height:14px;border-radius:50%;display:inline-block}.ley-circ.descanso{background:var(--cal-descanso)}.ley-circ.aeropuerto{background:var(--cal-aeropuerto)}
.ley-circ.aro-santa{border:2px solid #8E24AA}.ley-circ.aro-feria{border:2px solid #EC407A}.ley-circ.aro-navidad{border:2px solid #2E7D32}
.ley-raya{width:12px;height:3px;border-radius:2px;background:var(--text);display:inline-block}
@media(max-width:340px){.tpcal-circ{width:32px;height:32px;min-height:32px}.tpcal-hoy{width:38px;height:38px;margin:-20.5px 0 0 -19px}}

/* La tecla se hunde al apoyar el dedo y vuelve con un pequeño rebote (2026-10-25, como Android) */
.money-key{transition:transform .24s cubic-bezier(.34,1.56,.64,1)}
.money-key.pulsada{transform:scale(.92);transition-duration:.06s}
@media(prefers-reduced-motion:reduce){.money-key,.money-key.pulsada{transition:none;transform:none}}
.money-key svg{width:30px;height:30px}

/* Servicio nulo (2026-11-21): apagado y tachado, no suma */.row.nulo{opacity:.55}.row.nulo strong{text-decoration:line-through}
/* Diálogos (2026-11-21, pantallazo de lito en el iPhone): el foco inicial va al título, sin anillo (antes la ✕ salía
   con el borde amarillo); los dos botones de abajo, a la misma altura (Cancelar llevaba el margen de .actions);
   «Marcar como nulo», con su fondo (el de por defecto era el mismo que el del diálogo y no se veía como botón) */
.dialog-head h2:focus{outline:none}
.secondary-actions button,.secondary-actions .wide{margin:0;min-height:50px;align-self:stretch}
.boton-nulo{display:flex;align-items:center;justify-content:center;width:100%;min-height:50px;margin:0 0 12px;border:1px solid rgba(242,196,15,.35);border-radius:15px;background:rgba(242,196,15,.12);color:var(--yellow);font-weight:800}
body.light .boton-nulo{background:rgba(242,196,15,.18);border-color:rgba(176,140,0,.45);color:#7a6100}
