/* Yusr V8 — mobile hardening + role onboarding + CV analysis */
.v8-google-btn{display:flex;align-items:center;justify-content:center;gap:11px;width:100%;min-height:52px;border:1px solid #dfe5eb;background:#fff;border-radius:15px;color:#17263c;font-weight:800;box-shadow:0 8px 24px rgba(11,31,58,.05)}
.v8-google-g{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:conic-gradient(from -45deg,#4285f4 0 25%,#34a853 0 50%,#fbbc05 0 75%,#ea4335 0);color:#fff;font-weight:900;font-family:Arial,sans-serif;font-size:14px}
.v8-auth-divider{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:11px;margin:16px 0}.v8-auth-divider:before,.v8-auth-divider:after{content:"";height:1px;background:var(--line);flex:1}.v8-google-connected{padding:13px 15px;border-radius:15px;background:#e9f8f3;border:1px solid #ccece0;color:#087357;display:flex;flex-wrap:wrap;gap:7px 12px;justify-content:space-between;margin-bottom:16px}.v8-google-connected span{color:#51736a;font-size:12px}
.v8-register-shell{padding-block:42px}.v8-register-card{width:min(920px,calc(100% - 28px));max-width:none}.v8-register-head{text-align:center;max-width:650px;margin:0 auto 22px}.v8-register-head h1{color:var(--navy);margin:10px 0 6px}.v8-register-head p{color:var(--muted);margin:0;line-height:1.8}
.v8-role-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin:18px 0 24px}.v8-role-card{position:relative;min-height:148px;border:1px solid var(--line);background:#fbfcfd;border-radius:20px;padding:18px 14px;cursor:pointer;display:flex;flex-direction:column;align-items:flex-start;gap:7px;transition:.2s var(--ease)}.v8-role-card:hover{transform:translateY(-3px);box-shadow:0 14px 35px rgba(11,31,58,.07)}.v8-role-card input{position:absolute;opacity:0;pointer-events:none}.v8-role-icon{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:#edf8f7;color:var(--teal)}.v8-role-icon svg{width:21px;height:21px}.v8-role-card strong{font-size:14px;color:var(--navy)}.v8-role-card small{font-size:10.5px;line-height:1.55;color:var(--muted)}.v8-role-card i{position:absolute;left:12px;top:12px;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#dfe7ec;color:#fff;font-style:normal;opacity:.4}.v8-role-card.selected{background:linear-gradient(180deg,#f3fbfa,#fff);border-color:#8dd8d1;box-shadow:0 14px 35px rgba(9,154,146,.08)}.v8-role-card.selected i{background:var(--teal);opacity:1}.v8-mini-skills{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.v8-register-actions{justify-content:flex-end}
.v8-service-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:17px}.v8-service-card{appearance:none;text-align:right;border:1px solid var(--line);background:#fff;border-radius:22px;padding:17px;display:grid;grid-template-columns:auto 1fr auto;gap:13px;align-items:center;cursor:pointer;font:inherit;color:inherit;transition:.2s}.v8-service-card:hover{border-color:#9cd8d4;box-shadow:0 14px 35px rgba(11,31,58,.07);transform:translateY(-2px)}.v8-service-card.ai{background:linear-gradient(145deg,#fbfafe,#fff)}.v8-service-icon{width:44px;height:44px;border-radius:14px;background:#eaf8f6;color:var(--teal);display:grid;place-items:center}.v8-service-icon svg{width:22px;height:22px}.v8-service-card strong{display:block;color:var(--navy);font-size:14px}.v8-service-card p{margin:4px 0 0;color:var(--muted);font-size:11px;line-height:1.6}.v8-service-card>b{white-space:nowrap;color:#087b74;font-size:12px;background:#e8f8f4;padding:7px 9px;border-radius:999px}.v8-analysis-list{display:grid;gap:8px}.v8-analysis-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:10px;border:1px solid var(--line);border-radius:16px}.v8-analysis-row strong{display:block;color:var(--navy);font-size:12px}.v8-analysis-row small{display:block;color:var(--muted);font-size:10.5px;margin-top:3px}.v8-report-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.v8-report-top h2{margin:8px 0 0;color:var(--navy)}.v8-report-score{width:86px;height:86px;border-radius:24px;background:linear-gradient(145deg,#eaf8f6,#fff);border:1px solid #d5ede8;display:grid;place-items:center;align-content:center}.v8-report-score strong{font-size:27px;color:#087b74;line-height:1}.v8-report-score span{font-size:10px;color:var(--muted)}.v8-report-content{white-space:normal;line-height:2;color:#24354b;background:#fbfcfd;border:1px solid #edf1f4;padding:20px;border-radius:20px}.v8-copy-box{direction:ltr;text-align:left;margin-top:14px;background:#f6f8fa;border:1px solid var(--line);border-radius:13px;padding:10px 12px;overflow:auto}.v8-copy-box span{display:block;direction:rtl;text-align:right;color:var(--muted);font-size:10px}.v8-copy-box code{font-size:11px}.v8-switch input{display:none}.v8-switch span{display:block;width:46px;height:27px;border-radius:99px;background:#d8e0e6;position:relative;transition:.2s}.v8-switch span:after{content:"";position:absolute;width:21px;height:21px;top:3px;right:3px;border-radius:50%;background:#fff;box-shadow:0 2px 7px rgba(0,0,0,.15);transition:.2s}.v8-switch input:checked+span{background:var(--teal)}.v8-switch input:checked+span:after{right:22px}.v8-check-list{display:grid;gap:8px}.v8-check-row{display:flex;gap:10px;align-items:flex-start;padding:11px;border-radius:14px;background:#f7f9fb}.v8-check-row>span{width:26px;height:26px;border-radius:9px;display:grid;place-items:center;font-weight:900}.v8-check-row.ok>span{background:#dff6ed;color:#087553}.v8-check-row.warn>span{background:#fff2df;color:#a76a08}.v8-check-row strong{display:block;color:var(--navy);font-size:12px}.v8-check-row small{display:block;color:var(--muted);font-size:10px;margin-top:2px}
.v8-dashboard-bottom,.v8-mobile-dash-header,.v8-mobile-sheet,.v8-sheet-backdrop{display:none}

@media(max-width:820px){
  html,body{max-width:100%;overflow-x:hidden}
  /* Public header: compact and intentional, not a giant logo card */
  .public-mode .v7-public-header{padding:9px 0 0!important;position:relative!important;height:auto!important;background:transparent!important}
  .public-mode .v7-header-shell{min-height:58px!important;height:58px!important;padding:6px 9px!important;border-radius:18px!important;display:grid!important;grid-template-columns:1fr auto!important;align-items:center!important;background:rgba(255,255,255,.88)!important;box-shadow:0 10px 30px rgba(11,31,58,.08)!important;border:1px solid rgba(218,230,237,.95)!important}
  .public-mode .v7-brand{display:flex!important;align-items:center!important;justify-content:flex-start!important;width:auto!important;height:auto!important;padding:0!important;background:transparent!important;border:0!important}
  .public-mode .v7-brand img{width:72px!important;height:38px!important;max-width:72px!important;object-fit:contain!important;margin:0!important}
  .public-mode .v7-public-nav{display:none!important}.public-mode .v7-header-actions{display:flex!important;grid-column:1!important;grid-row:1!important;gap:6px!important;align-items:center!important;justify-content:flex-end!important}.public-mode .v7-header-primary{min-height:39px!important;padding:8px 12px!important;border-radius:12px!important;font-size:11px!important}.public-mode .v7-desktop-only{display:none!important}
  /* Keep public bottom bar light. Dashboard gets a separate navy identity below. */
  .public-mode .v5-public-bottom{z-index:130!important}

  /* Dashboard becomes a real mobile shell */
  .dashboard-mode .dash-topbar{display:none!important}.dashboard-mode .sidebar{display:none!important}.dashboard-mode .v5-dashboard-bottom,.dashboard-mode .v5-mobile-sheet,.dashboard-mode .v5-sheet-backdrop{display:none!important}
  .dashboard-mode main,.dashboard-mode .app-dashboard,.dashboard-mode .dash-layout,.dashboard-mode .dash-content,.dashboard-mode .dash-content-inner{width:100%!important;max-width:100%!important;min-width:0!important;overflow:visible!important}
  .dashboard-mode .dash-content{margin:0!important;padding-top:72px!important}.dashboard-mode .dash-content-inner{padding:14px 12px 98px!important}
  .v8-mobile-dash-header{display:flex;position:fixed;z-index:135;top:calc(8px + env(safe-area-inset-top));right:10px;left:10px;height:56px;border:1px solid rgba(218,230,237,.94);border-radius:18px;background:rgba(255,255,255,.93);backdrop-filter:blur(20px) saturate(170%);box-shadow:0 12px 34px rgba(8,36,64,.10);align-items:center;justify-content:space-between;padding:5px 8px 5px 10px}
  .v8-mobile-logo{display:flex;align-items:center}.v8-mobile-logo img{width:72px;height:38px;object-fit:contain}.v8-mobile-head-actions{display:flex;gap:6px;align-items:center}.v8-mobile-head-actions>a,.v8-mobile-head-actions>button{border:0;width:42px;height:42px;border-radius:13px;background:#f7fafb;color:var(--navy);display:grid;place-items:center;padding:0}.v8-mobile-head-actions svg{width:20px;height:20px}.v8-mobile-head-actions .avatar{width:34px;height:34px;font-size:10px}
  .v8-dashboard-bottom{display:grid;position:fixed;z-index:140;right:9px;left:9px;bottom:calc(9px + env(safe-area-inset-bottom));height:72px;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;padding:6px;border-radius:22px;background:linear-gradient(135deg,#071e37,#0b304d);border:1px solid rgba(255,255,255,.08);box-shadow:0 18px 45px rgba(5,25,46,.28),inset 0 1px 0 rgba(255,255,255,.06)}
  .v8-bottom-item{border:0;background:transparent;color:rgba(255,255,255,.68);font:800 9.5px inherit;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-radius:16px;min-width:0;cursor:pointer;position:relative}.v8-bottom-item svg{width:21px;height:21px;color:#fff;opacity:.76}.v8-bottom-item span{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v8-bottom-item.active{color:#fff;background:rgba(255,255,255,.10)}.v8-bottom-item.active svg{opacity:1;color:#fff}.v8-bottom-item.active:before{content:"";position:absolute;top:3px;width:24px;height:3px;border-radius:99px;background:#31d1c2;box-shadow:0 0 12px rgba(49,209,194,.55)}
  .v8-sheet-backdrop{display:block;position:fixed;z-index:200;inset:0;background:rgba(4,18,33,.48);backdrop-filter:blur(4px);opacity:0;visibility:hidden;transition:.24s}.v8-sheet-backdrop.open{opacity:1;visibility:visible}.v8-mobile-sheet{display:block;position:fixed;z-index:210;right:0;left:0;bottom:0;max-height:min(82vh,720px);overflow:auto;padding:8px 14px calc(20px + env(safe-area-inset-bottom));background:#fff;border-radius:28px 28px 0 0;box-shadow:0 -28px 70px rgba(5,25,46,.25);transform:translateY(105%);transition:.3s var(--ease)}.v8-mobile-sheet.open{transform:none}.v8-sheet-handle{width:44px;height:5px;border-radius:99px;background:#d6dde4;margin:2px auto 12px}.v8-sheet-head{display:flex;align-items:center;justify-content:space-between;padding:4px 2px 14px;border-bottom:1px solid #edf1f4}.v8-sheet-user{display:flex;align-items:center;gap:9px}.v8-sheet-user strong{display:block;font-size:13px;color:var(--navy)}.v8-sheet-user small{display:block;font-size:10px;color:var(--muted)}.v8-sheet-close{width:39px;height:39px;border:1px solid var(--line);border-radius:13px;background:#f8fafb;color:var(--navy);font-size:23px}.v8-sheet-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding-top:14px}.v8-sheet-link{min-height:88px;border:1px solid var(--line);background:#fbfcfd;border-radius:18px;padding:10px 6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;text-align:center;font-size:10.5px;font-weight:800;color:var(--ink)}.v8-sheet-link svg{width:22px;height:22px;color:var(--teal)}.v8-sheet-link.danger{background:#fff1f1;color:#bd3d48}.v8-sheet-link.danger svg{color:#bd3d48}body.v8-sheet-open{overflow:hidden}
  /* Mobile dashboards: real grid instead of clipped horizontal KPI rail. */
  .dashboard-mode .dash-metrics{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;overflow:visible!important;padding:0!important;scroll-snap-type:none!important}
  .dashboard-mode .metric-card{min-width:0!important;min-height:108px!important;padding:14px!important;border-radius:18px!important}
  .dashboard-mode .metric-value{font-size:24px!important;margin:12px 0 4px!important}.dashboard-mode .metric-label{font-size:10.5px!important}
  .dashboard-mode .dash-hero{border-radius:22px!important;padding:20px 17px!important}.dashboard-mode .dash-hero h2{font-size:23px!important}.dashboard-mode .dash-hero p{font-size:11.5px!important;line-height:1.8!important}
  .dashboard-mode .dash-hero-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}.dashboard-mode .dash-hero-actions .btn{width:100%!important;min-width:0!important}
  /* Hard responsive pass across every dashboard role */
  .dashboard-mode .dash-page-intro,.dashboard-mode .section-head,.dashboard-mode .dash-panel-head{max-width:100%!important;min-width:0!important;flex-wrap:wrap!important}.dashboard-mode .dash-page-intro h1,.dashboard-mode .section-head h1,.dashboard-mode .section-head h2{max-width:100%;overflow-wrap:anywhere}.dashboard-mode .dash-page-intro p,.dashboard-mode .section-head p{max-width:100%}
  .dashboard-mode .profile-shell,.dashboard-mode .dash-panels,.dashboard-mode .entity-grid,.dashboard-mode .grid,.dashboard-mode .grid-2,.dashboard-mode .grid-3,.dashboard-mode .grid-4,.dashboard-mode .detail-grid,.dashboard-mode .admin-quick-grid{grid-template-columns:minmax(0,1fr)!important;width:100%!important;min-width:0!important}.dashboard-mode .profile-main,.dashboard-mode .profile-aside,.dashboard-mode .dash-panel,.dashboard-mode .card,.dashboard-mode .entity-card,.dashboard-mode .modern-form,.dashboard-mode .form-section,.dashboard-mode form{max-width:100%!important;min-width:0!important;width:100%!important}.dashboard-mode .profile-cover{max-width:100%!important;overflow:hidden!important;border-radius:21px!important}.dashboard-mode .form-grid,.dashboard-mode .filter-grid{grid-template-columns:minmax(0,1fr)!important}.dashboard-mode .field,.dashboard-mode .field.full{grid-column:auto!important;min-width:0!important}.dashboard-mode input,.dashboard-mode select,.dashboard-mode textarea,.dashboard-mode button{max-width:100%}.dashboard-mode textarea{min-height:120px}.dashboard-mode .table-wrap{width:100%;max-width:100%;overflow:auto!important}.dashboard-mode table{min-width:680px}.dashboard-mode .skill-repeater-row{grid-template-columns:36px minmax(0,1fr) 36px!important}.dashboard-mode .quick-actions{max-width:100%}.dashboard-mode .quick-action{min-width:min(74vw,250px)}
  .v8-service-grid{grid-template-columns:1fr}.v8-service-card{grid-template-columns:auto 1fr;align-items:start}.v8-service-card>b{grid-column:2;justify-self:start}.v8-report-top{align-items:flex-start}.v8-report-score{width:70px;height:70px}.v8-report-content{padding:14px;font-size:12px;line-height:1.9}.v8-analysis-row{grid-template-columns:auto minmax(0,1fr) auto}
  .v8-register-shell{padding:22px 0 92px}.v8-register-card{width:calc(100% - 18px)!important;padding:17px!important}.v8-role-cards{grid-template-columns:1fr 1fr;gap:8px}.v8-role-card{min-height:125px;padding:14px 11px}.v8-mini-skills{grid-template-columns:1fr}.v8-register-actions{position:static!important}.v8-auth-card{width:calc(100% - 22px)!important}
}
@media(max-width:390px){.v8-sheet-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v8-role-cards{grid-template-columns:1fr 1fr}.v8-dashboard-bottom{right:6px;left:6px}.v8-bottom-item{font-size:8.8px}.v8-bottom-item svg{width:19px;height:19px}}

/* V8 legal + OAuth disclosure */
.v8-auth-legal{margin:9px 0 0;text-align:center;color:var(--muted);font-size:10.5px;line-height:1.7}.v8-auth-legal a{color:var(--teal);font-weight:800}
.v8-legal-page{padding:52px 0 72px}.v8-legal-card{width:min(900px,100%);margin:auto;background:#fff;border:1px solid var(--line);border-radius:28px;padding:32px;box-shadow:0 22px 65px rgba(11,31,58,.07)}.v8-legal-card h1{margin:10px 0 10px;color:var(--navy);font-size:34px}.v8-legal-card h2{margin:28px 0 7px;color:var(--navy);font-size:18px}.v8-legal-card p{margin:0;color:#58697d;line-height:2;font-size:14px}.v8-legal-card .muted{color:var(--muted)}.v8-legal-note{margin-top:30px!important;padding:14px 16px;border-radius:16px;background:#f7fafb;border:1px solid #e9eff2;font-size:12px!important}
@media(max-width:820px){.v8-legal-page{padding:24px 0 96px}.v8-legal-card{border-radius:22px;padding:20px 17px}.v8-legal-card h1{font-size:27px}.v8-legal-card h2{font-size:16px;margin-top:23px}.v8-legal-card p{font-size:12.5px;line-height:1.9}}
.v8-service-card:disabled{cursor:not-allowed;opacity:.58;filter:saturate(.65);transform:none!important;box-shadow:none!important}

/* ===== Yusr V8.2 mobile regression hotfix ===== */
/* Auth / onboarding SVG containment. Prevent inherited global input/svg rules from exploding icons. */
.v8-role-card{overflow:hidden!important;isolation:isolate!important}
.v8-role-card>input[type="radio"]{position:absolute!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important;min-width:1px!important;max-width:1px!important;padding:0!important;margin:0!important;inset:auto!important}
.v8-role-icon{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;max-width:42px!important;max-height:42px!important;flex:0 0 42px!important;overflow:hidden!important;border-radius:14px!important}
.v8-role-icon>svg,.v8-role-icon svg{display:block!important;width:21px!important;height:21px!important;min-width:21px!important;min-height:21px!important;max-width:21px!important;max-height:21px!important;flex:0 0 21px!important}
.v8-service-icon,.quick-action-icon,.metric-icon{overflow:hidden!important}
.v8-service-icon svg,.quick-action-icon svg,.metric-icon svg{max-width:24px!important;max-height:24px!important}

/* The public footer must never leak into dashboard mobile screens. */
body.dashboard-mode>footer,body.dashboard-mode footer{display:none!important}

@media(max-width:820px){
  /* Absolute safety bounds for every mobile-shell icon. */
  body.dashboard-mode .v8-mobile-dash-header{overflow:hidden!important}
  body.dashboard-mode .v8-mobile-logo{width:78px!important;height:42px!important;max-width:78px!important;overflow:hidden!important;flex:0 0 78px!important}
  body.dashboard-mode .v8-mobile-logo img{display:block!important;width:72px!important;height:38px!important;min-width:0!important;max-width:72px!important;max-height:38px!important;object-fit:contain!important}
  body.dashboard-mode .v8-mobile-head-actions>a,body.dashboard-mode .v8-mobile-head-actions>button{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;max-width:42px!important;max-height:42px!important;overflow:hidden!important;flex:0 0 42px!important}
  body.dashboard-mode .v8-mobile-head-actions svg{display:block!important;width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;max-width:20px!important;max-height:20px!important}
  body.dashboard-mode .v8-dashboard-bottom{overflow:hidden!important}
  body.dashboard-mode .v8-bottom-item{min-width:0!important;max-width:100%!important;overflow:hidden!important}
  body.dashboard-mode .v8-bottom-item svg{display:block!important;width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;max-width:20px!important;max-height:20px!important;flex:0 0 20px!important}
  body.dashboard-mode .v8-sheet-link svg{display:block!important;width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important;max-width:22px!important;max-height:22px!important}
  body.dashboard-mode .metric-icon svg,body.dashboard-mode .quick-action-icon svg,body.dashboard-mode .btn svg,body.dashboard-mode .dash-date svg{width:18px!important;height:18px!important;max-width:18px!important;max-height:18px!important}

  /* Registration cards become compact mobile cards, not giant icon canvases. */
  .v8-role-cards{align-items:stretch!important}
  .v8-role-card{min-height:118px!important;padding:13px 11px!important;gap:6px!important}
  .v8-role-icon{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;max-width:38px!important;max-height:38px!important;flex-basis:38px!important}
  .v8-role-icon>svg,.v8-role-icon svg{width:19px!important;height:19px!important;min-width:19px!important;min-height:19px!important;max-width:19px!important;max-height:19px!important}
  .v8-role-card strong{font-size:12px!important;line-height:1.35!important}.v8-role-card small{font-size:9.5px!important;line-height:1.45!important}

  /* Public mobile bottom bar icon containment. */
  body.public-mode .v5-public-bottom{overflow:hidden!important}
  body.public-mode .v5-public-bottom .v5-bottom-item{min-width:0!important;overflow:hidden!important}
  body.public-mode .v5-public-bottom .v5-bottom-item svg{display:block!important;width:19px!important;height:19px!important;min-width:19px!important;min-height:19px!important;max-width:19px!important;max-height:19px!important;flex:0 0 19px!important}
}
