:root{--bg: #f3f6fa;--surface: #ffffff;--surface-2: #eef2f7;--line: #dde3ec;--text: #0f1b2d;--muted: #5b6b80;--navy: #13294b;--teal: #0d9488;--teal-soft: #ccfbf1;--teal-ink: #0f766e;--sos: #e11d48;--sos-soft: #ffe4e6;--warn: #b45309;--warn-soft: #fef3c7;--ok: #15803d;--ok-soft: #dcfce7;--radius: 16px;--shadow: 0 1px 2px rgb(15 27 45 / 6%), 0 4px 14px rgb(15 27 45 / 6%);--nav-h: 64px;--safe-b: env(safe-area-inset-bottom, 0px);color-scheme:light}@media(prefers-color-scheme:dark){:root{--bg: #0b1322;--surface: #121d31;--surface-2: #1a2740;--line: #263552;--text: #e8eef7;--muted: #94a3b8;--navy: #0b1322;--teal: #2dd4bf;--teal-soft: #134e4a;--teal-ink: #5eead4;--sos: #fb7185;--sos-soft: #4c0519;--warn: #fbbf24;--warn-soft: #422006;--ok: #4ade80;--ok-soft: #052e16;--shadow: 0 1px 2px rgb(0 0 0 / 30%);color-scheme:dark}}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.45 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;-webkit-tap-highlight-color:transparent}body.noscroll{overflow:hidden}h1,h2,h3{margin:0;line-height:1.2}h1{font-size:1.6rem}h2{font-size:1.2rem}h3{font-size:1.02rem;display:flex;align-items:center;gap:8px}p{margin:0}a{color:var(--teal-ink)}button,input,select{font:inherit;color:inherit}input,select{width:100%;min-height:48px;padding:10px 14px;border:1.5px solid var(--line);border-radius:12px;background:var(--surface);outline:none}input:focus,select:focus{border-color:var(--teal);box-shadow:0 0 0 3px color-mix(in srgb,var(--teal) 20%,transparent)}input[type=checkbox]{width:22px;min-height:22px;accent-color:var(--teal)}.muted{color:var(--muted)}.small{font-size:.88rem}.block{display:block}.grow{flex:1;min-width:0}.center{text-align:center}.top-gap{margin-top:10px}.warn-text{color:var(--warn)}.sos-text{color:var(--sos)}.danger-text{color:var(--sos)!important}.lead{font-size:1.02rem;color:var(--muted)}.row{display:flex;align-items:center;gap:10px}.row.wrap{flex-wrap:wrap}.stack{display:flex;flex-direction:column;gap:14px}.stack.center{align-items:center;text-align:center}.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.shell{min-height:100dvh;display:flex;flex-direction:column}.top{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:calc(env(safe-area-inset-top,0px) + 10px) 16px 10px;background:var(--navy);color:#fff}.brand{display:flex;align-items:center;gap:12px;min-width:0}.brand strong{display:block;font-size:1.05rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.brand small{display:block;opacity:.75;font-size:.8rem}.logo{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:linear-gradient(135deg,#2dd4bf,#0d9488);color:#fff;font-weight:800;font-size:1.15rem;flex:none}.logo.big{width:72px;height:72px;border-radius:22px;font-size:2.2rem;box-shadow:0 10px 30px #0d948859}.top .icon-btn{color:#fff}.content{flex:1;width:100%;max-width:720px;margin:0 auto;padding:16px 16px calc(var(--nav-h) + var(--safe-b) + 24px)}.content.wide{max-width:960px;padding-bottom:40px;display:flex;flex-direction:column;gap:14px}.bottom{position:fixed;left:0;right:0;bottom:0;z-index:20;display:flex;justify-content:space-around;height:calc(var(--nav-h) + var(--safe-b));padding-bottom:var(--safe-b);background:var(--surface);border-top:1px solid var(--line)}.bottom button{flex:1;border:0;background:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:.72rem;color:var(--muted);cursor:pointer}.bottom button.on{color:var(--teal-ink);font-weight:600}.bottom button.on .ic{background:var(--teal-soft)}.ic{position:relative;display:grid;place-items:center;width:52px;height:30px;border-radius:15px;transition:background .2s}.bubble{position:absolute;top:-4px;right:4px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--sos);color:#fff;font-size:.68rem;font-style:normal;font-weight:700;display:grid;place-items:center}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:0 18px;border-radius:14px;border:1.5px solid transparent;font-weight:600;cursor:pointer;text-decoration:none;transition:transform .08s,filter .15s;white-space:nowrap}.btn:active{transform:scale(.98)}.btn:disabled{opacity:.5;cursor:default}.btn.primary{background:var(--teal);color:#fff}@media(prefers-color-scheme:dark){.btn.primary{color:#042f2e}}.btn.soft{background:var(--teal-soft);color:var(--teal-ink)}.btn.ghost{background:transparent;border-color:var(--line);color:var(--text)}.btn.sos{background:var(--sos);color:#fff}.btn.warn{background:var(--warn);color:#fff}.btn.danger{background:var(--sos);color:#fff}.btn.whatsapp{background:#25d366;color:#063}.btn.sm{min-height:38px;padding:0 12px;font-size:.9rem;border-radius:11px}.btn.full{width:100%}.icon-btn{width:44px;height:44px;display:grid;place-items:center;border:0;background:none;border-radius:12px;cursor:pointer;color:var(--text);flex:none}.icon-btn:hover{background:color-mix(in srgb,currentColor 8%,transparent)}.icon-btn.add{background:var(--teal-soft);color:var(--teal-ink);width:38px;height:38px}.card{background:var(--surface);border-radius:var(--radius);padding:16px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:10px;border:0;text-align:left}.card.flat{box-shadow:none;padding:0;background:none}.card summary{cursor:pointer;font-weight:600}.link-card{flex-direction:row;align-items:center;gap:12px;cursor:pointer;font-weight:600;width:100%}.link-card span{flex:1}.link-card.warn{background:var(--warn-soft);color:var(--warn)}.sos-mini{background:var(--sos-soft);color:var(--sos)}.list{display:flex;flex-direction:column;gap:8px}.hello{font-size:1.5rem;margin-top:4px}.eyebrow{font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:700}.hero-card{background:linear-gradient(135deg,var(--navy),#1d4e7a);color:#fff}.hero-card .eyebrow,.hero-card .muted{color:#ffffffbf}.hero-time{font-size:1rem;opacity:.9}.hero-big{font-size:2.3rem;font-weight:800;letter-spacing:-.02em;font-variant-numeric:tabular-nums}.hero-meta{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.hero-card .role-tag{background:#ffffff2e;color:#fff}.sos-card{border:2px solid var(--sos)}.sos-card .hero-big{font-size:1.9rem}.sos-head{display:flex;align-items:center;gap:8px;color:var(--sos)}.ok-line{display:flex;align-items:center;gap:6px;color:var(--ok);font-weight:600}.quick{display:grid;grid-template-columns:1fr 1fr;gap:10px}.row .btn,.quick .btn{white-space:normal;text-align:center;line-height:1.2}.nudge{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:14px;background:var(--teal-soft);color:var(--teal-ink);font-size:.92rem}.actions-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.action{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:16px;min-height:96px;border-radius:var(--radius);border:0;background:var(--surface);box-shadow:var(--shadow);cursor:pointer;font-weight:700;text-align:left;color:var(--text)}.action svg{color:var(--teal)}.action.sos{background:var(--sos);color:#fff}.action.sos svg{color:#fff}.action .bubble{top:12px;right:12px}.shift{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;border-radius:14px;border:1.5px solid var(--line);background:var(--surface);text-align:left;cursor:pointer;border-left:5px solid var(--rc)}.shift:disabled{cursor:default}.shift.draft{border-style:dashed;border-left-style:solid;background:var(--surface-2)}.shift.mine{background:color-mix(in srgb,var(--teal) 9%,var(--surface));border-color:color-mix(in srgb,var(--teal) 45%,var(--line));border-left-color:var(--rc)}.shift-time{display:flex;flex-direction:column;align-items:center;min-width:52px;font-variant-numeric:tabular-nums;line-height:1.15}.shift-time b{font-size:1.05rem}.shift-time small{color:var(--muted);font-size:.8rem}.shift-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}.shift-who{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.shift-who em{color:var(--warn);font-style:normal}.shift-meta{display:flex;gap:6px;flex-wrap:wrap;align-items:center;font-size:.8rem}.shift-meta .note{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:160px}.shift-hours{font-size:.85rem;color:var(--muted);font-variant-numeric:tabular-nums}.role-tag{padding:2px 8px;border-radius:99px;background:color-mix(in srgb,var(--rc, var(--teal)) 16%,transparent);color:var(--text);font-size:.78rem;font-weight:600}.badge{display:inline-flex;align-items:center;padding:2px 9px;border-radius:99px;font-size:.75rem;font-weight:700;background:var(--surface-2);color:var(--muted);white-space:nowrap}.badge.draft,.badge.pending,.badge.warn,.badge.trial{background:var(--warn-soft);color:var(--warn)}.badge.ok,.badge.approved,.badge.active{background:var(--ok-soft);color:var(--ok)}.badge.sos,.badge.rejected,.badge.suspended{background:var(--sos-soft);color:var(--sos)}.badge.wish{background:var(--teal-soft);color:var(--teal-ink)}.weeknav{display:flex;align-items:center;gap:6px;background:var(--surface);border-radius:var(--radius);padding:6px;box-shadow:var(--shadow)}.weeknav-label{flex:1;border:0;background:none;display:flex;flex-direction:column;align-items:center;cursor:pointer}.weeknav-label small{color:var(--muted);font-size:.78rem}.seg{display:flex;background:var(--surface-2);border-radius:13px;padding:4px;gap:4px}.seg button{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:42px;border:0;border-radius:10px;background:none;font-weight:600;color:var(--muted);cursor:pointer}.seg button.on{background:var(--surface);color:var(--text);box-shadow:var(--shadow)}.day{display:flex;flex-direction:column;gap:8px}.day-head{display:flex;align-items:center;justify-content:space-between;min-height:40px}.day-head h3{text-transform:capitalize}.day-head h3 span{color:var(--muted);font-weight:500}.day.is-today .day-head h3{color:var(--teal-ink)}.day.is-today .day-head h3:after{content:"";width:8px;height:8px;border-radius:50%;background:var(--teal)}.day.past{opacity:.6}.offline{display:flex;flex-wrap:wrap;gap:6px}.off-pill{display:inline-flex;align-items:center;gap:4px;font-size:.78rem;padding:3px 9px;border-radius:99px;background:var(--surface-2);color:var(--muted)}.off-pill.absence.approved{background:var(--sos-soft);color:var(--sos)}.off-pill.wish{background:var(--teal-soft);color:var(--teal-ink)}.hours-list{display:flex;flex-direction:column;gap:6px}.hours-row{display:flex;align-items:center;gap:10px;font-variant-numeric:tabular-nums}.req{display:flex;flex-direction:column;gap:8px;padding:12px 0;border-top:1px solid var(--line)}.req:first-of-type{border-top:0}.muted-req{opacity:.75}.req-row{display:flex;align-items:center;gap:10px;padding:6px 0}.member{display:flex;align-items:center;gap:12px;width:100%;padding:12px;border-radius:14px;border:0;background:var(--surface);box-shadow:var(--shadow);cursor:pointer;text-align:left}.member.on{outline:2px solid var(--teal)}.member.dim{opacity:.6}.avatar{flex:none;display:grid;place-items:center;border-radius:50%;color:#fff;font-weight:700}.notif{display:flex;flex-direction:column;gap:2px;padding:12px 14px;border-radius:14px;background:var(--surface);box-shadow:var(--shadow);border-left:4px solid transparent}.notif.unread{border-left-color:var(--teal)}.notif.k-sos{border-left-color:var(--sos)}.notif small{color:var(--muted);font-size:.78rem}.empty{display:flex;flex-direction:column;align-items:center;gap:10px;padding:48px 20px;color:var(--muted);text-align:center}.field{display:flex;flex-direction:column;gap:6px}.field-label{font-weight:600;font-size:.9rem}.field-hint{font-size:.8rem;color:var(--muted)}.chips,.presets{display:flex;flex-wrap:wrap;gap:8px}.chip{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 14px;border-radius:99px;border:1.5px solid var(--line);background:var(--surface);cursor:pointer;font-weight:500}.chip.on{background:var(--teal);border-color:var(--teal);color:#fff}.dot{width:10px;height:10px;border-radius:50%;display:inline-block}.dot.big{width:16px;height:16px}.people{display:grid;grid-template-columns:1fr 1fr;gap:8px}.person{display:flex;align-items:center;gap:8px;min-height:48px;padding:6px 10px;border-radius:12px;border:1.5px solid var(--line);background:var(--surface);cursor:pointer;text-align:left;font-weight:500}.person>span:not(.avatar){flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.person.on{border-color:var(--teal);background:var(--teal-soft);color:var(--teal-ink)}.person.dim:not(.on){opacity:.55}.hint-line{display:flex;align-items:center;gap:6px;font-size:.85rem;color:var(--muted)}.error-line{color:var(--sos);font-weight:600}.warnbox{background:var(--warn-soft);color:var(--warn);border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;gap:6px}.warnbox strong{display:flex;align-items:center;gap:6px}.warnbox ul{margin:0;padding-left:20px}.switch-row{display:flex;align-items:center;gap:12px;min-height:48px;font-weight:500}.danger-zone{display:flex;flex-wrap:wrap;gap:8px;padding-top:12px;border-top:1px solid var(--line)}.qr{background:#fff;padding:12px;border-radius:16px;line-height:0}.code{font:800 2rem/1 ui-monospace,SF Mono,Menlo,monospace;letter-spacing:.12em;padding:14px 20px;border-radius:14px;background:var(--surface-2)}.code-input{text-align:center;font:700 1.6rem ui-monospace,SF Mono,Menlo,monospace;letter-spacing:.14em;text-transform:uppercase}.sheet-back{position:fixed;inset:0;z-index:50;background:#080f1c7f;display:flex;align-items:flex-end;justify-content:center;animation:fade .15s}.sheet{width:100%;max-width:560px;max-height:92dvh;display:flex;flex-direction:column;background:var(--bg);border-radius:22px 22px 0 0;animation:up .2s cubic-bezier(.2,.8,.3,1)}.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 12px 6px 20px}.sheet-body{overflow-y:auto;padding:8px 20px 20px;display:flex;flex-direction:column;gap:16px;overscroll-behavior:contain}.sheet-foot{display:flex;gap:10px;padding:12px 20px calc(12px + var(--safe-b));border-top:1px solid var(--line);background:var(--surface)}@media(min-width:700px){.sheet-back{align-items:center}.sheet{border-radius:22px}.sheet-foot{border-radius:0 0 22px 22px}}@keyframes up{0%{transform:translateY(40px);opacity:0}}@keyframes fade{0%{opacity:0}}.toast{position:fixed;z-index:80;left:50%;bottom:calc(var(--nav-h) + var(--safe-b) + 16px);transform:translate(-50%);max-width:calc(100% - 32px);padding:12px 18px;border-radius:14px;background:var(--navy);color:#fff;font-weight:600;box-shadow:0 8px 24px #00000040;animation:up .2s}@media(prefers-color-scheme:dark){.toast{background:#f1f5f9;color:#0f172a}}.toast.err{background:var(--sos);color:#fff}.splash,.center-page{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:24px;text-align:center}.center-page p{color:var(--muted);max-width:380px}.spinner{width:34px;height:34px;margin:30px auto;border-radius:50%;border:3px solid var(--line);border-top-color:var(--teal);animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.welcome{max-width:480px;margin:0 auto;padding:calc(env(safe-area-inset-top,0px) + 20px) 16px 40px;display:flex;flex-direction:column;gap:18px}.welcome-hero{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;padding:18px 0 6px}.welcome-hero h1{font-size:2rem}.features{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.features li{display:flex;align-items:center;gap:12px;padding:14px;background:var(--surface);border-radius:14px;box-shadow:var(--shadow);font-weight:500}.features svg{color:var(--teal);flex:none}.langpick{display:flex;justify-content:flex-end;gap:4px}.langpick button{border:0;background:none;padding:6px 10px;border-radius:8px;color:var(--muted);font-weight:700;cursor:pointer}.langpick button.on{background:var(--surface);color:var(--text);box-shadow:var(--shadow)}.foot{text-align:center;color:var(--muted);font-size:.85rem}.privacy h1{margin-top:10px}.privacy .card p{color:var(--muted)}.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}.stat{background:var(--surface);border-radius:var(--radius);padding:16px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:4px}.stat svg{color:var(--teal)}.stat b{font-size:1.5rem}.stat span{color:var(--muted);font-size:.85rem}.biz{align-items:flex-start}@media(max-width:380px){.people{grid-template-columns:1fr}.hero-big{font-size:2rem}}@media print{.sheet-back{position:static;background:none}.sheet-head,.sheet-foot,.top,.bottom,.content,.lead+button{display:none!important}.sheet{max-height:none;box-shadow:none}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
