:root{--hgf-blue:#168df2;--hgf-pink:#ec168a;--hgf-green:#78be20;--hgf-orange:#ff9700;--hgf-navy:#101936;--hgf-text:#16213e;--hgf-muted:#69748a;--hgf-line:#e8edf5;--hgf-bg:#f7f9fc;--hgf-shadow:0 14px 36px rgba(16,25,54,.08)}
body:has(.hgf-app),body:has(.hgf-auth-screen){background:var(--hgf-bg)}
.hgf-app,.hgf-auth-screen,.hgf-wrap{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--hgf-text)}
.hgf-app{max-width:1380px;margin:0 auto;display:grid;grid-template-columns:220px 1fr;min-height:88vh;background:#fff;border-radius:0 0 22px 22px;box-shadow:var(--hgf-shadow);overflow:hidden}
.hgf-sidebar{background:#fff;border-right:1px solid var(--hgf-line);padding:24px 18px}.hgf-main{background:linear-gradient(180deg,#fff 0%,#fbfcff 100%);padding:36px 46px;min-width:0}.hgf-logo{text-align:center;line-height:1;margin-bottom:28px;font-weight:900;letter-spacing:.5px}.hgf-logo>span{font-size:40px;display:inline-block}.hgf-logo small,.hgf-logo b{display:block;color:#38445d;letter-spacing:6px;font-size:12px;margin-top:5px}.hgf-logo b{font-size:16px;letter-spacing:3px;margin-top:8px}.hgf-l1{color:#75bd25}.hgf-l2{color:#0d75bc}.hgf-l3{color:#7b178f}.hgf-l4{color:#ee1688}.hgf-l5{color:#0e9de5}.hgf-sidebar nav a{display:flex;align-items:center;gap:12px;padding:13px 14px;border-radius:10px;text-decoration:none;color:#25304c!important;font-weight:700;font-size:14px;margin:7px 0;transition:.18s}.hgf-sidebar nav a:hover,.hgf-sidebar nav a.active{background:var(--hgf-blue);color:#fff!important;box-shadow:0 10px 22px rgba(22,141,242,.22)}.hgf-nav-ico{width:21px;height:21px;display:inline-flex}.hgf-nav-ico svg{width:21px;height:21px;fill:currentColor}
.hgf-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:28px}.hgf-page-head h1,.hgf-form-head h1{font-size:30px;line-height:1.2;margin:0 0 8px;color:var(--hgf-navy)}.hgf-page-head p,.hgf-form-head p{margin:0;color:var(--hgf-muted);font-weight:600}.hgf-user-chip{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--hgf-line);border-radius:999px;padding:8px 14px;box-shadow:0 8px 20px rgba(16,25,54,.05);font-weight:800}.hgf-avatar,.hgf-profile-avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,var(--hgf-blue),#32c7ff);color:#fff;font-weight:900}
.hgf-action-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:26px}.hgf-action{position:relative;min-height:170px;border-radius:16px;padding:26px 22px;color:#fff!important;text-decoration:none;overflow:hidden;box-shadow:0 12px 26px rgba(0,0,0,.13);transition:.18s}.hgf-action:hover{transform:translateY(-3px)}.hgf-action svg{width:58px;height:58px;fill:#fff;opacity:.95;margin-bottom:18px}.hgf-action strong{display:block;font-size:17px;text-transform:uppercase;letter-spacing:.7px;margin-bottom:8px}.hgf-action span{display:block;font-size:14px;line-height:1.5;font-weight:700;opacity:.95}.hgf-action em{position:absolute;right:18px;bottom:18px;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.92);color:inherit;font-style:normal;font-weight:900}.hgf-action.blue{background:linear-gradient(135deg,#0877df,var(--hgf-blue))}.hgf-action.pink{background:linear-gradient(135deg,#e80c77,#ff2aa0)}.hgf-action.green{background:linear-gradient(135deg,#63af17,#98d83b)}.hgf-action.orange{background:linear-gradient(135deg,#ff8a00,#ffb000)}
.hgf-info-grid,.hgf-grid,.hgf-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:20px 0}.hgf-card,.hgf-hero{background:#fff;border:1px solid var(--hgf-line);border-radius:18px;padding:24px;box-shadow:var(--hgf-shadow);margin-bottom:20px}.hgf-metric{display:flex;align-items:center;gap:18px}.hgf-metric h3{margin:0 0 5px;color:var(--hgf-navy)}.hgf-metric p{margin:0;color:var(--hgf-muted);font-weight:600}.hgf-round{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:900;flex:0 0 auto}.hgf-round svg{width:30px;height:30px;fill:#fff}.hgf-round.blue{background:var(--hgf-blue)}.hgf-round.pink{background:var(--hgf-pink)}.hgf-round.green{background:var(--hgf-green)}
.hgf-topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.hgf-back-pill{display:inline-flex;align-items:center;background:#fff;border:1px solid var(--hgf-line);border-radius:8px;padding:10px 14px;color:var(--hgf-navy)!important;text-decoration:none;font-weight:800;box-shadow:0 6px 18px rgba(16,25,54,.04)}.hgf-top-user{color:var(--hgf-muted);font-weight:800}.hgf-form-head{margin-bottom:22px}.hgf-form h3{color:var(--hgf-navy);margin:24px 0 12px}.hgf-form label{display:block;font-weight:800;margin:14px 0 8px;color:#202b49}.hgf-form input,.hgf-form textarea,.hgf-form select{width:100%;padding:13px 14px;border:1px solid #dfe6f0;border-radius:9px;box-sizing:border-box;background:#fff;font:inherit;color:var(--hgf-text);outline:none}.hgf-form input:focus,.hgf-form textarea:focus,.hgf-form select:focus{border-color:var(--hgf-blue);box-shadow:0 0 0 4px rgba(22,141,242,.1)}.hgf-fields-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}.hgf-checks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;background:#f8fbff;border:1px solid var(--hgf-line);border-radius:14px;padding:14px}.hgf-checks label{margin:0;font-weight:700;background:#fff;border:1px solid var(--hgf-line);border-radius:10px;padding:12px}.hgf-checks input,.hgf-accept input{width:auto;margin-right:8px}.hgf-upload-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.hgf-upload-card{border:2px dashed #cdd8e8!important;border-radius:16px;padding:18px!important;background:#fbfdff;text-align:center;cursor:pointer;min-height:120px;display:flex!important;flex-direction:column;align-items:center;justify-content:center;transition:.18s}.hgf-upload-card:before{content:"＋";width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:rgba(22,141,242,.1);color:var(--hgf-blue);font-size:26px;margin-bottom:9px}.hgf-upload-card span{font-weight:900}.hgf-upload-card small{color:var(--hgf-muted);font-weight:700;margin-top:4px}.hgf-upload-card input{position:absolute;opacity:0;pointer-events:none}.hgf-upload-card.hgf-file-selected{border-color:var(--hgf-green)!important;background:#f3fbeb}.hgf-upload-card.hgf-file-selected:before{content:"✓";background:var(--hgf-green);color:#fff}.hgf-form-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}.hgf-btn{display:inline-flex;align-items:center;justify-content:center;background:var(--hgf-navy);color:#fff!important;border:0;border-radius:12px;padding:14px 20px;text-decoration:none;cursor:pointer;font-weight:900;margin:8px 8px 8px 0;min-height:48px;box-shadow:0 10px 20px rgba(16,25,54,.14);letter-spacing:.2px}.hgf-btn:hover{filter:brightness(.96);transform:translateY(-1px)}.hgf-btn-primary{background:linear-gradient(135deg,#0574dc,#168df2)!important;color:#fff!important}.hgf-btn-gps{background:linear-gradient(135deg,#68b91e,#95d336)!important;color:#fff!important;border:0!important}.hgf-btn-soft,.hgf-btn-light{background:#ffffff!important;color:var(--hgf-navy)!important;border:2px solid #b7cef0!important;box-shadow:0 8px 18px rgba(16,25,54,.08)}.hgf-muted{color:var(--hgf-muted)}.hgf-notice{background:#ecfdf3;border:1px solid #12b76a;color:#064e3b;border-radius:12px;padding:12px 14px;margin:12px 0;font-weight:800}.hgf-policy{background:#f8fbff;border:1px solid var(--hgf-line);border-radius:14px;padding:18px;max-height:280px;overflow:auto}.hgf-policy-tabs{display:flex;gap:20px;border-bottom:1px solid var(--hgf-line);margin:10px 0 22px}.hgf-policy-tabs span{padding:12px 0;color:var(--hgf-blue);font-weight:900;border-bottom:3px solid var(--hgf-blue)}.hgf-accept{display:flex!important;align-items:center;background:#fbfdff;border:1px solid var(--hgf-line);border-radius:12px;padding:14px!important}.hgf-profile-row{display:flex;align-items:center;gap:14px;padding:16px;background:#fbfdff;border:1px solid var(--hgf-line);border-radius:16px;margin-bottom:18px}.hgf-profile-row p{margin:5px 0 0;color:var(--hgf-muted)}.hgf-profile-avatar{width:72px;height:72px;font-size:30px}
.hgf-auth-screen{min-height:88vh;display:grid;grid-template-columns:1fr 440px;align-items:center;gap:38px;max-width:1120px;margin:0 auto;padding:44px 20px}.hgf-auth-brand{background:#fff;border:1px solid var(--hgf-line);border-radius:24px;padding:44px;box-shadow:var(--hgf-shadow);text-align:center}.hgf-auth-brand h1{font-size:38px;color:var(--hgf-navy);margin:20px 0 10px}.hgf-auth-brand p{color:var(--hgf-muted);font-weight:700;font-size:17px}.hgf-auth-card{background:#fff;border:1px solid var(--hgf-line);border-radius:24px;padding:30px;box-shadow:var(--hgf-shadow)}.hgf-auth-card h2{margin:0 0 18px;color:var(--hgf-navy)}.hgf-auth-card .login-username label,.hgf-auth-card .login-password label{font-weight:800}.hgf-auth-card input[type=text],.hgf-auth-card input[type=password]{width:100%;padding:13px;border:1px solid #dfe6f0;border-radius:10px}.hgf-auth-card .button{background:var(--hgf-blue);border:0;color:#fff;border-radius:10px;padding:12px 18px;font-weight:900}.hgf-auth-link a{color:var(--hgf-blue);font-weight:900}.hgf-wrap{max-width:1100px;margin:30px auto;padding:0 16px}.hgf-admin-thumb{width:90px;height:70px;object-fit:cover;border-radius:8px;border:1px solid #ddd}.hgf-admin-table th,.hgf-admin-table td{vertical-align:top}.hgf-admin-image-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin-top:12px}.hgf-admin-image-grid .hgf-admin-thumb{width:100%;height:150px}.hgf-admin-image-grid .hgf-card{background:#fff;border:1px solid var(--hgf-line);border-radius:14px;padding:14px;box-shadow:0 8px 20px rgba(0,0,0,.05)}
@media(max-width:1100px){.hgf-app{grid-template-columns:1fr}.hgf-sidebar{border-right:0;border-bottom:1px solid var(--hgf-line);padding:16px;position:relative}.hgf-sidebar .hgf-logo{margin-bottom:12px}.hgf-sidebar nav{display:flex;gap:8px;overflow:auto;padding-bottom:4px}.hgf-sidebar nav a{white-space:nowrap;margin:0}.hgf-main{padding:26px 22px}.hgf-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hgf-info-grid,.hgf-grid,.hgf-stats{grid-template-columns:1fr}.hgf-auth-screen{grid-template-columns:1fr;max-width:640px}.hgf-auth-brand{padding:26px}}
@media(max-width:720px){.hgf-app{box-shadow:none;border-radius:0}.hgf-main{padding:20px 14px}.hgf-page-head{display:block}.hgf-user-chip{margin-top:14px;width:max-content}.hgf-page-head h1,.hgf-form-head h1{font-size:24px}.hgf-action-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.hgf-action{min-height:150px;padding:18px 14px}.hgf-action svg{width:46px;height:46px}.hgf-action strong{font-size:13px}.hgf-action span{font-size:12px}.hgf-card{padding:18px;border-radius:16px}.hgf-fields-2,.hgf-checks,.hgf-upload-grid{grid-template-columns:1fr}.hgf-form-actions .hgf-btn,.hgf-btn{width:100%;margin-right:0}.hgf-topbar{align-items:flex-start;gap:10px;flex-direction:column}.hgf-auth-screen{padding:18px}.hgf-auth-card,.hgf-auth-brand{border-radius:18px;padding:22px}.hgf-logo>span{font-size:34px}.hgf-sidebar nav a{font-size:13px;padding:10px 12px}}


/* v1.0.4 clean-up */
.hgf-main{background:linear-gradient(180deg,#ffffff 0%,#fbfcff 100%)}
.hgf-card,.hgf-hero,.hgf-auth-card,.hgf-auth-brand{border-color:#e8eef8;box-shadow:0 12px 32px rgba(16,25,54,.07)}
.hgf-page-head{padding:2px 0 4px}.hgf-page-head h1{font-weight:900;letter-spacing:-.3px}.hgf-page-head p{font-size:15px}.hgf-sidebar nav a{border:1px solid transparent}.hgf-sidebar nav a:not(.active):hover{border-color:#dce8f8;background:#f7fbff;color:#0b65c6!important;box-shadow:none}.hgf-action{border-radius:20px;min-height:165px}.hgf-action strong{font-weight:950}.hgf-info-grid{align-items:stretch}.hgf-form h3{padding-top:8px;border-top:1px solid #edf2fa}.hgf-form h3:first-of-type{border-top:0}.hgf-form input,.hgf-form textarea,.hgf-form select{min-height:48px}.hgf-upload-card{background:#ffffff!important}.hgf-upload-card:hover{border-color:#168df2!important;background:#f7fbff!important}.hgf-location-status,.hgf-submit-status{font-weight:800;background:#f8fbff;border:1px solid #e5edf8;border-radius:10px;padding:10px 12px}.hgf-form-actions{border-top:1px solid #edf2fa;padding-top:18px}.hgf-back-pill:hover{background:#f7fbff;color:#0b65c6!important}.hgf-policy-tabs span:nth-child(2){color:#ee1688;border-bottom-color:#ee1688}.hgf-notice{box-shadow:0 8px 18px rgba(18,183,106,.08)}
@media(max-width:1100px){.hgf-action-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:860px){.hgf-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.hgf-sidebar nav a{min-width:max-content}.hgf-action-grid{grid-template-columns:1fr 1fr}.hgf-action{min-height:138px}.hgf-action em{width:30px;height:30px}.hgf-form-actions{gap:8px}.hgf-btn{min-height:50px;font-size:15px}}
@media(max-width:430px){.hgf-action-grid{grid-template-columns:1fr}.hgf-action{min-height:126px}.hgf-action svg{margin-bottom:10px}.hgf-sidebar{padding:12px}.hgf-main{padding:16px 12px}}

/* v1.0.5 Smart Admin Backend */
.hgf-admin-shell{max-width:1400px}.hgf-admin-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(135deg,#ffffff,#f4f9ff);border:1px solid #e7eef8;border-radius:22px;padding:24px;margin:18px 0 20px;box-shadow:0 10px 30px rgba(15,40,80,.06)}.hgf-admin-hero h1,.hgf-admin-page-head h1{margin:0;color:#101b33;font-weight:800}.hgf-admin-hero p,.hgf-admin-page-head p{color:#63718a;margin:8px 0 0}.hgf-admin-page-head{background:#fff;border:1px solid #e7eef8;border-radius:18px;padding:20px;margin:18px 0;box-shadow:0 8px 26px rgba(15,40,80,.05)}.hgf-admin-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:18px}.hgf-admin-stats a{background:#fff;border:1px solid #e7eef8;border-radius:20px;text-decoration:none;padding:22px;box-shadow:0 10px 26px rgba(15,40,80,.06);transition:.18s ease}.hgf-admin-stats a:hover{transform:translateY(-2px);box-shadow:0 14px 35px rgba(15,40,80,.1)}.hgf-admin-stats strong{display:block;font-size:34px;line-height:1;color:#0878f8;font-weight:900}.hgf-admin-stats span{display:block;color:#63718a;margin-top:8px;font-weight:700}.hgf-admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.hgf-admin-card{background:#fff;border:1px solid #e7eef8;border-radius:18px;padding:18px;margin:14px 0;box-shadow:0 8px 26px rgba(15,40,80,.05)}.hgf-admin-card h2,.hgf-admin-card h3{margin-top:0;color:#101b33}.hgf-admin-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;background:#fff;border:1px solid #e7eef8;border-radius:18px;padding:16px;margin:14px 0;box-shadow:0 8px 26px rgba(15,40,80,.04)}.hgf-admin-filters label{font-weight:700;color:#334155;display:flex;flex-direction:column;gap:6px}.hgf-admin-filters input,.hgf-admin-filters select{min-height:38px;border-radius:8px;border:1px solid #cbd5e1}.hgf-admin-table th,.hgf-admin-table td{vertical-align:top}.hgf-admin-thumb{width:72px;height:58px;object-fit:cover;border-radius:10px;border:1px solid #dbe7f5;background:#f8fafc}.hgf-admin-image-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.hgf-admin-actions{display:flex;gap:6px;flex-wrap:wrap}.hgf-scroll-table{overflow:auto}.hgf-status{display:inline-flex;align-items:center;border-radius:99px;padding:5px 10px;font-weight:800;font-size:12px}.hgf-status-warn{background:#fff2cc;color:#9a5a00}.hgf-muted{color:#94a3b8}.wp-core-ui .hgf-admin-shell .button-primary{background:#0878f8;border-color:#0878f8;color:#fff;font-weight:800;border-radius:8px}.wp-core-ui .hgf-admin-shell .button{border-radius:8px}.hgf-admin-shell .button-link-delete{color:#b42318;border-color:#ffc9c4;background:#fff5f4}.hgf-admin-shell .form-table input.regular-text,.hgf-admin-shell .form-table textarea,.hgf-admin-shell .form-table select{border-radius:10px;border:1px solid #cbd5e1;min-height:40px}.hgf-admin-shell table.widefat{border:none;box-shadow:none;border-radius:12px;overflow:hidden}.hgf-admin-shell table.widefat thead th{background:#f8fbff;color:#334155;font-weight:800}.hgf-admin-shell table.widefat td,.hgf-admin-shell table.widefat th{padding:12px}
@media(max-width:1100px){.hgf-admin-stats{grid-template-columns:repeat(2,1fr)}.hgf-admin-grid{grid-template-columns:1fr}.hgf-admin-image-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){.hgf-admin-hero{align-items:flex-start;flex-direction:column}.hgf-admin-stats{grid-template-columns:1fr}.hgf-admin-image-grid{grid-template-columns:1fr}.hgf-admin-filters{align-items:stretch}.hgf-admin-filters label,.hgf-admin-filters input,.hgf-admin-filters select,.hgf-admin-filters .button{width:100%}.hgf-admin-actions{flex-direction:column}.hgf-admin-actions .button{width:100%;text-align:center}}

/* v1.0.6 device optimization + driver admin-bar removal polish */
html:has(.hgf-app),html:has(.hgf-auth-screen){margin-top:0!important;overflow-x:hidden}
body:has(.hgf-app),body:has(.hgf-auth-screen){margin-top:0!important;overflow-x:hidden}
body:has(.hgf-app) #wpadminbar,body:has(.hgf-auth-screen) #wpadminbar{display:none!important}
.hgf-app *, .hgf-auth-screen *, .hgf-wrap *, .hgf-app *:before, .hgf-auth-screen *:before, .hgf-wrap *:before, .hgf-app *:after, .hgf-auth-screen *:after, .hgf-wrap *:after{box-sizing:border-box}
.hgf-app img,.hgf-auth-screen img,.hgf-wrap img{max-width:100%;height:auto}
.hgf-main{width:100%;max-width:100%;overflow-x:hidden}.hgf-card,.hgf-hero,.hgf-auth-card{max-width:100%;overflow-wrap:anywhere}.hgf-scroll-table{max-width:100%;-webkit-overflow-scrolling:touch}.hgf-scroll-table table{min-width:760px}.hgf-form input,.hgf-form textarea,.hgf-form select{font-size:16px}.hgf-btn,.hgf-back-pill,.hgf-action{-webkit-tap-highlight-color:transparent;touch-action:manipulation}.hgf-btn:focus,.hgf-back-pill:focus,.hgf-action:focus,.hgf-sidebar nav a:focus{outline:3px solid rgba(22,141,242,.3);outline-offset:3px}.hgf-form-actions{position:relative;z-index:2}.hgf-btn-primary,.hgf-btn-gps{border:2px solid transparent!important}.hgf-btn-primary{box-shadow:0 10px 24px rgba(22,141,242,.28)!important}.hgf-btn-gps{box-shadow:0 10px 24px rgba(120,190,32,.28)!important}.hgf-sidebar{position:relative;z-index:5}.hgf-topbar{position:relative;z-index:4}
@media(max-width:1200px){.hgf-app{max-width:100%;margin:0;border-radius:0;min-height:100vh}.hgf-main{padding:28px}.hgf-action-grid{gap:14px}.hgf-info-grid,.hgf-grid,.hgf-stats{gap:14px}}
@media(max-width:900px){.hgf-sidebar{position:sticky;top:0;background:#fff;z-index:20}.hgf-sidebar nav{display:grid;grid-auto-flow:column;grid-auto-columns:max-content;gap:8px;overflow-x:auto;padding-bottom:4px;-webkit-overflow-scrolling:touch;scrollbar-width:thin}.hgf-sidebar nav a{white-space:nowrap;margin:0}.hgf-logo{margin-bottom:14px}.hgf-page-head{margin-bottom:20px}.hgf-fields-2{grid-template-columns:1fr}.hgf-upload-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hgf-checks{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.hgf-main{padding:16px 12px}.hgf-auth-screen{min-height:100vh;padding:14px 10px}.hgf-auth-brand{display:none}.hgf-auth-card{padding:20px;border-radius:18px}.hgf-page-head h1,.hgf-form-head h1{font-size:22px}.hgf-page-head p,.hgf-form-head p{font-size:14px}.hgf-action-grid{grid-template-columns:1fr;gap:12px}.hgf-action{display:grid;grid-template-columns:56px 1fr 34px;align-items:center;gap:12px;min-height:112px;padding:18px}.hgf-action svg{margin:0;width:48px;height:48px}.hgf-action strong{font-size:14px;margin-bottom:4px}.hgf-action span{font-size:12px}.hgf-action em{position:static}.hgf-info-grid,.hgf-grid,.hgf-stats{grid-template-columns:1fr}.hgf-metric{align-items:flex-start}.hgf-upload-grid,.hgf-checks{grid-template-columns:1fr}.hgf-upload-card{min-height:108px}.hgf-form-actions{display:grid;grid-template-columns:1fr;gap:10px}.hgf-form-actions .hgf-btn,.hgf-btn{width:100%;min-height:52px;margin:0}.hgf-back-pill{width:100%;justify-content:center}.hgf-user-chip{width:100%;justify-content:center}.hgf-sidebar{padding:10px}.hgf-sidebar nav a{font-size:12px;padding:10px}.hgf-policy{max-height:none}.hgf-card{padding:16px;margin-bottom:14px}.hgf-form label{margin-top:12px}.hgf-admin-shell{padding:0 8px}.hgf-admin-card,.hgf-admin-page-head,.hgf-admin-hero{padding:14px;border-radius:16px}.hgf-admin-table{font-size:13px}}
@media(max-width:380px){.hgf-main{padding:14px 10px}.hgf-logo>span{font-size:30px}.hgf-action{grid-template-columns:46px 1fr 30px;padding:14px}.hgf-action svg{width:40px;height:40px}.hgf-round{width:48px;height:48px}.hgf-profile-avatar{width:58px;height:58px}.hgf-form input,.hgf-form textarea,.hgf-form select{padding:12px}}
@supports not selector(:has(*)){body.hgf-driver-portal{margin-top:0!important;overflow-x:hidden}body.hgf-driver-portal #wpadminbar{display:none!important}}

/* v1.0.7 mobile-first layout rebuild */
.hgf-app{isolation:isolate}.hgf-sidebar nav a .hgf-nav-label{display:inline-block}.hgf-main > .hgf-card:first-child,.hgf-main > form.hgf-card{margin-top:0}
.hgf-form-head{padding-bottom:10px;border-bottom:1px solid #edf2fa}.hgf-form h3{font-size:17px}.hgf-location-status,.hgf-submit-status{line-height:1.35}.hgf-card p{line-height:1.55}.hgf-action-grid{align-items:stretch}.hgf-action{display:flex;flex-direction:column;justify-content:space-between}.hgf-action svg{flex:0 0 auto}.hgf-action strong,.hgf-action span{position:relative;z-index:1}.hgf-action:after{content:"";position:absolute;right:-28px;top:-28px;width:110px;height:110px;border-radius:999px;background:rgba(255,255,255,.14)}
@media(max-width:980px){
  .hgf-app{display:block;min-height:100dvh;background:#f7f9fc;box-shadow:none;padding-bottom:92px;overflow:visible}
  .hgf-main{padding:18px 14px 96px;background:#f7f9fc!important;min-height:calc(100dvh - 78px)}
  .hgf-sidebar{position:fixed!important;left:10px;right:10px;bottom:10px;top:auto!important;padding:8px!important;border:1px solid rgba(219,231,245,.98)!important;border-radius:24px;background:rgba(255,255,255,.96)!important;box-shadow:0 18px 45px rgba(16,25,54,.20);z-index:9999;backdrop-filter:blur(12px)}
  .hgf-sidebar .hgf-logo{display:none!important}
  .hgf-sidebar nav{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;overflow:visible!important;padding:0!important}
  .hgf-sidebar nav a{min-width:0!important;width:100%;height:64px;margin:0!important;padding:7px 3px!important;border-radius:18px!important;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:5px;white-space:normal!important;text-align:center;font-size:10.5px!important;line-height:1.05;font-weight:900;box-shadow:none!important;color:#2e3b58!important;border:1px solid transparent!important}
  .hgf-sidebar nav a.active{background:linear-gradient(135deg,#0877df,#168df2)!important;color:#fff!important;border-color:transparent!important;box-shadow:0 10px 20px rgba(22,141,242,.28)!important}
  .hgf-sidebar nav a:not(.active):hover{background:#f5f9ff!important;color:#0877df!important}
  .hgf-sidebar nav a.hgf-logout-link{display:none!important}
  .hgf-nav-ico{width:23px!important;height:23px!important;display:grid!important;place-items:center;flex:0 0 auto}.hgf-nav-ico svg{width:23px!important;height:23px!important}.hgf-nav-label{display:block!important;max-width:100%;overflow:hidden;text-overflow:ellipsis}
  .hgf-page-head{background:#fff;border:1px solid #e8edf5;border-radius:22px;padding:16px;margin-bottom:14px;box-shadow:0 10px 24px rgba(16,25,54,.06);display:block}.hgf-page-head h1{font-size:23px!important;letter-spacing:-.2px}.hgf-page-head p{font-size:14px!important}.hgf-user-chip{margin-top:12px;width:auto;display:inline-flex;padding:7px 12px}.hgf-avatar{width:32px;height:32px}.hgf-topbar{background:#fff;border:1px solid #e8edf5;border-radius:20px;padding:10px;margin-bottom:14px;box-shadow:0 10px 24px rgba(16,25,54,.06);display:grid!important;grid-template-columns:1fr;gap:8px}.hgf-top-user{display:none}.hgf-back-pill{width:100%;border-radius:14px;min-height:46px;justify-content:center;background:#f7fbff!important;border-color:#dce8f8!important;color:#0877df!important}
  .hgf-card,.hgf-hero{border-radius:22px!important;padding:17px!important;margin-bottom:14px!important;box-shadow:0 10px 26px rgba(16,25,54,.07)!important}.hgf-form-head h1{font-size:24px!important}.hgf-form-head p{font-size:14px!important}.hgf-form h3{margin:20px 0 10px!important;padding-top:16px!important;font-size:16px!important}.hgf-fields-2{grid-template-columns:1fr!important;gap:0!important}.hgf-form label{font-size:14px;margin:12px 0 7px}.hgf-form input,.hgf-form textarea,.hgf-form select{border-radius:14px!important;min-height:52px!important;padding:14px!important;font-size:16px!important;background:#fff!important}.hgf-form textarea{min-height:112px!important}.hgf-upload-grid{grid-template-columns:1fr!important;gap:10px!important}.hgf-upload-card{min-height:96px!important;border-radius:18px!important;align-items:flex-start!important;text-align:left!important;padding:15px!important;position:relative;padding-left:74px!important}.hgf-upload-card:before{position:absolute;left:15px;top:50%;transform:translateY(-50%);margin:0!important}.hgf-upload-card span{font-size:15px}.hgf-upload-card small{font-size:12px}.hgf-checks{display:grid!important;grid-template-columns:1fr!important;background:transparent!important;border:0!important;padding:0!important;gap:8px!important}.hgf-checks label{border-radius:14px!important;padding:14px!important;display:flex!important;align-items:center;gap:9px;background:#fff!important}.hgf-checks input{width:20px!important;height:20px!important;margin:0!important;flex:0 0 auto}.hgf-form-actions{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;border-top:1px solid #edf2fa!important;padding-top:16px!important}.hgf-form-actions .hgf-btn,.hgf-btn{width:100%!important;margin:0!important;border-radius:16px!important;min-height:54px!important;font-size:15px!important}.hgf-btn-gps{background:linear-gradient(135deg,#0a7f2f,#78be20)!important}.hgf-btn-primary{background:linear-gradient(135deg,#054db7,#168df2)!important}.hgf-location-status,.hgf-submit-status{font-size:13px;border-radius:14px!important;margin-top:10px!important}.hgf-policy-tabs{gap:10px;overflow:auto}.hgf-policy{max-height:none!important;border-radius:16px!important;font-size:14px}.hgf-accept{border-radius:16px!important;align-items:flex-start!important}.hgf-profile-row{border-radius:18px!important;align-items:center}.hgf-profile-avatar{width:58px!important;height:58px!important;font-size:24px!important}
}
@media(max-width:640px){
  .hgf-main{padding:12px 10px 94px!important}.hgf-action-grid{grid-template-columns:1fr!important;gap:10px!important}.hgf-action{min-height:104px!important;border-radius:22px!important;padding:16px!important;display:grid!important;grid-template-columns:52px 1fr 32px!important;align-items:center!important;gap:12px!important}.hgf-action svg{width:46px!important;height:46px!important;margin:0!important}.hgf-action strong{font-size:15px!important;margin:0 0 4px!important}.hgf-action span{font-size:12.5px!important;line-height:1.25!important}.hgf-action em{position:static!important;width:32px!important;height:32px!important}.hgf-info-grid,.hgf-grid,.hgf-stats{grid-template-columns:1fr!important;gap:10px!important}.hgf-metric{gap:12px!important}.hgf-round{width:48px!important;height:48px!important}.hgf-round svg{width:25px!important;height:25px!important}.hgf-metric h3{font-size:16px}.hgf-metric p{font-size:13px}.hgf-sidebar{left:8px;right:8px;bottom:8px;border-radius:22px!important}.hgf-sidebar nav a{height:60px!important;font-size:9.5px!important;border-radius:16px!important}.hgf-nav-ico,.hgf-nav-ico svg{width:21px!important;height:21px!important}.hgf-auth-screen{display:block!important;min-height:100dvh!important;padding:14px 10px!important;background:#f7f9fc}.hgf-auth-brand{display:block!important;padding:22px!important;margin-bottom:12px!important;border-radius:22px!important}.hgf-auth-brand h1{font-size:25px!important;margin:10px 0 6px}.hgf-auth-brand p{font-size:14px!important}.hgf-auth-card{border-radius:22px!important;padding:18px!important}.hgf-auth-card h2{font-size:22px!important}.hgf-logo>span{font-size:30px!important}.hgf-logo small{letter-spacing:4px}.hgf-logo b{letter-spacing:2px}.hgf-auth-card input[type=text],.hgf-auth-card input[type=password],.hgf-auth-card input[type=email]{min-height:52px;border-radius:14px!important;font-size:16px!important}.hgf-auth-card .button{width:100%;min-height:52px;border-radius:16px!important;font-size:15px!important}.hgf-wrap{margin:12px auto!important;padding:0 10px!important}.hgf-wrap .hgf-card{padding:18px!important;border-radius:22px!important}.hgf-admin-shell table.widefat{display:block;overflow-x:auto;white-space:nowrap}.hgf-admin-thumb{width:58px!important;height:48px!important}
}
@media(max-width:390px){
  .hgf-sidebar nav a{font-size:8.8px!important;height:58px!important;padding:6px 1px!important}.hgf-action{grid-template-columns:46px 1fr 30px!important;padding:14px!important}.hgf-action svg{width:40px!important;height:40px!important}.hgf-page-head,.hgf-card,.hgf-hero{border-radius:18px!important}.hgf-main{padding-left:8px!important;padding-right:8px!important}.hgf-form-head h1,.hgf-page-head h1{font-size:21px!important}.hgf-upload-card{padding-left:66px!important}.hgf-upload-card:before{width:38px;height:38px;left:13px}.hgf-sidebar{left:6px;right:6px;bottom:6px;padding:6px!important}
}


/* v1.0.8 mobile dashboard text cleanup */
@media(max-width:980px){
  .hgf-action{overflow:hidden!important;}
  .hgf-action strong,.hgf-action span{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;word-break:normal!important;hyphens:none!important;}
}
@media(max-width:640px){
  .hgf-action{min-height:124px!important;grid-template-columns:48px minmax(0,1fr) 30px!important;padding:16px 14px!important;}
  .hgf-action strong{font-size:14px!important;line-height:1.18!important;}
  .hgf-action span{font-size:12px!important;line-height:1.28!important;display:block!important;}
}
@media(max-width:390px){
  .hgf-action{min-height:120px!important;grid-template-columns:42px minmax(0,1fr) 28px!important;}
  .hgf-action strong{font-size:13.5px!important;}
  .hgf-action span{font-size:11.8px!important;}
}


/* v1.0.9 mobile dashboard + accident field alignment fixes */
@media(max-width:980px){
  .hgf-action-grid{gap:14px!important;}
  .hgf-action{
    overflow:visible!important;
    min-height:150px!important;
    padding:22px 18px!important;
    align-content:center!important;
  }
  .hgf-action strong,
  .hgf-action span{
    max-width:100%!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
  }
  .hgf-action strong{line-height:1.22!important;}
  .hgf-action span{line-height:1.38!important;}
  .hgf-form input[type=date],
  .hgf-form input[type=time]{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
    -webkit-appearance:none!important;
    appearance:none!important;
    text-align:left!important;
    line-height:1.3!important;
  }
  .hgf-fields-2 > label{
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    display:block!important;
  }
}
@media(max-width:640px){
  .hgf-action-grid{gap:14px!important;}
  .hgf-action{
    min-height:142px!important;
    grid-template-columns:50px minmax(0,1fr) 30px!important;
    padding:22px 18px!important;
    gap:14px!important;
  }
  .hgf-action strong{font-size:15px!important;line-height:1.24!important;margin-bottom:5px!important;}
  .hgf-action span{font-size:12.5px!important;line-height:1.38!important;}
}
@media(max-width:390px){
  .hgf-action{
    min-height:146px!important;
    grid-template-columns:44px minmax(0,1fr) 28px!important;
    padding:20px 16px!important;
    gap:12px!important;
  }
  .hgf-action strong{font-size:14.5px!important;line-height:1.24!important;}
  .hgf-action span{font-size:12px!important;line-height:1.36!important;}
}


/* v1.0.10 mobile dashboard card layout fix
   Keeps the card subtitle inside the block by forcing icon/title/subtitle/arrow into proper grid areas. */
@media (max-width: 640px) {
  .hgf-action-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .hgf-action {
    display: grid !important;
    grid-template-columns: 58px minmax(0, 1fr) 40px !important;
    grid-template-rows: auto auto !important;
    grid-template-areas:
      "icon title arrow"
      "icon subtitle arrow" !important;
    column-gap: 16px !important;
    row-gap: 4px !important;
    align-items: center !important;
    min-height: 136px !important;
    padding: 24px 22px !important;
    overflow: hidden !important;
  }

  .hgf-action svg {
    grid-area: icon !important;
    width: 52px !important;
    height: 52px !important;
    margin: 0 !important;
    align-self: center !important;
  }

  .hgf-action strong {
    grid-area: title !important;
    display: block !important;
    max-width: 100% !important;
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    overflow: visible !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  .hgf-action span {
    grid-area: subtitle !important;
    display: block !important;
    max-width: 100% !important;
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    overflow: visible !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  .hgf-action em {
    grid-area: arrow !important;
    position: static !important;
    width: 38px !important;
    height: 38px !important;
    align-self: center !important;
    justify-self: end !important;
  }

  .hgf-fields-2,
  .hgf-form .hgf-fields-2 {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .hgf-fields-2 > label {
    width: 100% !important;
    max-width: 100% !important;
    margin: 12px 0 7px !important;
  }

  .hgf-form input[type="date"],
  .hgf-form input[type="time"] {
    width: 100% !important;
    min-height: 52px !important;
    padding: 14px !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
  }
}

@media (max-width: 390px) {
  .hgf-action {
    grid-template-columns: 50px minmax(0, 1fr) 36px !important;
    column-gap: 14px !important;
    min-height: 132px !important;
    padding: 22px 18px !important;
  }

  .hgf-action svg {
    width: 46px !important;
    height: 46px !important;
  }

  .hgf-action strong {
    font-size: 14px !important;
    letter-spacing: .6px !important;
  }

  .hgf-action span {
    font-size: 12.5px !important;
  }
}
