@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700;800&display=swap');
:root{--green:#5445c5;--lime:#7ce4f1;--ink:#24233e;--muted:#74758c;--line:#e5e5f1;--bg:#f5f6fc}*{box-sizing:border-box}body{margin:0;background:var(--bg);font:14px 'Noto Sans SC',system-ui,sans-serif;color:var(--ink)}button,input,textarea,select{font:inherit}button{cursor:pointer;border:0;background:none;color:inherit}button:hover{filter:brightness(.96)}a{color:var(--green)}.icon{width:21px;height:21px;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.sidebar{position:fixed;inset:0 auto 0 0;width:228px;background:white;border-right:1px solid var(--line);padding:33px 22px;display:flex;flex-direction:column;z-index:10}.logo{font-size:27px;letter-spacing:-1.4px;font-weight:800;display:flex;gap:9px;align-items:center}.logomark{display:grid;place-items:center;border-radius:11px;background:var(--green);color:var(--lime);width:35px;height:35px;font-size:27px}.brand-sub{color:#83849f;font-size:10px;letter-spacing:3px;margin:8px 0 40px 45px}.nav-label{font-size:10px;color:#85859b;letter-spacing:2px;padding:0 14px;margin:0 0 13px}.navbtn{width:100%;display:flex;gap:13px;align-items:center;padding:14px 16px;border-radius:10px;margin:5px 0;color:#696a83;text-align:left}.navbtn.active{background:#eeebff;color:var(--green);font-weight:600}.badge{margin-left:auto;background:#e4dfff;border-radius:5px;padding:1px 6px;font-size:10px;color:var(--green)}.sidefoot{margin-top:auto}.teamcard{background:#f2f3fc;border-radius:12px;padding:15px;font-size:12px;line-height:1.9;margin-bottom:22px}.dot{display:inline-block;width:7px;height:7px;background:#279ba8;border-radius:50%;margin-right:6px}.profile{display:flex;align-items:center;gap:10px}.avatar{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#efe4d6;color:#50516f;font-weight:600;flex-shrink:0;position:relative;font-size:14px}.avatar.online:after{content:'';position:absolute;right:0;bottom:1px;width:9px;height:9px;border-radius:50%;background:#21b6c4;border:2px solid white}.profile small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.main{margin-left:228px}.topbar{height:87px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 42px;background:#fff9;gap:10px}.crumb{color:#797b94;font-size:12px}.crumb b{color:#45445f;font-weight:500;margin-left:12px}.toptools{display:flex;align-items:center;gap:16px}.demo{font-size:10px;border:1px solid #e1e2f0;padding:5px 9px;border-radius:20px;color:#75768e}.role{font-size:11px;padding:7px 11px;border:1px solid #dedfee;border-radius:7px;background:white}.content{max-width:1440px;padding:34px 42px 40px;margin:auto}.eyebrow{font-size:10px;letter-spacing:2px;color:#7b79a0;margin-bottom:9px}.pagehead{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px;gap:16px}h1{font-size:29px;letter-spacing:-1px;font-weight:600;margin:0 0 9px}h1 span{font-size:26px}h2{font-size:16px;margin:0;font-weight:600}h3{font-size:14px;margin:0 0 8px}.sub{font-size:12px;color:var(--muted);line-height:1.7}.btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;background:var(--green);color:white;padding:12px 18px;border-radius:8px;font-size:12px;font-weight:500}.btn.light{background:#eeebff;color:var(--green)}.btn.outline{background:white;color:var(--ink);border:1px solid var(--line)}.btn:disabled{opacity:.4;cursor:default}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:25px}.stat{background:white;border:1px solid var(--line);border-radius:12px;padding:19px 21px}.stat-top{display:flex;align-items:center;justify-content:space-between;color:#73758e;font-size:11px}.stat-top .icon{color:#6458c4;background:#eeebff;box-sizing:content-box;padding:8px;border-radius:8px;width:17px;height:17px}.stat-num{font-size:28px;font-weight:600;margin:6px 0}.stat-num small{font-size:12px;font-weight:400;color:#7c7e96;margin-left:5px}.stat-foot{font-size:10px;color:#777b96}.stat-foot em{color:#217e8e;font-style:normal}.columns{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:23px}.card{background:white;border:1px solid var(--line);border-radius:13px;padding:23px;margin-bottom:23px}.cardhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.textbtn{font-size:11px;color:#6255b0}.shift-card{background:var(--green);color:white;position:relative;overflow:hidden;border:0}.shift-card:after{content:'';position:absolute;right:-50px;top:-110px;width:300px;height:300px;border:1px solid #ffffff15;border-radius:50%;pointer-events:none;box-shadow:0 0 0 32px #ffffff05,0 0 0 64px #ffffff05}.shift-card .sub{color:#c8c8ef}.shift-card .cardhead{position:relative;z-index:1}.pill{display:inline-block;font-size:10px;border-radius:5px;padding:5px 9px;background:#e6f5fa;color:#246e81}.shift-card .pill{background:#ffffff18;color:var(--lime)}.shift-time{font-size:35px;letter-spacing:1px;margin:25px 0 12px;font-weight:500}.shift-time span{opacity:.4;font-size:25px;padding:0 12px}.shift-meta{display:flex;gap:22px;color:#d0d4f1;font-size:11px;margin-bottom:26px;flex-wrap:wrap}.shift-bottom{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #ffffff20;padding-top:19px;position:relative;z-index:1}.shift-bottom .btn{background:var(--lime);color:#172947;min-width:133px}.shift-bottom small{display:block;color:#c2c9ee;font-size:10px;margin-top:5px}.week{display:grid;grid-template-columns:repeat(7,1fr);gap:7px}.day{background:#f5f5fd;border-radius:9px;text-align:center;padding:12px 2px;font-size:10px;cursor:pointer;border:1px solid transparent}.day strong{display:block;font-size:16px;margin:9px 0}.day.active{background:var(--green);color:white}.day .tiny{font-size:8px;margin-top:10px;color:#7c7d9d}.day.active .tiny{color:var(--lime)}.weekdetail{margin-top:17px;padding:13px;background:#f5f5fd;border-radius:8px;font-size:11px;display:flex;justify-content:space-between;gap:8px}.notice{display:flex;gap:13px;padding:15px 0;border-bottom:1px solid #ededf7;cursor:pointer}.notice:last-child{border:0;padding-bottom:0}.notice-icon{border-radius:10px;background:#f1ebff;color:#8c58bb;width:39px;height:39px;display:grid;place-items:center;flex-shrink:0}.notice h3{font-size:12px;font-weight:500;margin:2px 0 6px}.notice p{font-size:10px;color:var(--muted);margin:0;line-height:1.6}.notice small{font-size:9px;color:#7e8299;white-space:nowrap;margin-left:auto}.tinybadge{font-size:9px;color:#926521;background:#fff3db;padding:3px 6px;border-radius:4px;margin-left:7px}.file{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--line);cursor:pointer}.file:last-child{border:0;padding-bottom:0}.fileicon{width:35px;height:42px;border-radius:6px;background:#fceaf5;display:grid;place-items:center;color:#b34d94;font-size:9px;flex-shrink:0}.file h3{font-size:11px;margin:0 0 6px;font-weight:500}.file small{font-size:9px;color:#7f8099}.file .pill{margin-left:auto;font-size:9px;white-space:nowrap}.people{display:flex;align-items:center;gap:12px;padding:12px 0}.people .sub{font-size:10px}.people strong{font-size:12px;font-weight:500;display:block;margin-bottom:3px}.onlabel{margin-left:auto;color:#248697;font-size:10px}.mobile-nav{display:none}.banner{display:flex;align-items:center;justify-content:space-between;background:#eeebff;border-radius:9px;padding:13px 18px;color:#707095;font-size:10px;margin-top:2px}.banner strong{color:#4b467d}.table{width:100%;border-collapse:collapse;text-align:left}.table th{font-size:11px;color:#767891;font-weight:400;background:#f4f4fc;padding:13px}.table td{font-size:12px;padding:15px 13px;border-bottom:1px solid var(--line)}.filters{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:20px}.search{border:1px solid var(--line);border-radius:8px;padding:11px 13px;background:white;min-width:240px;outline-color:#8c7ee1}.person-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.person-card{text-align:center;padding:26px;background:white;border:1px solid var(--line);border-radius:12px}.person-card .avatar{width:57px;height:57px;font-size:19px;margin-bottom:15px}.person-card h3{margin-bottom:6px}.person-card .btn{margin-top:18px;padding:9px 15px}.chatlayout{display:grid;grid-template-columns:285px 1fr;background:white;border:1px solid var(--line);border-radius:13px;overflow:hidden;height:640px;max-height:calc(100vh - 235px)}.chatlist{border-right:1px solid var(--line);overflow:auto}.chatrow{display:flex;align-items:center;gap:11px;padding:19px 16px;width:100%;text-align:left;border-bottom:1px solid #ededf7}.chatrow.selected{background:#eeebff}.chatrow strong{font-size:12px;display:block;margin-bottom:5px}.chatrow small{font-size:10px;color:#767c95}.chatpane{display:flex;flex-direction:column;min-width:0}.chathead{padding:16px 22px;border-bottom:1px solid var(--line);display:flex;gap:12px;align-items:center}.messages{padding:25px;flex:1;overflow:auto;background:#f0f2fc;background-image:radial-gradient(#a7a6d940 .7px,transparent .7px);background-size:16px 16px}.chatdate{text-align:center;color:#777d9d;font-size:10px;margin:0 0 22px}.bubble{background:white;padding:12px 15px;border-radius:0 12px 12px 12px;max-width:78%;width:fit-content;margin-bottom:16px;font-size:12px;line-height:1.8;box-shadow:0 1px 2px #29215c08;overflow-wrap:anywhere}.bubble.mine{background:#e7e2ff;margin-left:auto;border-radius:12px 0 12px 12px}.bubble small{font-size:9px;color:#737a94;display:block;text-align:right}.bubble img{max-width:230px;width:100%;border-radius:7px;display:block}.compose{display:flex;gap:10px;padding:15px;align-items:center;border-top:1px solid var(--line)}.compose input{flex:1;min-width:0;border:0;outline:0;background:#f3f3fc;padding:12px;border-radius:8px}.empty{padding:40px;text-align:center;color:var(--muted)}.modalback{position:fixed;inset:0;background:#17133377;z-index:100;display:grid;place-items:center;padding:20px;backdrop-filter:blur(3px)}.modal{background:white;padding:28px;border-radius:15px;width:560px;max-width:100%;max-height:90vh;overflow:auto;box-shadow:0 25px 90px #0002}.modal h2{font-size:20px;margin-bottom:20px}.modal p{font-size:12px;line-height:1.9;color:#6b6e88}.modal label{display:block;font-size:11px;margin:15px 0 7px}.modal input:not([type=checkbox]),.modal textarea,.modal select{width:100%;border:1px solid var(--line);padding:11px;border-radius:7px;outline-color:#8c7ee1}.modal textarea{min-height:110px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:24px}.docbody{padding:22px;background:#f5f5fd;border-radius:8px;max-height:290px;overflow:auto}.checklabel{display:flex!important;gap:9px;align-items:center;line-height:1.6}.listnotice{padding:22px;border:1px solid var(--line);border-radius:10px;margin-bottom:14px}.listnotice p{color:#74758c;font-size:12px;line-height:1.8;white-space:pre-wrap}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:#302855;color:white;padding:13px 23px;border-radius:10px;font-size:12px;z-index:200;display:none;box-shadow:0 6px 30px #0002}footer{font-size:9px;color:#7e819c;text-align:center;padding:15px}.wide{grid-column:1/-1}.record{background:#f4f4fc;padding:15px;border-radius:9px;margin:12px 0;font-size:12px}.record small{display:block;margin-top:6px;color:#777c96}@media(min-width:1500px){.content{padding-top:45px}.card{padding:27px}.stats{gap:23px}.stat{padding:23px}}@media(max-width:1100px){.sidebar{width:190px;padding:28px 14px}.main{margin-left:190px}.topbar{padding:0 25px}.content{padding:28px 25px}.columns{grid-template-columns:1.4fr 1fr;gap:16px}.card{padding:19px}.stat{padding:15px}.person-grid{grid-template-columns:repeat(2,1fr)}.chatlayout{grid-template-columns:230px 1fr}}@media(max-width:760px){.sidebar{display:none}.main{margin-left:0}.topbar{height:65px;padding:0 20px}.crumb{font-size:15px;font-weight:700;color:var(--green)}.crumb b{display:none}.toptools{gap:8px}.toptools>.avatar{display:none}.demo{font-size:9px;padding:4px 7px}.role{font-size:10px}.content{padding:24px 18px 95px}.pagehead{margin-bottom:22px;align-items:flex-start}h1{font-size:25px}.pagehead .btn{padding:10px;font-size:10px}.pagehead>.sub{display:none}.stats{grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:19px}.stat{padding:14px 16px}.stat-num{font-size:25px;margin:3px 0}.stat-top .icon{padding:6px;width:15px;height:15px}.stat-foot{font-size:9px}.columns{display:flex;flex-direction:column;gap:0}.card{padding:20px;margin-bottom:18px}.shift-time{font-size:32px}.shift-meta{gap:14px}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:50;background:#fffffff5;border-top:1px solid var(--line);padding:9px 6px calc(9px + env(safe-area-inset-bottom));backdrop-filter:blur(10px);justify-content:space-around}.mobile-nav button{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:9px;color:#7b7f9d;padding:3px 8px}.mobile-nav button.active{color:var(--green)}.mobile-nav .icon{width:21px;height:21px}.banner{font-size:9px;padding:12px;gap:7px}.person-grid{grid-template-columns:repeat(2,1fr);gap:10px}.person-card{padding:21px 10px}.tablewrap{overflow:auto}.table{min-width:560px}.chatlayout{grid-template-columns:1fr;height:calc(100dvh - 240px);max-height:none;min-height:380px}.chatlist{display:flex;overflow:auto;border-bottom:1px solid var(--line);border-right:0;max-height:79px}.chatrow{min-width:170px;padding:12px;border:0}.chatrow .avatar{width:32px;height:32px;font-size:11px}.chatpane{min-height:0}.chatlayout{grid-template-rows:79px 1fr}.chathead{padding:10px 15px}.messages{padding:17px}.compose{gap:5px;padding:10px}.compose .btn{padding:10px}.bubble{max-width:90%}.search{min-width:0;width:100%}.filters .btn{flex:1}.week{gap:5px}.day{font-size:9px}.day strong{font-size:15px}.weekdetail{font-size:10px}.modal{padding:22px}#toast{bottom:90px;width:max-content;max-width:90%;text-align:center}.hide-mobile{display:none}}

@media(max-width:760px){.crumb{font-size:12px;white-space:nowrap}.demo,.role{white-space:nowrap}.topbar{padding:0 14px;gap:4px}.toptools{gap:4px}.pagehead h1{font-size:23px}.pagehead .btn{white-space:nowrap}.logo{flex-shrink:0}}

.brand-avatar{width:38px;height:38px;object-fit:cover;border-radius:10px;flex-shrink:0}.mobile-brand-avatar{display:none}@media(max-width:760px){.mobile-brand-avatar{display:inline-block;width:28px;height:28px;object-fit:cover;border-radius:8px;vertical-align:middle;margin-right:6px}.crumb{font-size:11px}}

/* PartyDay Neon: neutral cool surfaces with violet, cyan and pink brand accents. */
:root{--accent-pink:#cf2995;--accent-cyan:#7ce4f1;--focus:#6553cf}
body{background:radial-gradient(ellipse at 90% 0%,#e9e5ff80,transparent 45%),var(--bg)}
.sidebar{background:#fcfcff}.logo{color:#292643}.brand-sub{letter-spacing:2.4px}.brand-avatar,.mobile-brand-avatar{box-shadow:0 0 0 1px #e6d9fa,0 3px 12px #ac36bc20}
.navbtn.active{background:linear-gradient(105deg,#ebe7ff,#e8f4ff);box-shadow:inset 3px 0 #7960de}.badge{background:#f7def0;color:#a92c86}.navbtn:hover{background:#f0effa}
.topbar{background:#fcfcfff0}.role{color:#5f4baf;background:#f4f0ff}.demo{background:#f5f4fc}
.card,.stat,.person-card{box-shadow:0 4px 22px #342b7004}.card{border-radius:15px}.stat:nth-child(2) .icon{background:#fbe9f5;color:#bb389b}.stat:nth-child(3) .icon{background:#e4f7fa;color:#287e96}.stat:nth-child(4) .icon{background:#ebedff;color:#606ac1}.stat-num{color:#302e51}
.shift-card{background:radial-gradient(ellipse at 100% 0%,#783da57a,transparent 57%),linear-gradient(125deg,#202040 0%,#332d61 62%,#343373 100%);box-shadow:0 10px 25px #37235c16;isolation:isolate}
.shift-card:after{border-color:#7ce4f13d;box-shadow:0 0 0 32px #a46dfa08,0 0 0 64px #ea3fbc08}.shift-card:before{content:'';position:absolute;top:0;left:22px;right:22px;height:2px;background:linear-gradient(90deg,#7ce4f1,#a787f4 60%,#f151ba);opacity:.85}.shift-card .pill{background:#ffffff12;color:#aeeef4;border:1px solid #9ae1ff30}.shift-time{font-weight:600}.shift-time span{opacity:.65}
.shift-bottom .btn{background:linear-gradient(115deg,#99eff5,#78cfee);color:#172947;box-shadow:0 3px 14px #78dff526}.shift-bottom .btn:hover{box-shadow:0 3px 20px #78dff53a}.btn{background:linear-gradient(115deg,#6453cc,#5257bd);border-radius:9px}.btn.light{background:#eeebff;color:#5747b0}.btn.outline{background:white;color:#4f4c6d}.btn:focus-visible,button:focus-visible{outline:3px solid #8c7ee1;outline-offset:3px}
.day.active{background:linear-gradient(150deg,#6550bf,#475fba);box-shadow:0 4px 11px #5347a51c}.day.active .tiny{color:#a2f2fc}.day:not(.active):hover{border-color:#b7aeeb}.notice-icon{background:linear-gradient(135deg,#efe9ff,#fbeaf6);color:#9d50ab}
.banner{background:linear-gradient(110deg,#eae7ff,#e5f3fb);border:1px solid #e0dff6}.banner>span{color:#b44fa8}.teamcard{background:linear-gradient(120deg,#f0ecff,#eaf4fc)}
.messages{background-color:#f0f2fc;background-image:radial-gradient(#bcb4e940 .8px,transparent .8px)}.bubble.mine{background:linear-gradient(120deg,#e9e2ff,#e0eafc);border:1px solid #ddd5f3}.chatrow.selected{background:linear-gradient(100deg,#ede8ff,#e9f4fc);box-shadow:inset 3px 0 #8c68d6}.compose>.btn{background:#5d50bf}.avatar{color:#56516c}.avatar.online:after{background:#22aebb}.dot{background:#22aebb}
input,textarea,select{accent-color:#6553cf}input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #8c7ee1;outline-offset:2px}#toast{background:#302855}.modalback{background:#17133377}.modal{box-shadow:0 25px 90px #24174c30}
@media(max-width:760px){.mobile-nav{background:#fcfcfff5;box-shadow:0 -4px 24px #342b7005}.mobile-nav button.active{color:#5b46bc;position:relative}.mobile-nav button.active:before{content:'';position:absolute;top:-10px;width:20px;height:3px;border-radius:0 0 4px 4px;background:linear-gradient(90deg,#46c6da,#b34cbd)}.mobile-nav button.active .icon{filter:drop-shadow(0 1px 4px #8a6add30)}.crumb{color:#39315e}}
@media(max-width:380px){.topbar{padding:0 10px}.crumb{font-size:10px}.mobile-brand-avatar{width:25px;height:25px;margin-right:4px}.toptools{gap:2px}.toptools>.demo{font-size:8px;padding:4px}.toptools>.role{font-size:9px;padding:7px 6px}.toptools>button:not(.role){padding:4px}.toptools .icon{width:18px;height:18px}}
.language-select{border:1px solid #dcd8ef;border-radius:8px;background:#f6f3ff;color:#554596;padding:7px 8px;font-size:11px;cursor:pointer;max-width:88px}.roster-note{padding:17px 20px;background:linear-gradient(110deg,#eeebff,#e9f3fb);border:1px solid #dedcf0;border-radius:12px;margin-bottom:19px;font-size:12px;line-height:1.8;color:#625d80}.roster-note p{font-size:11px;margin:6px 0;color:#79748d}.roster-note a{font-size:11px}.toptools{flex-shrink:0}html[lang=en] .navbtn{font-size:12px}html[lang=en] .mobile-nav button{font-size:9px}html[lang=en] .cardhead{gap:7px}html[lang=en] .shift-bottom{gap:12px}html[lang=en] .shift-bottom .btn{min-width:112px}html[lang=en] .shift-bottom small{max-width:260px}html[lang=en] .pagehead h1{letter-spacing:-.5px}@media(max-width:760px){.topbar{height:auto;min-height:70px;flex-wrap:wrap;padding:12px 14px;row-gap:8px}.toptools{margin-left:auto;gap:5px}.language-select{font-size:10px;padding:6px;max-width:80px}.toptools .demo{display:none}.crumb{font-size:11px}html[lang=en] .crumb{font-size:10px}html[lang=en] .pagehead{flex-wrap:wrap}html[lang=en] .stat-top{font-size:10px}html[lang=en] .stat-foot{line-height:1.6}.roster-note{padding:15px}html[lang=en] .person-card .btn{padding:9px 11px}.shift-bottom small{max-width:155px}}

html[lang=es] .navbtn{font-size:12px}html[lang=es] .mobile-nav button{font-size:9px}html[lang=es] .cardhead{gap:7px}html[lang=es] .shift-bottom{gap:12px}html[lang=es] .shift-bottom .btn{min-width:120px}html[lang=es] .shift-bottom small{max-width:260px}html[lang=es] .pagehead h1{letter-spacing:-.5px}.language-select{max-width:94px}@media(max-width:760px){html[lang=es] .pagehead{flex-wrap:wrap}html[lang=es] .stat-top{font-size:10px}html[lang=es] .stat-foot{line-height:1.6}html[lang=es] .person-card .btn{padding:9px 11px}html[lang=es] .shift-bottom{flex-wrap:wrap}html[lang=es] .shift-bottom small{max-width:180px}}
/* Mobile app shell: navigation occupies its own row outside the scrolling content. */
@media(max-width:760px){
 html,body{width:100%;height:100%;overflow:hidden}
 #app{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden;isolation:isolate}
 .main{flex:1 1 auto;min-height:0;width:100%;margin-left:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;scroll-padding-bottom:20px}
 .content{padding-bottom:28px}
 .mobile-nav{position:relative;inset:auto;flex:0 0 auto;width:100%;min-height:65px;align-items:center;margin:0;padding:9px 6px calc(9px + env(safe-area-inset-bottom,0px));background:#fcfcff;box-shadow:0 -4px 24px #342b7008;z-index:50}
 .mobile-nav button{flex:1;min-width:0;min-height:43px;justify-content:center;padding:3px 1px;line-height:1.3}
 .mobile-nav button.active:before{top:-10px}
 .topbar{padding-top:max(12px,env(safe-area-inset-top,0px))}
 .chatlayout{min-height:340px;height:calc(100dvh - 350px)}
}
/* Separate conversation list and direct-message screen. */
.conversation-list{max-width:850px;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:17px;overflow:hidden}.chat-search{margin:22px 22px 15px;display:flex;align-items:center;gap:10px;padding:12px 14px;background:#f3f2fa;border-radius:11px;color:#85809d}.chat-search input{width:100%;border:0;background:none;outline:none;font-size:12px;color:var(--ink)}.chat-tabs{display:flex;gap:8px;padding:0 22px 18px;overflow:auto;border-bottom:1px solid var(--line)}.chat-tabs button{white-space:nowrap;border:1px solid #e3dfef;border-radius:22px;padding:7px 14px;font-size:12px;color:#78728d}.chat-tabs button.selected{background:#ede7ff;color:#6043af;border-color:#c9b8ef;font-weight:600}.chat-tabs button span{font-size:10px;opacity:.75}.conversation-row{display:flex;width:100%;align-items:center;gap:15px;padding:20px 23px;text-align:left;border-bottom:1px solid #eeedf5}.conversation-row:hover{background:#faf9ff}.conversation-avatar{flex-shrink:0}.conversation-avatar .avatar,.conversation-avatar>img{width:51px;height:51px;border-radius:50%;object-fit:cover;font-size:16px}.conversation-summary{display:flex;flex-direction:column;gap:7px;min-width:0;flex:1}.conversation-name{font-size:14px;font-weight:600;color:#302b46}.conversation-preview{font-size:12px;color:#8b849b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;max-width:100%}.conversation-preview .icon{width:14px;height:14px}.conversation-meta{display:flex;align-items:flex-end;flex-direction:column;gap:7px;min-width:35px;color:#9a93aa;font-size:10px}.favorite-mark{color:#b857af}.chat-local-note{padding:18px 22px;font-size:10px;line-height:1.7;color:#938b9e;background:#fcfbff}.direct-chat{max-width:900px;margin:auto;display:flex;flex-direction:column;height:calc(100dvh - 175px);min-height:420px;border:1px solid var(--line);border-radius:17px;overflow:hidden;background:white}.direct-chat-head{display:flex;align-items:center;gap:13px;padding:17px 20px;border-bottom:1px solid var(--line);background:#fff}.chat-back{display:grid;place-items:center;min-width:32px;min-height:40px;color:#6851b5}.chat-back .icon{transform:rotate(180deg)}.direct-group-avatar{width:40px;height:40px;object-fit:cover;border-radius:50%}.direct-title{flex:1;min-width:0}.direct-title h2{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:4px}.direct-title .sub{font-size:10px}.favorite-btn{font-size:29px;color:#9690a9}.favorite-btn.selected{color:#bc4aa1}.direct-local{text-align:center;font-size:10px;line-height:1.7;padding:8px 14px;color:#82788e;background:#f7f3fc;border-bottom:1px solid #eae4f3}.direct-chat .messages{flex:1;min-height:0}.direct-chat .compose{flex-shrink:0;background:#fff}.conversation-empty{text-align:center;color:#91869f;font-size:12px;padding:65px 20px}.conversation-empty>span{font-size:34px;color:#b6a5de}.contact-picker{max-height:50vh;overflow:auto}.contact-picker button{display:flex;align-items:center;gap:13px;border-bottom:1px solid var(--line);padding:14px 4px;width:100%;text-align:left}.contact-picker button .icon{margin-left:auto;color:#9789b4}
@media(max-width:760px){.conversation-list{margin:0;border-radius:13px}.conversation-row{padding:18px 15px;gap:12px}.conversation-name{font-size:14px}.conversation-preview{font-size:11px}.chat-search{margin:17px 14px 14px}.chat-tabs{padding:0 14px 15px;gap:6px}.chat-tabs button{font-size:11px;padding:7px 12px}.new-chat{font-size:11px}.conversation-active .mobile-nav,.conversation-active .topbar{display:none}.conversation-active .main{overflow:hidden}.conversation-active .content{height:100%;padding:0;max-width:none}.direct-chat{width:100%;max-width:none;height:100%;min-height:0;border:0;border-radius:0}.direct-chat-head{padding:calc(12px + env(safe-area-inset-top,0px)) 14px 12px;gap:9px}.direct-title .sub{font-size:9px}.direct-local{font-size:9px}.direct-chat .compose{padding:11px 10px calc(11px + env(safe-area-inset-bottom,0px));gap:8px}.direct-chat .messages{padding:20px 15px}.direct-chat .compose input{font-size:13px}.direct-chat .compose .btn{padding:11px}.direct-chat .compose>button{min-width:30px}.chat-local-note{padding:15px;font-size:9px}}
/* iOS: prevent focus auto-zoom and keep the conversation inside the visual viewport. */
@media(max-width:760px){
 input:not([type=checkbox]):not([type=radio]):not([type=file]),textarea,select,
 .direct-chat .compose input,.chat-search input,.compose input,.language-select,.modal input:not([type=checkbox]),.modal textarea,.modal select{font-size:16px}
 html,body{position:fixed;inset:0;margin:0;width:100%;overflow:hidden}
 #app{position:absolute;left:0;right:0;top:var(--visible-app-top,0px);height:var(--visible-app-height,100dvh);width:100%;max-width:100%;overflow:hidden}
 .conversation-active .main{height:100%;min-height:0;overscroll-behavior:none}
 .conversation-active .content{min-height:0;width:100%;overflow:hidden}
 .direct-chat{height:100%;min-height:0;max-height:100%;width:100%;max-width:100%;overflow:hidden}
 .direct-chat-head,.direct-local{flex:0 0 auto}
 .direct-chat .messages{flex:1 1 0%;min-height:0;overscroll-behavior:contain;overflow-x:hidden;overflow-y:auto}
 .direct-chat .compose{flex:0 0 auto;min-width:0;max-width:100%;width:100%;display:grid;grid-template-columns:32px 32px minmax(0,1fr) 43px;align-items:center;gap:7px;padding-left:10px;padding-right:10px}
 .direct-chat .compose input{width:100%;min-width:0;margin:0;padding:11px 10px;line-height:1.4;scroll-margin:0}
 .direct-chat .compose>button{width:100%;min-width:0;min-height:43px;padding:7px}
 .direct-chat .compose .btn{width:43px;padding:10px}
 .direct-chat .compose input:focus-visible{outline:2px solid #8c7ee1;outline-offset:0}
 .keyboard-open .direct-chat .compose{padding-bottom:10px}
 .language-select{max-width:112px}
}
.access-page{min-height:100dvh;width:100%;padding:28px 44px 12px;background:radial-gradient(ellipse at 10% 30%,#e9e4ff,transparent 55%),#f7f7fc}.access-top{max-width:1100px;margin:auto;display:flex;justify-content:space-between;align-items:center}.access-wordmark{display:flex;align-items:center;gap:10px;font-weight:800;font-size:26px;letter-spacing:-1px}.access-wordmark img{width:43px;height:43px;border-radius:12px}.access-wordmark>span{color:#ce49ad}.access-layout{max-width:1020px;margin:65px auto 35px;display:grid;grid-template-columns:1fr 1.1fr;gap:70px;align-items:center}.access-brand{position:relative;text-align:center}.access-brand>img{width:220px;max-width:70%;border-radius:48px;box-shadow:0 12px 50px #5c32a83d;margin-bottom:30px}.access-brand h1{font-size:30px}.access-brand p{color:#7e7693;font-size:14px}.access-panel{border:1px solid #e3deef;border-radius:20px;background:#fff;overflow:hidden;box-shadow:0 18px 60px #38216609}.access-tabs{display:flex;border-bottom:1px solid #e9e5f2;background:#faf8fe}.access-tabs button{flex:1;font-size:12px;padding:19px 9px;color:#8a7e9b;border-bottom:3px solid transparent}.access-tabs button.selected{color:#6550b7;border-bottom-color:#8a66ce;background:#f2edfc;font-weight:600}.access-panel-body{padding:30px}.access-panel h2{font-size:22px;margin:19px 0 12px}.access-panel p{font-size:12px;line-height:1.9;color:#7f7591}.access-panel ol{padding-left:20px;color:#766786;font-size:12px;line-height:2.2;margin:18px 0 25px}.account-link{width:100%;text-decoration:none;min-height:46px}.access-notice{margin:20px 0;padding:14px;background:#f6f2fc;color:#85728e;font-size:10px;line-height:1.9;border-radius:9px}.demo-access{width:100%}.access-panel small{display:block;font-size:9px;text-align:center;color:#a193ac;line-height:1.8;margin-top:10px}.account-menu{font-size:10px;color:#6c59a0;border:1px solid #e1dbef;border-radius:7px;padding:7px;white-space:nowrap}#app.access-active{display:block;overflow:auto}@media(max-width:760px){.access-page{padding:calc(16px + env(safe-area-inset-top,0px)) 18px calc(14px + env(safe-area-inset-bottom,0px));min-height:100%}.access-wordmark{font-size:22px}.access-wordmark img{width:34px;height:34px}.access-layout{display:flex;flex-direction:column;gap:24px;margin:28px auto 20px;max-width:470px}.access-brand>img{width:90px;border-radius:23px;margin-bottom:15px}.access-brand h1{font-size:23px}.access-brand p{font-size:12px;margin:6px 0 0}.access-brand .eyebrow{font-size:8px;margin-bottom:8px}.access-panel{width:100%;border-radius:16px}.access-panel-body{padding:23px}.access-panel h2{font-size:20px}.access-tabs button{padding:15px 6px;font-size:11px}.access-page footer{font-size:8px}.access-active{overscroll-behavior:contain}.account-menu{font-size:9px;padding:6px}}
.account-channel{display:flex;gap:7px;margin:20px 0}.account-channel button{flex:1;padding:9px 6px;font-size:11px;border:1px solid #e5dff1;border-radius:8px;color:#82748f}.account-channel button.selected{background:#f0eaff;border-color:#c6b8e8;color:#6751ad}.access-panel form label{display:block;font-size:11px;font-weight:500;margin:16px 0 8px;color:#635574}.access-panel fieldset{border:0;margin:0;padding:0;min-width:0}.access-panel input,.access-panel .phone-field select{width:100%;background:#fbfaff;border:1px solid #ded7ec;border-radius:9px;padding:12px;font:inherit;font-size:14px;min-width:0;color:#352b47}.access-panel input:focus{outline:2px solid #9c83da;outline-offset:1px}.password-field{display:flex;position:relative;align-items:center}.password-field input{padding-right:44px}.password-field button{position:absolute;right:5px;min-height:40px;min-width:36px;color:#94839f}.phone-field{display:grid;grid-template-columns:104px minmax(0,1fr);gap:8px}.access-panel .phone-field select{padding:10px 7px;font-size:12px}.account-submit{width:100%;margin-top:24px;min-height:46px}.account-links{display:flex;justify-content:space-between;gap:12px;margin-top:16px;font-size:10px;flex-wrap:wrap;color:#8061b0}.account-back{font-size:11px;margin-top:17px;color:#8061b0}.account-error,.account-success{border-radius:8px;padding:10px 12px;margin:15px 0 0;font-size:11px!important;line-height:1.7!important}.account-error{color:#a24665!important;background:#fff0f4}.account-success{color:#357a85!important;background:#edf9fa}.access-panel-body>small{line-height:1.9}.access-layout{margin-top:35px}.access-brand{align-self:center}@media(max-width:760px){.access-panel input,.access-panel .phone-field select{font-size:16px}.access-brand>img{width:76px}.access-layout{margin-top:24px;gap:20px}.access-panel-body{padding:20px}.access-panel h2{font-size:19px}.account-channel button{font-size:11px}.account-links{font-size:11px}.access-notice{margin:17px 0}}

/* Authenticated, read-only schedule from the booking system. */
.schedule-controls{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:0 0 22px}.schedule-controls strong{flex:1;text-align:center}.schedule-record{display:flex;justify-content:space-between;gap:18px}.schedule-record>div:last-child{text-align:right}.schedule-shift+.schedule-shift{margin-top:16px}.schedule-account-id{display:block;overflow-wrap:anywhere;user-select:all;padding:15px;background:#f5f3fd;border-radius:12px;margin:14px 0}.own-schedule .cardhead h2{font-size:16px}.own-schedule .pagehead{margin-top:20px}.own-schedule .access-notice{margin-bottom:20px}

/* Visible before sign-in, with device-specific installation guidance. */
.app-install{margin:25px 0 0;max-width:340px}.app-install .app-install-button{width:100%;min-height:48px;border-color:#aa96df;color:#624bb4;background:#ffffffb8;justify-content:center;font-size:14px}.app-install .app-install-button:disabled{opacity:.65;cursor:default}.app-install p{font-size:12px!important;line-height:1.6!important;margin:10px 0 0!important;color:#7b7291}.install-dialog{position:fixed;inset:0;margin:auto;width:min(440px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #ded7ec;border-radius:22px;padding:26px;color:#302b46;background:#fff;box-shadow:0 24px 80px #24134833}.install-dialog::backdrop{background:#20152c80}.install-dialog>img{width:64px;height:64px;border-radius:18px}.install-dialog h2{font-size:23px;margin:16px 0 10px}.install-dialog p,.install-dialog li{font-size:14px;line-height:1.7}.install-dialog ol{padding-left:23px;margin:18px 0}.install-dialog li+li{margin-top:10px}.install-dialog label{display:block;font-size:12px;margin:20px 0 8px}.install-dialog input{width:100%;font:inherit;font-size:16px;padding:12px;border:1px solid #ded7ec;border-radius:10px;background:#f8f6fd;box-sizing:border-box}.install-dialog form{margin-top:20px;display:flex;justify-content:flex-end}.app-install-button:focus-visible,.install-dialog button:focus-visible{outline:3px solid #9278d3;outline-offset:3px}@media(max-width:760px){.app-install{margin:20px auto 0;max-width:330px}.install-dialog{padding:22px}}

/* Keep install and copy-link actions at the end of the login page. */
.access-page>.app-install{margin:28px auto 0;text-align:center}.app-install-copy{width:100%;min-height:48px;margin-top:10px;justify-content:center;font-size:14px}.app-copy-status:empty{display:none}.app-install .app-copy-status{color:#624bb4;font-weight:500}

/* Keep shared dialogs inside narrow screens, including native file inputs. */
.modalback{display:flex;align-items:center;justify-content:center;overflow:hidden}
.modal{min-width:0;max-width:100%;overflow-x:hidden;overflow-y:auto;overflow-wrap:anywhere;overscroll-behavior:contain}
.modal>*{min-width:0;max-width:100%}
.modal input:not([type=checkbox]),.modal textarea,.modal select{min-width:0;max-width:100%}
.modal input[type=file]{font-size:14px;padding:10px;overflow:hidden}
.modal input[type=file]::file-selector-button{max-width:100%;margin-right:8px;white-space:normal}
.modal-actions{flex-wrap:wrap}
.modal-actions>.btn{min-width:0;white-space:normal;overflow-wrap:anywhere}
@media(max-width:600px){
 .modalback{top:var(--visible-app-top,0px);bottom:auto;height:var(--visible-app-height,100dvh);padding:12px;padding-top:max(12px,env(safe-area-inset-top,0px));padding-bottom:max(12px,env(safe-area-inset-bottom,0px))}
 .modal{width:100%;max-height:100%;padding:20px;border-radius:16px;-webkit-overflow-scrolling:touch}
 .modal h2{font-size:20px;line-height:1.4;margin-bottom:16px}
 .modal p{font-size:14px;line-height:1.75}
 .modal-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:20px}
 .modal-actions>.btn{width:100%;min-height:44px;padding:10px;font-size:14px;line-height:1.5}
 .modal-actions>:last-child:nth-child(odd){grid-column:1/-1}
}

/* Independent account pages, including narrow mobile screens. */
.employee-access-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
.access-help{color:var(--muted,#77758e);line-height:1.75;font-size:14px}
.access-submit{width:100%;justify-content:center;margin-top:26px;padding:16px;min-height:48px}
.password-input{position:relative}.password-input input{padding-right:50px}.password-input .password-toggle{position:absolute;right:12px;top:50%;transform:translateY(-50%);padding:8px}
.employee-accounts input{width:100%;min-width:0;margin:8px 0 20px;padding:13px;border:1px solid #ded9ef;border-radius:12px;background:#fff;color:#28243f;font:inherit;box-sizing:border-box}
.employee-accounts label{display:block;font-weight:600}
.employee-account-row{display:flex;justify-content:space-between;gap:20px;padding:22px 0;border-top:1px solid #eeebf5;overflow-wrap:anywhere}
.employee-account-row>div{min-width:0}.employee-account-row .pill{margin-top:10px}
.employee-account-row details{margin-top:12px;font-size:12px}.employee-account-row code{display:block;white-space:normal;overflow-wrap:anywhere;margin-top:10px}
.employee-account-actions{display:flex;flex-direction:column;gap:10px;flex-shrink:0}
#employeeInviteLink{box-sizing:border-box;max-width:100%;overflow-wrap:anywhere;font-size:14px}
@media(max-width:600px){.employee-account-row{flex-direction:column;gap:14px}.employee-account-actions{flex-direction:row;flex-wrap:wrap}.employee-account-actions .btn{flex:1;white-space:normal}.toptools{flex-wrap:wrap}.toptools .account-menu{font-size:11px}.employee-access-tabs button{font-size:13px;padding:17px 8px}}

.login-methods{display:flex;gap:8px;margin:22px 0}.login-methods .btn{flex:1;min-width:0;white-space:normal}.login-secondary{display:flex;justify-content:space-between;gap:16px;margin:18px 0}.login-secondary button{color:#8260b4;font-size:12px;text-align:start}.access-submit:disabled{opacity:.55;cursor:not-allowed}

.access-panel-body .remember-login{display:flex;align-items:center;gap:10px;margin:20px 0 0;min-height:44px;cursor:pointer;font-size:14px;font-weight:600;color:#514276}
.access-panel-body .remember-login input{width:20px;height:20px;min-width:20px;margin:0;padding:0;accent-color:#6350c8;cursor:pointer}
.access-panel-body .remember-hint{margin:2px 0 0;font-size:12px;line-height:1.6;color:#827590}
