:root{--green:#086b55;--green2:#15b875;--blue:#0758b7;--ink:#122520;--muted:#70807b;--line:#dce5e1;--bg:#f5f8f7;--white:#fff;--danger:#b92b35;--shadow:0 12px 34px rgba(21,50,42,.11);font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:var(--ink)}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#e9f0ee}button,input,textarea,select{font:inherit}button{cursor:pointer}.app-frame{min-height:100vh;background:var(--bg);position:relative;overflow-x:hidden}.app-header{height:104px;padding:max(18px,env(safe-area-inset-top)) 22px 16px;display:flex;align-items:flex-end;gap:16px;background:linear-gradient(135deg,#bcefff,#8bdcf6);position:sticky;top:0;z-index:40}.header-icon{width:44px;height:44px;border:0;background:transparent;padding:8px;display:grid;place-items:center}.header-icon svg{width:30px;height:30px}.header-user{display:flex;align-items:center;gap:12px;flex:1;min-width:0}.avatar{width:58px;height:58px;border-radius:50%;background:#fff;display:grid;place-items:center;overflow:hidden;box-shadow:0 3px 12px #0002}.avatar img{width:100%;height:100%;object-fit:contain;padding:5px}.header-user strong{display:block;font-size:24px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.zone-pill{display:inline-block;margin-top:5px;border-radius:999px;background:#17b96c;color:white;font-size:13px;font-weight:800;padding:5px 12px}.zone-pill.offline{background:#e89934}.bell{position:relative}.bell i{position:absolute;right:7px;top:7px;width:9px;height:9px;background:#f4434b;border:2px solid white;border-radius:50%}.main{padding:18px 18px 118px;max-width:1060px;margin:auto}.checkin-card,.quick-card,.card,.notice-banner,.task-card,.data-card,.readiness-card,.workspace-card{background:white;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow)}.checkin-card{display:grid;grid-template-columns:48px 1fr auto;align-items:center;gap:14px;padding:18px;margin-bottom:20px}.checkin-icon{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:#eef5ff;color:var(--blue);font-size:24px;font-weight:900}.checkin-card.checked .checkin-icon{background:#d9f7e8;color:var(--green)}.checkin-card strong{font-size:18px;display:block}.checkin-card small{color:var(--muted);display:block;margin-top:4px}.pill-button,.btn{border:0;border-radius:16px;padding:13px 20px;font-weight:800}.pill-button,.btn-primary{background:linear-gradient(135deg,var(--green),var(--green2));color:white}.quick-card{padding:22px;margin-bottom:24px}.quick-card h2,.notice-section h2,.task-section h2{font-size:25px;margin:0 0 20px}.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.quick-grid button{border:0;background:transparent;padding:10px 2px}.quick-grid span{display:grid;place-items:center;width:54px;height:54px;margin:auto;border-radius:50%;background:#eff6f3;font-size:26px}.quick-grid small{display:block;margin-top:9px;font-size:14px}.notice-section{margin-bottom:28px}.notice-banner{padding:22px;background:linear-gradient(135deg,#06634f,#15b875);color:white;display:flex;justify-content:space-between;align-items:center;gap:20px}.notice-banner small,.notice-banner span{display:block;opacity:.86}.notice-banner strong{display:block;font-size:19px;margin:6px 0}.notice-banner button{border:1px solid #fff8;background:#fff;color:var(--green);padding:10px 16px;border-radius:14px;font-weight:800}.section-heading{display:flex;justify-content:space-between;align-items:center}.section-heading button{border:0;background:transparent;color:var(--green);font-weight:800}.task-tabs{display:flex;gap:10px;margin-bottom:14px;overflow:auto}.task-tabs button{white-space:nowrap;border:1px solid var(--line);background:white;border-radius:12px;padding:10px 14px}.task-tabs .active{background:var(--blue);color:white}.task-card{padding:20px}.task-card strong,.task-card small{display:block}.task-card small{color:var(--muted);margin-top:5px}.task-meta{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.task-meta span{padding:7px 10px;background:#eef5f2;border-radius:10px;font-size:12px}.task-card>button{width:100%;padding:13px;border:0;border-radius:14px;background:#e9f1ff;color:#064a96;font-weight:800}.bottom-nav{position:fixed;z-index:45;left:0;right:0;bottom:0;height:92px;padding:10px max(10px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(5,1fr);background:white;border-radius:28px 28px 0 0;box-shadow:0 -8px 25px #1232}.bottom-nav button{border:0;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:#3b4542}.bottom-nav svg{width:25px;height:25px}.bottom-nav small{font-size:12px}.bottom-nav .active{color:var(--blue);font-weight:800}.bottom-nav .fab-nav span{width:62px;height:62px;border-radius:50%;background:linear-gradient(145deg,#0789d8,#0766bd);color:white;display:grid;place-items:center;margin-top:-34px;box-shadow:0 5px 16px #0372a955}.bottom-nav .fab-nav svg{width:28px;height:28px}.drawer-overlay{position:fixed;inset:0;background:#0a1c1bb0;opacity:0;pointer-events:none;z-index:70;transition:.22s}.drawer-overlay.open{opacity:1;pointer-events:auto}.drawer{position:fixed;z-index:71;left:0;top:0;bottom:0;width:min(88vw,430px);background:white;transform:translateX(-102%);transition:.25s;box-shadow:20px 0 40px #0003}.drawer.open{transform:none}.drawer-profile{padding:max(26px,env(safe-area-inset-top)) 22px 22px;display:grid;grid-template-columns:62px 1fr auto;align-items:center;gap:14px;border-bottom:1px solid var(--line)}.drawer-avatar{width:62px;height:62px;border-radius:50%;overflow:hidden;background:#f0f5f3}.drawer-avatar img{width:100%;height:100%;object-fit:contain;padding:4px}.drawer-profile strong,.drawer-profile small{display:block}.drawer-profile strong{font-size:20px}.drawer-profile small{color:var(--muted);margin-top:5px}.drawer-scroll{height:calc(100% - 110px);overflow:auto;padding:14px}.nav-group-title{font-size:11px;letter-spacing:.12em;color:#80908b;font-weight:900;padding:16px 12px 8px}.nav-link{width:100%;display:grid;grid-template-columns:38px 1fr auto;align-items:center;text-align:left;border:0;background:white;padding:14px 10px;border-bottom:1px solid #edf1ef}.nav-link.active{background:#edf8f3;border-radius:12px;color:var(--green)}.nav-icon svg{width:22px;height:22px}.modal-backdrop{position:fixed;inset:0;background:#102727a8;z-index:90;display:flex;align-items:flex-end;opacity:0;transition:.18s}.modal-backdrop.open{opacity:1}.modal{width:100%;max-height:88vh;overflow:auto;background:white;border-radius:30px 30px 0 0;padding:24px;transform:translateY(30px);transition:.2s}.modal-backdrop.open .modal{transform:none}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.modal-head h2{margin:0;font-size:27px}.round-close{width:46px;height:46px;border:0;border-radius:50%;background:#607d92;color:white;font-size:28px}.sheet-list button{width:100%;display:grid;grid-template-columns:54px 1fr auto;align-items:center;text-align:left;border:0;border-bottom:1px solid var(--line);background:white;padding:15px 4px}.sheet-symbol{width:42px;height:42px;border-radius:50%;background:#eaf6ff;color:#0065a8;display:grid;place-items:center;font-size:21px}.sheet-list strong{font-size:18px}.gate-dialog{text-align:center;padding:10px 0 4px}.gate-icon{width:80px;height:80px;margin:auto;border-radius:50%;background:#fff1e5;color:#e66d1c;display:grid;place-items:center;font-size:42px;font-weight:900}.gate-dialog h3{font-size:26px;margin:18px 0 8px}.gate-dialog p{color:var(--muted);line-height:1.5}.btn-block{width:100%}.page-head{display:flex;justify-content:space-between;align-items:flex-start;margin:12px 0 22px}.page-head h1{font-size:34px;margin:5px 0}.page-head p{color:var(--muted);margin:0}.eyebrow{font-size:12px;letter-spacing:.13em;color:var(--green);font-weight:900}.back-button{display:none}.hero{padding:28px;border-radius:26px;background:linear-gradient(135deg,#075b49,#15b875);color:white;margin-bottom:20px}.hero h1{font-size:35px;margin:8px 0}.hero p{line-height:1.5}.grid{display:grid;gap:16px}.stats{grid-template-columns:repeat(2,1fr)}.stat{background:white;padding:18px;border-radius:20px;border:1px solid var(--line)}.stat span,.stat small{display:block;color:var(--muted)}.stat strong{font-size:29px;display:block;margin:7px 0}.card{padding:22px;margin-bottom:18px}.card-title{font-size:26px;margin:0}.card-subtitle{color:var(--muted)}.data-list{display:grid;gap:14px}.data-card{padding:18px}.data-card-head{display:flex;justify-content:space-between;gap:10px}.data-card h3{font-size:21px;margin:0}.data-card small{color:var(--muted)}.data-meta{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:14px}.data-meta>div{background:#eff6f3;padding:12px;border-radius:14px}.data-meta span,.data-meta strong{display:block}.data-meta span{font-size:12px;color:var(--muted)}.status{display:inline-block;border-radius:999px;background:#dff6e9;color:#087352;padding:7px 10px;font-size:11px;font-weight:900}.status.warning{background:#fff0c7;color:#8a5a00}.status.danger{background:#ffe1e4;color:#a6202c}.input,.textarea,select{width:100%;border:1px solid #cbd8d3;border-radius:14px;padding:14px;background:white}.field{margin-bottom:14px}.field label{display:block;font-weight:700;margin-bottom:6px}.toolbar,.card-actions{display:flex;gap:10px;flex-wrap:wrap}.empty{padding:28px;text-align:center;border:1px dashed #cbd7d3;border-radius:18px;color:var(--muted)}.toast{position:fixed;z-index:120;left:50%;bottom:110px;transform:translate(-50%,20px);background:#102c27;color:white;padding:12px 18px;border-radius:999px;opacity:0;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}.alert{padding:14px;border-radius:14px;background:#eef5ff}.alert-error{background:#ffe7e7;color:#98252c}.login-page,.splash{min-height:100vh;display:grid;place-items:center;padding:22px;background:linear-gradient(145deg,#dff8ef,#eef6ff)}.login-card,.splash-card{width:min(100%,460px);background:white;border-radius:28px;padding:28px;box-shadow:var(--shadow)}.login-brand{display:flex;align-items:center;gap:14px}.logo-square,.splash-logo-box{width:78px;height:78px;border-radius:20px;background:#fff;display:grid;place-items:center;overflow:hidden}.logo-square img,.splash-logo-box img{width:100%;height:100%;object-fit:contain;padding:5px}.login-brand h1{font-size:22px;margin:0}.login-brand p,.welcome p{color:var(--muted)}.welcome{margin:28px 0 20px}.welcome span{color:var(--green);font-size:12px;font-weight:900;letter-spacing:.12em}.welcome h2{font-size:32px;margin:7px 0}.password-wrap{display:flex;position:relative}.password-wrap button{position:absolute;right:8px;top:8px;border:0;background:#eef5f2;border-radius:10px;padding:7px}.remember{display:block;margin:12px 0 18px}.login-links{display:flex;gap:13px;justify-content:center;margin-top:18px;flex-wrap:wrap}.login-links a{color:var(--green)}.splash-card{text-align:center}.splash-logo-box{margin:auto;width:110px;height:110px}.splash-card h1{margin:18px 0 7px}.progress{height:5px;border-radius:5px;background:linear-gradient(90deg,var(--green),var(--green2));animation:load .55s}.readiness-card{padding:22px}.readiness-head{display:flex;gap:18px;align-items:center}.readiness-ring{width:90px;height:90px;border-radius:50%;border:10px solid #d9ede5;border-top-color:var(--green);display:grid;place-items:center}.check-list{display:grid;gap:10px;margin:20px 0}.check-list>div{display:flex;justify-content:space-between;align-items:center;background:#eff6f3;border-radius:14px;padding:14px}.btn-danger{background:#fff0f1;color:#ab2630;border:1px solid #efc5c8}.timeline-list article{display:flex;gap:12px;padding:13px 0}.timeline-list article>span{width:10px;height:10px;background:var(--green);border-radius:50%;margin-top:5px}.timeline-list strong,.timeline-list small{display:block}.section-title{display:flex;justify-content:space-between;align-items:center;margin:24px 0 12px}.workspace-card{padding:22px;margin-bottom:18px}.workspace-links button,.action-row{width:100%;border:0;background:white;border-bottom:1px solid var(--line);padding:15px 5px;text-align:left}.module-tiles{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.module-tiles button{border:1px solid var(--line);background:white;border-radius:18px;padding:18px;text-align:left}.module-tiles b,.module-tiles strong,.module-tiles small{display:block}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.full{grid-column:1/-1}@keyframes load{from{width:0}to{width:100%}}@media(min-width:760px){body{background:#dbe7e4}.app-frame{max-width:1180px;margin:auto;box-shadow:0 0 60px #18352d22}.app-header{padding-left:42px;padding-right:42px}.main{padding:28px 42px 130px}.quick-grid{gap:30px}.modal{max-width:700px;margin:auto;border-radius:30px 30px 0 0}.bottom-nav{left:50%;right:auto;transform:translateX(-50%);width:min(100%,1180px)}.admin-split,.section-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}}@media(max-width:430px){.app-header{height:94px;padding-left:13px;padding-right:13px;gap:8px}.header-icon{width:38px;height:38px;padding:6px}.avatar{width:50px;height:50px}.header-user{gap:9px}.header-user strong{font-size:19px}.zone-pill{font-size:11px;padding:4px 9px}.main{padding:14px 12px 112px}.checkin-card{grid-template-columns:42px 1fr;padding:15px}.checkin-card .pill-button{grid-column:1/-1;width:100%}.quick-card{padding:18px 10px}.quick-grid small{font-size:12px}.quick-grid span{width:47px;height:47px}.notice-banner{align-items:flex-start}.notice-banner button{flex:none}.page-head h1{font-size:29px}.hero h1{font-size:29px}.data-meta{grid-template-columns:1fr 1fr}.bottom-nav{height:86px}.bottom-nav small{font-size:10px}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}}/* V29.2.2 GREEN GOLD ADAPTIVE ENTERPRISE */
:root{--brand-950:#063b31;--brand-900:#075244;--brand-700:#08765f;--brand-500:#10a977;--brand-100:#dff7ed;--gold-500:#d6a528;--surface:#ffffff;--surface-soft:#f3fbf7;--ink:#10251f;--muted:#64766f;--line:#d9e8e1;--shadow-premium:0 18px 50px rgba(5,65,51,.12);--radius-xl:26px;--radius-lg:20px}
body{color:var(--ink);background:linear-gradient(135deg,#eaf8f3,#f8fbff)}
.app-header{background:linear-gradient(115deg,rgba(255,255,255,.96),rgba(238,250,245,.94));backdrop-filter:blur(18px);border-bottom:1px solid rgba(7,118,95,.10);box-shadow:0 8px 30px rgba(7,82,68,.08)}
#menuBtn{display:grid!important;flex:0 0 44px;visibility:visible!important;opacity:1!important;color:var(--brand-900);background:var(--brand-100)}
.header-user{min-width:0;flex:1}.header-user>div:last-child{min-width:0}.header-user strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.avatar{border:2px solid rgba(214,165,40,.45);box-shadow:0 8px 20px rgba(7,82,68,.12)}
.card,.quick-card,.task-card,.checkin-card,.notice-banner,.workspace-card,.data-card{border:1px solid rgba(7,118,95,.10);box-shadow:var(--shadow-premium);border-radius:var(--radius-xl)}
.quick-grid button{border-radius:20px;padding:12px 6px;transition:.2s}.quick-grid button:active{transform:scale(.96)}.quick-grid span{background:linear-gradient(145deg,var(--brand-100),#fff);color:var(--brand-900);border:1px solid rgba(7,118,95,.14);box-shadow:0 10px 25px rgba(7,82,68,.10)}
.bottom-nav{background:rgba(255,255,255,.94);backdrop-filter:blur(20px);border:1px solid rgba(7,118,95,.10);box-shadow:0 -12px 34px rgba(7,82,68,.12)}.bottom-nav .active{color:var(--brand-700)}.bottom-nav .fab-nav span{background:linear-gradient(145deg,var(--brand-700),var(--brand-500));box-shadow:0 12px 28px rgba(8,118,95,.35)}
.drawer{background:linear-gradient(180deg,#fff,#f5fcf8)}.drawer-profile{background:linear-gradient(135deg,var(--brand-950),var(--brand-700));color:#fff}.drawer-profile small{color:#dff7ed}.nav-link{border-radius:14px;margin:3px 0;border-bottom:0}.nav-link.active{background:linear-gradient(135deg,var(--brand-100),#fff);box-shadow:inset 0 0 0 1px rgba(7,118,95,.10)}
.modal{box-shadow:0 -22px 70px rgba(4,35,29,.25)}.sheet-list button{border-radius:16px;margin:4px 0;padding:14px 10px;border:1px solid transparent}.sheet-list button:hover{background:var(--surface-soft);border-color:var(--line)}.sheet-symbol{background:linear-gradient(145deg,var(--brand-100),#fff);color:var(--brand-900)}
.module-tiles button,.action-list button{border:1px solid var(--line);background:linear-gradient(145deg,#fff,var(--surface-soft));border-radius:18px;padding:18px;text-align:left;box-shadow:0 10px 24px rgba(7,82,68,.07)}.action-list{display:grid;gap:10px;margin-top:16px}.health-json{white-space:pre-wrap;word-break:break-word;background:#082d25;color:#dcfff2;padding:16px;border-radius:16px;overflow:auto}
@media(max-width:300px){.app-header{padding-left:7px;padding-right:7px}.header-user strong{font-size:14px}.avatar{width:40px;height:40px}.header-icon{width:36px;height:36px}.quick-grid{grid-template-columns:repeat(2,1fr)}.bottom-nav small{font-size:9px}.main{padding-left:8px;padding-right:8px}.card,.quick-card,.task-card,.checkin-card{padding:13px}.page-head h1{font-size:24px}}
@media(min-width:900px){.main{display:block}.dashboard-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:22px}.bottom-nav{border-radius:26px 26px 0 0}.drawer{width:420px}}

/* V29.3 MOBILE CONTAINMENT & REAL FUNCTION REPAIR */
:root{--safe-inline:clamp(8px,3.8vw,24px)}
html,body{width:100%;max-width:100%;overflow-x:hidden}body{overscroll-behavior-x:none}.app-frame,.main,.card,.workspace-card,.data-list,.data-card,.data-card-head,.data-card-title,.data-meta,.data-meta>div,.module-tiles,.control-grid,.workflow-card,.readiness-card{min-width:0;max-width:100%}.main{width:100%;overflow-x:clip}.app-header{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:end;width:100%;padding-left:var(--safe-inline);padding-right:var(--safe-inline)}#menuBtn{grid-column:1;position:relative;z-index:2}.header-user{grid-column:2;width:100%;overflow:hidden}.bell{grid-column:3}.header-icon svg,.nav-icon svg,.bottom-nav svg{display:block;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.header-user strong{max-width:100%}.data-card{width:100%;overflow:hidden}.data-card-head{align-items:flex-start}.data-card-title{flex:1;overflow:hidden}.data-card h3,.data-card small,.data-meta strong,.data-meta span,.card-title,.card-subtitle{overflow-wrap:anywhere;word-break:break-word}.data-card-head>.status{flex:0 1 auto;max-width:42%;white-space:normal;text-align:center}.data-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.data-meta>div{overflow:hidden}.card-actions .btn{flex:1 1 130px}.bottom-nav{width:100%;max-width:1180px;margin:0 auto;grid-template-columns:repeat(5,minmax(0,1fr))}.bottom-nav button{min-width:0}.bottom-nav .fab-nav span{background:linear-gradient(145deg,var(--brand-700),var(--brand-500))}.bottom-nav .fab-nav svg{stroke:#fff}.control-tabs{display:flex;gap:8px;padding:6px;background:#eaf5f0;border-radius:16px;margin:0 0 18px;overflow-x:auto}.control-tabs button{border:0;background:transparent;border-radius:12px;padding:11px 16px;white-space:nowrap;font-weight:800;color:var(--muted)}.control-tabs button.active{background:#fff;color:var(--brand-700);box-shadow:0 6px 18px rgba(7,82,68,.12)}.control-grid{display:grid;gap:14px}.control-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:20px;box-shadow:var(--shadow-premium)}.control-card-head{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:12px;align-items:start}.control-card-head>span:first-child{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:var(--brand-100);color:var(--brand-700);font-weight:900}.control-card h2{margin:0;font-size:21px}.control-card p{margin:6px 0;color:var(--muted);line-height:1.45}.control-card .btn{margin-top:16px}.mini-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}.mini-facts>div{padding:12px;border-radius:14px;background:var(--surface-soft)}.mini-facts span,.mini-facts b{display:block}.report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.report-card{min-width:0;border:1px solid var(--line);border-radius:22px;background:linear-gradient(145deg,#fff,var(--surface-soft));padding:20px;text-align:left;box-shadow:var(--shadow-premium);color:var(--ink)}.report-card span,.report-card strong,.report-card small{display:block}.report-card span{font-size:12px;color:var(--brand-700);font-weight:900;letter-spacing:.08em;text-transform:uppercase}.report-card strong{font-size:20px;margin:8px 0}.report-card small{color:var(--muted)}.report-card:active{transform:scale(.98)}.camera-sheet{padding-bottom:max(20px,env(safe-area-inset-bottom))}.camera-capture p{color:var(--muted);line-height:1.5}.camera-guide{position:relative;aspect-ratio:3/4;border-radius:24px;overflow:hidden;background:#10231f}.camera-guide video{width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}.face-frame{position:absolute;left:50%;top:48%;width:58%;height:68%;transform:translate(-50%,-50%);border:4px dashed #54d4ff;border-radius:50%;box-shadow:0 0 0 999px rgba(3,16,14,.28)}.camera-actions{display:grid;grid-template-columns:1fr 1.4fr;gap:10px;margin-top:14px}.quick-list{display:grid;gap:12px}.quick-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;padding:16px;border:1px solid var(--line);border-radius:18px;background:var(--surface-soft)}.quick-item strong,.quick-item small{display:block}.quick-item small{margin-top:5px;color:var(--muted);line-height:1.4}
@media(max-width:430px){.data-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.report-grid{grid-template-columns:1fr}.control-card-head{grid-template-columns:38px minmax(0,1fr)}.control-card-head>.status{grid-column:2;justify-self:start}.page-head{gap:10px}.page-head h1{font-size:clamp(27px,9vw,36px)}.hero{padding:24px 20px}.hero h1{font-size:clamp(28px,9vw,38px)}.readiness-head{align-items:flex-start}.readiness-ring{flex:0 0 82px;width:82px;height:82px}.header-user strong{font-size:clamp(15px,5.2vw,21px)}}
@media(max-width:300px){.app-header{grid-template-columns:38px minmax(0,1fr) 38px}.header-user .avatar{width:38px;height:38px}.zone-pill{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.data-meta{grid-template-columns:1fr}.quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bottom-nav small{display:none}.bottom-nav{height:72px}.bottom-nav .fab-nav span{width:52px;height:52px}.main{padding-bottom:90px}.camera-actions{grid-template-columns:1fr}}
@media(min-width:760px){.control-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
/* V30 Login & Portal Architecture */
.premium-login{border:1px solid rgba(8,116,91,.12);position:relative;overflow:hidden}.premium-login:before{content:"";position:absolute;inset:0 0 auto;height:7px;background:linear-gradient(90deg,#075d46,#19b878,#d7a92c)}.portal-links{display:grid;gap:12px;margin-top:22px;padding-top:20px;border-top:1px solid var(--line)}.portal-link{display:grid;grid-template-columns:48px 1fr auto;gap:12px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:18px;text-decoration:none;color:var(--text);background:linear-gradient(145deg,#fff,#f4fbf8);box-shadow:0 8px 22px rgba(13,75,60,.07);transition:.18s}.portal-link:active{transform:scale(.985)}.portal-link small,.portal-link strong{display:block}.portal-link small{color:var(--muted);margin-top:3px}.portal-icon{width:46px;height:46px;border-radius:15px;display:grid;place-items:center;color:white;font-weight:900;background:linear-gradient(145deg,#08745b,#16b47b)}.portal-link.vendor .portal-icon{background:linear-gradient(145deg,#b78511,#dfb73f)}.registration-link{margin-top:18px;display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-radius:15px;background:#eef8f4;color:var(--green);font-weight:800;text-decoration:none}.operational-return{display:block;text-align:center;margin-top:20px;color:var(--green);font-weight:700;text-decoration:none}.registration-page{min-height:100vh;padding:22px;display:grid;place-items:center;background:radial-gradient(circle at top right,#dff9ee 0,transparent 34%),linear-gradient(145deg,#edf9f5,#f5f8ff)}.registration-card{width:min(100%,720px);padding:28px;border-radius:28px;background:white;box-shadow:var(--shadow);border:1px solid rgba(8,116,91,.12)}.registration-brand{display:flex;gap:16px;align-items:center;margin:20px 0 28px}.registration-brand span{font-size:12px;color:var(--green);font-weight:900;letter-spacing:.12em}.registration-brand h1{margin:5px 0;font-size:30px}.registration-brand p{margin:0;color:var(--muted)}.registration-back{color:var(--green);font-weight:800;text-decoration:none}.consent{display:flex;gap:9px;align-items:flex-start;margin:14px 0 20px;color:var(--muted)}.registration-success{display:grid;gap:7px;margin-top:18px;padding:18px;border-radius:17px;background:#e4f8ed;color:#086b4f}.registration-success strong{font-size:18px}.filter-tabs{display:flex;gap:8px;overflow:auto;margin:0 0 18px}.filter-tabs button{border:1px solid var(--line);background:white;border-radius:999px;padding:10px 15px;white-space:nowrap}.filter-tabs button.active{background:var(--green);color:white;border-color:var(--green)}
@media(max-width:360px){.login-card,.registration-card{padding:20px}.login-brand h1{font-size:18px}.portal-link{grid-template-columns:42px 1fr auto;padding:12px}.portal-icon{width:40px;height:40px}.registration-brand{align-items:flex-start}.registration-brand h1{font-size:25px}}


/* V30.1 Member Portal Real UI Rendering */
.member-home-stats .stat{min-height:132px;display:flex;flex-direction:column;justify-content:center}.member-home-stats .stat strong{overflow-wrap:anywhere}.member-section{margin:18px 24px;padding:24px;border:1px solid rgba(7,93,70,.1);border-radius:28px;background:#fff;box-shadow:0 14px 38px rgba(6,52,42,.08)}.member-section>h2{margin:0 0 18px;font-size:26px;color:#092f27}.member-status-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.member-status-panel>div,.member-draw-status>div{padding:16px;border-radius:18px;background:#f5faf8;display:flex;flex-direction:column;gap:8px}.member-status-panel span,.member-draw-status span{font-size:13px;color:#65736f}.member-status-panel strong{font-size:16px;overflow-wrap:anywhere}.member-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 24px 28px}.member-shortcuts button{border:1px solid rgba(7,93,70,.1);border-radius:22px;background:#fff;text-align:left;padding:18px;box-shadow:0 10px 26px rgba(6,52,42,.07);display:grid;gap:4px}.member-shortcuts button>span{font-size:24px;color:#078565}.member-shortcuts strong{font-size:17px;color:#0c342c}.member-shortcuts small{color:#71807c}.member-summary-strip{margin:0 24px 18px;padding:18px 20px;border-radius:24px;background:linear-gradient(135deg,#075d46,#08a876);display:grid;grid-template-columns:1fr 1fr;gap:14px;color:#fff}.member-summary-strip div{display:grid;gap:5px}.member-summary-strip span{font-size:13px;opacity:.8}.member-summary-strip strong{font-size:23px}.member-record-list{display:grid;gap:16px;margin:0 24px 28px}.member-record-card{padding:22px;border-radius:26px;background:#fff;border:1px solid rgba(7,93,70,.1);box-shadow:0 14px 34px rgba(6,52,42,.08)}.member-record-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.member-record-head small{font-weight:800;letter-spacing:.08em;color:#078565}.member-record-head h3{margin:6px 0 0;font-size:25px;color:#0b322a;overflow-wrap:anywhere}.member-record-meta,.member-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px}.member-record-meta>div,.member-profile-grid>div{padding:14px;border-radius:16px;background:#f6faf8;display:grid;gap:5px;min-width:0}.member-record-meta span,.member-profile-grid span{font-size:12px;color:#71807c}.member-record-meta strong,.member-profile-grid strong{font-size:14px;color:#173a32;overflow-wrap:anywhere}.member-record-actions,.member-profile-actions{display:flex;gap:10px;margin-top:18px;flex-wrap:wrap}.member-empty-state{margin:0 24px 28px;padding:44px 24px;text-align:center;border-radius:28px;background:#fff;border:1px solid rgba(7,93,70,.1);box-shadow:0 14px 38px rgba(6,52,42,.08)}.member-empty-icon{width:68px;height:68px;border-radius:22px;background:#e9f8f3;color:#078565;display:grid;place-items:center;font-size:32px;margin:0 auto 16px}.member-empty-state h3{font-size:24px;margin:0 0 8px;color:#0c342c}.member-empty-state p{margin:0;color:#6b7a76;line-height:1.55}.member-draw-status{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 24px 18px}.member-profile-card{margin:0 24px 28px;padding:24px;border-radius:30px;background:#fff;border:1px solid rgba(7,93,70,.1);box-shadow:0 14px 38px rgba(6,52,42,.08)}.member-profile-identity{display:flex;align-items:center;gap:16px}.member-profile-avatar{width:72px;height:72px;border-radius:24px;background:linear-gradient(135deg,#075d46,#0bb67c);color:#fff;display:grid;place-items:center;font-size:30px;font-weight:800}.member-profile-identity h2{margin:0 0 5px;font-size:27px}.member-profile-identity p{margin:0 0 8px;color:#71807c}.support-hero-card{margin:0 24px 18px;padding:22px;border-radius:28px;background:#fff;border:1px solid rgba(7,93,70,.1);box-shadow:0 14px 38px rgba(6,52,42,.08);display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:16px}.support-icon{width:58px;height:58px;border-radius:20px;background:#e9f8f3;color:#078565;display:grid;place-items:center;font-size:27px;font-weight:800}.support-hero-card h2{margin:0 0 5px}.support-hero-card p{margin:0;color:#71807c;line-height:1.45}.support-chain{display:grid;gap:10px}.support-chain>div{padding:14px;border-radius:16px;background:#f6faf8;display:flex;justify-content:space-between;gap:12px}.main[data-page^="member-"]{padding-bottom:118px}.main[data-page^="member-"] pre{display:none!important}
@media(max-width:420px){.member-status-panel,.member-record-meta,.member-profile-grid{grid-template-columns:1fr}.member-home-stats{grid-template-columns:1fr 1fr}.member-home-stats .stat{min-height:112px;padding:16px}.member-section,.member-shortcuts,.member-record-list,.member-summary-strip,.member-empty-state,.member-draw-status,.member-profile-card,.support-hero-card{margin-left:16px;margin-right:16px}.support-hero-card{grid-template-columns:auto 1fr}.support-hero-card>.status-badge{grid-column:1/-1;justify-self:start}}
@media(min-width:760px){.member-record-list{grid-template-columns:repeat(2,minmax(0,1fr))}.member-shortcuts{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* V30.2 Attendance Security Engine */
.attendance-security-card{margin:0 24px 18px;padding:24px;border-radius:30px;background:#fff;border:1px solid rgba(7,93,70,.12);box-shadow:0 16px 40px rgba(6,52,42,.09)}.attendance-security-card.is-working{border-color:rgba(10,176,116,.35);background:linear-gradient(145deg,#fff,#effbf6)}.attendance-security-card.is-paused{border-color:rgba(218,164,31,.35);background:linear-gradient(145deg,#fff,#fff9e9)}.attendance-security-card.is-closed{border-color:rgba(86,98,95,.22);background:linear-gradient(145deg,#fff,#f4f7f6)}.attendance-state-head{display:grid;grid-template-columns:64px minmax(0,1fr);gap:16px;align-items:center}.attendance-state-icon{width:64px;height:64px;border-radius:22px;display:grid;place-items:center;background:linear-gradient(145deg,#075d46,#0db57b);color:#fff;font-size:28px;font-weight:900;box-shadow:0 12px 25px rgba(7,93,70,.22)}.is-paused .attendance-state-icon{background:linear-gradient(145deg,#a97608,#e4b53b)}.is-closed .attendance-state-icon{background:linear-gradient(145deg,#52645f,#84958f)}.attendance-state-head span{font-size:11px;font-weight:900;letter-spacing:.12em;color:#078565}.attendance-state-head h2{margin:5px 0;font-size:29px;color:#0b342b}.attendance-state-head p{margin:0;color:#6b7a76;line-height:1.5}.attendance-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:22px}.attendance-metrics>div{padding:14px;border-radius:17px;background:rgba(238,248,244,.85);display:grid;gap:5px}.attendance-metrics span{font-size:12px;color:#71807c}.attendance-metrics strong{font-size:15px;color:#123b32;overflow-wrap:anywhere}.attendance-verification{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.attendance-verification span{padding:8px 11px;border-radius:999px;background:#e9f8f2;color:#076b50;font-size:12px;font-weight:800}.attendance-actions-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.attendance-closed-note{padding:17px;border-radius:18px;background:#edf2f0}.attendance-closed-note strong{display:block;color:#314941}.attendance-closed-note p{margin:6px 0 0;color:#6b7a76;line-height:1.45}.attendance-rules{margin:0 24px 20px;padding:22px;border-radius:27px;background:#fff;border:1px solid rgba(7,93,70,.1);box-shadow:0 12px 32px rgba(6,52,42,.07)}.attendance-rules h3{margin:0 0 16px}.attendance-rules>div{display:grid;grid-template-columns:34px 1fr;gap:12px;align-items:center;margin-top:11px}.attendance-rules>div span{width:34px;height:34px;border-radius:12px;display:grid;place-items:center;background:#e9f8f3;color:#087257;font-weight:900}.attendance-rules p{margin:0;color:#65736f;line-height:1.45}.checkout-confirm{text-align:center}.checkout-confirm h3{font-size:23px;margin:12px 0 8px}.checkout-confirm p{color:#687873;line-height:1.55}.confirm-actions{display:grid;grid-template-columns:1fr 1.4fr;gap:10px;margin-top:18px}.break-options{display:grid;gap:10px}.break-options button{border:1px solid var(--line);border-radius:16px;background:#fff;padding:15px;text-align:left;font-weight:800;color:#173a32}.muted-note{color:#71807c;line-height:1.45}.btn-danger{background:#b42318!important;color:#fff!important;border-color:#b42318!important}
@media(max-width:360px){.attendance-security-card,.attendance-rules{margin-left:14px;margin-right:14px;padding:19px}.attendance-state-head{grid-template-columns:52px minmax(0,1fr)}.attendance-state-icon{width:52px;height:52px;border-radius:18px}.attendance-actions-grid,.confirm-actions{grid-template-columns:1fr}.attendance-state-head h2{font-size:24px}}

/* GGL-MICROSOFT-DASHBOARD-MODEL-START */

:root {
  --ms-blue: #1267a5;
  --ms-blue-dark: #0c568d;
  --ms-green: #0b8f70;
  --ms-teal: #16a482;
  --ms-page: #f3f6fa;
  --ms-card: #ffffff;
  --ms-text: #182234;
  --ms-muted: #667083;
  --ms-line: #d8dee8;
  --ms-soft: #eef3f8;
  --ms-radius: 16px;
  --ms-shadow:
    0 4px 14px rgba(29, 53, 87, 0.08);
}

html,
body,
.app-frame {
  color: var(--ms-text) !important;
  background: var(--ms-page) !important;
}

/* White compact header */

.microsoft-topbar {
  position: sticky !important;
  top: 0;
  z-index: 40;
  display: grid !important;
  grid-template-columns:
    52px
    minmax(0, 1fr)
    auto !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  min-height: 72px !important;
  height: 72px !important;
  padding:
    max(8px, env(safe-area-inset-top))
    18px
    8px !important;
  color: var(--ms-text) !important;
  background: #ffffff !important;
  border-bottom:
    1px solid var(--ms-line) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.microsoft-menu-button {
  width: 44px !important;
  height: 44px !important;
  padding: 8px !important;
  color: var(--ms-text) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 10px !important;
}

.microsoft-menu-button svg {
  width: 27px !important;
  height: 27px !important;
}

.microsoft-title {
  min-width: 0;
}

.microsoft-title strong {
  display: block;
  overflow: hidden;
  color: var(--ms-text);
  font-size: 24px;
  font-weight: 750;
  line-height: 1.1;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.microsoft-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.microsoft-theme-button {
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  color: var(--ms-text) !important;
  background: var(--ms-soft) !important;
  border:
    1px solid var(--ms-line) !important;
  border-radius: 50% !important;
  font-size: 24px;
}

.microsoft-profile-button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: none;
  padding: 0;
  color: #ffffff;
  background: var(--ms-blue-dark);
  border: 0;
  border-radius: 50%;
  font-size: 17px;
  font-weight: 800;
}

/* Dashboard workspace */

.main[data-page="dashboard"] {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding:
    26px
    20px
    calc(104px + env(safe-area-inset-bottom))
    !important;
}

/* Command-centre card */

.ms-command-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      var(--ms-blue-dark) 0%,
      #1788cc 52%,
      var(--ms-teal) 100%
    );
  border-radius: 22px;
  box-shadow:
    0 8px 24px rgba(17, 99, 159, 0.2);
}

.ms-command-card::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background:
    rgba(255, 255, 255, 0.07);
}

.ms-command-eyebrow {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.ms-command-card h1 {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 14px 0 8px;
  color: #ffffff;
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.12;
}

.ms-command-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color:
    rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.45;
}

.ms-command-actions {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.ms-command-actions button {
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 800;
}

.ms-command-primary {
  color: var(--ms-text);
  background: #ffffff;
  border: 1px solid #ffffff;
}

.ms-command-secondary {
  color: #ffffff;
  background:
    rgba(9, 74, 123, 0.38);
  border:
    1px solid rgba(255, 255, 255, 0.18);
}

/* Rectangular KPI cards */

.ms-kpi-grid {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.ms-kpi-card {
  position: relative;
  width: 100%;
  min-height: 156px;
  padding: 22px 22px 20px 30px;
  overflow: hidden;
  text-align: left;
  color: var(--ms-text);
  background: var(--ms-card);
  border:
    1px solid var(--ms-line);
  border-radius: var(--ms-radius);
  box-shadow: var(--ms-shadow);
}

.ms-kpi-card::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 6px;
  background: #168ac8;
  border-radius: 0 5px 5px 0;
}

.ms-kpi-card span,
.ms-kpi-card strong,
.ms-kpi-card small {
  display: block;
}

.ms-kpi-card span {
  color: var(--ms-muted);
  font-size: 15px;
}

.ms-kpi-card strong {
  margin: 12px 0 10px;
  color: var(--ms-text);
  font-size: 34px;
  line-height: 1;
}

.ms-kpi-card small {
  color: var(--ms-muted);
  font-size: 15px;
  line-height: 1.4;
}

/* Attendance status strip */

.ms-status-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 18px 20px;
  background: var(--ms-card);
  border:
    1px solid var(--ms-line);
  border-radius: var(--ms-radius);
  box-shadow: var(--ms-shadow);
}

.ms-status-strip span,
.ms-status-strip strong {
  display: block;
}

.ms-status-strip span {
  color: var(--ms-muted);
  font-size: 13px;
}

.ms-status-strip strong {
  margin-top: 4px;
  font-size: 17px;
}

.ms-status-strip button {
  flex: none;
  min-height: 42px;
  padding: 10px 15px;
  color: #ffffff;
  background: var(--ms-blue);
  border: 0;
  border-radius: 10px;
  font-weight: 750;
}

/* Four-item simple bottom navigation */

.microsoft-bottom-nav {
  position: fixed !important;
  z-index: 45;
  right: 0 !important;
  bottom: 0;
  left: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height:
    calc(82px + env(safe-area-inset-bottom))
    !important;
  display: grid !important;
  grid-template-columns:
    repeat(4, minmax(0, 1fr))
    !important;
  padding:
    8px
    10px
    max(8px, env(safe-area-inset-bottom))
    !important;
  transform: none !important;
  background: #ffffff !important;
  border-top:
    1px solid var(--ms-line) !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  border-left: 0 !important;
  border-radius: 0 !important;
  box-shadow:
    0 -3px 14px rgba(29, 53, 87, 0.07)
    !important;
  backdrop-filter: none !important;
}

.microsoft-bottom-nav button {
  min-width: 0;
  color: var(--ms-muted) !important;
  background: transparent !important;
  border: 0 !important;
}

.microsoft-bottom-nav button span {
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  color: inherit !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.microsoft-bottom-nav button svg {
  width: 22px !important;
  height: 22px !important;
}

.microsoft-bottom-nav button small {
  font-size: 12px !important;
}

.microsoft-bottom-nav button.active {
  color: var(--ms-blue) !important;
  font-weight: 750;
}

/* Compact functional drawer */

.drawer {
  width: min(86vw, 360px) !important;
  background: #ffffff !important;
}

.drawer-profile {
  min-height: 108px;
  padding:
    max(20px, env(safe-area-inset-top))
    18px
    18px !important;
  color: var(--ms-text) !important;
  background: #ffffff !important;
  border-bottom:
    1px solid var(--ms-line) !important;
}

.drawer-profile strong {
  color: var(--ms-text) !important;
}

.drawer-profile small {
  color: var(--ms-muted) !important;
}

.drawer-profile-link {
  color: var(--ms-text) !important;
}

.drawer-close-button {
  color: var(--ms-text) !important;
  background: var(--ms-soft) !important;
  border:
    1px solid var(--ms-line) !important;
}

.drawer-scroll {
  padding: 10px 12px 24px !important;
  background: #ffffff !important;
}

.nav-group-title {
  padding: 18px 10px 7px !important;
  color: var(--ms-muted) !important;
  font-size: 11px !important;
}

.nav-link {
  min-height: 48px !important;
  margin: 2px 0 !important;
  padding: 10px !important;
  color: var(--ms-text) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 9px !important;
}

.nav-link.active {
  color: var(--ms-blue-dark) !important;
  background: #eaf3fa !important;
  box-shadow:
    inset 3px 0 0 var(--ms-blue) !important;
}

/* Other pages: prevent bottom nav covering content */

.main:not([data-page="dashboard"]) {
  padding-bottom:
    calc(104px + env(safe-area-inset-bottom))
    !important;
}

/* Dark theme */

body.gg-dark,
body.gg-dark .app-frame {
  --ms-page: #121820;
  --ms-card: #1b2430;
  --ms-text: #f3f6fa;
  --ms-muted: #aab4c2;
  --ms-line: #34404f;
  --ms-soft: #25303d;
}

body.gg-dark .microsoft-topbar,
body.gg-dark .microsoft-bottom-nav,
body.gg-dark .drawer,
body.gg-dark .drawer-profile,
body.gg-dark .drawer-scroll,
body.gg-dark .ms-kpi-card,
body.gg-dark .ms-status-strip {
  background: var(--ms-card) !important;
}

body.gg-dark .microsoft-theme-button {
  background: var(--ms-soft) !important;
}

@media (min-width: 760px) {
  .main[data-page="dashboard"] {
    padding-top: 32px !important;
  }

  .ms-kpi-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .ms-command-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 430px) {
  .microsoft-topbar {
    grid-template-columns:
      44px
      minmax(0, 1fr)
      auto !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .microsoft-title strong {
    font-size: 21px;
  }

  .microsoft-theme-button {
    width: 40px !important;
    height: 40px !important;
  }

  .microsoft-profile-button {
    width: 42px;
    height: 42px;
    font-size: 15px;
  }

  .main[data-page="dashboard"] {
    padding:
      22px
      14px
      calc(102px + env(safe-area-inset-bottom))
      !important;
  }

  .ms-command-card {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .ms-command-card h1 {
    font-size: 29px;
  }

  .ms-command-card p {
    font-size: 16px;
  }

  .ms-kpi-card {
    min-height: 146px;
    padding:
      20px
      18px
      18px
      26px;
  }

  .ms-status-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .ms-status-strip button {
    width: 100%;
  }
}

/* GGL-MICROSOFT-DASHBOARD-MODEL-END */

/* GGL-PAGE-HEADER-BOTTOM-CORRECTIVE-START */

:root {
  --app-blue: #176ea6;
  --app-blue-dark: #125b8b;
  --app-page: #f3f6fa;
  --app-surface: #ffffff;
  --app-text: #182234;
  --app-muted: #667283;
  --app-border: #d9e0e8;
  --app-soft-blue: #edf5fa;
}

/* PAGE BACKGROUND */

html,
body,
.app-frame {
  background: var(--app-page) !important;
  color: var(--app-text) !important;
}

.main {
  background: transparent !important;
}

/* WHITE HEADER */

.app-header.microsoft-topbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 60 !important;
  height: 72px !important;
  min-height: 72px !important;

  display: grid !important;
  grid-template-columns:
    46px
    minmax(0, 1fr)
    auto !important;

  align-items: center !important;
  gap: 10px !important;

  padding:
    max(8px, env(safe-area-inset-top))
    14px
    8px !important;

  color: var(--app-text) !important;
  background: #ffffff !important;

  border-bottom:
    1px solid var(--app-border) !important;

  box-shadow:
    0 2px 10px rgba(24, 34, 52, 0.05) !important;
}

.microsoft-menu-button {
  width: 42px !important;
  height: 42px !important;
  color: var(--app-text) !important;
  background: transparent !important;
  border: 0 !important;
}

.microsoft-title strong {
  color: var(--app-text) !important;
  font-size: 22px !important;
  font-weight: 750 !important;
}

.microsoft-theme-button {
  width: 40px !important;
  height: 40px !important;

  color: var(--app-text) !important;
  background: var(--app-soft-blue) !important;

  border:
    1px solid var(--app-border) !important;

  border-radius: 50% !important;
}

.microsoft-profile-button {
  width: 42px !important;
  height: 42px !important;

  color: #ffffff !important;
  background: var(--app-blue-dark) !important;

  border: 0 !important;
  border-radius: 50% !important;
}

/* WHITE BOTTOM NAVIGATION */

.bottom-nav.microsoft-bottom-nav {
  position: fixed !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;

  z-index: 70 !important;

  width: 100% !important;
  max-width: none !important;

  height:
    calc(82px + env(safe-area-inset-bottom))
    !important;

  display: grid !important;

  grid-template-columns:
    repeat(4, minmax(0, 1fr))
    !important;

  padding:
    8px
    8px
    max(8px, env(safe-area-inset-bottom))
    !important;

  transform: none !important;

  background: #ffffff !important;

  border:
    0 !important;

  border-top:
    1px solid var(--app-border) !important;

  border-radius: 0 !important;

  box-shadow:
    0 -3px 12px rgba(24, 34, 52, 0.06) !important;
}

.microsoft-bottom-nav button {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;

  min-width: 0 !important;
  gap: 5px !important;

  color: var(--app-muted) !important;
  background: transparent !important;

  border: 0 !important;
}

.microsoft-bottom-nav button span {
  width: auto !important;
  height: auto !important;

  margin: 0 !important;

  color: inherit !important;
  background: transparent !important;

  border: 0 !important;
  border-radius: 0 !important;

  box-shadow: none !important;
}

.microsoft-bottom-nav button svg {
  width: 24px !important;
  height: 24px !important;
}

.microsoft-bottom-nav button small {
  color: inherit !important;
  font-size: 12px !important;
}

.microsoft-bottom-nav button.active {
  color: var(--app-blue) !important;
  font-weight: 800 !important;
}

/* CONTENT CLEARANCE ABOVE BOTTOM NAV */

.main {
  padding-bottom:
    calc(108px + env(safe-area-inset-bottom))
    !important;
}

/* CLEAN CARDS */

.card,
.data-card,
.workspace-card,
.attendance-security-card,
.attendance-rules,
.face-enrollment-card {
  background: var(--app-surface) !important;

  border:
    1px solid var(--app-border) !important;

  box-shadow:
    0 4px 14px rgba(24, 34, 52, 0.06) !important;
}

/* FACE ENROLLMENT BUTTON OVERLAP FIX */

.face-enrollment-card {
  display: flex !important;
  flex-direction: column !important;

  gap: 14px !important;

  padding: 22px !important;

  overflow: hidden !important;
}

.face-enrollment-card .card-title-row {
  display: grid !important;

  grid-template-columns:
    minmax(0, 1fr)
    auto !important;

  align-items: start !important;
  gap: 12px !important;
}

.face-enrollment-card .alert {
  width: 100% !important;
  margin: 0 !important;

  line-height: 1.45 !important;
}

.face-enrollment-card > a.btn {
  position: static !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 100% !important;
  min-height: 52px !important;

  margin: 0 !important;
  padding: 13px 14px !important;

  border-radius: 12px !important;

  line-height: 1.3 !important;
  text-align: center !important;
  text-decoration: none !important;

  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.face-enrollment-card > a.btn-primary {
  color: #ffffff !important;

  background:
    linear-gradient(
      135deg,
      var(--app-blue-dark),
      var(--app-blue)
    ) !important;

  border: 0 !important;
}

.face-enrollment-card > a.btn-secondary {
  color: var(--app-blue-dark) !important;

  background: #ffffff !important;

  border:
    1px solid var(--app-blue) !important;

  box-shadow: none !important;
}

/* DRAWER PROFILE HEADER REPAIR */

.drawer {
  width: min(88vw, 360px) !important;
  background: #ffffff !important;
}

.drawer-profile {
  display: grid !important;

  grid-template-columns:
    minmax(0, 1fr)
    42px !important;

  align-items: center !important;
  gap: 10px !important;

  min-height: 104px !important;

  padding:
    max(18px, env(safe-area-inset-top))
    16px
    16px !important;

  background: #ffffff !important;

  border-bottom:
    1px solid var(--app-border) !important;
}

.drawer-profile-link {
  display: grid !important;

  grid-template-columns:
    54px
    minmax(0, 1fr)
    18px !important;

  align-items: center !important;
  gap: 12px !important;

  width: 100% !important;
  min-width: 0 !important;

  padding: 0 !important;

  color: var(--app-text) !important;
  background: transparent !important;

  border: 0 !important;

  text-align: left !important;
}

.drawer-avatar {
  width: 54px !important;
  height: 54px !important;

  border:
    1px solid var(--app-border) !important;

  border-radius: 50% !important;
}

.drawer-profile-link > div:nth-child(2) {
  min-width: 0 !important;
}

.drawer-profile strong {
  display: block !important;

  overflow: hidden !important;

  color: var(--app-text) !important;

  font-size: 17px !important;
  line-height: 1.2 !important;

  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

.drawer-profile small {
  display: block !important;

  margin-top: 4px !important;

  overflow: hidden !important;

  color: var(--app-muted) !important;

  font-size: 12px !important;

  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

.drawer-profile-link b {
  color: var(--app-muted) !important;
}

.drawer-close-button {
  position: static !important;

  width: 40px !important;
  height: 40px !important;

  display: grid !important;
  place-items: center !important;

  padding: 0 !important;

  color: var(--app-text) !important;
  background: var(--app-soft-blue) !important;

  border:
    1px solid var(--app-border) !important;

  border-radius: 50% !important;

  font-size: 22px !important;
}

/* DRAWER MENU COLOURS */

.drawer-scroll {
  background: #ffffff !important;
}

.nav-group-title {
  color: var(--app-muted) !important;
}

.nav-link {
  color: var(--app-text) !important;
  background: transparent !important;
}

.nav-link.active {
  color: var(--app-blue-dark) !important;
  background: var(--app-soft-blue) !important;

  box-shadow:
    inset 3px 0 0 var(--app-blue) !important;
}

/* MOBILE */

@media (max-width: 430px) {
  .face-enrollment-card {
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding: 20px !important;
  }

  .face-enrollment-card .card-title-row {
    grid-template-columns: 1fr !important;
  }

  .face-enrollment-card .status {
    justify-self: start !important;
  }

  .face-enrollment-card > a.btn {
    min-height: 54px !important;
  }

  .attendance-rules {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
}

/* DARK MODE */

body.gg-dark {
  --app-page: #131a23;
  --app-surface: #1c2632;
  --app-text: #f3f6fa;
  --app-muted: #aab4c2;
  --app-border: #34404f;
  --app-soft-blue: #263442;
}

body.gg-dark .microsoft-topbar,
body.gg-dark .microsoft-bottom-nav,
body.gg-dark .drawer,
body.gg-dark .drawer-profile,
body.gg-dark .drawer-scroll,
body.gg-dark .card,
body.gg-dark .data-card,
body.gg-dark .workspace-card,
body.gg-dark .attendance-security-card,
body.gg-dark .attendance-rules,
body.gg-dark .face-enrollment-card {
  background: var(--app-surface) !important;
}

/* GGL-PAGE-HEADER-BOTTOM-CORRECTIVE-END */

/* GGL-GLOBAL-MICROSOFT-DESIGN-START */

:root {
  --fluent-blue: #176ea6;
  --fluent-blue-dark: #115b8d;
  --fluent-blue-soft: #eaf3fa;
  --fluent-green: #11875f;

  --fluent-bg: #f3f6fa;
  --fluent-surface: #ffffff;
  --fluent-surface-alt: #f7f9fc;

  --fluent-text: #182234;
  --fluent-muted: #687486;
  --fluent-border: #d8dfe8;

  --fluent-danger: #c42b1c;
  --fluent-warning: #986f0b;
  --fluent-success: #107c10;

  --fluent-radius-sm: 8px;
  --fluent-radius: 12px;
  --fluent-radius-lg: 16px;

  --fluent-shadow:
    0 2px 8px rgba(24, 34, 52, 0.06);
}

/* Global document */

html,
body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;

  color: var(--fluent-text) !important;
  background: var(--fluent-bg) !important;

  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif !important;
}

body,
button,
input,
textarea,
select {
  font-family: inherit !important;
}

.app-frame,
.main,
.login-page,
.registration-page {
  color: var(--fluent-text) !important;
  background: var(--fluent-bg) !important;
}

/* Global page workspace */

.main {
  width: 100% !important;
  max-width: 980px !important;

  margin: 0 auto !important;

  padding:
    24px
    20px
    calc(108px + env(safe-area-inset-bottom))
    !important;

  overflow-x: hidden !important;
}

/* Page heading */

.page-head {
  display: grid !important;

  grid-template-columns:
    minmax(0, 1fr)
    auto !important;

  align-items: start !important;
  gap: 18px !important;

  margin:
    4px
    0
    24px !important;
}

.page-head > div:first-child {
  min-width: 0 !important;
}

.page-head .eyebrow {
  display: block !important;

  margin-bottom: 7px !important;

  color: var(--fluent-blue-dark) !important;

  font-size: 12px !important;
  font-weight: 750 !important;
  letter-spacing: 0.11em !important;
}

.page-head h1 {
  margin: 0 !important;

  color: var(--fluent-text) !important;

  font-size: clamp(30px, 6vw, 42px) !important;
  font-weight: 750 !important;
  line-height: 1.12 !important;

  overflow-wrap: anywhere !important;
}

.page-head p {
  max-width: 620px;

  margin:
    9px
    0
    0 !important;

  color: var(--fluent-muted) !important;

  font-size: 16px !important;
  line-height: 1.5 !important;
}

.page-head .actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

/* Cards */

.card,
.data-card,
.workspace-card,
.workflow-card,
.control-card,
.readiness-card,
.attendance-security-card,
.attendance-rules,
.face-enrollment-card,
.registration-card,
.login-card,
.splash-card,
.report-card,
.quick-card,
.task-card,
.checkin-card {
  min-width: 0 !important;

  color: var(--fluent-text) !important;
  background: var(--fluent-surface) !important;

  border:
    1px solid var(--fluent-border) !important;

  border-radius:
    var(--fluent-radius-lg) !important;

  box-shadow:
    var(--fluent-shadow) !important;
}

.card,
.workspace-card,
.workflow-card,
.control-card,
.attendance-security-card,
.attendance-rules,
.face-enrollment-card {
  padding: 22px !important;
}

.card-title,
.workspace-card h2,
.workflow-card h2,
.control-card h2,
.attendance-rules h3,
.section-title h2 {
  color: var(--fluent-text) !important;
}

.card-title {
  margin: 0 !important;

  font-size: 24px !important;
  line-height: 1.2 !important;
}

.card-subtitle,
.workspace-card p,
.workflow-card p,
.control-card p {
  color: var(--fluent-muted) !important;
  line-height: 1.5 !important;
}

/* Hero used by Payments, Draw and other pages */

.hero {
  position: relative !important;

  overflow: hidden !important;

  margin-bottom: 22px !important;
  padding: 26px !important;

  color: #ffffff !important;

  background:
    linear-gradient(
      135deg,
      var(--fluent-blue-dark) 0%,
      #1688c9 56%,
      #169b80 100%
    ) !important;

  border: 0 !important;
  border-radius: 20px !important;

  box-shadow:
    0 5px 16px rgba(17, 91, 141, 0.16)
    !important;
}

.hero::after {
  content: "";

  position: absolute;
  right: -80px;
  bottom: -120px;

  width: 250px;
  height: 250px;

  border-radius: 50%;

  background:
    rgba(255, 255, 255, 0.07);
}

.hero small,
.hero h1,
.hero p {
  position: relative;
  z-index: 1;
}

.hero small {
  display: block !important;

  color:
    rgba(255, 255, 255, 0.88) !important;

  font-size: 12px !important;
  font-weight: 750 !important;
  letter-spacing: 0.1em !important;
}

.hero h1 {
  margin:
    11px
    0
    10px !important;

  color: #ffffff !important;

  font-size: clamp(30px, 7vw, 42px) !important;
  line-height: 1.12 !important;
}

.hero p {
  max-width: 650px;

  margin: 0 !important;

  color:
    rgba(255, 255, 255, 0.92) !important;

  font-size: 17px !important;
  line-height: 1.55 !important;
}

/* Buttons */

.btn,
.pill-button,
.report-card,
.module-tiles button,
.workspace-links button,
.action-row {
  font: inherit !important;
}

.btn,
.pill-button {
  display: inline-flex !important;

  align-items: center !important;
  justify-content: center !important;

  min-height: 44px !important;

  padding:
    10px
    16px !important;

  border-radius:
    var(--fluent-radius-sm) !important;

  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;

  text-align: center !important;
  text-decoration: none !important;

  white-space: normal !important;
}

.btn-primary,
.pill-button {
  color: #ffffff !important;

  background: var(--fluent-blue) !important;

  border:
    1px solid var(--fluent-blue) !important;

  box-shadow: none !important;
}

.btn-primary:hover,
.pill-button:hover {
  background: var(--fluent-blue-dark) !important;
}

.btn-secondary {
  color: var(--fluent-text) !important;

  background: #ffffff !important;

  border:
    1px solid var(--fluent-border) !important;

  box-shadow: none !important;
}

.btn-danger {
  color: #ffffff !important;

  background: var(--fluent-danger) !important;

  border:
    1px solid var(--fluent-danger) !important;
}

.btn-block {
  width: 100% !important;
}

/* Inputs and forms */

.field {
  min-width: 0 !important;
  margin-bottom: 0 !important;
}

.field label {
  display: block !important;

  margin-bottom: 7px !important;

  color: var(--fluent-text) !important;

  font-size: 14px !important;
  font-weight: 650 !important;
}

.input,
.textarea,
.select,
input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  width: 100% !important;
  min-width: 0 !important;

  color: var(--fluent-text) !important;
  background: #ffffff !important;

  border:
    1px solid #bfc8d4 !important;

  border-radius:
    var(--fluent-radius-sm) !important;

  box-shadow: none !important;

  outline: none !important;
}

.input,
.select,
input:not([type="checkbox"]):not([type="radio"]),
select {
  min-height: 48px !important;
  padding:
    11px
    13px !important;
}

.textarea,
textarea {
  padding:
    11px
    13px !important;

  line-height: 1.5 !important;

  resize: vertical;
}

.input:focus,
.textarea:focus,
.select:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--fluent-blue) !important;

  box-shadow:
    0 0 0 2px rgba(23, 110, 166, 0.18)
    !important;
}

.form-grid {
  display: grid !important;

  grid-template-columns:
    repeat(2, minmax(0, 1fr)) !important;

  gap: 16px !important;
}

.form-grid .full,
.full {
  grid-column: 1 / -1 !important;
}

.toolbar {
  display: grid !important;

  grid-template-columns:
    minmax(0, 1fr)
    auto !important;

  align-items: end !important;
  gap: 10px !important;

  margin-bottom: 18px !important;
}

/* Data lists */

.data-list {
  display: grid !important;
  gap: 14px !important;
}

.data-card {
  width: 100% !important;

  padding: 18px !important;

  overflow: hidden !important;
}

.data-card-head {
  display: grid !important;

  grid-template-columns:
    minmax(0, 1fr)
    auto !important;

  align-items: start !important;
  gap: 12px !important;
}

.data-card-title {
  min-width: 0 !important;
}

.data-card h3 {
  margin: 0 !important;

  color: var(--fluent-text) !important;

  font-size: 21px !important;
  line-height: 1.2 !important;

  overflow-wrap: anywhere !important;
}

.data-card small {
  color: var(--fluent-muted) !important;

  overflow-wrap: anywhere !important;
}

.data-meta {
  display: grid !important;

  grid-template-columns:
    repeat(2, minmax(0, 1fr)) !important;

  gap: 10px !important;

  margin-top: 15px !important;
}

.data-meta > div {
  min-width: 0 !important;

  padding: 12px !important;

  background: var(--fluent-surface-alt) !important;

  border:
    1px solid #edf0f4 !important;

  border-radius:
    var(--fluent-radius) !important;
}

.data-meta span,
.data-meta strong {
  display: block !important;
  overflow-wrap: anywhere !important;
}

.data-meta span {
  color: var(--fluent-muted) !important;
  font-size: 12px !important;
}

.data-meta strong {
  margin-top: 4px !important;

  color: var(--fluent-text) !important;

  font-size: 15px !important;
}

/* Status */

.status,
.status-badge {
  display: inline-flex !important;

  align-items: center !important;
  justify-content: center !important;

  max-width: 100% !important;

  padding:
    6px
    10px !important;

  color: var(--fluent-success) !important;
  background: #dff6dd !important;

  border-radius: 999px !important;

  font-size: 11px !important;
  font-weight: 750 !important;

  white-space: normal !important;
  text-align: center !important;
}

.status.warning {
  color: var(--fluent-warning) !important;
  background: #fff4ce !important;
}

.status.danger {
  color: var(--fluent-danger) !important;
  background: #fde7e9 !important;
}

/* Payments stepper */

.stepper {
  display: grid !important;

  grid-template-columns:
    auto
    minmax(20px, 1fr)
    auto
    minmax(20px, 1fr)
    auto !important;

  align-items: center !important;
  gap: 10px !important;

  margin:
    0
    0
    20px !important;

  padding:
    14px
    16px !important;

  background: var(--fluent-surface) !important;

  border:
    1px solid var(--fluent-border) !important;

  border-radius:
    var(--fluent-radius-lg) !important;

  box-shadow:
    var(--fluent-shadow) !important;
}

.stepper .step {
  display: flex !important;

  align-items: center !important;
  gap: 7px !important;

  min-width: 0 !important;

  color: var(--fluent-muted) !important;
}

.stepper .step b {
  width: 30px !important;
  height: 30px !important;

  display: grid !important;
  place-items: center !important;

  flex: none !important;

  color: var(--fluent-muted) !important;
  background: var(--fluent-surface-alt) !important;

  border:
    1px solid var(--fluent-border) !important;

  border-radius: 50% !important;

  font-size: 13px !important;
}

.stepper .step span {
  font-size: 13px !important;
  font-weight: 650 !important;

  white-space: nowrap !important;
}

.stepper .step.active {
  color: var(--fluent-blue-dark) !important;
}

.stepper .step.active b {
  color: #ffffff !important;
  background: var(--fluent-blue) !important;
  border-color: var(--fluent-blue) !important;
}

.stepper > i {
  display: block !important;

  width: 100% !important;
  height: 1px !important;

  background: var(--fluent-border) !important;
}

/* Control tabs */

.control-tabs {
  display: flex !important;

  gap: 4px !important;

  margin-bottom: 18px !important;
  padding: 4px !important;

  overflow-x: auto !important;

  background: #e9eef5 !important;

  border-radius:
    var(--fluent-radius) !important;
}

.control-tabs button {
  min-height: 40px !important;

  padding:
    9px
    14px !important;

  color: var(--fluent-muted) !important;
  background: transparent !important;

  border: 0 !important;
  border-radius:
    var(--fluent-radius-sm) !important;

  font-weight: 650 !important;

  white-space: nowrap !important;
}

.control-tabs button.active {
  color: var(--fluent-blue-dark) !important;
  background: #ffffff !important;

  box-shadow:
    0 1px 4px rgba(24, 34, 52, 0.12)
    !important;
}

/* Control cards */

.control-grid {
  display: grid !important;
  gap: 14px !important;
}

.control-card-head {
  display: grid !important;

  grid-template-columns:
    38px
    minmax(0, 1fr)
    auto !important;

  align-items: start !important;
  gap: 12px !important;
}

.control-card-head > span:first-child {
  width: 38px !important;
  height: 38px !important;

  display: grid !important;
  place-items: center !important;

  color: var(--fluent-blue-dark) !important;
  background: var(--fluent-blue-soft) !important;

  border-radius:
    var(--fluent-radius) !important;

  font-weight: 750 !important;
}

/* Attendance */

.attendance-security-card,
.attendance-rules {
  margin:
    0
    0
    18px !important;
}

.attendance-security-card.is-working,
.attendance-security-card.is-paused,
.attendance-security-card.is-closed {
  background: var(--fluent-surface) !important;
}

.attendance-state-head {
  display: grid !important;

  grid-template-columns:
    54px
    minmax(0, 1fr) !important;

  align-items: center !important;
  gap: 14px !important;
}

.attendance-state-icon {
  width: 54px !important;
  height: 54px !important;

  display: grid !important;
  place-items: center !important;

  color: #ffffff !important;
  background: var(--fluent-blue) !important;

  border-radius:
    var(--fluent-radius) !important;

  box-shadow: none !important;
}

.attendance-state-head h2 {
  margin:
    4px
    0 !important;

  color: var(--fluent-text) !important;

  font-size: 26px !important;
}

.attendance-state-head p {
  color: var(--fluent-muted) !important;
}

.attendance-metrics {
  display: grid !important;

  grid-template-columns:
    repeat(2, minmax(0, 1fr)) !important;

  gap: 10px !important;

  margin-top: 18px !important;
}

.attendance-metrics > div {
  padding: 12px !important;

  background: var(--fluent-surface-alt) !important;

  border:
    1px solid #edf0f4 !important;

  border-radius:
    var(--fluent-radius) !important;
}

.attendance-actions-grid {
  display: grid !important;

  grid-template-columns:
    repeat(2, minmax(0, 1fr)) !important;

  gap: 10px !important;
}

/* Face Enrollment: final hard override */

section.card.face-enrollment-card {
  display: grid !important;

  grid-template-columns:
    minmax(0, 1fr) !important;

  gap: 14px !important;

  width: 100% !important;

  margin:
    0
    0
    18px !important;

  padding: 22px !important;

  overflow: visible !important;
}

section.card.face-enrollment-card .card-title-row {
  display: grid !important;

  grid-template-columns:
    minmax(0, 1fr)
    auto !important;

  align-items: start !important;
  gap: 12px !important;
}

section.card.face-enrollment-card .alert {
  position: static !important;

  display: block !important;

  width: 100% !important;

  margin: 0 !important;
  padding: 14px !important;

  color: var(--fluent-text) !important;
  background: #eef5fc !important;

  border-radius:
    var(--fluent-radius) !important;

  line-height: 1.45 !important;
}

section.card.face-enrollment-card > a.btn,
section.card.face-enrollment-card > a.btn.btn-block {
  position: static !important;

  display: flex !important;

  width: 100% !important;
  max-width: 100% !important;
  min-height: 48px !important;

  margin: 0 !important;
  padding:
    11px
    14px !important;

  transform: none !important;

  line-height: 1.35 !important;

  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

section.card.face-enrollment-card >
a.btn.btn-primary {
  color: #ffffff !important;
  background: var(--fluent-blue) !important;
}

section.card.face-enrollment-card >
a.btn.btn-secondary {
  color: var(--fluent-blue-dark) !important;
  background: #ffffff !important;

  border:
    1px solid var(--fluent-blue) !important;
}

/* Modules and workspace links */

.module-tiles {
  display: grid !important;

  grid-template-columns:
    repeat(2, minmax(0, 1fr)) !important;

  gap: 12px !important;
}

.module-tiles button,
.workspace-links button,
.action-row {
  width: 100% !important;

  padding: 15px !important;

  color: var(--fluent-text) !important;
  background: var(--fluent-surface) !important;

  border:
    1px solid var(--fluent-border) !important;

  border-radius:
    var(--fluent-radius) !important;

  box-shadow: none !important;

  text-align: left !important;
}

/* Login and registration */

.login-page,
.registration-page {
  min-height: 100vh !important;

  display: grid !important;
  place-items: center !important;

  padding: 22px !important;

  background: var(--fluent-bg) !important;
}

.login-card,
.registration-card {
  width: min(100%, 560px) !important;

  padding: 26px !important;

  border-radius:
    var(--fluent-radius-lg) !important;
}

.registration-card {
  max-width: 720px !important;
}

.logo-square,
.splash-logo-box {
  border-radius:
    var(--fluent-radius) !important;
}

/* Modals */

.modal {
  color: var(--fluent-text) !important;
  background: var(--fluent-surface) !important;

  border-radius:
    20px
    20px
    0
    0 !important;

  box-shadow:
    0 -10px 30px rgba(24, 34, 52, 0.16)
    !important;
}

.round-close {
  color: var(--fluent-text) !important;
  background: var(--fluent-surface-alt) !important;

  border:
    1px solid var(--fluent-border) !important;
}

/* Sections */

.section-title,
.section-heading {
  display: flex !important;

  align-items: center !important;
  justify-content: space-between !important;

  gap: 12px !important;

  margin:
    24px
    0
    12px !important;
}

.section-title h2,
.section-heading h2 {
  margin: 0 !important;

  color: var(--fluent-text) !important;

  font-size: 23px !important;
}

/* Desktop */

@media (min-width: 760px) {
  .data-list {
    grid-template-columns:
      repeat(2, minmax(0, 1fr)) !important;
  }

  .control-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr)) !important;
  }

  .main {
    padding-top: 30px !important;
  }
}

/* Mobile */

@media (max-width: 520px) {
  .main {
    padding:
      20px
      14px
      calc(104px + env(safe-area-inset-bottom))
      !important;
  }

  .page-head {
    grid-template-columns:
      minmax(0, 1fr) !important;
  }

  .page-head .actions {
    width: 100% !important;
  }

  .page-head .actions .btn {
    width: 100% !important;
  }

  .page-head h1 {
    font-size: 32px !important;
  }

  .toolbar {
    grid-template-columns:
      minmax(0, 1fr) !important;
  }

  .toolbar .btn {
    width: 100% !important;
  }

  .form-grid {
    grid-template-columns:
      minmax(0, 1fr) !important;
  }

  .data-list {
    grid-template-columns:
      minmax(0, 1fr) !important;
  }

  .data-meta {
    grid-template-columns:
      repeat(2, minmax(0, 1fr)) !important;
  }

  .stepper {
    gap: 6px !important;
    padding:
      12px
      10px !important;
  }

  .stepper .step {
    justify-content: center !important;
  }

  .stepper .step span {
    display: none !important;
  }

  .stepper .step b {
    width: 32px !important;
    height: 32px !important;
  }

  .control-card-head {
    grid-template-columns:
      38px
      minmax(0, 1fr) !important;
  }

  .control-card-head > .status {
    grid-column: 2 !important;
    justify-self: start !important;
  }

  .module-tiles {
    grid-template-columns:
      minmax(0, 1fr) !important;
  }

  section.card.face-enrollment-card {
    padding: 18px !important;
  }

  section.card.face-enrollment-card
  .card-title-row {
    grid-template-columns:
      minmax(0, 1fr) !important;
  }

  section.card.face-enrollment-card
  .status {
    justify-self: start !important;
  }

  .attendance-actions-grid {
    grid-template-columns:
      minmax(0, 1fr) !important;
  }
}

/* Dark mode */

body.gg-dark {
  --fluent-bg: #111820;
  --fluent-surface: #1b2531;
  --fluent-surface-alt: #25313e;

  --fluent-text: #f3f6fa;
  --fluent-muted: #adb7c5;
  --fluent-border: #364351;
}

body.gg-dark .card,
body.gg-dark .data-card,
body.gg-dark .workspace-card,
body.gg-dark .workflow-card,
body.gg-dark .control-card,
body.gg-dark .attendance-security-card,
body.gg-dark .attendance-rules,
body.gg-dark .face-enrollment-card,
body.gg-dark .login-card,
body.gg-dark .registration-card,
body.gg-dark .stepper {
  background: var(--fluent-surface) !important;
}

body.gg-dark .input,
body.gg-dark .textarea,
body.gg-dark .select,
body.gg-dark input,
body.gg-dark textarea,
body.gg-dark select {
  color: var(--fluent-text) !important;
  background: var(--fluent-surface-alt) !important;
}

/* GGL-GLOBAL-MICROSOFT-DESIGN-END */

/* GGL-V30-RBAC-CONTROL-CENTER-START */

.rbac-summary {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.rbac-user-grid,
.rbac-role-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
}

.rbac-user-card,
.rbac-role-card {
  min-width: 0;
  padding: 18px;
  background: var(--fluent-surface,#fff);
  border: 1px solid var(--fluent-border,#d8dfe8);
  border-radius: 14px;
}

.rbac-user-head,
.rbac-role-head {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 12px;
  align-items: start;
}

.rbac-user-head span:first-child,
.rbac-role-head span:first-child {
  color: var(--fluent-blue-dark,#115b8d);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.rbac-user-head h3,
.rbac-role-head h3 {
  margin: 5px 0;
  color: var(--fluent-text,#182234);
  font-size: 20px;
}

.rbac-user-head p,
.rbac-role-head p {
  margin: 0;
  color: var(--fluent-muted,#687486);
  line-height: 1.45;
}

.rbac-user-meta {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px;
  margin: 16px 0;
}

.rbac-user-meta > div {
  min-width: 0;
  padding: 10px;
  background: var(--fluent-surface-alt,#f7f9fc);
  border-radius: 9px;
}

.rbac-user-meta span,
.rbac-user-meta strong {
  display: block;
  overflow-wrap: anywhere;
}

.rbac-user-meta span {
  color: var(--fluent-muted,#687486);
  font-size: 11px;
}

.rbac-user-meta strong {
  margin-top: 4px;
  font-size: 14px;
}

.rbac-menu-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0;
}

.rbac-menu-chips span {
  padding: 6px 9px;
  color: var(--fluent-blue-dark,#115b8d);
  background: var(--fluent-blue-soft,#eaf3fa);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.protected-admin {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  color: #107c10;
  background: #dff6dd;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 750;
}

.rbac-check-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px;
  margin-bottom: 24px;
}

.rbac-check-grid > label {
  display: grid;
  grid-template-columns: 22px minmax(0,1fr);
  gap: 9px;
  align-items: start;
  padding: 11px;
  border: 1px solid var(--fluent-border,#d8dfe8);
  border-radius: 10px;
}

.rbac-check-grid strong,
.rbac-check-grid small {
  display: block;
}

.rbac-check-grid small {
  margin-top: 3px;
  color: var(--fluent-muted,#687486);
}

.rbac-action-matrix {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.rbac-action-matrix section {
  display: grid;
  grid-template-columns: 150px repeat(8,minmax(72px,1fr));
  gap: 8px;
  align-items: center;
  padding: 12px;
  overflow-x: auto;
  border: 1px solid var(--fluent-border,#d8dfe8);
  border-radius: 10px;
}

.rbac-action-matrix h4 {
  margin: 0;
}

.rbac-action-matrix label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  text-transform: capitalize;
}

@media(max-width:760px) {
  .rbac-summary {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .rbac-user-grid,
  .rbac-role-grid {
    grid-template-columns: minmax(0,1fr);
  }

  .rbac-check-grid {
    grid-template-columns: minmax(0,1fr);
  }

  .rbac-action-matrix section {
    grid-template-columns: 120px repeat(8,80px);
  }
}

/* GGL-V30-RBAC-CONTROL-CENTER-END */

/* ==========================================================
   GREEN GOLD LIFE MOBILE CORRECTION 1.0.1
   ========================================================== */

.app-header .header-user,
.app-header .header-user > div {
    min-width: 0;
    overflow: hidden;
}

.header-user strong {
    max-width: 100%;
}

.filter-tabs {
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

.filter-tabs button {
    flex: 0 0 auto;
    min-height: 46px;
}

@media (max-width: 600px) {
    .app-header {
        height: 94px;
        padding-left: 12px;
        padding-right: 12px;
        gap: 8px;
    }

    .header-icon {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
        padding: 6px;
    }

    .header-user {
        gap: 8px;
    }

    .header-user .avatar {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
    }

    .header-user strong {
        font-size: 18px;
        line-height: 1.15;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .zone-pill {
        display: block;
        max-width: 100%;
        padding: 4px 8px;
        font-size: 10px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .main {
        padding-left: 13px;
        padding-right: 13px;
    }

    .page-head {
        display: block;
        margin-top: 8px;
        margin-bottom: 18px;
    }

    .page-head h1 {
        max-width: 100%;
        margin: 6px 0 10px;
        font-size: clamp(27px, 9vw, 36px);
        line-height: 1.08;
        overflow-wrap: anywhere;
    }

    .page-head p {
        font-size: 15px;
        line-height: 1.45;
    }

    .filter-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 9px;
        overflow: visible;
        padding: 0;
        margin-bottom: 18px;
    }

    .filter-tabs button {
        width: 100%;
        min-width: 0;
        padding: 11px 7px;
        border-radius: 15px;
        white-space: normal;
        text-align: center;
    }

    .registration-request .data-meta {
        grid-template-columns: 1fr;
    }

    .registration-request .card-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .registration-request .card-actions .btn {
        width: 100%;
    }

    .toast {
        right: 16px;
        left: 16px;
        width: auto;
        max-width: none;
        bottom: calc(
            102px + env(safe-area-inset-bottom)
        );
    }

    .login-card,
    .premium-login {
        margin-bottom: max(
            28px,
            env(safe-area-inset-bottom)
        );
    }
}

/* =========================================================
   GREEN GOLD LIFE LOGIN EXPERIENCE
   Scope: login page only
   ========================================================= */

.ggl-login-page{
  --login-green:#086b55;
  --login-green-dark:#054c3c;
  --login-mint:#16b878;
  --login-blue:#1769aa;
  --login-gold:#d5a62d;
  --login-ink:#17231f;
  --login-muted:#6d7d77;
  --login-line:#dce8e3;

  position:relative;
  min-height:100vh;
  overflow:hidden;
  display:grid;
  place-items:center;
  padding:
    max(24px,env(safe-area-inset-top))
    max(18px,env(safe-area-inset-right))
    max(24px,env(safe-area-inset-bottom))
    max(18px,env(safe-area-inset-left));
  background:
    linear-gradient(135deg,#e9f7f2 0%,#f5f9ff 55%,#eef4ff 100%);
  color:var(--login-ink);
}

.ggl-login-background{
  position:absolute;
  inset:0;
  pointer-events:none;
  overflow:hidden;
}

.ggl-orb{
  position:absolute;
  border-radius:50%;
  filter:blur(2px);
  opacity:.58;
}

.ggl-orb-one{
  width:460px;
  height:460px;
  top:-220px;
  left:-160px;
  background:rgba(12,169,112,.22);
}

.ggl-orb-two{
  width:380px;
  height:380px;
  right:-170px;
  bottom:-170px;
  background:rgba(37,123,200,.18);
}

.ggl-orb-three{
  width:170px;
  height:170px;
  right:16%;
  top:10%;
  background:rgba(224,178,60,.12);
}

.ggl-login-shell{
  position:relative;
  z-index:1;
  width:min(1060px,100%);
  min-height:680px;
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(390px,.95fr);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.9);
  border-radius:34px;
  background:rgba(255,255,255,.93);
  box-shadow:
    0 35px 100px rgba(16,61,50,.18),
    0 3px 12px rgba(13,54,44,.08);
  backdrop-filter:blur(20px);
}

.ggl-login-visual{
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height:680px;
  padding:42px;
  color:white;
  background:
    radial-gradient(circle at 85% 12%,rgba(255,255,255,.18),transparent 24%),
    linear-gradient(145deg,#064d3d 0%,#08715a 48%,#16996f 100%);
}

.ggl-login-visual::before{
  content:"";
  position:absolute;
  width:440px;
  height:440px;
  right:-220px;
  bottom:-210px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:50%;
  box-shadow:
    0 0 0 55px rgba(255,255,255,.035),
    0 0 0 110px rgba(255,255,255,.025);
}

.ggl-login-visual::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:7px;
  background:linear-gradient(
    90deg,
    var(--login-gold),
    #f0d078,
    var(--login-mint)
  );
}

.ggl-login-visual-top{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  gap:15px;
}

.ggl-brand-emblem{
  width:68px;
  height:68px;
  flex:0 0 68px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius:20px;
  background:white;
  box-shadow:0 10px 28px rgba(0,0,0,.18);
}

.ggl-brand-emblem img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:5px;
}

.ggl-brand-copy strong,
.ggl-brand-copy span{
  display:block;
}

.ggl-brand-copy strong{
  font-size:19px;
  letter-spacing:.08em;
}

.ggl-brand-copy span{
  margin-top:5px;
  font-size:13px;
  opacity:.76;
}

.ggl-visual-message{
  position:relative;
  z-index:1;
  max-width:520px;
  margin:auto 0;
}

.ggl-visual-eyebrow{
  display:inline-block;
  margin-bottom:18px;
  color:#d9f9ed;
  font-size:12px;
  font-weight:900;
  letter-spacing:.15em;
}

.ggl-visual-message h1{
  max-width:500px;
  margin:0;
  font-size:clamp(38px,4.1vw,59px);
  line-height:1.08;
  letter-spacing:-.035em;
}

.ggl-visual-message p{
  max-width:480px;
  margin:22px 0 0;
  color:rgba(255,255,255,.76);
  font-size:16px;
  line-height:1.75;
}

.ggl-visual-features{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:9px;
}

.ggl-visual-features div{
  min-height:87px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:14px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:18px;
  background:rgba(255,255,255,.075);
}

.ggl-visual-features span{
  width:25px;
  height:25px;
  display:grid;
  place-items:center;
  margin-bottom:9px;
  border-radius:50%;
  background:rgba(255,255,255,.15);
  font-weight:900;
}

.ggl-visual-features small{
  font-size:12px;
  font-weight:700;
  line-height:1.4;
}

.ggl-login-panel{
  position:relative;
  padding:40px 44px 30px;
  overflow:auto;
}

.ggl-language-switch{
  display:flex;
  justify-content:flex-end;
  gap:5px;
  margin-bottom:22px;
}

.ggl-language-switch button{
  min-width:82px;
  height:38px;
  padding:0 14px;
  border:1px solid var(--login-line);
  border-radius:11px;
  background:#f6f9f8;
  color:#53645e;
  font-size:13px;
  font-weight:800;
}

.ggl-language-switch button.active{
  border-color:var(--login-green);
  background:var(--login-green);
  color:white;
  box-shadow:0 7px 17px rgba(8,107,85,.17);
}

.ggl-mobile-brand{
  display:none;
}

.ggl-login-heading{
  margin-bottom:25px;
}

.ggl-login-heading>span{
  color:var(--login-green);
  font-size:11px;
  font-weight:900;
  letter-spacing:.15em;
}

.ggl-login-heading h2{
  margin:8px 0 8px;
  font-size:35px;
  line-height:1.15;
  letter-spacing:-.025em;
}

.ggl-login-heading p{
  max-width:460px;
  margin:0;
  color:var(--login-muted);
  font-size:14px;
  line-height:1.6;
}

.ggl-login-error,
.ggl-login-hint{
  margin-bottom:16px;
  padding:12px 14px;
  border-radius:13px;
  font-size:13px;
  line-height:1.5;
}

.ggl-login-hint{
  border:1px solid #cfe1f4;
  background:#edf6ff;
  color:#235c8d;
}

.ggl-login-field{
  margin-bottom:17px;
}

.ggl-login-field label{
  margin-bottom:8px;
  color:#384a44;
  font-size:13px;
  font-weight:800;
}

.ggl-input-shell{
  position:relative;
  display:flex;
  align-items:center;
}

.ggl-input-shell .input{
  height:54px;
  padding:0 16px 0 50px;
  border:1px solid #ccdcd6;
  border-radius:15px;
  background:#fbfdfc;
  color:var(--login-ink);
  font-size:15px;
  outline:none;
  transition:
    border-color .18s,
    box-shadow .18s,
    background .18s;
}

.ggl-input-shell.password .input{
  padding-right:80px;
}

.ggl-input-shell .input:focus{
  border-color:var(--login-green);
  background:white;
  box-shadow:0 0 0 4px rgba(8,107,85,.1);
}

.ggl-input-icon{
  position:absolute;
  z-index:2;
  left:16px;
  width:21px;
  height:21px;
  color:#6e817a;
}

.ggl-input-icon svg{
  width:100%;
  height:100%;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.ggl-password-toggle{
  position:absolute;
  z-index:3;
  right:9px;
  min-width:58px;
  height:36px;
  border:0;
  border-radius:10px;
  background:#edf4f1;
  color:var(--login-green);
  font-size:12px;
  font-weight:900;
}

.ggl-login-options{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  margin:4px 0 20px;
}

.ggl-remember{
  display:flex;
  align-items:center;
  gap:8px;
  color:#596b65;
  font-size:13px;
}

.ggl-remember input{
  width:17px;
  height:17px;
  accent-color:var(--login-green);
}

.ggl-login-options a{
  color:var(--login-green);
  font-size:13px;
  font-weight:800;
  text-decoration:none;
}

.ggl-login-submit{
  height:54px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 20px;
  border-radius:15px;
  background:
    linear-gradient(135deg,var(--login-green-dark),var(--login-mint));
  box-shadow:0 12px 25px rgba(8,107,85,.23);
}

.ggl-login-submit b{
  font-size:20px;
}

.ggl-login-registration,
.ggl-login-portal,
.ggl-public-draw-link{
  text-decoration:none;
  color:var(--login-ink);
}

.ggl-login-registration{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-top:17px;
  padding:14px 16px;
  border:1px solid #d4e7df;
  border-radius:15px;
  background:#f1faf6;
}

.ggl-login-registration strong,
.ggl-login-registration small{
  display:block;
}

.ggl-login-registration strong{
  color:var(--login-green);
  font-size:14px;
}

.ggl-login-registration small{
  margin-top:3px;
  color:var(--login-muted);
  font-size:12px;
}

.ggl-login-portals{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:20px;
  padding-top:20px;
  border-top:1px solid var(--login-line);
}

.ggl-login-portal{
  min-width:0;
  display:grid;
  grid-template-columns:39px 1fr auto;
  align-items:center;
  gap:9px;
  padding:12px;
  border:1px solid var(--login-line);
  border-radius:15px;
  background:#fff;
  transition:
    transform .17s,
    box-shadow .17s,
    border-color .17s;
}

.ggl-login-portal:hover{
  transform:translateY(-2px);
  border-color:#a9cbc0;
  box-shadow:0 9px 22px rgba(18,72,57,.09);
}

.ggl-login-portal strong,
.ggl-login-portal small{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
}

.ggl-login-portal strong{
  font-size:12px;
  white-space:nowrap;
}

.ggl-login-portal small{
  margin-top:3px;
  color:var(--login-muted);
  font-size:10px;
  line-height:1.25;
}

.ggl-portal-icon{
  width:37px;
  height:37px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:linear-gradient(145deg,#08745b,#16b47b);
  color:white;
  font-size:13px;
  font-weight:900;
}

.ggl-login-portal.vendor .ggl-portal-icon{
  background:linear-gradient(145deg,#af7d0d,#dfb842);
}

.ggl-login-back{
  display:block;
  margin-top:20px;
  color:var(--login-green);
  font-size:13px;
  font-weight:800;
  text-align:center;
  text-decoration:none;
}

.ggl-public-draw-link{
  display:grid;
  grid-template-columns:12px 1fr auto;
  align-items:center;
  gap:11px;
  margin-top:18px;
  padding:13px 14px;
  border:1px solid #d6e7f1;
  border-radius:15px;
  background:#f4f9fc;
}

.ggl-live-dot{
  width:9px;
  height:9px;
  border-radius:50%;
  background:#13b778;
  box-shadow:0 0 0 5px rgba(19,183,120,.12);
}

.ggl-public-draw-link strong,
.ggl-public-draw-link small{
  display:block;
}

.ggl-public-draw-link strong{
  font-size:13px;
}

.ggl-public-draw-link small{
  margin-top:2px;
  color:var(--login-muted);
  font-size:10px;
}

.ggl-login-footer{
  margin:23px 0 0;
  color:#84918d;
  font-size:10px;
  text-align:center;
}

.ggl-login-footer span{
  padding:0 4px;
}

@media(max-width:850px){
  .ggl-login-page{
    padding:0;
    align-items:stretch;
  }

  .ggl-login-shell{
    width:100%;
    min-height:100vh;
    grid-template-columns:1fr;
    border:0;
    border-radius:0;
    box-shadow:none;
  }

  .ggl-login-visual{
    display:none;
  }

  .ggl-login-panel{
    min-height:100vh;
    padding:
      max(20px,env(safe-area-inset-top))
      22px
      max(28px,env(safe-area-inset-bottom));
  }

  .ggl-mobile-brand{
    display:flex;
    align-items:center;
    gap:12px;
    margin:3px 0 34px;
  }

  .ggl-mobile-brand img{
    width:58px;
    height:58px;
    object-fit:contain;
    padding:4px;
    border:1px solid var(--login-line);
    border-radius:17px;
    background:white;
    box-shadow:0 8px 20px rgba(17,69,55,.1);
  }

  .ggl-mobile-brand strong,
  .ggl-mobile-brand span{
    display:block;
  }

  .ggl-mobile-brand strong{
    font-size:16px;
    letter-spacing:.06em;
  }

  .ggl-mobile-brand span{
    margin-top:3px;
    color:var(--login-muted);
    font-size:11px;
  }

  .ggl-language-switch{
    position:absolute;
    top:max(22px,env(safe-area-inset-top));
    right:20px;
    margin:0;
  }

  .ggl-language-switch button{
    min-width:65px;
    height:34px;
    padding:0 10px;
    font-size:11px;
  }

  .ggl-login-heading h2{
    font-size:32px;
  }
}

@media(max-width:480px){
  .ggl-login-panel{
    padding-left:18px;
    padding-right:18px;
  }

  .ggl-login-portals{
    grid-template-columns:1fr;
  }

  .ggl-login-portal strong{
    font-size:13px;
  }

  .ggl-login-portal small{
    font-size:11px;
  }

  .ggl-login-options{
    align-items:flex-start;
  }

  .ggl-login-heading{
    margin-top:10px;
  }
}

@media(max-width:365px){
  .ggl-language-switch{
    position:static;
    justify-content:flex-end;
    margin-bottom:20px;
  }

  .ggl-mobile-brand{
    margin-bottom:24px;
  }

  .ggl-login-heading h2{
    font-size:28px;
  }
}

/* =========================================================
   GREEN GOLD LIFE LOGIN MOBILE POLISH
   Scope: mobile login page spacing and alignment only
   ========================================================= */

@media(max-width:850px){

  .ggl-login-page{
    min-height:100dvh;
    overflow-x:hidden;
    overflow-y:auto;
    background:#ffffff;
  }

  .ggl-login-shell{
    min-height:100dvh;
    overflow:visible;
    background:#ffffff;
  }

  .ggl-login-panel{
    min-height:100dvh;
    overflow:visible;
    padding:
      calc(env(safe-area-inset-top) + 22px)
      20px
      calc(env(safe-area-inset-bottom) + 38px);
  }

  .ggl-language-switch{
    position:relative;
    top:auto;
    right:auto;
    justify-content:flex-end;
    margin:0 0 28px;
  }

  .ggl-language-switch button{
    min-width:78px;
    height:46px;
    border-radius:14px;
    font-size:14px;
  }

  .ggl-mobile-brand{
    align-items:center;
    margin:0 0 38px;
  }

  .ggl-mobile-brand img{
    width:70px;
    height:70px;
    border-radius:20px;
  }

  .ggl-mobile-brand strong{
    font-size:18px;
    line-height:1.25;
  }

  .ggl-mobile-brand span{
    margin-top:4px;
    font-size:13px;
  }

  .ggl-login-heading{
    margin:0 0 30px;
  }

  .ggl-login-heading>span{
    display:block;
    margin-bottom:10px;
    font-size:12px;
    line-height:1.4;
  }

  .ggl-login-heading h2{
    margin:0 0 14px;
    max-width:100%;
    font-size:clamp(34px,10vw,47px);
    line-height:1.12;
    letter-spacing:-.035em;
    overflow-wrap:break-word;
  }

  .ggl-login-heading p{
    font-size:17px;
    line-height:1.65;
  }

  .ggl-login-field{
    margin-bottom:22px;
  }

  .ggl-login-field label{
    margin-bottom:10px;
    font-size:16px;
    line-height:1.35;
  }

  .ggl-input-shell{
    min-height:58px;
  }

  .ggl-input-shell .input{
    height:58px;
    padding-left:52px;
    border-radius:15px;
    font-size:16px;
    line-height:1;
  }

  .ggl-input-shell.password .input{
    padding-right:92px;
  }

  .ggl-input-icon{
    left:17px;
    width:22px;
    height:22px;
    display:grid;
    place-items:center;
  }

  .ggl-input-icon svg{
    display:block;
  }

  .ggl-password-toggle{
    right:8px;
    min-width:70px;
    height:42px;
    border-radius:12px;
    font-size:14px;
  }

  .ggl-login-options{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:start;
    gap:16px;
    margin:2px 4px 24px;
  }

  .ggl-remember{
    align-items:flex-start;
    gap:10px;
    font-size:15px;
    line-height:1.45;
  }

  .ggl-remember input{
    flex:0 0 auto;
    width:20px;
    height:20px;
    margin-top:2px;
  }

  .ggl-login-options a{
    max-width:120px;
    font-size:15px;
    line-height:1.35;
    text-align:right;
  }

  .ggl-login-submit{
    height:62px;
    padding:0 22px;
    border-radius:16px;
    font-size:17px;
  }

  .ggl-login-submit b{
    font-size:24px;
    line-height:1;
  }

  .ggl-login-portals{
    gap:14px;
    margin-top:28px;
    padding-top:28px;
  }

  .ggl-login-portal{
    min-height:82px;
    grid-template-columns:54px minmax(0,1fr) auto;
    gap:14px;
    padding:14px 16px;
    border-radius:18px;
  }

  .ggl-portal-icon{
    width:52px;
    height:52px;
    border-radius:16px;
    font-size:18px;
  }

  .ggl-login-portal strong{
    font-size:16px;
    line-height:1.3;
    white-space:normal;
  }

  .ggl-login-portal small{
    margin-top:5px;
    font-size:13px;
    line-height:1.35;
  }

  .ggl-public-draw-link{
    min-height:92px;
    grid-template-columns:14px minmax(0,1fr) auto;
    gap:14px;
    margin-top:20px;
    padding:16px 18px;
    border-radius:18px;
  }

  .ggl-public-draw-link strong{
    font-size:16px;
    line-height:1.3;
  }

  .ggl-public-draw-link small{
    margin-top:5px;
    font-size:13px;
    line-height:1.3;
  }

  .ggl-login-footer{
    margin-top:34px;
    padding-bottom:8px;
    font-size:12px;
    line-height:1.5;
  }
}

@media(max-width:390px){

  .ggl-login-panel{
    padding-left:16px;
    padding-right:16px;
  }

  .ggl-language-switch{
    margin-bottom:24px;
  }

  .ggl-language-switch button{
    min-width:72px;
    height:42px;
    font-size:13px;
  }

  .ggl-mobile-brand{
    margin-bottom:30px;
  }

  .ggl-mobile-brand img{
    width:62px;
    height:62px;
  }

  .ggl-mobile-brand strong{
    font-size:16px;
  }

  .ggl-mobile-brand span{
    font-size:12px;
  }

  .ggl-login-heading h2{
    font-size:clamp(32px,10vw,42px);
  }

  .ggl-login-heading p{
    font-size:15px;
  }

  .ggl-login-options{
    grid-template-columns:1fr;
    gap:12px;
  }

  .ggl-login-options a{
    max-width:none;
    text-align:left;
    padding-left:30px;
  }
}

@media(max-height:760px) and (max-width:850px){

  .ggl-login-panel{
    padding-top:calc(env(safe-area-inset-top) + 14px);
  }

  .ggl-language-switch{
    margin-bottom:18px;
  }

  .ggl-mobile-brand{
    margin-bottom:24px;
  }

  .ggl-login-heading{
    margin-bottom:22px;
  }

  .ggl-login-heading h2{
    font-size:34px;
  }

  .ggl-login-heading p{
    font-size:14px;
  }
}

/* GREEN GOLD LOGIN MOBILE FINAL FIX */
@media(max-width:850px){

  .ggl-login-panel{
    padding-left:20px !important;
    padding-right:20px !important;
  }

  .ggl-login-heading h2{
    font-size:40px !important;
    line-height:1.15 !important;
    letter-spacing:-1px !important;
    margin-bottom:14px !important;
  }

  .ggl-login-heading p{
    font-size:16px !important;
    line-height:1.55 !important;
  }

  .ggl-login-field{
    margin-bottom:24px !important;
  }

  .ggl-login-field label{
    display:block !important;
    margin:0 0 10px !important;
    font-size:16px !important;
    line-height:1.3 !important;
  }

  .ggl-input-shell{
    display:block !important;
    min-height:60px !important;
  }

  .ggl-input-icon{
    display:none !important;
  }

  .ggl-input-shell .input{
    width:100% !important;
    height:60px !important;
    padding:0 18px !important;
    font-size:16px !important;
    line-height:60px !important;
    border-radius:14px !important;
  }

  .ggl-input-shell.password .input{
    padding-right:100px !important;
  }

  .ggl-password-toggle{
    top:9px !important;
    right:9px !important;
    height:42px !important;
    min-width:78px !important;
    font-size:14px !important;
  }

  .ggl-login-options{
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    gap:14px !important;
    margin:4px 4px 24px !important;
  }

  .ggl-remember{
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
    font-size:15px !important;
    line-height:1.35 !important;
  }

  .ggl-login-options a{
    padding-left:30px !important;
    max-width:none !important;
    text-align:left !important;
    font-size:15px !important;
  }

  .ggl-login-submit{
    width:100% !important;
    height:60px !important;
    justify-content:center !important;
    gap:10px !important;
    font-size:17px !important;
  }
}

@media(max-width:390px){

  .ggl-login-heading h2{
    font-size:34px !important;
  }

  .ggl-login-heading p{
    font-size:15px !important;
  }

  .ggl-language-switch button{
    min-width:68px !important;
  }
}

/* =========================================================
   GREEN GOLD LIFE COMMON MICROSOFT-STYLE APP SHELL
   Scope: top bar and bottom navigation only
   ========================================================= */

.ggl-common-topbar{
  position:sticky;
  top:0;
  z-index:45;
  width:100%;
  height:auto;
  min-height:76px;
  display:grid;
  grid-template-columns:48px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:
    max(12px,env(safe-area-inset-top))
    16px
    12px;
  border-bottom:1px solid #dce5e9;
  background:rgba(255,255,255,.96);
  box-shadow:0 2px 10px rgba(29,48,65,.06);
  backdrop-filter:blur(18px);
}

.ggl-topbar-button{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  padding:10px;
  border:1px solid transparent;
  border-radius:13px;
  background:transparent;
  color:#18262f;
}

.ggl-topbar-button:active{
  background:#edf4f7;
}

.ggl-topbar-button svg{
  width:25px;
  height:25px;
}

.ggl-topbar-title{
  min-width:0;
}

.ggl-topbar-title strong,
.ggl-topbar-title small{
  display:block;
}

.ggl-topbar-title strong{
  overflow:hidden;
  color:#172231;
  font-size:22px;
  line-height:1.2;
  font-weight:800;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.ggl-topbar-title small{
  overflow:hidden;
  margin-top:3px;
  color:#73808b;
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.ggl-topbar-actions{
  display:flex;
  align-items:center;
  gap:7px;
}

.ggl-theme-button{
  border-color:#dce5e9;
  background:#f4f7f9;
}

.ggl-profile-button{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  overflow:hidden;
  padding:0;
  border:0;
  border-radius:50%;
  background:linear-gradient(145deg,#076d59,#128d76);
  color:white;
  box-shadow:0 5px 14px rgba(8,107,85,.21);
}

.ggl-profile-button span{
  display:block;
  max-width:36px;
  overflow:hidden;
  font-size:13px;
  font-weight:900;
  letter-spacing:.02em;
  white-space:nowrap;
}

.ggl-common-bottom-nav{
  position:fixed;
  z-index:50;
  left:50%;
  right:auto;
  bottom:0;
  width:min(100%,1180px);
  height:
    calc(
      76px
      + env(safe-area-inset-bottom)
    );
  display:grid;
  gap:2px;
  padding:
    7px
    8px
    max(7px,env(safe-area-inset-bottom));
  transform:translateX(-50%);
  border-top:1px solid #dbe4e8;
  border-radius:20px 20px 0 0;
  background:rgba(255,255,255,.98);
  box-shadow:0 -8px 28px rgba(24,43,58,.12);
  backdrop-filter:blur(18px);
}

.ggl-common-bottom-nav.ggl-four-tabs{
  grid-template-columns:repeat(4,minmax(0,1fr));
}

.ggl-common-bottom-nav.ggl-five-tabs{
  grid-template-columns:repeat(5,minmax(0,1fr));
}

.ggl-common-bottom-nav .ggl-bottom-item{
  position:relative;
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  padding:4px 2px;
  border:0;
  border-radius:13px;
  background:transparent;
  color:#536069;
}

.ggl-common-bottom-nav .ggl-bottom-item.active{
  background:#e9f6f1;
  color:#08735d;
}

.ggl-bottom-icon{
  position:relative;
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
}

.ggl-bottom-icon svg{
  width:23px;
  height:23px;
}

.ggl-common-bottom-nav small{
  display:block;
  width:100%;
  overflow:hidden;
  font-size:11px;
  line-height:1.15;
  font-weight:650;
  white-space:nowrap;
  text-align:center;
  text-overflow:ellipsis;
}

.ggl-common-bottom-nav .active small{
  font-weight:850;
}

.ggl-approval-badge{
  position:absolute;
  top:-7px;
  right:-10px;
  min-width:18px;
  height:18px;
  display:grid;
  place-items:center;
  padding:0 5px;
  border:2px solid white;
  border-radius:999px;
  background:#d4313d;
  color:white;
  font-size:9px;
  font-style:normal;
  font-weight:900;
  line-height:1;
  box-shadow:0 2px 7px rgba(174,28,40,.28);
}

.ggl-approval-badge[hidden]{
  display:none !important;
}

.app-frame>.main{
  padding-bottom:
    calc(
      96px
      + env(safe-area-inset-bottom)
    );
}

@media(max-width:430px){

  .ggl-common-topbar{
    min-height:70px;
    grid-template-columns:42px minmax(0,1fr) auto;
    gap:9px;
    padding-left:11px;
    padding-right:11px;
  }

  .ggl-topbar-button,
  .ggl-profile-button{
    width:40px;
    height:40px;
  }

  .ggl-topbar-title strong{
    font-size:20px;
  }

  .ggl-topbar-title small{
    font-size:9px;
  }

  .ggl-common-bottom-nav{
    height:
      calc(
        72px
        + env(safe-area-inset-bottom)
      );
    border-radius:18px 18px 0 0;
  }

  .ggl-common-bottom-nav small{
    font-size:10px;
  }

  .ggl-common-bottom-nav.ggl-five-tabs small{
    font-size:9px;
  }
}

@media(min-width:760px){

  .ggl-common-topbar{
    padding-left:28px;
    padding-right:28px;
  }
}

/* GREEN GOLD BOTTOM MENU FUNCTIONAL SHEET */

.ggl-common-bottom-nav .ggl-bottom-item{
  min-height:58px;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
}

.ggl-common-bottom-nav .ggl-bottom-icon svg{
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}

body.ggl-sheet-open{
  overflow:hidden;
}

.ggl-menu-sheet-backdrop{
  position:fixed;
  inset:0;
  z-index:150;
  display:flex;
  align-items:flex-end;
  padding-top:80px;
  background:rgba(15,26,33,.46);
  opacity:0;
  transition:opacity .18s ease;
}

.ggl-menu-sheet-backdrop.open{
  opacity:1;
}

.ggl-menu-sheet{
  width:100%;
  max-height:82vh;
  overflow:auto;
  padding:
    20px
    18px
    calc(24px + env(safe-area-inset-bottom));
  border-radius:26px 26px 0 0;
  background:#fff;
  box-shadow:0 -16px 50px rgba(20,35,45,.22);
  transform:translateY(30px);
  transition:transform .2s ease;
}

.ggl-menu-sheet-backdrop.open .ggl-menu-sheet{
  transform:translateY(0);
}

.ggl-menu-sheet-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:15px;
}

.ggl-menu-sheet-head small{
  color:#08735d;
  font-size:10px;
  font-weight:900;
  letter-spacing:.12em;
}

.ggl-menu-sheet-head h2{
  margin:4px 0 0;
  font-size:25px;
}

.ggl-menu-sheet-head button{
  width:42px;
  height:42px;
  border:0;
  border-radius:50%;
  background:#edf3f5;
  color:#26343c;
  font-size:27px;
  line-height:1;
}

.ggl-menu-sheet-list{
  display:grid;
  gap:8px;
}

.ggl-menu-sheet-list button{
  width:100%;
  min-height:54px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:13px 15px;
  border:1px solid #dce5e9;
  border-radius:15px;
  background:#fff;
  color:#17242d;
  font-size:15px;
  font-weight:750;
  text-align:left;
}

.ggl-menu-sheet-list button:active{
  background:#eaf6f1;
  border-color:#a8d3c4;
}

.ggl-menu-sheet-list b{
  color:#08735d;
  font-size:22px;
}

/* GREEN GOLD TOPBAR DRAWER + DARK LIGHT FIX */

.ggl-common-topbar .ggl-topbar-button svg{
  display:block;
  width:24px;
  height:24px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.ggl-theme-button{
  position:relative;
}

.ggl-theme-button>span{
  display:grid;
  place-items:center;
}

.ggl-theme-dark-icon{
  display:none !important;
}

body.gg-dark .ggl-theme-light-icon,
body.ggl-dark-theme .ggl-theme-light-icon{
  display:none !important;
}

body.gg-dark .ggl-theme-dark-icon,
body.ggl-dark-theme .ggl-theme-dark-icon{
  display:grid !important;
}

body.ggl-drawer-open{
  overflow:hidden;
}

body.gg-dark,
body.ggl-dark-theme{
  background:#111827;
  color:#e8eef4;
}

body.gg-dark .app-frame,
body.ggl-dark-theme .app-frame{
  background:#111827;
}

body.gg-dark .ggl-common-topbar,
body.ggl-dark-theme .ggl-common-topbar{
  border-bottom-color:#334155;
  background:rgba(17,24,39,.97);
}

body.gg-dark .ggl-topbar-title strong,
body.ggl-dark-theme .ggl-topbar-title strong{
  color:#f4f7fa;
}

body.gg-dark .ggl-topbar-title small,
body.ggl-dark-theme .ggl-topbar-title small{
  color:#aab6c3;
}

body.gg-dark .ggl-topbar-button,
body.ggl-dark-theme .ggl-topbar-button{
  color:#e8eef4;
}

body.gg-dark .ggl-theme-button,
body.ggl-dark-theme .ggl-theme-button{
  border-color:#3b4959;
  background:#202b39;
}

body.gg-dark .card,
body.gg-dark .quick-card,
body.gg-dark .workspace-card,
body.gg-dark .data-card,
body.gg-dark .task-card,
body.gg-dark .checkin-card,
body.ggl-dark-theme .card,
body.ggl-dark-theme .quick-card,
body.ggl-dark-theme .workspace-card,
body.ggl-dark-theme .data-card,
body.ggl-dark-theme .task-card,
body.ggl-dark-theme .checkin-card{
  border-color:#334155;
  background:#182231;
  color:#e8eef4;
}

body.gg-dark .ggl-common-bottom-nav,
body.ggl-dark-theme .ggl-common-bottom-nav{
  border-top-color:#334155;
  background:rgba(17,24,39,.98);
}

body.gg-dark .ggl-common-bottom-nav .ggl-bottom-item,
body.ggl-dark-theme .ggl-common-bottom-nav .ggl-bottom-item{
  color:#aebac6;
}

body.gg-dark .ggl-common-bottom-nav .ggl-bottom-item.active,
body.ggl-dark-theme .ggl-common-bottom-nav .ggl-bottom-item.active{
  background:#153d35;
  color:#7be2bc;
}

/* GREEN GOLD SUPER ADMIN REGISTRATION APPROVAL WORKFLOW */

.ggl-approval-summary{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:12px;
  margin:0 0 18px;
}

.ggl-approval-summary button{
  min-height:86px;
  padding:14px 10px;
  border:1px solid #d9e2e8;
  border-radius:18px;
  background:#fff;
  color:#43515b;
  cursor:pointer;
  box-shadow:0 5px 16px rgba(15,23,42,.05);
}

.ggl-approval-summary button span{
  display:block;
  margin-bottom:4px;
  color:#116d59;
  font-size:25px;
  font-weight:800;
}

.ggl-approval-summary button small{
  font-size:13px;
  font-weight:700;
}

.ggl-approval-summary button.active{
  border-color:#148267;
  background:#e9f8f3;
  color:#0e6e59;
}

.ggl-approval-workspace{
  margin-bottom:110px;
}

.ggl-approval-card{
  border-left:5px solid #0f8065;
}

.ggl-approval-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}

.ggl-approval-actions .btn{
  flex:1 1 135px;
  min-height:46px;
}

.ggl-btn-hold{
  border:1px solid #d49617;
  background:#fff4d8;
  color:#865800;
}

.ggl-meta-full{
  grid-column:1/-1;
}

.ggl-approval-detail-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.ggl-approval-detail-grid>div{
  padding:13px;
  border:1px solid #e0e6eb;
  border-radius:13px;
  background:#f8fafb;
}

.ggl-approval-detail-grid span{
  display:block;
  margin-bottom:5px;
  color:#77828a;
  font-size:12px;
}

.ggl-approval-detail-grid strong{
  display:block;
  overflow-wrap:anywhere;
  color:#1e2933;
}

.ggl-detail-full{
  grid-column:1/-1;
}

.ggl-approval-edit-form{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:15px;
}

.ggl-approval-edit-form label{
  display:flex;
  flex-direction:column;
  gap:7px;
}

.ggl-approval-edit-form label span{
  color:#45535d;
  font-size:13px;
  font-weight:700;
}

.ggl-approval-edit-form input,
.ggl-approval-edit-form textarea{
  width:100%;
  border:1px solid #cfd8df;
  border-radius:12px;
  background:#fff;
  padding:13px;
  color:#17212a;
  font:inherit;
}

.ggl-approval-edit-form textarea{
  min-height:100px;
  resize:vertical;
}

.ggl-form-full{
  grid-column:1/-1;
}

.ggl-form-actions{
  display:flex;
  justify-content:flex-end;
}

body.gg-dark .ggl-approval-summary button,
body.ggl-dark-theme .ggl-approval-summary button{
  border-color:#344354;
  background:#182432;
  color:#d7e0e8;
}

body.gg-dark .ggl-approval-summary button.active,
body.ggl-dark-theme .ggl-approval-summary button.active{
  border-color:#4fc7a6;
  background:#153d35;
  color:#7de1c2;
}

body.gg-dark .ggl-approval-detail-grid>div,
body.ggl-dark-theme .ggl-approval-detail-grid>div{
  border-color:#344354;
  background:#182432;
}

body.gg-dark .ggl-approval-detail-grid strong,
body.ggl-dark-theme .ggl-approval-detail-grid strong{
  color:#f0f5f8;
}

body.gg-dark .ggl-approval-edit-form input,
body.gg-dark .ggl-approval-edit-form textarea,
body.ggl-dark-theme .ggl-approval-edit-form input,
body.ggl-dark-theme .ggl-approval-edit-form textarea{
  border-color:#3d4c5d;
  background:#111a25;
  color:#eef3f6;
}

@media(max-width:850px){
  .ggl-approval-summary{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:9px;
  }

  .ggl-approval-summary button{
    min-height:76px;
    padding:10px 6px;
  }

  .ggl-approval-summary button span{
    font-size:21px;
  }

  .ggl-approval-detail-grid,
  .ggl-approval-edit-form{
    grid-template-columns:1fr;
  }

  .ggl-detail-full,
  .ggl-form-full,
  .ggl-meta-full{
    grid-column:auto;
  }

  .ggl-approval-actions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .ggl-approval-actions .btn{
    width:100%;
  }
}

/* GREEN GOLD APPROVAL ACTION WORKFLOW */

.ggl-approval-counts{
 display:grid;
 grid-template-columns:repeat(5,minmax(0,1fr));
 gap:10px;
 margin-bottom:18px;
}

.ggl-approval-counts button{
 min-height:82px;
 padding:12px 8px;
 border:1px solid #d7e0e6;
 border-radius:17px;
 background:#fff;
 color:#53616b;
 cursor:pointer;
}

.ggl-approval-counts button strong{
 display:block;
 color:#08745b;
 font-size:24px;
}

.ggl-approval-counts button span{
 display:block;
 margin-top:4px;
 font-size:12px;
 font-weight:700;
}

.ggl-approval-counts button.active{
 border-color:#08745b;
 background:#e7f7f1;
 color:#08745b;
}

.ggl-approval-workspace{
 margin-bottom:110px;
}

.ggl-approval-card{
 border-left:5px solid #08745b;
}

.ggl-meta-wide{
 grid-column:1/-1;
}

.ggl-approval-actions{
 display:flex;
 flex-wrap:wrap;
 gap:9px;
 margin-top:18px;
}

.ggl-approval-actions .btn{
 flex:1 1 125px;
 min-height:45px;
}

.ggl-hold-button{
 border:1px solid #d59c22;
 background:#fff4d3;
 color:#795300;
}

.ggl-approval-details{
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:12px;
}

.ggl-approval-details>div{
 padding:12px;
 border:1px solid #dde5ea;
 border-radius:12px;
 background:#f8fafb;
}

.ggl-approval-details span{
 display:block;
 margin-bottom:5px;
 color:#77838c;
 font-size:12px;
}

.ggl-approval-details strong{
 display:block;
 overflow-wrap:anywhere;
}

.ggl-approval-details .wide{
 grid-column:1/-1;
}

.ggl-approval-form{
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:14px;
}

.ggl-approval-form label{
 display:flex;
 flex-direction:column;
 gap:6px;
}

.ggl-approval-form label span{
 font-size:13px;
 font-weight:700;
}

.ggl-approval-form input,
.ggl-approval-form textarea{
 width:100%;
 padding:12px;
 border:1px solid #cfd8df;
 border-radius:11px;
 background:#fff;
 color:#17212a;
 font:inherit;
}

.ggl-approval-form textarea{
 min-height:95px;
 resize:vertical;
}

.ggl-approval-form .wide{
 grid-column:1/-1;
}

body.gg-dark .ggl-approval-counts button,
body.ggl-dark-theme .ggl-approval-counts button{
 border-color:#354556;
 background:#182433;
 color:#dce4ea;
}

body.gg-dark .ggl-approval-counts button.active,
body.ggl-dark-theme .ggl-approval-counts button.active{
 border-color:#5bd0ae;
 background:#123c33;
 color:#78e0c0;
}

body.gg-dark .ggl-approval-details>div,
body.ggl-dark-theme .ggl-approval-details>div{
 border-color:#354556;
 background:#182433;
}

body.gg-dark .ggl-approval-form input,
body.gg-dark .ggl-approval-form textarea,
body.ggl-dark-theme .ggl-approval-form input,
body.ggl-dark-theme .ggl-approval-form textarea{
 border-color:#3d4c5c;
 background:#101923;
 color:#eef4f7;
}

@media(max-width:850px){
 .ggl-approval-counts{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }

 .ggl-approval-counts button:last-child{
  grid-column:1/-1;
 }

 .ggl-approval-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
 }

 .ggl-approval-actions .btn{
  width:100%;
 }

 .ggl-approval-details,
 .ggl-approval-form{
  grid-template-columns:1fr;
 }

 .ggl-approval-details .wide,
 .ggl-approval-form .wide,
 .ggl-meta-wide{
  grid-column:auto;
 }
}

/* GGL-APPROVAL-RESPONSIVE-FINAL-START */

/* Approval page container */
.ggl-approval-workspace,
.ggl-approval-card,
.ggl-approval-card .data-meta,
.ggl-approval-card .data-meta > div{
  min-width:0;
  max-width:100%;
}

/* Member title and status */
.ggl-approval-card .data-card-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:start;
  gap:12px;
}

.ggl-approval-card .data-card-head > div{
  min-width:0;
}

.ggl-approval-card .data-card-head h3{
  margin:0;
  line-height:1.18;
  overflow-wrap:break-word;
  word-break:normal;
}

.ggl-approval-card .data-card-head small{
  display:block;
  margin-top:6px;
  line-height:1.4;
  overflow-wrap:break-word;
  word-break:normal;
}

.ggl-approval-card .status{
  max-width:180px;
  white-space:normal;
  line-height:1.2;
  text-align:center;
}

/* Metadata cards */
.ggl-approval-card .data-meta{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.ggl-approval-card .data-meta > div{
  padding:15px;
  overflow:hidden;
}

.ggl-approval-card .data-meta span{
  margin-bottom:7px;
  line-height:1.2;
}

.ggl-approval-card .data-meta strong{
  font-size:clamp(15px,4vw,19px);
  line-height:1.25;
  overflow-wrap:break-word;
  word-break:normal;
  hyphens:none;
}

/* Proper approval buttons */
.ggl-approval-actions{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:12px !important;
  width:100%;
  margin-top:18px;
}

.ggl-approval-actions .btn{
  width:100% !important;
  min-width:0;
  min-height:56px;
  margin:0 !important;
  padding:13px 10px !important;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  line-height:1.2;
  border-radius:14px;
}

/* For 3 or 5 buttons, final button gets full row */
.ggl-approval-actions .btn:last-child:nth-child(odd){
  grid-column:1 / -1;
}

/* View */
.ggl-approval-actions .btn-secondary{
  background:#fff !important;
  color:#172235 !important;
  border:1px solid #cbd5df !important;
}

/* Approve */
.ggl-approval-actions .btn-primary{
  background:#0878ae !important;
  color:#fff !important;
  border:1px solid #0878ae !important;
}

/* Reject */
.ggl-approval-actions .btn-danger{
  background:#cc291d !important;
  color:#fff !important;
  border:1px solid #cc291d !important;
}

/* Hold */
.ggl-approval-actions .ggl-hold-button{
  background:#fff4ce !important;
  color:#725300 !important;
  border:1px solid #d6a817 !important;
}

/* Toast: always remain inside viewport */
.toast{
  position:fixed !important;
  z-index:140 !important;
  left:50% !important;
  right:auto !important;
  bottom:max(
    108px,
    calc(92px + env(safe-area-inset-bottom) + 14px)
  ) !important;

  width:max-content;
  max-width:calc(
    100vw
    - env(safe-area-inset-left)
    - env(safe-area-inset-right)
    - 32px
  );

  padding:13px 18px !important;
  border-radius:18px !important;

  text-align:center;
  line-height:1.35;
  white-space:normal;
  overflow-wrap:break-word;
  word-break:normal;

  transform:translate(-50%,20px) !important;
  box-shadow:0 12px 32px rgba(0,0,0,.25);
}

.toast.show{
  transform:translate(-50%,0) !important;
}

/* Approval modal */
.ggl-approval-modal{
  padding-bottom:max(
    28px,
    calc(env(safe-area-inset-bottom) + 22px)
  );
}

.ggl-approval-details{
  display:grid;
  gap:12px;
}

.ggl-approval-details > div{
  min-width:0;
  padding:16px;
}

.ggl-approval-details strong{
  line-height:1.3;
  overflow-wrap:break-word;
  word-break:normal;
}

.ggl-approval-details strong br{
  display:none;
}

.ggl-approval-details strong small{
  display:block;
  margin-top:7px;
  color:inherit;
  font-size:inherit;
  line-height:1.25;
}

/* Narrow portrait phones */
@media (max-width:360px){

  .ggl-approval-card .data-meta{
    grid-template-columns:1fr;
  }

  .ggl-approval-card .data-card-head{
    grid-template-columns:1fr;
  }

  .ggl-approval-card .status{
    justify-self:start;
    max-width:100%;
  }

  .ggl-approval-actions{
    grid-template-columns:1fr !important;
  }

  .ggl-approval-actions .btn{
    grid-column:auto !important;
  }

  .toast{
    max-width:calc(100vw - 22px);
    font-size:14px;
  }
}

/* Landscape mobile */
@media (
  orientation:landscape
) and (max-height:520px){

  .main{
    padding-bottom:88px;
  }

  .bottom-nav{
    height:72px;
  }

  .ggl-approval-actions{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }

  .ggl-approval-actions .btn{
    grid-column:auto !important;
    min-height:48px;
  }

  .toast{
    bottom:max(
      82px,
      calc(70px + env(safe-area-inset-bottom) + 10px)
    ) !important;

    width:auto;
    min-width:min(420px,calc(100vw - 32px));
    max-width:calc(
      100vw
      - env(safe-area-inset-left)
      - env(safe-area-inset-right)
      - 32px
    );

    border-radius:16px !important;
    font-size:14px;
    padding:11px 16px !important;
  }

  .modal{
    max-height:94vh;
  }

  .ggl-approval-details{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .ggl-approval-details .wide{
    grid-column:1 / -1;
  }
}

/* Tablet and desktop */
@media (min-width:760px){

  .ggl-approval-actions{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }

  .ggl-approval-actions .btn{
    grid-column:auto !important;
  }

  .toast{
    max-width:min(680px,calc(100vw - 48px));
  }
}

/* GGL-APPROVAL-RESPONSIVE-FINAL-END */

/* ==========================================================
   GREEN GOLD LIFE
   APPROVAL RESPONSIVE UI FIX
   ========================================================== */

.ggl-approval-card{
  overflow:visible;
}

.ggl-approval-card .data-card-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:start;
  gap:12px;
}

.ggl-approval-card .data-card-head > div{
  min-width:0;
}

.ggl-approval-card .data-card-head h3{
  overflow-wrap:break-word;
  word-break:normal;
  line-height:1.15;
}

.ggl-approval-card .data-card-head small{
  display:block;
  overflow-wrap:anywhere;
  word-break:break-word;
  line-height:1.45;
}

.ggl-approval-card .status{
  max-width:100%;
  white-space:normal;
  overflow-wrap:normal;
  word-break:normal;
  text-align:center;
  line-height:1.2;
}

.ggl-approval-card .data-meta{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.ggl-approval-card .data-meta > div{
  min-width:0;
  overflow:visible;
}

.ggl-approval-card .data-meta strong{
  overflow-wrap:normal;
  word-break:normal;
  line-height:1.25;
}

.ggl-approval-card .data-meta > div:nth-child(1) strong{
  word-break:break-all;
}

.ggl-approval-card .data-meta > div:nth-child(2) strong{
  overflow-wrap:anywhere;
  word-break:break-word;
  font-size:clamp(15px,4.6vw,21px);
}

.ggl-approval-actions{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
  width:100%;
  margin-top:18px;
}

.ggl-approval-actions .btn{
  width:100%!important;
  min-width:0!important;
  min-height:56px;
  margin:0!important;
  padding:13px 10px!important;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  line-height:1.2;
}

.ggl-approval-actions .btn-danger:last-child{
  grid-column:1 / -1;
}

.ggl-approval-workspace{
  padding-bottom:38px;
}

#gglApprovalList{
  padding-bottom:calc(
    105px + env(safe-area-inset-bottom)
  );
}

/* Toast must always remain inside the visible screen. */
.toast{
  left:50%!important;
  right:auto!important;
  bottom:calc(
    104px + env(safe-area-inset-bottom)
  )!important;
  width:max-content;
  max-width:calc(
    100vw - 32px - env(safe-area-inset-left) -
    env(safe-area-inset-right)
  );
  min-width:0;
  height:auto;
  padding:13px 18px!important;
  border-radius:18px!important;
  text-align:left;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:normal;
  line-height:1.4;
  transform:translate(-50%,20px)!important;
  box-shadow:0 14px 35px rgba(0,0,0,.28);
}

.toast.show{
  transform:translate(-50%,0)!important;
}

/* Approval details modal spacing. */
.ggl-approval-details{
  padding-bottom:max(
    20px,
    env(safe-area-inset-bottom)
  );
}

.ggl-approval-details strong{
  overflow-wrap:anywhere;
  word-break:break-word;
}

/* Very narrow mobile screens. */
@media (max-width:360px){

  .ggl-approval-card{
    padding:15px;
  }

  .ggl-approval-card .data-card-head{
    grid-template-columns:1fr;
  }

  .ggl-approval-card .status{
    justify-self:start;
  }

  .ggl-approval-card .data-meta{
    grid-template-columns:1fr;
  }

  .ggl-approval-actions{
    grid-template-columns:1fr!important;
  }

  .ggl-approval-actions .btn-danger:last-child{
    grid-column:auto;
  }
}

/* Landscape mobile: compact cards and three equal buttons. */
@media (
  orientation:landscape
) and (max-height:560px){

  .main{
    padding-bottom:110px!important;
  }

  .ggl-approval-card .data-meta{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }

  .ggl-approval-actions{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }

  .ggl-approval-actions .btn-danger:last-child{
    grid-column:auto;
  }

  .ggl-approval-actions .btn{
    min-height:50px;
  }

  .toast{
    bottom:calc(
      88px + env(safe-area-inset-bottom)
    )!important;
    max-width:min(720px,calc(100vw - 40px));
    padding:11px 16px!important;
  }

  #gglApprovalList{
    padding-bottom:95px;
  }
}


/* ==========================================================
   GREEN GOLD LIFE
   APPROVAL MOBILE + KYC SINGLE LINE FIX
   ========================================================== */

.ggl-approval-card .data-meta > div:nth-child(1) strong,
.ggl-approval-card .data-meta > div:nth-child(2) strong{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  word-break:normal!important;
  overflow-wrap:normal!important;
  font-size:clamp(13px,3.8vw,18px)!important;
  letter-spacing:-.02em;
}

.ggl-approval-card .data-meta > div:nth-child(1) strong{
  font-variant-numeric:tabular-nums;
}

@media (max-width:430px){

  .ggl-approval-card .data-meta > div{
    padding:11px 10px;
  }

  .ggl-approval-card .data-meta > div:nth-child(1) strong,
  .ggl-approval-card .data-meta > div:nth-child(2) strong{
    font-size:clamp(12px,3.55vw,16px)!important;
  }
}

@media (max-width:360px){

  .ggl-approval-card .data-meta > div:nth-child(1) strong,
  .ggl-approval-card .data-meta > div:nth-child(2) strong{
    font-size:13px!important;
  }
}


/* ==========================================================
   GREEN GOLD LIFE
   APPROVAL KYC FULL TEXT FINAL FIX
   ========================================================== */

.ggl-approval-card .data-meta > div:nth-child(2) strong{
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
  font-size:clamp(11px,3.15vw,15px)!important;
  letter-spacing:-.035em!important;
  transform:scaleX(.94);
  transform-origin:left center;
  width:106%;
}

@media (max-width:430px){

  .ggl-approval-card .data-meta > div:nth-child(2){
    padding-left:9px;
    padding-right:7px;
  }

  .ggl-approval-card .data-meta > div:nth-child(2) strong{
    font-size:clamp(10.5px,3vw,14px)!important;
    transform:scaleX(.92);
    width:109%;
  }
}

@media (max-width:360px){

  .ggl-approval-card .data-meta > div:nth-child(2) strong{
    font-size:10.5px!important;
    transform:scaleX(.9);
    width:111%;
  }
}


/* ==========================================================
   GREEN GOLD LIFE
   MEMBER KYC → VERIFY → APPROVE WORKFLOW
   ========================================================== */

.ggl-kyc-form{
  display:grid;
  gap:16px;
}

.ggl-kyc-member-summary{
  padding:16px;
  border-radius:18px;
  background:#eef8f4;
  border:1px solid #d5ebe2;
}

.ggl-kyc-member-summary span,
.ggl-kyc-member-summary strong,
.ggl-kyc-member-summary small{
  display:block;
}

.ggl-kyc-member-summary span{
  color:var(--muted);
  font-size:12px;
}

.ggl-kyc-member-summary strong{
  margin:5px 0;
  font-size:20px;
}

.ggl-kyc-field{
  display:grid;
  gap:7px;
}

.ggl-kyc-field > span{
  font-weight:800;
}

.ggl-kyc-field small{
  color:var(--muted);
  line-height:1.45;
}

.ggl-kyc-live-confirm{
  display:grid;
  grid-template-columns:24px minmax(0,1fr);
  gap:11px;
  align-items:start;
  padding:15px;
  border-radius:16px;
  background:#edf8f3;
  border:1px solid #cce8dc;
  line-height:1.45;
}

.ggl-kyc-live-confirm input{
  width:20px;
  height:20px;
  margin-top:2px;
}

.ggl-kyc-warning{
  padding:14px;
  border-radius:15px;
  background:#fff4db;
  color:#795200;
  border:1px solid #f0d68f;
  line-height:1.45;
  font-weight:700;
}

.ggl-kyc-ready-badge{
  grid-column:1 / -1;
  padding:13px 15px;
  border-radius:15px;
  background:#e3f8ec;
  border:1px solid #bce7cf;
  color:#086343;
}

.ggl-kyc-ready-badge strong,
.ggl-kyc-ready-badge span{
  display:block;
}

.ggl-kyc-ready-badge span{
  margin-top:3px;
  font-size:12px;
}

.ggl-kyc-submit-button,
.ggl-kyc-verify-button,
.ggl-kyc-reject-button{
  min-height:56px;
}

@media (max-width:360px){

  .ggl-kyc-form{
    gap:13px;
  }

  .ggl-kyc-member-summary{
    padding:13px;
  }
}


/* ==========================================================
   GREEN GOLD LIFE
   MEMBER KYC SAFE CAMERA WORKFLOW V3
   ========================================================== */

.ggl-approval-card
[data-approval-source="INTERNAL_MEMBER"]
[data-approval-decision="APPROVED"]{
  display:none!important;
}

.ggl-approval-card.ggl-v3-approval-ready
[data-approval-source="INTERNAL_MEMBER"]
[data-approval-decision="APPROVED"]{
  display:inline-flex!important;
}

.ggl-v3-kyc-form,
.ggl-v3-review,
.ggl-v3-camera{
  display:grid;
  gap:15px;
}

.ggl-v3-member{
  padding:15px;
  border-radius:17px;
  background:#edf8f3;
  border:1px solid #cfe9dd;
}

.ggl-v3-member span,
.ggl-v3-member strong,
.ggl-v3-member small{
  display:block;
}

.ggl-v3-member span{
  font-size:12px;
  color:var(--muted);
}

.ggl-v3-member strong{
  margin:5px 0;
  font-size:20px;
}

.ggl-v3-field{
  display:grid;
  gap:7px;
}

.ggl-v3-field > span{
  font-weight:800;
}

.ggl-v3-field small{
  color:var(--muted);
  line-height:1.45;
}

.ggl-v3-capture-box{
  padding:14px;
  border-radius:18px;
  background:#f4faf7;
  border:1px solid #d1e6dc;
}

.ggl-v3-capture-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  margin-bottom:13px;
}

.ggl-v3-capture-head strong,
.ggl-v3-capture-head span{
  display:block;
}

.ggl-v3-capture-head span{
  margin-top:4px;
  color:var(--muted);
  font-size:12px;
}

.ggl-v3-empty-preview{
  min-height:165px;
  display:grid;
  place-items:center;
  align-content:center;
  gap:7px;
  padding:20px;
  text-align:center;
  background:#fff;
  color:var(--muted);
  border:2px dashed #bfd4cb;
  border-radius:16px;
}

.ggl-v3-empty-preview > div{
  font-size:36px;
}

.ggl-v3-empty-preview strong{
  color:var(--ink);
}

.ggl-v3-empty-preview span{
  max-width:300px;
  font-size:13px;
  line-height:1.45;
}

.ggl-v3-selfie-preview{
  display:grid;
  grid-template-columns:96px minmax(0,1fr);
  gap:13px;
  align-items:center;
  padding:10px;
  border-radius:16px;
  background:#e3f7eb;
  border:1px solid #b9e3c9;
}

.ggl-v3-selfie-preview img{
  width:96px;
  height:120px;
  border-radius:12px;
  object-fit:cover;
  background:#10231f;
}

.ggl-v3-selfie-preview strong,
.ggl-v3-selfie-preview span{
  display:block;
}

.ggl-v3-selfie-preview span{
  margin-top:5px;
  color:#59716a;
  font-size:12px;
}

.ggl-v3-confirm{
  display:grid;
  grid-template-columns:22px minmax(0,1fr);
  gap:10px;
  align-items:start;
  padding:14px;
  border-radius:15px;
  background:#edf8f3;
  border:1px solid #cce7db;
  line-height:1.5;
}

.ggl-v3-confirm input{
  width:19px;
  height:19px;
  margin-top:2px;
}

.ggl-v3-warning{
  padding:14px;
  border-radius:15px;
  background:#fff3d6;
  border:1px solid #efd58b;
  color:#795100;
  font-weight:700;
  line-height:1.5;
}

.ggl-v3-camera-frame{
  position:relative;
  width:100%;
  max-height:62vh;
  aspect-ratio:3/4;
  overflow:hidden;
  border-radius:23px;
  background:#081a17;
}

.ggl-v3-camera-frame video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform:scaleX(-1);
}

.ggl-v3-face-mask{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  pointer-events:none;
}

.ggl-v3-face-mask span{
  width:60%;
  height:69%;
  border-radius:50%;
  border:4px dashed #5cdeff;
  box-shadow:
    0 0 0 999px rgba(0,18,15,.30),
    0 0 22px rgba(92,222,255,.5);
}

.ggl-v3-live-label{
  position:absolute;
  top:13px;
  left:13px;
  padding:7px 11px;
  border-radius:999px;
  color:#fff;
  background:#b42318;
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
}

.ggl-v3-camera > p{
  margin:0;
  text-align:center;
  color:var(--muted);
  line-height:1.5;
}

.ggl-v3-camera-buttons{
  display:grid;
  grid-template-columns:1fr 1.4fr;
  gap:10px;
}

.ggl-v3-review-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.ggl-v3-review-grid > div{
  min-width:0;
  padding:13px;
  border-radius:14px;
  background:#eef6f3;
}

.ggl-v3-review-grid span,
.ggl-v3-review-grid strong{
  display:block;
}

.ggl-v3-review-grid span{
  color:var(--muted);
  font-size:11px;
}

.ggl-v3-review-grid strong{
  margin-top:5px;
  overflow-wrap:anywhere;
}

.ggl-v3-review-image{
  overflow:hidden;
  border-radius:20px;
  background:#10231f;
}

.ggl-v3-review-image img{
  display:block;
  width:100%;
  max-height:52vh;
  object-fit:contain;
}

.ggl-v3-review-actions{
  display:grid;
  grid-template-columns:1fr 1.3fr;
  gap:10px;
}

.ggl-v3-ready{
  margin-top:13px;
  padding:13px 15px;
  border-radius:15px;
  background:#e3f8ec;
  border:1px solid #bae5ca;
  color:#086344;
}

.ggl-v3-ready strong,
.ggl-v3-ready span{
  display:block;
}

.ggl-v3-ready span{
  margin-top:3px;
  font-size:12px;
}

@media (max-width:430px){

  .ggl-v3-capture-head{
    grid-template-columns:1fr;
  }

  .ggl-v3-capture-head .btn{
    width:100%;
  }

  .ggl-v3-selfie-preview{
    grid-template-columns:82px minmax(0,1fr);
  }

  .ggl-v3-selfie-preview img{
    width:82px;
    height:105px;
  }
}

@media (max-width:340px){

  .ggl-v3-camera-buttons,
  .ggl-v3-review-actions,
  .ggl-v3-review-grid{
    grid-template-columns:1fr;
  }
}


/* ==========================================================
   GREEN GOLD LIFE
   MEMBER KYC INLINE CAMERA FINAL V4
   ========================================================== */

/*
 * Both attributes are on the SAME approve button.
 * No space is allowed between the attribute selectors.
 */
.ggl-approval-card
[data-approval-source="INTERNAL_MEMBER"][data-approval-decision="APPROVED"]{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}

.ggl-approval-card.ggl-v4-approval-ready
[data-approval-source="INTERNAL_MEMBER"][data-approval-decision="APPROVED"]{
  display:inline-flex!important;
  visibility:visible!important;
  pointer-events:auto!important;
}

.ggl-v4-kyc-form,
.ggl-v4-review{
  display:grid;
  gap:15px;
}

.ggl-v4-member-summary{
  padding:15px;
  border-radius:17px;
  background:#edf8f3;
  border:1px solid #cfe8dc;
}

.ggl-v4-member-summary span,
.ggl-v4-member-summary strong,
.ggl-v4-member-summary small{
  display:block;
}

.ggl-v4-member-summary span{
  color:var(--muted);
  font-size:12px;
}

.ggl-v4-member-summary strong{
  margin:5px 0;
  font-size:20px;
}

.ggl-v4-field{
  display:grid;
  gap:7px;
}

.ggl-v4-field > span{
  font-weight:800;
}

.ggl-v4-field small{
  color:var(--muted);
  line-height:1.45;
}

.ggl-v4-capture-section{
  display:grid;
  gap:13px;
  padding:14px;
  border-radius:18px;
  background:#f4faf7;
  border:1px solid #d1e6dc;
}

.ggl-v4-capture-heading{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
}

.ggl-v4-capture-heading strong,
.ggl-v4-capture-heading span{
  display:block;
}

.ggl-v4-capture-heading span{
  margin-top:4px;
  color:var(--muted);
  font-size:12px;
}

.ggl-v4-inline-camera[hidden]{
  display:none!important;
}

.ggl-v4-inline-camera{
  display:grid;
  gap:11px;
}

.ggl-v4-camera-frame{
  position:relative;
  width:100%;
  max-height:58vh;
  aspect-ratio:3/4;
  overflow:hidden;
  border-radius:22px;
  background:#081a17;
}

.ggl-v4-camera-frame video{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transform:scaleX(-1);
}

.ggl-v4-face-guide{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  pointer-events:none;
}

.ggl-v4-face-guide span{
  width:60%;
  height:69%;
  border-radius:50%;
  border:4px dashed #5cdeff;
  box-shadow:
    0 0 0 999px rgba(0,18,15,.30),
    0 0 22px rgba(92,222,255,.5);
}

.ggl-v4-live-badge{
  position:absolute;
  top:13px;
  left:13px;
  padding:7px 11px;
  border-radius:999px;
  color:#fff;
  background:#b42318;
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
}

.ggl-v4-camera-actions{
  display:grid;
  grid-template-columns:1fr 1.4fr;
  gap:10px;
}

.ggl-v4-empty-preview{
  min-height:160px;
  display:grid;
  place-items:center;
  align-content:center;
  gap:7px;
  padding:20px;
  text-align:center;
  color:var(--muted);
  border:2px dashed #bfd4cb;
  border-radius:16px;
  background:#fff;
}

.ggl-v4-empty-preview > div{
  font-size:36px;
}

.ggl-v4-empty-preview strong{
  color:var(--ink);
}

.ggl-v4-empty-preview span{
  max-width:300px;
  font-size:13px;
  line-height:1.45;
}

.ggl-v4-selfie-preview{
  display:grid;
  grid-template-columns:96px minmax(0,1fr);
  gap:13px;
  align-items:center;
  padding:10px;
  border-radius:16px;
  background:#e3f7eb;
  border:1px solid #b9e3c9;
}

.ggl-v4-selfie-preview img{
  width:96px;
  height:120px;
  object-fit:cover;
  border-radius:12px;
  background:#10231f;
}

.ggl-v4-selfie-preview strong,
.ggl-v4-selfie-preview span,
.ggl-v4-selfie-preview small{
  display:block;
}

.ggl-v4-selfie-preview span{
  margin-top:5px;
  color:#59716a;
  font-size:12px;
}

.ggl-v4-selfie-preview small{
  margin-top:5px;
  color:#087056;
}

.ggl-v4-confirm{
  display:grid;
  grid-template-columns:22px minmax(0,1fr);
  gap:10px;
  align-items:start;
  padding:14px;
  border-radius:15px;
  background:#edf8f3;
  border:1px solid #cce7db;
  line-height:1.5;
}

.ggl-v4-confirm input{
  width:19px;
  height:19px;
  margin-top:2px;
}

.ggl-v4-warning{
  padding:14px;
  border-radius:15px;
  background:#fff3d6;
  border:1px solid #efd58b;
  color:#795100;
  font-weight:700;
  line-height:1.5;
}

.ggl-v4-review-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.ggl-v4-review-grid > div{
  min-width:0;
  padding:13px;
  border-radius:14px;
  background:#eef6f3;
}

.ggl-v4-review-grid span,
.ggl-v4-review-grid strong{
  display:block;
}

.ggl-v4-review-grid span{
  color:var(--muted);
  font-size:11px;
}

.ggl-v4-review-grid strong{
  margin-top:5px;
  overflow-wrap:anywhere;
}

.ggl-v4-review-photo{
  overflow:hidden;
  border-radius:20px;
  background:#10231f;
}

.ggl-v4-review-photo img{
  display:block;
  width:100%;
  max-height:52vh;
  object-fit:contain;
}

.ggl-v4-review-actions{
  display:grid;
  grid-template-columns:1fr 1.3fr;
  gap:10px;
}

.ggl-v4-ready{
  margin-top:13px;
  padding:13px 15px;
  border-radius:15px;
  background:#e3f8ec;
  border:1px solid #bae5ca;
  color:#086344;
}

.ggl-v4-ready strong,
.ggl-v4-ready span{
  display:block;
}

.ggl-v4-ready span{
  margin-top:3px;
  font-size:12px;
}

@media (max-width:430px){

  .ggl-v4-capture-heading{
    grid-template-columns:1fr;
  }

  .ggl-v4-capture-heading .btn{
    width:100%;
  }

  .ggl-v4-selfie-preview{
    grid-template-columns:82px minmax(0,1fr);
  }

  .ggl-v4-selfie-preview img{
    width:82px;
    height:105px;
  }
}

@media (max-width:340px){

  .ggl-v4-camera-actions,
  .ggl-v4-review-actions,
  .ggl-v4-review-grid{
    grid-template-columns:1fr;
  }
}

/* CUSTOMER_SELF_KYC_ADMIN_CSS_V2_START */

.ggl-approval-card
[data-approval-source="INTERNAL_MEMBER"][data-approval-decision="APPROVED"]{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}

.ggl-approval-card.ggl-customer-kyc-ready-card
[data-approval-source="INTERNAL_MEMBER"][data-approval-decision="APPROVED"]{
  display:inline-flex!important;
  visibility:visible!important;
  pointer-events:auto!important;
}

.ggl-customer-kyc-link,
.ggl-customer-kyc-review{
  display:grid;
  gap:15px;
}

.ggl-customer-kyc-member{
  padding:15px;
  border-radius:17px;
  background:#edf8f3;
  border:1px solid #cde7dc;
}

.ggl-customer-kyc-member span,
.ggl-customer-kyc-member strong,
.ggl-customer-kyc-member small{
  display:block;
}

.ggl-customer-kyc-member span{
  color:var(--muted);
  font-size:12px;
}

.ggl-customer-kyc-member strong{
  margin:5px 0;
  font-size:20px;
}

.ggl-customer-kyc-info{
  padding:14px;
  border-radius:15px;
  background:#eef6ff;
  border:1px solid #cbdff4;
}

.ggl-customer-kyc-info strong{
  color:#0758a7;
}

.ggl-customer-kyc-info p{
  margin:6px 0 0;
  color:#536b7d;
  line-height:1.5;
}

.ggl-customer-kyc-url{
  display:grid;
  gap:7px;
}

.ggl-customer-kyc-url span{
  font-weight:800;
}

.ggl-customer-kyc-url textarea{
  width:100%;
  min-height:112px;
  padding:13px;
  resize:none;
  border-radius:14px;
  border:1px solid var(--line);
  background:#f8fbfa;
  overflow-wrap:anywhere;
}

.ggl-customer-kyc-expiry{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:13px;
  border-radius:14px;
  background:#fff4dc;
  border:1px solid #ecd697;
}

.ggl-customer-kyc-link-actions{
  display:grid;
  grid-template-columns:1fr 1.35fr;
  gap:10px;
}

.ggl-customer-kyc-review-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.ggl-customer-kyc-review-grid>div{
  min-width:0;
  padding:13px;
  border-radius:14px;
  background:#eef6f3;
}

.ggl-customer-kyc-review-grid span,
.ggl-customer-kyc-review-grid strong{
  display:block;
}

.ggl-customer-kyc-review-grid span{
  color:var(--muted);
  font-size:11px;
}

.ggl-customer-kyc-review-grid strong{
  margin-top:5px;
  overflow-wrap:anywhere;
}

.ggl-customer-kyc-photo{
  overflow:hidden;
  border-radius:20px;
  background:#10231f;
}

.ggl-customer-kyc-photo img{
  display:block;
  width:100%;
  max-height:54vh;
  object-fit:contain;
}

.ggl-customer-kyc-warning{
  padding:14px;
  border-radius:15px;
  background:#fff3d6;
  border:1px solid #efd58b;
  color:#795100;
  font-weight:700;
  line-height:1.5;
}

.ggl-customer-kyc-review-actions{
  display:grid;
  grid-template-columns:1fr 1.3fr;
  gap:10px;
}

.ggl-customer-kyc-ready{
  margin-top:13px;
  padding:13px 15px;
  border-radius:15px;
  background:#e1f8eb;
  border:1px solid #b9e5ca;
  color:#086344;
}

.ggl-customer-kyc-ready strong,
.ggl-customer-kyc-ready span{
  display:block;
}

.ggl-customer-kyc-ready span{
  margin-top:3px;
  font-size:12px;
}

@media(max-width:420px){
  .ggl-customer-kyc-link-actions,
  .ggl-customer-kyc-review-actions,
  .ggl-customer-kyc-review-grid{
    grid-template-columns:1fr;
  }
}

/* CUSTOMER_SELF_KYC_ADMIN_CSS_V2_END */

/* GGL-MOBILE-REFRESH-V1-START */

.ggl-refresh-button svg,
.ggl-pull-refresh-icon svg{
 width:24px;
 height:24px;
 fill:none;
 stroke:currentColor;
 stroke-width:2;
 stroke-linecap:round;
 stroke-linejoin:round;
}

.ggl-refresh-button:disabled{
 opacity:.72;
 cursor:wait;
}

body.ggl-refreshing
.ggl-refresh-button svg{
 animation:
  ggl-refresh-spin
  .72s linear infinite;
}

.ggl-pull-refresh{
 --ggl-pull-distance:0px;

 position:fixed;
 z-index:20050;
 top:
  calc(
   env(safe-area-inset-top)
   + 70px
  );
 left:50%;

 display:flex;
 align-items:center;
 justify-content:center;
 gap:9px;

 min-height:42px;
 padding:8px 14px;

 border:1px solid
  rgba(15,111,89,.18);
 border-radius:999px;

 background:
  rgba(255,255,255,.97);

 color:#087257;

 box-shadow:
  0 10px 30px
  rgba(7,64,52,.18);

 font-size:12px;
 font-weight:800;
 white-space:nowrap;

 opacity:0;
 pointer-events:none;

 transform:
  translate(
   -50%,
   calc(
    -58px
    + var(--ggl-pull-distance)
   )
  );

 transition:
  opacity .16s ease,
  transform .16s ease;
}

.ggl-pull-refresh.show{
 opacity:1;
}

.ggl-pull-refresh.ready{
 color:#075b43;
 border-color:
  rgba(7,91,67,.35);
}

.ggl-pull-refresh.refreshing{
 opacity:1;

 transform:
  translate(
   -50%,
   12px
  );
}

.ggl-pull-refresh.refreshing
.ggl-pull-refresh-icon{
 animation:
  ggl-refresh-spin
  .72s linear infinite;
}

body.gg-dark
.ggl-pull-refresh{
 background:
  rgba(19,35,32,.97);

 color:#8fe1c9;

 border-color:
  rgba(143,225,201,.24);

 box-shadow:
  0 12px 34px
  rgba(0,0,0,.38);
}

@keyframes ggl-refresh-spin{
 from{
  transform:rotate(0deg);
 }

 to{
  transform:rotate(360deg);
 }
}

@media(max-width:390px){
 .ggl-topbar-actions{
  gap:6px;
 }

 .ggl-refresh-button,
 .ggl-theme-button{
  width:44px;
  min-width:44px;
  height:44px;
 }

 .ggl-profile-button{
  width:48px;
  min-width:48px;
  height:48px;
 }
}

/* GGL-MOBILE-REFRESH-V1-END */

/* TEAM_ACTION_VISIBILITY_FIX_START */

/*
  The mobile bottom navigation is fixed.
  Teams receive additional safe scrolling space so the final
  card and its action buttons remain fully visible.
*/

.main[data-page="teams"]{
  padding-bottom:
    calc(190px + env(safe-area-inset-bottom))
    !important;
}

.main[data-page="teams"] > .card:last-child{
  margin-bottom:42px!important;
}

.main[data-page="teams"] .data-list{
  padding-bottom:34px!important;
}

.main[data-page="teams"] .data-card{
  overflow:visible!important;
}

.main[data-page="teams"] .data-card:last-child{
  margin-bottom:44px!important;
  scroll-margin-bottom:
    calc(150px + env(safe-area-inset-bottom));
}

.main[data-page="teams"] .card-actions{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:12px!important;
  width:100%!important;
  margin-top:18px!important;
}

.main[data-page="teams"] .card-actions .btn{
  width:100%!important;
  min-width:0!important;
  min-height:56px!important;
  margin:0!important;
  padding:13px 16px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  white-space:normal!important;
  text-align:center!important;
  line-height:1.25!important;
  font-size:17px!important;
  font-weight:850!important;
  border-radius:15px!important;
}

.main[data-page="teams"]
[data-team-view]{
  color:#162338!important;
  background:#ffffff!important;
  border:1px solid #cbd5df!important;
}

.main[data-page="teams"]
[data-team-approve]{
  color:#ffffff!important;
  background:
    linear-gradient(
      135deg,
      #086aa5,
      #1487ba
    )
    !important;
  border:1px solid #086aa5!important;
  box-shadow:
    0 9px 20px rgba(8,106,165,.20)
    !important;
}

.main[data-page="teams"]
[data-team-approve]::before{
  content:"✓";
  margin-right:9px;
  font-size:18px;
  font-weight:900;
}

@media(max-width:430px){
  .main[data-page="teams"]{
    padding-bottom:
      calc(210px + env(safe-area-inset-bottom))
      !important;
  }

  .main[data-page="teams"] .data-card:last-child{
    margin-bottom:58px!important;
  }
}

/* TEAM_ACTION_VISIBILITY_FIX_END */

/* TEAM_MEMBER_MANAGEMENT_V1_START */

.ggl-team-management,
.ggl-add-team-member{
  display:grid;
  gap:18px;
  padding-bottom:
    max(24px,env(safe-area-inset-bottom));
}

.ggl-team-summary,
.ggl-team-member-directory{
  padding:18px;
  border-radius:22px;
  border:1px solid #d4e1e7;
  background:#ffffff;
}

.ggl-team-identity,
.ggl-team-section-head,
.ggl-team-member-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}

.ggl-team-identity span,
.ggl-team-section-head span{
  color:#1573a7;
  font-size:11px;
  font-weight:900;
  letter-spacing:.12em;
}

.ggl-team-identity h2,
.ggl-team-section-head h2{
  margin:5px 0 0;
  color:#142238;
  font-size:25px;
  line-height:1.2;
}

.ggl-team-identity p{
  margin:5px 0 0;
  color:#687789;
}

.ggl-team-status{
  flex:none;
  padding:8px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}

.ggl-team-status.is-approved{
  color:#147728;
  background:#e0f6dd;
}

.ggl-team-status.is-pending{
  color:#986b00;
  background:#fff2c9;
}

.ggl-team-status.is-rejected{
  color:#a52319;
  background:#ffe3df;
}

.ggl-team-status.is-neutral{
  color:#536272;
  background:#eaf0f4;
}

.ggl-team-stat-grid,
.ggl-team-date-grid,
.ggl-team-member-meta{
  display:grid;
  grid-template-columns:
    repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:17px;
}

.ggl-team-stat-grid>div,
.ggl-team-date-grid>div,
.ggl-team-member-meta>div{
  min-width:0;
  padding:13px;
  border-radius:15px;
  background:#f2f6fa;
}

.ggl-team-stat-grid span,
.ggl-team-date-grid span,
.ggl-team-member-meta span{
  display:block;
  color:#69798a;
  font-size:11px;
}

.ggl-team-stat-grid strong,
.ggl-team-date-grid strong,
.ggl-team-member-meta strong{
  display:block;
  margin-top:5px;
  color:#17253a;
  overflow-wrap:anywhere;
}

.ggl-team-section-head{
  align-items:center;
  margin-bottom:16px;
}

.ggl-team-section-head .btn{
  flex:none;
  min-height:45px;
}

.ggl-team-member-list,
.ggl-eligible-list{
  display:grid;
  gap:13px;
}

.ggl-team-member-card,
.ggl-eligible-member{
  padding:15px;
  border:1px solid #d7e2e8;
  border-radius:18px;
  background:#fbfdfe;
}

.ggl-team-member-head h3{
  margin:0;
  color:#15243a;
  font-size:20px;
}

.ggl-team-member-head p{
  margin:5px 0 0;
  color:#697789;
  overflow-wrap:anywhere;
}

.ggl-team-member-actions{
  display:grid;
  grid-template-columns:1fr 1.35fr;
  gap:10px;
  margin-top:14px;
}

.ggl-team-member-actions .btn{
  width:100%;
  min-height:48px;
}

.ggl-team-empty{
  min-height:190px;
  display:grid;
  place-items:center;
  align-content:center;
  gap:8px;
  padding:22px;
  border:2px dashed #c9d8df;
  border-radius:18px;
  text-align:center;
  color:#6b7988;
}

.ggl-team-empty>div{
  font-size:36px;
}

.ggl-team-empty strong{
  color:#17263b;
  font-size:18px;
}

.ggl-team-empty span{
  max-width:360px;
  line-height:1.5;
}

.ggl-team-notice{
  margin-bottom:14px;
  padding:14px;
  border-radius:15px;
  line-height:1.5;
  font-weight:700;
}

.ggl-team-notice.warning{
  color:#7e5700;
  background:#fff3d5;
  border:1px solid #eed48e;
}

.ggl-team-loading{
  min-height:260px;
  display:grid;
  place-items:center;
  align-content:center;
  gap:12px;
}

.ggl-team-loading.compact{
  min-height:150px;
}

.ggl-team-loading>div{
  width:42px;
  height:42px;
  border:4px solid #d9e7ed;
  border-top-color:#1479ad;
  border-radius:50%;
  animation:gglTeamSpin .8s linear infinite;
}

@keyframes gglTeamSpin{
  to{
    transform:rotate(360deg);
  }
}

.ggl-team-loading p{
  margin:0;
  color:#677789;
}

.ggl-team-error{
  padding:18px;
  border:1px solid #f0bdb8;
  border-radius:17px;
  color:#9e2d23;
  background:#fff0ee;
}

.ggl-team-error strong{
  display:block;
}

.ggl-team-error p{
  margin:7px 0 14px;
  line-height:1.5;
}

.ggl-add-member-team{
  padding:16px;
  border-radius:18px;
  color:#ffffff;
  background:
    linear-gradient(
      135deg,
      #0c6094,
      #1493ae
    );
}

.ggl-add-member-team span,
.ggl-add-member-team strong,
.ggl-add-member-team small{
  display:block;
}

.ggl-add-member-team span{
  font-size:11px;
  font-weight:900;
  letter-spacing:.12em;
  opacity:.8;
}

.ggl-add-member-team strong{
  margin-top:5px;
  font-size:23px;
}

.ggl-add-member-team small{
  margin-top:5px;
  opacity:.9;
}

.ggl-eligible-search{
  display:grid;
  grid-template-columns:minmax(0,1fr) 130px;
  gap:12px;
  padding:15px;
  border:1px solid #d5e1e7;
  border-radius:18px;
  background:#f7fafc;
}

.ggl-eligible-search label{
  display:grid;
  gap:6px;
}

.ggl-eligible-search label span{
  color:#435366;
  font-size:12px;
  font-weight:800;
}

.ggl-eligible-search input,
.ggl-eligible-search select{
  width:100%;
  min-height:47px;
  padding:0 12px;
  border:1px solid #cbd8df;
  border-radius:13px;
  color:#15243a;
  background:#ffffff;
}

.ggl-eligible-search>button{
  grid-column:1/-1;
  width:100%;
  min-height:48px;
}

.ggl-eligible-member{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:13px;
  align-items:center;
}

.ggl-eligible-member strong,
.ggl-eligible-member span,
.ggl-eligible-member small{
  display:block;
}

.ggl-eligible-member strong{
  color:#15243a;
  font-size:17px;
}

.ggl-eligible-member span{
  margin-top:5px;
  color:#657587;
}

.ggl-eligible-member small{
  margin-top:5px;
  color:#16803d;
  font-weight:800;
}

.ggl-eligible-member .btn{
  min-width:88px;
  min-height:45px;
}

.ggl-back-team{
  width:100%;
  min-height:48px;
}

.ggl-team-member-modal{
  padding-bottom:
    max(20px,env(safe-area-inset-bottom));
}

@media(max-width:480px){
  .ggl-team-identity,
  .ggl-team-section-head{
    align-items:flex-start;
  }

  .ggl-team-section-head{
    display:grid;
    grid-template-columns:1fr;
  }

  .ggl-team-section-head .btn{
    width:100%;
  }

  .ggl-eligible-search{
    grid-template-columns:1fr;
  }

  .ggl-eligible-search>button{
    grid-column:auto;
  }
}

@media(max-width:380px){
  .ggl-team-stat-grid,
  .ggl-team-date-grid,
  .ggl-team-member-meta,
  .ggl-team-member-actions{
    grid-template-columns:1fr;
  }

  .ggl-eligible-member{
    grid-template-columns:1fr;
  }

  .ggl-eligible-member .btn{
    width:100%;
  }
}

/* TEAM_MEMBER_MANAGEMENT_V1_END */

/* GGL-TEAM-MANAGEMENT-V3-START */

.ggl-team-v3-panel{
 margin:28px;
 padding:22px;
 border:1px solid rgba(19,78,99,.16);
 border-radius:24px;
 background:#fff;
}

.ggl-team-v3-panel-head{
 margin-bottom:18px;
}

.ggl-team-v3-panel-head > span,
.ggl-team-v3-summary > span{
 display:block;
 margin-bottom:7px;
 color:#14799f;
 font-size:12px;
 font-weight:900;
 letter-spacing:.12em;
}

.ggl-team-v3-panel-head h3,
.ggl-team-v3-summary h3{
 margin:0;
 color:#15243c;
 font-size:27px;
 line-height:1.2;
}

.ggl-team-v3-panel-head p,
.ggl-team-v3-summary p{
 margin:7px 0 0;
 color:#748092;
 line-height:1.55;
}

.ggl-team-v3-toolbar{
 display:grid;
 grid-template-columns:
  repeat(2,minmax(0,1fr));
 gap:11px;
}

.ggl-team-v3-toolbar .btn{
 min-height:52px;
 border-radius:16px;
 font-weight:800;
}

.ggl-team-v3-member-title{
 margin:26px 0 12px;
 color:#15243c;
 font-size:20px;
}

.ggl-team-v3-member-list{
 display:grid;
 gap:12px;
}

.ggl-team-v3-member-row{
 display:grid;
 grid-template-columns:
  minmax(0,1fr) auto;
 align-items:center;
 gap:14px;

 padding:17px;

 border:1px solid
  rgba(24,69,89,.13);

 border-radius:19px;
 background:#f8fafc;
}

.ggl-team-v3-member-info{
 min-width:0;
}

.ggl-team-v3-member-info strong{
 display:block;
 color:#15243c;
 font-size:18px;
 overflow-wrap:anywhere;
}

.ggl-team-v3-member-info small{
 display:block;
 margin-top:5px;
 color:#748092;
 overflow-wrap:anywhere;
}

.ggl-team-v3-member-info span,
.ggl-team-v3-history-head > span{
 display:inline-flex;
 align-items:center;
 justify-content:center;

 min-height:31px;
 margin-top:10px;
 padding:5px 12px;

 border-radius:999px;

 font-size:11px;
 font-weight:900;
}

.ggl-team-v3-member-info span.paid,
.ggl-team-v3-history-head > span.paid{
 color:#167d30;
 background:#dcf4d8;
}

.ggl-team-v3-member-info span.pending,
.ggl-team-v3-history-head > span.pending{
 color:#966000;
 background:#fff0c6;
}

.ggl-team-v3-member-actions{
 display:grid;
 grid-template-columns:
  repeat(2,minmax(0,1fr));
 gap:8px;
}

.ggl-team-v3-member-actions .btn{
 min-height:46px;
 border-radius:13px;
 font-weight:800;
 white-space:nowrap;
}

.ggl-team-v3-note{
 padding:15px;

 border-radius:15px;

 color:#086249;
 background:rgba(8,114,87,.08);

 font-size:13px;
 line-height:1.55;
}

.ggl-team-v3-summary{
 margin-bottom:20px;
 padding:20px;

 border:1px solid
  rgba(19,78,99,.14);

 border-radius:20px;

 background:
  linear-gradient(
   145deg,
   #f4f8fb,
   #eef7f4
  );
}

.ggl-team-v3-history-list{
 display:grid;
 gap:14px;
}

.ggl-team-v3-history-card{
 padding:18px;

 border:1px solid
  rgba(24,69,89,.14);

 border-radius:20px;
 background:#fff;
}

.ggl-team-v3-history-head{
 display:flex;
 justify-content:space-between;
 align-items:flex-start;
 gap:12px;
 margin-bottom:15px;
}

.ggl-team-v3-history-head strong{
 display:block;
 color:#15243c;
 font-size:17px;
 overflow-wrap:anywhere;
}

.ggl-team-v3-history-head small{
 display:block;
 margin-top:5px;
 color:#748092;
}

.ggl-team-v3-history-head > span{
 margin-top:0;
}

.ggl-team-v3-history-grid{
 display:grid;
 grid-template-columns:
  repeat(2,minmax(0,1fr));
 gap:10px;
}

.ggl-team-v3-history-grid > div{
 min-width:0;
 padding:13px;
 border-radius:14px;
 background:#f2f5f9;
}

.ggl-team-v3-history-grid > div.full{
 grid-column:1/-1;
}

.ggl-team-v3-history-grid small{
 display:block;
 margin-bottom:5px;
 color:#748092;
}

.ggl-team-v3-history-grid strong{
 display:block;
 color:#15243c;
 overflow-wrap:anywhere;
}

.ggl-team-v3-empty{
 padding:25px 16px;

 border:1px dashed
  rgba(25,73,92,.25);

 border-radius:17px;

 color:#748092;
 text-align:center;
}

body.gg-dark
.ggl-team-v3-panel,
body.gg-dark
.ggl-team-v3-history-card{
 border-color:
  rgba(139,221,196,.16);

 background:#14231f;
}

body.gg-dark
.ggl-team-v3-member-row{
 border-color:
  rgba(139,221,196,.14);

 background:#192b26;
}

body.gg-dark
.ggl-team-v3-summary{
 border-color:
  rgba(139,221,196,.15);

 background:#192b26;
}

body.gg-dark
.ggl-team-v3-panel-head h3,
body.gg-dark
.ggl-team-v3-member-title,
body.gg-dark
.ggl-team-v3-member-info strong,
body.gg-dark
.ggl-team-v3-summary h3,
body.gg-dark
.ggl-team-v3-history-head strong,
body.gg-dark
.ggl-team-v3-history-grid strong{
 color:#e7f5f0;
}

body.gg-dark
.ggl-team-v3-history-grid > div{
 background:#1c302a;
}

@media(max-width:680px){
 .ggl-team-v3-panel{
  margin:20px 16px;
  padding:17px;
 }

 .ggl-team-v3-toolbar{
  grid-template-columns:1fr;
 }

 .ggl-team-v3-member-row{
  grid-template-columns:1fr;
 }

 .ggl-team-v3-member-actions{
  grid-template-columns:1fr 1fr;
 }

 .ggl-team-v3-member-actions .btn{
  width:100%;
  white-space:normal;
 }

 .ggl-team-v3-history-grid{
  grid-template-columns:1fr;
 }

 .ggl-team-v3-history-grid > div.full{
  grid-column:auto;
 }
}

@media(max-width:390px){
 .ggl-team-v3-member-actions{
  grid-template-columns:1fr;
 }
}

/* GGL-TEAM-MANAGEMENT-V3-END */

/* GGL_PERSON_VAULT_FINAL_UI */
.ggl-vault-search-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;margin-top:16px}.ggl-vault-search-form input{min-height:48px;border:1px solid var(--border,#d9e1ea);border-radius:12px;padding:0 14px;background:var(--surface,#fff);color:inherit}.ggl-vault-security-note{display:block;margin-top:12px;padding:12px;border-radius:12px;background:rgba(14,116,144,.08);line-height:1.55}.ggl-vault-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.ggl-vault-chips span{font-size:12px;padding:5px 8px;border-radius:999px;background:rgba(37,99,235,.08)}.ggl-vault-timeline{display:grid;gap:0}.ggl-vault-timeline article{display:grid;grid-template-columns:20px 1fr;gap:12px;position:relative;padding:0 0 20px}.ggl-vault-timeline article:before{content:"";position:absolute;left:7px;top:14px;bottom:-4px;width:2px;background:var(--border,#d9e1ea)}.ggl-vault-timeline article:last-child:before{display:none}.ggl-vault-timeline i{width:16px;height:16px;border-radius:50%;background:#2563eb;margin-top:3px;z-index:1}.ggl-vault-timeline strong,.ggl-vault-timeline small{display:block}.ggl-vault-timeline pre{white-space:pre-wrap;word-break:break-word;font-size:12px;max-height:180px;overflow:auto;background:rgba(15,23,42,.04);padding:10px;border-radius:10px}@media(max-width:640px){.ggl-vault-search-form{grid-template-columns:1fr}.ggl-vault-search-form .btn{width:100%}}

/* GGL_IDENTITY_SECURITY_UI_V31 */
.ggl-idsec-panel{
  display:grid;
  gap:22px;
  margin-bottom:24px;
  border:1px solid rgba(20,65,95,.14);
  background:
    linear-gradient(
      145deg,
      rgba(238,249,255,.96),
      rgba(255,255,255,.98)
    );
}

.ggl-idsec-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}

.ggl-idsec-head span{
  display:block;
  color:#116491;
  font-size:12px;
  font-weight:900;
  letter-spacing:.12em;
}

.ggl-idsec-head h2{
  margin:6px 0 8px;
  font-size:clamp(24px,5vw,38px);
  line-height:1.05;
  color:#142038;
}

.ggl-idsec-head p{
  margin:0;
  max-width:720px;
  color:#65717d;
  line-height:1.6;
}

.ggl-idsec-head>b{
  padding:9px 14px;
  border-radius:999px;
  background:#fff1ca;
  color:#8a5a00;
  font-size:12px;
  white-space:nowrap;
}

.ggl-idsec-head>b[data-status="ACTIVE"]{
  background:#ddf7e2;
  color:#177626;
}

.ggl-idsec-kpis{
  display:grid;
  grid-template-columns:
    repeat(4,minmax(0,1fr));
  gap:12px;
}

.ggl-idsec-kpis>div{
  min-height:105px;
  padding:17px;
  border:1px solid rgba(20,65,95,.12);
  border-radius:22px;
  background:rgba(255,255,255,.92);
}

.ggl-idsec-kpis span{
  display:block;
  margin-bottom:10px;
  color:#6d777e;
  font-size:13px;
}

.ggl-idsec-kpis strong{
  color:#142038;
  font-size:18px;
  overflow-wrap:anywhere;
}

.ggl-idsec-actions{
  display:grid;
  grid-template-columns:
    repeat(3,minmax(0,1fr));
  gap:10px;
}

.ggl-idsec-actions button,
.ggl-idsec-request-actions button,
.ggl-idsec-queue-head button,
.ggl-idsec-history button{
  min-height:48px;
  padding:12px 16px;
  border:0;
  border-radius:15px;
  background:#146f9f;
  color:#fff;
  font:inherit;
  font-weight:800;
  cursor:pointer;
}

.ggl-idsec-actions button:hover,
.ggl-idsec-request-actions button:hover{
  filter:brightness(.96);
}

.ggl-idsec-policy{
  display:grid;
  gap:9px;
  padding:18px;
  border-radius:20px;
  background:#e9f3f7;
  color:#1c2b37;
}

.ggl-idsec-policy strong{
  font-size:18px;
}

.ggl-idsec-policy span{
  display:flex;
  gap:8px;
  line-height:1.5;
}

.ggl-idsec-policy span::before{
  content:"✓";
  color:#087957;
  font-weight:900;
}

.ggl-idsec-queue-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.ggl-idsec-queue-head h3{
  margin:0;
  color:#142038;
  font-size:22px;
}

.ggl-idsec-queue{
  display:grid;
  gap:14px;
}

.ggl-idsec-request{
  display:grid;
  gap:13px;
  padding:18px;
  border:1px solid rgba(20,65,95,.14);
  border-radius:20px;
  background:#fff;
}

.ggl-idsec-request>div:first-child{
  display:grid;
  gap:4px;
}

.ggl-idsec-request span,
.ggl-idsec-request small{
  color:#68747c;
}

.ggl-idsec-request strong{
  color:#142038;
  font-size:18px;
}

.ggl-idsec-status{
  width:max-content;
  padding:7px 11px;
  border-radius:999px;
  background:#eef3f6;
  color:#233444;
  font-size:12px;
  font-weight:900;
}

.ggl-idsec-request pre,
.ggl-idsec-json{
  max-width:100%;
  margin:0;
  padding:14px;
  overflow:auto;
  border-radius:14px;
  background:#f4f6f8;
  color:#172333;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}

.ggl-idsec-request p{
  margin:0;
  color:#4f5d68;
  line-height:1.55;
}

.ggl-idsec-request-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.ggl-idsec-request-actions .danger{
  background:#b62e36;
}

.ggl-idsec-empty,
.ggl-idsec-loading{
  padding:35px 18px;
  border:1px dashed #b8c5cc;
  border-radius:20px;
  color:#718087;
  text-align:center;
}

.ggl-idsec-error{
  padding:20px;
  border-radius:18px;
  background:#fff0f0;
  color:#91252c;
}

.ggl-idsec-modal-backdrop{
  position:fixed;
  inset:0;
  z-index:99999;
  display:grid;
  place-items:center;
  padding:18px;
  background:rgba(10,20,35,.58);
  backdrop-filter:blur(8px);
}

.ggl-idsec-modal{
  width:min(100%,680px);
  max-height:92vh;
  overflow:auto;
  border-radius:26px;
  background:#fff;
  box-shadow:0 28px 80px rgba(0,0,0,.28);
}

.ggl-idsec-modal>header{
  position:sticky;
  top:0;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:20px 22px;
  border-bottom:1px solid #e3e8ec;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(10px);
}

.ggl-idsec-modal h2{
  margin:0;
  color:#142038;
  font-size:23px;
}

.ggl-idsec-modal>header button{
  width:42px;
  height:42px;
  border:0;
  border-radius:50%;
  background:#eef3f6;
  color:#172333;
  font-size:28px;
  cursor:pointer;
}

.ggl-idsec-modal-body{
  padding:22px;
}

.ggl-idsec-form{
  display:grid;
  gap:16px;
}

.ggl-idsec-form p{
  margin:0;
  color:#5f6c75;
  line-height:1.55;
}

.ggl-idsec-form label{
  display:grid;
  gap:7px;
}

.ggl-idsec-form label>span{
  color:#263746;
  font-weight:800;
}

.ggl-idsec-form input,
.ggl-idsec-form select,
.ggl-idsec-form textarea{
  width:100%;
  min-height:50px;
  box-sizing:border-box;
  padding:12px 14px;
  border:1px solid #bbc6cd;
  border-radius:14px;
  background:#fff;
  color:#152235;
  font:inherit;
}

.ggl-idsec-form textarea{
  resize:vertical;
}

.ggl-idsec-primary{
  min-height:52px;
  border:0;
  border-radius:15px;
  background:#146f9f;
  color:#fff;
  font:inherit;
  font-weight:900;
  cursor:pointer;
}

.ggl-idsec-primary:disabled{
  opacity:.55;
  cursor:wait;
}

.ggl-idsec-key{
  display:grid;
  gap:9px;
  margin:20px 0;
  padding:18px;
  border-radius:17px;
  background:#eef7fb;
}

.ggl-idsec-key strong{
  padding:12px;
  border-radius:11px;
  background:#fff;
  color:#142038;
  font-family:monospace;
  font-size:16px;
  overflow-wrap:anywhere;
  user-select:all;
}

.ggl-idsec-warning{
  padding:14px;
  border-radius:14px;
  background:#fff4d7;
  color:#775100;
  line-height:1.5;
}

.ggl-idsec-history{
  display:grid;
  gap:13px;
}

.ggl-idsec-history h3{
  margin:14px 0 0;
  color:#142038;
}

.ggl-idsec-history article{
  display:grid;
  gap:5px;
  padding:14px;
  border:1px solid #dce4e9;
  border-radius:15px;
  background:#f8fafb;
}

.ggl-idsec-history article code{
  overflow-wrap:anywhere;
  color:#61707a;
  font-size:11px;
}

.ggl-idsec-toast{
  position:fixed;
  z-index:100000;
  left:50%;
  bottom:95px;
  max-width:min(90vw,520px);
  padding:14px 18px;
  border-radius:14px;
  background:#132235;
  color:#fff;
  font-weight:800;
  opacity:0;
  pointer-events:none;
  transform:translate(-50%,20px);
  transition:.2s ease;
  box-shadow:0 16px 38px rgba(0,0,0,.25);
}

.ggl-idsec-toast.show{
  opacity:1;
  transform:translate(-50%,0);
}

.ggl-idsec-toast[data-type="success"]{
  background:#0b7457;
}

.ggl-idsec-toast[data-type="error"]{
  background:#a22931;
}

@media(max-width:760px){
  .ggl-idsec-head{
    display:grid;
  }

  .ggl-idsec-head>b{
    width:max-content;
  }

  .ggl-idsec-kpis{
    grid-template-columns:1fr 1fr;
  }

  .ggl-idsec-actions{
    grid-template-columns:1fr;
  }

  .ggl-idsec-request-actions{
    grid-template-columns:1fr;
  }

  .ggl-idsec-modal-backdrop{
    align-items:end;
    padding:0;
  }

  .ggl-idsec-modal{
    width:100%;
    max-height:94vh;
    border-radius:26px 26px 0 0;
  }
}

@media(max-width:380px){
  .ggl-idsec-kpis{
    grid-template-columns:1fr;
  }
}
/* GGL_R9_V32_FINAL_START */
/* GGL R9 V32 FINAL UI + SCROLL STABILITY */
html{scroll-behavior:auto!important;overflow-anchor:none}
body{overscroll-behavior-y:none}
.v32-draw-root{--v32-green:#075d46;--v32-green2:#0b7a59;--v32-gold:#c9a227;--v32-ink:#17211d;--v32-muted:#66736d;--v32-line:#dfe8e3;--v32-bg:#f7faf8;max-width:1180px;margin:0 auto;padding:18px 16px 110px;overflow-anchor:none}
.v32-draw-root *{box-sizing:border-box}
.v32-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:2px 0 14px}
.v32-head h1{margin:3px 0 4px;font-size:clamp(24px,4vw,36px);line-height:1.1;color:var(--v32-ink)}
.v32-head p,.v32-card-head p{margin:0;color:var(--v32-muted);line-height:1.5}
.v32-kicker{font-size:11px;font-weight:800;letter-spacing:.11em;color:var(--v32-green)}
.v32-head-actions,.v32-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.v32-tabs{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:4px 0 14px;overscroll-behavior-x:contain}
.v32-tabs::-webkit-scrollbar{display:none}
.v32-tabs button{flex:0 0 auto;min-height:44px;padding:0 14px;border:1px solid var(--v32-line);border-radius:12px;background:#fff;color:var(--v32-ink);font:inherit;font-weight:700;cursor:pointer}
.v32-card{background:#fff;border:1px solid var(--v32-line);border-radius:18px;padding:18px;margin:0 0 14px;box-shadow:0 6px 22px rgba(8,46,34,.055);overflow-anchor:none}
.v32-card-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:14px}
.v32-card-head h2{margin:0 0 4px;font-size:18px;color:var(--v32-ink)}
.v32-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 14px}
.v32-metric{background:#fff;border:1px solid var(--v32-line);border-radius:16px;padding:14px;min-height:96px;display:flex;flex-direction:column;gap:5px;justify-content:center}
.v32-metric span{font-size:12px;color:var(--v32-muted);font-weight:700}
.v32-metric strong{font-size:22px;color:var(--v32-green);overflow-wrap:anywhere}
.v32-metric small{color:var(--v32-muted)}
.v32-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:12px 0}
.v32-meta>div{border:1px solid var(--v32-line);border-radius:12px;padding:10px;background:var(--v32-bg);min-width:0}
.v32-meta span{display:block;font-size:11px;color:var(--v32-muted);font-weight:700;margin-bottom:3px}
.v32-meta strong{display:block;color:var(--v32-ink);font-size:13px;overflow-wrap:anywhere}
.v32-list{display:grid;gap:9px}
.v32-row{border:1px solid var(--v32-line);border-radius:14px;padding:12px;display:grid;grid-template-columns:minmax(0,1.3fr) auto minmax(0,1fr);align-items:center;gap:12px;background:#fff;overflow-anchor:none}
.v32-row>div:first-child{min-width:0}
.v32-row strong{display:block;color:var(--v32-ink);overflow-wrap:anywhere}
.v32-row small{display:block;color:var(--v32-muted);margin-top:3px;overflow-wrap:anywhere}
.v32-status{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:4px 9px;border-radius:999px;background:#eaf6f0;color:var(--v32-green);font-size:11px;font-weight:800;white-space:nowrap}
.v32-alert{border:1px solid #d7e7df;border-radius:13px;padding:12px 14px;margin:0 0 12px;background:#f2faf6;color:#285342}
.v32-alert-ok{background:#ecf9f1;color:#17603f;border-color:#ccebd9}
.v32-alert-error{background:#fff1f1;color:#8a2929;border-color:#f2cccc}
.v32-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:end}
.v32-form-grid label{display:flex;flex-direction:column;gap:6px;min-width:0}
.v32-form-grid label>span{font-size:12px;color:var(--v32-muted);font-weight:750}
.v32-form-grid input,.v32-form-grid select,.v32-wide-select{width:100%;min-height:46px;border:1px solid #cfdcd5;border-radius:12px;background:#fff;color:var(--v32-ink);padding:0 12px;font:inherit;outline:none}
.v32-form-grid input:focus,.v32-form-grid select:focus,.v32-wide-select:focus{border-color:var(--v32-green);box-shadow:0 0 0 3px rgba(7,93,70,.1)}
.v32-full{grid-column:1/-1}
.v32-rule-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:14px}
.v32-rule-strip>div{padding:11px;border-radius:12px;background:var(--v32-bg);border:1px solid var(--v32-line)}
.v32-rule-strip span,.v32-rule-strip strong{display:block}.v32-rule-strip span{font-size:11px;color:var(--v32-muted)}.v32-rule-strip strong{margin-top:4px;color:var(--v32-ink)}
.v32-flow{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.v32-flow b{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--v32-green);color:#fff}.v32-flow span{font-weight:700}.v32-flow i{font-style:normal;color:var(--v32-gold);font-weight:900}
.v32-note{color:var(--v32-muted);font-size:13px;line-height:1.5;margin:14px 0 0}
.v32-winner-mini,.v32-winner-box{border:1px solid #e5d8a5;background:linear-gradient(135deg,#fffdf5,#fbf6de);border-radius:16px;padding:16px;text-align:center;margin-top:14px}
.v32-winner-mini span,.v32-winner-box span{display:block;color:#8b7220;font-size:11px;font-weight:900;letter-spacing:.08em}.v32-winner-mini strong,.v32-winner-box strong{display:block;font-size:22px;color:#26362f;margin:5px 0}.v32-winner-mini small,.v32-winner-box small{color:#6e6d5b}
.v32-live-panel{background:#fff;border:1px solid var(--v32-line);border-radius:20px;padding:18px;margin:0 0 14px;overflow-anchor:none}
.v32-live-state{text-align:center;padding:10px 0 14px}.v32-live-state span{display:block;color:var(--v32-muted);font-size:11px;font-weight:800}.v32-live-state strong{display:block;color:var(--v32-green);font-size:32px;letter-spacing:.02em;margin:4px}.v32-live-state small{color:var(--v32-muted)}
.v32-actions-center{justify-content:center;margin-top:14px}

/* One consistent button family across the application. */
.btn,.card-actions .btn,.modal .btn,.drawer .btn{min-height:44px!important;border-radius:12px!important;padding:0 16px!important;font:inherit!important;font-weight:750!important;line-height:1.15!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;cursor:pointer;transition:transform .12s ease,box-shadow .12s ease,opacity .12s ease}
.btn:active{transform:translateY(1px)}
.btn-primary{background:#075d46!important;border:1px solid #075d46!important;color:#fff!important;box-shadow:0 4px 12px rgba(7,93,70,.16)}
.btn-secondary{background:#fff!important;border:1px solid #cbdad3!important;color:#234b3d!important}
.btn-danger{background:#fff!important;border:1px solid #e2baba!important;color:#9b3030!important}
.btn:disabled,.btn[disabled]{opacity:.48!important;cursor:not-allowed!important;transform:none!important;box-shadow:none!important}
.control-tabs button,.filter-tabs button{min-height:44px!important;border-radius:12px!important;padding:0 14px!important;font-weight:750!important}
.module-tiles button,.quick-list button,.people-secondary-grid button{border-radius:14px!important;min-height:52px!important}

/* Header/safe-area corrections without changing role permissions or shell logic. */
@media(max-width:700px){
  .v32-draw-root{padding:12px 12px 104px}
  .v32-head{display:block}.v32-head-actions{margin-top:12px}
  .v32-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .v32-meta{grid-template-columns:repeat(2,minmax(0,1fr))}
  .v32-form-grid{grid-template-columns:1fr 1fr}
  .v32-rule-strip{grid-template-columns:1fr}
  .v32-row{grid-template-columns:minmax(0,1fr) auto}.v32-row>.v32-meta,.v32-row>.v32-actions{grid-column:1/-1}
  .v32-actions>.btn{flex:1 1 145px}
  .topbar,.app-topbar,.super-admin-topbar,.shell-topbar{padding-left:max(10px,env(safe-area-inset-left))!important;padding-right:max(10px,env(safe-area-inset-right))!important}
  .topbar h1,.app-topbar h1,.super-admin-topbar h1,.shell-topbar h1,.topbar-title,.page-title{min-width:0!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:17px!important}
}
@media(max-width:430px){.v32-form-grid{grid-template-columns:1fr}.v32-metrics{grid-template-columns:1fr 1fr}.v32-meta{grid-template-columns:1fr}.v32-row{grid-template-columns:1fr}.v32-row>.v32-status{justify-self:start}.v32-head-actions .btn{flex:1}.v32-card{padding:14px}}

/* GGL_R9_V32_FINAL_END */


/* GGL_R9_NATIVE_SCROLL_START */
/* Android WebView: native vertical scrolling is authoritative. */
html {
  overflow-y: auto !important;
  touch-action: pan-y !important;
  -webkit-overflow-scrolling: touch;
}

body:not(.ggl-sheet-open):not(.ggl-drawer-open):not(.drawer-open) {
  overflow-y: auto !important;
  height: auto !important;
  min-height: 100% !important;
  touch-action: pan-y !important;
  -webkit-overflow-scrolling: touch;
}

.app-frame,
.main {
  height: auto !important;
  max-height: none !important;
  overflow-y: visible !important;
  touch-action: pan-y !important;
}

.drawer-scroll {
  overflow-y: auto !important;
  touch-action: pan-y !important;
  -webkit-overflow-scrolling: touch;
}
/* GGL_R9_NATIVE_SCROLL_END */


/* GGL_R11_MOBILE_MAIN_SCROLL_START */
/*
 Mobile application shell:
 - Header remains outside the page scroller.
 - Bottom navigation remains fixed.
 - .main is the one authoritative vertical scroll owner.
 This avoids Android WebView document/body scroll ambiguity.
*/
@media (max-width: 759px) {
  .app-frame {
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    overflow-y: hidden !important;
    overflow-x: hidden !important;
  }

  .app-frame > .main,
  .app-frame .main {
    box-sizing: border-box !important;
    height: calc(100vh - 104px) !important;
    height: calc(100dvh - 104px) !important;
    min-height: 0 !important;
    max-height: calc(100vh - 104px) !important;
    max-height: calc(100dvh - 104px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior-y: contain !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 430px) {
  .app-frame > .main,
  .app-frame .main {
    height: calc(100vh - 94px) !important;
    height: calc(100dvh - 94px) !important;
    max-height: calc(100vh - 94px) !important;
    max-height: calc(100dvh - 94px) !important;
  }
}
/* GGL_R11_MOBILE_MAIN_SCROLL_END */


/* GGL_R12_SINGLE_MENU_FONT_START */
:root,
html,
body,
button,
input,
select,
textarea,
.app-frame,
.ggl-common-topbar,
.drawer,
.drawer-scroll,
.main,
.ggl-menu-sheet,
.v32-root,
.v32-card,
.v32-metric,
.v32-form-grid,
.v32-actions {
  font-family: system-ui, -apple-system, "Noto Sans Tamil", "Noto Sans",
               "Segoe UI", Arial, sans-serif !important;
  font-style: normal !important;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.ggl-common-topbar {
  min-height: 58px !important;
  height: 58px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.ggl-topbar-title strong {
  font-size: 17px !important;
  line-height: 1.12 !important;
  font-weight: 750 !important;
  letter-spacing: 0 !important;
}

.ggl-topbar-title small {
  font-size: 10px !important;
  line-height: 1.1 !important;
  font-weight: 650 !important;
  letter-spacing: .02em !important;
}

.main h1,
.main h2,
.main h3,
.v32-root h1,
.v32-root h2,
.v32-root h3 {
  font-family: inherit !important;
  font-style: normal !important;
  letter-spacing: 0 !important;
}

.v32-root {
  font-size: 14px !important;
  line-height: 1.4 !important;
}

.v32-root .btn,
.v32-root button,
.ggl-menu-sheet button,
.drawer button {
  font-family: inherit !important;
  font-style: normal !important;
}

/* One visible mobile menu header: drawer overlays the page topbar. */
@media (max-width: 759px) {
  .drawer {
    top: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 1300 !important;
  }

  .drawer-overlay {
    inset: 0 !important;
    z-index: 1290 !important;
  }

  .drawer-profile {
    padding-top: max(18px, env(safe-area-inset-top)) !important;
  }

  body.drawer-open .ggl-common-topbar,
  body.ggl-drawer-open .ggl-common-topbar {
    pointer-events: none !important;
  }
}
/* GGL_R12_SINGLE_MENU_FONT_END */


/* GGL_R13_RESPONSIVE_START */

/*
 PHONE/TABLET APP SHELL
 Includes portrait phones AND landscape phones whose CSS width crosses
 the old 760px breakpoint.
*/
@media (max-width: 1023.98px),
       ((orientation: landscape) and (max-height: 900px) and (pointer: coarse)) {

  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    overflow-x: hidden !important;
  }

  .app-frame {
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    overflow: hidden !important;
  }

  /*
   One authoritative vertical scroll owner in every phone orientation.
   The topbar remains outside .main and the fixed bottom navigation
   overlays only the reserved bottom padding.
  */
  .app-frame > .main,
  .app-frame .main {
    box-sizing: border-box !important;
    width: 100% !important;
    height: calc(100vh - 58px) !important;
    height: calc(100dvh - 58px) !important;
    min-height: 0 !important;
    max-height: calc(100vh - 58px) !important;
    max-height: calc(100dvh - 58px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior-y: contain !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: auto !important;
    padding-bottom: calc(92px + env(safe-area-inset-bottom)) !important;
  }

  /*
   Bottom navigation must never disappear on normal routed pages.
   Drawer/modal layers still sit above it because they use larger z-index.
  */
  .bottom-nav.ggl-common-bottom-nav,
  .ggl-common-bottom-nav,
  .ggl-member-bottom-nav {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: 0 !important;
    width: min(100%, 820px) !important;
    max-width: 100% !important;
    min-height: 68px !important;
    height: calc(72px + env(safe-area-inset-bottom)) !important;
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateX(-50%) !important;
    z-index: 1150 !important;
    pointer-events: auto !important;
  }

  .ggl-common-bottom-nav.ggl-four-tabs {
    grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  }

  .ggl-common-bottom-nav.ggl-five-tabs {
    grid-template-columns: repeat(5,minmax(0,1fr)) !important;
  }

  .ggl-common-bottom-nav .ggl-bottom-item {
    min-width: 0 !important;
    min-height: 54px !important;
    padding: 3px 2px !important;
  }

  .ggl-common-bottom-nav small {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  /*
   Metrics/cards must remain visible instead of being pushed outside
   the viewport by a desktop/tablet breakpoint.
  */
  .grid.stats,
  .compact-stats,
  .v32-metrics,
  .ggl-approval-summary,
  .ggl-approval-metrics,
  .metrics {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  .grid.stats > *,
  .compact-stats > *,
  .v32-metrics > *,
  .ggl-approval-summary > *,
  .ggl-approval-metrics > *,
  .metrics > * {
    min-width: 0 !important;
    max-width: 100% !important;
    visibility: visible !important;
  }
}

/* LANDSCAPE PHONE */
@media (orientation: landscape)
       and (max-height: 900px)
       and (pointer: coarse) {

  .ggl-common-topbar {
    min-height: 54px !important;
    height: 54px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .app-frame > .main,
  .app-frame .main {
    height: calc(100vh - 54px) !important;
    height: calc(100dvh - 54px) !important;
    max-height: calc(100vh - 54px) !important;
    max-height: calc(100dvh - 54px) !important;
    padding: 12px 16px calc(76px + env(safe-area-inset-bottom)) !important;
  }

  .bottom-nav.ggl-common-bottom-nav,
  .ggl-common-bottom-nav,
  .ggl-member-bottom-nav {
    width: min(calc(100% - 20px), 760px) !important;
    min-height: 58px !important;
    height: calc(62px + env(safe-area-inset-bottom)) !important;
    border-radius: 16px 16px 0 0 !important;
  }

  .ggl-common-bottom-nav .ggl-bottom-item {
    min-height: 48px !important;
    gap: 2px !important;
  }

  .ggl-common-bottom-nav .ggl-bottom-icon svg {
    width: 20px !important;
    height: 20px !important;
  }

  .ggl-common-bottom-nav small {
    font-size: 9px !important;
    line-height: 1.05 !important;
  }

  .grid.stats,
  .compact-stats,
  .v32-metrics,
  .ggl-approval-summary,
  .ggl-approval-metrics,
  .metrics {
    grid-template-columns: repeat(4,minmax(0,1fr)) !important;
    gap: 8px !important;
  }

  .page-head {
    margin-bottom: 12px !important;
  }

  .page-head h1 {
    font-size: clamp(20px,3vw,28px) !important;
  }

  .card,
  .data-card,
  .v32-card {
    max-width: 100% !important;
  }
}

/* Narrow portrait fallback */
@media (max-width: 430px) and (orientation: portrait) {
  .app-frame > .main,
  .app-frame .main {
    padding-bottom: calc(86px + env(safe-area-inset-bottom)) !important;
  }

  .ggl-common-bottom-nav {
    height: calc(68px + env(safe-area-inset-bottom)) !important;
  }

  .ggl-common-bottom-nav small {
    font-size: 9px !important;
  }
}

/* GGL_R13_RESPONSIVE_END */
