:root{--blue:#0757f8;--blue2:#073ebc;--text:#152033;--muted:#718096;--line:#e8edf5;--bg:#f3f6fb;--green:#22b35b}*{box-sizing:border-box}body{margin:0;background:var(--bg);font-family:"Bai Jamjuree",Arial,sans-serif;color:var(--text)}button,input{font:inherit}.s8-app{max-width:520px;margin:auto;min-height:100vh;background:#fff;box-shadow:0 0 40px rgba(15,46,100,.12);padding-bottom:78px}.s8-topbar{height:64px;background:linear-gradient(135deg,var(--blue2),var(--blue));color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 18px;position:sticky;top:0;z-index:20}.s8-brand{display:flex;align-items:center;gap:8px}.s8-brand span{font-size:28px;font-weight:900;font-style:italic}.s8-brand strong{font-size:19px}.s8-utc{font-size:11px;background:rgba(255,255,255,.14);padding:6px 9px;border-radius:20px}.s8-main{min-height:calc(100vh - 140px)}.s8-screen{display:none;padding:18px}.s8-screen.active{display:block}.s8-user-card{display:flex;align-items:center;gap:13px;margin:3px 0 20px}.s8-avatar{width:52px;height:52px;border-radius:50%;background:linear-gradient(135deg,#dce9ff,#8fc1ff);display:grid;place-items:center;font-weight:900;color:#084bc5}.s8-user-card div:last-child{display:flex;flex-direction:column;gap:4px}.s8-user-card small{color:var(--green);font-weight:700}.online-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--green)}.s8-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px;box-shadow:0 8px 25px rgba(28,60,110,.07)}.card-label{font-size:12px;font-weight:800;color:#1d4ba5;margin-bottom:14px}.task-card label{display:block;font-size:11px;color:var(--muted);margin:11px 0}.task-card input{width:100%;border:0;border-bottom:1px solid var(--line);padding:8px 0 10px;font-weight:700;color:var(--text);outline:none}.primary-capture{width:100%;border:0;border-radius:17px;margin:18px 0 14px;padding:17px;background:linear-gradient(135deg,#24b4ff,#164cf3);color:#fff;display:flex;align-items:center;gap:14px;text-align:left;box-shadow:0 12px 28px rgba(20,88,240,.28)}.capture-icon{font-size:31px}.primary-capture span:last-child{display:flex;flex-direction:column}.primary-capture strong{font-size:18px}.primary-capture small{font-size:12px;margin-top:3px}.s8-quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.quick-card{border:1px solid var(--line);border-radius:15px;background:#fff;padding:15px 10px;min-height:112px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:var(--text)}.quick-card>span{font-size:25px;color:var(--green)}.quick-card strong{font-size:12px;color:#1a53ba}.quick-card small{font-size:10px;color:var(--muted);max-width:150px;overflow:hidden;text-overflow:ellipsis}.s8-note{margin-top:14px;padding:12px;background:#f0f6ff;border-radius:12px;font-size:11px;color:#57708f;line-height:1.5}.camera-screen{padding:0;background:#05070a;min-height:calc(100vh - 64px)}.screen-head{height:56px;margin:-18px -18px 16px;background:linear-gradient(135deg,var(--blue2),var(--blue));color:#fff;display:grid;grid-template-columns:44px 1fr 44px;align-items:center;text-align:center}.camera-screen .screen-head{margin:0}.icon-btn{border:0;background:transparent;color:#fff;font-size:26px}.camera-stage{height:calc(100vh - 220px);min-height:420px;position:relative;overflow:hidden;background:#000}.camera-stage video,.camera-stage canvas{width:100%;height:100%;object-fit:cover}.camera-stage canvas{display:none}.camera-loading{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;color:#fff;gap:12px}.spinner{width:38px;height:38px;border:4px solid rgba(255,255,255,.25);border-top-color:#fff;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.gps-badge{position:absolute;top:15px;left:50%;transform:translateX(-50%);background:rgba(28,180,86,.94);color:#fff;padding:8px 12px;border-radius:20px;font-size:11px;font-weight:800;white-space:nowrap}.camera-guide{position:absolute;bottom:15px;left:20px;right:20px;background:rgba(0,0,0,.55);color:#fff;text-align:center;padding:10px;border-radius:10px;font-size:12px}.camera-controls{height:100px;display:grid;place-items:center;background:#05070a}.shutter{width:70px;height:70px;border-radius:50%;border:5px solid #fff;background:#fff;box-shadow:inset 0 0 0 4px #111}.preview-wrap{margin:-18px -18px 15px;position:relative;background:#111}.preview-wrap img{display:block;width:100%;max-height:52vh;object-fit:contain}.preview-stamp{position:absolute;left:12px;bottom:12px;right:12px;background:rgba(0,12,35,.76);color:#fff;padding:10px;border-radius:9px;display:flex;flex-direction:column;font-size:10px;gap:3px}.info-card{display:grid;gap:12px}.info-card>div,.receipt>div{display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);padding-bottom:10px}.info-card>div:last-child,.receipt>div:last-child{border:0;padding:0}.info-card span,.receipt span{font-size:11px;color:var(--muted)}.info-card strong,.receipt strong{font-size:11px;text-align:right}.confirm-actions{display:grid;grid-template-columns:1fr 1.6fr;gap:10px;margin-top:15px}.btn-primary,.btn-outline{min-height:50px;border-radius:12px;font-weight:800}.btn-primary{border:0;background:linear-gradient(135deg,#1688ff,#164cf3);color:#fff}.btn-outline{background:#fff;border:1px solid #2466ef;color:#2466ef}.full{width:100%;margin-top:12px}.success-screen{text-align:center;padding-top:52px}.success-check{width:90px;height:90px;border-radius:50%;background:#e6f9ed;color:#19a84e;font-size:55px;display:grid;place-items:center;margin:0 auto 20px}.success-screen h2{color:#12a449;font-size:22px}.success-screen>p{color:var(--muted);font-size:13px}.receipt{text-align:left;margin-top:22px}.history-list{display:grid;gap:12px}.history-item{border:1px solid var(--line);border-radius:14px;padding:10px;display:flex;gap:12px;background:#fff}.history-item img{width:88px;height:88px;object-fit:cover;border-radius:10px}.history-item>div{display:flex;flex-direction:column;gap:4px}.history-item strong{font-size:13px}.history-item span{font-size:10px;color:var(--muted)}.status{font-style:normal;font-size:10px;font-weight:800;margin-top:3px}.status.pending{color:#f39c12}.status.approved{color:#1ca653}.status.rejected{color:#e74c3c}.empty-history{text-align:center;color:var(--muted);padding:50px 10px}.s8-bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(520px,100%);height:72px;background:#fff;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(3,1fr);z-index:30}.s8-bottom-nav button{border:0;background:#fff;color:#526070;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:20px;gap:2px}.s8-bottom-nav small{font-size:10px}.s8-bottom-nav .active{color:var(--blue)}.toast{position:fixed;z-index:99;left:50%;bottom:90px;transform:translate(-50%,20px);width:min(460px,calc(100% - 28px));background:#172033;color:#fff;padding:13px 15px;border-radius:12px;opacity:0;pointer-events:none;transition:.25s;font-size:12px}.toast.show{opacity:1;transform:translate(-50%,0)}.toast.error{background:#c0392b}@media(min-width:800px){body{padding:24px}.s8-app{border-radius:24px;overflow:hidden;min-height:calc(100vh - 48px)}.s8-bottom-nav{bottom:24px;border-radius:0 0 24px 24px}}
.s8-login-page{min-height:100vh;background:linear-gradient(145deg,#0639a7,#0878ff);display:grid;place-items:center;padding:20px}.s8-login-card{width:min(390px,100%);background:#fff;border-radius:24px;padding:30px;box-shadow:0 25px 70px rgba(0,20,80,.35)}.s8-login-logo{width:72px;height:72px;border-radius:20px;background:linear-gradient(135deg,#073ebc,#1688ff);color:#fff;display:grid;place-items:center;font-size:34px;font-weight:900;font-style:italic;margin:0 auto 18px}.s8-login-card h1{text-align:center;margin:0 0 8px;font-size:24px}.s8-login-card p{text-align:center;color:#718096;font-size:13px;margin-bottom:24px}.s8-login-card label{display:block;font-size:12px;font-weight:700;margin:14px 0}.s8-login-card input{width:100%;margin-top:7px;padding:14px;border:1px solid #dde5f0;border-radius:12px;outline:none}.s8-login-card button{width:100%;border:0;border-radius:13px;padding:15px;background:linear-gradient(135deg,#1688ff,#164cf3);color:#fff;font-weight:800;margin-top:8px}.login-error{background:#fff1f0;color:#c0392b;padding:10px;border-radius:10px;font-size:12px}.task-row{display:flex;justify-content:space-between;gap:14px;padding:11px 0;border-bottom:1px solid var(--line)}.task-row:last-child{border-bottom:0}.task-row span{font-size:11px;color:var(--muted)}.task-row strong{font-size:12px;text-align:right}
/* V4.5 refined staff mobile UI */
.s8-main{background:linear-gradient(180deg,#f5f8ff 0,#fff 42%)}
#screenHome{padding:18px 16px 24px}
.staff-profile-card{background:linear-gradient(145deg,#0a328d,#0868ff);border-radius:20px;padding:18px;color:#fff;box-shadow:0 18px 35px rgba(8,78,210,.24);display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}
.profile-main{display:flex;align-items:center;gap:12px;min-width:0}.profile-main>div:last-child{display:flex;flex-direction:column;min-width:0}.profile-main .s8-avatar{width:54px;height:54px;background:rgba(255,255,255,.18);color:#fff;border:1px solid rgba(255,255,255,.25);flex:0 0 auto}.profile-kicker{font-size:9px;letter-spacing:.9px;opacity:.72;font-weight:700}.profile-main strong{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:3px 0}.profile-main small{font-size:10px;color:#dfffea}.staff-code-pill{font-size:10px;font-weight:800;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.2);padding:7px 9px;border-radius:999px;white-space:nowrap}
.today-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:14px}.today-summary>div{background:#fff;border:1px solid #e8edf7;border-radius:14px;padding:11px 8px;text-align:center;box-shadow:0 7px 18px rgba(29,58,105,.05)}.today-summary span{display:block;font-size:9px;color:#8190a7;margin-bottom:4px}.today-summary strong{font-size:11px;color:#15376f;display:block;overflow:hidden;text-overflow:ellipsis}
.task-card{padding:17px}.task-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding-bottom:12px;border-bottom:1px solid var(--line)}.task-head h2{font-size:16px;margin:4px 0 0;color:#112c5e}.task-status{font-size:9px;font-weight:800;color:#14964c;background:#e8f8ef;padding:6px 8px;border-radius:999px;white-space:nowrap}.task-row{padding:10px 0}.task-row span{font-size:10px}.task-row strong{max-width:64%;font-size:11px}
.primary-capture{min-height:78px;margin-top:14px;border-radius:18px}.primary-capture:active{transform:scale(.99)}
.capture-rules{margin-top:14px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px;display:grid;gap:9px}.capture-rules>strong{font-size:12px;color:#163f88}.capture-rules>div{display:flex;align-items:center;gap:9px;font-size:10px;color:#64748b}.capture-rules>div span{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#eaf2ff;color:#0757f8;font-weight:800;flex:0 0 auto}
.confirm-title{margin:14px 0 10px;display:flex;flex-direction:column;gap:3px}.confirm-title span{font-size:9px;letter-spacing:.8px;color:#70819a;font-weight:700}.confirm-title strong{font-size:16px;color:#132d5e}.info-card>div{align-items:flex-start}.info-card span{font-size:10px}.info-card strong{font-size:11px;max-width:62%;word-break:break-word}.confirm-actions{position:sticky;bottom:82px;background:#fff;padding:10px 0 2px;z-index:5}
#screenConfirm{padding-bottom:110px}.preview-wrap{border-radius:0 0 18px 18px;overflow:hidden}.preview-wrap img{max-height:46vh}.preview-stamp{font-size:9px}
@media(max-width:380px){.today-summary{grid-template-columns:1fr}.staff-profile-card{align-items:flex-start;flex-direction:column}.staff-code-pill{align-self:flex-start}}

.location-card{align-items:flex-start!important;text-align:left!important}.location-card small{display:block;font-weight:700;line-height:1.45;color:#0f2a55;margin-top:6px}.location-card em{display:block;font-style:normal;font-size:11px;color:#71809b;margin-top:5px;word-break:break-all}.info-card strong#confirmAddress{line-height:1.45;text-align:right;max-width:62%;font-size:12px}
/* V5.1 Premium Staff Experience */
:root{--navy:#08245f;--royal:#0868ff;--cyan:#20b9ff;--soft-blue:#edf5ff}
.s8-app{max-width:560px;background:linear-gradient(180deg,#f7faff 0,#fff 36%)}
.s8-topbar{height:82px;padding:0 24px;background:linear-gradient(135deg,#0a9af3 0,#0757f8 55%,#063dbd 100%);box-shadow:0 12px 35px rgba(8,83,220,.22)}
.s8-brand span{font-size:36px;letter-spacing:-2px}.s8-brand strong{font-size:22px;letter-spacing:.2px}.topbar-actions{display:flex;align-items:center;gap:12px}.s8-utc{font-size:12px;padding:9px 14px;border:1px solid rgba(255,255,255,.25);backdrop-filter:blur(8px)}.notify-btn{width:38px;height:38px;border:0;background:transparent;color:#fff;font-size:25px;position:relative}.notify-btn i{position:absolute;width:8px;height:8px;background:#ff3b30;border-radius:50%;right:4px;top:4px;box-shadow:0 0 0 3px rgba(255,255,255,.18)}
#screenHome{padding:22px 20px 30px}.staff-profile-card{min-height:170px;border-radius:25px;padding:24px 22px;background:linear-gradient(135deg,#061c5d 0,#0751cb 54%,#0874ff 100%);box-shadow:0 24px 48px rgba(5,48,145,.28);position:relative;overflow:hidden;margin-bottom:20px}.profile-watermark{position:absolute;right:-8px;bottom:-38px;font-size:122px;font-weight:900;font-style:italic;color:rgba(255,255,255,.05);line-height:1}.profile-main{gap:18px;position:relative;z-index:2}.profile-main .s8-avatar{width:88px;height:88px;font-size:32px;border:2px solid rgba(255,255,255,.8);box-shadow:inset 0 0 0 6px rgba(18,165,255,.35),0 0 0 5px rgba(255,255,255,.08);position:relative}.avatar-ring{position:absolute;width:18px;height:18px;background:#1dd76a;border:4px solid #fff;border-radius:50%;right:-1px;bottom:4px}.profile-kicker{font-size:13px;letter-spacing:1.5px}.profile-main strong{font-size:25px;margin:6px 0 4px;letter-spacing:.2px}.profile-main small{font-size:14px}.staff-code-pill{font-size:14px;padding:10px 16px;background:rgba(255,255,255,.15);box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);position:relative;z-index:2}
.today-summary{gap:12px;margin-bottom:20px}.today-summary>div{min-height:132px;border-radius:20px;padding:18px 14px;display:flex;align-items:flex-start;gap:12px;text-align:left;box-shadow:0 12px 30px rgba(27,65,125,.08)}.today-summary>div>div{min-width:0}.summary-icon{width:38px;height:38px;border-radius:13px;display:grid!important;place-items:center;font-size:18px;flex:0 0 auto}.summary-icon.purple{background:#eee9ff;color:#7055e8}.summary-icon.green{background:#ddf8ee;color:#16aa73}.summary-icon.blue{background:#e3efff;color:#0757f8}.today-summary span:not(.summary-icon){font-size:12px;margin:1px 0 8px;color:#66758d}.today-summary strong{font-size:22px;color:#10234b;white-space:nowrap}.today-summary em{display:block;font-style:normal;font-size:11px;color:#8190a7;margin-top:5px}
.s8-card{border-radius:24px}.task-card{padding:22px;margin-bottom:20px}.task-head{padding:0 0 14px;border:0}.card-label{display:flex;align-items:center;gap:9px;font-size:16px;margin:0;color:#174a9c}.label-icon{width:28px;height:28px;border-radius:9px;background:#eaf3ff;display:grid;place-items:center;color:#1772ff}.task-status{font-size:12px;padding:9px 14px}.mission-banner{display:flex;gap:14px;align-items:center;background:linear-gradient(90deg,#eaf5ff,#f8fbff);border:1px solid #cfe4ff;border-radius:16px;padding:16px;margin-bottom:12px}.mission-icon{width:48px;height:48px;border-radius:14px;background:#fff;display:grid;place-items:center;font-size:24px;color:#1262ee;box-shadow:0 8px 18px rgba(39,100,205,.08)}.mission-banner h2{margin:0 0 5px;font-size:19px;color:#12316b}.mission-banner p{margin:0;color:#70819b;font-size:12px}.task-row{padding:14px 0}.task-row span{font-size:13px}.task-row strong{font-size:14px;max-width:58%}
.primary-capture{min-height:132px;padding:20px 22px;border-radius:24px;margin:0 0 20px;gap:16px;position:relative;overflow:hidden;background:linear-gradient(120deg,#19b9f3 0,#0874ff 55%,#0750e9 100%);box-shadow:0 20px 42px rgba(15,104,242,.28)}.camera-visual{width:80px;height:70px;border-radius:18px;background:linear-gradient(145deg,#fff,#c7d8ef);display:grid;place-items:center;box-shadow:0 10px 20px rgba(0,33,100,.18);position:relative;flex:0 0 auto}.camera-visual:before{content:"";width:58px;height:38px;border-radius:10px;background:#1b2d4f;position:absolute}.camera-visual:after{content:"";width:18px;height:8px;border-radius:4px;background:#dbe8f8;position:absolute;top:11px}.camera-lens{width:27px;height:27px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#6edcff 0 12%,#2e5cff 30%,#121b58 60%,#040817 100%);z-index:2;border:3px solid #6f84a8}.capture-copy{min-width:0;flex:1}.primary-capture strong{font-size:21px}.primary-capture small{font-size:13px;line-height:1.5}.open-camera-pill{background:#fff;color:#174a9c;border-radius:16px;padding:15px 17px;font-weight:800;display:flex!important;align-items:center;gap:8px;white-space:nowrap;box-shadow:0 10px 22px rgba(3,55,160,.15)}
.s8-quick-grid{gap:14px;margin-bottom:20px}.quick-card{min-height:160px;border-radius:22px;padding:20px;text-align:left;align-items:center;justify-content:flex-start;flex-direction:row;gap:13px;box-shadow:0 12px 28px rgba(27,65,125,.06);position:relative}.quick-card>div{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0}.quick-icon{width:48px;height:48px;border-radius:16px;display:grid!important;place-items:center;font-size:24px;flex:0 0 auto}.quick-icon.location{background:#e4faef;color:#10a85c}.quick-icon.history{background:#e8f1ff;color:#0757f8}.quick-card strong{font-size:15px}.quick-card small{font-size:12px;max-width:none;white-space:normal}.quick-card em{font-size:11px!important;color:#71809b!important}.location-card i{font-size:10px;font-style:normal;color:#179852;background:#e7f8ef;padding:5px 8px;border-radius:999px;margin-top:4px}.quick-arrow{position:absolute;right:18px;font-size:27px;color:#5c6b80}.history-card{padding-right:42px}
.premium-note{min-height:112px;border:1px solid #d6e7ff;background:linear-gradient(90deg,#f6faff,#fff);border-radius:22px;padding:18px;display:flex;align-items:center;gap:14px;position:relative;overflow:hidden}.premium-note .shield-icon{width:42px;height:42px;border-radius:14px;background:#e5efff;color:#0757f8;display:grid;place-items:center;flex:0 0 auto}.premium-note b{font-size:14px;color:#1750aa}.premium-note p{font-size:12px;line-height:1.55;margin:5px 40px 0 0;color:#64748b}.map-pin-art{position:absolute;right:18px;font-size:36px;color:#126df5;opacity:.22}
.s8-bottom-nav{height:82px;box-shadow:0 -10px 30px rgba(22,54,105,.08)}.s8-bottom-nav button{font-size:24px}.s8-bottom-nav small{font-size:12px;margin-top:3px}
@media(max-width:460px){.s8-topbar{height:72px;padding:0 16px}.s8-brand span{font-size:30px}.s8-brand strong{font-size:19px}.notify-btn{display:none}#screenHome{padding:18px 14px 25px}.staff-profile-card{min-height:138px;padding:19px 16px}.profile-main .s8-avatar{width:68px;height:68px;font-size:25px}.profile-main strong{font-size:19px}.profile-kicker{font-size:10px}.profile-main small{font-size:11px}.staff-code-pill{font-size:11px;padding:8px 10px}.today-summary{gap:8px}.today-summary>div{min-height:104px;padding:12px 8px;gap:7px}.summary-icon{width:30px;height:30px;border-radius:10px;font-size:14px}.today-summary span:not(.summary-icon){font-size:9px}.today-summary strong{font-size:14px}.today-summary em{font-size:9px}.primary-capture{min-height:108px;padding:16px 14px}.camera-visual{width:58px;height:54px}.camera-visual:before{width:43px;height:30px}.open-camera-pill{padding:12px 11px;font-size:11px}.primary-capture strong{font-size:18px}.primary-capture small{font-size:11px}.s8-quick-grid{grid-template-columns:1fr 1fr}.quick-card{min-height:145px;padding:14px 12px;flex-direction:column;align-items:flex-start}.quick-icon{width:38px;height:38px}.quick-card strong{font-size:12px}.quick-card small{font-size:10px}.quick-arrow{display:none}.premium-note p{margin-right:20px}.task-row strong{font-size:12px}}
@media(max-width:365px){.today-summary{grid-template-columns:1fr}.today-summary>div{min-height:auto}.open-camera-pill{display:none!important}.s8-quick-grid{grid-template-columns:1fr}.quick-card{min-height:112px;flex-direction:row}.staff-profile-card{flex-direction:column;align-items:flex-start}.staff-code-pill{align-self:flex-start}}

/* V5.2 One-screen Staff Home */
@supports (height:100dvh){.s8-app{min-height:100dvh}.s8-main{min-height:calc(100dvh - 146px)}}
#screenHome.active{height:calc(100vh - 154px);height:calc(100dvh - 154px);overflow:hidden;display:flex;flex-direction:column;gap:10px;padding:12px 14px 10px}
#screenHome .staff-profile-card{min-height:96px;margin:0;padding:13px 14px;border-radius:20px;flex:0 0 auto}
#screenHome .profile-main{gap:11px}
#screenHome .profile-main .s8-avatar{width:58px;height:58px;font-size:22px}
#screenHome .profile-kicker{font-size:9px}
#screenHome .profile-main strong{font-size:18px;margin:2px 0}
#screenHome .profile-main small{font-size:10px}
#screenHome .staff-code-pill{font-size:10px;padding:7px 9px}
#screenHome .today-summary{gap:7px;margin:0;flex:0 0 auto}
#screenHome .today-summary>div{min-height:62px;padding:8px 7px;border-radius:15px;gap:6px;align-items:center}
#screenHome .summary-icon{width:28px;height:28px;border-radius:9px;font-size:13px}
#screenHome .today-summary span:not(.summary-icon){font-size:8px;margin:0 0 2px}
#screenHome .today-summary strong{font-size:13px}
#screenHome .today-summary em{font-size:8px;margin-top:1px}
#screenHome .primary-capture{order:3;min-height:74px;margin:0;padding:10px 12px;border-radius:18px;gap:11px;flex:0 0 auto}
#screenHome .camera-visual{width:52px;height:48px;border-radius:14px}
#screenHome .camera-visual:before{width:39px;height:27px}
#screenHome .camera-visual:after{top:8px;width:14px;height:6px}
#screenHome .camera-lens{width:21px;height:21px}
#screenHome .primary-capture strong{font-size:16px}
#screenHome .primary-capture small{font-size:10px;line-height:1.25}
#screenHome .open-camera-pill{padding:10px 11px;border-radius:12px;font-size:10px}
#screenHome .compact-task{order:4;padding:12px 13px;margin:0;border-radius:18px;flex:1 1 auto;min-height:0;overflow:hidden}
#screenHome .task-head{padding:0 0 8px}
#screenHome .card-label{font-size:12px;gap:6px}
#screenHome .label-icon{width:22px;height:22px;border-radius:7px}
#screenHome .task-status{font-size:9px;padding:6px 9px}
#screenHome .mission-banner{padding:9px 10px;margin-bottom:7px;border-radius:13px;gap:9px}
#screenHome .mission-icon{width:34px;height:34px;border-radius:10px;font-size:17px}
#screenHome .mission-banner h2{font-size:14px;margin-bottom:2px}
#screenHome .mission-banner p{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:310px}
.compact-meta{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}
.compact-meta>span{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid var(--line);min-width:0}
.compact-meta>span:nth-last-child(-n+2){border-bottom:0}
.compact-meta b{font-size:9px;color:var(--muted);font-weight:500;white-space:nowrap}
.compact-meta strong{font-size:9.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:62%;text-align:right}
#screenHome .s8-quick-grid{order:5;gap:8px;margin:0;flex:0 0 auto}
#screenHome .quick-card{min-height:62px;border-radius:16px;padding:8px 10px;flex-direction:row;gap:8px}
#screenHome .quick-icon{width:31px;height:31px;border-radius:10px;font-size:16px}
#screenHome .quick-card strong{font-size:10px}
#screenHome .quick-card small{font-size:8px;line-height:1.25}
#screenHome .quick-card em{font-size:8px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px}
#screenHome .location-card i{display:none}
#screenHome .quick-arrow{display:none}
#screenHome .home-note{display:none}

.camera-screen.active{display:grid;grid-template-rows:56px minmax(0,1fr) 92px;height:calc(100vh - 72px);height:calc(100dvh - 72px);min-height:0;overflow:hidden}
.camera-screen .camera-stage{height:auto;min-height:0}
.camera-screen .camera-controls{height:auto;min-height:92px;padding-bottom:max(8px,env(safe-area-inset-bottom))}
.camera-screen .shutter{width:66px;height:66px}

@media(max-height:760px){
 #screenHome.active{gap:7px;padding-top:8px}
 #screenHome .staff-profile-card{min-height:82px;padding:10px 12px}
 #screenHome .profile-main .s8-avatar{width:50px;height:50px}
 #screenHome .primary-capture{min-height:66px}
 #screenHome .compact-task{padding:9px 11px}
 #screenHome .mission-banner{padding:7px 9px}
 #screenHome .quick-card{min-height:54px}
}
@media(max-width:365px){
 #screenHome .today-summary{grid-template-columns:repeat(3,1fr)}
 #screenHome .staff-profile-card{flex-direction:row;align-items:center}
 #screenHome .staff-code-pill{align-self:auto}
 #screenHome .s8-quick-grid{grid-template-columns:1fr 1fr}
 #screenHome .quick-card{min-height:56px;flex-direction:row}
 #screenHome .open-camera-pill{display:flex!important}
}

/* V5.3 Assigned campaign card */
.campaign-task-card .mission-banner{position:relative}.campaign-code{font-size:10px;letter-spacing:.08em;font-weight:700;color:#2878ff;display:block;margin-bottom:2px}.campaign-target{margin-left:auto;min-width:58px;height:58px;border-radius:16px;background:linear-gradient(145deg,#1a75ff,#164bd3);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 8px 18px rgba(24,96,223,.22)}.campaign-target b{font-size:19px;line-height:1}.campaign-target small{font-size:7px;margin-top:4px;letter-spacing:.05em}.campaign-instructions{margin-top:7px;border-radius:10px;background:#f4f8ff;border:1px solid #dce9ff;padding:0 10px}.campaign-instructions summary{font-size:10px;font-weight:700;color:#1558c8;padding:8px 0;cursor:pointer}.campaign-instructions p{font-size:10px;line-height:1.45;color:#51627f;margin:0 0 9px}.task-status.paused{background:#fff2d7;color:#a56a00}.no-campaign .mission-banner{background:#f7f9fd}.no-campaign .task-status{background:#eef2f7;color:#6f7c91}

.campaign-switcher{display:flex;align-items:center;justify-content:space-between;gap:12px;background:linear-gradient(135deg,#eef6ff,#fff);border:1px solid #cfe1ff;border-radius:18px;padding:12px 14px;margin:10px 0}.campaign-switcher b{display:block;color:#0a3d91;font-size:12px}.campaign-switcher small{display:block;color:#7b8aa6;font-size:10px;margin-top:2px}.campaign-switcher select{max-width:58%;border:1px solid #bcd4ff;border-radius:12px;padding:10px;background:#fff;color:#0b2d64;font-weight:700;font-family:inherit}.staff-campaign-checks{display:grid;gap:8px;max-height:220px;overflow:auto;border:1px solid #dce6f4;border-radius:14px;padding:10px}.staff-campaign-checks>label{display:flex!important;align-items:center;gap:10px;padding:9px;border-radius:10px;background:#f8fbff}.staff-campaign-checks input{width:auto!important}.staff-campaign-checks span b,.staff-campaign-checks span small{display:block}

/* V5.7 STAFF PHOTO VALIDATION */
.photo-quality-result{margin:14px 0;padding:15px;border:1px solid #ffc8cf;border-radius:17px;background:#fff6f7}.photo-quality-result.warning-only{border-color:#f4dda4;background:#fffaf0}.quality-head{display:flex;gap:10px;align-items:center}.quality-head>span{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#ffe7ea;color:#d84a58;font-weight:900}.quality-head b,.quality-head small{display:block}.quality-head small{margin-top:3px;color:#788d9d}.quality-errors{display:grid;gap:8px;margin-top:12px}.quality-errors>div{position:relative;padding:11px 78px 11px 12px;border-radius:12px;background:#fff;border:1px solid #e4edf3}.quality-errors b,.quality-errors span{display:block}.quality-errors b{font-size:12px;color:#173d58}.quality-errors span{margin-top:4px;font-size:10px;color:#71889a}.quality-errors em{position:absolute;right:9px;top:10px;padding:5px 7px;border-radius:999px;background:#ffe9ec;color:#d84e5c;font-size:8px;font-style:normal;font-weight:800}.quality-errors .warning em{background:#fff2cf;color:#a97a09}.photo-quality-result>button{width:100%;height:44px;margin-top:12px;border:0;border-radius:11px;background:linear-gradient(135deg,#147cff,#20bed9);color:#fff;font-weight:900}
.photo-rule-modal[hidden]{display:none}.photo-rule-modal{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:18px;background:rgba(6,28,50,.72);backdrop-filter:blur(8px)}.photo-rule-dialog{position:relative;width:min(430px,100%);max-height:90vh;overflow:auto;padding:27px;border-radius:26px;background:#fff;text-align:center;box-shadow:0 28px 80px rgba(0,0,0,.3)}.modal-close{position:absolute;right:16px;top:14px;width:34px;height:34px;border:0;border-radius:10px;background:#edf5fa;color:#547086;font-size:20px}.modal-rule-icon{width:72px;height:72px;margin:auto;border-radius:22px;display:grid;place-items:center;background:linear-gradient(145deg,#e7f5ff,#fff0f1);color:#147bd4;font-size:34px}.photo-rule-dialog>span{display:block;margin-top:15px;color:#1685cb;font-size:10px;font-weight:900;letter-spacing:.1em}.photo-rule-dialog h2{margin:8px 0 14px;color:#123853}.photo-rule-dialog #modalRuleErrors{text-align:left}.photo-rule-dialog .btn-primary,.photo-rule-dialog .btn-outline{margin-top:10px}

/* V5.8 PREMIUM STAFF CAMPAIGN SELECTOR */
.staff-campaign-selector{margin:10px 16px 12px;padding:14px;border:1px solid #cfe0ff;border-radius:20px;background:linear-gradient(145deg,#f7fbff,#edf5ff);box-shadow:0 12px 30px rgba(31,91,170,.08)}
.staff-campaign-selector-head{display:grid;grid-template-columns:46px minmax(0,1fr) auto;gap:11px;align-items:center}.campaign-selector-icon{width:46px;height:46px;border-radius:15px;display:grid;place-items:center;background:linear-gradient(135deg,#247cff,#23c1e2);color:#fff;font-size:20px;box-shadow:0 9px 20px rgba(37,126,255,.2)}
.staff-campaign-selector-head span,.staff-campaign-selector-head strong,.staff-campaign-selector-head small{display:block}.staff-campaign-selector-head span{font-size:8px;font-weight:900;letter-spacing:.12em;color:#3478cf}.staff-campaign-selector-head strong{margin-top:3px;color:#153c70;font-size:14px}.staff-campaign-selector-head small{margin-top:3px;color:#8294a8;font-size:9px}.staff-campaign-selector-head button{border:0;border-radius:11px;padding:10px 12px;background:#e5f1ff;color:#176fd3;font-family:inherit;font-size:9px;font-weight:900}
.staff-campaign-selector-meta{display:grid;grid-template-columns:auto 1fr;gap:8px;margin-top:11px}.staff-campaign-selector-meta span{padding:8px 10px;border-radius:10px;background:#fff;border:1px solid #e0e9f3;color:#6d8298;font-size:9px}.staff-campaign-selector-meta span:first-child{color:#1670d2;font-weight:900;text-align:center}
.campaign-picker-modal[hidden]{display:none}.campaign-picker-modal{position:fixed;inset:0;z-index:9997;display:grid;place-items:center;padding:18px;background:rgba(7,28,53,.72);backdrop-filter:blur(8px)}.campaign-picker-dialog{position:relative;width:min(455px,100%);max-height:90vh;overflow:auto;padding:26px;border-radius:26px;background:#fff;box-shadow:0 30px 90px rgba(0,0,0,.28)}.campaign-picker-close{position:absolute;right:15px;top:13px;width:36px;height:36px;border:0;border-radius:11px;background:#edf5fb;color:#577085;font-size:21px}.campaign-picker-dialog>span{color:#1b80d8;font-size:9px;font-weight:900;letter-spacing:.13em}.campaign-picker-dialog h2{margin:7px 0 8px;color:#123b63}.campaign-picker-dialog>p{margin:0 0 16px;color:#72879a;font-size:11px;line-height:1.55}
.campaign-picker-list{display:grid;gap:10px;margin-bottom:15px}.campaign-picker-item{display:grid;grid-template-columns:58px 1fr auto;gap:10px;align-items:center;width:100%;padding:12px;border:1px solid #dce8f1;border-radius:15px;background:#fbfdff;text-align:left;font-family:inherit}.campaign-picker-item>span{display:grid;place-items:center;min-height:45px;border-radius:12px;background:#eaf4ff;color:#1773d5;font-size:9px;font-weight:900}.campaign-picker-item b,.campaign-picker-item small,.campaign-picker-item em{display:block}.campaign-picker-item b{color:#173e62}.campaign-picker-item small{margin-top:4px;color:#778da0;font-size:9px}.campaign-picker-item em{margin-top:3px;color:#9aa8b5;font-size:8px;font-style:normal}.campaign-picker-item i{padding:6px 8px;border-radius:999px;background:#edf4fa;color:#70879a;font-size:8px;font-style:normal;font-weight:900}.campaign-picker-item.active,.campaign-picker-item.selected{border-color:#2380ff;background:#f1f7ff;box-shadow:0 0 0 3px rgba(35,128,255,.09)}.campaign-picker-item.active i,.campaign-picker-item.selected i{background:#def7e9;color:#159158}.campaign-picker-empty{padding:24px;border-radius:15px;background:#f5f9fc;color:#748b9d;text-align:center}
@media(max-width:460px){.staff-campaign-selector-head{grid-template-columns:42px 1fr}.staff-campaign-selector-head button{grid-column:2;justify-self:start}.staff-campaign-selector-meta{grid-template-columns:1fr}.campaign-picker-item{grid-template-columns:52px 1fr}.campaign-picker-item i{grid-column:2;justify-self:start}}

/* ===== V5.10 STAFF MOBILE UI FIX ===== */
:root{
  --staff-safe-bottom:92px;
}
.staff-app,
.staff-shell,
.staff-dashboard{
  min-height:100dvh;
}
.staff-main,
.staff-content,
main{
  padding-bottom:calc(var(--staff-safe-bottom) + env(safe-area-inset-bottom,0px))!important;
}
.staff-campaign-selector{
  margin:10px 16px 10px;
  padding:13px;
  border-radius:18px;
}
.staff-campaign-selector.no-campaign{
  background:linear-gradient(145deg,#f8fbff,#eef5ff);
  border-style:dashed;
}
.staff-campaign-selector.no-campaign .staff-campaign-selector-meta{
  opacity:.72;
}
.campaign-empty-hint{
  display:flex;
  align-items:flex-start;
  gap:9px;
  margin-top:10px;
  padding:10px 11px;
  border-radius:12px;
  background:#fff7e8;
  border:1px solid #f6dca8;
}
.campaign-empty-hint[hidden]{display:none!important}
.campaign-empty-hint>span{
  flex:0 0 24px;
  width:24px;height:24px;
  border-radius:8px;
  display:grid;place-items:center;
  background:#ffb443;
  color:#fff;
  font-weight:900;
}
.campaign-empty-hint p{
  margin:1px 0 0;
  color:#8b641f;
  font-size:10px;
  line-height:1.45;
}
.capture-card{
  position:relative;
  margin-top:8px!important;
}
.capture-lock-note{
  position:absolute;
  inset:0;
  z-index:4;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
  border-radius:inherit;
  background:rgba(239,247,255,.82);
  color:#567288;
  font-size:11px;
  font-weight:800;
  text-align:center;
  backdrop-filter:blur(3px);
}
.capture-lock-note[hidden]{display:none!important}
#takePhoto:disabled,
#takePhoto.is-disabled{
  cursor:not-allowed!important;
  filter:saturate(.35);
  opacity:.58;
  box-shadow:none!important;
}
.quick-stats{
  gap:8px!important;
}
.quick-stats>*{
  min-height:72px!important;
}
.staff-task-card,
.task-card{
  min-height:auto!important;
}
.staff-bottom-nav,
.bottom-nav{
  position:fixed!important;
  left:50%!important;
  bottom:0!important;
  transform:translateX(-50%)!important;
  width:min(700px,100%)!important;
  z-index:90!important;
  padding-bottom:env(safe-area-inset-bottom,0px)!important;
  box-shadow:0 -12px 30px rgba(18,55,90,.12)!important;
}
@media(max-width:760px){
  .staff-shell,
  .staff-app{
    width:100%!important;
    max-width:700px!important;
  }
  .staff-header{
    border-radius:0 0 0 0!important;
  }
  .staff-profile-card{
    margin:10px 16px 8px!important;
  }
  .quick-stats{
    margin:8px 16px!important;
  }
  .staff-campaign-selector-head{
    grid-template-columns:42px minmax(0,1fr) auto!important;
  }
  .staff-campaign-selector-head button{
    grid-column:auto!important;
    justify-self:end!important;
  }
  .staff-campaign-selector-meta{
    margin-top:8px!important;
  }
  .capture-card{
    margin:8px 16px!important;
  }
  .staff-task-card,
  .task-card{
    margin:8px 16px!important;
  }
  .staff-lower-grid,
  .staff-info-grid{
    margin:8px 16px 0!important;
    gap:8px!important;
  }
}
@media(max-width:420px){
  .staff-campaign-selector-head{
    grid-template-columns:40px minmax(0,1fr)!important;
  }
  .staff-campaign-selector-head button{
    grid-column:2!important;
    justify-self:start!important;
    margin-top:4px;
  }
  .staff-campaign-selector-meta{
    grid-template-columns:1fr!important;
  }
}

/* ===== V5.11 EXACT STAFF RUNTIME FIX ===== */
.s8-app{padding-bottom:0!important;min-height:100dvh!important}
.s8-main{min-height:calc(100dvh - 64px)!important;padding-bottom:0!important}
#screenHome.active{
  height:auto!important;
  min-height:calc(100dvh - 64px)!important;
  overflow:visible!important;
  display:flex!important;
  flex-direction:column!important;
  padding-bottom:112px!important;
}
#screenHome .staff-campaign-selector{order:3!important;margin:0!important;flex:0 0 auto!important}
#screenHome .primary-capture{order:4!important}
#screenHome .compact-task{order:5!important;flex:0 0 auto!important;min-height:auto!important;overflow:visible!important}
#screenHome .s8-quick-grid{order:6!important}
#screenHome .home-note{order:7!important}
.s8-bottom-nav{
  position:fixed!important;
  left:50%!important;
  bottom:0!important;
  transform:translateX(-50%)!important;
  width:min(520px,100%)!important;
  height:82px!important;
  z-index:999!important;
  padding-bottom:env(safe-area-inset-bottom,0px)!important;
  background:rgba(255,255,255,.98)!important;
  box-shadow:0 -12px 35px rgba(18,55,90,.14)!important;
}
.primary-capture:disabled,.primary-capture.is-disabled{
  opacity:.48!important;
  filter:grayscale(.35) saturate(.5)!important;
  cursor:not-allowed!important;
  box-shadow:none!important;
  pointer-events:none!important;
}
.s8-bottom-nav button:disabled,.s8-bottom-nav button.is-disabled{
  opacity:.38!important;
  cursor:not-allowed!important;
}
#screenHome .s8-quick-grid{margin-bottom:0!important}
@media(min-width:800px){.s8-bottom-nav{bottom:24px!important}}
@media(max-width:520px){
  body{padding:0!important}
  .s8-app{width:100%!important;max-width:none!important;box-shadow:none!important}
  #screenHome.active{padding:10px 14px 112px!important;gap:9px!important}
  #screenHome .staff-profile-card{min-height:102px!important}
  #screenHome .today-summary>div{min-height:68px!important}
  #screenHome .primary-capture{min-height:72px!important}
  #screenHome .quick-card{min-height:72px!important}
}


/* ===== V5.12 CAMERA SHUTTER POSITION FIX ===== */
.camera-screen{
  position:relative;
  padding-bottom:0!important;
  overflow:hidden;
}

.camera-stage{
  /* Chừa vùng an toàn cho cụm nút chụp và thanh điều hướng dưới */
  height:calc(100dvh - 64px - 56px - 118px)!important;
  min-height:360px!important;
}

.camera-controls{
  position:relative;
  z-index:45;
  height:118px!important;
  display:flex!important;
  align-items:flex-start!important;
  justify-content:center!important;
  padding-top:0!important;
  background:#05070a!important;
  pointer-events:none;
}

.camera-controls .shutter{
  pointer-events:auto;
  position:relative;
  z-index:50;
  width:78px!important;
  height:78px!important;
  flex:0 0 78px;
  transform:translateY(-54px);
  border:6px solid #fff!important;
  background:#fff!important;
  box-shadow:
    0 12px 30px rgba(0,0,0,.34),
    0 0 0 5px rgba(255,255,255,.2),
    inset 0 0 0 4px #101722!important;
  transition:transform .16s ease, box-shadow .16s ease;
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}

.camera-controls .shutter:active{
  transform:translateY(-54px) scale(.92);
  box-shadow:
    0 6px 16px rgba(0,0,0,.3),
    0 0 0 5px rgba(255,255,255,.16),
    inset 0 0 0 4px #101722!important;
}

.camera-controls .shutter:disabled{
  opacity:.45;
  filter:grayscale(.45);
}

.camera-guide{
  bottom:64px!important;
}

/* Bảo đảm thanh menu luôn nằm dưới nút chụp */
.s8-bottom-nav{
  z-index:40!important;
}

@media(max-width:520px){
  .camera-stage{
    height:calc(100dvh - 64px - 56px - 112px)!important;
  }

  .camera-controls{
    height:112px!important;
  }

  .camera-controls .shutter{
    transform:translateY(-50px);
  }

  .camera-controls .shutter:active{
    transform:translateY(-50px) scale(.92);
  }

  .camera-guide{
    bottom:58px!important;
  }
}

@media(min-width:800px){
  .camera-controls .shutter{
    transform:translateY(-45px);
  }

  .camera-controls .shutter:active{
    transform:translateY(-45px) scale(.92);
  }
}

/* V5.15 MOBILE SUPERVISOR */
.supervisor-mobile-app{min-height:100dvh;background:#f1f7fc;font-family:'Bai Jamjuree',sans-serif;color:#123b5d;padding-bottom:24px}
.supervisor-mobile-header{height:76px;padding:0 20px;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(135deg,#0a4fa2,#147fe0);color:#fff}
.supervisor-mobile-header>div{display:flex;align-items:center;gap:10px}.supervisor-mobile-header span{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:#19a9de;font-weight:900}
.supervisor-mobile-header button{width:40px;height:40px;border:0;border-radius:12px;background:rgba(255,255,255,.14);color:#fff;font-size:22px}
.supervisor-profile{margin:14px;padding:16px;display:flex;gap:12px;align-items:center;border-radius:20px;background:linear-gradient(135deg,#0b3f86,#146bd1);color:#fff}
.supervisor-profile-avatar{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:#3a83ee;border:4px solid rgba(255,255,255,.35);font-size:24px;font-weight:900}
.supervisor-profile span,.supervisor-profile strong,.supervisor-profile small{display:block}.supervisor-profile span{font-size:9px;font-weight:900;letter-spacing:.12em;color:#a7d8ff}.supervisor-profile strong{font-size:19px}.supervisor-profile small{margin-top:4px}
.supervisor-profile small i{display:inline-block;width:8px;height:8px;border-radius:50%;background:#35de89}
.supervisor-mobile-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 14px 14px}.supervisor-mobile-stats article{padding:14px;border-radius:16px;background:#fff;border:1px solid #dce9f2;box-shadow:0 8px 20px rgba(33,89,130,.05)}
.supervisor-mobile-stats span,.supervisor-mobile-stats strong{display:block}.supervisor-mobile-stats span{font-size:9px;color:#7890a3}.supervisor-mobile-stats strong{margin-top:5px;font-size:24px;color:#0e5faf}
.supervisor-tabs{display:grid;grid-template-columns:1fr 1fr;margin:0 14px 12px;padding:5px;border-radius:14px;background:#e5eff7}.supervisor-tabs button{height:42px;border:0;border-radius:10px;background:transparent;font-family:inherit;font-weight:800;color:#6d8294}
.supervisor-tabs button.active{background:#fff;color:#1374d0;box-shadow:0 5px 14px rgba(26,93,146,.12)}.supervisor-mobile-content{padding:0 14px}.supervisor-tab-panel{display:none}.supervisor-tab-panel.active{display:block}
.supervisor-mobile-list,.supervisor-photo-list{display:grid;gap:10px}.supervisor-staff-card{display:grid;grid-template-columns:48px 1fr auto;gap:10px;align-items:center;padding:13px;border-radius:16px;background:#fff;border:1px solid #dce8f1}
.supervisor-staff-avatar{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,#2480ff,#26c3df);color:#fff;font-weight:900}
.supervisor-staff-card strong,.supervisor-staff-card span,.supervisor-staff-card small,.supervisor-staff-card p{display:block;margin:0}.supervisor-staff-card span,.supervisor-staff-card small,.supervisor-staff-card p{font-size:9px;color:#7a90a2;margin-top:3px}
.supervisor-staff-card a{padding:8px;border-radius:9px;background:#e9f4ff;color:#1671d1;font-size:9px;font-weight:800;text-decoration:none}
.supervisor-photo-card{overflow:hidden;border-radius:18px;background:#fff;border:1px solid #dce8f1}.supervisor-photo-card>img{width:100%;aspect-ratio:16/10;object-fit:cover}.supervisor-photo-body{padding:12px}
.supervisor-photo-body>div{display:flex;justify-content:space-between;gap:8px}.supervisor-photo-body strong{color:#123c5d}.supervisor-photo-body span,.supervisor-photo-body p{font-size:9px;color:#7b91a2}
.supervisor-photo-body small{display:inline-block;margin-top:6px;padding:5px 8px;border-radius:999px;background:#eaf4ff;color:#1970cd}.supervisor-photo-body small.high{background:#ffe9ec;color:#d54858}
.supervisor-photo-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:7px;padding:0 12px 12px}.supervisor-photo-actions button{height:38px;border:0;border-radius:10px;font-family:inherit;font-weight:800}
.supervisor-photo-actions button:nth-child(1){background:#e3f8ed;color:#159459}.supervisor-photo-actions button:nth-child(2){background:#eaf4ff;color:#166fc8}.supervisor-photo-actions button:nth-child(3){background:#ffecef;color:#d94a5b}
.supervisor-loading,.supervisor-empty-mobile{padding:28px;border-radius:16px;background:#fff;color:#7b90a1;text-align:center}

/* V5.16 SUPERVISOR FIELD CHECK-IN */
.supervisor-tabs.three{grid-template-columns:repeat(3,1fr)}
.field-supervision-card,.field-active-card{padding:18px;border-radius:20px;background:#fff;border:1px solid #d9e7f1;box-shadow:0 10px 25px rgba(24,75,115,.06)}
.field-supervision-card>span,.field-active-head span{font-size:9px;font-weight:900;letter-spacing:.12em;color:#1681d5}
.field-supervision-card h2{margin:7px 0;color:#123e62}.field-supervision-card p{color:#72899b;font-size:11px;line-height:1.55}
.field-supervision-card select{width:100%;height:48px;border:1px solid #d6e5ef;border-radius:12px;padding:0 12px;background:#fafdff;font-family:inherit}
.field-supervision-card button,.field-capture-button{width:100%;height:52px;margin-top:12px;border:0;border-radius:14px;background:linear-gradient(135deg,#157cff,#1fc1dd);color:#fff;font-family:inherit;font-weight:900}
.field-active-head{display:flex;align-items:center;justify-content:space-between}.field-active-head strong,.field-active-head small{display:block}.field-active-head strong{font-size:19px;color:#123e62}.field-active-head small{color:#7b91a2}.field-active-head i{padding:7px 10px;border-radius:999px;background:#e4faee;color:#15925a;font-style:normal;font-size:9px;font-weight:900}
.field-progress-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:14px}.field-progress-grid article{padding:13px;border-radius:14px;background:#f4f9fd;border:1px solid #e0eaf2}.field-progress-grid span,.field-progress-grid strong{display:block}.field-progress-grid span{font-size:9px;color:#7890a3}.field-progress-grid strong{margin-top:5px;color:#0f62ad;font-size:17px}
.field-active-card textarea{width:100%;min-height:82px;margin-top:10px;border:1px solid #d6e5ef;border-radius:12px;padding:11px;font-family:inherit}.field-end-button{width:100%;height:46px;margin-top:10px;border:1px solid #ffd1d6;border-radius:13px;background:#fff0f2;color:#d84858;font-family:inherit;font-weight:900}
.field-camera-modal[hidden]{display:none}.field-camera-modal{position:fixed;inset:0;z-index:99999;background:#05070a}.field-camera-shell{position:relative;width:100%;height:100dvh;overflow:hidden;background:#000}.field-camera-shell header{position:absolute;left:0;right:0;top:0;z-index:4;height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;background:linear-gradient(135deg,#1478ed,#154bd8);color:#fff}.field-camera-shell header button{width:42px;height:42px;border:0;background:transparent;color:#fff;font-size:36px}.field-camera-shell header span{font-size:10px}.field-camera-shell video{width:100%;height:100%;object-fit:cover}.field-camera-guide{position:absolute;left:24px;right:24px;bottom:125px;padding:12px;border-radius:14px;background:rgba(0,0,0,.55);color:#fff;text-align:center;font-size:11px}.field-shutter{position:absolute;left:50%;bottom:36px;transform:translateX(-50%);width:78px;height:78px;border-radius:50%;border:7px solid #fff;background:#fff;box-shadow:0 0 0 5px rgba(255,255,255,.25),inset 0 0 0 5px #102238}
@media(max-width:420px){.supervisor-tabs.three button{font-size:10px}.field-progress-grid{grid-template-columns:1fr 1fr}}

/* V5.17 SUPERVISOR STAFF GPS */
.supervisor-tabs.four{
  grid-template-columns:repeat(4,1fr);
}
.supervisor-tabs.four button{
  padding:0 5px;
  font-size:9px;
}
.supervisor-gps-summary{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-bottom:10px;
}
.supervisor-gps-summary>div{
  padding:14px;
  border-radius:15px;
  background:#fff;
  border:1px solid #dce8f1;
}
.supervisor-gps-summary span,
.supervisor-gps-summary strong{
  display:block;
}
.supervisor-gps-summary span{
  color:#7c91a2;
  font-size:9px;
}
.supervisor-gps-summary strong{
  margin-top:5px;
  color:#0d65b5;
  font-size:23px;
}
.supervisor-gps-list{
  display:grid;
  gap:10px;
}
.supervisor-gps-card{
  display:grid;
  grid-template-columns:48px minmax(0,1fr) auto;
  gap:11px;
  align-items:start;
  padding:14px;
  border-radius:17px;
  background:#fff;
  border:1px solid #dce8f1;
  box-shadow:0 8px 22px rgba(31,78,118,.05);
}
.supervisor-gps-card.has-gps{
  border-color:#ccead9;
}
.supervisor-gps-card.no-gps{
  border-color:#f3d8a7;
  background:#fffdf8;
}
.supervisor-gps-icon{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:linear-gradient(135deg,#16a46c,#33d08d);
  color:#fff;
  font-size:21px;
  font-weight:900;
}
.supervisor-gps-card.no-gps .supervisor-gps-icon{
  background:linear-gradient(135deg,#ffae2b,#ffcd63);
}
.supervisor-gps-title{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
}
.supervisor-gps-title strong{
  color:#123e60;
  font-size:14px;
}
.supervisor-gps-title span{
  padding:5px 8px;
  border-radius:999px;
  background:#e5f8ee;
  color:#16915b;
  font-size:8px;
  font-weight:900;
}
.supervisor-gps-card.no-gps .supervisor-gps-title span{
  background:#fff1d7;
  color:#bd7615;
}
.supervisor-gps-body>small,
.supervisor-gps-body>p{
  display:block;
  margin:4px 0 0;
  color:#7d91a2;
  font-size:9px;
  line-height:1.45;
}
.supervisor-gps-meta{
  display:grid;
  gap:4px;
  margin-top:9px;
  padding-top:9px;
  border-top:1px dashed #dce8ef;
}
.supervisor-gps-meta span{
  color:#456a84;
  font-size:9px;
}
.supervisor-map-button{
  align-self:center;
  padding:10px 11px;
  border-radius:11px;
  background:linear-gradient(135deg,#147cff,#20bddd);
  color:#fff!important;
  font-size:8px;
  font-weight:900;
  text-decoration:none;
  white-space:nowrap;
}
@media(max-width:470px){
  .supervisor-tabs.four{
    grid-template-columns:1fr 1fr;
    gap:4px;
  }
  .supervisor-tabs.four button{
    height:38px;
    font-size:10px;
  }
  .supervisor-gps-card{
    grid-template-columns:44px minmax(0,1fr);
  }
  .supervisor-gps-icon{
    width:44px;
    height:44px;
  }
  .supervisor-map-button{
    grid-column:2;
    justify-self:start;
  }
}

/* V5.18 MOBILE LOGOUT FOR STAFF & SUPERVISOR */
.supervisor-header-actions{display:flex;align-items:center;gap:8px}
.supervisor-mobile-header .mobile-logout-button,
.staff-logout-button{
  width:40px;height:40px;display:grid;place-items:center;border-radius:12px;
  text-decoration:none;font-size:21px;font-weight:900;color:#fff;
  background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.16);
  -webkit-tap-highlight-color:transparent
}
.supervisor-mobile-header .mobile-logout-button:active,
.staff-logout-button:active{transform:scale(.94);background:rgba(255,82,97,.35)}
.staff-logout-button{flex:0 0 40px}
.mobile-account-footer{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin:16px 14px 26px;padding:14px;border-radius:16px;background:#fff;
  border:1px solid #dce8f1;box-shadow:0 8px 22px rgba(27,75,112,.06)
}
.mobile-account-footer span,.mobile-account-footer strong{display:block}
.mobile-account-footer span{color:#8294a4;font-size:8px;font-weight:800;letter-spacing:.08em}
.mobile-account-footer strong{margin-top:4px;color:#183f5f;font-size:13px}
.mobile-account-footer>a{
  padding:10px 13px;border-radius:11px;text-decoration:none;background:#fff0f2;
  color:#d94354;border:1px solid #ffd7dc;font-size:9px;font-weight:900;white-space:nowrap
}
.staff-account-footer{margin-bottom:110px}
@media(max-width:420px){
  .s8-topbar .topbar-actions{gap:6px}
  .s8-topbar .s8-utc{padding-left:10px;padding-right:10px;font-size:9px}
  .notify-btn,.staff-logout-button{width:36px!important;height:36px!important;flex-basis:36px}
}

/* V5.19 SUPERVISOR PHOTO REPORT */
.field-capture-button{
  min-height:56px;
  box-shadow:0 12px 28px rgba(21,124,255,.2);
}
.field-capture-button:before{
  content:"📷";
  margin-right:8px;
}

/* V5.20 SUPERVISOR CAMERA FLOW */
.field-camera-ready{
  display:flex;
  align-items:center;
  gap:11px;
  margin:14px 0 2px;
  padding:12px;
  border-radius:14px;
  border:1px solid #cfe4f2;
  background:linear-gradient(135deg,#f4faff,#eef8ff);
}
.field-camera-ready-icon{
  flex:0 0 46px;
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:linear-gradient(135deg,#147cff,#20bddc);
  font-size:22px;
  box-shadow:0 8px 18px rgba(20,124,255,.18);
}
.field-camera-ready strong,
.field-camera-ready span{
  display:block;
}
.field-camera-ready strong{
  color:#123f61;
  font-size:12px;
}
.field-camera-ready span{
  margin-top:3px;
  color:#748b9c;
  font-size:9px;
  line-height:1.4;
}
#startFieldVisit:disabled{
  opacity:.45;
  filter:grayscale(.35);
  cursor:not-allowed;
  box-shadow:none;
}
.supervisor-card-actions{
  display:grid;
  gap:7px;
  align-self:center;
}
.supervisor-card-actions>a,
.supervisor-card-actions>button{
  min-width:88px;
  padding:9px 10px;
  border:0;
  border-radius:10px;
  font-family:inherit;
  font-size:8px;
  font-weight:900;
  text-align:center;
  text-decoration:none;
  white-space:nowrap;
}
.supervisor-card-actions>a{
  background:#e9f4ff;
  color:#1671d1;
}
.supervisor-card-actions>button{
  background:linear-gradient(135deg,#147cff,#20bddc);
  color:#fff;
}
.field-capture-button{
  position:relative;
  overflow:hidden;
}
.field-capture-button:after{
  content:"";
  position:absolute;
  top:-50%;
  left:-35%;
  width:34%;
  height:200%;
  transform:rotate(24deg);
  background:rgba(255,255,255,.3);
  animation:fieldCameraShine 2.4s infinite;
}
@keyframes fieldCameraShine{
  0%{left:-45%}
  55%,100%{left:120%}
}
@media(max-width:470px){
  .supervisor-staff-card{
    grid-template-columns:44px minmax(0,1fr);
  }
  .supervisor-card-actions{
    grid-column:2;
    grid-template-columns:1fr 1fr;
    justify-self:stretch;
  }
}

/* V5.21 SUPERVISOR OWN WORK REPORT */
.supervisor-own-report-card{
  padding:20px;
  border-radius:22px;
  background:#fff;
  border:1px solid #d9e7f1;
  box-shadow:0 12px 30px rgba(28,79,119,.07);
}
.supervisor-own-report-head>span{
  color:#147cc7;
  font-size:9px;
  font-weight:900;
  letter-spacing:.14em;
}
.supervisor-own-report-head h2{
  margin:8px 0 7px;
  color:#123e60;
  font-size:23px;
  line-height:1.2;
}
.supervisor-own-report-head p{
  margin:0 0 17px;
  color:#71889a;
  font-size:11px;
  line-height:1.55;
}
.supervisor-report-field{
  display:block;
  margin-top:12px;
}
.supervisor-report-field>span{
  display:block;
  margin-bottom:6px;
  color:#5e778b;
  font-size:10px;
  font-weight:800;
}
.supervisor-report-field select,
.supervisor-report-field input,
.supervisor-report-field textarea{
  width:100%;
  border:1px solid #d5e4ee;
  border-radius:13px;
  background:#fbfdff;
  color:#153d5b;
  font-family:inherit;
  font-size:12px;
  outline:none;
}
.supervisor-report-field select,
.supervisor-report-field input{
  height:48px;
  padding:0 12px;
}
.supervisor-report-field textarea{
  min-height:108px;
  padding:12px;
  resize:vertical;
  line-height:1.5;
}
.supervisor-report-field select:focus,
.supervisor-report-field input:focus,
.supervisor-report-field textarea:focus{
  border-color:#1a92e4;
  box-shadow:0 0 0 4px rgba(26,146,228,.1);
}
.supervisor-own-gps{
  display:flex;
  align-items:center;
  gap:11px;
  margin-top:14px;
  padding:13px;
  border-radius:14px;
  background:#fff8e9;
  border:1px solid #f2d69c;
}
.supervisor-own-gps>i{
  width:12px;
  height:12px;
  flex:0 0 12px;
  border-radius:50%;
  background:#f5ad27;
  box-shadow:0 0 0 6px rgba(245,173,39,.13);
}
.supervisor-own-gps strong,
.supervisor-own-gps span{
  display:block;
}
.supervisor-own-gps strong{
  color:#8a611e;
  font-size:11px;
}
.supervisor-own-gps span{
  margin-top:3px;
  color:#a08048;
  font-size:9px;
}
.supervisor-own-gps.ready{
  background:#effbf5;
  border-color:#caecd9;
}
.supervisor-own-gps.ready>i{
  background:#32c77a;
  box-shadow:0 0 0 6px rgba(50,199,122,.13);
}
.supervisor-own-gps.ready strong{
  color:#176d49;
}
.supervisor-own-gps.ready span{
  color:#61927c;
}
.supervisor-own-camera-button{
  width:100%;
  min-height:76px;
  margin-top:14px;
  padding:13px 16px;
  display:grid;
  grid-template-columns:46px minmax(0,1fr);
  grid-template-rows:auto auto;
  column-gap:11px;
  align-items:center;
  border:0;
  border-radius:16px;
  background:linear-gradient(135deg,#147cff,#20bddc);
  color:#fff;
  font-family:inherit;
  text-align:left;
  box-shadow:0 13px 28px rgba(20,124,255,.22);
}
.supervisor-own-camera-button>b{
  grid-row:1/3;
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:rgba(255,255,255,.18);
  font-size:22px;
}
.supervisor-own-camera-button>span{
  align-self:end;
  font-size:12px;
  font-weight:900;
}
.supervisor-own-camera-button>small{
  align-self:start;
  margin-top:3px;
  color:#dff7ff;
  font-size:8px;
}
.supervisor-own-camera-button:active{
  transform:scale(.985);
}

/* V5.22 SUPERVISOR QUICK REPORT BUTTON */
.supervisor-quick-report{
  margin:0 14px 14px;
}
.supervisor-quick-report>button{
  width:100%;
  min-height:78px;
  display:grid;
  grid-template-columns:54px minmax(0,1fr) 32px;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  border:0;
  border-radius:18px;
  background:linear-gradient(135deg,#147cff 0%,#1b9fe7 55%,#20bddc 100%);
  color:#fff;
  font-family:inherit;
  text-align:left;
  box-shadow:0 14px 30px rgba(20,124,255,.22);
  position:relative;
  overflow:hidden;
}
.supervisor-quick-report>button:before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 90% 10%,rgba(255,255,255,.22),transparent 34%),
    linear-gradient(110deg,transparent 0 36%,rgba(255,255,255,.15) 48%,transparent 60%);
  pointer-events:none;
}
.supervisor-quick-report-icon{
  width:54px;
  height:54px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.25);
  font-size:25px;
  position:relative;
  z-index:1;
}
.supervisor-quick-report-text{
  min-width:0;
  position:relative;
  z-index:1;
}
.supervisor-quick-report-text span,
.supervisor-quick-report-text strong,
.supervisor-quick-report-text small{
  display:block;
}
.supervisor-quick-report-text span{
  font-size:8px;
  font-weight:900;
  letter-spacing:.13em;
  color:#dff6ff;
}
.supervisor-quick-report-text strong{
  margin-top:4px;
  font-size:14px;
  line-height:1.2;
}
.supervisor-quick-report-text small{
  margin-top:4px;
  font-size:8px;
  color:#e6f8ff;
}
.supervisor-quick-report-arrow{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:rgba(255,255,255,.18);
  font-size:25px;
  line-height:1;
  position:relative;
  z-index:1;
}
.supervisor-quick-report>button:active{
  transform:scale(.985);
}
@media(max-width:380px){
  .supervisor-quick-report>button{
    grid-template-columns:48px minmax(0,1fr) 28px;
    gap:9px;
    padding:11px;
  }
  .supervisor-quick-report-icon{
    width:48px;
    height:48px;
  }
  .supervisor-quick-report-text strong{
    font-size:12px;
  }
}

/* V5.23 SUPERVISOR CURRENT GPS */
.supervisor-current-location{
  display:grid;
  grid-template-columns:48px minmax(0,1fr) auto;
  align-items:center;
  gap:11px;
  margin:0 14px 14px;
  padding:13px;
  border-radius:17px;
  background:#fff;
  border:1px solid #dbe8f1;
  box-shadow:0 9px 23px rgba(28,78,116,.06);
}
.supervisor-location-icon{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:linear-gradient(135deg,#ffad2a,#ffd166);
  color:#fff;
  font-size:24px;
  font-weight:900;
  box-shadow:0 8px 18px rgba(255,173,42,.18);
}
.supervisor-location-info{
  min-width:0;
}
.supervisor-location-info span,
.supervisor-location-info strong,
.supervisor-location-info small{
  display:block;
}
.supervisor-location-info span{
  color:#6d879a;
  font-size:8px;
  font-weight:900;
  letter-spacing:.08em;
}
.supervisor-location-info strong{
  margin-top:4px;
  color:#173f5d;
  font-size:12px;
  line-height:1.35;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.supervisor-location-info small{
  margin-top:4px;
  color:#8195a4;
  font-size:8px;
  line-height:1.35;
}
.supervisor-current-location>button{
  min-width:82px;
  height:38px;
  padding:0 10px;
  border:0;
  border-radius:11px;
  background:#edf5fb;
  color:#176eb8;
  font-family:inherit;
  font-size:8px;
  font-weight:900;
}
.supervisor-current-location.ready{
  border-color:#ccebd9;
  background:linear-gradient(135deg,#ffffff,#f4fcf8);
}
.supervisor-current-location.ready .supervisor-location-icon{
  background:linear-gradient(135deg,#17a86e,#39d392);
  box-shadow:0 8px 18px rgba(23,168,110,.18);
}
.supervisor-current-location.ready>button{
  background:#e3f8ed;
  color:#148f59;
}
.supervisor-current-location>button:disabled{
  opacity:.55;
}
@media(max-width:430px){
  .supervisor-current-location{
    grid-template-columns:44px minmax(0,1fr);
  }
  .supervisor-location-icon{
    width:44px;
    height:44px;
  }
  .supervisor-current-location>button{
    grid-column:2;
    justify-self:start;
    min-width:110px;
  }
  .supervisor-location-info strong{
    white-space:normal;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
  }
}

/* V5.25 SUPERVISOR CONFIRM BEFORE UPLOAD */
.supervisor-confirm-modal[hidden]{display:none}
.supervisor-confirm-modal{
  position:fixed;
  inset:0;
  z-index:100000;
  overflow:auto;
  background:#f2f7fc;
  font-family:'Bai Jamjuree',sans-serif;
}
.supervisor-confirm-shell{
  width:min(100%,620px);
  min-height:100dvh;
  margin:auto;
  padding-bottom:28px;
  background:#fff;
}
.supervisor-confirm-header{
  min-height:110px;
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  padding:17px 20px;
  background:linear-gradient(135deg,#147cff,#2157ed);
  color:#fff;
}
.supervisor-confirm-header button{
  width:40px;
  height:40px;
  border:0;
  background:transparent;
  color:#fff;
  font-size:36px;
}
.supervisor-confirm-header span,
.supervisor-confirm-header strong{
  display:block;
}
.supervisor-confirm-header span{
  font-size:10px;
  font-weight:900;
  letter-spacing:.08em;
}
.supervisor-confirm-header strong{
  margin-top:5px;
  font-size:18px;
}
.supervisor-confirm-header small{
  padding:9px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  font-size:9px;
  white-space:nowrap;
}
.supervisor-confirm-preview{
  position:relative;
  width:100%;
  min-height:360px;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:#080a0d;
}
.supervisor-confirm-preview>img{
  display:block;
  width:100%;
  max-height:590px;
  object-fit:contain;
}
.supervisor-confirm-stamp{
  position:absolute;
  left:16px;
  right:16px;
  bottom:14px;
  padding:12px 14px;
  border-radius:12px;
  background:linear-gradient(90deg,rgba(4,25,51,.94),rgba(5,45,88,.86));
  color:#fff;
  box-shadow:0 8px 24px rgba(0,0,0,.25);
}
.supervisor-confirm-stamp b,
.supervisor-confirm-stamp span{
  display:block;
}
.supervisor-confirm-stamp b{
  margin-bottom:5px;
  font-size:10px;
}
.supervisor-confirm-stamp span{
  font-size:8px;
  line-height:1.45;
  color:#dcecff;
}
.supervisor-confirm-info{
  padding:20px;
}
.supervisor-confirm-info>span{
  color:#7a8fa1;
  font-size:9px;
  font-weight:900;
  letter-spacing:.1em;
}
.supervisor-confirm-info h2{
  margin:7px 0 15px;
  color:#153e5f;
  font-size:21px;
}
.supervisor-confirm-row{
  display:grid;
  grid-template-columns:130px minmax(0,1fr);
  gap:12px;
  padding:13px 0;
  border-bottom:1px solid #e5edf3;
}
.supervisor-confirm-row small{
  color:#8193a2;
  font-size:10px;
}
.supervisor-confirm-row strong{
  color:#173e5c;
  font-size:11px;
  line-height:1.45;
  text-align:right;
}
.supervisor-confirm-row.location strong{
  color:#0f69bc;
}
.supervisor-confirm-actions{
  position:sticky;
  bottom:0;
  z-index:5;
  display:grid;
  grid-template-columns:1fr 1.45fr;
  gap:10px;
  padding:13px 20px calc(13px + env(safe-area-inset-bottom));
  background:rgba(255,255,255,.96);
  border-top:1px solid #e1eaf1;
  backdrop-filter:blur(12px);
}
.supervisor-confirm-actions button{
  min-height:54px;
  border-radius:14px;
  font-family:inherit;
  font-size:12px;
  font-weight:900;
}
#retakeSupervisorPhoto{
  border:1px solid #1671c9;
  background:#fff;
  color:#1671c9;
}
#confirmUploadSupervisorPhoto{
  border:0;
  background:linear-gradient(135deg,#147cff,#2157ed);
  color:#fff;
  box-shadow:0 10px 22px rgba(20,124,255,.22);
}
#confirmUploadSupervisorPhoto:disabled{
  opacity:.55;
}
@media(max-width:430px){
  .supervisor-confirm-header{
    grid-template-columns:34px minmax(0,1fr);
  }
  .supervisor-confirm-header small{
    grid-column:2;
    justify-self:start;
    margin-top:-10px;
  }
  .supervisor-confirm-preview{
    min-height:310px;
  }
  .supervisor-confirm-row{
    grid-template-columns:105px minmax(0,1fr);
  }
}

/* V5.26 SUPERVISOR RUNTIME STABILITY */
.supervisor-runtime-error{
  margin:12px 14px;
  padding:12px 14px;
  border-radius:13px;
  background:#fff0f2;
  border:1px solid #ffd5db;
  color:#c83e50;
  font-size:10px;
  line-height:1.45;
}
#fieldShutter:disabled,
#confirmUploadSupervisorPhoto:disabled{
  opacity:.55;
  pointer-events:none;
}

/* V5.27 GPS UPDATE FIX */
.supervisor-current-location.loading{
  border-color:#9ed0f4;
  background:linear-gradient(135deg,#fff,#eef8ff);
}
.supervisor-current-location.loading .supervisor-location-icon{
  animation:s8GpsPulse 1.1s infinite ease-in-out;
}
@keyframes s8GpsPulse{
  0%,100%{transform:scale(1);opacity:1}
  50%{transform:scale(.9);opacity:.6}
}
#updateSupervisorLocation{
  cursor:pointer;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
}
#updateSupervisorLocation:disabled{
  cursor:wait;
}

/* V5.30 DIRECT SUPERVISOR CAMERA */
#quickSupervisorReport{
  cursor:pointer;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
}
#quickSupervisorReport:active{
  transform:scale(.985);
}
.supervisor-photo-list article strong{
  line-height:1.35;
}

/* V5.33 FULL STAFF RESTORE */
.s8-mobile-app{
  background:
    radial-gradient(circle at 50% -8%,rgba(28,132,255,.14),transparent 33%),
    linear-gradient(180deg,#f5f9fd,#edf5fb);
}
.primary-capture{
  min-height:94px;
  border-radius:24px!important;
  background:
    radial-gradient(circle at 88% 8%,rgba(255,255,255,.26),transparent 30%),
    linear-gradient(135deg,#16a9e7,#126ef0 58%,#1748dd)!important;
  box-shadow:0 18px 36px rgba(20,104,229,.24)!important;
}
.staff-campaign-selector,
.task-card,
.quick-card,
.today-summary>div{
  border-color:#d8e7f1!important;
  box-shadow:0 12px 28px rgba(27,76,113,.07)!important;
}
.camera-screen{
  background:#03070c!important;
}
.s8-bottom-nav{
  background:rgba(255,255,255,.96)!important;
  backdrop-filter:blur(17px);
  box-shadow:0 -11px 28px rgba(33,74,102,.1);
}
.toast.error{
  left:18px!important;
  right:18px!important;
  bottom:98px!important;
  padding:14px 16px!important;
  border-radius:16px!important;
  background:#c83c2e!important;
  box-shadow:0 14px 30px rgba(132,34,26,.25)!important;
  line-height:1.45;
}
.s8-screen.active{
  animation:s8StaffScreenIn .22s ease;
}
@keyframes s8StaffScreenIn{
  from{opacity:.5;transform:translateY(5px)}
  to{opacity:1;transform:none}
}

/* V5.34 REMOVE REDUNDANT STAFF ACCOUNT CARD */
.staff-account-footer,
.mobile-account-footer.staff-account-footer{
  display:none!important;
  height:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
}

/* V5.35 REMOVE BLACK BLOCK / RESTORE CAMERA */
#screenHome > .camera-stage,
#screenHome > .camera-controls,
#screenHome > video,
#screenHome > canvas{
  display:none!important;
}
#screenCamera.camera-screen{
  min-height:100dvh;
}

/* V5.36 AUTH + CTV MOBILE */
.s8-auth-page{min-height:100dvh;display:grid;grid-template-columns:minmax(320px,1fr) minmax(460px,.85fr);font-family:'Bai Jamjuree',sans-serif;background:#f5f9ff;color:#102d4c}
.s8-auth-visual{padding:64px;display:flex;flex-direction:column;justify-content:space-between;background:radial-gradient(circle at 20% 10%,#23b8f1 0,transparent 30%),linear-gradient(145deg,#072d74,#075ddf 65%,#16aee8);color:#fff;position:relative;overflow:hidden}
.s8-auth-visual:after{content:"";position:absolute;width:520px;height:520px;border:1px solid rgba(255,255,255,.12);border-radius:50%;right:-180px;bottom:-220px;box-shadow:0 0 0 70px rgba(255,255,255,.04),0 0 0 140px rgba(255,255,255,.03)}
.s8-auth-brand{display:flex;align-items:center;gap:12px;font-size:22px;font-weight:900}.s8-auth-brand b,.s8-auth-mobile-logo b{width:54px;height:54px;display:grid;place-items:center;border-radius:16px;background:linear-gradient(135deg,#19c5e8,#1879fb);font-size:23px;color:#fff}.s8-auth-visual-copy{max-width:650px;position:relative;z-index:1}.s8-auth-visual-copy small{font-size:11px;font-weight:900;letter-spacing:.16em;color:#aeeeff}.s8-auth-visual-copy h2{font-size:42px;line-height:1.14;margin:16px 0}.s8-auth-visual-copy p{font-size:15px;line-height:1.7;color:#dcecff}.s8-auth-visual-copy>div{display:flex;gap:18px;flex-wrap:wrap;margin-top:28px}.s8-auth-visual-copy>div span{font-size:11px;padding:10px 14px;border:1px solid rgba(255,255,255,.18);border-radius:999px;background:rgba(255,255,255,.08)}
.s8-auth-panel{display:grid;place-items:center;padding:40px}.s8-auth-card{width:min(100%,610px);background:#fff;padding:38px;border:1px solid #dce8f2;border-radius:28px;box-shadow:0 25px 70px rgba(20,63,103,.13)}.s8-auth-mobile-logo{display:none;align-items:center;gap:10px;font-weight:900}.s8-auth-heading span{font-size:9px;font-weight:900;letter-spacing:.14em;color:#1480d5}.s8-auth-heading h1{font-size:29px;margin:8px 0 7px}.s8-auth-heading p{margin:0 0 25px;color:#74899c;font-size:12px;line-height:1.5}.s8-auth-form{display:grid;gap:15px}.s8-register-grid{grid-template-columns:1fr 1fr}.s8-register-grid .full{grid-column:1/-1}.s8-auth-form label>span{display:block;margin-bottom:7px;font-size:10px;font-weight:800}.s8-auth-input{display:flex;align-items:center;gap:9px;height:52px;padding:0 14px;border:1px solid #d9e6f0;border-radius:14px;background:#fbfdff}.s8-auth-input:focus-within{border-color:#1685e5;box-shadow:0 0 0 4px rgba(22,133,229,.1)}.s8-auth-input i{font-style:normal;color:#6590b2}.s8-auth-input input{width:100%;border:0;outline:0;background:transparent;font:inherit;font-size:12px}.s8-auth-options{display:flex;justify-content:space-between;align-items:center;font-size:10px}.s8-auth-options label{display:flex;align-items:center;gap:6px}.s8-auth-options a,.s8-auth-switch a{color:#0875dd;font-weight:800;text-decoration:none}.s8-auth-submit{height:54px;border:0;border-radius:15px;background:linear-gradient(135deg,#1088f3,#1d54ed);color:#fff;font-family:inherit;font-size:12px;font-weight:900;box-shadow:0 12px 24px rgba(20,108,235,.2)}.s8-auth-submit b{float:right}.s8-auth-switch{text-align:center;margin-top:20px;padding-top:18px;border-top:1px solid #e5edf3;font-size:11px}.s8-auth-notice{margin-bottom:16px;padding:12px;border-radius:12px;background:#eaf9f1;color:#168453;font-size:10px;line-height:1.5}.s8-auth-notice.error{background:#fff0f2;color:#c13a4b}.s8-register-note{padding:11px;border-radius:12px;background:#f0f7ff;color:#5e7890;font-size:9px;line-height:1.5}
.ctv-mobile-app{width:min(100%,720px);min-height:100dvh;margin:auto;background:linear-gradient(180deg,#edf7ff,#f6f9fc);font-family:'Bai Jamjuree',sans-serif;color:#133d5c;padding-bottom:35px}.ctv-topbar{height:92px;padding:0 22px;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(135deg,#0868c9,#17a7df);color:#fff}.ctv-topbar>div{display:flex;align-items:center;gap:10px}.ctv-topbar b{width:45px;height:45px;display:grid;place-items:center;border-radius:14px;background:rgba(255,255,255,.18)}.ctv-topbar strong{font-size:17px}.ctv-topbar a{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;background:rgba(255,255,255,.16);color:#fff;text-decoration:none}.ctv-mobile-app main{padding:16px}.ctv-profile-card{display:grid;grid-template-columns:70px minmax(0,1fr);gap:13px;align-items:center;padding:19px;border-radius:23px;background:linear-gradient(135deg,#073d91,#087bd7);color:#fff;box-shadow:0 15px 35px rgba(8,82,157,.23)}.ctv-avatar{width:70px;height:70px;display:grid;place-items:center;border-radius:50%;border:5px solid rgba(255,255,255,.25);font-size:27px;background:#438ee7}.ctv-profile-card span{font-size:9px;letter-spacing:.12em;font-weight:900;color:#b8e4ff}.ctv-profile-card h2{margin:4px 0;font-size:21px}.ctv-profile-card small{font-size:10px}.ctv-profile-card small i{display:inline-block;width:8px;height:8px;border-radius:50%;background:#22dc85}.ctv-profile-card em{grid-column:1/-1;padding:9px 12px;border-radius:11px;background:rgba(255,255,255,.12);font-style:normal;font-size:10px;text-align:center}.ctv-success-note{margin-top:12px;padding:12px;border-radius:13px;background:#e7faf0;color:#138153;font-size:10px}.ctv-status-card,.ctv-profile-form{margin-top:14px;padding:19px;border-radius:22px;background:#fff;border:1px solid #dbe9f2;box-shadow:0 12px 30px rgba(30,78,111,.07)}.ctv-status-card>span,.ctv-section-head>span{font-size:8px;font-weight:900;letter-spacing:.13em;color:#0b7bc8}.ctv-status-card h1{font-size:23px;margin:8px 0}.ctv-status-card p,.ctv-section-head p{font-size:10px;color:#768c9d;line-height:1.55}.ctv-progress{height:9px;border-radius:999px;background:#e6eff5;overflow:hidden;margin:17px 0}.ctv-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#19b479,#18aee9)}.ctv-step-list{display:grid;gap:8px}.ctv-step-list div{display:flex;gap:9px;color:#9aabba;font-size:9px}.ctv-step-list div.done{color:#17845d;font-weight:800}.ctv-telegram-card,.ctv-received-card{margin-top:14px;padding:16px;display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:11px;align-items:center;border-radius:19px;text-decoration:none;background:linear-gradient(135deg,#168de8,#16bdd4);color:#fff;box-shadow:0 13px 27px rgba(20,151,215,.2)}.ctv-telegram-card>div,.ctv-received-card>div{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:rgba(255,255,255,.17);font-size:21px}.ctv-telegram-card small,.ctv-telegram-card strong,.ctv-telegram-card em,.ctv-received-card small,.ctv-received-card strong,.ctv-received-card em{display:block}.ctv-telegram-card small,.ctv-received-card small{font-size:8px;letter-spacing:.09em}.ctv-telegram-card strong,.ctv-received-card strong{font-size:13px;margin:3px 0}.ctv-telegram-card em,.ctv-received-card em{font-style:normal;font-size:8px;color:#dffaff}.ctv-received-card{grid-template-columns:48px minmax(0,1fr);background:linear-gradient(135deg,#fff,#effaf5);color:#154b38;border:1px solid #ccebdc}.ctv-received-card em{color:#6f9284}.ctv-received-card form{grid-column:1/-1}.ctv-received-card button{width:100%;height:46px;border:0;border-radius:13px;background:#1ab47a;color:#fff;font-family:inherit;font-weight:900}.ctv-section-head h2{font-size:20px;margin:7px 0}.ctv-profile-form form{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:15px}.ctv-profile-form label{font-size:9px;font-weight:800}.ctv-profile-form input,.ctv-profile-form textarea{width:100%;box-sizing:border-box;margin-top:6px;border:1px solid #d7e5ef;border-radius:12px;padding:11px;font-family:inherit;font-size:10px;background:#fbfdff}.ctv-profile-form textarea{min-height:75px}.ctv-profile-form .full{grid-column:1/-1}.ctv-form-divider{padding:10px 0;border-top:1px solid #e2ebf1;color:#127bc2;font-size:9px;font-weight:900}.ctv-profile-form button{height:49px;border:0;border-radius:13px;background:linear-gradient(135deg,#1086e9,#1d5be9);color:#fff;font-family:inherit;font-weight:900}
@media(max-width:820px){.s8-auth-page{display:block;background:linear-gradient(180deg,#0874df 0 230px,#f5f9ff 230px)}.s8-auth-visual{display:none}.s8-auth-panel{padding:30px 15px}.s8-auth-card{padding:24px;border-radius:24px}.s8-auth-mobile-logo{display:flex;margin-bottom:25px}.s8-register-grid{grid-template-columns:1fr}.s8-register-grid .full{grid-column:auto}.s8-auth-heading h1{font-size:25px}.ctv-profile-form form{grid-template-columns:1fr}.ctv-profile-form .full{grid-column:auto}}

/* V5.37 CTV WORK PROGRESS */
.ctv-work-stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:15px 0}.ctv-work-stat-grid>div{padding:12px;border-radius:13px;background:#f2f8fc}.ctv-work-stat-grid small,.ctv-work-stat-grid strong,.ctv-work-stat-grid em{display:block}.ctv-work-stat-grid small{font-size:8px;color:#718a9c}.ctv-work-stat-grid strong{font-size:19px;color:#0874c9;margin:4px 0}.ctv-work-stat-grid em{font-size:8px;color:#7a91a1;font-style:normal}.ctv-complete-work-btn{width:100%;height:48px;border:0;border-radius:13px;background:linear-gradient(135deg,#14b57b,#10a4db);color:#fff;font-family:inherit;font-weight:900}.ctv-complete-work-btn:disabled{background:#cbd8e1;color:#7f94a4}@media(max-width:480px){.ctv-work-stat-grid{grid-template-columns:1fr}}

/* V5.38 REMOVE CAMPAIGN UI FROM ALL MOBILE APPS */
.campaign-card,
.staff-campaign-selector,
.campaign-section,
[data-section="campaign"],
[data-tab="campaign"]{
  display:none!important;
}

/* V5.39 REGISTER FORM CLEANUP */
.s8-register-grid{
  grid-template-columns:1fr 1fr;
  gap:15px 16px;
}
.s8-register-grid .full{
  grid-column:1/-1;
}
.s8-register-grid input[name="account_username"]{
  font-weight:700;
  letter-spacing:.01em;
}
@media(max-width:640px){
  .s8-register-grid{
    grid-template-columns:1fr;
  }
  .s8-register-grid .full{
    grid-column:auto;
  }
}

/* V5.40 REGISTER REGION */
.s8-auth-input select{
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  font-family:inherit;
  font-size:12px;
  color:#314f68;
  appearance:none;
  cursor:pointer;
}
.s8-register-grid label:has(select[name="work_region"]) .s8-auth-input{
  background:linear-gradient(135deg,#fbfdff,#f1f8ff);
}

/* =========================================================
   V5.43 REMOVE EMPTY GAP + ENABLE CTV CAPTURE
   ========================================================= */

/* Xóa toàn bộ phần chiến dịch còn sót */
.campaign-card,
.campaign-section,
.staff-campaign-selector,
.campaign-placeholder,
[data-section="campaign"],
[data-tab="campaign"],
[id*="campaignCard"],
[id*="campaignSection"]{
  display:none!important;
  height:0!important;
  min-height:0!important;
  max-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
}

/* Xóa các vùng trống do block chiến dịch cũ để lại */
#screenHome .empty-block,
#screenHome .empty-placeholder,
#screenHome .home-spacer,
#screenHome .staff-spacer,
#screenHome .task-placeholder,
#screenHome > div:empty,
#screenHome > section:empty{
  display:none!important;
  height:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
}

/* Thu gọn khoảng cách giữa nút chụp và nhiệm vụ */
#screenHome{
  gap:12px!important;
}
#screenHome .home-camera-button,
#screenHome .capture-cta,
#screenHome .camera-launch-card{
  margin-bottom:12px!important;
}
#screenHome .task-card,
#screenHome .task-section,
#screenHome .staff-task-card{
  margin-top:0!important;
}

/* CTV đã nhận hàng luôn được phép bấm chụp */
body.s8-ctv-received .capture-cta,
body.s8-ctv-received .camera-launch-card,
body.s8-ctv-received #openCamera,
body.s8-ctv-received #takePhoto,
.ctv-capture-enabled .capture-cta,
.ctv-capture-enabled #openCamera,
.ctv-capture-enabled #takePhoto{
  pointer-events:auto!important;
  opacity:1!important;
  filter:none!important;
}

/* Mobile */
@media(max-width:640px){
  #screenHome{
    gap:10px!important;
  }
  #screenHome .task-card,
  #screenHome .task-section,
  #screenHome .staff-task-card{
    margin-top:0!important;
  }
}

/* =========================================================
   V5.45 STABLE HOME WITHOUT CAMPAIGNS
   ========================================================= */
#screenHome{
  display:none;
}
#screenHome.active{
  display:block!important;
}
#screenHome > *{
  margin-top:12px;
}
#screenHome > *:first-child{
  margin-top:0;
}
#screenHome > :empty{
  display:none!important;
}
.staff-work-summary{
  padding:16px;
  border:1px solid #d8e7f0;
  border-radius:18px;
  background:linear-gradient(135deg,#fff,#eef7ff);
  box-shadow:0 9px 24px rgba(30,75,110,.06);
}
.staff-work-summary>div:first-child span,
.staff-work-summary>div:first-child strong,
.staff-work-summary>div:first-child small{
  display:block;
}
.staff-work-summary>div:first-child span{
  font-size:9px;
  font-weight:900;
  letter-spacing:.12em;
  color:#1680cb;
}
.staff-work-summary>div:first-child strong{
  margin-top:5px;
  font-size:16px;
  color:#123b59;
}
.staff-work-summary>div:first-child small{
  margin-top:4px;
  font-size:10px;
  color:#7890a1;
}
.staff-work-meta{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-top:14px;
}
.staff-work-meta span{
  padding:10px;
  border-radius:12px;
  background:#fff;
}
.staff-work-meta b,.staff-work-meta strong{
  display:block;
}
.staff-work-meta b{
  font-size:8px;
  color:#8095a5;
}
.staff-work-meta strong{
  margin-top:4px;
  font-size:10px;
  color:#183d58;
}
.primary-capture,
#openCamera,
#takePhoto,
#navCamera{
  pointer-events:auto;
}
.primary-capture.is-disabled,
#openCamera.is-disabled{
  opacity:1!important;
  filter:none!important;
}
.campaign-card,.mission-banner,.campaign-instructions,.task-status,
#campaignPickerModal,#staffCampaignSelector,#campaignEmptyHint,#captureLockNote{
  display:none!important;
}
@media(max-width:520px){
  .staff-work-meta{
    grid-template-columns:1fr 1fr;
  }
  #screenHome > *{
    margin-top:10px;
  }
}

/* =========================================================
   V5.46 PHONE-ONLY REGISTRATION
   ========================================================= */
.s8-phone-register{
  grid-template-columns:1fr!important;
  gap:17px!important;
}
.s8-phone-register .full{
  grid-column:1!important;
}
.s8-phone-register label{
  width:100%;
}
.s8-phone-register .s8-auth-input{
  min-height:62px;
}
.s8-phone-register input{
  font-weight:700;
}
.s8-field-help{
  display:block;
  margin:7px 2px 0;
  font-size:10px;
  line-height:1.45;
  color:#7a91a4;
}
.s8-phone-register .s8-register-note{
  padding:13px 15px;
  line-height:1.55;
  text-align:left;
}

/* V5.47 MOBILE-ONLY APP SHELL */
body.s8-mobile-only-app{
  margin:0!important;
  min-height:100vh;
  background:radial-gradient(circle at 50% 0%,rgba(25,151,235,.12),transparent 38%),#eef5fa!important;
  overflow-x:hidden!important;
}
body.s8-mobile-only-app #page,
body.s8-mobile-only-app .site,
body.s8-mobile-only-app .site-content,
body.s8-mobile-only-app main,
body.s8-mobile-only-app .s8-app,
body.s8-mobile-only-app .ctv-mobile-app,
body.s8-mobile-only-app .supervisor-mobile{
  width:100%!important;
  max-width:430px!important;
  min-width:320px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  box-sizing:border-box!important;
}
body.s8-mobile-only-app .s8-app,
body.s8-mobile-only-app .ctv-mobile-app,
body.s8-mobile-only-app .supervisor-mobile{
  min-height:100vh!important;
  background:#f4f8fc!important;
  box-shadow:0 0 40px rgba(26,72,104,.16);
  overflow:hidden!important;
}
body.s8-mobile-only-app .staff-profile-card,
body.s8-mobile-only-app .today-summary,
body.s8-mobile-only-app .primary-capture,
body.s8-mobile-only-app .staff-work-summary,
body.s8-mobile-only-app .s8-quick-grid,
body.s8-mobile-only-app .ctv-profile-card,
body.s8-mobile-only-app .ctv-status-card{
  width:calc(100% - 24px)!important;
  margin-left:12px!important;
  margin-right:12px!important;
  box-sizing:border-box!important;
}
body.s8-mobile-only-app .today-summary{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
}
body.s8-mobile-only-app .today-summary>div{
  min-width:0!important;
  padding:10px 8px!important;
}
body.s8-mobile-only-app .today-summary strong{
  font-size:13px!important;
  white-space:nowrap!important;
}
body.s8-mobile-only-app .primary-capture{
  min-height:88px!important;
  padding:10px!important;
}
body.s8-mobile-only-app .capture-copy strong{font-size:17px!important}
body.s8-mobile-only-app .capture-copy small{
  display:block!important;
  margin-top:4px!important;
  font-size:9px!important;
}
body.s8-mobile-only-app .staff-work-meta{grid-template-columns:1fr 1fr!important}
body.s8-mobile-only-app .s8-quick-grid{
  grid-template-columns:1fr 1fr!important;
  gap:10px!important;
}
body.s8-mobile-only-app .bottom-nav{
  position:fixed!important;
  left:50%!important;
  right:auto!important;
  bottom:0!important;
  transform:translateX(-50%)!important;
  width:100%!important;
  max-width:430px!important;
  z-index:999!important;
  box-shadow:0 -8px 24px rgba(20,62,92,.12)!important;
}
body.s8-mobile-only-app #screenHome,
body.s8-mobile-only-app #screenHistory,
body.s8-mobile-only-app #screenCamera,
body.s8-mobile-only-app #screenConfirm{
  padding-bottom:92px!important;
}
body.s8-mobile-only-app .s8-topbar,
body.s8-mobile-only-app .ctv-topbar,
body.s8-mobile-only-app .supervisor-topbar{
  width:100%!important;
  max-width:430px!important;
  margin:0 auto!important;
  border-radius:0!important;
}
body.s8-mobile-only-app .camera-stage,
body.s8-mobile-only-app .confirm-stage,
body.s8-mobile-only-app video,
body.s8-mobile-only-app canvas{
  width:100%!important;
  max-width:430px!important;
}
@media(min-width:700px){
  body.s8-mobile-only-app{padding:18px 0!important}
  body.s8-mobile-only-app .s8-app,
  body.s8-mobile-only-app .ctv-mobile-app,
  body.s8-mobile-only-app .supervisor-mobile{border-radius:28px!important}
  body.s8-mobile-only-app .s8-topbar,
  body.s8-mobile-only-app .ctv-topbar,
  body.s8-mobile-only-app .supervisor-topbar{border-radius:28px 28px 0 0!important}
}
@media(max-width:480px){
  body.s8-mobile-only-app{padding:0!important}
  body.s8-mobile-only-app #page,
  body.s8-mobile-only-app .site,
  body.s8-mobile-only-app .site-content,
  body.s8-mobile-only-app main,
  body.s8-mobile-only-app .s8-app,
  body.s8-mobile-only-app .ctv-mobile-app,
  body.s8-mobile-only-app .supervisor-mobile{
    max-width:none!important;
    min-width:0!important;
  }
  body.s8-mobile-only-app .s8-app,
  body.s8-mobile-only-app .ctv-mobile-app,
  body.s8-mobile-only-app .supervisor-mobile{
    border-radius:0!important;
    box-shadow:none!important;
  }
}

/* =========================================================
   V5.48 MOBILE SHELL + GPS WARNING FIX
   ========================================================= */

/* App luôn bắt đầu đúng từ đầu màn hình, không tạo khoảng đệm gây cắt header */
body.s8-mobile-only-app{
  padding:0!important;
}
body.s8-mobile-only-app .s8-app,
body.s8-mobile-only-app .ctv-mobile-app,
body.s8-mobile-only-app .supervisor-mobile{
  position:relative!important;
  margin-top:0!important;
  border-radius:0!important;
}

/* Đồng bộ mọi biến thể thanh điều hướng dưới với đúng khung app */
body.s8-mobile-only-app .bottom-nav,
body.s8-mobile-only-app .s8-bottom-nav,
body.s8-mobile-only-app nav.bottom-navigation,
body.s8-mobile-only-app .mobile-bottom-nav{
  position:fixed!important;
  left:50%!important;
  right:auto!important;
  bottom:0!important;
  transform:translateX(-50%)!important;
  width:100%!important;
  max-width:430px!important;
  margin:0!important;
  box-sizing:border-box!important;
  z-index:999!important;
}

/* Popup lỗi/cảnh báo gọn và dễ đọc */
.photo-rule-modal .modal-card,
#photoRuleModal .modal-card{
  width:calc(100% - 28px)!important;
  max-width:390px!important;
  padding:22px 18px!important;
}
#modalRuleErrors div,
.quality-errors div{
  line-height:1.45!important;
}
#modalRuleErrors b,
#modalRuleErrors span,
#modalRuleErrors em{
  display:block!important;
  margin-top:4px!important;
}
#modalRuleErrors b{
  margin-top:0!important;
}

/* GPS sai số cao chỉ là cảnh báo, không làm nút tải lên bị khóa */
.quality-errors .warning,
#modalRuleErrors .warning{
  border-color:#ffe0a2!important;
  background:#fff9ea!important;
  color:#9a6200!important;
}
.quality-errors .warning em,
#modalRuleErrors .warning em{
  color:#b57800!important;
}

/* Desktop hiển thị khung điện thoại nhưng không bo/cắt phần đầu */
@media(min-width:700px){
  body.s8-mobile-only-app .s8-app,
  body.s8-mobile-only-app .ctv-mobile-app,
  body.s8-mobile-only-app .supervisor-mobile{
    margin-top:0!important;
    border-radius:0 0 24px 24px!important;
  }
  body.s8-mobile-only-app .s8-topbar,
  body.s8-mobile-only-app .ctv-topbar,
  body.s8-mobile-only-app .supervisor-topbar{
    border-radius:0!important;
  }
}

/* V5.49 FORCE STAFF PREVIEW INTO MOBILE FRAME */
body.s8-staff-preview-mobile{
  margin:0!important;
  padding:18px 0!important;
  min-height:100vh!important;
  overflow-x:hidden!important;
  background:radial-gradient(circle at 50% 0%,rgba(21,145,232,.13),transparent 40%),#edf5fa!important;
}
body.s8-staff-preview-mobile #page,
body.s8-staff-preview-mobile .site,
body.s8-staff-preview-mobile .site-content,
body.s8-staff-preview-mobile main,
body.s8-staff-preview-mobile .s8-app{
  width:430px!important;
  max-width:430px!important;
  min-width:430px!important;
  margin:0 auto!important;
  padding-left:0!important;
  padding-right:0!important;
  box-sizing:border-box!important;
}
body.s8-staff-preview-mobile .s8-app{
  min-height:calc(100vh - 36px)!important;
  border-radius:26px!important;
  overflow:hidden!important;
  background:#f5f9fc!important;
  box-shadow:0 18px 55px rgba(28,74,106,.18)!important;
}
body.s8-staff-preview-mobile .s8-topbar,
body.s8-staff-preview-mobile .staff-profile-card,
body.s8-staff-preview-mobile .today-summary,
body.s8-staff-preview-mobile .primary-capture,
body.s8-staff-preview-mobile .staff-work-summary,
body.s8-staff-preview-mobile .s8-quick-grid{
  width:calc(100% - 24px)!important;
  max-width:none!important;
  margin-left:12px!important;
  margin-right:12px!important;
  box-sizing:border-box!important;
}
body.s8-staff-preview-mobile .s8-topbar{
  width:100%!important;
  margin:0!important;
  border-radius:26px 26px 0 0!important;
}
body.s8-staff-preview-mobile .today-summary{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
}
body.s8-staff-preview-mobile .today-summary>div{
  min-width:0!important;
  padding:10px 7px!important;
}
body.s8-staff-preview-mobile .staff-work-meta{
  grid-template-columns:1fr 1fr!important;
}
body.s8-staff-preview-mobile .s8-quick-grid{
  grid-template-columns:1fr 1fr!important;
  gap:10px!important;
}
body.s8-staff-preview-mobile .bottom-nav,
body.s8-staff-preview-mobile .s8-bottom-nav,
body.s8-staff-preview-mobile nav.bottom-navigation,
body.s8-staff-preview-mobile .mobile-bottom-nav{
  position:fixed!important;
  left:50%!important;
  right:auto!important;
  bottom:18px!important;
  transform:translateX(-50%)!important;
  width:430px!important;
  max-width:430px!important;
  min-width:430px!important;
  margin:0!important;
  z-index:999!important;
  box-sizing:border-box!important;
}
body.s8-staff-preview-mobile #screenHome,
body.s8-staff-preview-mobile #screenHistory,
body.s8-staff-preview-mobile #screenCamera,
body.s8-staff-preview-mobile #screenConfirm{
  padding-bottom:105px!important;
}
@media(max-width:480px){
  body.s8-staff-preview-mobile{padding:0!important}
  body.s8-staff-preview-mobile #page,
  body.s8-staff-preview-mobile .site,
  body.s8-staff-preview-mobile .site-content,
  body.s8-staff-preview-mobile main,
  body.s8-staff-preview-mobile .s8-app{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
  }
  body.s8-staff-preview-mobile .s8-app{
    min-height:100vh!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
  body.s8-staff-preview-mobile .s8-topbar{border-radius:0!important}
  body.s8-staff-preview-mobile .bottom-nav,
  body.s8-staff-preview-mobile .s8-bottom-nav,
  body.s8-staff-preview-mobile nav.bottom-navigation,
  body.s8-staff-preview-mobile .mobile-bottom-nav{
    bottom:0!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
  }
}

/* =========================================================
   V5.50 CTV TABBED MOBILE APP
   ========================================================= */
.ctv-tabbed-app{
  height:100dvh!important;
  min-height:100dvh!important;
  max-height:100dvh!important;
  display:grid!important;
  grid-template-rows:auto auto auto minmax(0,1fr)!important;
  overflow:hidden!important;
  background:#f3f8fc!important;
}
.ctv-tabbed-app .ctv-topbar{
  min-height:74px!important;
  padding:12px 18px!important;
  flex-shrink:0;
}
.ctv-compact-profile{
  display:grid;
  grid-template-columns:58px minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  margin:12px 14px 10px;
  padding:14px;
  border-radius:20px;
  color:#fff;
  background:linear-gradient(135deg,#0d428f,#087bd9);
  box-shadow:0 12px 28px rgba(9,78,145,.2);
}
.ctv-compact-profile .ctv-avatar{
  width:58px!important;height:58px!important;font-size:23px!important;
}
.ctv-compact-copy{min-width:0}
.ctv-compact-copy span,.ctv-compact-copy h2,.ctv-compact-copy small{display:block}
.ctv-compact-copy span{font-size:8px;letter-spacing:.14em;font-weight:900;color:#b9ddff}
.ctv-compact-copy h2{margin:3px 0;font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ctv-compact-copy small{font-size:9px;color:#d8efff}.ctv-compact-copy small i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#2be297}
.ctv-compact-profile em{max-width:105px;padding:7px 9px;border-radius:999px;background:rgba(255,255,255,.14);font-size:8px;font-weight:800;font-style:normal;text-align:center}
.ctv-mini-notice{margin:0 14px 8px;padding:9px 12px;border-radius:11px;font-size:9px}.ctv-mini-notice.success{background:#e9f9f1;color:#137a54}
.ctv-app-tabs{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:5px;
  margin:0 14px 10px;
  padding:5px;
  border-radius:16px;
  background:#e7f0f7;
}
.ctv-app-tabs button{
  min-width:0;height:52px;border:0;border-radius:12px;background:transparent;color:#71879a;font-family:inherit;
}
.ctv-app-tabs button span,.ctv-app-tabs button b{display:block}
.ctv-app-tabs button span{font-size:16px;line-height:18px}.ctv-app-tabs button b{margin-top:3px;font-size:8px}
.ctv-app-tabs button.active{background:#fff;color:#0877c9;box-shadow:0 6px 16px rgba(34,80,112,.1)}
.ctv-tab-content{
  min-height:0!important;
  overflow:hidden!important;
  padding:0 14px 14px!important;
}
.ctv-tab-panel{
  display:none!important;
  height:100%!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
  padding-bottom:18px;
  scrollbar-width:none;
}
.ctv-tab-panel::-webkit-scrollbar{display:none}
.ctv-tab-panel.active{display:block!important}
.ctv-overview-hero,.ctv-work-card,.ctv-panel-heading+.ctv-step-timeline,.ctv-app-form{
  border:1px solid #d8e6ef;
  border-radius:19px;
  background:#fff;
  box-shadow:0 9px 24px rgba(29,76,109,.06);
}
.ctv-overview-hero{padding:18px}
.ctv-overview-hero>span,.ctv-panel-heading>span{font-size:8px;letter-spacing:.14em;font-weight:900;color:#1480c8}
.ctv-overview-hero h1{margin:7px 0;font-size:23px;color:#153c58}.ctv-overview-hero p{margin:0 0 14px;font-size:10px;line-height:1.5;color:#738b9e}
.ctv-overview-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:10px}
.ctv-overview-grid article{padding:13px;border:1px solid #dce8ef;border-radius:15px;background:#fff}
.ctv-overview-grid span,.ctv-overview-grid strong,.ctv-overview-grid small{display:block}.ctv-overview-grid span{font-size:8px;color:#7c91a1}.ctv-overview-grid strong{margin:5px 0;font-size:13px;color:#123c59}.ctv-overview-grid small{font-size:8px;color:#8296a5}
.ctv-support-action{display:grid;grid-template-columns:42px minmax(0,1fr) 20px;gap:10px;align-items:center;margin-top:10px;padding:12px;border-radius:16px;background:linear-gradient(135deg,#148aec,#16b9cf);color:#fff;text-decoration:none}.ctv-support-action>div{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:rgba(255,255,255,.14);font-size:20px}.ctv-support-action small,.ctv-support-action strong{display:block}.ctv-support-action small{font-size:7px;letter-spacing:.1em}.ctv-support-action strong{margin-top:3px;font-size:13px}
.ctv-receive-action{margin-top:10px}.ctv-receive-action button{width:100%;display:grid;grid-template-columns:42px minmax(0,1fr) 20px;gap:10px;align-items:center;padding:12px;border:0;border-radius:16px;background:linear-gradient(135deg,#13ad75,#0f99cc);color:#fff;text-align:left;font-family:inherit}.ctv-receive-action button>span{font-size:23px}.ctv-receive-action small,.ctv-receive-action strong{display:block}.ctv-receive-action small{font-size:7px}.ctv-receive-action strong{font-size:12px;margin-top:3px}
.ctv-panel-heading{padding:4px 2px 10px}.ctv-panel-heading h2{margin:5px 0 0;font-size:20px;color:#143d59}
.ctv-step-timeline{padding:14px}.ctv-step-timeline>div{display:grid;grid-template-columns:28px minmax(0,1fr);gap:10px;position:relative;padding-bottom:13px}.ctv-step-timeline>div:not(:last-child):after{content:"";position:absolute;left:13px;top:28px;bottom:0;width:2px;background:#dbe6ed}.ctv-step-timeline b{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#edf3f7;color:#8193a0;font-size:9px;z-index:1}.ctv-step-timeline .done b{background:#e2f8ee;color:#14835b}.ctv-step-timeline .current b{background:#1488e8;color:#fff}.ctv-step-timeline strong,.ctv-step-timeline small{display:block}.ctv-step-timeline strong{font-size:10px;color:#173d59}.ctv-step-timeline small{margin-top:3px;font-size:8px;color:#8597a4}
.ctv-work-card{margin-top:10px;padding:16px}.ctv-work-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.ctv-work-kpis>div{padding:10px 7px;border-radius:12px;background:#f1f7fb}.ctv-work-kpis small,.ctv-work-kpis strong,.ctv-work-kpis em{display:block}.ctv-work-kpis small{font-size:7px;color:#7890a1}.ctv-work-kpis strong{margin:4px 0;font-size:17px;color:#0878c9}.ctv-work-kpis em{font-size:7px;color:#8295a3;font-style:normal}
.ctv-app-form{padding:14px}.ctv-app-form label{display:block;margin-bottom:10px}.ctv-app-form label span{display:block;margin:0 0 5px;font-size:8px;font-weight:800;color:#284a62}.ctv-app-form input,.ctv-app-form select,.ctv-app-form textarea{width:100%;box-sizing:border-box;border:1px solid #d5e3ec;border-radius:12px;background:#fbfdff;padding:11px;font-family:inherit;font-size:10px;outline:0}.ctv-app-form textarea{min-height:72px;resize:none}.ctv-app-form button{width:100%;height:48px;border:0;border-radius:13px;background:linear-gradient(135deg,#1488ee,#1766ec);color:#fff;font-family:inherit;font-size:11px;font-weight:900}.ctv-bank-security{display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;align-items:center;margin-bottom:12px;padding:11px;border-radius:13px;background:#edf8ff}.ctv-bank-security>span{font-size:22px}.ctv-bank-security strong,.ctv-bank-security small{display:block}.ctv-bank-security strong{font-size:10px}.ctv-bank-security small{margin-top:3px;font-size:8px;color:#758c9e}
@media(max-width:380px){.ctv-app-tabs button b{font-size:7px}.ctv-compact-profile{grid-template-columns:52px minmax(0,1fr)}.ctv-compact-profile em{display:none}.ctv-work-kpis{grid-template-columns:1fr 1fr}.ctv-work-kpis>div:last-child{grid-column:1/-1}}

/* =========================================================
   V5.51 CTV TAB OVERLAP & MOBILE SPACING FIX
   ========================================================= */

.ctv-tabbed-app{
  grid-template-rows:auto auto auto minmax(0,1fr)!important;
}

.ctv-tabbed-app .ctv-app-tabs{
  position:relative!important;
  z-index:10!important;
  margin:0 14px 12px!important;
  min-height:64px!important;
  padding:6px!important;
  flex-shrink:0!important;
}

.ctv-tabbed-app .ctv-app-tabs button{
  height:52px!important;
  padding:5px 2px!important;
  line-height:1.1!important;
  overflow:hidden!important;
}

.ctv-tabbed-app .ctv-app-tabs button span{
  height:20px!important;
  line-height:20px!important;
}

.ctv-tabbed-app .ctv-app-tabs button b{
  line-height:13px!important;
  white-space:nowrap!important;
}

.ctv-tabbed-app .ctv-tab-content{
  position:relative!important;
  z-index:1!important;
  min-height:0!important;
  overflow:hidden!important;
  padding:0 14px 16px!important;
}

.ctv-tabbed-app .ctv-tab-panel{
  box-sizing:border-box!important;
  padding-top:8px!important;
}

.ctv-tabbed-app .ctv-panel-heading{
  position:relative!important;
  z-index:1!important;
  min-height:58px!important;
  margin:0 0 10px!important;
  padding:10px 4px 12px!important;
  background:#f3f8fc!important;
}

.ctv-tabbed-app .ctv-panel-heading span{
  display:block!important;
  margin-bottom:7px!important;
  line-height:1.3!important;
}

.ctv-tabbed-app .ctv-panel-heading h2{
  display:block!important;
  margin:0!important;
  line-height:1.2!important;
  font-size:20px!important;
  word-break:break-word!important;
}

.ctv-tabbed-app .ctv-step-timeline,
.ctv-tabbed-app .ctv-app-form,
.ctv-tabbed-app .ctv-work-card{
  position:relative!important;
  z-index:1!important;
  margin-top:0!important;
}

.ctv-tabbed-app .ctv-work-card .ctv-panel-heading{
  min-height:auto!important;
  padding:0 0 12px!important;
  margin:0!important;
  background:transparent!important;
}

/* Hồ sơ và ngân hàng không để tiêu đề đè lên form */
.ctv-tab-panel[data-ctv-panel="profile"] .ctv-app-form,
.ctv-tab-panel[data-ctv-panel="bank"] .ctv-app-form{
  margin-top:0!important;
}

/* Tối ưu điện thoại màn hình thấp */
@media(max-width:480px){
  .ctv-tabbed-app .ctv-topbar{
    min-height:70px!important;
    padding:10px 16px!important;
  }

  .ctv-compact-profile{
    margin:10px 12px 8px!important;
    padding:12px!important;
  }

  .ctv-tabbed-app .ctv-app-tabs{
    margin:0 12px 10px!important;
    min-height:60px!important;
  }

  .ctv-tabbed-app .ctv-tab-content{
    padding:0 12px 12px!important;
  }

  .ctv-tabbed-app .ctv-panel-heading{
    min-height:54px!important;
    padding:8px 3px 10px!important;
  }

  .ctv-tabbed-app .ctv-panel-heading h2{
    font-size:18px!important;
  }
}

/* Màn hình rất hẹp */
@media(max-width:360px){
  .ctv-tabbed-app .ctv-app-tabs button b{
    font-size:6.5px!important;
  }

  .ctv-tabbed-app .ctv-panel-heading h2{
    font-size:17px!important;
  }
}

/* =========================================================
   V5.52 PREMIUM AUTH UI + AUTO LOGIN
   ========================================================= */
.s8-auth-page{
  min-height:100dvh!important;
  display:grid!important;
  grid-template-columns:minmax(0,1.08fr) minmax(480px,.92fr)!important;
  gap:0!important;
  padding:0!important;
  overflow:hidden!important;
  background:#f3f8fc!important;
}
.s8-auth-visual{
  position:relative!important;
  min-height:100dvh!important;
  padding:64px 72px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:space-between!important;
  overflow:hidden!important;
  background:
    radial-gradient(circle at 18% 14%,rgba(52,212,255,.35),transparent 27%),
    radial-gradient(circle at 88% 85%,rgba(32,164,255,.42),transparent 34%),
    linear-gradient(145deg,#0750af 0%,#0d6fde 48%,#12b9d1 100%)!important;
}
.s8-auth-visual:before,
.s8-auth-visual:after{
  content:"";
  position:absolute;
  border:1px solid rgba(255,255,255,.12);
  border-radius:50%;
  pointer-events:none;
}
.s8-auth-visual:before{
  width:620px;height:620px;right:-270px;bottom:-260px;
  box-shadow:0 0 0 70px rgba(255,255,255,.025),0 0 0 150px rgba(255,255,255,.018);
}
.s8-auth-visual:after{
  width:260px;height:260px;left:-130px;top:32%;
  background:rgba(255,255,255,.025);
}
.s8-auth-brand{
  position:relative;z-index:2;
  display:flex!important;align-items:center!important;gap:12px!important;
  color:#fff!important;
}
.s8-auth-brand b,
.s8-auth-mobile-logo b{
  width:58px!important;height:58px!important;
  display:grid!important;place-items:center!important;
  border-radius:18px!important;
  background:linear-gradient(135deg,#18c7df,#1769ff)!important;
  box-shadow:0 12px 30px rgba(0,37,119,.25)!important;
  font-size:25px!important;font-style:italic!important;
}
.s8-auth-brand span{font-size:22px!important;font-weight:900!important}
.s8-auth-brand em{
  padding:6px 9px;border:1px solid rgba(255,255,255,.22);
  border-radius:999px;font-size:8px;font-style:normal;letter-spacing:.12em;
}
.s8-auth-visual-copy{
  position:relative!important;z-index:2!important;
  max-width:660px!important;color:#fff!important;
}
.s8-auth-visual-copy>small{
  font-size:10px!important;font-weight:900!important;letter-spacing:.18em!important;
  color:#b8edff!important;
}
.s8-auth-visual-copy h2{
  margin:18px 0!important;
  max-width:650px!important;
  font-size:48px!important;line-height:1.12!important;
  color:#fff!important;letter-spacing:-.025em!important;
}
.s8-auth-visual-copy p{
  max-width:620px!important;font-size:15px!important;line-height:1.65!important;
  color:#d8efff!important;
}
.s8-auth-visual-copy>div{
  display:flex!important;gap:10px!important;flex-wrap:wrap!important;margin-top:30px!important;
}
.s8-auth-visual-copy>div span{
  padding:10px 14px!important;border:1px solid rgba(255,255,255,.2)!important;
  border-radius:999px!important;background:rgba(255,255,255,.08)!important;
  backdrop-filter:blur(10px)!important;font-size:10px!important;color:#fff!important;
}
.s8-auth-panel{
  min-height:100dvh!important;
  display:grid!important;place-items:center!important;
  padding:42px!important;
  background:
    radial-gradient(circle at 85% 8%,rgba(21,156,233,.08),transparent 32%),
    #f5f9fc!important;
}
.s8-auth-card{
  width:100%!important;max-width:520px!important;
  max-height:calc(100dvh - 84px)!important;
  overflow-y:auto!important;scrollbar-width:none!important;
  padding:34px 36px!important;
  border:1px solid #d9e6ef!important;border-radius:30px!important;
  background:rgba(255,255,255,.94)!important;
  box-shadow:0 26px 70px rgba(23,67,99,.14)!important;
  backdrop-filter:blur(18px)!important;
  box-sizing:border-box!important;
}
.s8-auth-card::-webkit-scrollbar{display:none!important}
.s8-auth-mobile-logo{
  display:none!important;align-items:center!important;gap:12px!important;
  margin-bottom:25px!important;
}
.s8-auth-mobile-logo span{font-size:17px!important;font-weight:900!important;color:#123b58!important}
.s8-auth-heading{margin-bottom:27px!important}
.s8-auth-heading>span{
  display:block!important;margin-bottom:9px!important;
  font-size:9px!important;font-weight:900!important;letter-spacing:.17em!important;color:#0879cc!important;
}
.s8-auth-heading h1{
  margin:0!important;font-size:31px!important;line-height:1.15!important;
  letter-spacing:-.025em!important;color:#102f49!important;
}
.s8-auth-heading p{
  margin:9px 0 0!important;font-size:11px!important;line-height:1.55!important;color:#7b90a1!important;
}
.s8-auth-form{display:grid!important;gap:17px!important}
.s8-auth-form label>span{
  display:block!important;margin-bottom:7px!important;
  font-size:9px!important;font-weight:900!important;color:#21455e!important;
}
.s8-auth-input{
  min-height:58px!important;
  display:grid!important;grid-template-columns:35px minmax(0,1fr)!important;
  align-items:center!important;
  border:1px solid #d4e3ed!important;border-radius:16px!important;
  background:#fbfdff!important;transition:.18s ease!important;
}
.s8-auth-input:focus-within{
  border-color:#1785e2!important;background:#fff!important;
  box-shadow:0 0 0 4px rgba(23,133,226,.09)!important;
}
.s8-auth-input i{
  display:grid!important;place-items:center!important;
  font-size:15px!important;font-style:normal!important;color:#3788c2!important;
}
.s8-auth-input input{
  width:100%!important;height:56px!important;border:0!important;outline:0!important;
  background:transparent!important;font-family:inherit!important;font-size:12px!important;
  color:#173a55!important;box-sizing:border-box!important;
}
.s8-auth-input input::placeholder{color:#9aaab6!important}
.s8-field-help{
  margin:7px 3px 0!important;font-size:9px!important;line-height:1.45!important;color:#8498a7!important;
}
.s8-auth-options{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:12px!important;font-size:9px!important;
}
.s8-auth-options label{display:flex!important;align-items:center!important;gap:6px!important;color:#5f7688!important}
.s8-auth-options a,.s8-auth-switch a{color:#0878cf!important;font-weight:900!important;text-decoration:none!important}
.s8-auth-submit{
  min-height:58px!important;border:0!important;border-radius:16px!important;
  background:linear-gradient(135deg,#0b8bf0,#1c5bef)!important;color:#fff!important;
  font-family:inherit!important;font-size:11px!important;font-weight:900!important;
  box-shadow:0 13px 27px rgba(18,107,230,.23)!important;
  transition:.18s ease!important;
}
.s8-auth-submit:hover{transform:translateY(-1px)!important;box-shadow:0 17px 33px rgba(18,107,230,.29)!important}
.s8-auth-submit b{float:right!important;font-size:15px!important}
.s8-auth-switch{
  margin-top:22px!important;padding-top:20px!important;border-top:1px solid #e2ebf1!important;
  text-align:center!important;font-size:9px!important;color:#637b8d!important;
}
.s8-register-note{
  padding:12px 14px!important;border-radius:13px!important;
  background:linear-gradient(135deg,#edf7ff,#f1f8fc)!important;
  font-size:9px!important;line-height:1.55!important;color:#70889a!important;
}
.s8-auth-notice{
  margin-bottom:16px!important;padding:12px 14px!important;border-radius:13px!important;
  font-size:10px!important;line-height:1.45!important;
}
.s8-auth-notice.success{background:#e8f9f0!important;color:#147851!important}
.s8-auth-notice.error{background:#ffedf0!important;color:#b63d51!important}
.ctv-welcome-notice b,.ctv-welcome-notice span{display:block!important}
.ctv-welcome-notice span{margin-top:3px!important;font-size:8px!important}

/* Tablet */
@media(max-width:1050px){
  .s8-auth-page{grid-template-columns:minmax(330px,.8fr) minmax(440px,1.2fr)!important}
  .s8-auth-visual{padding:48px 38px!important}
  .s8-auth-visual-copy h2{font-size:36px!important}
}

/* Mobile app authentication */
@media(max-width:760px){
  .s8-auth-page{
    display:block!important;min-height:100dvh!important;
    padding:0!important;background:#eef5fa!important;
  }
  .s8-auth-visual{display:none!important}
  .s8-auth-panel{
    min-height:100dvh!important;padding:0!important;
    align-items:stretch!important;background:
      linear-gradient(160deg,#067cd7 0,#11b9d0 215px,#f3f8fc 216px)!important;
  }
  .s8-auth-card{
    width:100%!important;max-width:480px!important;min-height:100dvh!important;
    max-height:none!important;margin:0 auto!important;padding:28px 20px 40px!important;
    border:0!important;border-radius:0!important;background:transparent!important;
    box-shadow:none!important;
  }
  .s8-auth-mobile-logo{
    display:flex!important;color:#fff!important;margin:0 0 28px!important;
  }
  .s8-auth-mobile-logo b{
    width:54px!important;height:54px!important;border-radius:17px!important;
    background:rgba(255,255,255,.18)!important;box-shadow:none!important;
  }
  .s8-auth-mobile-logo span{color:#fff!important;font-size:19px!important}
  .s8-auth-heading,
  .s8-auth-form,
  .s8-auth-switch,
  .s8-auth-notice{
    position:relative!important;z-index:2!important;
  }
  .s8-auth-heading{
    padding:25px 22px 0!important;margin:0!important;
    border-radius:25px 25px 0 0!important;background:#fff!important;
  }
  .s8-auth-heading h1{font-size:27px!important}
  .s8-auth-form{
    padding:24px 22px!important;background:#fff!important;
  }
  .s8-auth-switch{
    margin:0!important;padding:18px 22px 25px!important;
    border-radius:0 0 25px 25px!important;background:#fff!important;
  }
  .s8-auth-notice{
    margin:0 0 10px!important;
  }
}

/* Small phone */
@media(max-width:380px){
  .s8-auth-card{padding-left:13px!important;padding-right:13px!important}
  .s8-auth-heading{padding-left:17px!important;padding-right:17px!important}
  .s8-auth-form{padding-left:17px!important;padding-right:17px!important}
  .s8-auth-switch{padding-left:17px!important;padding-right:17px!important}
  .s8-auth-heading h1{font-size:24px!important}
}

/* =========================================================
   V5.53 CTV PERSISTENT APP TABS IN CAPTURE MODE
   ========================================================= */
.ctv-live-app{
  display:grid!important;
  grid-template-rows:auto auto auto minmax(0,1fr)!important;
  height:100dvh!important;
  max-height:100dvh!important;
  overflow:hidden!important;
}
.ctv-live-profile{
  display:grid;
  grid-template-columns:50px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  margin:10px 12px 8px;
  padding:11px 12px;
  border-radius:18px;
  background:linear-gradient(135deg,#0c458f,#087dd8);
  color:#fff;
  box-shadow:0 9px 22px rgba(15,79,143,.17);
}
.ctv-live-profile .ctv-avatar{
  width:50px!important;height:50px!important;font-size:20px!important;
}
.ctv-live-profile>div:nth-child(2){min-width:0}
.ctv-live-profile span,.ctv-live-profile strong,.ctv-live-profile small{display:block}
.ctv-live-profile span{font-size:7px;letter-spacing:.13em;font-weight:900;color:#c0e2ff}
.ctv-live-profile strong{margin:3px 0;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ctv-live-profile small{font-size:8px;color:#d9efff}.ctv-live-profile small i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#27df91}
.ctv-live-profile em{max-width:94px;padding:6px 8px;border-radius:999px;background:rgba(255,255,255,.14);font-size:7px;font-style:normal;text-align:center}
.ctv-live-tabs{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:4px;
  margin:0 12px 9px;
  padding:4px;
  border-radius:15px;
  background:#e7f0f7;
  z-index:20;
}
.ctv-live-tabs button{
  height:48px;
  padding:3px 1px;
  border:0;
  border-radius:11px;
  background:transparent;
  color:#708799;
  font-family:inherit;
  overflow:hidden;
}
.ctv-live-tabs span,.ctv-live-tabs b{display:block}
.ctv-live-tabs span{font-size:14px;line-height:18px}
.ctv-live-tabs b{margin-top:2px;font-size:6.8px;line-height:11px;white-space:nowrap}
.ctv-live-tabs button.active{
  background:#fff;color:#0878c8;
  box-shadow:0 5px 14px rgba(31,75,107,.1);
}
.ctv-live-app .s8-main{
  min-height:0!important;
  overflow:hidden!important;
}
.ctv-live-panel{
  display:none!important;
  height:100%!important;
  overflow-y:auto!important;
  padding:4px 12px 96px!important;
  box-sizing:border-box!important;
  scrollbar-width:none;
}
.ctv-live-panel::-webkit-scrollbar{display:none}
.ctv-live-panel.active{display:block!important}
.ctv-live-heading{
  padding:14px;
  border:1px solid #d8e6ef;
  border-radius:17px;
  background:linear-gradient(135deg,#fff,#f0f8ff);
}
.ctv-live-heading span{display:block;font-size:7px;letter-spacing:.14em;font-weight:900;color:#0a80ca}
.ctv-live-heading h2{margin:5px 0;font-size:20px;line-height:1.2;color:#143c58}
.ctv-live-heading p{margin:0;font-size:9px;line-height:1.5;color:#778d9e}
.ctv-live-overview-grid{
  display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:9px;
}
.ctv-live-overview-grid article{
  padding:12px;border:1px solid #dbe7ef;border-radius:14px;background:#fff;
}
.ctv-live-overview-grid span,.ctv-live-overview-grid strong,.ctv-live-overview-grid small{display:block}
.ctv-live-overview-grid span{font-size:7px;color:#7c91a2}
.ctv-live-overview-grid strong{margin:4px 0;font-size:15px;color:#0879c9}
.ctv-live-overview-grid small{font-size:7px;color:#8496a4}
.ctv-live-progress{
  height:9px;margin-top:10px;border-radius:999px;background:#e2edf3;overflow:hidden;
}
.ctv-live-progress i{
  display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#13b78b,#1597e8);
}
.ctv-live-support{
  display:grid;grid-template-columns:38px minmax(0,1fr) 15px;gap:9px;align-items:center;
  margin-top:10px;padding:11px;border-radius:15px;background:linear-gradient(135deg,#148bed,#12b7ce);
  color:#fff;text-decoration:none;
}
.ctv-live-support>span{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:rgba(255,255,255,.14);font-size:18px}
.ctv-live-support small,.ctv-live-support strong{display:block}
.ctv-live-support small{font-size:6px}.ctv-live-support strong{margin-top:3px;font-size:12px}
.ctv-go-capture{
  width:100%;height:48px;margin-top:10px;border:0;border-radius:14px;
  background:linear-gradient(135deg,#0c86ed,#1b5ff0);color:#fff;
  font-family:inherit;font-size:10px;font-weight:900;
}
.ctv-live-timeline{
  margin-top:9px;padding:14px;border:1px solid #d8e6ef;border-radius:17px;background:#fff;
}
.ctv-live-timeline>div{display:grid;grid-template-columns:28px minmax(0,1fr);gap:9px;position:relative;padding-bottom:12px}
.ctv-live-timeline>div:not(:last-child):after{content:"";position:absolute;left:13px;top:28px;bottom:0;width:2px;background:#dce7ee}
.ctv-live-timeline b{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#edf3f7;color:#8093a1;font-size:8px;z-index:1}
.ctv-live-timeline .done b{background:#e3f8ee;color:#14815a}.ctv-live-timeline .current b{background:#1186e6;color:#fff}
.ctv-live-timeline strong,.ctv-live-timeline small{display:block}.ctv-live-timeline strong{font-size:9px;color:#183e59}.ctv-live-timeline small{margin-top:3px;font-size:7px;color:#8497a5}
.ctv-live-work-card{
  margin-top:9px;padding:14px;border:1px solid #d8e6ef;border-radius:17px;background:#fff;
}
.ctv-live-work-card>span{font-size:7px;letter-spacing:.13em;font-weight:900;color:#0c7dc7}
.ctv-live-work-card h3{margin:5px 0 12px;font-size:18px;color:#143c58}
.ctv-live-work-card>div:nth-of-type(1){display:grid;grid-template-columns:repeat(3,auto 1fr);gap:4px 7px;align-items:end}
.ctv-live-work-card b{font-size:17px;color:#087ac9}.ctv-live-work-card small{font-size:7px;color:#8194a2}
.ctv-live-form{
  margin-top:9px;padding:14px;border:1px solid #d8e6ef;border-radius:17px;background:#fff;
}
.ctv-live-form label{display:block;margin-bottom:9px}.ctv-live-form label span{display:block;margin-bottom:5px;font-size:8px;font-weight:800;color:#27495f}
.ctv-live-form input,.ctv-live-form select,.ctv-live-form textarea{
  width:100%;box-sizing:border-box;padding:11px;border:1px solid #d5e3ec;border-radius:12px;background:#fbfdff;font-family:inherit;font-size:10px;outline:0;
}
.ctv-live-form textarea{min-height:70px;resize:none}.ctv-live-form button{width:100%;height:47px;border:0;border-radius:13px;background:linear-gradient(135deg,#1289ed,#1762ed);color:#fff;font-family:inherit;font-size:10px;font-weight:900}
.ctv-live-security{margin-bottom:11px;padding:10px;border-radius:12px;background:#edf8ff;color:#317394;font-size:8px}
.ctv-live-app .s8-screen{padding-top:0!important}
.ctv-live-app .s8-bottom-nav{display:none!important}
.ctv-live-app .s8-main{padding-bottom:0!important}
.ctv-info-view .ctv-live-app .s8-main{overflow:hidden!important}
@media(max-width:370px){
  .ctv-live-profile em{display:none}
  .ctv-live-profile{grid-template-columns:46px minmax(0,1fr)}
  .ctv-live-tabs b{font-size:6px}
  .ctv-live-overview-grid{grid-template-columns:1fr}
}

/* =========================================================
   V5.54 UNIFIED CTV PROFILE CARD
   ========================================================= */
.ctv-profile-unified{
  min-height:76px!important;
  grid-template-columns:54px minmax(0,1fr) auto!important;
  gap:11px!important;
  margin:10px 12px 8px!important;
  padding:12px 13px!important;
  border:1px solid rgba(255,255,255,.16)!important;
  background:
    radial-gradient(circle at 88% 20%,rgba(43,188,255,.32),transparent 33%),
    linear-gradient(135deg,#0c3f8d 0%,#086ed3 58%,#0ca5df 100%)!important;
  box-shadow:0 12px 28px rgba(10,71,136,.2)!important;
}
.ctv-profile-unified .ctv-avatar{
  width:54px!important;
  height:54px!important;
  border:3px solid rgba(255,255,255,.24)!important;
  background:rgba(255,255,255,.12)!important;
  box-shadow:inset 0 0 0 5px rgba(255,255,255,.08)!important;
}
.ctv-profile-unified-copy{
  min-width:0!important;
}
.ctv-profile-unified-copy span,
.ctv-profile-unified-copy strong,
.ctv-profile-unified-copy small{
  display:block!important;
}
.ctv-profile-unified-copy span{
  font-size:7px!important;
  letter-spacing:.15em!important;
  font-weight:900!important;
  color:#c8e8ff!important;
}
.ctv-profile-unified-copy strong{
  margin:3px 0 4px!important;
  font-size:17px!important;
  line-height:1.15!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.ctv-profile-unified-copy small{
  font-size:8px!important;
  color:#e1f4ff!important;
}
.ctv-profile-unified-copy small i{
  width:7px!important;
  height:7px!important;
  background:#2ce29a!important;
}
.ctv-profile-unified-meta{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-end!important;
  gap:6px!important;
  max-width:105px!important;
}
.ctv-profile-unified-meta b{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:48px!important;
  padding:6px 8px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.18)!important;
  color:#fff!important;
  font-size:8px!important;
  font-weight:900!important;
}
.ctv-profile-unified-meta em{
  display:block!important;
  max-width:105px!important;
  padding:5px 7px!important;
  border-radius:999px!important;
  background:rgba(10,40,93,.22)!important;
  color:#dff3ff!important;
  font-size:6.5px!important;
  line-height:1.2!important;
  text-align:center!important;
  font-style:normal!important;
}

/* Chụp ảnh bắt đầu ngay dưới tab, không còn thẻ hồ sơ thứ hai */
.ctv-live-app #screenHome{
  padding-top:4px!important;
}
.ctv-live-app #screenHome .today-summary{
  margin-top:4px!important;
}
.ctv-live-app #screenHome .primary-capture{
  margin-top:9px!important;
}

/* Giảm chiều cao tổng thể để nhìn được nhiều nội dung hơn */
.ctv-live-tabs{
  margin-bottom:7px!important;
}
.ctv-live-tabs button{
  height:46px!important;
}
.ctv-live-app .s8-main{
  margin-top:0!important;
}

@media(max-width:370px){
  .ctv-profile-unified{
    grid-template-columns:50px minmax(0,1fr) auto!important;
    padding:11px!important;
  }
  .ctv-profile-unified .ctv-avatar{
    width:50px!important;
    height:50px!important;
  }
  .ctv-profile-unified-copy strong{
    font-size:15px!important;
  }
  .ctv-profile-unified-meta{
    max-width:78px!important;
  }
  .ctv-profile-unified-meta em{
    display:none!important;
  }
}

/* V5.57 MULTI-ACCOUNT LOGIN */
.s8-auth-form label:first-of-type .s8-field-help{
  display:block!important;
  margin:7px 3px 0!important;
  color:#7790a2!important;
  font-size:9px!important;
  line-height:1.45!important;
}
.s8-auth-input input[name="username"]{
  text-transform:none!important;
}

/* =========================================================
   V5.58 FORCE ALL USER DATABASE APPS TO MOBILE UI
   Applies to: Staff / CTV / Supervisor
   Admin and Operation Manager remain desktop.
   ========================================================= */

body.s8-force-mobile-role{
  margin:0!important;
  padding:0!important;
  min-height:100vh!important;
  overflow-x:hidden!important;
  background:
    radial-gradient(circle at 50% 0%,rgba(21,150,234,.13),transparent 38%),
    #edf5fa!important;
}

/* WordPress wrappers */
body.s8-force-mobile-role #page,
body.s8-force-mobile-role .site,
body.s8-force-mobile-role .site-content,
body.s8-force-mobile-role main{
  width:100%!important;
  max-width:430px!important;
  min-width:320px!important;
  margin:0 auto!important;
  padding:0!important;
  box-sizing:border-box!important;
  overflow-x:hidden!important;
}

/* All app roots */
body.s8-force-mobile-role .s8-app,
body.s8-force-mobile-role .ctv-mobile-app,
body.s8-force-mobile-role .ctv-tabbed-app,
body.s8-force-mobile-role .ctv-live-app,
body.s8-force-mobile-role .supervisor-mobile,
body.s8-force-mobile-role .supervisor-app{
  width:100%!important;
  max-width:430px!important;
  min-width:320px!important;
  min-height:100dvh!important;
  margin:0 auto!important;
  border-radius:0!important;
  background:#f4f8fc!important;
  box-shadow:0 0 42px rgba(25,70,102,.15)!important;
  overflow-x:hidden!important;
  box-sizing:border-box!important;
}

/* Headers */
body.s8-force-mobile-role .s8-topbar,
body.s8-force-mobile-role .ctv-topbar,
body.s8-force-mobile-role .supervisor-topbar{
  width:100%!important;
  max-width:430px!important;
  margin:0!important;
  border-radius:0!important;
  box-sizing:border-box!important;
}

/* Prevent desktop stretching */
body.s8-force-mobile-role .staff-profile-card,
body.s8-force-mobile-role .today-summary,
body.s8-force-mobile-role .primary-capture,
body.s8-force-mobile-role .staff-work-summary,
body.s8-force-mobile-role .s8-quick-grid,
body.s8-force-mobile-role .ctv-profile-card,
body.s8-force-mobile-role .ctv-status-card,
body.s8-force-mobile-role .ctv-live-profile,
body.s8-force-mobile-role .ctv-live-tabs,
body.s8-force-mobile-role .supervisor-profile,
body.s8-force-mobile-role .supervisor-stats,
body.s8-force-mobile-role .supervisor-tabs,
body.s8-force-mobile-role .supervisor-gps-card,
body.s8-force-mobile-role .supervisor-capture-card{
  width:calc(100% - 24px)!important;
  max-width:none!important;
  margin-left:12px!important;
  margin-right:12px!important;
  box-sizing:border-box!important;
}

/* Staff mobile grids */
body.s8-role-staff-mobile .today-summary{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
}
body.s8-role-staff-mobile .staff-work-meta{
  grid-template-columns:1fr 1fr!important;
}
body.s8-role-staff-mobile .s8-quick-grid{
  grid-template-columns:1fr 1fr!important;
  gap:10px!important;
}

/* CTV tabs always mobile */
body.s8-role-ctv-mobile .ctv-app-tabs,
body.s8-role-ctv-mobile .ctv-live-tabs{
  display:grid!important;
  width:calc(100% - 24px)!important;
  margin:0 12px 10px!important;
}
body.s8-role-ctv-mobile .ctv-app-tabs{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
body.s8-role-ctv-mobile .ctv-live-tabs{
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
}
body.s8-role-ctv-mobile .ctv-tab-content,
body.s8-role-ctv-mobile .ctv-live-panel{
  width:100%!important;
  max-width:430px!important;
  box-sizing:border-box!important;
}

/* Supervisor dashboard: never render as desktop DB */
body.s8-role-supervisor-mobile .supervisor-mobile,
body.s8-role-supervisor-mobile .supervisor-app{
  display:block!important;
  width:100%!important;
}
body.s8-role-supervisor-mobile .supervisor-stats{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:10px!important;
}
body.s8-role-supervisor-mobile .supervisor-tabs{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:4px!important;
}
body.s8-role-supervisor-mobile .supervisor-tab-panel{
  width:100%!important;
  box-sizing:border-box!important;
  overflow-x:hidden!important;
}
body.s8-role-supervisor-mobile .supervisor-list,
body.s8-role-supervisor-mobile .supervisor-gps-list,
body.s8-role-supervisor-mobile .supervisor-photo-list{
  display:block!important;
  width:100%!important;
}
body.s8-role-supervisor-mobile .supervisor-item,
body.s8-role-supervisor-mobile .supervisor-employee-card{
  width:calc(100% - 24px)!important;
  margin:0 12px 10px!important;
  box-sizing:border-box!important;
}

/* Bottom navigation */
body.s8-force-mobile-role .bottom-nav,
body.s8-force-mobile-role .s8-bottom-nav,
body.s8-force-mobile-role .mobile-bottom-nav,
body.s8-force-mobile-role nav.bottom-navigation{
  position:fixed!important;
  left:50%!important;
  right:auto!important;
  bottom:0!important;
  transform:translateX(-50%)!important;
  width:100%!important;
  max-width:430px!important;
  min-width:320px!important;
  margin:0!important;
  z-index:999!important;
  box-sizing:border-box!important;
  box-shadow:0 -8px 24px rgba(20,62,92,.12)!important;
}

/* Camera and confirm screens */
body.s8-force-mobile-role .camera-stage,
body.s8-force-mobile-role .confirm-stage,
body.s8-force-mobile-role video,
body.s8-force-mobile-role canvas{
  width:100%!important;
  max-width:430px!important;
}
body.s8-force-mobile-role #screenHome,
body.s8-force-mobile-role #screenHistory,
body.s8-force-mobile-role #screenCamera,
body.s8-force-mobile-role #screenConfirm{
  padding-bottom:96px!important;
}

/* Desktop: show a centered phone app, not a stretched DB */
@media(min-width:700px){
  body.s8-force-mobile-role{
    padding:16px 0!important;
  }
  body.s8-force-mobile-role .s8-app,
  body.s8-force-mobile-role .ctv-mobile-app,
  body.s8-force-mobile-role .ctv-tabbed-app,
  body.s8-force-mobile-role .ctv-live-app,
  body.s8-force-mobile-role .supervisor-mobile,
  body.s8-force-mobile-role .supervisor-app{
    min-height:calc(100dvh - 32px)!important;
    border-radius:26px!important;
    overflow:hidden!important;
  }
  body.s8-force-mobile-role .s8-topbar,
  body.s8-force-mobile-role .ctv-topbar,
  body.s8-force-mobile-role .supervisor-topbar{
    border-radius:26px 26px 0 0!important;
  }
  body.s8-force-mobile-role .bottom-nav,
  body.s8-force-mobile-role .s8-bottom-nav,
  body.s8-force-mobile-role .mobile-bottom-nav,
  body.s8-force-mobile-role nav.bottom-navigation{
    bottom:16px!important;
  }
}

/* Real phone */
@media(max-width:480px){
  body.s8-force-mobile-role{
    padding:0!important;
  }
  body.s8-force-mobile-role #page,
  body.s8-force-mobile-role .site,
  body.s8-force-mobile-role .site-content,
  body.s8-force-mobile-role main,
  body.s8-force-mobile-role .s8-app,
  body.s8-force-mobile-role .ctv-mobile-app,
  body.s8-force-mobile-role .ctv-tabbed-app,
  body.s8-force-mobile-role .ctv-live-app,
  body.s8-force-mobile-role .supervisor-mobile,
  body.s8-force-mobile-role .supervisor-app{
    max-width:none!important;
    min-width:0!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
  body.s8-force-mobile-role .s8-topbar,
  body.s8-force-mobile-role .ctv-topbar,
  body.s8-force-mobile-role .supervisor-topbar{
    border-radius:0!important;
  }
  body.s8-force-mobile-role .bottom-nav,
  body.s8-force-mobile-role .s8-bottom-nav,
  body.s8-force-mobile-role .mobile-bottom-nav,
  body.s8-force-mobile-role nav.bottom-navigation{
    bottom:0!important;
    max-width:none!important;
    min-width:0!important;
  }
}

/* V5.59 CUSTOM LOGO */
.s8-auth-logo-img,.s8-auth-mobile-logo-img,.s8-mobile-brand-logo{display:block;object-fit:contain}.s8-auth-logo-img{width:58px;height:58px;border-radius:18px}.s8-auth-mobile-logo-img{width:54px;height:54px;border-radius:17px}.s8-mobile-brand-logo{width:42px;height:42px;border-radius:12px}.s8-brand>b.s8-mobile-brand-logo{font-size:0}.s8-brand .s8-mobile-brand-logo+strong{margin-left:8px}

/* =========================================================
   V5.60 APP DOWNLOAD ON AUTH SCREEN
   ========================================================= */
.s8-auth-mobile-logo{
  justify-content:space-between!important;
  width:100%!important;
}
.s8-auth-mobile-brand{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  min-width:0!important;
}
.s8-auth-mobile-brand span{
  color:#fff!important;
  font-size:19px!important;
  font-weight:900!important;
}
.s8-app-download-trigger{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  min-width:72px!important;
  min-height:48px!important;
  padding:7px 10px!important;
  border:1px solid rgba(255,255,255,.18)!important;
  border-radius:15px!important;
  background:rgba(255,255,255,.15)!important;
  color:#fff!important;
  font-family:inherit!important;
  cursor:pointer!important;
  backdrop-filter:blur(12px)!important;
  box-shadow:0 8px 20px rgba(0,74,142,.12)!important;
}
.s8-app-download-trigger b{
  font-size:17px!important;
  line-height:1!important;
}
.s8-app-download-trigger span{
  font-size:7px!important;
  font-weight:900!important;
  white-space:nowrap!important;
}
.s8-app-download-modal{
  position:fixed!important;
  inset:0!important;
  z-index:99999!important;
  display:none!important;
  align-items:flex-end!important;
  justify-content:center!important;
}
.s8-app-download-modal.open{display:flex!important}
.s8-app-download-backdrop{
  position:absolute!important;
  inset:0!important;
  background:rgba(10,31,48,.64)!important;
  backdrop-filter:blur(6px)!important;
}
.s8-app-download-sheet{
  position:relative!important;
  z-index:2!important;
  width:100%!important;
  max-width:430px!important;
  padding:28px 20px 24px!important;
  border-radius:28px 28px 0 0!important;
  background:#fff!important;
  text-align:center!important;
  box-sizing:border-box!important;
  animation:s8AppSheetUp .22s ease-out!important;
}
@keyframes s8AppSheetUp{from{transform:translateY(35px);opacity:0}to{transform:none;opacity:1}}
.s8-app-download-close{
  position:absolute!important;
  top:15px!important;
  right:16px!important;
  width:36px!important;
  height:36px!important;
  border:0!important;
  border-radius:11px!important;
  background:#eef5f9!important;
  color:#527087!important;
  font-size:20px!important;
}
.s8-app-download-icon{
  width:72px!important;
  height:72px!important;
  display:grid!important;
  place-items:center!important;
  margin:0 auto 15px!important;
  border-radius:22px!important;
  background:linear-gradient(135deg,#0794ed,#15bed0)!important;
  color:#fff!important;
  overflow:hidden!important;
  box-shadow:0 13px 28px rgba(13,137,213,.22)!important;
}
.s8-app-download-icon img{width:70%!important;height:70%!important;object-fit:contain!important}
.s8-app-download-icon b{font-size:26px!important;font-style:italic!important}
.s8-app-download-sheet>span{
  font-size:8px!important;
  font-weight:900!important;
  letter-spacing:.16em!important;
  color:#0780ce!important;
}
.s8-app-download-sheet h2{
  margin:7px 0!important;
  font-size:25px!important;
  color:#113a57!important;
}
.s8-app-download-sheet>p{
  margin:0 auto 18px!important;
  max-width:340px!important;
  font-size:10px!important;
  line-height:1.55!important;
  color:#748a9b!important;
}
.s8-app-download-options{
  display:grid!important;
  gap:9px!important;
}
.s8-app-download-options a{
  display:grid!important;
  grid-template-columns:44px minmax(0,1fr) 20px!important;
  gap:11px!important;
  align-items:center!important;
  min-height:64px!important;
  padding:9px 13px!important;
  border-radius:16px!important;
  text-align:left!important;
  text-decoration:none!important;
  color:#fff!important;
}
.s8-app-download-options a.android{background:linear-gradient(135deg,#13a665,#0d8d77)!important}
.s8-app-download-options a.ios{background:linear-gradient(135deg,#1b2837,#080c12)!important}
.s8-app-download-options a.direct{background:linear-gradient(135deg,#128bed,#1760ee)!important}
.s8-app-download-options a>i{
  width:44px!important;height:44px!important;display:grid!important;place-items:center!important;
  border-radius:13px!important;background:rgba(255,255,255,.14)!important;font-size:21px!important;font-style:normal!important;
}
.s8-app-download-options small,.s8-app-download-options strong{display:block!important}
.s8-app-download-options small{font-size:6px!important;letter-spacing:.1em!important;opacity:.76!important}
.s8-app-download-options strong{margin-top:3px!important;font-size:13px!important}
.s8-app-download-help{
  display:block!important;
  margin-top:14px!important;
  font-size:8px!important;
  line-height:1.45!important;
  color:#8799a5!important;
}
body.s8-modal-open{overflow:hidden!important}
@media(min-width:761px){
  .s8-auth-mobile-logo{display:flex!important}
  .s8-app-download-trigger{color:#087aca!important;background:#edf8ff!important;border-color:#d6eaf5!important}
  .s8-auth-mobile-brand span{color:#133c58!important}
  .s8-app-download-sheet{border-radius:28px!important;margin-bottom:24px!important}
}

html,body{margin-top:0!important}body.s8-mobile-only-app,body.s8-force-mobile-role{padding-top:0!important}.s8-auth-page,.s8-auth-panel{padding-top:0!important;margin-top:0!important}.s8-auth-card{margin-top:0!important}.s8-auth-mobile-logo{padding-top:max(18px,env(safe-area-inset-top))!important;margin-top:0!important}.s8-app-download-trigger{min-width:78px!important}

.s8-auth-brand span,.s8-auth-mobile-brand span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* =========================================================
   V5.69 FULL-FRAME MOBILE APP UI
   Staff / CTV / Supervisor only
   ========================================================= */

/* Mobile viewport always fills the available screen */
@media(max-width:699px){
  html,
  body.s8-force-mobile-role,
  body.s8-mobile-only-app{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    overflow-x:hidden!important;
    background:#f1f6fa!important;
  }

  body.s8-force-mobile-role #page,
  body.s8-force-mobile-role .site,
  body.s8-force-mobile-role .site-content,
  body.s8-force-mobile-role main,
  body.s8-mobile-only-app #page,
  body.s8-mobile-only-app .site,
  body.s8-mobile-only-app .site-content,
  body.s8-mobile-only-app main{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    overflow-x:hidden!important;
  }

  body.s8-force-mobile-role .s8-app,
  body.s8-force-mobile-role .ctv-mobile-app,
  body.s8-force-mobile-role .ctv-tabbed-app,
  body.s8-force-mobile-role .ctv-live-app,
  body.s8-force-mobile-role .supervisor-mobile,
  body.s8-force-mobile-role .supervisor-app,
  body.s8-mobile-only-app .s8-app,
  body.s8-mobile-only-app .ctv-mobile-app,
  body.s8-mobile-only-app .ctv-tabbed-app,
  body.s8-mobile-only-app .ctv-live-app,
  body.s8-mobile-only-app .supervisor-mobile,
  body.s8-mobile-only-app .supervisor-app{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    min-height:100dvh!important;
    margin:0!important;
    padding:0 0 calc(92px + env(safe-area-inset-bottom))!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    overflow-x:hidden!important;
    background:
      radial-gradient(circle at 50% 0%,rgba(22,151,229,.12),transparent 38%),
      #f3f8fb!important;
  }

  /* Full-width top header */
  body.s8-force-mobile-role .s8-topbar,
  body.s8-force-mobile-role .ctv-topbar,
  body.s8-force-mobile-role .supervisor-topbar,
  body.s8-mobile-only-app .s8-topbar,
  body.s8-mobile-only-app .ctv-topbar,
  body.s8-mobile-only-app .supervisor-topbar{
    width:100%!important;
    max-width:none!important;
    min-height:92px!important;
    margin:0!important;
    padding:
      max(16px,env(safe-area-inset-top))
      18px
      14px!important;
    border-radius:0!important;
    box-sizing:border-box!important;
  }

  /* Cards use the whole mobile width with app-like gutters */
  body.s8-force-mobile-role .staff-profile-card,
  body.s8-force-mobile-role .today-summary,
  body.s8-force-mobile-role .primary-capture,
  body.s8-force-mobile-role .staff-work-summary,
  body.s8-force-mobile-role .s8-quick-grid,
  body.s8-force-mobile-role .ctv-profile-card,
  body.s8-force-mobile-role .ctv-status-card,
  body.s8-force-mobile-role .ctv-live-profile,
  body.s8-force-mobile-role .supervisor-profile,
  body.s8-force-mobile-role .supervisor-stats,
  body.s8-force-mobile-role .supervisor-tabs,
  body.s8-force-mobile-role .supervisor-gps-card,
  body.s8-force-mobile-role .supervisor-capture-card,
  body.s8-mobile-only-app .staff-profile-card,
  body.s8-mobile-only-app .today-summary,
  body.s8-mobile-only-app .primary-capture,
  body.s8-mobile-only-app .staff-work-summary,
  body.s8-mobile-only-app .s8-quick-grid,
  body.s8-mobile-only-app .ctv-profile-card,
  body.s8-mobile-only-app .ctv-status-card,
  body.s8-mobile-only-app .ctv-live-profile,
  body.s8-mobile-only-app .supervisor-profile,
  body.s8-mobile-only-app .supervisor-stats,
  body.s8-mobile-only-app .supervisor-tabs,
  body.s8-mobile-only-app .supervisor-gps-card,
  body.s8-mobile-only-app .supervisor-capture-card{
    width:calc(100% - 24px)!important;
    max-width:none!important;
    margin-left:12px!important;
    margin-right:12px!important;
    box-sizing:border-box!important;
  }

  body.s8-force-mobile-role .staff-profile-card,
  body.s8-force-mobile-role .ctv-profile-card,
  body.s8-force-mobile-role .ctv-live-profile,
  body.s8-force-mobile-role .supervisor-profile,
  body.s8-mobile-only-app .staff-profile-card,
  body.s8-mobile-only-app .ctv-profile-card,
  body.s8-mobile-only-app .ctv-live-profile,
  body.s8-mobile-only-app .supervisor-profile{
    margin-top:10px!important;
    border-radius:24px!important;
  }

  body.s8-force-mobile-role .today-summary,
  body.s8-mobile-only-app .today-summary{
    gap:7px!important;
    margin-top:8px!important;
  }

  body.s8-force-mobile-role .today-summary>*,
  body.s8-mobile-only-app .today-summary>*{
    min-width:0!important;
    padding:12px 9px!important;
    border-radius:17px!important;
  }

  body.s8-force-mobile-role .primary-capture,
  body.s8-mobile-only-app .primary-capture{
    min-height:104px!important;
    margin-top:9px!important;
    border-radius:25px!important;
  }

  body.s8-force-mobile-role .staff-work-summary,
  body.s8-mobile-only-app .staff-work-summary{
    margin-top:13px!important;
    padding:19px 16px!important;
    border-radius:24px!important;
  }

  body.s8-force-mobile-role .s8-quick-grid,
  body.s8-mobile-only-app .s8-quick-grid{
    margin-top:10px!important;
    gap:9px!important;
  }

  body.s8-force-mobile-role .s8-quick-grid>*,
  body.s8-mobile-only-app .s8-quick-grid>*{
    min-width:0!important;
    border-radius:19px!important;
  }

  /* Bottom navigation becomes edge-to-edge */
  body.s8-force-mobile-role .bottom-nav,
  body.s8-force-mobile-role .s8-bottom-nav,
  body.s8-force-mobile-role .mobile-bottom-nav,
  body.s8-force-mobile-role nav.bottom-navigation,
  body.s8-mobile-only-app .bottom-nav,
  body.s8-mobile-only-app .s8-bottom-nav,
  body.s8-mobile-only-app .mobile-bottom-nav,
  body.s8-mobile-only-app nav.bottom-navigation{
    left:0!important;
    right:0!important;
    bottom:0!important;
    transform:none!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    min-height:82px!important;
    margin:0!important;
    padding-bottom:env(safe-area-inset-bottom)!important;
    border-radius:0!important;
    box-shadow:0 -10px 28px rgba(20,62,92,.13)!important;
    box-sizing:border-box!important;
  }

  /* Keep text and icons from colliding on narrow phones */
  body.s8-force-mobile-role .s8-topbar *,
  body.s8-mobile-only-app .s8-topbar *,
  body.s8-force-mobile-role .staff-profile-card *,
  body.s8-mobile-only-app .staff-profile-card *{
    min-width:0;
  }

  body.s8-force-mobile-role .s8-topbar .brand,
  body.s8-mobile-only-app .s8-topbar .brand{
    max-width:55%!important;
  }

  body.s8-force-mobile-role .s8-topbar .brand span,
  body.s8-mobile-only-app .s8-topbar .brand span{
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
}

/* Desktop preview of user role still looks exactly like a phone */
@media(min-width:700px){
  body.s8-force-mobile-role,
  body.s8-mobile-only-app{
    display:flex!important;
    justify-content:center!important;
    align-items:flex-start!important;
    padding:14px 0!important;
    background:#eaf3f8!important;
  }

  body.s8-force-mobile-role #page,
  body.s8-force-mobile-role .site,
  body.s8-force-mobile-role .site-content,
  body.s8-force-mobile-role main,
  body.s8-mobile-only-app #page,
  body.s8-mobile-only-app .site,
  body.s8-mobile-only-app .site-content,
  body.s8-mobile-only-app main{
    width:100%!important;
    max-width:430px!important;
    min-width:360px!important;
    margin:0 auto!important;
    padding:0!important;
  }

  body.s8-force-mobile-role .s8-app,
  body.s8-force-mobile-role .ctv-mobile-app,
  body.s8-force-mobile-role .ctv-tabbed-app,
  body.s8-force-mobile-role .ctv-live-app,
  body.s8-force-mobile-role .supervisor-mobile,
  body.s8-force-mobile-role .supervisor-app,
  body.s8-mobile-only-app .s8-app,
  body.s8-mobile-only-app .ctv-mobile-app,
  body.s8-mobile-only-app .ctv-tabbed-app,
  body.s8-mobile-only-app .ctv-live-app,
  body.s8-mobile-only-app .supervisor-mobile,
  body.s8-mobile-only-app .supervisor-app{
    width:100%!important;
    max-width:430px!important;
    min-height:calc(100dvh - 28px)!important;
    border-radius:30px!important;
    overflow:hidden!important;
    box-shadow:0 22px 58px rgba(21,68,99,.18)!important;
  }

  body.s8-force-mobile-role .bottom-nav,
  body.s8-force-mobile-role .s8-bottom-nav,
  body.s8-force-mobile-role .mobile-bottom-nav,
  body.s8-force-mobile-role nav.bottom-navigation,
  body.s8-mobile-only-app .bottom-nav,
  body.s8-mobile-only-app .s8-bottom-nav,
  body.s8-mobile-only-app .mobile-bottom-nav,
  body.s8-mobile-only-app nav.bottom-navigation{
    width:430px!important;
    max-width:430px!important;
    left:50%!important;
    right:auto!important;
    transform:translateX(-50%)!important;
    bottom:14px!important;
    border-radius:0 0 30px 30px!important;
  }
}




/* ===== V5.71 FLAT MOBILE UI ===== */

body.s8-force-mobile-role .s8-app,
body.s8-force-mobile-role .ctv-mobile-app,
body.s8-force-mobile-role .ctv-tabbed-app,
body.s8-force-mobile-role .ctv-live-app,
body.s8-mobile-only-app .s8-app,
body.s8-mobile-only-app .ctv-mobile-app,
body.s8-mobile-only-app .ctv-tabbed-app,
body.s8-mobile-only-app .ctv-live-app{
    border-radius: 16px !important;
    box-shadow: 0 8px 24px rgba(21,68,99,.10) !important;
}

body.s8-force-mobile-role .bottom-nav,
body.s8-force-mobile-role .s8-bottom-nav,
body.s8-force-mobile-role .mobile-bottom-nav,
body.s8-mobile-only-app .bottom-nav,
body.s8-mobile-only-app .s8-bottom-nav,
body.s8-mobile-only-app .mobile-bottom-nav{
    border-radius: 0 !important;
    box-shadow: 0 -2px 12px rgba(0,0,0,.06) !important;
}

[class*="card"],
[class*="panel"],
[class*="box"],
[class*="item"]{
    border-radius: 14px !important;
}

[class*="tabs"],
[class*="tab-bar"],
[class*="tab-menu"]{
    border-radius: 12px !important;
}

[class*="button"],
button{
    border-radius: 12px !important;
}



/* ===== S8 V5.72 TELEGRAM MOBILE TABS ===== */
.s8-mobile-tabs,
.ctv-tab-navigation,
.telegram-style-tabs{
 display:grid!important;
 grid-template-columns:repeat(4,1fr)!important;
 gap:0!important;
 background:#fff!important;
 border-radius:18px!important;
 overflow:hidden!important;
 box-shadow:0 4px 18px rgba(0,0,0,.08)!important;
 position:sticky!important;
 top:72px!important;
 z-index:50!important;
}

.s8-mobile-tabs .tab-item,
.ctv-tab-navigation .tab-item,
.telegram-style-tabs .tab-item{
 min-height:72px!important;
 border-radius:0!important;
 background:transparent!important;
}

.s8-mobile-tabs .tab-item.active,
.ctv-tab-navigation .tab-item.active,
.telegram-style-tabs .tab-item.active{
 border-bottom:3px solid #1f7cff!important;
 background:#f7fbff!important;
}

.s8-profile-card,
.s8-progress-card,
.s8-bank-card,
.s8-overview-card{
 border-radius:18px!important;
}


/* =========================================================
   V5.73 TELEGRAM PRO CTV UI
   ========================================================= */
.ctv-tabbed-app{
  width:100%!important;
  max-width:430px!important;
  height:100dvh!important;
  min-height:100dvh!important;
  margin:0 auto!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  background:#f4f7fa!important;
  color:#172b3d!important;
  border-radius:0!important;
  box-shadow:none!important;
  font-family:'Bai Jamjuree',system-ui,sans-serif!important;
}
.ctv-telegram-header{
  height:auto!important;
  min-height:84px!important;
  padding:calc(11px + env(safe-area-inset-top)) 14px 11px!important;
  display:grid!important;
  grid-template-columns:32px minmax(0,1fr) auto!important;
  gap:10px!important;
  align-items:center!important;
  background:linear-gradient(135deg,#0877dc,#075ee5)!important;
  border-radius:0!important;
}
.ctv-menu-button,.ctv-notification-button{
  width:32px!important;height:38px!important;border:0!important;background:transparent!important;color:#fff!important;
  font-size:21px!important;padding:0!important;border-radius:0!important;
}
.ctv-header-brand{display:grid!important;grid-template-columns:44px minmax(0,1fr)!important;gap:9px!important;align-items:center!important}
.ctv-header-brand>b{
  width:44px!important;height:44px!important;display:grid!important;place-items:center!important;border:1.5px solid rgba(255,255,255,.8)!important;
  border-radius:50%!important;background:transparent!important;font-size:16px!important
}
.ctv-header-brand>span{min-width:0!important}
.ctv-header-brand strong,.ctv-header-brand small{display:block!important}
.ctv-header-brand strong{font-size:14px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.ctv-header-brand small{margin-top:2px!important;font-size:8px!important;color:#dff2ff!important}
.ctv-header-brand small i{display:inline-block!important;width:7px!important;height:7px!important;border-radius:50%!important;background:#1de78a!important}
.ctv-header-actions{display:flex!important;align-items:center!important;gap:6px!important}
.ctv-header-actions>a{width:34px!important;height:38px!important;border-radius:9px!important;background:rgba(255,255,255,.13)!important}
.ctv-notification-button{position:relative!important}
.ctv-notification-button>i{position:absolute!important;right:4px!important;top:4px!important;width:7px!important;height:7px!important;border-radius:50%!important;background:#ff3f4f!important;border:1px solid #fff!important}

.ctv-compact-profile{
  grid-template-columns:58px minmax(0,1fr) auto!important;
  margin:-3px 10px 9px!important;
  padding:13px!important;
  border:1px solid #e3ebf1!important;
  border-radius:13px!important;
  color:#142d40!important;
  background:#fff!important;
  box-shadow:0 5px 16px rgba(27,68,95,.07)!important;
}
.ctv-compact-profile .ctv-avatar{
  width:54px!important;height:54px!important;border:0!important;border-radius:50%!important;background:linear-gradient(135deg,#1686ed,#0564d5)!important;color:#fff!important
}
.ctv-compact-copy span{color:#0874d3!important}
.ctv-compact-copy h2{color:#132d40!important}
.ctv-compact-copy small{color:#19834f!important}
.ctv-compact-profile em{
  max-width:106px!important;padding:9px 10px!important;border-radius:10px!important;background:#eef6ff!important;
  color:#086dd0!important;border:1px solid #dbeeff!important;font-size:7px!important
}

.ctv-mini-notice{
  margin:0 10px 9px!important;padding:10px 11px!important;display:grid!important;grid-template-columns:22px minmax(0,1fr) 24px!important;
  gap:8px!important;align-items:center!important;border:1px solid #d9eee2!important;border-radius:9px!important;background:#f1fbf5!important;color:#137345!important
}
.ctv-mini-notice>b{width:20px!important;height:20px!important;display:grid!important;place-items:center!important;border-radius:50%!important;background:#15965e!important;color:#fff!important}
.ctv-mini-notice span strong,.ctv-mini-notice span small{display:block!important}
.ctv-mini-notice span strong{font-size:9px!important}.ctv-mini-notice span small{margin-top:2px!important;font-size:7px!important;color:#608172!important}
.ctv-mini-notice button{border:0!important;background:transparent!important;color:#627888!important;font-size:17px!important}

.ctv-telegram-tabs{
  margin:0 10px 7px!important;padding:0!important;min-height:63px!important;display:grid!important;grid-template-columns:repeat(4,1fr)!important;
  gap:0!important;border:1px solid #e0e8ee!important;border-radius:10px!important;background:#fff!important;box-shadow:0 3px 12px rgba(26,63,88,.05)!important
}
.ctv-telegram-tabs button{
  position:relative!important;height:62px!important;padding:8px 2px 6px!important;border-radius:0!important;background:transparent!important;color:#42596b!important;overflow:visible!important
}
.ctv-telegram-tabs button span{font-size:17px!important;color:#3f5364!important}
.ctv-telegram-tabs button b{font-size:8px!important;font-weight:600!important;color:inherit!important}
.ctv-telegram-tabs button.active{background:transparent!important;color:#0877e4!important;box-shadow:none!important}
.ctv-telegram-tabs button.active span{color:#0877e4!important}
.ctv-telegram-tabs button.active:after{
  content:""!important;position:absolute!important;left:20%!important;right:20%!important;bottom:-1px!important;height:2px!important;background:#0877e4!important;border-radius:2px 2px 0 0!important
}

.ctv-tab-content{
  flex:1 1 auto!important;min-height:0!important;padding:0 10px calc(76px + env(safe-area-inset-bottom))!important;overflow:hidden!important
}
.ctv-tab-panel{height:100%!important;padding:0 0 12px!important}
.ctv-overview-hero,.ctv-work-card,.ctv-panel-heading+.ctv-step-timeline,.ctv-app-form{
  border:1px solid #e1e9ef!important;border-radius:10px!important;background:#fff!important;box-shadow:0 3px 12px rgba(26,63,88,.045)!important
}
.ctv-overview-hero{padding:14px!important}
.ctv-overview-hero>span{display:none!important}
.ctv-overview-hero h1{margin:0 0 4px!important;font-size:16px!important}
.ctv-overview-hero p{font-size:8px!important;margin-bottom:10px!important}
.ctv-progress{height:5px!important;margin:10px 0 0!important;background:#dfe8ee!important}
.ctv-progress i{background:#0d74e5!important}

.ctv-overview-grid{gap:7px!important;margin-top:7px!important}
.ctv-overview-grid article{
  display:grid!important;grid-template-columns:36px minmax(0,1fr)!important;gap:8px!important;align-items:center!important;
  min-height:72px!important;padding:9px!important;border:1px solid #e3eaf0!important;border-radius:9px!important;background:#fff!important
}
.overview-icon{width:34px!important;height:34px!important;display:grid!important;place-items:center!important;border-radius:50%!important;font-style:normal!important;font-size:15px!important}
.overview-icon.product{background:#eaf3ff!important;color:#0875e3!important}
.overview-icon.photo{background:#e7f8ee!important;color:#15975b!important}
.overview-icon.region{background:#f1ebff!important;color:#7849e8!important}
.overview-icon.wallet{background:#fff0e7!important;color:#f27731!important}
.ctv-overview-grid strong{font-size:11px!important;margin:2px 0!important}.ctv-overview-grid span,.ctv-overview-grid small{font-size:7px!important}

.ctv-support-action{
  grid-template-columns:38px minmax(0,1fr) 18px!important;margin-top:7px!important;padding:10px!important;border:1px solid #e1e9ef!important;
  border-radius:9px!important;background:#fff!important;color:#162f42!important;box-shadow:none!important
}
.ctv-support-action>div{width:36px!important;height:36px!important;border-radius:50%!important;background:#179bdb!important;color:#fff!important}
.ctv-support-action small{color:#1479c8!important}.ctv-support-action strong{font-size:10px!important}.ctv-support-action>b{color:#0876df!important}

.ctv-panel-heading{min-height:auto!important;margin:0!important;padding:12px 12px 8px!important;background:#fff!important;border-radius:10px 10px 0 0!important}
.ctv-panel-heading>span{display:none!important}
.ctv-panel-heading h2{font-size:16px!important;color:#162d40!important}
.ctv-panel-heading p{margin:4px 0 0!important;font-size:8px!important;color:#748998!important}

.ctv-step-timeline{padding:7px 10px!important;border-radius:0 0 10px 10px!important;border-top:0!important}
.ctv-step-timeline>div{padding:9px 0!important;border-bottom:1px solid #edf1f4!important}
.ctv-step-timeline>div:last-child{border-bottom:0!important}
.ctv-step-timeline>div:not(:last-child):after{display:none!important}
.ctv-step-timeline b{background:#eef5fa!important}
.ctv-step-timeline strong{font-size:9px!important}.ctv-step-timeline small{font-size:7px!important}
.ctv-work-card{padding:12px!important}
.ctv-work-kpis{gap:6px!important}.ctv-work-kpis>div{background:#f6f8fa!important;border:1px solid #edf1f4!important;border-radius:8px!important}

.ctv-list-form{padding:0!important;overflow:hidden!important}
.ctv-list-form label{
  display:grid!important;grid-template-columns:minmax(100px,.8fr) minmax(0,1.2fr)!important;gap:10px!important;align-items:center!important;
  margin:0!important;padding:10px 12px!important;border-bottom:1px solid #edf1f4!important
}
.ctv-list-form label span{margin:0!important;font-size:9px!important;font-weight:500!important;color:#3c5263!important}
.ctv-list-form input,.ctv-list-form select,.ctv-list-form textarea{
  margin:0!important;padding:7px 9px!important;min-height:36px!important;border:0!important;border-radius:7px!important;background:#f5f7f9!important;text-align:right!important;font-size:8px!important
}
.ctv-list-form textarea{min-height:52px!important}
.ctv-list-form button[type="submit"]{width:calc(100% - 20px)!important;margin:10px!important;height:42px!important;border-radius:8px!important}
.ctv-bank-security{margin:10px!important;border-radius:8px!important}
.ctv-panel-info-note{margin:8px 0 0!important;padding:9px 10px!important;border-radius:7px!important;background:#eaf4ff!important;color:#0871d3!important;font-size:7px!important}

.ctv-bottom-nav{
  position:absolute!important;left:0!important;right:0!important;bottom:0!important;z-index:30!important;
  display:grid!important;grid-template-columns:repeat(3,1fr)!important;height:66px!important;padding-bottom:env(safe-area-inset-bottom)!important;
  border-top:1px solid #e0e7ec!important;background:rgba(255,255,255,.97)!important;backdrop-filter:blur(12px)!important
}
.ctv-bottom-nav button{border:0!important;background:transparent!important;color:#344b5d!important;font-family:inherit!important}
.ctv-bottom-nav span,.ctv-bottom-nav b{display:block!important}.ctv-bottom-nav span{font-size:18px!important}.ctv-bottom-nav b{margin-top:3px!important;font-size:8px!important;font-weight:500!important}
.ctv-bottom-nav button.active{color:#0877e4!important}

@media(max-width:380px){
  .ctv-compact-profile{grid-template-columns:50px minmax(0,1fr) auto!important}
  .ctv-compact-profile .ctv-avatar{width:48px!important;height:48px!important}
  .ctv-compact-profile em{max-width:85px!important;font-size:6.5px!important}
}
@media(min-width:700px){
  .ctv-tabbed-app{position:relative!important;border-radius:18px!important;box-shadow:0 18px 50px rgba(20,63,91,.15)!important}
}

/* =========================================================
   V5.74 PROFESSIONAL CTV CAMERA UI
   ========================================================= */
.ctv-camera-page,
.ctv-capture-screen,
.camera-screen,
[class*="ctv"][class*="camera"]{
  position:relative!important;
}

.ctv-camera-header,
.camera-header{
  min-height:58px!important;
  padding:0 14px!important;
  display:grid!important;
  grid-template-columns:42px minmax(0,1fr) 42px!important;
  align-items:center!important;
  background:#0878e5!important;
  color:#fff!important;
  border-radius:0!important;
}

.ctv-camera-header h1,
.camera-header h1{
  margin:0!important;
  font-size:17px!important;
  text-align:center!important;
  white-space:nowrap!important;
}

.ctv-camera-view,
.camera-preview,
video#camera,
video.camera-video{
  display:block!important;
  width:100%!important;
  height:min(62dvh,590px)!important;
  min-height:420px!important;
  object-fit:cover!important;
  background:#101820!important;
  border-radius:0!important;
}

.ctv-camera-controls{
  position:absolute!important;
  left:0!important;
  right:0!important;
  bottom:24px!important;
  z-index:60!important;
  display:grid!important;
  grid-template-columns:62px 92px 62px!important;
  justify-content:center!important;
  align-items:center!important;
  gap:28px!important;
  pointer-events:none!important;
}

.ctv-camera-controls button{
  pointer-events:auto!important;
  border:0!important;
  font-family:inherit!important;
  -webkit-tap-highlight-color:transparent!important;
}

.ctv-camera-shutter{
  width:82px!important;
  height:82px!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  border:6px solid rgba(255,255,255,.96)!important;
  border-radius:50%!important;
  background:rgba(255,255,255,.25)!important;
  box-shadow:0 8px 24px rgba(0,0,0,.28)!important;
  backdrop-filter:blur(8px)!important;
}

.ctv-camera-shutter i{
  width:58px!important;
  height:58px!important;
  display:block!important;
  border-radius:50%!important;
  background:#fff!important;
  box-shadow:inset 0 0 0 2px rgba(10,88,170,.08)!important;
  transition:transform .12s ease,background .12s ease!important;
}

.ctv-camera-shutter:active i{
  transform:scale(.84)!important;
  background:#dceeff!important;
}

.ctv-camera-side{
  width:56px!important;
  height:56px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:1px!important;
  padding:0!important;
  border:1px solid rgba(255,255,255,.35)!important;
  border-radius:50%!important;
  background:rgba(9,25,39,.46)!important;
  color:#fff!important;
  backdrop-filter:blur(10px)!important;
  box-shadow:0 6px 18px rgba(0,0,0,.18)!important;
}

.ctv-camera-side span{
  font-size:20px!important;
  line-height:1!important;
}
.ctv-camera-side small{
  font-size:6px!important;
  font-weight:800!important;
}

.ctv-camera-gps-status{
  position:absolute!important;
  left:50%!important;
  top:76px!important;
  z-index:55!important;
  transform:translateX(-50%)!important;
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  max-width:calc(100% - 36px)!important;
  padding:8px 12px!important;
  border-radius:999px!important;
  background:rgba(10,27,40,.62)!important;
  color:#fff!important;
  font-size:8px!important;
  white-space:nowrap!important;
  backdrop-filter:blur(10px)!important;
  box-shadow:0 5px 16px rgba(0,0,0,.15)!important;
}
.ctv-camera-gps-status i{
  width:8px!important;
  height:8px!important;
  border-radius:50%!important;
  background:#ffc332!important;
  box-shadow:0 0 0 4px rgba(255,195,50,.18)!important;
}
.ctv-camera-gps-status.ready i{
  background:#22d982!important;
  box-shadow:0 0 0 4px rgba(34,217,130,.18)!important;
}
.ctv-camera-gps-status.error i{
  background:#ff5365!important;
  box-shadow:0 0 0 4px rgba(255,83,101,.18)!important;
}

.ctv-camera-guide,
.camera-guide,
[class*="camera"][class*="instruction"]{
  left:16px!important;
  right:16px!important;
  bottom:122px!important;
  width:auto!important;
  max-width:none!important;
  padding:9px 12px!important;
  border-radius:10px!important;
  background:rgba(10,24,36,.58)!important;
  color:#fff!important;
  font-size:8px!important;
  text-align:center!important;
  backdrop-filter:blur(8px)!important;
}

@media(max-width:380px){
  .ctv-camera-controls{
    grid-template-columns:54px 80px 54px!important;
    gap:22px!important;
  }
  .ctv-camera-shutter{
    width:74px!important;
    height:74px!important;
  }
  .ctv-camera-shutter i{
    width:52px!important;
    height:52px!important;
  }
  .ctv-camera-side{
    width:50px!important;
    height:50px!important;
  }
}

/* V5.75 TELEGRAM CAMERA FULLSCREEN */
.ctv-tabbed-app.is-camera-mode{background:#000!important}
.ctv-tabbed-app.is-camera-mode [data-hide-in-camera="1"]{display:none!important}
.ctv-tabbed-app.is-camera-mode .ctv-telegram-header{min-height:76px!important;padding-top:max(10px,env(safe-area-inset-top))!important}
.ctv-tabbed-app.is-camera-mode .ctv-telegram-tabs{margin:0!important;border-radius:0!important;border-left:0!important;border-right:0!important;box-shadow:none!important}
.ctv-tabbed-app.is-camera-mode .ctv-tab-content{padding:0 0 calc(76px + env(safe-area-inset-bottom))!important;background:#000!important}
.ctv-tabbed-app.is-camera-mode .ctv-tab-panel[data-ctv-panel="capture"]{height:100%!important;padding:0!important;background:#000!important}
.ctv-tabbed-app.is-camera-mode .ctv-camera-view,
.ctv-tabbed-app.is-camera-mode .camera-preview,
.ctv-tabbed-app.is-camera-mode video#camera,
.ctv-tabbed-app.is-camera-mode video.camera-video{
  width:100%!important;height:calc(100dvh - 270px)!important;min-height:420px!important;max-height:none!important;object-fit:cover!important;border-radius:0!important
}
.ctv-tabbed-app.is-camera-mode .ctv-camera-controls{
  position:fixed!important;left:50%!important;bottom:calc(68px + env(safe-area-inset-bottom))!important;transform:translateX(-50%)!important;
  width:min(430px,100%)!important;grid-template-columns:68px 104px 68px!important;gap:32px!important;padding:18px 22px!important;
  background:linear-gradient(180deg,rgba(7,14,22,.1),rgba(7,14,22,.96))!important;box-sizing:border-box!important
}
.ctv-camera-shutter-wrap{display:flex!important;flex-direction:column!important;align-items:center!important;gap:7px!important}
.ctv-camera-shutter-wrap>strong{color:#fff!important;font-size:11px!important}
.ctv-tabbed-app.is-camera-mode .ctv-camera-shutter{width:88px!important;height:88px!important;border-width:5px!important}
.ctv-tabbed-app.is-camera-mode .ctv-camera-shutter i{width:64px!important;height:64px!important}
.ctv-tabbed-app.is-camera-mode .ctv-camera-side{width:60px!important;height:60px!important;border-radius:15px!important}
.ctv-tabbed-app.is-camera-mode .ctv-camera-gps-status{
  left:18px!important;top:150px!important;transform:none!important;max-width:190px!important;padding:10px 12px!important;border-radius:14px!important
}
.ctv-camera-flash-status{
  position:absolute!important;right:18px!important;top:150px!important;z-index:55!important;display:flex!important;align-items:center!important;gap:7px!important;
  padding:10px 13px!important;border-radius:14px!important;background:rgba(10,22,31,.72)!important;color:#fff!important;backdrop-filter:blur(10px)!important
}
.ctv-camera-flash-status span{font-size:18px!important}.ctv-camera-flash-status b{font-size:9px!important}
.ctv-tabbed-app.is-camera-mode .ctv-camera-guide,
.ctv-tabbed-app.is-camera-mode .camera-guide,
.ctv-tabbed-app.is-camera-mode [class*="camera"][class*="instruction"]{
  position:fixed!important;left:50%!important;bottom:calc(186px + env(safe-area-inset-bottom))!important;transform:translateX(-50%)!important;
  width:calc(min(430px,100%) - 72px)!important;padding:10px 14px!important;border-radius:12px!important;background:rgba(11,18,26,.68)!important;font-size:9px!important
}
@media(max-width:380px){
  .ctv-tabbed-app.is-camera-mode .ctv-camera-controls{grid-template-columns:56px 88px 56px!important;gap:24px!important}
  .ctv-tabbed-app.is-camera-mode .ctv-camera-shutter{width:78px!important;height:78px!important}
  .ctv-tabbed-app.is-camera-mode .ctv-camera-shutter i{width:56px!important;height:56px!important}
  .ctv-tabbed-app.is-camera-mode .ctv-camera-side{width:52px!important;height:52px!important}
}

/* =========================================================
   V5.76 GUARANTEED CAMERA SHUTTER VISIBILITY
   Uses the real #takePhoto button already wired to capture.
   ========================================================= */

/* The experimental overlay controls are removed; the real capture control is used. */
#screenCamera .ctv-camera-controls,
#screenCamera .ctv-camera-flash-status,
#screenCamera .ctv-camera-gps-status{
  display:none!important;
}

/* Hide CTV identity block whenever the actual camera screen is active. */
.ctv-tabbed-app.camera-screen-open .ctv-compact-profile,
.ctv-tabbed-app.camera-screen-open .ctv-mini-notice,
body.s8-camera-screen-open .ctv-compact-profile,
body.s8-camera-screen-open .ctv-mini-notice{
  display:none!important;
}

.ctv-tabbed-app.camera-screen-open .ctv-telegram-tabs{
  margin:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}

/* Camera becomes a clean full app screen. */
#screenCamera.camera-screen.active{
  position:relative!important;
  min-height:calc(100dvh - 150px)!important;
  padding:0 0 130px!important;
  overflow:hidden!important;
  background:#05080d!important;
}

#screenCamera .camera-stage{
  height:calc(100dvh - 270px)!important;
  min-height:430px!important;
  max-height:none!important;
  overflow:hidden!important;
  border-radius:0!important;
}

#screenCamera .camera-guide{
  position:absolute!important;
  left:18px!important;
  right:18px!important;
  bottom:26px!important;
  z-index:31!important;
  padding:10px 13px!important;
  border-radius:10px!important;
  background:rgba(7,14,22,.64)!important;
  backdrop-filter:blur(8px)!important;
  font-size:10px!important;
}

/* Real capture bar is always pinned above Android/iPhone navigation. */
#screenCamera .camera-controls{
  position:fixed!important;
  left:50%!important;
  bottom:calc(72px + env(safe-area-inset-bottom))!important;
  z-index:9999!important;
  transform:translateX(-50%)!important;
  width:min(430px,100%)!important;
  height:126px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:10px 0 18px!important;
  pointer-events:none!important;
  background:linear-gradient(180deg,rgba(4,9,15,0),rgba(4,9,15,.94) 38%,rgba(4,9,15,1))!important;
}

#screenCamera #takePhoto.shutter{
  pointer-events:auto!important;
  position:relative!important;
  inset:auto!important;
  transform:none!important;
  width:88px!important;
  height:88px!important;
  flex:0 0 88px!important;
  margin:0!important;
  border:6px solid #fff!important;
  border-radius:50%!important;
  background:#fff!important;
  color:transparent!important;
  font-size:0!important;
  box-shadow:0 10px 32px rgba(0,0,0,.42),0 0 0 5px rgba(255,255,255,.20)!important;
  -webkit-tap-highlight-color:transparent!important;
}

#screenCamera #takePhoto.shutter:before{
  content:""!important;
  position:absolute!important;
  inset:9px!important;
  border-radius:50%!important;
  background:#fff!important;
  box-shadow:inset 0 0 0 2px rgba(16,70,120,.08)!important;
}

#screenCamera #takePhoto.shutter:after{
  content:"CHỤP ẢNH"!important;
  position:absolute!important;
  left:50%!important;
  top:98px!important;
  transform:translateX(-50%)!important;
  width:120px!important;
  color:#fff!important;
  font-size:11px!important;
  font-weight:800!important;
  letter-spacing:.04em!important;
  text-align:center!important;
}

#screenCamera #takePhoto.shutter:active{
  transform:scale(.91)!important;
}

#screenCamera #takePhoto.shutter:disabled{
  opacity:.55!important;
}

/* Keep GPS at a visible location inside the camera. */
#screenCamera .gps-badge{
  top:18px!important;
  z-index:34!important;
  max-width:calc(100% - 32px)!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  padding:9px 13px!important;
  border-radius:999px!important;
  background:rgba(21,181,89,.92)!important;
  box-shadow:0 6px 18px rgba(0,0,0,.16)!important;
}

@media(max-width:380px){
  #screenCamera .camera-stage{height:calc(100dvh - 258px)!important;min-height:390px!important}
  #screenCamera .camera-controls{height:116px!important}
  #screenCamera #takePhoto.shutter{width:80px!important;height:80px!important;flex-basis:80px!important}
  #screenCamera #takePhoto.shutter:after{top:90px!important}
}

/* =========================================================
   V5.77 CTV MODERN APP UI — overview and navigation
   ========================================================= */
body.s8-role-ctv-mobile,
body.s8-force-mobile-role,
body.s8-mobile-only-app{
  background:#eef5f9!important;
}
.ctv-live-app{
  --app-blue:#0b7ee8;
  --app-blue-dark:#075fd7;
  --app-cyan:#19b5d4;
  --app-text:#15354c;
  --app-muted:#7c91a0;
  --app-line:#e1eaf0;
  width:100%!important;
  max-width:430px!important;
  min-height:100dvh!important;
  margin:0 auto!important;
  padding-bottom:calc(18px + env(safe-area-inset-bottom))!important;
  overflow-x:hidden!important;
  background:linear-gradient(180deg,#f4f9fc 0,#edf5f9 100%)!important;
  border-radius:0!important;
  box-shadow:none!important;
}

/* Clean compact application header */
.ctv-live-app .s8-topbar{
  min-height:88px!important;
  padding:calc(12px + env(safe-area-inset-top)) 18px 14px!important;
  border-radius:0 0 22px 22px!important;
  background:linear-gradient(135deg,#0b8de9 0%,#075ee0 72%,#084bc2 100%)!important;
  box-shadow:0 10px 26px rgba(9,93,190,.20)!important;
}
.ctv-live-app .s8-topbar .brand,
.ctv-live-app .s8-topbar>div:first-child{
  gap:10px!important;
  min-width:0!important;
}
.ctv-live-app .s8-topbar img{
  width:48px!important;height:48px!important;object-fit:contain!important;
  padding:7px!important;border-radius:14px!important;background:rgba(255,255,255,.12)!important;
}
.ctv-live-app .s8-topbar strong{
  font-size:17px!important;line-height:1.15!important;letter-spacing:-.01em!important;
}
.ctv-live-app .s8-topbar .clock,
.ctv-live-app .s8-topbar time{
  padding:9px 12px!important;border:1px solid rgba(255,255,255,.22)!important;border-radius:13px!important;
  background:rgba(255,255,255,.10)!important;font-size:9px!important;
}

/* Identity card: airy, white and premium */
.ctv-profile-unified{
  width:calc(100% - 24px)!important;
  min-height:92px!important;
  margin:12px 12px 10px!important;
  padding:14px!important;
  display:grid!important;
  grid-template-columns:58px minmax(0,1fr) auto!important;
  gap:12px!important;
  align-items:center!important;
  border:1px solid rgba(214,228,237,.95)!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.96)!important;
  color:var(--app-text)!important;
  box-shadow:0 10px 26px rgba(32,72,98,.08)!important;
}
.ctv-profile-unified .ctv-avatar{
  width:56px!important;height:56px!important;border:0!important;border-radius:17px!important;
  background:linear-gradient(145deg,#1795ee,#0867df)!important;color:#fff!important;
  box-shadow:0 8px 18px rgba(8,104,222,.22)!important;
}
.ctv-profile-unified-copy span{font-size:7px!important;letter-spacing:.15em!important;color:#1680d1!important}
.ctv-profile-unified-copy strong{margin:3px 0!important;font-size:16px!important;color:var(--app-text)!important;line-height:1.15!important}
.ctv-profile-unified-copy small{font-size:8px!important;color:#3f7a61!important}
.ctv-profile-unified-copy small i{width:7px!important;height:7px!important;background:#20ce7c!important}
.ctv-profile-unified-meta{gap:6px!important;align-items:flex-end!important}
.ctv-profile-unified-meta b{
  padding:6px 9px!important;border-radius:9px!important;background:#eaf4ff!important;color:#0871d8!important;font-size:7px!important
}
.ctv-profile-unified-meta em{
  max-width:104px!important;padding:7px 9px!important;border-radius:9px!important;
  background:#edf8f4!important;color:#24825f!important;font-size:6px!important;line-height:1.3!important
}

/* App tabs: no large pill, clear active underline */
.ctv-live-tabs{
  width:calc(100% - 24px)!important;
  height:64px!important;
  margin:0 12px 12px!important;
  padding:0 3px!important;
  display:grid!important;grid-template-columns:repeat(5,1fr)!important;
  border:1px solid var(--app-line)!important;border-radius:16px!important;
  background:#fff!important;box-shadow:0 7px 20px rgba(32,72,98,.06)!important;
  overflow:hidden!important;
}
.ctv-live-tabs button{
  position:relative!important;height:63px!important;padding:8px 1px 7px!important;border-radius:0!important;
  color:#718796!important;background:transparent!important;box-shadow:none!important
}
.ctv-live-tabs span{font-size:16px!important;line-height:20px!important}
.ctv-live-tabs b{margin-top:3px!important;font-size:6.6px!important;font-weight:600!important}
.ctv-live-tabs button.active{color:var(--app-blue)!important;background:linear-gradient(180deg,#f2f8ff 0,#fff 100%)!important}
.ctv-live-tabs button.active:after{
  content:""!important;position:absolute!important;left:25%!important;right:25%!important;bottom:0!important;height:3px!important;
  border-radius:3px 3px 0 0!important;background:var(--app-blue)!important
}

/* Remove the blank app canvas and give content natural height */
.ctv-live-app .s8-main{
  min-height:0!important;height:auto!important;padding:0 12px 18px!important;overflow:visible!important;background:transparent!important
}
.ctv-live-panel{
  min-height:0!important;height:auto!important;padding:0!important;background:transparent!important
}
.ctv-live-panel[data-live-panel="overview"]{display:flex!important;flex-direction:column!important;gap:10px!important}

/* Main overview summary */
.ctv-live-heading{
  padding:17px 16px!important;margin:0!important;border:1px solid var(--app-line)!important;border-radius:16px!important;
  background:linear-gradient(145deg,#ffffff,#f7fbfe)!important;box-shadow:0 8px 22px rgba(28,71,99,.055)!important
}
.ctv-live-heading span{font-size:7px!important;color:#1681ce!important}
.ctv-live-heading h2{margin:6px 0 5px!important;font-size:20px!important;letter-spacing:-.02em!important;color:var(--app-text)!important}
.ctv-live-heading p{font-size:8.5px!important;line-height:1.55!important;color:var(--app-muted)!important}

/* Statistics cards with visual hierarchy */
.ctv-live-overview-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important;margin:0!important}
.ctv-live-overview-grid article{
  position:relative!important;min-height:94px!important;padding:15px 14px 13px 54px!important;
  border:1px solid var(--app-line)!important;border-radius:15px!important;background:#fff!important;
  box-shadow:0 7px 18px rgba(30,70,96,.045)!important;overflow:hidden!important
}
.ctv-live-overview-grid article:before{
  position:absolute!important;left:13px!important;top:15px!important;width:31px!important;height:31px!important;
  display:grid!important;place-items:center!important;border-radius:10px!important;font-size:15px!important;font-weight:700!important
}
.ctv-live-overview-grid article:nth-child(1):before{content:"▣"!important;background:#eaf4ff!important;color:#0b78e3!important}
.ctv-live-overview-grid article:nth-child(2):before{content:"▧"!important;background:#eaf9f1!important;color:#15965e!important}
.ctv-live-overview-grid article:nth-child(3):before{content:"◔"!important;background:#fff3e9!important;color:#f07a35!important}
.ctv-live-overview-grid article:nth-child(4):before{content:"⌖"!important;background:#f1edff!important;color:#7852e7!important}
.ctv-live-overview-grid span{font-size:7px!important;color:#8295a3!important}
.ctv-live-overview-grid strong{margin:5px 0 3px!important;font-size:17px!important;color:#116da9!important;line-height:1.15!important}
.ctv-live-overview-grid small{font-size:7px!important;line-height:1.35!important;color:#96a5af!important}
.ctv-live-progress{height:6px!important;margin:1px 0 0!important;border-radius:999px!important;background:#dfeaf0!important;overflow:hidden!important}
.ctv-live-progress i{border-radius:999px!important;background:linear-gradient(90deg,#16bca3,#1688e6)!important}

/* Support and capture actions */
.ctv-live-support{
  min-height:68px!important;margin:0!important;padding:11px 13px!important;
  grid-template-columns:44px minmax(0,1fr) 24px!important;gap:10px!important;
  border:1px solid #dce8ef!important;border-radius:15px!important;
  background:#fff!important;color:var(--app-text)!important;box-shadow:0 7px 18px rgba(30,70,96,.05)!important
}
.ctv-live-support>span{
  width:42px!important;height:42px!important;border-radius:13px!important;background:linear-gradient(145deg,#1ca5e5,#0876df)!important;color:#fff!important
}
.ctv-live-support small{font-size:6.5px!important;color:#1782cf!important}
.ctv-live-support strong{font-size:12px!important;color:var(--app-text)!important}
.ctv-live-support>b{color:#0a7ae2!important;font-size:21px!important}
.ctv-go-capture{
  position:relative!important;width:100%!important;min-height:66px!important;margin:0!important;padding:0 18px 0 62px!important;
  border:0!important;border-radius:16px!important;background:linear-gradient(135deg,#0e8fea,#1768f1 58%,#5445e8)!important;
  color:#fff!important;font-size:11px!important;font-weight:900!important;letter-spacing:.02em!important;text-align:left!important;
  box-shadow:0 13px 28px rgba(17,104,230,.24)!important;overflow:hidden!important
}
.ctv-go-capture:before{
  content:"📷"!important;position:absolute!important;left:15px!important;top:50%!important;transform:translateY(-50%)!important;
  width:38px!important;height:38px!important;display:grid!important;place-items:center!important;border-radius:12px!important;background:rgba(255,255,255,.16)!important;font-size:18px!important
}
.ctv-go-capture:after{
  content:"Mở camera và ghi GPS tự động"!important;position:absolute!important;left:62px!important;bottom:11px!important;
  color:rgba(255,255,255,.78)!important;font-size:6.5px!important;font-weight:500!important;letter-spacing:0!important
}
.ctv-go-capture{padding-bottom:15px!important}
.ctv-go-capture:active{transform:scale(.985)!important}

/* Keep screens compact on phones */
@media(max-width:380px){
  .ctv-live-app .s8-topbar{padding-left:13px!important;padding-right:13px!important}
  .ctv-profile-unified{grid-template-columns:50px minmax(0,1fr) auto!important;padding:12px!important}
  .ctv-profile-unified .ctv-avatar{width:48px!important;height:48px!important}
  .ctv-profile-unified-meta em{max-width:84px!important;font-size:5.5px!important}
  .ctv-live-overview-grid article{padding-left:48px!important}
  .ctv-live-overview-grid article:before{left:10px!important}
}

/* =========================================================
   V5.78 CLEAN MOBILE UI
   Hide duplicate CTV identity card and tighten layout
   ========================================================= */
.ctv-hidden-identity-card{
  display:none!important;
}

.ctv-live-app,
.ctv-tabbed-app,
.ctv-mobile-app{
  background:#f3f7fa!important;
}

.ctv-live-app .ctv-app-tabs,
.ctv-tabbed-app .ctv-app-tabs,
.ctv-live-app .ctv-telegram-tabs,
.ctv-tabbed-app .ctv-telegram-tabs{
  margin-top:10px!important;
}

.ctv-live-app .ctv-live-header + .ctv-app-tabs,
.ctv-live-app .ctv-topbar + .ctv-app-tabs,
.ctv-tabbed-app .ctv-topbar + .ctv-app-tabs,
.ctv-tabbed-app .ctv-telegram-header + .ctv-app-tabs{
  margin-top:0!important;
}

.ctv-live-app .ctv-live-main,
.ctv-live-app .ctv-tab-content,
.ctv-tabbed-app .ctv-tab-content{
  padding-top:10px!important;
}

.ctv-live-app .ctv-app-tabs,
.ctv-tabbed-app .ctv-app-tabs{
  border-radius:14px!important;
  box-shadow:0 5px 16px rgba(24,63,90,.06)!important;
}

.ctv-live-app .ctv-overview-hero,
.ctv-tabbed-app .ctv-overview-hero{
  margin-top:0!important;
}

.ctv-live-app .ctv-overview-grid,
.ctv-tabbed-app .ctv-overview-grid{
  margin-top:10px!important;
}

.ctv-live-app .ctv-support-action,
.ctv-tabbed-app .ctv-support-action{
  margin-top:10px!important;
}

.ctv-live-app .ctv-capture-entry,
.ctv-tabbed-app .ctv-capture-entry,
.ctv-live-app .ctv-capture-cta,
.ctv-tabbed-app .ctv-capture-cta{
  margin-top:10px!important;
}

@media(max-width:699px){
  .ctv-live-app,
  .ctv-tabbed-app,
  .ctv-mobile-app{
    min-height:100dvh!important;
    padding-bottom:calc(76px + env(safe-area-inset-bottom))!important;
  }

  .ctv-live-app .ctv-app-tabs,
  .ctv-tabbed-app .ctv-app-tabs,
  .ctv-live-app .ctv-telegram-tabs,
  .ctv-tabbed-app .ctv-telegram-tabs{
    width:calc(100% - 24px)!important;
    margin-left:12px!important;
    margin-right:12px!important;
  }
}

/* =========================================================
   V5.79 REMOVE DUPLICATE CTV IDENTITY CARD
   ========================================================= */
.ctv-live-header + .ctv-live-tabs,
.ctv-topbar + .ctv-live-tabs,
.ctv-telegram-header + .ctv-live-tabs,
.ctv-topbar + .ctv-app-tabs,
.ctv-telegram-header + .ctv-app-tabs{
  margin-top:10px!important;
}

.ctv-live-tabs,
.ctv-app-tabs,
.ctv-telegram-tabs{
  margin-bottom:10px!important;
}

.ctv-live-main,
.ctv-tab-content{
  padding-top:0!important;
}

.ctv-profile-unified,
.ctv-live-profile,
.ctv-compact-profile{
  display:none!important;
}

/* =========================================================
   V6.0 BOTTOM NAV MOBILE APP
   ========================================================= */

.ctv-bottom-nav-layout{
  position:relative!important;
  min-height:100dvh!important;
  padding-bottom:calc(82px + env(safe-area-inset-bottom))!important;
  background:
    radial-gradient(circle at 50% -10%,rgba(25,145,232,.12),transparent 34%),
    #f4f8fb!important;
}

.ctv-bottom-nav-layout .ctv-live-main,
.ctv-bottom-nav-layout .ctv-tab-content,
.ctv-bottom-nav-layout main{
  padding-bottom:18px!important;
}

/* remove any old top tab remnants */
.ctv-bottom-nav-layout .ctv-live-tabs,
.ctv-bottom-nav-layout .ctv-app-tabs,
.ctv-bottom-nav-layout .ctv-telegram-tabs{
  display:none!important;
}

.ctv-app-bottom-nav{
  position:fixed!important;
  left:50%!important;
  bottom:0!important;
  z-index:999!important;
  transform:translateX(-50%)!important;
  width:min(430px,100%)!important;
  height:calc(72px + env(safe-area-inset-bottom))!important;
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  align-items:start!important;
  padding:7px 8px env(safe-area-inset-bottom)!important;
  box-sizing:border-box!important;
  border-top:1px solid #dfe8ee!important;
  background:rgba(255,255,255,.97)!important;
  backdrop-filter:blur(16px)!important;
  box-shadow:0 -8px 24px rgba(25,65,92,.10)!important;
}

.ctv-app-bottom-nav button{
  position:relative!important;
  min-width:0!important;
  height:58px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:3px!important;
  padding:0 2px!important;
  border:0!important;
  border-radius:10px!important;
  background:transparent!important;
  color:#607383!important;
  font-family:inherit!important;
  cursor:pointer!important;
  -webkit-tap-highlight-color:transparent!important;
}

.ctv-app-bottom-nav button span{
  display:block!important;
  font-size:20px!important;
  line-height:1!important;
  color:inherit!important;
}

.ctv-app-bottom-nav button b{
  display:block!important;
  font-size:8px!important;
  font-weight:600!important;
  white-space:nowrap!important;
  color:inherit!important;
}

.ctv-app-bottom-nav button.active{
  color:#0877e4!important;
}

.ctv-app-bottom-nav button.active:after{
  content:""!important;
  position:absolute!important;
  left:25%!important;
  right:25%!important;
  bottom:0!important;
  height:3px!important;
  border-radius:999px!important;
  background:#0877e4!important;
}

.ctv-app-bottom-nav .ctv-bottom-capture span{
  width:34px!important;
  height:34px!important;
  display:grid!important;
  place-items:center!important;
  margin-top:-12px!important;
  border-radius:50%!important;
  background:linear-gradient(135deg,#1189ef,#2159ee)!important;
  color:#fff!important;
  box-shadow:0 8px 18px rgba(16,105,226,.26)!important;
}

.ctv-app-bottom-nav .ctv-bottom-capture.active:after{
  display:none!important;
}

/* Clean spacing after removing the old top tabs */
.ctv-bottom-nav-layout .ctv-live-header + .ctv-live-main,
.ctv-bottom-nav-layout .ctv-topbar + .ctv-tab-content,
.ctv-bottom-nav-layout .ctv-telegram-header + .ctv-tab-content{
  padding-top:12px!important;
}

.ctv-bottom-nav-layout .ctv-overview-hero,
.ctv-bottom-nav-layout .ctv-work-card,
.ctv-bottom-nav-layout .ctv-panel-heading,
.ctv-bottom-nav-layout .ctv-app-form{
  margin-top:0!important;
}

/* Keep camera controls above bottom navigation */
.ctv-bottom-nav-layout.is-camera-mode .ctv-camera-controls,
.ctv-bottom-nav-layout .ctv-camera-controls{
  bottom:calc(82px + env(safe-area-inset-bottom))!important;
}

.ctv-bottom-nav-layout.is-camera-mode .ctv-camera-guide,
.ctv-bottom-nav-layout .ctv-camera-guide,
.ctv-bottom-nav-layout [class*="camera"][class*="instruction"]{
  bottom:calc(196px + env(safe-area-inset-bottom))!important;
}

@media(max-width:699px){
  .ctv-app-bottom-nav{
    left:0!important;
    right:0!important;
    transform:none!important;
    width:100%!important;
  }

  .ctv-bottom-nav-layout{
    width:100%!important;
    max-width:none!important;
    border-radius:0!important;
  }
}

@media(min-width:700px){
  .ctv-app-bottom-nav{
    border-radius:0 0 20px 20px!important;
  }
}

/* =========================================================
   V6.1 LIVE CTV NAV + DEDICATED CAMERA TAB
   ========================================================= */

/* Previous builds hid the live CTV footer. Force it back on. */
.ctv-live-app .s8-bottom-nav.ctv-live-bottom-nav{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  left:50%!important;
  right:auto!important;
  bottom:0!important;
  transform:translateX(-50%)!important;
  width:min(520px,100%)!important;
  height:calc(76px + env(safe-area-inset-bottom))!important;
  padding:6px 5px env(safe-area-inset-bottom)!important;
  background:rgba(255,255,255,.98)!important;
  border-top:1px solid #dce6ed!important;
  box-shadow:0 -8px 26px rgba(21,59,86,.12)!important;
  z-index:1000!important;
}

.ctv-live-bottom-nav button{
  position:relative!important;
  min-width:0!important;
  border:0!important;
  background:transparent!important;
  color:#607484!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:3px!important;
  padding:3px 1px!important;
  border-radius:10px!important;
  font-family:inherit!important;
}

.ctv-live-bottom-nav button span{
  font-size:20px!important;
  line-height:1!important;
}

.ctv-live-bottom-nav button small{
  font-size:8px!important;
  font-weight:600!important;
  white-space:nowrap!important;
}

.ctv-live-bottom-nav button.active{
  color:#0878e8!important;
}

.ctv-live-bottom-nav button.active:after{
  content:""!important;
  position:absolute!important;
  left:24%!important;
  right:24%!important;
  bottom:0!important;
  height:3px!important;
  border-radius:999px!important;
  background:#0878e8!important;
}

.ctv-live-bottom-nav .ctv-live-camera-tab span{
  width:38px!important;
  height:38px!important;
  display:grid!important;
  place-items:center!important;
  margin-top:-15px!important;
  border-radius:50%!important;
  color:#fff!important;
  background:linear-gradient(135deg,#1194ef,#2850ef)!important;
  box-shadow:0 8px 19px rgba(14,101,226,.28)!important;
}

.ctv-live-bottom-nav .ctv-live-camera-tab.active:after{
  display:none!important;
}

/* Space for fixed navigation */
.ctv-live-app{
  padding-bottom:calc(84px + env(safe-area-inset-bottom))!important;
}

.ctv-live-app .s8-main{
  min-height:calc(100dvh - 64px - 84px)!important;
}

/* Dedicated camera tab: only camera content is visible. */
.ctv-live-app.ctv-camera-active{
  background:#05080c!important;
}

.ctv-live-app.ctv-camera-active [data-live-panel]{
  display:none!important;
}

.ctv-live-app.ctv-camera-active #screenHome,
.ctv-live-app.ctv-camera-active #screenHistory,
.ctv-live-app.ctv-camera-active #screenConfirm,
.ctv-live-app.ctv-camera-active #screenSuccess{
  display:none!important;
}

.ctv-live-app.ctv-camera-active #screenCamera.active{
  display:block!important;
  padding:0!important;
  min-height:calc(100dvh - 64px - 76px - env(safe-area-inset-bottom))!important;
  background:#05080c!important;
}

.ctv-live-app.ctv-camera-active #screenCamera .screen-head{
  height:54px!important;
  min-height:54px!important;
  margin:0!important;
  background:linear-gradient(135deg,#087de8,#1858ee)!important;
}

.ctv-live-app.ctv-camera-active #screenCamera .camera-stage{
  height:calc(100dvh - 64px - 54px - 76px - env(safe-area-inset-bottom))!important;
  min-height:430px!important;
  border-radius:0!important;
}

.ctv-live-app.ctv-camera-active #screenCamera .camera-controls{
  position:absolute!important;
  left:0!important;
  right:0!important;
  bottom:calc(76px + env(safe-area-inset-bottom))!important;
  height:118px!important;
  z-index:80!important;
  background:linear-gradient(180deg,rgba(5,8,12,0),rgba(5,8,12,.96))!important;
}

.ctv-live-app.ctv-camera-active #screenCamera #takePhoto{
  display:block!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  width:82px!important;
  height:82px!important;
}

.ctv-live-app.ctv-camera-active .ctv-camera-controls{
  bottom:calc(84px + env(safe-area-inset-bottom))!important;
  z-index:90!important;
}

.ctv-live-app.ctv-camera-active .camera-guide{
  bottom:145px!important;
}

/* Hide generic three-tab navigation if any cached CSS/markup remains. */
.ctv-live-app .s8-bottom-nav:not(.ctv-live-bottom-nav){
  display:none!important;
}

@media(max-width:699px){
  .ctv-live-app .s8-bottom-nav.ctv-live-bottom-nav{
    left:0!important;
    right:0!important;
    transform:none!important;
    width:100%!important;
  }
}

@media(min-width:700px){
  .ctv-live-app .s8-bottom-nav.ctv-live-bottom-nav{
    bottom:24px!important;
    border-radius:0 0 22px 22px!important;
  }
}

/* =========================================================
   V6.2 HARD FIX: FUNCTIONAL EXCLUSIVE LIVE CTV TABS
   ========================================================= */

/* Only the selected information panel can be visible */
.ctv-live-app .ctv-live-panel[data-live-panel]{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  position:absolute!important;
  left:-99999px!important;
  width:0!important;
  height:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  pointer-events:none!important;
}

.ctv-live-app .ctv-live-panel[data-live-panel].active{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  position:relative!important;
  left:auto!important;
  width:auto!important;
  height:auto!important;
  min-height:calc(100dvh - 170px)!important;
  margin:0!important;
  padding:14px 18px calc(96px + env(safe-area-inset-bottom))!important;
  overflow:visible!important;
  pointer-events:auto!important;
  box-sizing:border-box!important;
}

/* Generic employee screens must never leak into CTV information tabs */
.ctv-live-app.ctv-info-view .s8-main > .s8-screen,
body.ctv-info-view .ctv-live-app .s8-main > .s8-screen{
  display:none!important;
}

/* Dedicated camera mode */
.ctv-live-app.ctv-camera-active .ctv-live-panel[data-live-panel]{
  display:none!important;
}

.ctv-live-app.ctv-camera-active #screenCamera{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  position:relative!important;
  left:auto!important;
  width:100%!important;
  height:calc(100dvh - 76px - env(safe-area-inset-bottom))!important;
  min-height:560px!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  background:#05080c!important;
  pointer-events:auto!important;
}

.ctv-live-app.ctv-camera-active #screenCamera .screen-head{
  height:56px!important;
  min-height:56px!important;
  margin:0!important;
  border-radius:0!important;
  background:linear-gradient(135deg,#087dea,#2557ed)!important;
}

.ctv-live-app.ctv-camera-active #screenCamera .camera-stage{
  position:relative!important;
  width:100%!important;
  height:calc(100dvh - 76px - 56px - 76px - env(safe-area-inset-bottom))!important;
  min-height:430px!important;
  margin:0!important;
  border-radius:0!important;
  overflow:hidden!important;
  background:#000!important;
}

.ctv-live-app.ctv-camera-active #screenCamera video{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}

/* Always show the real capture control */
.ctv-live-app.ctv-camera-active #takePhoto{
  display:grid!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  position:fixed!important;
  left:50%!important;
  bottom:calc(96px + env(safe-area-inset-bottom))!important;
  transform:translateX(-50%)!important;
  z-index:1400!important;
  width:82px!important;
  height:82px!important;
  min-width:82px!important;
  min-height:82px!important;
  padding:0!important;
  border:6px solid rgba(255,255,255,.95)!important;
  border-radius:50%!important;
  background:#fff!important;
  box-shadow:0 8px 26px rgba(0,0,0,.32)!important;
}

/* Footer tabs always visible and clickable */
.ctv-live-app .ctv-live-bottom-nav{
  display:grid!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  position:fixed!important;
  z-index:1500!important;
}

.ctv-live-app .ctv-live-bottom-nav button{
  pointer-events:auto!important;
  touch-action:manipulation!important;
}

.ctv-live-app .ctv-live-bottom-nav button.active{
  color:#0878e8!important;
}

.ctv-live-app .ctv-live-bottom-nav button.active:after{
  display:block!important;
  content:""!important;
}

/* Remove accidental overview duplication inside non-overview tabs */
.ctv-live-app .ctv-live-panel[data-live-panel="progress"] > .ctv-live-heading:first-child,
.ctv-live-app .ctv-live-panel[data-live-panel="profile"] > .ctv-live-heading:first-child,
.ctv-live-app .ctv-live-panel[data-live-panel="bank"] > .ctv-live-heading:first-child{
  display:block!important;
}

/* =========================================================
   V6.3 CENTER CAMERA SHUTTER
   ========================================================= */

/* Remove old/duplicate left-side camera control */
.ctv-live-app.ctv-camera-active .camera-stage > button:not(#takePhoto),
.ctv-live-app.ctv-camera-active .camera-stage .camera-side-control,
.ctv-live-app.ctv-camera-active .camera-stage .camera-float-control,
.ctv-live-app.ctv-camera-active .camera-stage .gallery-button,
.ctv-live-app.ctv-camera-active .camera-stage .camera-preview-button,
.ctv-live-app.ctv-camera-active .camera-stage .camera-left-action{
  display:none!important;
}

/* Hide any old pseudo/duplicate shutter */
.ctv-live-app.ctv-camera-active .camera-stage:before,
.ctv-live-app.ctv-camera-active .camera-stage:after{
  display:none!important;
  content:none!important;
}

/* Force the real shutter to the exact center */
.ctv-live-app.ctv-camera-active #takePhoto{
  display:grid!important;
  place-items:center!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;

  position:fixed!important;
  left:50%!important;
  right:auto!important;
  bottom:calc(96px + env(safe-area-inset-bottom))!important;
  transform:translateX(-50%)!important;

  width:84px!important;
  height:84px!important;
  min-width:84px!important;
  min-height:84px!important;
  margin:0!important;
  padding:0!important;

  border:6px solid rgba(255,255,255,.98)!important;
  border-radius:50%!important;
  background:#ffffff!important;
  box-shadow:
    0 0 0 4px rgba(255,255,255,.25),
    0 10px 30px rgba(0,0,0,.34)!important;

  z-index:2000!important;
}

/* Inner press effect */
.ctv-live-app.ctv-camera-active #takePhoto:active{
  transform:translateX(-50%) scale(.9)!important;
}

/* Keep guide text above shutter */
.ctv-live-app.ctv-camera-active .camera-guide,
.ctv-live-app.ctv-camera-active [class*="camera"][class*="instruction"]{
  bottom:calc(190px + env(safe-area-inset-bottom))!important;
}

/* Ensure footer stays below shutter */
.ctv-live-app .ctv-live-bottom-nav{
  z-index:1800!important;
}

/* Camera frame clean edges */
.ctv-live-app.ctv-camera-active #screenCamera,
.ctv-live-app.ctv-camera-active #screenCamera .camera-stage{
  overflow:hidden!important;
}

/* =========================================================
   V6.4 UNIFIED MOBILE UI + TRUE CENTER SHUTTER
   ========================================================= */

/* App frame */
.ctv-live-app{
  width:100%!important;
  max-width:540px!important;
  min-height:100dvh!important;
  margin:0 auto!important;
  overflow-x:hidden!important;
  background:#eef5f9!important;
  box-sizing:border-box!important;
}

.ctv-live-app *,
.ctv-live-app *:before,
.ctv-live-app *:after{
  box-sizing:border-box!important;
  max-width:100%;
}

/* Header */
.ctv-live-app .ctv-live-header{
  width:100%!important;
  margin:0!important;
  border-radius:0!important;
}

/* Each tab behaves like Bank tab */
.ctv-live-app .ctv-live-panel[data-live-panel].active{
  width:100%!important;
  max-width:100%!important;
  min-height:calc(100dvh - 160px)!important;
  padding:18px 24px calc(108px + env(safe-area-inset-bottom))!important;
  margin:0!important;
  overflow-x:hidden!important;
  background:#eef5f9!important;
}

/* Unified section/card style */
.ctv-live-app .ctv-live-heading,
.ctv-live-app .ctv-live-overview-grid article,
.ctv-live-app .ctv-live-support,
.ctv-live-app .ctv-go-capture,
.ctv-live-app .ctv-live-timeline,
.ctv-live-app .ctv-live-work-card,
.ctv-live-app .ctv-live-form{
  width:100%!important;
  max-width:100%!important;
  margin-left:0!important;
  margin-right:0!important;
  border:1px solid #dbe6ed!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 8px 24px rgba(28,68,94,.055)!important;
  overflow:hidden!important;
}

/* Heading card */
.ctv-live-app .ctv-live-heading{
  padding:20px 22px!important;
  margin-bottom:14px!important;
}

.ctv-live-app .ctv-live-heading h2{
  margin:5px 0 7px!important;
  font-size:24px!important;
  line-height:1.18!important;
  overflow-wrap:anywhere!important;
}

.ctv-live-app .ctv-live-heading p{
  margin:0!important;
  line-height:1.55!important;
}

/* Overview grid */
.ctv-live-app .ctv-live-overview-grid{
  width:100%!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;
  margin:0!important;
}

.ctv-live-app .ctv-live-overview-grid article{
  min-width:0!important;
  min-height:132px!important;
  padding:18px!important;
}

.ctv-live-app .ctv-live-overview-grid article strong{
  display:block!important;
  max-width:100%!important;
  font-size:24px!important;
  line-height:1.12!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
}

.ctv-live-app .ctv-live-progress{
  width:100%!important;
  margin:14px 0!important;
}

/* Support and capture CTA */
.ctv-live-app .ctv-live-support{
  min-height:82px!important;
  padding:14px 18px!important;
  margin-top:14px!important;
}

.ctv-live-app .ctv-go-capture{
  min-height:82px!important;
  padding:14px 18px!important;
  margin-top:14px!important;
  border:0!important;
  border-radius:18px!important;
  background:linear-gradient(135deg,#0a8ee8,#4148ec)!important;
  color:#fff!important;
}

/* Timeline */
.ctv-live-app .ctv-live-timeline{
  padding:16px 18px!important;
  margin-bottom:14px!important;
}

.ctv-live-app .ctv-live-timeline > div{
  min-width:0!important;
  overflow:hidden!important;
}

.ctv-live-app .ctv-live-timeline span,
.ctv-live-app .ctv-live-timeline strong,
.ctv-live-app .ctv-live-timeline small{
  overflow-wrap:anywhere!important;
}

.ctv-live-app .ctv-live-work-card{
  padding:20px!important;
  margin-top:14px!important;
}

/* Forms identical to Bank tab */
.ctv-live-app .ctv-live-form{
  padding:18px!important;
}

.ctv-live-app .ctv-live-form label{
  display:block!important;
  width:100%!important;
  margin:0 0 14px!important;
}

.ctv-live-app .ctv-live-form input,
.ctv-live-app .ctv-live-form select,
.ctv-live-app .ctv-live-form textarea,
.ctv-live-app .ctv-live-form button{
  width:100%!important;
  max-width:100%!important;
}

.ctv-live-app .ctv-live-form input,
.ctv-live-app .ctv-live-form select,
.ctv-live-app .ctv-live-form textarea{
  min-height:48px!important;
  padding:12px 14px!important;
  border:1px solid #ccdce6!important;
  border-radius:14px!important;
  background:#fff!important;
}

.ctv-live-app .ctv-live-form textarea{
  min-height:100px!important;
  resize:vertical!important;
}

.ctv-live-app .ctv-live-form button{
  min-height:58px!important;
  border-radius:14px!important;
}

.ctv-live-app .ctv-live-security{
  width:100%!important;
  margin:0 0 16px!important;
  padding:12px 14px!important;
  border-radius:14px!important;
}

/* Bottom nav stable */
.ctv-live-app .ctv-live-bottom-nav{
  width:min(540px,100%)!important;
  height:calc(78px + env(safe-area-inset-bottom))!important;
}

/* Camera tab: fill the content exactly */
.ctv-live-app.ctv-camera-active{
  background:#000!important;
}

.ctv-live-app.ctv-camera-active #screenCamera{
  position:relative!important;
  width:100%!important;
  max-width:100%!important;
  height:calc(100dvh - 78px - env(safe-area-inset-bottom))!important;
  min-height:560px!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
}

.ctv-live-app.ctv-camera-active #screenCamera .camera-stage{
  position:relative!important;
  width:100%!important;
  height:calc(100dvh - 78px - 56px - 78px - env(safe-area-inset-bottom))!important;
  min-height:430px!important;
  overflow:hidden!important;
}

.ctv-live-app.ctv-camera-active #screenCamera video{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}

/* Remove every old shutter/left control */
.ctv-live-app.ctv-camera-active .camera-stage > button:not(#takePhoto),
.ctv-live-app.ctv-camera-active .camera-stage .camera-side-control,
.ctv-live-app.ctv-camera-active .camera-stage .camera-float-control,
.ctv-live-app.ctv-camera-active .camera-stage .gallery-button,
.ctv-live-app.ctv-camera-active .camera-stage .camera-preview-button,
.ctv-live-app.ctv-camera-active .camera-stage .camera-left-action,
.ctv-live-app.ctv-camera-active .ctv-camera-side,
.ctv-live-app.ctv-camera-active .ctv-camera-gallery,
.ctv-live-app.ctv-camera-active .ctv-camera-switch{
  display:none!important;
}

/* True centered shutter relative to viewport/app */
.ctv-live-app.ctv-camera-active #takePhoto{
  display:grid!important;
  place-items:center!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;

  position:fixed!important;
  left:50vw!important;
  right:auto!important;
  bottom:calc(98px + env(safe-area-inset-bottom))!important;
  transform:translateX(-50%)!important;

  width:86px!important;
  height:86px!important;
  min-width:86px!important;
  min-height:86px!important;
  margin:0!important;
  padding:0!important;

  border:6px solid rgba(255,255,255,.98)!important;
  border-radius:50%!important;
  background:#fff!important;
  box-shadow:
    0 0 0 5px rgba(255,255,255,.22),
    0 12px 34px rgba(0,0,0,.38)!important;

  z-index:3000!important;
}

/* fallback inner circle if button has no child */
.ctv-live-app.ctv-camera-active #takePhoto:before{
  content:""!important;
  width:62px!important;
  height:62px!important;
  border-radius:50%!important;
  background:#fff!important;
  box-shadow:inset 0 0 0 2px rgba(0,112,227,.08)!important;
}

.ctv-live-app.ctv-camera-active #takePhoto:active{
  transform:translateX(-50%) scale(.92)!important;
}

.ctv-live-app.ctv-camera-active .camera-guide{
  left:50%!important;
  right:auto!important;
  width:calc(min(540px,100vw) - 48px)!important;
  bottom:calc(205px + env(safe-area-inset-bottom))!important;
  transform:translateX(-50%)!important;
}

/* tablet/desktop: center in app frame, not viewport */
@media(min-width:700px){
  .ctv-live-app.ctv-camera-active #takePhoto{
    left:50%!important;
  }
}

/* Small phones */
@media(max-width:380px){
  .ctv-live-app .ctv-live-panel[data-live-panel].active{
    padding-left:14px!important;
    padding-right:14px!important;
  }

  .ctv-live-app .ctv-live-heading{
    padding:17px!important;
  }

  .ctv-live-app .ctv-live-overview-grid{
    gap:10px!important;
  }

  .ctv-live-app .ctv-live-overview-grid article{
    min-height:118px!important;
    padding:14px!important;
  }

  .ctv-live-app .ctv-live-overview-grid article strong{
    font-size:20px!important;
  }
}

/* =========================================================
   V6.5 TRUE CENTER CAMERA BUTTON
   ========================================================= */

/* The duplicated camera control system has been removed from HTML. */
#ctvCameraControls,
#ctvCameraShutter,
#ctvCameraGallery,
#ctvCameraSwitch,
#ctvCameraGpsStatus,
#ctvCameraFlashStatus{
  display:none!important;
}

/* Camera screen is the positioning context. */
.ctv-live-app.ctv-camera-active #screenCamera{
  position:relative!important;
  overflow:hidden!important;
}

/* Keep the preview above a dedicated control dock. */
.ctv-live-app.ctv-camera-active #screenCamera .camera-stage{
  height:calc(100dvh - 78px - 56px - 134px - env(safe-area-inset-bottom))!important;
  min-height:390px!important;
  padding-bottom:0!important;
}

/* Dedicated bottom camera dock, directly above the navigation bar. */
.ctv-live-app.ctv-camera-active #screenCamera > .camera-controls{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;

  position:absolute!important;
  left:0!important;
  right:0!important;
  bottom:calc(78px + env(safe-area-inset-bottom))!important;

  width:100%!important;
  height:134px!important;
  margin:0!important;
  padding:14px 0 18px!important;

  background:linear-gradient(
    180deg,
    rgba(5,8,12,0) 0%,
    rgba(5,8,12,.76) 34%,
    rgba(5,8,12,.98) 100%
  )!important;
  z-index:1200!important;
  pointer-events:none!important;
}

/* The genuine system capture button, truly centered in the camera dock. */
.ctv-live-app.ctv-camera-active #screenCamera #takePhoto{
  display:grid!important;
  place-items:center!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;

  position:relative!important;
  inset:auto!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  bottom:auto!important;
  transform:none!important;

  flex:0 0 86px!important;
  width:86px!important;
  height:86px!important;
  min-width:86px!important;
  min-height:86px!important;
  max-width:86px!important;
  max-height:86px!important;
  margin:0 auto!important;
  padding:0!important;

  border:6px solid #fff!important;
  border-radius:50%!important;
  background:rgba(255,255,255,.22)!important;
  box-shadow:
    0 0 0 4px rgba(255,255,255,.20),
    0 12px 32px rgba(0,0,0,.38)!important;
  z-index:1300!important;
  color:transparent!important;
  font-size:0!important;
  overflow:visible!important;
}

/* Inner white circle. */
.ctv-live-app.ctv-camera-active #screenCamera #takePhoto > span{
  display:block!important;
  width:62px!important;
  height:62px!important;
  border-radius:50%!important;
  background:#fff!important;
  box-shadow:inset 0 0 0 2px rgba(8,119,232,.10)!important;
}

.ctv-live-app.ctv-camera-active #screenCamera #takePhoto:before,
.ctv-live-app.ctv-camera-active #screenCamera #takePhoto:after{
  display:none!important;
  content:none!important;
}

.ctv-live-app.ctv-camera-active #screenCamera #takePhoto:active{
  transform:scale(.90)!important;
}

/* Guide stays above the centered shutter. */
.ctv-live-app.ctv-camera-active #screenCamera .camera-guide{
  left:50%!important;
  right:auto!important;
  bottom:150px!important;
  width:calc(100% - 48px)!important;
  max-width:420px!important;
  transform:translateX(-50%)!important;
  z-index:1100!important;
}

/* GPS remains centered near the top of preview. */
.ctv-live-app.ctv-camera-active #screenCamera .gps-badge{
  left:50%!important;
  right:auto!important;
  transform:translateX(-50%)!important;
  z-index:1100!important;
}

/* Navigation stays beneath camera controls. */
.ctv-live-app .ctv-live-bottom-nav{
  z-index:1400!important;
}

@media(max-width:380px){
  .ctv-live-app.ctv-camera-active #screenCamera > .camera-controls{
    height:122px!important;
  }

  .ctv-live-app.ctv-camera-active #screenCamera .camera-stage{
    height:calc(100dvh - 78px - 56px - 122px - env(safe-area-inset-bottom))!important;
  }

  .ctv-live-app.ctv-camera-active #screenCamera #takePhoto{
    flex-basis:78px!important;
    width:78px!important;
    height:78px!important;
    min-width:78px!important;
    min-height:78px!important;
    max-width:78px!important;
    max-height:78px!important;
  }

  .ctv-live-app.ctv-camera-active #screenCamera #takePhoto > span{
    width:56px!important;
    height:56px!important;
  }

  .ctv-live-app.ctv-camera-active #screenCamera .camera-guide{
    bottom:140px!important;
  }
}

/* =========================================================
   V6.6 CAMERA CONTROL DOCK — GUARANTEED CENTERED SHUTTER
   ========================================================= */

/* Neutralize all legacy fixed-position shutter rules. */
.ctv-live-app.ctv-camera-active #takePhoto,
#screenCamera #takePhoto,
#screenCamera #takePhoto.shutter{
  position:relative!important;
  inset:auto!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  bottom:auto!important;
  transform:none!important;
  margin:0!important;
}

/* Full camera panel */
.ctv-live-app.ctv-camera-active #screenCamera{
  display:block!important;
  width:100%!important;
  height:calc(100dvh - 78px - env(safe-area-inset-bottom))!important;
  min-height:560px!important;
  padding:0!important;
  overflow:hidden!important;
  background:#05080c!important;
}

.ctv-live-app.ctv-camera-active #screenCamera .screen-head{
  height:56px!important;
  min-height:56px!important;
  margin:0!important;
  border-radius:0!important;
  background:linear-gradient(135deg,#087ce9,#2059ee)!important;
}

.ctv-live-app.ctv-camera-active #screenCamera .camera-stage{
  position:relative!important;
  width:100%!important;
  height:calc(100dvh - 78px - 56px - env(safe-area-inset-bottom))!important;
  min-height:480px!important;
  padding:0 0 142px!important;
  overflow:hidden!important;
  background:#000!important;
}

.ctv-live-app.ctv-camera-active #screenCamera video,
.ctv-live-app.ctv-camera-active #screenCamera canvas{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}

/* Guide sits above the dock. */
.ctv-live-app.ctv-camera-active #screenCamera .camera-guide{
  position:absolute!important;
  left:50%!important;
  right:auto!important;
  bottom:154px!important;
  width:calc(100% - 48px)!important;
  max-width:430px!important;
  transform:translateX(-50%)!important;
  z-index:15!important;
}

/* Dock is inside the camera stage and always spans 100% width. */
.ctv-live-app.ctv-camera-active .camera-action-dock{
  position:absolute!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  z-index:30!important;

  width:100%!important;
  height:142px!important;
  display:grid!important;
  grid-template-columns:minmax(72px,1fr) 126px minmax(72px,1fr)!important;
  align-items:center!important;
  justify-items:center!important;
  gap:0!important;
  padding:12px 18px 15px!important;

  background:linear-gradient(
    180deg,
    rgba(5,10,17,.28) 0%,
    rgba(5,10,17,.90) 32%,
    #050a12 100%
  )!important;
  box-sizing:border-box!important;
}

/* Genuine shutter occupies the exact center grid column. */
.ctv-live-app.ctv-camera-active .camera-shutter-group{
  width:126px!important;
  min-width:126px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
}

.ctv-live-app.ctv-camera-active .camera-center-shutter{
  display:grid!important;
  place-items:center!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;

  flex:0 0 86px!important;
  width:86px!important;
  height:86px!important;
  min-width:86px!important;
  min-height:86px!important;
  max-width:86px!important;
  max-height:86px!important;
  padding:0!important;

  border:6px solid #fff!important;
  border-radius:50%!important;
  background:#1476ee!important;
  box-shadow:
    0 0 0 4px rgba(255,255,255,.20),
    0 10px 30px rgba(0,0,0,.38)!important;
  color:transparent!important;
  font-size:0!important;
}

.ctv-live-app.ctv-camera-active .camera-center-shutter > span{
  display:block!important;
  width:62px!important;
  height:62px!important;
  border-radius:50%!important;
  background:#fff!important;
}

.ctv-live-app.ctv-camera-active .camera-center-shutter:before,
.ctv-live-app.ctv-camera-active .camera-center-shutter:after{
  display:none!important;
  content:none!important;
}

.ctv-live-app.ctv-camera-active .camera-center-shutter:active{
  transform:scale(.91)!important;
}

.ctv-live-app.ctv-camera-active .camera-shutter-group > b{
  color:#fff!important;
  font-size:11px!important;
  line-height:1!important;
  white-space:nowrap!important;
}

/* Side controls */
.ctv-live-app.ctv-camera-active .camera-dock-side{
  width:84px!important;
  min-height:78px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  padding:8px 4px!important;

  border:0!important;
  border-radius:16px!important;
  background:transparent!important;
  color:#fff!important;
  box-shadow:none!important;
}

.ctv-live-app.ctv-camera-active .camera-dock-side.active{
  background:rgba(26,125,237,.24)!important;
  color:#69afff!important;
}

.ctv-live-app.ctv-camera-active .camera-dock-icon{
  display:block!important;
  font-size:27px!important;
  line-height:1!important;
}

.ctv-live-app.ctv-camera-active .camera-dock-side small{
  color:inherit!important;
  font-size:9px!important;
  font-weight:600!important;
  white-space:nowrap!important;
}

/* Bottom navigation remains beneath the dock. */
.ctv-live-app .ctv-live-bottom-nav{
  z-index:100!important;
}

/* Remove any stale duplicate controls from prior versions. */
#ctvCameraControls,
#ctvCameraShutter,
#ctvCameraGallery,
#ctvCameraSwitch,
#ctvCameraGpsStatus,
#ctvCameraFlashStatus,
#screenCamera > .camera-controls{
  display:none!important;
}

@media(max-width:380px){
  .ctv-live-app.ctv-camera-active #screenCamera .camera-stage{
    padding-bottom:128px!important;
  }

  .ctv-live-app.ctv-camera-active .camera-action-dock{
    height:128px!important;
    grid-template-columns:minmax(64px,1fr) 108px minmax(64px,1fr)!important;
    padding-left:10px!important;
    padding-right:10px!important;
  }

  .ctv-live-app.ctv-camera-active .camera-shutter-group{
    width:108px!important;
    min-width:108px!important;
  }

  .ctv-live-app.ctv-camera-active .camera-center-shutter{
    flex-basis:76px!important;
    width:76px!important;
    height:76px!important;
    min-width:76px!important;
    min-height:76px!important;
    max-width:76px!important;
    max-height:76px!important;
  }

  .ctv-live-app.ctv-camera-active .camera-center-shutter > span{
    width:54px!important;
    height:54px!important;
  }

  .ctv-live-app.ctv-camera-active #screenCamera .camera-guide{
    bottom:140px!important;
  }

  .ctv-live-app.ctv-camera-active .camera-dock-side{
    width:68px!important;
  }
}

/* =========================================================
   V6.8 FINAL CAMERA DOCK FIX
   ========================================================= */

/* Keep the 5-tab navigation attached to the true viewport bottom. */
.ctv-live-app .ctv-live-bottom-nav{
  position:fixed!important;
  left:50%!important;
  right:auto!important;
  bottom:0!important;
  transform:translateX(-50%)!important;
  width:min(540px,100vw)!important;
  height:calc(76px + env(safe-area-inset-bottom))!important;
  margin:0!important;
  padding:6px 8px env(safe-area-inset-bottom)!important;
  border-radius:0!important;
  z-index:5000!important;
}

/* Camera screen reserves exact space for dock + bottom navigation. */
.ctv-live-app.ctv-camera-active #screenCamera{
  height:calc(100dvh - 76px - env(safe-area-inset-bottom))!important;
  min-height:560px!important;
  padding-bottom:0!important;
}

.ctv-live-app.ctv-camera-active #screenCamera .camera-stage{
  height:calc(100dvh - 76px - 56px - env(safe-area-inset-bottom))!important;
  min-height:460px!important;
  padding-bottom:214px!important;
}

/* Raise the black camera dock above the fixed menu. */
.ctv-live-app.ctv-camera-active .camera-action-dock{
  position:absolute!important;
  left:0!important;
  right:0!important;
  bottom:calc(76px + env(safe-area-inset-bottom))!important;
  width:100%!important;
  height:138px!important;
  grid-template-columns:minmax(72px,1fr) 126px minmax(72px,1fr)!important;
  padding:10px 18px 14px!important;
  z-index:4200!important;
}

/* Ensure shutter is centered and never covered. */
.ctv-live-app.ctv-camera-active .camera-shutter-group{
  width:126px!important;
  min-width:126px!important;
  justify-self:center!important;
  align-self:center!important;
  transform:translateY(-4px)!important;
}

.ctv-live-app.ctv-camera-active .camera-center-shutter{
  width:86px!important;
  height:86px!important;
  min-width:86px!important;
  min-height:86px!important;
  max-width:86px!important;
  max-height:86px!important;
  margin:0 auto!important;
  z-index:4300!important;
}

/* Keep guide text above the camera dock. */
.ctv-live-app.ctv-camera-active #screenCamera .camera-guide{
  bottom:calc(228px + env(safe-area-inset-bottom))!important;
  z-index:4100!important;
}

/* Prevent old white bars or legacy camera controls from reappearing. */
.ctv-live-app.ctv-camera-active #screenCamera > .camera-controls,
#ctvCameraControls,
#ctvCameraShutter,
#ctvCameraGallery,
#ctvCameraSwitch{
  display:none!important;
}

/* Footer button in the center remains visually separated from the shutter. */
.ctv-live-bottom-nav .ctv-live-camera-tab span{
  margin-top:-10px!important;
}

/* Small phones. */
@media(max-width:380px){
  .ctv-live-app.ctv-camera-active #screenCamera .camera-stage{
    padding-bottom:198px!important;
  }

  .ctv-live-app.ctv-camera-active .camera-action-dock{
    bottom:calc(72px + env(safe-area-inset-bottom))!important;
    height:126px!important;
    grid-template-columns:minmax(62px,1fr) 108px minmax(62px,1fr)!important;
    padding-left:10px!important;
    padding-right:10px!important;
  }

  .ctv-live-app.ctv-camera-active .camera-shutter-group{
    width:108px!important;
    min-width:108px!important;
  }

  .ctv-live-app.ctv-camera-active .camera-center-shutter{
    width:76px!important;
    height:76px!important;
    min-width:76px!important;
    min-height:76px!important;
    max-width:76px!important;
    max-height:76px!important;
  }

  .ctv-live-app.ctv-camera-active #screenCamera .camera-guide{
    bottom:calc(208px + env(safe-area-inset-bottom))!important;
  }
}

/* Desktop preview: keep bottom menu attached to app frame. */
@media(min-width:700px){
  .ctv-live-app .ctv-live-bottom-nav{
    width:540px!important;
  }
}

/* =========================================================
   V7.2 CAMERA UI FINAL
   Prevent camera dock from overlapping bottom navigation
   ========================================================= */

:root{
  --s8-ctv-bottom-nav-h: 76px;
  --s8-camera-dock-h: 136px;
}

/* Bottom navigation stays at the real viewport bottom. */
.ctv-live-app .ctv-live-bottom-nav{
  position:fixed!important;
  left:50%!important;
  right:auto!important;
  bottom:0!important;
  transform:translateX(-50%)!important;
  width:min(540px,100vw)!important;
  height:calc(var(--s8-ctv-bottom-nav-h) + env(safe-area-inset-bottom))!important;
  margin:0!important;
  padding:6px 8px env(safe-area-inset-bottom)!important;
  border-radius:0!important;
  background:rgba(255,255,255,.98)!important;
  z-index:5000!important;
}

/* Reserve enough room inside the camera stage for both dock and menu. */
.ctv-live-app.ctv-camera-active #screenCamera{
  height:calc(100dvh - var(--s8-ctv-bottom-nav-h) - env(safe-area-inset-bottom))!important;
  min-height:560px!important;
  padding:0!important;
  overflow:hidden!important;
}

.ctv-live-app.ctv-camera-active #screenCamera .camera-stage{
  position:relative!important;
  height:calc(
    100dvh
    - var(--s8-ctv-bottom-nav-h)
    - 56px
    - env(safe-area-inset-bottom)
  )!important;
  min-height:450px!important;
  padding-bottom:calc(
    var(--s8-camera-dock-h)
    + var(--s8-ctv-bottom-nav-h)
    + env(safe-area-inset-bottom)
  )!important;
  overflow:hidden!important;
}

/* Camera controls sit directly above the bottom nav, never on top of it. */
.ctv-live-app.ctv-camera-active .camera-action-dock{
  position:absolute!important;
  left:0!important;
  right:0!important;
  bottom:calc(
    var(--s8-ctv-bottom-nav-h)
    + env(safe-area-inset-bottom)
  )!important;
  width:100%!important;
  height:var(--s8-camera-dock-h)!important;
  display:grid!important;
  grid-template-columns:minmax(72px,1fr) 126px minmax(72px,1fr)!important;
  align-items:center!important;
  justify-items:center!important;
  padding:10px 18px 14px!important;
  margin:0!important;
  background:linear-gradient(
    180deg,
    rgba(4,9,16,.10) 0%,
    rgba(4,9,16,.90) 28%,
    #040910 100%
  )!important;
  z-index:4200!important;
}

/* True centered shutter. */
.ctv-live-app.ctv-camera-active .camera-shutter-group{
  width:126px!important;
  min-width:126px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  margin:0!important;
  transform:translateY(-8px)!important;
}

.ctv-live-app.ctv-camera-active .camera-center-shutter{
  position:relative!important;
  inset:auto!important;
  width:88px!important;
  height:88px!important;
  min-width:88px!important;
  min-height:88px!important;
  max-width:88px!important;
  max-height:88px!important;
  margin:0 auto!important;
  transform:none!important;
  z-index:4300!important;
}

.ctv-live-app.ctv-camera-active .camera-center-shutter:active{
  transform:scale(.92)!important;
}

/* Guide text stays above the camera dock. */
.ctv-live-app.ctv-camera-active #screenCamera .camera-guide{
  position:absolute!important;
  left:50%!important;
  right:auto!important;
  bottom:calc(
    var(--s8-camera-dock-h)
    + var(--s8-ctv-bottom-nav-h)
    + 12px
    + env(safe-area-inset-bottom)
  )!important;
  width:calc(100% - 48px)!important;
  max-width:430px!important;
  transform:translateX(-50%)!important;
  z-index:4100!important;
}

/* Remove legacy blocks that created the black overlapping strip. */
.ctv-live-app.ctv-camera-active #screenCamera > .camera-controls,
.ctv-live-app.ctv-camera-active #screenCamera > .ctv-camera-controls,
#ctvCameraControls,
#ctvCameraShutter,
#ctvCameraGallery,
#ctvCameraSwitch{
  display:none!important;
}

/* Keep the active camera tab visually compact. */
.ctv-live-bottom-nav .ctv-live-camera-tab span{
  margin-top:-8px!important;
}

/* Small phones */
@media(max-width:380px){
  :root{
    --s8-ctv-bottom-nav-h:72px;
    --s8-camera-dock-h:124px;
  }

  .ctv-live-app.ctv-camera-active .camera-action-dock{
    grid-template-columns:minmax(62px,1fr) 108px minmax(62px,1fr)!important;
    padding-left:10px!important;
    padding-right:10px!important;
  }

  .ctv-live-app.ctv-camera-active .camera-shutter-group{
    width:108px!important;
    min-width:108px!important;
  }

  .ctv-live-app.ctv-camera-active .camera-center-shutter{
    width:78px!important;
    height:78px!important;
    min-width:78px!important;
    min-height:78px!important;
    max-width:78px!important;
    max-height:78px!important;
  }
}

/* Desktop preview remains centered in app width. */
@media(min-width:700px){
  .ctv-live-app .ctv-live-bottom-nav{
    width:540px!important;
  }
}

/* =========================================================
   V7.4 CAMERA DOCK GAP FIX
   ========================================================= */
:root{
  --s8-nav-height:76px;
  --s8-camera-dock-height:126px;
  --s8-camera-gap:8px;
}

.ctv-live-app .ctv-live-bottom-nav{
  position:fixed!important;
  left:50%!important;
  right:auto!important;
  bottom:0!important;
  transform:translateX(-50%)!important;
  width:min(540px,100vw)!important;
  height:calc(var(--s8-nav-height) + env(safe-area-inset-bottom))!important;
  margin:0!important;
  padding:6px 8px env(safe-area-inset-bottom)!important;
  border-top:1px solid #dfe8ee!important;
  border-radius:0!important;
  background:#fff!important;
  box-shadow:0 -8px 22px rgba(24,59,86,.10)!important;
  overflow:visible!important;
  z-index:6000!important;
}

.ctv-live-app.ctv-camera-active #screenCamera{
  height:calc(100dvh - var(--s8-nav-height) - env(safe-area-inset-bottom))!important;
  min-height:560px!important;
  padding:0!important;
  overflow:hidden!important;
  background:#000!important;
}

.ctv-live-app.ctv-camera-active #screenCamera .camera-stage{
  position:relative!important;
  height:calc(100dvh - var(--s8-nav-height) - 56px - env(safe-area-inset-bottom))!important;
  min-height:450px!important;
  padding-bottom:calc(var(--s8-camera-dock-height) + var(--s8-nav-height) + var(--s8-camera-gap) + env(safe-area-inset-bottom))!important;
  overflow:hidden!important;
  background:#000!important;
}

.ctv-live-app.ctv-camera-active .camera-action-dock{
  position:absolute!important;
  left:0!important;
  right:0!important;
  bottom:calc(var(--s8-nav-height) + var(--s8-camera-gap) + env(safe-area-inset-bottom))!important;
  width:100%!important;
  height:var(--s8-camera-dock-height)!important;
  margin:0!important;
  padding:8px 18px 12px!important;
  display:grid!important;
  grid-template-columns:minmax(72px,1fr) 126px minmax(72px,1fr)!important;
  align-items:center!important;
  justify-items:center!important;
  background:linear-gradient(180deg,rgba(4,9,16,.18) 0%,rgba(4,9,16,.94) 28%,#040910 100%)!important;
  border-bottom:0!important;
  box-shadow:none!important;
  overflow:hidden!important;
  z-index:5000!important;
}

.ctv-live-app.ctv-camera-active #screenCamera:after,
.ctv-live-app.ctv-camera-active .camera-stage:after,
.ctv-live-app.ctv-camera-active .camera-action-dock:after{
  display:none!important;
  content:none!important;
}

.ctv-live-app.ctv-camera-active .camera-shutter-group{
  width:126px!important;
  min-width:126px!important;
  margin:0!important;
  transform:translateY(-10px)!important;
}

.ctv-live-app.ctv-camera-active .camera-center-shutter{
  width:86px!important;
  height:86px!important;
  min-width:86px!important;
  min-height:86px!important;
  max-width:86px!important;
  max-height:86px!important;
  margin:0 auto!important;
  z-index:5200!important;
}

.ctv-live-app.ctv-camera-active #screenCamera .camera-guide{
  bottom:calc(var(--s8-camera-dock-height) + var(--s8-nav-height) + var(--s8-camera-gap) + 14px + env(safe-area-inset-bottom))!important;
  z-index:4900!important;
}

.ctv-live-app.ctv-camera-active #screenCamera > .camera-controls,
.ctv-live-app.ctv-camera-active #screenCamera > .ctv-camera-controls,
#ctvCameraControls,
#ctvCameraShutter,
#ctvCameraGallery,
#ctvCameraSwitch{
  display:none!important;
}

.ctv-live-bottom-nav .ctv-live-camera-tab span{
  margin-top:-8px!important;
}

@media(max-width:380px){
  :root{
    --s8-nav-height:72px;
    --s8-camera-dock-height:116px;
    --s8-camera-gap:6px;
  }

  .ctv-live-app.ctv-camera-active .camera-action-dock{
    grid-template-columns:minmax(62px,1fr) 108px minmax(62px,1fr)!important;
    padding-left:10px!important;
    padding-right:10px!important;
  }

  .ctv-live-app.ctv-camera-active .camera-shutter-group{
    width:108px!important;
    min-width:108px!important;
  }

  .ctv-live-app.ctv-camera-active .camera-center-shutter{
    width:76px!important;
    height:76px!important;
    min-width:76px!important;
    min-height:76px!important;
    max-width:76px!important;
    max-height:76px!important;
  }
}

@media(min-width:700px){
  .ctv-live-app .ctv-live-bottom-nav{
    width:540px!important;
  }
}

/* =========================================================
   V7.5 OVERVIEW UI REFRESH
   ========================================================= */

/* Overview page container */
.ctv-live-app .ctv-live-panel[data-live-panel="overview"].active{
  width:100%!important;
  padding:14px 16px calc(96px + env(safe-area-inset-bottom))!important;
  background:
    radial-gradient(circle at 50% -10%,rgba(23,129,234,.11),transparent 34%),
    #eef5f9!important;
  overflow-x:hidden!important;
}

/* Main heading card */
.ctv-live-app [data-live-panel="overview"] .ctv-live-heading{
  position:relative!important;
  padding:18px 20px!important;
  margin:0 0 12px!important;
  min-height:108px!important;
  border:1px solid #dbe7ef!important;
  border-radius:20px!important;
  background:linear-gradient(145deg,#ffffff,#f7fbfe)!important;
  box-shadow:0 10px 28px rgba(25,62,90,.06)!important;
  overflow:hidden!important;
}

.ctv-live-app [data-live-panel="overview"] .ctv-live-heading:after{
  content:""!important;
  position:absolute!important;
  right:-40px!important;
  top:-42px!important;
  width:130px!important;
  height:130px!important;
  border-radius:50%!important;
  background:radial-gradient(circle,rgba(29,137,236,.12),transparent 68%)!important;
  pointer-events:none!important;
}

.ctv-live-app [data-live-panel="overview"] .ctv-live-heading span{
  display:block!important;
  margin-bottom:7px!important;
  color:#1178d8!important;
  font-size:10px!important;
  font-weight:800!important;
  letter-spacing:.13em!important;
}

.ctv-live-app [data-live-panel="overview"] .ctv-live-heading h2{
  margin:0 0 6px!important;
  max-width:100%!important;
  color:#082c4a!important;
  font-size:26px!important;
  line-height:1.15!important;
  font-weight:800!important;
  letter-spacing:-.025em!important;
  overflow-wrap:anywhere!important;
}

.ctv-live-app [data-live-panel="overview"] .ctv-live-heading p{
  margin:0!important;
  max-width:92%!important;
  color:#7b8f9f!important;
  font-size:12px!important;
  line-height:1.5!important;
}

/* 4 compact metric cards */
.ctv-live-app [data-live-panel="overview"] .ctv-live-overview-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
  width:100%!important;
  margin:0!important;
}

.ctv-live-app [data-live-panel="overview"] .ctv-live-overview-grid article{
  position:relative!important;
  min-width:0!important;
  min-height:112px!important;
  padding:15px 14px 14px 56px!important;
  border:1px solid #dbe7ef!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 8px 22px rgba(30,67,92,.05)!important;
  overflow:hidden!important;
}

.ctv-live-app [data-live-panel="overview"] .ctv-live-overview-grid article > span:first-child,
.ctv-live-app [data-live-panel="overview"] .ctv-live-overview-grid article .ctv-overview-icon{
  position:absolute!important;
  left:14px!important;
  top:16px!important;
  width:34px!important;
  height:34px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:11px!important;
  background:#edf6ff!important;
  color:#0879e5!important;
  font-size:16px!important;
  line-height:1!important;
}

.ctv-live-app [data-live-panel="overview"] .ctv-live-overview-grid article:nth-child(2) > span:first-child{
  background:#e9f9f1!important;
  color:#0ca56c!important;
}

.ctv-live-app [data-live-panel="overview"] .ctv-live-overview-grid article:nth-child(3) > span:first-child{
  background:#fff3e7!important;
  color:#f37b20!important;
}

.ctv-live-app [data-live-panel="overview"] .ctv-live-overview-grid article:nth-child(4) > span:first-child{
  background:#f2ecff!important;
  color:#7b51e6!important;
}

.ctv-live-app [data-live-panel="overview"] .ctv-live-overview-grid article small,
.ctv-live-app [data-live-panel="overview"] .ctv-live-overview-grid article .ctv-overview-label{
  display:block!important;
  margin:0 0 5px!important;
  color:#94a4af!important;
  font-size:9px!important;
  line-height:1.25!important;
  white-space:normal!important;
}

.ctv-live-app [data-live-panel="overview"] .ctv-live-overview-grid article strong{
  display:block!important;
  max-width:100%!important;
  margin:0!important;
  color:#0871bf!important;
  font-size:23px!important;
  line-height:1.08!important;
  font-weight:800!important;
  letter-spacing:-.02em!important;
  word-break:break-word!important;
  overflow-wrap:anywhere!important;
}

.ctv-live-app [data-live-panel="overview"] .ctv-live-overview-grid article p,
.ctv-live-app [data-live-panel="overview"] .ctv-live-overview-grid article em{
  display:block!important;
  margin:5px 0 0!important;
  color:#9aaab5!important;
  font-size:9px!important;
  line-height:1.35!important;
  font-style:normal!important;
}

/* Progress bar */
.ctv-live-app [data-live-panel="overview"] .ctv-live-progress{
  position:relative!important;
  width:100%!important;
  height:8px!important;
  margin:12px 0 0!important;
  border-radius:999px!important;
  background:#dae7ee!important;
  overflow:hidden!important;
}

.ctv-live-app [data-live-panel="overview"] .ctv-live-progress > span,
.ctv-live-app [data-live-panel="overview"] .ctv-live-progress > i{
  display:block!important;
  height:100%!important;
  border-radius:inherit!important;
  background:linear-gradient(90deg,#14b79c,#1590e9)!important;
}

/* Telegram-style support card */
.ctv-live-app [data-live-panel="overview"] .ctv-live-support,
.ctv-live-app [data-live-panel="overview"] .ctv-overview-support{
  display:grid!important;
  grid-template-columns:48px minmax(0,1fr) 28px!important;
  align-items:center!important;
  gap:12px!important;
  width:100%!important;
  min-height:74px!important;
  margin:12px 0 0!important;
  padding:12px 14px!important;
  border:1px solid #dbe7ef!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 8px 22px rgba(30,67,92,.05)!important;
  overflow:hidden!important;
}

.ctv-live-app [data-live-panel="overview"] .ctv-live-support > span:first-child,
.ctv-live-app [data-live-panel="overview"] .ctv-overview-support > span:first-child{
  width:46px!important;
  height:46px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:14px!important;
  background:linear-gradient(135deg,#1490ec,#0873d9)!important;
  color:#fff!important;
  font-size:25px!important;
  box-shadow:0 8px 18px rgba(14,116,219,.20)!important;
}

.ctv-live-app [data-live-panel="overview"] .ctv-live-support small{
  display:block!important;
  margin-bottom:2px!important;
  color:#1680d8!important;
  font-size:8px!important;
  font-weight:700!important;
  letter-spacing:.04em!important;
}

.ctv-live-app [data-live-panel="overview"] .ctv-live-support strong{
  display:block!important;
  color:#082b49!important;
  font-size:15px!important;
  line-height:1.2!important;
  overflow-wrap:anywhere!important;
}

.ctv-live-app [data-live-panel="overview"] .ctv-live-support > span:last-child{
  color:#0977da!important;
  font-size:22px!important;
  text-align:center!important;
}

/* Main capture CTA */
.ctv-live-app [data-live-panel="overview"] .ctv-go-capture,
.ctv-live-app [data-live-panel="overview"] .ctv-overview-capture-cta{
  position:relative!important;
  width:100%!important;
  min-height:66px!important;
  margin:12px 0 0!important;
  padding:12px 18px 12px 70px!important;
  border:0!important;
  border-radius:18px!important;
  background:linear-gradient(135deg,#0b8fea,#3f4aea)!important;
  color:#fff!important;
  box-shadow:0 12px 26px rgba(28,91,220,.23)!important;
  text-align:left!important;
  overflow:hidden!important;
}

.ctv-live-app [data-live-panel="overview"] .ctv-go-capture:before{
  content:"📷"!important;
  position:absolute!important;
  left:16px!important;
  top:50%!important;
  width:42px!important;
  height:42px!important;
  display:grid!important;
  place-items:center!important;
  transform:translateY(-50%)!important;
  border-radius:13px!important;
  background:rgba(255,255,255,.16)!important;
  font-size:22px!important;
}

.ctv-live-app [data-live-panel="overview"] .ctv-go-capture strong,
.ctv-live-app [data-live-panel="overview"] .ctv-go-capture b{
  display:block!important;
  color:#fff!important;
  font-size:14px!important;
  line-height:1.2!important;
}

.ctv-live-app [data-live-panel="overview"] .ctv-go-capture small{
  display:block!important;
  margin-top:4px!important;
  color:rgba(255,255,255,.78)!important;
  font-size:8px!important;
  line-height:1.3!important;
}

/* Ensure all content fits cleanly on narrow devices */
@media(max-width:380px){
  .ctv-live-app .ctv-live-panel[data-live-panel="overview"].active{
    padding-left:12px!important;
    padding-right:12px!important;
  }

  .ctv-live-app [data-live-panel="overview"] .ctv-live-heading{
    padding:16px!important;
  }

  .ctv-live-app [data-live-panel="overview"] .ctv-live-heading h2{
    font-size:23px!important;
  }

  .ctv-live-app [data-live-panel="overview"] .ctv-live-overview-grid{
    gap:9px!important;
  }

  .ctv-live-app [data-live-panel="overview"] .ctv-live-overview-grid article{
    min-height:104px!important;
    padding:13px 10px 12px 50px!important;
  }

  .ctv-live-app [data-live-panel="overview"] .ctv-live-overview-grid article > span:first-child{
    left:11px!important;
    top:13px!important;
    width:32px!important;
    height:32px!important;
  }

  .ctv-live-app [data-live-panel="overview"] .ctv-live-overview-grid article strong{
    font-size:20px!important;
  }
}

/* =========================================================
   V7.6 COMPACT OVERVIEW CARDS
   ========================================================= */

/* Make the 4 overview metrics compact and centered */
.ctv-live-app [data-live-panel="overview"] .ctv-live-overview-grid{
  gap:10px!important;
}

.ctv-live-app [data-live-panel="overview"] .ctv-live-overview-grid article{
  min-height:96px!important;
  padding:13px 10px 12px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  border-radius:16px!important;
}

/* Keep only the icon, main value and one short caption */
.ctv-live-app [data-live-panel="overview"] .ctv-live-overview-grid article > span:first-child,
.ctv-live-app [data-live-panel="overview"] .ctv-live-overview-grid article .ctv-overview-icon{
  position:static!important;
  width:30px!important;
  height:30px!important;
  margin:0 0 6px!important;
  border-radius:10px!important;
  font-size:14px!important;
  flex:0 0 30px!important;
}

/* Hide long text blocks that were wrapping and overflowing */
.ctv-live-app [data-live-panel="overview"] .ctv-live-overview-grid article small:first-of-type,
.ctv-live-app [data-live-panel="overview"] .ctv-live-overview-grid article .ctv-overview-label,
.ctv-live-app [data-live-panel="overview"] .ctv-live-overview-grid article p,
.ctv-live-app [data-live-panel="overview"] .ctv-live-overview-grid article em{
  display:none!important;
}

/* Main value */
.ctv-live-app [data-live-panel="overview"] .ctv-live-overview-grid article strong{
  display:block!important;
  width:100%!important;
  margin:0!important;
  color:#086fb8!important;
  font-size:22px!important;
  line-height:1.05!important;
  font-weight:800!important;
  text-align:center!important;
  white-space:normal!important;
  word-break:break-word!important;
  overflow-wrap:anywhere!important;
}

/* Add concise captions without changing PHP markup */
.ctv-live-app [data-live-panel="overview"] .ctv-live-overview-grid article:after{
  display:block!important;
  margin-top:6px!important;
  color:#95a5b0!important;
  font-size:9px!important;
  line-height:1.2!important;
  font-weight:500!important;
}

.ctv-live-app [data-live-panel="overview"] .ctv-live-overview-grid article:nth-child(1):after{
  content:"Sản phẩm"!important;
}

.ctv-live-app [data-live-panel="overview"] .ctv-live-overview-grid article:nth-child(2):after{
  content:"Ảnh hợp lệ"!important;
}

.ctv-live-app [data-live-panel="overview"] .ctv-live-overview-grid article:nth-child(3):after{
  content:"Tiến độ"!important;
}

.ctv-live-app [data-live-panel="overview"] .ctv-live-overview-grid article:nth-child(4):after{
  content:"Khu vực"!important;
}

/* Keep long location value visually balanced */
.ctv-live-app [data-live-panel="overview"] .ctv-live-overview-grid article:nth-child(4) strong{
  font-size:18px!important;
  line-height:1.1!important;
  max-height:40px!important;
  overflow:hidden!important;
}

/* Compact top overview section slightly */
.ctv-live-app [data-live-panel="overview"] .ctv-live-heading{
  min-height:98px!important;
  padding:16px 18px!important;
}

.ctv-live-app [data-live-panel="overview"] .ctv-live-heading h2{
  font-size:24px!important;
}

/* Small phones */
@media(max-width:380px){
  .ctv-live-app [data-live-panel="overview"] .ctv-live-overview-grid article{
    min-height:90px!important;
    padding:11px 8px!important;
  }

  .ctv-live-app [data-live-panel="overview"] .ctv-live-overview-grid article strong{
    font-size:20px!important;
  }

  .ctv-live-app [data-live-panel="overview"] .ctv-live-overview-grid article:nth-child(4) strong{
    font-size:17px!important;
  }
}

/* =========================================================
   V7.7 FIX OVERVIEW TEXT OVERLAP
   Exact compact metric layout
   ========================================================= */

.ctv-live-app [data-live-panel="overview"] .ctv-live-overview-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
  width:100%!important;
}

/* Reset every inherited rule inside the four metric cards */
.ctv-live-app [data-live-panel="overview"] .ctv-compact-metric{
  position:relative!important;
  min-width:0!important;
  width:100%!important;
  height:112px!important;
  min-height:112px!important;
  max-height:112px!important;
  padding:12px!important;
  display:grid!important;
  grid-template-rows:30px 34px 16px!important;
  grid-template-columns:1fr!important;
  align-items:center!important;
  justify-items:center!important;
  gap:4px!important;
  text-align:center!important;
  overflow:hidden!important;
}

/* Hide ALL original descriptive text regardless of tag/class */
.ctv-live-app [data-live-panel="overview"] .ctv-compact-metric > *{
  position:static!important;
  inset:auto!important;
  float:none!important;
  transform:none!important;
  max-width:100%!important;
}

.ctv-live-app [data-live-panel="overview"] .ctv-compact-metric > span:not(:first-child),
.ctv-live-app [data-live-panel="overview"] .ctv-compact-metric > small,
.ctv-live-app [data-live-panel="overview"] .ctv-compact-metric > p,
.ctv-live-app [data-live-panel="overview"] .ctv-compact-metric > em,
.ctv-live-app [data-live-panel="overview"] .ctv-compact-metric > label,
.ctv-live-app [data-live-panel="overview"] .ctv-compact-metric .ctv-overview-label,
.ctv-live-app [data-live-panel="overview"] .ctv-compact-metric .label,
.ctv-live-app [data-live-panel="overview"] .ctv-compact-metric .desc,
.ctv-live-app [data-live-panel="overview"] .ctv-compact-metric .description{
  display:none!important;
}

/* Icon */
.ctv-live-app [data-live-panel="overview"] .ctv-compact-metric > span:first-child,
.ctv-live-app [data-live-panel="overview"] .ctv-compact-metric .ctv-overview-icon{
  grid-row:1!important;
  position:static!important;
  width:30px!important;
  height:30px!important;
  min-width:30px!important;
  min-height:30px!important;
  margin:0!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  border-radius:10px!important;
  font-size:14px!important;
  line-height:1!important;
  overflow:hidden!important;
}

/* Main value */
.ctv-live-app [data-live-panel="overview"] .ctv-compact-metric > strong,
.ctv-live-app [data-live-panel="overview"] .ctv-compact-metric .value{
  grid-row:2!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  height:34px!important;
  margin:0!important;
  padding:0 4px!important;
  color:#076fb8!important;
  font-size:24px!important;
  line-height:1!important;
  font-weight:800!important;
  text-align:center!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
}

/* Short caption generated by CSS */
.ctv-live-app [data-live-panel="overview"] .ctv-compact-metric:after{
  grid-row:3!important;
  display:block!important;
  width:100%!important;
  height:16px!important;
  margin:0!important;
  color:#93a3ae!important;
  font-size:9px!important;
  line-height:16px!important;
  font-weight:500!important;
  text-align:center!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

.ctv-live-app [data-live-panel="overview"] .ctv-compact-metric:nth-child(1):after{content:"Sản phẩm"!important}
.ctv-live-app [data-live-panel="overview"] .ctv-compact-metric:nth-child(2):after{content:"Ảnh hợp lệ"!important}
.ctv-live-app [data-live-panel="overview"] .ctv-compact-metric:nth-child(3):after{content:"Tiến độ"!important}
.ctv-live-app [data-live-panel="overview"] .ctv-compact-metric:nth-child(4):after{content:"Khu vực"!important}

/* Location can be longer, so scale it safely */
.ctv-live-app [data-live-panel="overview"] .ctv-compact-metric:nth-child(4) > strong,
.ctv-live-app [data-live-panel="overview"] .ctv-compact-metric:nth-child(4) .value{
  font-size:18px!important;
  padding-left:2px!important;
  padding-right:2px!important;
}

/* Eliminate older pseudo-labels and inherited long labels */
.ctv-live-app [data-live-panel="overview"] .ctv-compact-metric:before{
  display:none!important;
  content:none!important;
}

@media(max-width:380px){
  .ctv-live-app [data-live-panel="overview"] .ctv-compact-metric{
    height:104px!important;
    min-height:104px!important;
    max-height:104px!important;
    grid-template-rows:28px 32px 15px!important;
    padding:10px 8px!important;
  }

  .ctv-live-app [data-live-panel="overview"] .ctv-compact-metric > span:first-child{
    width:28px!important;
    height:28px!important;
    min-width:28px!important;
    min-height:28px!important;
  }

  .ctv-live-app [data-live-panel="overview"] .ctv-compact-metric > strong{
    font-size:21px!important;
  }

  .ctv-live-app [data-live-panel="overview"] .ctv-compact-metric:nth-child(4) > strong{
    font-size:16px!important;
  }
}

/* =========================================================
   V7.8 REMOVE OVERVIEW HEADING
   ========================================================= */

/* Safety fallback: ensure the old overview title never reappears. */
.ctv-live-app [data-live-panel="overview"] .ctv-overview-heading-removed,
.ctv-live-app [data-live-panel="overview"] > .ctv-live-heading:first-child{
  display:none!important;
}

/* Pull key metrics directly below the header. */
.ctv-live-app .ctv-live-panel[data-live-panel="overview"].active{
  padding-top:14px!important;
}

.ctv-live-app [data-live-panel="overview"] .ctv-live-overview-grid{
  margin-top:0!important;
}

/* Slightly tighten the overview stack after removing the heading. */
.ctv-live-app [data-live-panel="overview"] .ctv-live-progress{
  margin-top:10px!important;
}

.ctv-live-app [data-live-panel="overview"] .ctv-live-support,
.ctv-live-app [data-live-panel="overview"] .ctv-overview-support{
  margin-top:10px!important;
}

.ctv-live-app [data-live-panel="overview"] .ctv-go-capture,
.ctv-live-app [data-live-panel="overview"] .ctv-overview-capture-cta{
  margin-top:10px!important;
}

/* =========================================================
   V7.9 RESPONSIVE APP UI
   One-line title, clean clock, adaptive phones
   ========================================================= */

.ctv-live-app{
  --app-side: clamp(12px,3.8vw,22px);
  width:100%!important;
  max-width:540px!important;
  min-height:100dvh!important;
  margin:0 auto!important;
  overflow-x:hidden!important;
}

/* Native-style compact header */
.ctv-live-app .ctv-live-header{
  min-height:104px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto auto!important;
  align-items:center!important;
  gap:10px!important;
  padding:16px var(--app-side)!important;
  border-radius:0!important;
  overflow:hidden!important;
}

.ctv-live-app .ctv-live-brand,
.ctv-live-app .ctv-live-header-brand,
.ctv-live-app .ctv-brand{
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
}

.ctv-live-app .ctv-live-brand img,
.ctv-live-app .ctv-live-header-brand img,
.ctv-live-app .ctv-brand img{
  flex:0 0 clamp(46px,12vw,58px)!important;
  width:clamp(46px,12vw,58px)!important;
  height:clamp(46px,12vw,58px)!important;
  object-fit:contain!important;
  border-radius:14px!important;
}

/* CỘNG TÁC VIÊN: always one line */
.ctv-live-app .ctv-live-brand strong,
.ctv-live-app .ctv-live-header-brand strong,
.ctv-live-app .ctv-brand strong,
.ctv-live-app .ctv-live-header h1,
.ctv-live-app .ctv-live-header .brand-title{
  display:block!important;
  min-width:0!important;
  margin:0!important;
  color:#fff!important;
  font-size:clamp(15px,4.3vw,20px)!important;
  line-height:1!important;
  font-weight:800!important;
  letter-spacing:-.025em!important;
  white-space:nowrap!important;
  word-break:normal!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

/* Clock keeps only HH:mm:ss */
.ctv-live-app .ctv-live-clock,
.ctv-live-app .ctv-clock,
.ctv-live-app [class*="time-pill"],
.ctv-live-app [class*="clock-pill"]{
  min-width:94px!important;
  min-height:48px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:8px 12px!important;
  border:1px solid rgba(255,255,255,.25)!important;
  border-radius:16px!important;
  background:rgba(255,255,255,.10)!important;
  color:#fff!important;
  font-size:clamp(14px,3.8vw,17px)!important;
  line-height:1!important;
  font-weight:700!important;
  white-space:nowrap!important;
}

/* Hide only a dedicated UTC label if markup still contains one */
.ctv-live-app .utc-label,
.ctv-live-app .timezone-label,
.ctv-live-app [data-timezone-label]{
  display:none!important;
}

/* Compact header icon buttons */
.ctv-live-app .ctv-live-header button,
.ctv-live-app .ctv-live-header .header-action{
  flex:0 0 48px!important;
  width:48px!important;
  height:48px!important;
  min-width:48px!important;
  min-height:48px!important;
  padding:0!important;
  border-radius:15px!important;
}

/* Beautiful compact overview cards */
.ctv-live-app [data-live-panel="overview"] .ctv-live-overview-grid{
  gap:12px!important;
}

.ctv-live-app [data-live-panel="overview"] .ctv-compact-metric{
  position:relative!important;
  height:126px!important;
  min-height:126px!important;
  padding:16px!important;
  display:grid!important;
  grid-template-columns:44px minmax(0,1fr)!important;
  grid-template-rows:1fr auto!important;
  column-gap:12px!important;
  row-gap:4px!important;
  align-items:center!important;
  justify-items:start!important;
  text-align:left!important;
  border:1px solid #dce7ef!important;
  border-radius:20px!important;
  background:
    linear-gradient(145deg,#fff,#fbfdff)!important;
  box-shadow:0 10px 25px rgba(28,65,92,.06)!important;
  overflow:hidden!important;
}

.ctv-live-app [data-live-panel="overview"] .ctv-compact-metric > span:first-child{
  grid-column:1!important;
  grid-row:1 / span 2!important;
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  min-height:44px!important;
  margin:0!important;
  border-radius:14px!important;
  font-size:19px!important;
}

.ctv-live-app [data-live-panel="overview"] .ctv-compact-metric > strong{
  grid-column:2!important;
  grid-row:1!important;
  align-self:end!important;
  justify-self:start!important;
  width:100%!important;
  height:auto!important;
  color:#086fba!important;
  font-size:clamp(24px,7vw,31px)!important;
  line-height:1!important;
  text-align:left!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

.ctv-live-app [data-live-panel="overview"] .ctv-compact-metric:after{
  grid-column:2!important;
  grid-row:2!important;
  align-self:start!important;
  justify-self:start!important;
  width:100%!important;
  height:auto!important;
  margin:0!important;
  color:#8799a7!important;
  font-size:11px!important;
  line-height:1.25!important;
  text-align:left!important;
}

/* Decorative color glow */
.ctv-live-app [data-live-panel="overview"] .ctv-compact-metric:before{
  display:block!important;
  content:""!important;
  position:absolute!important;
  right:-22px!important;
  bottom:-28px!important;
  width:92px!important;
  height:72px!important;
  border-radius:55% 0 0 0!important;
  background:rgba(20,126,236,.08)!important;
  pointer-events:none!important;
}

.ctv-live-app [data-live-panel="overview"] .ctv-compact-metric:nth-child(2):before{
  background:rgba(21,181,106,.10)!important;
}
.ctv-live-app [data-live-panel="overview"] .ctv-compact-metric:nth-child(3):before{
  background:rgba(255,132,34,.10)!important;
}
.ctv-live-app [data-live-panel="overview"] .ctv-compact-metric:nth-child(4):before{
  background:rgba(122,78,234,.10)!important;
}

/* Location value adapts without wrapping */
.ctv-live-app [data-live-panel="overview"] .ctv-compact-metric:nth-child(4) > strong{
  font-size:clamp(17px,5.2vw,23px)!important;
}

/* Keep support and CTA polished */
.ctv-live-app [data-live-panel="overview"] .ctv-live-support,
.ctv-live-app [data-live-panel="overview"] .ctv-overview-support,
.ctv-live-app [data-live-panel="overview"] .ctv-go-capture{
  border-radius:20px!important;
}

/* 320–359px small Android phones */
@media(max-width:359px){
  .ctv-live-app .ctv-live-header{
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:8px!important;
    min-height:92px!important;
  }

  .ctv-live-app .ctv-live-clock,
  .ctv-live-app .ctv-clock,
  .ctv-live-app [class*="time-pill"],
  .ctv-live-app [class*="clock-pill"]{
    position:absolute!important;
    top:9px!important;
    right:64px!important;
    min-width:78px!important;
    min-height:34px!important;
    padding:5px 8px!important;
    border-radius:12px!important;
    font-size:12px!important;
  }

  .ctv-live-app .ctv-live-brand strong,
  .ctv-live-app .ctv-brand strong,
  .ctv-live-app .ctv-live-header h1{
    font-size:14px!important;
  }

  .ctv-live-app [data-live-panel="overview"] .ctv-live-overview-grid{
    gap:8px!important;
  }

  .ctv-live-app [data-live-panel="overview"] .ctv-compact-metric{
    height:108px!important;
    min-height:108px!important;
    padding:12px 10px!important;
    grid-template-columns:36px minmax(0,1fr)!important;
    column-gap:8px!important;
  }

  .ctv-live-app [data-live-panel="overview"] .ctv-compact-metric > span:first-child{
    width:36px!important;
    height:36px!important;
    min-width:36px!important;
    min-height:36px!important;
    border-radius:12px!important;
    font-size:16px!important;
  }

  .ctv-live-app [data-live-panel="overview"] .ctv-compact-metric > strong{
    font-size:21px!important;
  }

  .ctv-live-app [data-live-panel="overview"] .ctv-compact-metric:nth-child(4) > strong{
    font-size:15px!important;
  }
}

/* 360–430px common Android/iPhone range */
@media(min-width:360px) and (max-width:430px){
  .ctv-live-app .ctv-live-header{
    padding-left:14px!important;
    padding-right:14px!important;
  }

  .ctv-live-app .ctv-live-header button,
  .ctv-live-app .ctv-live-header .header-action{
    width:44px!important;
    height:44px!important;
    min-width:44px!important;
    min-height:44px!important;
  }
}

/* Wide phones / foldables */
@media(min-width:431px) and (max-width:699px){
  .ctv-live-app [data-live-panel="overview"] .ctv-compact-metric{
    height:132px!important;
    min-height:132px!important;
    padding:18px!important;
  }
}

/* =========================================================
   V8.0 NATIVE OVERVIEW UI
   ========================================================= */
.ctv-live-app .s8-topbar{
  min-height:104px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  padding:15px clamp(12px,4vw,20px)!important;
}
.ctv-live-app .s8-brand{
  flex:1 1 auto!important;
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
}
.ctv-live-app .s8-brand strong{
  min-width:0!important;
  color:#fff!important;
  font-size:clamp(14px,4.1vw,19px)!important;
  line-height:1!important;
  font-weight:800!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.ctv-live-app .topbar-actions{
  flex:0 0 auto!important;
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
}
.ctv-live-app .s8-utc{
  min-width:88px!important;
  height:46px!important;
  display:grid!important;
  place-items:center!important;
  padding:0 10px!important;
  border:1px solid rgba(255,255,255,.28)!important;
  border-radius:16px!important;
  background:rgba(255,255,255,.10)!important;
  color:#fff!important;
  font-size:clamp(13px,3.7vw,16px)!important;
  font-weight:700!important;
  white-space:nowrap!important;
}

.ctv-live-app [data-live-panel="overview"] .ctv-native-overview-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:11px!important;
  width:100%!important;
  margin:0!important;
}
.ctv-live-app [data-live-panel="overview"] .ctv-native-metric{
  position:relative!important;
  width:100%!important;
  height:118px!important;
  min-height:118px!important;
  display:grid!important;
  grid-template-columns:44px minmax(0,1fr)!important;
  align-items:center!important;
  gap:11px!important;
  padding:15px!important;
  border:1px solid #dce7ef!important;
  border-radius:20px!important;
  background:linear-gradient(145deg,#fff,#fbfdff)!important;
  box-shadow:0 9px 24px rgba(28,65,92,.06)!important;
  overflow:hidden!important;
}
.ctv-live-app [data-live-panel="overview"] .ctv-native-metric:after{
  content:""!important;
  position:absolute!important;
  right:-22px!important;
  bottom:-28px!important;
  width:94px!important;
  height:72px!important;
  border-radius:60% 0 0 0!important;
  pointer-events:none!important;
}
.ctv-live-app [data-live-panel="overview"] .metric-product:after{background:rgba(18,121,235,.09)!important}
.ctv-live-app [data-live-panel="overview"] .metric-photo:after{background:rgba(14,176,105,.10)!important}
.ctv-live-app [data-live-panel="overview"] .metric-progress:after{background:rgba(245,120,28,.10)!important}
.ctv-live-app [data-live-panel="overview"] .metric-region:after{background:rgba(119,75,230,.10)!important}

.ctv-live-app [data-live-panel="overview"] .metric-icon{
  position:relative!important;
  z-index:2!important;
  width:44px!important;
  height:44px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:14px!important;
  font-size:19px!important;
  font-weight:700!important;
}
.ctv-live-app [data-live-panel="overview"] .metric-product .metric-icon{color:#0a75df!important;background:#eaf4ff!important}
.ctv-live-app [data-live-panel="overview"] .metric-photo .metric-icon{color:#0aac69!important;background:#e7f8ef!important}
.ctv-live-app [data-live-panel="overview"] .metric-progress .metric-icon{color:#f0781c!important;background:#fff0e4!important}
.ctv-live-app [data-live-panel="overview"] .metric-region .metric-icon{color:#7750df!important;background:#f0ebff!important}

.ctv-live-app [data-live-panel="overview"] .metric-body{
  position:relative!important;
  z-index:2!important;
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:6px!important;
}
.ctv-live-app [data-live-panel="overview"] .metric-body strong{
  display:block!important;
  width:100%!important;
  margin:0!important;
  color:#076fba!important;
  font-size:clamp(25px,7vw,32px)!important;
  line-height:1!important;
  font-weight:800!important;
  letter-spacing:-.03em!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.ctv-live-app [data-live-panel="overview"] .metric-body small{
  display:block!important;
  width:100%!important;
  margin:0!important;
  color:#8093a1!important;
  font-size:11px!important;
  line-height:1.2!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.ctv-live-app [data-live-panel="overview"] .metric-region .metric-body strong{
  font-size:clamp(16px,5vw,22px)!important;
}

@media(max-width:430px){
  .ctv-live-app .s8-topbar{
    min-height:96px!important;
    padding-left:11px!important;
    padding-right:11px!important;
  }
  .ctv-live-app .s8-brand{
    gap:8px!important;
  }
  .ctv-live-app .s8-brand img{
    width:46px!important;
    height:46px!important;
    min-width:46px!important;
  }
  .ctv-live-app .s8-brand strong{
    font-size:14px!important;
  }
  .ctv-live-app .s8-utc{
    min-width:76px!important;
    height:42px!important;
    padding:0 8px!important;
    font-size:12px!important;
  }
  .ctv-live-app .topbar-actions{
    gap:5px!important;
  }
  .ctv-live-app .notify-btn,
  .ctv-live-app .staff-logout-button{
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
    min-height:40px!important;
  }
  .ctv-live-app [data-live-panel="overview"] .ctv-native-overview-grid{
    gap:9px!important;
  }
  .ctv-live-app [data-live-panel="overview"] .ctv-native-metric{
    height:106px!important;
    min-height:106px!important;
    grid-template-columns:38px minmax(0,1fr)!important;
    gap:8px!important;
    padding:12px 10px!important;
    border-radius:18px!important;
  }
  .ctv-live-app [data-live-panel="overview"] .metric-icon{
    width:38px!important;
    height:38px!important;
    border-radius:12px!important;
    font-size:17px!important;
  }
  .ctv-live-app [data-live-panel="overview"] .metric-body strong{
    font-size:23px!important;
  }
  .ctv-live-app [data-live-panel="overview"] .metric-region .metric-body strong{
    font-size:15px!important;
  }
}
@media(max-width:350px){
  .ctv-live-app .s8-brand strong{font-size:12px!important}
  .ctv-live-app .s8-utc{min-width:66px!important;font-size:10px!important}
  .ctv-live-app [data-live-panel="overview"] .ctv-native-metric{
    height:96px!important;
    min-height:96px!important;
    grid-template-columns:32px minmax(0,1fr)!important;
    gap:6px!important;
    padding:9px 7px!important;
  }
  .ctv-live-app [data-live-panel="overview"] .metric-icon{
    width:32px!important;
    height:32px!important;
    font-size:14px!important;
  }
  .ctv-live-app [data-live-panel="overview"] .metric-body strong{
    font-size:20px!important;
  }
  .ctv-live-app [data-live-panel="overview"] .metric-region .metric-body strong{
    font-size:13px!important;
  }
}

/* =========================================================
   V8.1 FIX STAFF CAMERA SHUTTER
   Applies to normal staff accounts using the 3-tab interface.
   ========================================================= */

:root{
  --s8-staff-nav-height:92px;
  --s8-staff-camera-dock-height:132px;
}

/* Staff camera screen fills the usable viewport above the 3-tab nav. */
body:not(.ctv-live-mode) #screenCamera.camera-screen,
#screenCamera.camera-screen{
  position:relative!important;
  height:calc(100dvh - var(--s8-staff-nav-height) - env(safe-area-inset-bottom))!important;
  min-height:560px!important;
  padding:0!important;
  overflow:hidden!important;
  background:#000!important;
}

/* Header stays visible above preview. */
#screenCamera.camera-screen .screen-head{
  position:relative!important;
  z-index:50!important;
  height:62px!important;
  min-height:62px!important;
  display:grid!important;
  grid-template-columns:52px 1fr 52px!important;
  align-items:center!important;
  padding:0 10px!important;
}

/* Preview reserves space for the camera dock and bottom navigation. */
#screenCamera.camera-screen .camera-stage{
  position:relative!important;
  height:calc(
    100dvh
    - 62px
    - var(--s8-staff-nav-height)
    - env(safe-area-inset-bottom)
  )!important;
  min-height:460px!important;
  padding-bottom:calc(
    var(--s8-staff-camera-dock-height)
    + var(--s8-staff-nav-height)
    + env(safe-area-inset-bottom)
  )!important;
  overflow:hidden!important;
  background:#000!important;
}

#screenCamera.camera-screen video,
#screenCamera.camera-screen canvas{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}

/* Staff camera dock is always visible above the 3-tab menu. */
#screenCamera.camera-screen .camera-action-dock{
  position:absolute!important;
  left:0!important;
  right:0!important;
  bottom:calc(
    var(--s8-staff-nav-height)
    + env(safe-area-inset-bottom)
  )!important;
  width:100%!important;
  height:var(--s8-staff-camera-dock-height)!important;
  display:grid!important;
  grid-template-columns:minmax(76px,1fr) 132px minmax(76px,1fr)!important;
  align-items:center!important;
  justify-items:center!important;
  gap:8px!important;
  padding:10px 18px 12px!important;
  margin:0!important;
  background:linear-gradient(
    180deg,
    rgba(3,8,14,.10) 0%,
    rgba(3,8,14,.92) 26%,
    #03080e 100%
  )!important;
  visibility:visible!important;
  opacity:1!important;
  transform:none!important;
  overflow:visible!important;
  z-index:3000!important;
}

/* Flash and switch controls. */
#screenCamera.camera-screen .camera-dock-side{
  width:76px!important;
  min-width:76px!important;
  min-height:76px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  margin:0!important;
  padding:6px!important;
  border:0!important;
  background:transparent!important;
  color:#fff!important;
  visibility:visible!important;
  opacity:1!important;
}

#screenCamera.camera-screen .camera-dock-icon{
  display:grid!important;
  place-items:center!important;
  min-height:34px!important;
  color:#fff!important;
  font-size:31px!important;
  line-height:1!important;
}

#screenCamera.camera-screen .camera-dock-side small{
  display:block!important;
  color:#fff!important;
  font-size:11px!important;
  font-weight:700!important;
  line-height:1.2!important;
  white-space:nowrap!important;
}

/* True centered shutter for staff accounts. */
#screenCamera.camera-screen .camera-shutter-group{
  position:relative!important;
  width:132px!important;
  min-width:132px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  margin:0!important;
  transform:translateY(-8px)!important;
  visibility:visible!important;
  opacity:1!important;
  z-index:3200!important;
}

#screenCamera.camera-screen #takePhoto,
#screenCamera.camera-screen .camera-center-shutter{
  position:relative!important;
  inset:auto!important;
  width:92px!important;
  height:92px!important;
  min-width:92px!important;
  min-height:92px!important;
  max-width:92px!important;
  max-height:92px!important;
  display:grid!important;
  place-items:center!important;
  margin:0 auto!important;
  padding:0!important;
  border:7px solid rgba(255,255,255,.78)!important;
  border-radius:50%!important;
  background:rgba(255,255,255,.16)!important;
  box-shadow:
    0 0 0 4px rgba(255,255,255,.34),
    0 10px 26px rgba(0,0,0,.40)!important;
  visibility:visible!important;
  opacity:1!important;
  transform:none!important;
  overflow:visible!important;
  z-index:3300!important;
}

#screenCamera.camera-screen #takePhoto > span,
#screenCamera.camera-screen .camera-center-shutter > span{
  width:66px!important;
  height:66px!important;
  display:block!important;
  border-radius:50%!important;
  background:#fff!important;
  box-shadow:inset 0 0 0 1px rgba(7,59,102,.10)!important;
}

#screenCamera.camera-screen #takePhoto:active{
  transform:scale(.92)!important;
}

#screenCamera.camera-screen .camera-shutter-group > b{
  display:block!important;
  color:#fff!important;
  font-size:12px!important;
  line-height:1!important;
  font-weight:800!important;
  white-space:nowrap!important;
}

/* Guide stays above the dock instead of covering the shutter. */
#screenCamera.camera-screen .camera-guide{
  position:absolute!important;
  left:50%!important;
  right:auto!important;
  bottom:calc(
    var(--s8-staff-camera-dock-height)
    + var(--s8-staff-nav-height)
    + 14px
    + env(safe-area-inset-bottom)
  )!important;
  width:calc(100% - 40px)!important;
  max-width:440px!important;
  transform:translateX(-50%)!important;
  z-index:2800!important;
}

/* GPS badge stays clear at the top of the preview. */
#screenCamera.camera-screen .gps-badge{
  top:24px!important;
  z-index:2700!important;
}

/* The normal staff bottom navigation remains fixed below camera controls. */
.s8-bottom-nav{
  position:fixed!important;
  left:50%!important;
  right:auto!important;
  bottom:0!important;
  transform:translateX(-50%)!important;
  width:min(540px,100vw)!important;
  min-height:calc(var(--s8-staff-nav-height) + env(safe-area-inset-bottom))!important;
  padding-bottom:env(safe-area-inset-bottom)!important;
  background:#fff!important;
  z-index:5000!important;
}

/* Remove any legacy duplicate controls only, never the new dock. */
#screenCamera.camera-screen > .camera-controls,
#screenCamera.camera-screen > .ctv-camera-controls{
  display:none!important;
}

/* Common phone widths */
@media(max-width:430px){
  :root{
    --s8-staff-nav-height:88px;
    --s8-staff-camera-dock-height:124px;
  }

  #screenCamera.camera-screen .camera-action-dock{
    grid-template-columns:minmax(66px,1fr) 116px minmax(66px,1fr)!important;
    padding-left:10px!important;
    padding-right:10px!important;
  }

  #screenCamera.camera-screen .camera-shutter-group{
    width:116px!important;
    min-width:116px!important;
  }

  #screenCamera.camera-screen #takePhoto,
  #screenCamera.camera-screen .camera-center-shutter{
    width:82px!important;
    height:82px!important;
    min-width:82px!important;
    min-height:82px!important;
    max-width:82px!important;
    max-height:82px!important;
  }

  #screenCamera.camera-screen #takePhoto > span,
  #screenCamera.camera-screen .camera-center-shutter > span{
    width:58px!important;
    height:58px!important;
  }
}

@media(max-width:350px){
  :root{
    --s8-staff-nav-height:82px;
    --s8-staff-camera-dock-height:112px;
  }

  #screenCamera.camera-screen .camera-action-dock{
    grid-template-columns:minmax(58px,1fr) 102px minmax(58px,1fr)!important;
    padding-left:6px!important;
    padding-right:6px!important;
  }

  #screenCamera.camera-screen .camera-shutter-group{
    width:102px!important;
    min-width:102px!important;
  }

  #screenCamera.camera-screen #takePhoto,
  #screenCamera.camera-screen .camera-center-shutter{
    width:74px!important;
    height:74px!important;
    min-width:74px!important;
    min-height:74px!important;
    max-width:74px!important;
    max-height:74px!important;
  }

  #screenCamera.camera-screen #takePhoto > span,
  #screenCamera.camera-screen .camera-center-shutter > span{
    width:52px!important;
    height:52px!important;
  }
}

/* =========================================================
   S8 PHOTO CHECK-IN V8.9.0 — MOBILE UI REFRESH
   Giao diện một màn hình, thao tác chụp nhanh, an toàn vùng tai thỏ.
   ========================================================= */
:root{
  --s8-primary:#0758f7;
  --s8-primary-dark:#063eb7;
  --s8-cyan:#20b8f7;
  --s8-surface:#ffffff;
  --s8-canvas:#f4f7fc;
  --s8-ink:#13223a;
  --s8-sub:#66758d;
  --s8-border:#e4eaf3;
  --s8-ok:#16a85a;
  --s8-shadow:0 14px 36px rgba(20,55,110,.10);
}
html{background:var(--s8-canvas);scroll-behavior:smooth}
body{background:var(--s8-canvas);color:var(--s8-ink);-webkit-tap-highlight-color:transparent}
button,a,input,select,textarea{touch-action:manipulation}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(7,88,247,.22);outline-offset:2px}
.s8-app{max-width:560px;min-height:100dvh;background:var(--s8-canvas);box-shadow:0 0 50px rgba(20,50,100,.12);padding-bottom:calc(82px + env(safe-area-inset-bottom))}
.s8-topbar{height:auto;min-height:68px;padding:calc(10px + env(safe-area-inset-top)) 16px 10px;background:linear-gradient(135deg,#063eb7 0%,#0758f7 58%,#1aaef0 100%);box-shadow:0 8px 22px rgba(6,62,183,.20)}
.s8-brand{min-width:0}.s8-brand strong{font-size:16px;letter-spacing:.3px;white-space:nowrap}.s8-mobile-brand-logo{width:36px!important;height:36px!important;object-fit:contain;border-radius:10px;background:#fff;padding:3px}
.topbar-actions{display:flex;align-items:center;gap:8px}.s8-utc{font-weight:800;font-variant-numeric:tabular-nums;border:1px solid rgba(255,255,255,.18)}
.notify-btn,.staff-logout-button{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:rgba(255,255,255,.12)!important;border:1px solid rgba(255,255,255,.16)!important;color:#fff!important;text-decoration:none}
.s8-main{min-height:calc(100dvh - 150px)}
#screenHome.s8-screen{padding:16px 14px 22px;gap:14px}
.staff-profile-card{border:0!important;border-radius:22px!important;background:linear-gradient(145deg,#fff 0%,#f2f7ff 100%)!important;box-shadow:var(--s8-shadow)!important;overflow:hidden}
.profile-watermark{opacity:.045!important}.staff-code-pill{background:#e9f1ff!important;color:var(--s8-primary)!important;border:1px solid #cfdeff!important}
.today-summary{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin:0!important}
.today-summary>div{min-width:0!important;padding:12px 8px!important;border:1px solid var(--s8-border)!important;border-radius:16px!important;background:#fff!important;box-shadow:0 7px 18px rgba(25,55,95,.055)!important;align-items:center!important}
.today-summary>div>div{min-width:0}.today-summary span,.today-summary em{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.today-summary strong{font-size:13px!important;line-height:1.2;overflow:hidden;text-overflow:ellipsis}
.summary-icon{width:34px!important;height:34px!important;min-width:34px!important;border-radius:11px!important}
.primary-capture{min-height:84px!important;margin:0!important;border-radius:22px!important;padding:14px 14px!important;background:linear-gradient(135deg,#0762ff 0%,#0d4cd8 55%,#16aee8 100%)!important;box-shadow:0 15px 34px rgba(7,88,247,.30)!important;position:relative;overflow:hidden}
.primary-capture:before{content:"";position:absolute;inset:-60% auto auto 35%;width:180px;height:180px;border-radius:50%;background:rgba(255,255,255,.10)}
.primary-capture:active{transform:scale(.985)}
.camera-visual{width:54px!important;height:54px!important;min-width:54px!important;border-radius:18px!important;background:rgba(255,255,255,.18)!important;border:1px solid rgba(255,255,255,.25)!important}
.capture-copy{position:relative;z-index:1}.capture-copy strong{font-size:18px!important;letter-spacing:.2px}.capture-copy small{opacity:.92!important}
.open-camera-pill{position:relative;z-index:1!important;background:#fff!important;color:var(--s8-primary)!important;border-radius:14px!important;padding:10px 11px!important;font-size:11px!important;box-shadow:0 5px 14px rgba(0,0,0,.12)}
.staff-work-summary{border:1px solid var(--s8-border)!important;border-radius:20px!important;background:#fff!important;box-shadow:0 8px 24px rgba(25,55,95,.06)!important}
.staff-work-meta{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}.staff-work-meta>span{padding:10px 8px!important;border-radius:13px!important;background:#f6f8fc!important;border:1px solid #edf1f7!important;min-width:0}.staff-work-meta b,.staff-work-meta strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.s8-quick-grid{gap:10px!important}.quick-card{min-height:118px!important;border-radius:19px!important;border:1px solid var(--s8-border)!important;box-shadow:0 8px 22px rgba(25,55,95,.055)!important;text-align:left!important;align-items:flex-start!important;padding:14px!important}.quick-card:active{transform:scale(.985)}
.premium-note{border-radius:17px!important;border:1px solid #d9e7ff!important;background:linear-gradient(135deg,#eff6ff,#f8fbff)!important}
.s8-bottom-nav{height:auto!important;min-height:68px!important;padding:7px 10px calc(7px + env(safe-area-inset-bottom))!important;background:rgba(255,255,255,.96)!important;backdrop-filter:blur(18px);border-top:1px solid var(--s8-border)!important;box-shadow:0 -10px 28px rgba(20,45,80,.08)!important}
.s8-bottom-nav button{min-height:52px!important;border-radius:16px!important;color:#75839a!important}.s8-bottom-nav button.active{background:#edf4ff!important;color:var(--s8-primary)!important}.s8-bottom-nav small{font-size:10px!important;font-weight:800!important}

/* Camera toàn màn hình, ưu tiên một tay */
#screenCamera.camera-screen{position:fixed!important;inset:0!important;z-index:99990!important;min-height:100dvh!important;padding:0!important;background:#000!important}
#screenCamera .screen-head{height:calc(58px + env(safe-area-inset-top))!important;padding-top:env(safe-area-inset-top)!important;background:linear-gradient(180deg,rgba(2,14,36,.88),rgba(2,14,36,.30))!important;position:absolute!important;top:0!important;left:0!important;right:0!important;z-index:8!important;margin:0!important}
#screenCamera .camera-stage{height:100dvh!important;min-height:100dvh!important;border-radius:0!important}
#screenCamera .camera-stage video{height:100dvh!important}
#screenCamera .gps-badge{top:calc(70px + env(safe-area-inset-top))!important;background:rgba(13,164,83,.92)!important;border:1px solid rgba(255,255,255,.28)!important;box-shadow:0 8px 20px rgba(0,0,0,.18)}
#screenCamera .camera-guide{bottom:calc(142px + env(safe-area-inset-bottom))!important;left:18px!important;right:18px!important;border-radius:14px!important;padding:11px 14px!important;backdrop-filter:blur(8px)}
#screenCamera .camera-action-dock{position:absolute!important;left:0!important;right:0!important;bottom:0!important;z-index:7!important;min-height:128px!important;padding:12px 18px calc(16px + env(safe-area-inset-bottom))!important;background:linear-gradient(0deg,rgba(0,0,0,.92),rgba(0,0,0,.18))!important;display:grid!important;grid-template-columns:1fr 1.2fr 1fr!important;align-items:end!important}
.camera-dock-side{color:#fff!important}.camera-dock-icon{background:rgba(255,255,255,.14)!important;border:1px solid rgba(255,255,255,.20)!important;border-radius:16px!important;width:48px!important;height:48px!important;display:grid!important;place-items:center!important;margin:auto!important}
.camera-shutter-group b{color:#fff!important;font-size:10px!important;letter-spacing:.8px!important}
#screenCamera #takePhoto{width:78px!important;height:78px!important;min-width:78px!important;min-height:78px!important;border:5px solid rgba(255,255,255,.95)!important;background:rgba(255,255,255,.22)!important;box-shadow:0 0 0 5px rgba(255,255,255,.16)!important}
#screenCamera #takePhoto>span{width:58px!important;height:58px!important;background:#fff!important;border-radius:50%!important}
#screenCamera #takePhoto:active{transform:scale(.90)!important}

/* Xác nhận, thành công và lịch sử */
#screenConfirm,#screenSuccess,#screenHistory{padding:14px!important;background:var(--s8-canvas)!important;min-height:calc(100dvh - 68px)}
#screenConfirm .screen-head,#screenHistory .screen-head{margin:-14px -14px 14px!important;border-radius:0 0 20px 20px!important;height:62px!important}
.preview-wrap{margin:0 0 14px!important;border-radius:20px!important;overflow:hidden!important;box-shadow:var(--s8-shadow)!important}.preview-wrap img{max-height:48dvh!important}
.info-card,.receipt{border:1px solid var(--s8-border)!important;border-radius:19px!important;box-shadow:0 8px 22px rgba(25,55,95,.06)!important}
.confirm-actions{position:sticky!important;bottom:calc(76px + env(safe-area-inset-bottom))!important;z-index:15!important;padding:10px 0 2px!important;background:linear-gradient(180deg,rgba(244,247,252,0),var(--s8-canvas) 25%)!important}
.btn-primary,.btn-outline{min-height:54px!important;border-radius:15px!important}.btn-primary{background:linear-gradient(135deg,#0762ff,#0c4bd6)!important;box-shadow:0 10px 24px rgba(7,88,247,.22)}
.history-item{border-radius:18px!important;box-shadow:0 7px 19px rgba(25,55,95,.055)!important}.history-item img{border-radius:13px!important}

/* CTV: thống nhất card và nút chụp */
.ctv-live-app .ctv-live-panel{padding:14px!important}.ctv-live-overview-grid{gap:9px!important}.ctv-native-metric{border-radius:18px!important;border:1px solid var(--s8-border)!important;box-shadow:0 7px 20px rgba(25,55,95,.055)!important}.ctv-overview-capture-cta,.ctv-go-capture{min-height:58px!important;border-radius:18px!important;background:linear-gradient(135deg,#0762ff,#0d4bd7,#17aee8)!important;box-shadow:0 12px 28px rgba(7,88,247,.24)!important;letter-spacing:.2px!important}.ctv-live-support{border-radius:18px!important}.ctv-live-form{border-radius:20px!important}

@media(max-width:390px){
  .s8-topbar{padding-left:12px;padding-right:12px}.s8-brand strong{font-size:14px}.notify-btn{display:none!important}.s8-utc{font-size:10px!important;padding:6px 7px!important}
  #screenHome.s8-screen{padding-left:10px;padding-right:10px}.today-summary{gap:6px!important}.today-summary>div{padding:10px 6px!important}.summary-icon{display:none!important}.today-summary strong{font-size:12px!important}
  .capture-copy strong{font-size:16px!important}.open-camera-pill{padding:9px 8px!important}.staff-work-meta{grid-template-columns:1fr!important}.s8-quick-grid{grid-template-columns:1fr 1fr!important}
}
@media(min-width:700px){
  .s8-app{margin:18px auto;border-radius:28px;min-height:calc(100dvh - 36px);overflow:hidden}.s8-topbar{padding-top:10px}
}

/* V9.1.0 Telegram authentication */
.s8-telegram-link-card{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 16px;border:1px solid #d7e5f5;border-radius:16px;background:#f8fbff;margin-top:2px}.s8-telegram-link-card strong,.s8-telegram-link-card small{display:block}.s8-telegram-link-card strong{font-size:14px;color:#102f57}.s8-telegram-link-card small{margin-top:4px;color:#71839b;font-size:12px}.s8-telegram-link-card.linked{border-color:#bcebd1;background:#f0fbf5}.s8-telegram-link-btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 16px;border-radius:12px;background:linear-gradient(135deg,#168ddd,#27b7e8);color:#fff!important;text-decoration:none;font-weight:800;white-space:nowrap;box-shadow:0 8px 18px rgba(22,141,221,.2)}.s8-telegram-linked-badge{display:inline-flex;align-items:center;padding:8px 12px;border-radius:999px;background:#dff7e9;color:#16844b;font-size:12px;font-weight:800;white-space:nowrap}.s8-otp-input input{font-size:24px!important;font-weight:900;letter-spacing:9px;text-align:center}.s8-auth-heading+form .s8-otp-input{border-color:#80b7ff;background:#f7fbff}@media(max-width:640px){.s8-telegram-link-card{align-items:flex-start;flex-direction:column}.s8-telegram-link-btn{width:100%}.s8-otp-input input{font-size:21px!important;letter-spacing:6px}}

/* V9.4.5 Camera Android/WebView recovery */
#screenCamera .camera-loading{z-index:8;background:rgba(2,8,18,.86);padding:24px;text-align:center}
#screenCamera .camera-loading>small{font-size:11px;color:rgba(255,255,255,.72)}
#screenCamera .camera-loading.camera-error-state{background:linear-gradient(180deg,rgba(2,8,18,.94),rgba(2,8,18,.98))}
.camera-error-card{width:min(340px,calc(100% - 32px));padding:24px 20px;border:1px solid rgba(255,255,255,.16);border-radius:22px;background:rgba(20,31,49,.96);box-shadow:0 20px 55px rgba(0,0,0,.4);display:flex;flex-direction:column;align-items:center;gap:10px}
.camera-error-icon{width:50px;height:50px;border-radius:16px;background:#fff1e8;color:#ed6a22;display:grid;place-items:center;font-size:26px;font-weight:900}
.camera-error-card strong{font-size:17px;color:#fff}.camera-error-card p{margin:0;color:#b9c5d5;font-size:12px;line-height:1.55}
.camera-error-card button{width:100%;min-height:48px;margin-top:6px;border:0;border-radius:14px;background:linear-gradient(135deg,#168fff,#1760f2);color:#fff;font-weight:900;box-shadow:0 12px 28px rgba(20,103,245,.3)}
#screenCamera #video{background:#101722;transition:opacity .2s ease}

/* V9.4.8 Android native camera mode */
#cameraLoading.s8-native-mode{background:linear-gradient(180deg,#0d1724 0%,#07101b 100%);z-index:8;padding:28px;align-items:center;justify-content:center;text-align:center}
#cameraLoading.s8-native-mode .s8-native-card{max-width:330px;background:rgba(20,35,53,.94);border:1px solid rgba(75,169,255,.35);border-radius:24px;padding:28px 22px;box-shadow:0 22px 55px rgba(0,0,0,.38);color:#fff}
.s8-native-camera-icon{display:grid;place-items:center;width:68px;height:68px;margin:0 auto 16px;border-radius:22px;background:linear-gradient(135deg,#168aff,#20c7dd);font-size:34px;color:#fff;box-shadow:0 12px 30px rgba(22,138,255,.3)}
#cameraLoading.s8-native-mode strong{display:block;font-size:20px;line-height:1.3;margin-bottom:10px}
#cameraLoading.s8-native-mode p{margin:0;color:#c5d4e6;font-size:14px;line-height:1.65}
#cameraLoading.s8-native-mode small{display:block;margin-top:14px;padding-top:14px;border-top:1px solid rgba(255,255,255,.1);color:#7f9bb8;line-height:1.55}

/* V9.4.9 DIRECT CAPTURE UPLOAD */
.s8-auto-upload-status{margin:12px 0 0;padding:12px 14px;border-radius:12px;background:#e9f8ff;color:#075985;font-weight:700;font-size:13px;text-align:center;border:1px solid #bae6fd}.s8-auto-upload-status.is-error{background:#fff1f2;color:#be123c;border-color:#fecdd3}#uploadPhoto:disabled{opacity:.72;cursor:wait}


/* V9.5.1 SAVE RECEIPT + MY PHOTOS FLOW */
#screenSuccess.success-screen{padding:24px 16px calc(92px + env(safe-area-inset-bottom))!important;display:none;overflow:auto}
#screenSuccess.success-screen.active{display:block!important}
.s8-success-hero{text-align:center;padding:12px 8px 18px}.s8-success-hero .success-check{width:78px;height:78px;margin:0 auto 14px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#20c97a,#0aa35a);color:#fff;font-size:38px;font-weight:900;box-shadow:0 18px 36px rgba(10,163,90,.25)}
.s8-success-hero>span{display:block;color:#0aa35a;font-size:11px;font-weight:900;letter-spacing:1.4px}.s8-success-hero h2{margin:7px 0 8px;color:#102d4e;font-size:25px;line-height:1.2}.s8-success-hero p{max-width:440px;margin:auto;color:#71829a;font-size:13px;line-height:1.55}
#successReceipt.receipt{display:grid!important;grid-template-columns:1fr 1fr;gap:0;padding:0!important;overflow:hidden;background:#fff!important}
#successReceipt.receipt>div{padding:14px 16px;border-bottom:1px solid #e8eef6;min-width:0}#successReceipt.receipt>div:nth-child(odd):not(.receipt-address){border-right:1px solid #e8eef6}#successReceipt.receipt .receipt-primary,#successReceipt.receipt .receipt-address{grid-column:1/-1}#successReceipt.receipt .receipt-primary{background:linear-gradient(135deg,#edf6ff,#f7fbff)}
#successReceipt span{display:block;color:#8190a4;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.55px;margin-bottom:5px}#successReceipt strong{display:block;color:#102d4e;font-size:14px;line-height:1.35;overflow-wrap:anywhere}#successReceipt .receipt-primary strong{font-size:22px;color:#0768ef}#successReceipt small{display:block;margin-top:4px;color:#8795a8;font-size:10px;line-height:1.35}.receipt-status{display:inline-flex!important;width:auto;padding:5px 9px;border-radius:999px}.receipt-status.pending{background:#fff4d8;color:#9b6600!important}.receipt-status.approved{background:#ddf8e8;color:#087c43!important}.receipt-status.rejected{background:#ffe4e8;color:#bc2237!important}
.s8-success-actions{display:grid;gap:10px;margin-top:16px}.s8-success-actions .btn-outline{background:#fff!important}
.s8-history-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:4px 0 12px}.s8-history-summary>div{padding:11px 7px;border:1px solid #e0e9f4;border-radius:14px;background:#fff;text-align:center;box-shadow:0 5px 15px rgba(31,61,101,.04)}.s8-history-summary span{display:block;color:#7b8ba0;font-size:9px;font-weight:800}.s8-history-summary strong{display:block;margin-top:4px;color:#102d4e;font-size:19px}
.s8-history-filters{display:flex;gap:7px;overflow:auto;padding:0 0 12px;scrollbar-width:none}.s8-history-filters::-webkit-scrollbar{display:none}.s8-history-filters button{flex:0 0 auto;border:1px solid #dce7f3;background:#fff;color:#667990;border-radius:999px;padding:9px 13px;font-size:11px;font-weight:850}.s8-history-filters button.active{border-color:#1878f3;background:#1878f3;color:#fff;box-shadow:0 7px 15px rgba(24,120,243,.2)}
.history-list{display:grid;gap:10px}.history-item{width:100%;display:grid!important;grid-template-columns:82px minmax(0,1fr) 18px;align-items:center;gap:12px;padding:10px!important;border:1px solid #e0e9f4!important;background:#fff!important;text-align:left;color:inherit}.history-item> b{color:#93a1b4;font-size:24px}.history-thumb-wrap{position:relative;width:82px;height:82px;border-radius:14px;overflow:hidden;background:#eaf0f7}.history-thumb-wrap img{width:100%;height:100%;object-fit:cover}.history-view-icon{position:absolute;right:5px;bottom:5px;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:rgba(4,24,50,.74);color:#fff;font-style:normal}.history-copy{min-width:0}.history-topline{display:flex!important;align-items:center;justify-content:space-between;gap:7px}.history-copy strong{color:#102d4e;font-size:13px}.history-copy>span:not(.history-topline),.history-copy small{display:block;margin-top:4px;color:#75869d;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-copy small{color:#1773df;font-weight:750}.history-address{max-width:100%}.history-item .status{flex:0 0 auto;margin:0!important;padding:4px 7px!important;border-radius:999px;font-size:8px!important;font-weight:900;font-style:normal}.history-item .status.pending{background:#fff3d3;color:#986300}.history-item .status.approved{background:#def8e8;color:#087b43}.history-item .status.rejected{background:#ffe3e7;color:#b82037}
.s8-photo-detail[hidden]{display:none!important}.s8-photo-detail{position:fixed;inset:0;z-index:100500;display:grid;place-items:end center}.s8-photo-detail-backdrop{position:absolute;inset:0;background:rgba(3,17,36,.72);backdrop-filter:blur(6px)}.s8-photo-detail-card{position:relative;width:min(560px,100%);max-height:92dvh;overflow:auto;border-radius:24px 24px 0 0;background:#fff;box-shadow:0 -25px 60px rgba(0,0,0,.28)}.s8-photo-detail-card>img{display:block;width:100%;max-height:48dvh;object-fit:contain;background:#08111d}.s8-photo-detail-close{position:absolute;z-index:2;right:12px;top:12px;width:38px;height:38px;border:0;border-radius:50%;background:rgba(3,17,36,.72);color:#fff;font-size:26px}.s8-photo-detail-body{padding:17px 16px calc(18px + env(safe-area-inset-bottom))}.s8-photo-detail-status{display:inline-flex;padding:6px 10px;border-radius:999px;font-size:10px;font-weight:900}.s8-photo-detail-status.pending{background:#fff3d3;color:#986300}.s8-photo-detail-status.approved{background:#def8e8;color:#087b43}.s8-photo-detail-status.rejected{background:#ffe3e7;color:#b82037}.s8-photo-detail-body h3{margin:9px 0 13px;color:#102d4e;font-size:21px}.s8-photo-detail-body #photoDetailInfo{display:grid;grid-template-columns:1fr 1fr;border:1px solid #e3ebf4;border-radius:16px;overflow:hidden}.s8-photo-detail-body #photoDetailInfo>div{padding:11px 12px;border-bottom:1px solid #e8eef5}.s8-photo-detail-body #photoDetailInfo>div:nth-child(odd):not(.full){border-right:1px solid #e8eef5}.s8-photo-detail-body #photoDetailInfo .full{grid-column:1/-1}.s8-photo-detail-body #photoDetailInfo span{display:block;color:#8493a7;font-size:9px;text-transform:uppercase;font-weight:850}.s8-photo-detail-body #photoDetailInfo strong{display:block;margin-top:4px;color:#183451;font-size:12px;overflow-wrap:anywhere}.s8-photo-detail-body #photoDetailReason{margin:12px 0;padding:12px;border-radius:13px;background:#fff2f3;color:#a62539;font-size:12px;line-height:1.5}.s8-modal-open{overflow:hidden}
.empty-history .spinner.dark{display:inline-block;width:18px;height:18px;margin-right:8px;border:2px solid #d7e3f0;border-top-color:#1675ed;border-radius:50%;vertical-align:middle;animation:s8spin .7s linear infinite}@keyframes s8spin{to{transform:rotate(360deg)}}
@media(max-width:390px){#successReceipt.receipt{grid-template-columns:1fr}.receipt-address,#successReceipt.receipt .receipt-primary{grid-column:auto!important}#successReceipt.receipt>div{border-right:0!important}.s8-history-summary{gap:5px}.s8-history-summary>div{padding:9px 3px}.s8-history-summary strong{font-size:16px}.history-item{grid-template-columns:70px minmax(0,1fr) 12px}.history-thumb-wrap{width:70px;height:70px}}

/* V9.5.3 Strict in-app live capture */
#nativeCameraInput,[data-native-camera],.s8-native-card,.s8-native-mode{display:none!important}
.camera-error-state.s8-strict-capture{background:rgba(6,17,32,.96)!important}
.camera-error-state.s8-strict-capture .camera-error-card{max-width:390px;padding:26px 22px;border:1px solid rgba(64,145,255,.35);background:linear-gradient(180deg,#13243a,#0a1524);border-radius:24px;color:#fff;text-align:center;box-shadow:0 24px 70px rgba(0,0,0,.4)}
.camera-error-state.s8-strict-capture .camera-error-card strong{display:block;font-size:20px;margin:10px 0}
.camera-error-state.s8-strict-capture .camera-error-card p{line-height:1.55;color:#d7e5f7}
.camera-error-state.s8-strict-capture .camera-error-card small{display:block;margin:12px 0 18px;color:#8fa8c4}
.camera-primary-action{width:100%;min-height:48px;border:0;border-radius:14px;background:linear-gradient(135deg,#1688ff,#16bed4);color:#fff;font-weight:800}
body.s8-camera-live .camera-center-shutter{pointer-events:auto!important;opacity:1!important}


/* V9.5.4 CAPTURE SUCCESS FLOW */
.ctv-live-app:not(.ctv-camera-active) #screenSuccess.active{display:block!important;position:relative!important;z-index:20!important;background:linear-gradient(180deg,#f4faff 0%,#eef5fb 100%)!important;min-height:calc(100dvh - 64px)!important}
#screenSuccess .s8-success-hero{background:#fff;border:1px solid #dfeaf5;border-radius:24px;padding:24px 18px 20px;box-shadow:0 18px 42px rgba(20,64,110,.10)}
#screenSuccess .s8-success-hero h2{font-size:28px!important}
#screenSuccess .s8-success-hero p{font-size:14px!important;color:#60758e!important}
#captureNext{min-height:54px!important;font-size:14px!important;box-shadow:0 13px 28px rgba(22,111,235,.24)!important}
#captureNext:disabled{opacity:.76!important;cursor:wait!important}
@media(max-width:480px){#screenSuccess.success-screen{padding:18px 14px calc(96px + env(safe-area-inset-bottom))!important}#screenSuccess .s8-success-hero{padding:22px 15px 18px}#screenSuccess .s8-success-hero h2{font-size:25px!important}}


/* V9.5.5 GUARANTEED CAPTURE SUCCESS OVERLAY */
.s8-capture-success-overlay{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(5,16,31,.76);backdrop-filter:blur(8px);opacity:0;visibility:hidden;pointer-events:none;transition:.22s ease}
.s8-capture-success-overlay.show{opacity:1;visibility:visible;pointer-events:auto}
.s8-capture-success-card{width:min(430px,100%);max-height:92dvh;overflow:auto;padding:28px 20px calc(22px + env(safe-area-inset-bottom));border:1px solid rgba(255,255,255,.72);border-radius:28px;background:linear-gradient(180deg,#fff 0%,#f4f9ff 100%);box-shadow:0 30px 90px rgba(0,0,0,.34);text-align:center}
.s8-capture-success-icon{width:84px;height:84px;margin:0 auto 13px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#17c96b,#0ca859);color:#fff;font-size:48px;font-weight:900;box-shadow:0 16px 34px rgba(13,177,91,.28)}
.s8-capture-success-kicker{display:block;color:#129653;font-size:10px;font-weight:900;letter-spacing:1.1px}
.s8-capture-success-card h2{margin:7px 0 8px;color:#102d4e;font-size:28px;line-height:1.15}
.s8-capture-success-card>p{margin:0 auto 18px;max-width:340px;color:#647991;font-size:13px;line-height:1.55}
.s8-capture-success-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:16px;text-align:left}
.s8-capture-success-meta>div{padding:11px 12px;border:1px solid #dfe9f4;border-radius:14px;background:#fff}
.s8-capture-success-meta .wide{grid-column:1/-1}
.s8-capture-success-meta span{display:block;color:#8191a5;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.55px}
.s8-capture-success-meta strong{display:block;margin-top:4px;color:#133554;font-size:13px;overflow-wrap:anywhere}
.s8-success-next{width:100%;min-height:54px;border:0;border-radius:15px;background:linear-gradient(135deg,#1688ff,#1662ef);color:#fff;font-size:13px;font-weight:900;box-shadow:0 14px 28px rgba(22,105,239,.24)}
.s8-success-next:disabled{opacity:.72}
.s8-success-secondary{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:10px}
.s8-success-secondary button{min-height:46px;border:1px solid #d7e4f2;border-radius:13px;background:#fff;color:#1265d6;font-size:11px;font-weight:850}
body.s8-success-overlay-open{overflow:hidden!important}
@media(max-width:380px){.s8-capture-success-card{padding-left:15px;padding-right:15px;border-radius:22px}.s8-capture-success-card h2{font-size:24px}.s8-success-secondary{grid-template-columns:1fr}}

/* V9.5.7 User Photo History Dashboard */
.s8-recent-photos-card{background:#fff;border:1px solid #dbe8f5;border-radius:20px;padding:14px;box-shadow:0 12px 28px rgba(24,74,125,.08);margin:0;order:5;flex:0 0 auto}
.s8-recent-photos-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.s8-recent-photos-head span{display:block;font-size:9px;font-weight:800;letter-spacing:.9px;color:#1680e8}.s8-recent-photos-head strong{display:block;font-size:15px;color:#0c2e52;margin-top:2px}.s8-recent-photos-head button{border:0;background:#edf6ff;color:#0875df;border-radius:11px;padding:8px 10px;font-size:10px;font-weight:800}.s8-recent-photos-head button b{font-size:15px;margin-left:3px}.s8-recent-photo-stats{display:flex;gap:6px;overflow:auto;padding-bottom:9px}.s8-recent-photo-stats span{white-space:nowrap;background:#f3f7fb;border-radius:999px;padding:6px 9px;font-size:9px;color:#60748b}.s8-recent-photo-stats b{color:#123b63;font-size:11px}.s8-recent-photo-stats .approved{background:#e9f9ef;color:#19814b}.s8-recent-photo-stats .pending{background:#fff5dd;color:#9a6812}.s8-recent-photo-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.s8-recent-photo-item{border:0;background:#f7faff;border-radius:13px;padding:6px;text-align:left;min-width:0}.s8-recent-photo-item img{width:100%;height:62px;object-fit:cover;border-radius:9px;display:block;background:#e7eef6}.s8-recent-photo-item strong{display:block;font-size:9px;color:#173b60;margin-top:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.s8-recent-photo-item small{display:flex;align-items:center;gap:4px;font-size:8px;color:#718398;margin-top:3px}.s8-recent-photo-item i{width:6px;height:6px;border-radius:50%;display:inline-block}.s8-recent-photo-item i.approved{background:#22b66d}.s8-recent-photo-item i.pending{background:#f5a623}.s8-recent-photo-item i.rejected{background:#ef4f5f}.s8-recent-photo-empty{grid-column:1/-1;background:#f7faff;border:1px dashed #d5e2ef;border-radius:12px;padding:14px;text-align:center;font-size:10px;color:#8292a5}
@media(max-width:460px){#screenHome.active{overflow-y:auto!important;padding-bottom:112px!important}.s8-recent-photos-card{padding:12px;border-radius:18px}.s8-recent-photo-item img{height:56px}.s8-recent-photos-head strong{font-size:14px}}

/* =========================================================
   V9.5.8 CAMERA BOTTOM NAV RESTORE
   Keep the CTV navigation visible while the in-app camera is open.
   ========================================================= */
:root{--s8-ctv-bottom-nav-h:calc(72px + env(safe-area-inset-bottom));}

/* The camera remains full-screen inside the app, but must stop above the CTV nav. */
body.s8-camera-live #screenCamera.camera-screen,
.ctv-live-app.ctv-camera-active #screenCamera.camera-screen,
#screenCamera.camera-screen.active{
  position:fixed!important;
  top:0!important;
  right:0!important;
  bottom:var(--s8-ctv-bottom-nav-h)!important;
  left:0!important;
  inset:auto 0 var(--s8-ctv-bottom-nav-h) 0!important;
  z-index:99990!important;
  height:calc(100dvh - var(--s8-ctv-bottom-nav-h))!important;
  min-height:0!important;
  padding:0!important;
  overflow:hidden!important;
}

body.s8-camera-live #screenCamera .camera-stage,
.ctv-live-app.ctv-camera-active #screenCamera .camera-stage,
#screenCamera.camera-screen.active .camera-stage{
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  padding-bottom:0!important;
}

body.s8-camera-live #screenCamera .camera-stage video,
body.s8-camera-live #screenCamera .camera-stage canvas,
.ctv-live-app.ctv-camera-active #screenCamera .camera-stage video,
.ctv-live-app.ctv-camera-active #screenCamera .camera-stage canvas,
#screenCamera.camera-screen.active .camera-stage video,
#screenCamera.camera-screen.active .camera-stage canvas{
  width:100%!important;
  height:100%!important;
  max-height:100%!important;
  object-fit:cover!important;
}

/* Dock is pinned to the bottom of the camera viewport, directly above nav. */
body.s8-camera-live #screenCamera .camera-action-dock,
.ctv-live-app.ctv-camera-active #screenCamera .camera-action-dock,
#screenCamera.camera-screen.active .camera-action-dock{
  position:absolute!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  z-index:100002!important;
  padding-bottom:max(14px,env(safe-area-inset-bottom))!important;
}

body.s8-camera-live #screenCamera .camera-controls,
.ctv-live-app.ctv-camera-active #screenCamera .camera-controls,
#screenCamera.camera-screen.active > .camera-controls{
  bottom:0!important;
  z-index:100002!important;
}

/* Always expose the app navigation above the camera layer. */
body.s8-camera-live .ctv-app-bottom-nav,
.ctv-live-app.ctv-camera-active .ctv-app-bottom-nav,
.ctv-app-bottom-nav{
  display:grid!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  z-index:100100!important;
  transform:translateX(-50%)!important;
}

@media(max-width:699px){
  body.s8-camera-live .ctv-app-bottom-nav,
  .ctv-live-app.ctv-camera-active .ctv-app-bottom-nav,
  .ctv-app-bottom-nav{
    left:0!important;
    right:0!important;
    transform:none!important;
    width:100%!important;
  }
}

/* Prevent the captured preview/video from leaking below the capture controls. */
body.s8-camera-live #screenCamera:after,
.ctv-live-app.ctv-camera-active #screenCamera:after{
  content:""!important;
  position:absolute!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  height:2px!important;
  background:#05080d!important;
  z-index:100001!important;
  pointer-events:none!important;
}

/* =========================================================
   V9.5.9 MOBILE FRAME LOCK FIX
   Keep the CTV application and camera inside a real phone frame on desktop.
   ========================================================= */
:root{
  --s8-phone-frame-w:430px;
  --s8-phone-desktop-gap:16px;
}

@media (min-width:700px){
  html,body{min-height:100%;}
  body.s8-force-mobile-role,
  body.s8-staff-preview-mobile,
  body.s8-mobile-only-app{
    padding:var(--s8-phone-desktop-gap)!important;
    background:linear-gradient(135deg,#eef6fb 0%,#f8fbfe 50%,#edf5fb 100%)!important;
    overflow-x:hidden!important;
  }

  body.s8-force-mobile-role #page,
  body.s8-force-mobile-role .site,
  body.s8-force-mobile-role .site-content,
  body.s8-force-mobile-role main,
  body.s8-staff-preview-mobile #page,
  body.s8-staff-preview-mobile .site,
  body.s8-staff-preview-mobile .site-content,
  body.s8-staff-preview-mobile main,
  body.s8-mobile-only-app #page,
  body.s8-mobile-only-app .site,
  body.s8-mobile-only-app .site-content,
  body.s8-mobile-only-app main{
    width:var(--s8-phone-frame-w)!important;
    max-width:var(--s8-phone-frame-w)!important;
    min-width:0!important;
    margin:0 auto!important;
    padding:0!important;
    overflow:visible!important;
  }

  body.s8-force-mobile-role .s8-app,
  body.s8-force-mobile-role .ctv-mobile-app,
  body.s8-force-mobile-role .ctv-tabbed-app,
  body.s8-force-mobile-role .ctv-live-app,
  body.s8-staff-preview-mobile .s8-app,
  body.s8-staff-preview-mobile .ctv-mobile-app,
  body.s8-staff-preview-mobile .ctv-tabbed-app,
  body.s8-staff-preview-mobile .ctv-live-app,
  body.s8-mobile-only-app .s8-app,
  body.s8-mobile-only-app .ctv-mobile-app,
  body.s8-mobile-only-app .ctv-tabbed-app,
  body.s8-mobile-only-app .ctv-live-app{
    position:relative!important;
    width:var(--s8-phone-frame-w)!important;
    max-width:var(--s8-phone-frame-w)!important;
    min-width:0!important;
    min-height:calc(100dvh - (var(--s8-phone-desktop-gap) * 2))!important;
    margin:0 auto!important;
    border-radius:28px!important;
    overflow:hidden!important;
    background:#fff!important;
    box-shadow:0 24px 70px rgba(20,53,91,.18)!important;
  }

  /* Camera is fixed to the phone frame, never to the whole desktop viewport. */
  body.s8-camera-live #screenCamera.camera-screen,
  .ctv-live-app.ctv-camera-active #screenCamera.camera-screen,
  #screenCamera.camera-screen.active{
    top:var(--s8-phone-desktop-gap)!important;
    right:auto!important;
    bottom:calc(var(--s8-phone-desktop-gap) + var(--s8-ctv-bottom-nav-h))!important;
    left:50%!important;
    inset:var(--s8-phone-desktop-gap) auto calc(var(--s8-phone-desktop-gap) + var(--s8-ctv-bottom-nav-h)) 50%!important;
    width:var(--s8-phone-frame-w)!important;
    max-width:var(--s8-phone-frame-w)!important;
    height:calc(100dvh - (var(--s8-phone-desktop-gap) * 2) - var(--s8-ctv-bottom-nav-h))!important;
    transform:translateX(-50%)!important;
    border-radius:28px 28px 0 0!important;
    overflow:hidden!important;
    box-shadow:0 18px 60px rgba(8,28,55,.24)!important;
  }

  body.s8-camera-live .ctv-app-bottom-nav,
  .ctv-live-app.ctv-camera-active .ctv-app-bottom-nav,
  .ctv-app-bottom-nav{
    position:fixed!important;
    left:50%!important;
    right:auto!important;
    bottom:var(--s8-phone-desktop-gap)!important;
    width:var(--s8-phone-frame-w)!important;
    max-width:var(--s8-phone-frame-w)!important;
    transform:translateX(-50%)!important;
    border-radius:0 0 28px 28px!important;
    overflow:hidden!important;
    box-shadow:0 18px 50px rgba(20,53,91,.16)!important;
  }

  body.s8-camera-live #screenCamera .camera-stage,
  .ctv-live-app.ctv-camera-active #screenCamera .camera-stage,
  #screenCamera.camera-screen.active .camera-stage{
    width:100%!important;
    max-width:100%!important;
  }

  body.s8-camera-live #screenCamera .camera-stage video,
  body.s8-camera-live #screenCamera .camera-stage canvas,
  .ctv-live-app.ctv-camera-active #screenCamera .camera-stage video,
  .ctv-live-app.ctv-camera-active #screenCamera .camera-stage canvas,
  #screenCamera.camera-screen.active .camera-stage video,
  #screenCamera.camera-screen.active .camera-stage canvas{
    width:100%!important;
    max-width:100%!important;
    object-fit:cover!important;
  }
}

@media (max-width:699px){
  body.s8-force-mobile-role,
  body.s8-staff-preview-mobile,
  body.s8-mobile-only-app{padding:0!important;}

  body.s8-force-mobile-role .s8-app,
  body.s8-force-mobile-role .ctv-mobile-app,
  body.s8-force-mobile-role .ctv-tabbed-app,
  body.s8-force-mobile-role .ctv-live-app,
  body.s8-staff-preview-mobile .s8-app,
  body.s8-staff-preview-mobile .ctv-mobile-app,
  body.s8-staff-preview-mobile .ctv-tabbed-app,
  body.s8-staff-preview-mobile .ctv-live-app{
    width:100%!important;
    max-width:100%!important;
    min-height:100dvh!important;
    margin:0!important;
    border-radius:0!important;
  }

  body.s8-camera-live #screenCamera.camera-screen,
  .ctv-live-app.ctv-camera-active #screenCamera.camera-screen,
  #screenCamera.camera-screen.active{
    top:0!important;
    right:0!important;
    bottom:var(--s8-ctv-bottom-nav-h)!important;
    left:0!important;
    inset:0 0 var(--s8-ctv-bottom-nav-h) 0!important;
    width:100%!important;
    max-width:100%!important;
    height:calc(100dvh - var(--s8-ctv-bottom-nav-h))!important;
    transform:none!important;
    border-radius:0!important;
  }
}
