:root{--bg:#f6f8fc;--surface:#fff;--surface-2:#f0f4ff;--ink:#14213d;--muted:#64748b;--line:#e2e8f0;--brand:#3b5ccc;--brand-2:#6d5dfc;--green:#15966f;--amber:#c57a0b;--red:#c2414b;--radius:22px;--shadow:0 18px 50px rgba(31,45,80,.09)}*{box-sizing:border-box}html{scroll-behavior:smooth}body.v2{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.55}a{color:inherit}.v2-shell{min-height:100vh}.v2-topbar{position:sticky;top:0;z-index:40;background:rgba(246,248,252,.88);backdrop-filter:blur(16px);border-bottom:1px solid rgba(226,232,240,.85)}.v2-nav{max-width:1180px;margin:auto;display:flex;align-items:center;gap:22px;padding:14px 22px}.v2-brand{display:flex;align-items:center;gap:11px;text-decoration:none;font-weight:850;letter-spacing:-.02em}.v2-brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,var(--brand),var(--brand-2));color:white;box-shadow:0 8px 22px rgba(59,92,204,.28)}.v2-links{display:flex;align-items:center;gap:7px;margin-left:auto}.v2-links a{padding:9px 12px;border-radius:12px;text-decoration:none;color:#536079;font-weight:650;font-size:14px}.v2-links a:hover,.v2-links a.active{background:#fff;color:var(--ink);box-shadow:0 3px 12px rgba(31,45,80,.06)}.v2-user{display:flex;gap:8px;margin-left:8px}.v2-btn{border:0;border-radius:13px;padding:11px 16px;font:inherit;font-weight:750;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px}.v2-btn.primary{color:white;background:linear-gradient(135deg,var(--brand),var(--brand-2));box-shadow:0 9px 22px rgba(59,92,204,.22)}.v2-btn.secondary{background:#fff;border:1px solid var(--line);color:var(--ink)}.v2-btn.ghost{background:transparent;color:var(--muted)}.v2-wrap{max-width:1180px;margin:auto;padding:34px 22px 90px}.v2-hero{display:grid;grid-template-columns:1.25fr .75fr;gap:28px;align-items:center;padding:38px 0 28px}.eyebrow{display:inline-flex;gap:8px;align-items:center;padding:7px 10px;border-radius:999px;background:#eaf0ff;color:#3854aa;font-weight:800;font-size:12px;text-transform:uppercase;letter-spacing:.08em}.v2-hero h1{font-size:clamp(42px,7vw,74px);line-height:.98;letter-spacing:-.055em;margin:18px 0 18px;max-width:820px}.v2-hero p.lead{font-size:19px;color:var(--muted);max-width:690px;margin:0 0 25px}.hero-actions{display:flex;flex-wrap:wrap;gap:10px}.agent-preview{background:linear-gradient(155deg,#13244d,#334f9d 65%,#715fe8);color:#fff;border-radius:30px;padding:24px;min-height:355px;box-shadow:0 30px 70px rgba(31,45,80,.22);position:relative;overflow:hidden}.agent-preview:before{content:"";position:absolute;width:200px;height:200px;border-radius:50%;background:rgba(255,255,255,.1);top:-80px;right:-80px}.agent-title{font-size:14px;opacity:.78}.agent-score{font-size:62px;font-weight:900;letter-spacing:-.06em;margin:12px 0 0}.agent-score small{font-size:18px;font-weight:700;letter-spacing:0}.agent-card{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.15);padding:15px;border-radius:17px;margin-top:22px}.agent-card strong{display:block;margin-bottom:5px}.v2-grid{display:grid;gap:18px}.v2-grid.cols-4{grid-template-columns:repeat(4,1fr)}.v2-grid.cols-3{grid-template-columns:repeat(3,1fr)}.v2-grid.cols-2{grid-template-columns:repeat(2,1fr)}.v2-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:21px;box-shadow:0 6px 22px rgba(31,45,80,.045)}.v2-card.soft{background:var(--surface-2);box-shadow:none;border-color:#dbe4ff}.v2-card h3,.v2-card h2{margin-top:0;letter-spacing:-.02em}.metric{font-size:31px;font-weight:880;letter-spacing:-.04em}.muted{color:var(--muted)}.tiny{font-size:12px}.section-head{display:flex;justify-content:space-between;align-items:end;gap:15px;margin:40px 0 16px}.section-head h2{margin:0;font-size:28px;letter-spacing:-.035em}.section-head p{margin:3px 0 0;color:var(--muted)}.scholar-card{display:flex;flex-direction:column;gap:13px;position:relative}.scholar-top{display:flex;justify-content:space-between;gap:12px}.flag-dot{width:42px;height:42px;border-radius:13px;background:#edf2ff;display:grid;place-items:center;color:#4763bd}.match-pill{align-self:flex-start;padding:6px 9px;border-radius:999px;background:#e9f8f2;color:#087a59;font-size:12px;font-weight:850}.match-pill.medium{background:#fff3dd;color:#a36308}.scholar-card h3{font-size:18px;margin:0}.scholar-meta{display:flex;gap:6px;flex-wrap:wrap}.chip{font-size:12px;font-weight:700;color:#536079;background:#f2f5f9;border-radius:999px;padding:5px 9px}.deadline{font-size:13px;color:var(--muted)}.scholar-actions{display:flex;gap:8px;margin-top:auto}.progress{height:9px;background:#e9edf5;border-radius:999px;overflow:hidden}.progress>span{display:block;height:100%;background:linear-gradient(90deg,var(--brand),var(--brand-2));border-radius:inherit}.profile-layout{display:grid;grid-template-columns:280px 1fr;gap:22px}.profile-nav{position:sticky;top:90px;align-self:start}.profile-nav a{display:flex;gap:9px;align-items:center;text-decoration:none;padding:11px 12px;border-radius:12px;color:#5a6780;font-weight:700}.profile-nav a:hover{background:#f2f5fa;color:var(--ink)}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.field{display:flex;flex-direction:column;gap:6px}.field.full{grid-column:1/-1}.field label{font-size:13px;font-weight:800;color:#45516a}.field input,.field select,.field textarea,.searchbox{width:100%;border:1px solid #d6deea;border-radius:13px;padding:12px 13px;font:inherit;background:#fff;color:var(--ink);outline:none}.field input:focus,.field select:focus,.field textarea:focus,.searchbox:focus{border-color:#879ae2;box-shadow:0 0 0 3px rgba(59,92,204,.11)}.field textarea{min-height:100px;resize:vertical}.notice{padding:13px 15px;border-radius:14px;background:#eef3ff;color:#3e568f;font-size:13px}.notice.success{background:#eaf8f3;color:#10694f}.notice.warn{background:#fff5e5;color:#935f0f}.row{display:flex;gap:10px;align-items:center}.space{justify-content:space-between}.list-clean{list-style:none;padding:0;margin:0}.list-clean li{padding:12px 0;border-bottom:1px solid var(--line)}.list-clean li:last-child{border-bottom:0}.readiness-ring{width:126px;height:126px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--brand) var(--p,0%),#e7ecf4 0);position:relative}.readiness-ring:before{content:"";position:absolute;inset:10px;background:white;border-radius:50%}.readiness-ring strong{position:relative;font-size:28px}.toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.toolbar .searchbox{flex:1;min-width:230px}.filter-select{border:1px solid var(--line);border-radius:12px;padding:11px;background:white}.empty{text-align:center;padding:45px 20px;color:var(--muted)}.empty i{font-size:30px;margin-bottom:10px}.chat-shell{display:grid;grid-template-columns:290px 1fr;min-height:70vh;background:white;border:1px solid var(--line);border-radius:26px;overflow:hidden;box-shadow:var(--shadow)}.chat-side{background:#f5f7fc;padding:20px;border-right:1px solid var(--line)}.chat-main{display:flex;flex-direction:column;min-height:650px}.messages{flex:1;padding:25px;overflow:auto}.message{max-width:76%;padding:13px 15px;border-radius:18px;margin:9px 0}.message.user{margin-left:auto;background:#2f4fbd;color:white;border-bottom-right-radius:5px}.message.ai{background:#f1f4f9;border-bottom-left-radius:5px}.message.ai p:first-child{margin-top:0}.message.ai p:last-child{margin-bottom:0}.composer{display:flex;gap:9px;padding:18px;border-top:1px solid var(--line)}.composer textarea{flex:1;border:1px solid var(--line);border-radius:15px;padding:12px;resize:none;font:inherit;min-height:48px}.suggestions{display:flex;gap:8px;flex-wrap:wrap}.suggestions button{border:1px solid #dce3ef;background:#fff;border-radius:999px;padding:8px 10px;font:inherit;font-size:12px;cursor:pointer}.auth-page{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-art{background:linear-gradient(145deg,#172a59,#435fc1 62%,#7665ee);color:white;padding:7vw;display:flex;flex-direction:column;justify-content:center}.auth-art h1{font-size:54px;letter-spacing:-.05em;line-height:1.02;margin:14px 0}.auth-panel{display:grid;place-items:center;padding:35px}.auth-box{width:min(450px,100%)}.auth-box h2{font-size:32px;margin-bottom:6px}.tabs{display:flex;gap:5px;background:#eef2f7;border-radius:14px;padding:4px;margin:20px 0}.tabs button{flex:1;border:0;background:transparent;border-radius:10px;padding:9px;font:inherit;font-weight:750;cursor:pointer}.tabs button.active{background:white;box-shadow:0 3px 9px rgba(20,33,61,.07)}.notif{display:flex;gap:12px;align-items:flex-start}.notif-icon{width:40px;height:40px;border-radius:12px;background:#edf2ff;color:var(--brand);display:grid;place-items:center;flex:0 0 auto}.v2-footer{border-top:1px solid var(--line);background:white;padding:30px 22px 100px}.v2-footer-inner{max-width:1180px;margin:auto;display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;color:var(--muted);font-size:13px}.mobile-dock{display:none}.toast-v2{position:fixed;right:20px;bottom:22px;background:#13213f;color:#fff;border-radius:14px;padding:12px 15px;z-index:100;box-shadow:var(--shadow);opacity:0;transform:translateY(10px);pointer-events:none;transition:.2s}.toast-v2.show{opacity:1;transform:none}.hero-stat{display:flex;gap:10px;align-items:center}.hero-stat i{width:38px;height:38px;border-radius:12px;background:#eef3ff;color:var(--brand);display:grid;place-items:center}.kicker{font-size:12px;text-transform:uppercase;letter-spacing:.08em;font-weight:850;color:#5e6e8c}.priority-item{display:grid;grid-template-columns:34px 1fr;gap:11px}.priority-num{width:30px;height:30px;border-radius:10px;background:#edf2ff;color:#405bb4;display:grid;place-items:center;font-weight:850}.status-dot{width:8px;height:8px;border-radius:50%;background:var(--green);display:inline-block}.status-dot.upcoming{background:var(--amber)}.status-dot.closed{background:#94a3b8}.admin-table{width:100%;border-collapse:collapse}.admin-table th,.admin-table td{text-align:left;padding:11px;border-bottom:1px solid var(--line);font-size:13px}.admin-table th{color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.05em}.hide{display:none!important}@media(max-width:900px){.v2-links{display:none}.v2-nav{padding:12px 16px}.v2-user .secondary{display:none}.v2-wrap{padding:24px 16px 100px}.v2-hero{grid-template-columns:1fr}.v2-hero h1{font-size:48px}.agent-preview{min-height:310px}.v2-grid.cols-4,.v2-grid.cols-3{grid-template-columns:repeat(2,1fr)}.profile-layout{grid-template-columns:1fr}.profile-nav{display:none}.chat-shell{grid-template-columns:1fr}.chat-side{border-right:0;border-bottom:1px solid var(--line)}.chat-main{min-height:600px}.auth-page{grid-template-columns:1fr}.auth-art{display:none}.mobile-dock{display:flex;position:fixed;bottom:10px;left:10px;right:10px;z-index:50;padding:7px;background:rgba(255,255,255,.92);border:1px solid var(--line);box-shadow:0 12px 35px rgba(20,33,61,.16);backdrop-filter:blur(14px);border-radius:18px;justify-content:space-around}.mobile-dock a{display:grid;place-items:center;gap:2px;text-decoration:none;color:#6b758c;font-size:10px;font-weight:750;padding:5px 8px}.mobile-dock a i{font-size:17px}.mobile-dock a.active{color:var(--brand)}.v2-footer{padding-bottom:100px}}@media(max-width:620px){.v2-grid.cols-4,.v2-grid.cols-3,.v2-grid.cols-2{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.v2-hero h1{font-size:42px}.message{max-width:90%}.section-head{align-items:start;flex-direction:column}.v2-card{padding:17px}.hero-actions .v2-btn{flex:1}.agent-score{font-size:52px}}

/* V5.3 content merge */
.v2-input{width:100%;margin-top:6px;padding:12px 14px;border:1px solid var(--line,#dfe3ec);border-radius:12px;background:var(--card,#fff);color:inherit;font:inherit}.v2-input:focus{outline:2px solid var(--brand,#3b5ccc);outline-offset:2px}

/* ==========================================================
   V5.4 mobile profile responsiveness fix
   Handles phones that request a wide/desktop viewport too.
   ========================================================== */
@media (max-width:1100px), (max-device-width:900px){
  .v2-links{display:none!important}
  .v2-nav{padding:12px 16px;gap:12px}
  .v2-user{margin-left:auto}
  .v2-user .secondary{display:none!important}
  .v2-wrap{padding:22px 16px 110px}

  .profile-layout{grid-template-columns:minmax(0,1fr)!important;gap:14px}
  .profile-nav{
    position:sticky;
    top:72px;
    z-index:25;
    display:flex!important;
    align-items:center;
    gap:6px;
    overflow-x:auto;
    overscroll-behavior-inline:contain;
    scrollbar-width:none;
    padding:9px!important;
    border-radius:16px;
    box-shadow:0 8px 24px rgba(31,45,80,.08)
  }
  .profile-nav::-webkit-scrollbar{display:none}
  .profile-nav .kicker{display:none}
  .profile-nav a{
    flex:0 0 auto;
    white-space:nowrap;
    padding:9px 11px;
    font-size:12px;
    border:1px solid var(--line);
    background:var(--surface)
  }
  .profile-nav a:hover,.profile-nav a:focus{background:var(--surface-2)}

  .section-head{align-items:center;gap:12px}
  .section-head h2{font-size:clamp(28px,7vw,36px)!important;line-height:1.08}
  .readiness-ring{width:96px;height:96px;flex:0 0 96px}
  .readiness-ring strong{font-size:23px}

  .mobile-dock{display:flex!important;position:fixed;bottom:10px;left:10px;right:10px;z-index:50;padding:7px;background:rgba(255,255,255,.94);border:1px solid var(--line);box-shadow:0 12px 35px rgba(20,33,61,.16);backdrop-filter:blur(14px);border-radius:18px;justify-content:space-around}
  .mobile-dock a{display:grid;place-items:center;gap:2px;text-decoration:none;color:#6b758c;font-size:10px;font-weight:750;padding:5px 8px}
  .mobile-dock a i{font-size:17px}
  .mobile-dock a.active{color:var(--brand)}
  .v2-footer{padding-bottom:110px}
}

@media (max-width:700px), (max-device-width:700px){
  .v2-brand{font-size:14px}
  .v2-brand-mark{width:34px;height:34px}
  .v2-btn{padding:10px 13px}
  .section-head{align-items:flex-start}
  .section-head>div:first-child{min-width:0;flex:1}
  .section-head p{font-size:13px}
  .readiness-ring{width:78px;height:78px;flex-basis:78px}
  .readiness-ring:before{inset:7px}
  .readiness-ring strong{font-size:19px}

  .profile-layout>.v2-grid{min-width:0}
  .profile-layout .v2-card{border-radius:17px;padding:16px}
  .form-grid{grid-template-columns:1fr!important;gap:12px}
  .field.full{grid-column:auto!important}
  .field input,.field select,.field textarea,.searchbox{font-size:16px;min-height:46px}
  .field textarea{min-height:110px}

  #goals .row,#cv .row,#saved .row.space,#notifications .row.space{align-items:stretch;flex-direction:column}
  #goals .row .v2-btn,#cv .row .v2-btn{width:100%}
  #saveState{display:block;line-height:1.4}
  #cv input[type="file"]{width:100%;max-width:100%;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
  #saved .row.space .v2-btn,#notifications .row.space .v2-btn{align-self:flex-start}

  .v2-footer-inner{font-size:12px}
}

@media (max-width:430px), (max-device-width:430px){
  .v2-nav{padding-left:12px;padding-right:12px}
  .v2-wrap{padding-left:12px;padding-right:12px}
  .profile-nav{top:66px;margin-left:-2px;margin-right:-2px}
  .profile-nav a{font-size:11px;padding:8px 9px}
  .profile-nav a i{font-size:11px}
  .section-head{margin-top:8px!important}
  .section-head h2{font-size:29px!important}
  .section-head .eyebrow{font-size:10px}
  .readiness-ring{width:70px;height:70px;flex-basis:70px}
}


/* ==========================================================
   V5.5 FINAL — global UI/UX refinement
   ========================================================== */
:root{--radius:20px;--shadow:0 12px 34px rgba(25,42,78,.08);--shadow-hover:0 18px 42px rgba(25,42,78,.14)}
body.v2{background:linear-gradient(180deg,#f8faff 0,#f5f7fb 52%,#f8f9fc 100%);min-height:100vh}
.v2-wrap{width:min(100%,1224px);padding-top:30px}
.v2-topbar{box-shadow:0 1px 0 rgba(31,45,80,.03)}
.v2-nav{max-width:1224px;min-height:66px}
.v2-brand,.v2-links a,.v2-btn,.channel-card{transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease,border-color .18s ease,color .18s ease}
.v2-links a:hover{transform:translateY(-1px)}
.v2-card{box-shadow:var(--shadow);border-color:rgba(219,226,239,.95)}
.v2-card:not(.story-card):hover{box-shadow:var(--shadow-hover)}
.v2-btn:hover{transform:translateY(-1px)}
.v2-btn:active{transform:translateY(0) scale(.985)}
.v2-btn:focus-visible,.v2-links a:focus-visible,.profile-nav a:focus-visible,.channel-card:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible{outline:3px solid rgba(59,92,204,.28);outline-offset:2px}
.field input,.field select,.field textarea,.searchbox,.filter-select,.v2-input{border-radius:14px;border:1px solid #dce3ef;background:#fff;box-shadow:0 1px 2px rgba(31,45,80,.02);transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}
.field input:focus,.field select:focus,.field textarea:focus,.searchbox:focus,.filter-select:focus,.v2-input:focus{border-color:#6780de;box-shadow:0 0 0 4px rgba(59,92,204,.10);outline:none}
.section-head h2{line-height:1.12}.section-head p{max-width:760px}
.scholar-card,.community-card{height:100%}

/* Theme lives inside the account/user area, not as a floating corner button. */
.v2-user{align-items:center;position:relative}
.v5-theme-control.in-user{position:relative;right:auto;bottom:auto;z-index:120;display:flex;align-items:center;font-family:Inter,system-ui,sans-serif}
.v5-theme-control.in-user .v5-theme-button{width:auto;height:42px;border-radius:13px;padding:0 12px;display:flex;align-items:center;gap:8px;border:1px solid var(--v5-line);background:var(--v5-surface);color:var(--v5-ink);box-shadow:none;font-size:13px;font-weight:750}
.v5-theme-control.in-user .v5-theme-current{display:inline}.v5-theme-chevron{font-size:10px;opacity:.65}
.v5-theme-control.in-user .v5-theme-menu{position:absolute;display:none;right:0;top:calc(100% + 10px);width:210px;padding:8px;border:1px solid var(--v5-line);border-radius:16px;background:var(--v5-surface);color:var(--v5-ink);box-shadow:0 18px 50px rgba(20,33,61,.18)}
.v5-theme-control.in-user.open .v5-theme-menu{display:grid;gap:4px}
.v5-theme-control.in-user .v5-theme-menu button{display:grid;grid-template-columns:22px 1fr;align-items:center;gap:8px}
.v5-theme-control.fallback{position:fixed;right:16px;bottom:18px;z-index:110}.v5-theme-control.fallback .v5-theme-current,.v5-theme-control.fallback .v5-theme-chevron{display:none}.v5-theme-control.fallback .v5-theme-button{width:46px;height:46px;border-radius:15px;border:1px solid var(--v5-line);background:var(--v5-surface);color:var(--v5-ink);box-shadow:var(--v5-shadow)}

/* Homepage story sections */
.home-story-section,.home-connect-section{margin:64px 0 0}
.home-section-title{text-align:center;margin:0 auto 24px;max-width:930px}
.home-section-title h2{font-size:clamp(30px,4.6vw,44px);line-height:1.08;letter-spacing:-.035em;margin:0;color:var(--ink)}
.home-section-title>span{display:block;width:112px;height:4px;border-radius:99px;background:linear-gradient(90deg,#3658c9,#ff9c4a);margin:18px auto 0}
.home-section-title p{margin:18px auto 0;font-size:17px;color:var(--muted)}
.story-card{max-width:1080px;margin:0 auto;padding:clamp(24px,4vw,48px);background:linear-gradient(145deg,#fff,#f8faff);border:1px solid #e1e7f0;box-shadow:0 12px 34px rgba(30,47,85,.07)}
.story-card h3{font-size:clamp(20px,2.4vw,28px);margin-bottom:22px}.story-card p{font-size:16px;line-height:1.8;color:#4f5d75;margin:0}.story-card p+p{margin-top:20px}
.public-story{max-width:1180px;margin-left:auto;margin-right:auto}

/* Homepage channel cards */
.channel-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.channel-card{min-height:220px;border-radius:22px;padding:30px 22px;color:#fff;text-decoration:none;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;box-shadow:0 12px 28px rgba(25,42,78,.15);position:relative;overflow:hidden}
.channel-card:before{content:"";position:absolute;width:170px;height:170px;border-radius:50%;background:rgba(255,255,255,.08);right:-65px;top:-75px}.channel-card:hover{transform:translateY(-5px);box-shadow:0 20px 42px rgba(25,42,78,.22)}
.channel-icon{font-size:34px;margin-bottom:18px;position:relative}.channel-card h3{font-size:20px;margin:0 0 18px;position:relative}.channel-cta{background:#fff;color:#24314a;border-radius:999px;padding:10px 24px;min-width:105px;font-weight:800;box-shadow:0 7px 18px rgba(0,0,0,.10);position:relative}
.channel-1{background:linear-gradient(135deg,#4166ef,#3e42ce)}.channel-2{background:linear-gradient(135deg,#20cc6a,#08a954)}.channel-3{background:linear-gradient(135deg,#ff5d63,#df2047)}.channel-4{background:linear-gradient(135deg,#20bd75,#099d60)}.channel-5{background:linear-gradient(135deg,#2eb4e7,#1187be)}.channel-6{background:linear-gradient(135deg,#a453ed,#6e35cf)}.channel-7{background:linear-gradient(135deg,#244f92,#17376c)}.channel-8{background:linear-gradient(135deg,#ff9138,#f15b13)}

/* Community cards */
#communityGrid .v2-card{display:flex;flex-direction:column;min-height:220px}
#communityGrid .v2-card h3{font-size:19px;line-height:1.3;margin:18px 0 8px}
#communityGrid .v2-card .v2-btn{margin-top:auto!important}
#communityGrid .v2-card:hover{transform:translateY(-3px)}

/* Better profile rhythm */
.profile-layout{align-items:start}.profile-nav{top:88px}.profile-nav a{border-radius:12px}.profile-layout>.v2-grid{gap:20px}
#personal,#academic,#goals,#cv,#saved,#notifications{scroll-margin-top:120px}

@media(max-width:1000px){
  .channel-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .v5-theme-control.in-user .v5-theme-current,.v5-theme-control.in-user .v5-theme-chevron{display:none}
  .v5-theme-control.in-user .v5-theme-button{width:42px;padding:0;justify-content:center}
}
@media(max-width:700px){
  .home-story-section,.home-connect-section{margin-top:44px}
  .story-card{padding:22px 18px}.story-card p{font-size:15px;line-height:1.7}
  .channel-grid{grid-template-columns:1fr;gap:14px}.channel-card{min-height:170px;padding:24px 18px}.channel-card h3{font-size:19px;margin-bottom:14px}.channel-icon{font-size:30px;margin-bottom:13px}
  .home-section-title h2{font-size:31px}.home-section-title p{font-size:15px}.home-section-title>span{width:88px;margin-top:14px}
  .v2-user{gap:6px}.v2-user .v2-btn{font-size:12px;padding:10px 11px}
}
@media(max-width:430px){
  .v2-user #authBtn{padding-left:11px;padding-right:11px}.v2-brand span:last-child{max-width:112px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}


/* ==========================================================
   V5.7 — User hub, community explorer & visual variations
   ========================================================== */
:root{--brand:#4967d8;--brand-2:#7c58df;--brand-soft:#eef1ff;--brand-rgb:73,103,216;--page-glow:rgba(73,103,216,.12)}
:root[data-skin="ocean"]{--brand:#087fbd;--brand-2:#11a4a3;--brand-soft:#e8f8fb;--brand-rgb:8,127,189;--page-glow:rgba(8,127,189,.12)}
:root[data-skin="emerald"]{--brand:#0f8b68;--brand-2:#55a630;--brand-soft:#ebf8f2;--brand-rgb:15,139,104;--page-glow:rgba(15,139,104,.12)}
:root[data-skin="sunset"]{--brand:#d95d39;--brand-2:#d9467b;--brand-soft:#fff0eb;--brand-rgb:217,93,57;--page-glow:rgba(217,93,57,.12)}
body.v2{background:radial-gradient(circle at 10% 0,var(--page-glow),transparent 30%),linear-gradient(180deg,var(--v5-bg,#f8faff),#f6f8fc 52%,var(--v5-bg,#f8faff));}
.v2-brand-mark,.v2-btn.primary,.mobile-dock a.active{--brand-local:var(--brand)}
.v2-brand-mark,.v2-btn.primary{background:linear-gradient(135deg,var(--brand),var(--brand-2))!important}
.v2-links a.active{color:var(--brand)!important;background:var(--brand-soft)!important}.v2-links a.active:after{background:var(--brand)!important}

/* Account/user control */
.v2-user{margin-left:auto}.account-menu{position:relative}.account-trigger{min-width:196px;min-height:48px;display:grid;grid-template-columns:38px 1fr 14px;align-items:center;gap:10px;border:1px solid var(--line);border-radius:16px;padding:5px 10px 5px 6px;background:var(--surface);color:var(--ink);cursor:pointer;box-shadow:0 6px 20px rgba(31,45,80,.06);text-align:left;transition:.18s ease}.account-trigger:hover{transform:translateY(-1px);box-shadow:0 10px 26px rgba(31,45,80,.11);border-color:rgba(var(--brand-rgb),.35)}.account-avatar{width:38px;height:38px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(135deg,var(--brand),var(--brand-2));color:#fff;box-shadow:0 7px 16px rgba(var(--brand-rgb),.22)}.account-avatar.large{width:46px;height:46px;border-radius:15px}.account-copy{display:flex;min-width:0;flex-direction:column;line-height:1.2}.account-copy strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.account-copy small,.account-panel-head small{font-size:10px;color:var(--muted);margin-top:3px}.account-chevron{font-size:10px;color:var(--muted);transition:transform .18s}.account-menu.open .account-chevron{transform:rotate(180deg)}.account-panel{position:absolute;right:0;top:calc(100% + 10px);width:320px;padding:10px;border:1px solid var(--line);border-radius:20px;background:var(--surface);box-shadow:0 24px 60px rgba(20,33,61,.20);display:none;z-index:800}.account-menu.open .account-panel{display:block;animation:accountIn .15s ease-out}@keyframes accountIn{from{opacity:0;transform:translateY(-5px) scale(.98)}to{opacity:1;transform:none}}.account-panel-head{display:flex;align-items:center;gap:11px;padding:8px 8px 12px;border-bottom:1px solid var(--line)}.account-panel-head>div{display:flex;min-width:0;flex-direction:column}.account-panel-head strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.account-item{display:grid;grid-template-columns:30px 1fr;gap:9px;align-items:center;margin-top:6px;padding:10px;border-radius:13px;text-decoration:none;color:var(--ink)}.account-item:hover{background:var(--surface-2)}.account-item>i{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;background:var(--brand-soft);color:var(--brand)}.account-item span{display:flex;flex-direction:column}.account-item strong{font-size:12px}.account-item small{font-size:10px;color:var(--muted);margin-top:2px}.account-panel-actions{padding:9px 4px 2px;border-top:1px solid var(--line);margin-top:8px}.account-panel-actions .v2-btn{width:100%;text-align:center}

/* Appearance lives inside account panel */
.v5-theme-control.in-account{padding:10px 8px;margin:6px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.appearance-title{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:10px}.appearance-title>span{font-size:12px;font-weight:800}.appearance-title>span i{color:var(--brand);margin-right:6px}.appearance-title small{font-size:9px;color:var(--muted)}.appearance-block+.appearance-block{margin-top:11px}.appearance-label{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);display:flex;justify-content:space-between;margin-bottom:7px}.appearance-label span{color:var(--ink);font-weight:800;letter-spacing:0;text-transform:none}.theme-mode-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:5px}.theme-mode-grid button,.skin-grid button{border:1px solid var(--line);background:var(--surface-2);color:var(--ink);border-radius:10px;cursor:pointer}.theme-mode-grid button{height:44px;padding:4px;display:grid;place-items:center;gap:1px;font-size:8px}.theme-mode-grid button i{font-size:13px}.theme-mode-grid button[aria-current="true"],.skin-grid button[aria-current="true"]{border-color:var(--brand);box-shadow:0 0 0 2px rgba(var(--brand-rgb),.11);background:var(--brand-soft);color:var(--brand)}.skin-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.skin-grid button{padding:7px 3px;display:grid;place-items:center;gap:4px;font-size:8px}.skin-swatch{width:22px;height:13px;border-radius:99px}.skin-swatch.indigo{background:linear-gradient(90deg,#4967d8,#7c58df)}.skin-swatch.ocean{background:linear-gradient(90deg,#087fbd,#11a4a3)}.skin-swatch.emerald{background:linear-gradient(90deg,#0f8b68,#55a630)}.skin-swatch.sunset{background:linear-gradient(90deg,#d95d39,#d9467b)}.v5-theme-control.fallback{right:16px;bottom:16px;max-width:320px;background:var(--surface);padding:12px;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}

/* Profile user hub */
.profile-user-hub{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 24px;padding:24px 26px;border:1px solid rgba(var(--brand-rgb),.15);border-radius:24px;background:linear-gradient(135deg,var(--surface),var(--brand-soft));box-shadow:0 14px 36px rgba(31,45,80,.07)}.profile-user-identity{display:flex;align-items:center;gap:18px}.profile-avatar-lg{width:72px;height:72px;flex:0 0 72px;border-radius:23px;display:grid;place-items:center;background:linear-gradient(135deg,var(--brand),var(--brand-2));color:#fff;font-size:27px;box-shadow:0 14px 28px rgba(var(--brand-rgb),.25)}.profile-user-identity h2{font-size:24px;line-height:1.15;margin:3px 0 6px;letter-spacing:-.025em}.profile-user-identity p{margin:0;max-width:680px;font-size:13px}.profile-user-actions{display:flex;gap:8px;flex:0 0 auto}

/* Community explorer */
.community-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 16px}.community-quick-filters{display:flex;gap:8px;flex-wrap:wrap}.community-chip,.community-view-toggle button{border:1px solid var(--line);background:var(--surface);color:var(--muted);cursor:pointer;transition:.16s}.community-chip{border-radius:999px;padding:8px 13px;font-size:11px;font-weight:800}.community-chip:hover,.community-chip.active{border-color:var(--brand);background:var(--brand-soft);color:var(--brand)}.community-view-toggle{display:flex;border:1px solid var(--line);border-radius:12px;padding:3px;background:var(--surface)}.community-view-toggle button{width:34px;height:32px;border:0;border-radius:9px}.community-view-toggle button.active{background:var(--brand-soft);color:var(--brand)}.community-card-v57{min-height:260px!important;padding:19px!important;overflow:hidden;position:relative}.community-card-v57:after{content:"";position:absolute;width:120px;height:120px;border-radius:50%;background:var(--brand-soft);right:-60px;top:-55px;opacity:.8}.community-card-top{display:flex;justify-content:space-between;align-items:center;position:relative;z-index:1}.community-platform{display:flex;align-items:center;gap:10px}.community-platform-icon{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,var(--brand),var(--brand-2));color:#fff;font-size:18px;box-shadow:0 8px 18px rgba(var(--brand-rgb),.20)}.community-platform>div{display:flex;flex-direction:column}.community-platform small{font-size:9px;text-transform:uppercase;letter-spacing:.07em;color:var(--muted)}.community-platform span{font-size:12px;font-weight:800}.community-save{width:36px;height:36px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--muted);cursor:pointer;position:relative;z-index:2}.community-save:hover,.community-save.saved{color:var(--brand);border-color:var(--brand);background:var(--brand-soft)}.community-card-body{padding:20px 0 17px;position:relative;z-index:1}.community-tags{display:flex;gap:5px;flex-wrap:wrap}.soft-chip{background:var(--surface-2)!important;color:var(--muted)!important}.community-card-v57 h3{margin:12px 0 8px!important;font-size:18px!important}.community-members{margin:0;color:var(--muted);font-size:11px}.community-members i{color:var(--brand);margin-right:5px}.community-card-actions{display:grid;grid-template-columns:1fr 42px;gap:7px;margin-top:auto;position:relative;z-index:1}.community-card-actions .v2-btn{display:flex;align-items:center;justify-content:center;gap:6px;margin:0!important}.community-copy{padding:0!important;min-width:42px}.community-results.list-view{display:grid!important;grid-template-columns:1fr!important}.community-results.list-view .community-card-v57{min-height:0!important;display:grid!important;grid-template-columns:230px 1fr 220px;align-items:center;gap:20px}.community-results.list-view .community-card-body{padding:0}.community-results.list-view .community-card-actions{margin:0}.community-empty{grid-column:1/-1;text-align:center;padding:44px!important}.community-empty>i{font-size:28px;color:var(--brand);display:block;margin-bottom:12px}

@media(max-width:900px){.account-trigger{min-width:48px;width:48px;padding:5px;grid-template-columns:38px}.account-copy,.account-chevron{display:none}.account-panel{right:0}.profile-user-hub{align-items:flex-start;flex-direction:column}.profile-user-actions{width:100%}.profile-user-actions .v2-btn{flex:1;text-align:center}.community-results.list-view .community-card-v57{grid-template-columns:1fr}}
@media(max-width:700px){.account-panel{position:fixed;top:72px;right:10px;left:10px;width:auto;max-height:calc(100vh - 95px);overflow:auto}.profile-user-hub{padding:18px;border-radius:20px}.profile-user-identity{align-items:flex-start}.profile-avatar-lg{width:54px;height:54px;flex-basis:54px;border-radius:18px;font-size:20px}.profile-user-identity h2{font-size:19px}.profile-user-actions{flex-direction:column}.community-toolbar{align-items:flex-start}.community-view-toggle{display:none}.community-quick-filters{overflow:auto;flex-wrap:nowrap;padding-bottom:4px;max-width:100%;scrollbar-width:none}.community-chip{white-space:nowrap}.community-card-v57{min-height:230px!important}.theme-mode-grid button span{display:none}.theme-mode-grid button{height:38px}.skin-grid button span:last-child{font-size:7px}}


/* V5.8 profile + Aspireon polish */
.profile-layout .v2-card{border-color:rgba(var(--brand-rgb),.12);box-shadow:0 10px 30px rgba(31,45,80,.055);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.profile-layout .v2-card:hover{border-color:rgba(var(--brand-rgb),.22);box-shadow:0 16px 38px rgba(31,45,80,.075)}.profile-layout .field input,.profile-layout .field select,.profile-layout .field textarea{transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}.profile-layout .field input:focus,.profile-layout .field select:focus,.profile-layout .field textarea:focus{border-color:var(--brand);box-shadow:0 0 0 4px rgba(var(--brand-rgb),.10);outline:0}.profile-layout #goals .row{padding-top:4px}.profile-layout #saveState{display:inline-flex;align-items:center;min-height:38px}.profile-layout #cv{position:relative;overflow:hidden}.profile-layout #cv:after{content:"";position:absolute;width:180px;height:180px;border-radius:50%;right:-90px;top:-90px;background:var(--brand-soft);pointer-events:none}.profile-layout #cv>.row,.profile-layout #cv>.notice,.profile-layout #cv>#cvState{position:relative;z-index:1}#cvFile{max-width:100%;padding:8px;border:1px dashed var(--line);border-radius:12px;background:var(--surface-2)}
.chat-shell{overflow:hidden;border:1px solid rgba(var(--brand-rgb),.14);box-shadow:0 22px 60px rgba(31,45,80,.10)}.chat-side{background:linear-gradient(180deg,var(--surface-2),var(--surface));border-right:1px solid var(--line)}.chat-main{background:linear-gradient(180deg,var(--surface),rgba(var(--brand-rgb),.025))}.messages{scroll-behavior:smooth}.message{animation:msgIn .18s ease-out;box-shadow:0 5px 18px rgba(31,45,80,.055)}@keyframes msgIn{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}.message.user{background:linear-gradient(135deg,var(--brand),var(--brand-2));color:#fff;border-color:transparent}.message.ai{border:1px solid var(--line)}.composer{gap:10px;padding:14px;border-top:1px solid var(--line);background:color-mix(in srgb,var(--surface) 92%,transparent);backdrop-filter:blur(12px)}.composer textarea{min-height:46px;max-height:140px;resize:none;border-radius:15px;padding:12px 14px;line-height:1.45}.composer .v2-btn{width:48px;height:46px;min-width:48px;padding:0;border-radius:15px;display:grid;place-items:center}.aspireon-quota{display:flex;align-items:flex-start;gap:9px;margin-top:18px;padding:11px 12px;border:1px solid rgba(var(--brand-rgb),.16);border-radius:13px;background:var(--brand-soft);color:var(--ink);font-size:10px;line-height:1.45}.aspireon-quota i{color:var(--brand);margin-top:1px}.aspireon-quota.limit{border-color:#e6a6a6;background:rgba(190,45,45,.08)}.aspireon-quota.limit i{color:#b93434}.suggestions button{transition:transform .16s ease,border-color .16s ease,background .16s ease}.suggestions button:hover{transform:translateY(-1px);border-color:var(--brand);background:var(--brand-soft)}
@media(max-width:700px){.chat-shell{border-radius:18px}.composer{padding:10px}.composer textarea{font-size:16px}.profile-layout .v2-card:hover{transform:none}}

/* V5.9 production hardening: narrow-screen overflow + resilient feedback */
.v2-wrap,.profile-layout,.profile-layout>.v2-grid,.chat-shell,.chat-main,.messages,.message,.composer,.v2-grid,.v2-grid>*{min-width:0}
.message,.message p,.message li,.notif,.field,.scholar-card h3,.scholar-card p,.scholar-meta,.chip,.deadline{overflow-wrap:anywhere;word-break:break-word}
#cv .row{min-width:0}#cvFile{min-width:0;width:min(100%,520px)}
.v2-btn:disabled{cursor:not-allowed;opacity:.62;transform:none!important}
[aria-busy="true"]{cursor:progress}
@media(max-width:390px){.v2-wrap{padding-left:12px;padding-right:12px}.profile-user-hub{padding:15px}.section-head h2{font-size:30px!important}.chat-side{padding:16px}.message{max-width:94%}.composer{gap:7px}.composer .v2-btn{width:44px;min-width:44px}}
