:root{
  --bg:#f5f2eb;
  --card:#ffffff;
  --glass:rgba(255,255,255,0.82);
  --text:#153154;
  --muted:#637287;
  --primary:#18416f;
  --primary-2:#346dac;
  --border:#dde6f1;
  --success:#0b8a5b;
  --warning:#b46f09;
  --danger:#b42318;
  --shadow:0 18px 42px rgba(14,33,64,.08);
  --shadow-hover:0 20px 55px rgba(14,33,64,.14);
  --radius:24px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;overflow-x:hidden}
body{
  margin:0;
  font-family:'Inter',sans-serif;
  color:var(--text);
  background:
   radial-gradient(circle at top left, rgba(217,177,87,.10), transparent 28%),
   radial-gradient(circle at top right, rgba(53,109,172,.10), transparent 26%),
   linear-gradient(180deg,#fbfaf6 0%,#f3f6fb 100%);
  overflow-x:hidden;
}
a{color:var(--primary-2);text-decoration:none}
a:hover{text-decoration:none}
code{background:#edf3ff;padding:2px 6px;border-radius:8px}
img{max-width:100%;display:block}
.app-shell{max-width:1360px;margin:0 auto;padding:18px 18px 32px}
.section{padding:34px 0}
.page-narrow{max-width:1120px;margin:0 auto}
.glass,.card,.result-card,.dashboard-card,.auth-card,.cta-card{background:var(--glass);backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.55);box-shadow:var(--shadow);border-radius:var(--radius)}
.card{padding:26px;background:var(--card)}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;margin-top:8px;margin-bottom:18px}
.sticky{position:sticky;top:10px;z-index:10}
.brand-wrap{display:flex;align-items:center;gap:14px}
.brand-mark{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(135deg,#113869,#2a6dbc);color:#fff;font-size:1.25rem;font-weight:800}
.brand{font-size:1.1rem;font-weight:800;color:var(--text);font-family:'Plus Jakarta Sans',sans-serif}
.brand-sub{font-size:.88rem;color:var(--muted)}
.link-plain{text-decoration:none;color:inherit}
.topnav{display:flex;gap:16px;flex-wrap:wrap}
.topnav a{color:var(--muted);font-weight:600}
.topnav a:hover{color:var(--primary)}
.top-actions{display:flex;gap:10px;align-items:center}
.user-chip{padding:10px 14px;border-radius:999px;background:#edf4ff;border:1px solid #d4e3fb;font-size:.92rem;font-weight:600}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:none;border-radius:14px;padding:11px 18px;font-weight:700;cursor:pointer;transition:.25s transform,.25s box-shadow,.25s opacity;font-family:inherit}
.btn:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(31,80,148,.12)}
.btn-primary{background:linear-gradient(135deg,var(--primary),var(--primary-2));color:#fff}
.btn-secondary{background:#edf4ff;color:var(--primary);border:1px solid #d4e3fb}
.btn-ghost{background:transparent;color:var(--primary);border:1px dashed #c5d8f5}
.btn-lg{padding:14px 22px;font-size:1rem}
.hero-grid,.discover-layout,.auth-grid,.profile-preview-grid,.two-col,.band-grid,.dashboard-grid{display:grid;gap:22px}
.hero-grid{grid-template-columns:1.12fr .88fr;align-items:start}
.hero-copy{padding:20px 4px}
.eyebrow{display:inline-block;padding:8px 12px;border-radius:999px;background:#edf4ff;color:var(--primary-2);font-weight:700;font-size:.82rem;margin-bottom:14px}
h1,h2,h3,h4,p{margin-top:0}
h1{font-family:'Inter',sans-serif;font-size:clamp(2.2rem,5vw,4rem);line-height:1.05;letter-spacing:-.03em;margin-bottom:16px}
h2{font-family:'Plus Jakarta Sans',sans-serif;font-size:clamp(1.6rem,3vw,2.4rem);line-height:1.12;letter-spacing:-.02em;margin-bottom:12px}
.hero-copy h1,.hero-title{font-family:'Cormorant Garamond',serif;font-weight:700;font-size:clamp(2.55rem,5.2vw,4.8rem);line-height:.96;letter-spacing:-.018em;max-width:11.5ch;color:#0f2e52;text-wrap:balance;margin-bottom:18px}
.hero-copy .eyebrow{margin-bottom:16px}
.hero-copy .lead-text{max-width:62ch}
h3{font-size:1.18rem;margin-bottom:10px}
.hero-text,.muted,.section-head p,.result-card p{color:var(--muted);line-height:1.7}
.lead-text{font-size:1.02rem}
.hero-panel{padding:20px}
.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.panel-chip{background:#e9f2ff;color:var(--primary);padding:8px 12px;border-radius:999px;font-weight:700;font-size:.82rem}
.panel-meta{color:var(--muted);font-size:.88rem}
.search-box input,.stack-form input,.stack-form select,.stack-form textarea,.filter-card input,.filter-card select{width:100%;padding:14px 14px;border-radius:14px;border:1px solid var(--border);background:#fff;font:inherit;color:var(--text);outline:none}
.search-box input:focus,.stack-form input:focus,.stack-form select:focus,.stack-form textarea:focus,.filter-card input:focus,.filter-card select:focus{border-color:#a0c1f2;box-shadow:0 0 0 4px rgba(39,97,181,.08)}
textarea{resize:vertical;min-height:120px}
.search-large input{padding:16px 16px;font-size:1rem}
.search-hint{font-size:.88rem;color:var(--muted);margin-top:10px}
.quick-results{display:grid;gap:10px;margin-top:18px}
.quick-result{padding:14px 15px;border-radius:16px;background:#fff;border:1px solid var(--border);transition:.2s transform,.2s border-color}
.quick-result:hover{transform:translateY(-2px);border-color:#b8cff3}
.hero-stats,.badges,.card-actions,.cta-actions,.link-row{display:flex;gap:12px;flex-wrap:wrap}
.stat-card{padding:18px 20px;min-width:140px}
.stat-card strong{display:block;font-size:1.8rem}
.band-grid{grid-template-columns:repeat(3,1fr)}
.band-card{padding:24px}
.band-icon{font-size:1.7rem}
.section-head{text-align:center;max-width:780px;margin:0 auto 18px}
.section-head.left{text-align:left;margin:0 0 18px}
.compact-head{margin-bottom:14px}
.discover-layout{grid-template-columns:320px 1fr;align-items:start}
.filter-card{padding:20px;display:grid;gap:14px;position:sticky;top:104px}
.filter-card label,.stack-form label{display:grid;gap:8px}
.filter-card span,.stack-form span,.field-label{font-size:.93rem;font-weight:700}
.check-row{display:flex!important;align-items:center;grid-template-columns:none!important;gap:12px}
.check-row input{width:auto}
.results-zone{display:grid;gap:16px}
.results-topbar{padding:18px 20px;display:flex;justify-content:space-between;align-items:center}
.results-count{font-weight:800}
.card-grid,.recommendation-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.result-card{padding:20px;position:relative;overflow:hidden}
.result-card.classic-card::before{content:'';position:absolute;inset:0 0 auto 0;height:4px;background:linear-gradient(90deg,rgba(22,60,115,.9),rgba(42,102,178,.45));opacity:.65}
.lift-card{transition:.25s transform,.25s box-shadow,.25s border-color}
.lift-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-hover);border-color:#cfe0fb}
.result-header{display:flex;gap:14px;align-items:flex-start;margin-bottom:14px}
.avatar,.avatar-xl,.avatar-lg,.conference-badge{width:52px;height:52px;border-radius:18px;display:grid;place-items:center;color:#fff;font-weight:800;flex-shrink:0;background:#d8e4f7;object-fit:cover}
.avatar-lg{width:72px;height:72px;font-size:1.2rem;border-radius:22px}
.avatar-xl,.conference-badge{width:88px;height:88px;font-size:1.45rem;border-radius:28px}
.conference-badge{font-family:'Plus Jakarta Sans',sans-serif}
.photo-avatar{object-fit:cover;background:#dbe6f5}
.gradient-a{background:linear-gradient(135deg,#143a6a,#2f76c8)}
.gradient-b{background:linear-gradient(135deg,#1b446d,#0b8a5b)}
.gradient-c{background:linear-gradient(135deg,#5940d5,#2a66b2)}
.gradient-d{background:linear-gradient(135deg,#8a4b15,#c76a22)}
.gradient-e{background:linear-gradient(135deg,#8f1c5f,#ca4a8a)}
.gradient-f{background:linear-gradient(135deg,#205a55,#4a9b94)}
.meta{font-weight:700;color:#29496f}
.badge{padding:8px 11px;border-radius:999px;background:#eef4ff;border:1px solid #d4e3fb;color:#254d87;font-size:.82rem;font-weight:700}
.badge.good{background:#eaf8f1;border-color:#c9eedb;color:var(--success)}
.badge.warn{background:#fff6e8;border-color:#f5deb0;color:var(--warning)}
.profile-preview,.dashboard-card,.auth-card,.cta-card{padding:26px}
.profile-preview-grid,.auth-grid,.two-col{grid-template-columns:1fr 1fr}
.profile-hero{display:flex;gap:16px;align-items:center;margin-bottom:16px}
.profile-hero.large{align-items:flex-start}
.classic-hero{padding-bottom:8px;border-bottom:1px solid var(--border)}
.hero-copy-block{flex:1}
.profile-columns{display:grid;grid-template-columns:1.1fr .9fr;gap:26px;margin-top:22px}
.feature-list{display:grid;gap:12px}
.feature-item,.compact-row,.list-row{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:14px 0;border-top:1px solid var(--border)}
.compact-row{padding:8px 0;font-size:.95rem}
.list-row:first-child,.feature-item:first-child{border-top:none;padding-top:0}
.list-row.split{align-items:center}
.footer{margin-top:34px;padding:24px;border-top:1px solid rgba(16,35,63,.08);display:flex;justify-content:space-between;gap:20px;color:var(--muted)}
.footer-links{display:flex;gap:16px;align-items:flex-start}
.flash{margin:12px 0 18px;padding:16px 18px;border-radius:18px;font-weight:700}
.flash-success,.success-box{background:#eaf8f1;border:1px solid #c9eedb;color:var(--success)}
.flash-error,.error-box{background:#fff1f0;border:1px solid #f3c5c2;color:var(--danger)}
.warning-banner{display:flex;flex-direction:column;align-items:flex-start;gap:12px;background:#fff8e8;border:1px solid #efdba5}
.nice-list{color:var(--muted);line-height:1.8}
.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:12px 0 18px}
.auth-tabs,.dashboard-tabs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.tab-btn{padding:10px 14px;border:1px solid var(--border);background:#fff;border-radius:12px;font-weight:700;cursor:pointer;transition:.2s background,.2s border-color,.2s color}
.tab-btn.active{background:#edf4ff;border-color:#cfe0fb;color:var(--primary)}
.tab-panel{display:none;opacity:0;transform:translateY(10px)}
.tab-panel.active{display:block;opacity:1;transform:none;transition:.35s ease}
.stack-form{display:grid;gap:14px}
.dashboard-grid{grid-template-columns:repeat(3,1fr)}
.dashboard-pill{display:inline-block;padding:8px 10px;background:#edf4ff;border-radius:999px;color:var(--primary);font-size:.82rem;font-weight:800;margin-bottom:12px}
.empty-state{min-height:90px;display:grid;place-items:center;text-align:center;padding:18px;border:1px dashed #cbd9ec;border-radius:20px;color:var(--muted);background:rgba(255,255,255,.75)}
.deadline{font-weight:700;margin:14px 0 10px}
.mt-16{margin-top:16px}.mt-20{margin-top:20px}.mt-24{margin-top:24px}
.wrap{flex-wrap:wrap}
.form-card{max-width:760px}
.conference-grid{grid-template-columns:repeat(3,1fr)}
.checkbox-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-height:240px;overflow:auto;padding-right:4px}
.checkbox-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))}
.check-chip{display:flex!important;gap:10px;align-items:flex-start;padding:10px 12px;border:1px solid var(--border);border-radius:14px;background:#fff;cursor:pointer}
.check-chip input{width:auto;margin-top:2px}
.two-field,.three-field,.editor-photo-row,.align-start{display:grid;gap:14px}
.two-field{grid-template-columns:1fr 1fr}
.three-field{grid-template-columns:repeat(3,1fr)}
.editor-photo-row{grid-template-columns:auto 1fr;align-items:center}
.upload-field{display:grid;gap:8px}
.insight-banner{display:flex;justify-content:space-between;align-items:center;gap:20px;background:linear-gradient(135deg,rgba(22,60,115,.95),rgba(42,102,178,.88));color:#fff}
.insight-banner .muted{color:rgba(255,255,255,.84)}
.score-badge{display:inline-flex;align-items:center;justify-content:center;min-width:88px;padding:14px 18px;border-radius:999px;background:rgba(255,255,255,.16);color:#fff;font-weight:800;backdrop-filter:blur(10px)}
.score-badge.small{min-width:58px;padding:10px 12px;font-size:.92rem;background:#edf4ff;color:var(--primary);border:1px solid #cfe0fb}
.stack-col{display:grid}
.gap-20{gap:20px}
.align-start{align-items:start}
.mini-list strong{display:block;margin-bottom:10px}
.profile-page{padding:28px}
.reveal-up,.reveal-left,.reveal-right,.reveal-scale{opacity:0;transition:transform .7s ease,opacity .7s ease}
.reveal-up{transform:translateY(18px)}
.reveal-left{transform:translateX(-20px)}
.reveal-right{transform:translateX(20px)}
.reveal-scale{transform:scale(.96)}
.reveal-up.is-visible,.reveal-left.is-visible,.reveal-right.is-visible,.reveal-scale.is-visible{opacity:1;transform:none}
.delay-1{transition-delay:.08s}.delay-2{transition-delay:.16s}.delay-3{transition-delay:.24s}
@media (max-width:1080px){
  .hero-grid,.discover-layout,.profile-preview-grid,.auth-grid,.two-col,.profile-columns{grid-template-columns:1fr}
  .filter-card{position:static}
  .card-grid,.conference-grid,.dashboard-grid,.band-grid,.recommendation-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .topbar{flex-wrap:wrap}
  .checkbox-grid,.checkbox-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:720px){
  .app-shell{padding:12px}
  .card-grid,.conference-grid,.dashboard-grid,.band-grid,.recommendation-grid,.checkbox-grid,.checkbox-grid.compact,.two-field,.three-field,.editor-photo-row{grid-template-columns:1fr}
  .topnav{display:none}
  h1{font-size:2.2rem}
  .results-topbar,.footer,.insight-banner{flex-direction:column;align-items:flex-start}
  .info-grid{grid-template-columns:1fr}
}
.lookup-field{display:grid;gap:8px;position:relative}
.lookup-results{display:none;position:absolute;left:0;right:0;top:100%;z-index:30;background:#fff;border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow);max-height:260px;overflow:auto;margin-top:6px}
.lookup-results.open{display:block}
.lookup-item{display:flex;justify-content:space-between;gap:12px;width:100%;padding:12px 14px;border:none;background:#fff;text-align:left;font:inherit;cursor:pointer}
.lookup-item + .lookup-item{border-top:1px solid var(--border)}
.lookup-item:hover{background:#f5f9ff}
.lookup-item span{color:var(--muted);font-size:.88rem}
.lookup-note{font-size:.85rem}


.app-theme-soft{position:relative}
.app-theme-soft::before{content:'';position:fixed;inset:0;pointer-events:none;background:radial-gradient(circle at 12% 12%, rgba(220,185,112,.08), transparent 24%),radial-gradient(circle at 88% 10%, rgba(59,113,174,.08), transparent 22%)}
.topbar{background:rgba(255,255,255,.78);border:1px solid rgba(255,255,255,.65);box-shadow:0 14px 36px rgba(24,49,84,.08)}
.brand-mark{box-shadow:0 10px 24px rgba(24,65,111,.18)}
.topnav a{position:relative;padding-bottom:4px}
.topnav a::after{content:'';position:absolute;left:0;right:0;bottom:0;height:2px;background:linear-gradient(90deg,rgba(24,65,111,.72),rgba(217,177,87,.5));transform:scaleX(0);transform-origin:left;transition:.25s transform}
.topnav a:hover::after{transform:scaleX(1)}
.hero-soft{padding-top:18px}
.hero-shell{display:grid;grid-template-columns:1fr 1.04fr;gap:28px;align-items:center}
.hero-story{padding:10px 4px 10px 2px}
.hero-story h1{max-width:680px}
.hero-story .hero-text{max-width:640px;font-size:1.04rem}
.trust-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:22px}
.trust-item{padding:18px 18px 16px;border-radius:22px;display:grid;gap:6px}
.trust-item strong{font-size:1.75rem;font-family:'Plus Jakarta Sans',sans-serif}
.hero-media{position:relative;min-height:620px}
.hero-slideshow{position:relative;height:100%;min-height:620px;border-radius:32px;overflow:hidden;box-shadow:var(--shadow-hover);border:1px solid rgba(255,255,255,.72)}
.slide{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transform:scale(1.04);transition:opacity .9s ease,transform 5.4s ease}
.slide.active{opacity:1;transform:scale(1)}
.slide-overlay{position:absolute;inset:0;background:linear-gradient(180deg, rgba(14,31,54,.08) 0%, rgba(14,31,54,.18) 62%, rgba(14,31,54,.48) 100%)}
.slide-caption{position:absolute;left:28px;right:28px;bottom:28px;padding:20px 22px;border-radius:24px;display:grid;gap:8px}
.slide-caption span{font-size:.84rem;text-transform:uppercase;letter-spacing:.08em;color:rgba(255,255,255,.82);font-weight:700}
.slide-caption strong{font-size:1.1rem;line-height:1.45;color:#fff}
.glass-dark{background:rgba(18,32,53,.36);backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.18)}
.slider-dots{position:absolute;right:24px;top:24px;display:flex;gap:8px;z-index:3}
.slider-dot{width:11px;height:11px;border:none;border-radius:999px;background:rgba(255,255,255,.5);cursor:pointer;transition:.25s transform,.25s background}
.slider-dot.active{background:#fff;transform:scale(1.15)}
.hero-overlay-card{position:absolute;left:-18px;bottom:22px;max-width:420px;padding:20px 20px 18px;z-index:2}
.panel-chip{background:#f2f5fb}
.intro-panels{padding-top:8px}
.band-card{padding:26px 24px;background:linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.72));border:1px solid rgba(255,255,255,.75)}
.band-icon{display:inline-flex;width:36px;height:36px;align-items:center;justify-content:center;border-radius:999px;background:#edf3fb;color:var(--primary);font-size:1.3rem;margin-bottom:16px}
.filter-card,.results-topbar,.profile-preview,.dashboard-hero,.auth-card,.footer-rich,.result-card,.card{border-color:rgba(255,255,255,.78)}
.filter-card,.results-topbar,.auth-card,.profile-preview,.dashboard-hero{background:linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.78))}
.result-card{background:linear-gradient(180deg, rgba(255,255,255,.97), rgba(255,255,255,.88))}
.result-card.classic-card::before{height:5px;background:linear-gradient(90deg, rgba(24,65,111,.96), rgba(64,125,191,.6), rgba(218,180,104,.52))}
.quick-result,.lookup-item,.check-chip,.tab-btn{transition:.22s ease}
.quick-result:hover,.lookup-item:hover,.check-chip:hover,.tab-btn:hover{transform:translateY(-1px)}
.profile-preview,.dashboard-card,.auth-card{padding:28px}
.default-profile{background:#edf2f9}
.dashboard-hero{padding:28px;border-radius:28px;display:grid;gap:22px;margin-bottom:24px}
.dashboard-identity{display:flex;gap:18px;align-items:flex-start}
.dashboard-identity p{color:var(--muted);line-height:1.75;max-width:760px;margin-bottom:0}
.dashboard-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.footer-rich{margin-top:40px;padding:30px 28px;display:grid;grid-template-columns:1.3fr .7fr .7fr .9fr;gap:22px;align-items:start}
.footer-brand-wrap .brand-mark{width:44px;height:44px;border-radius:14px}
.footer-copy{max-width:480px;line-height:1.75;margin-top:14px}
.footer-column{display:grid;gap:10px}
.footer-column strong{font-family:'Plus Jakarta Sans',sans-serif;font-size:1rem}
.footer-column a,.footer-column span{color:var(--muted)}
.footer-column a:hover{color:var(--primary)}
.auth-card{border-radius:30px}
.auth-card .section-head p{max-width:560px}
.dashboard-tabs .tab-btn.active,.auth-tabs .tab-btn.active{background:linear-gradient(180deg,#f4f8ff,#ecf3ff);box-shadow:0 8px 18px rgba(24,65,111,.08)}
.insight-banner{background:linear-gradient(135deg,rgba(24,65,111,.95),rgba(61,111,168,.88))}
.profile-hero.classic-hero{padding-bottom:16px;margin-bottom:16px}
.profile-preview .muted{line-height:1.75}
@media (max-width: 1080px){
  .hero-shell,.footer-rich,.dashboard-summary-grid,.trust-row{grid-template-columns:1fr}
  .hero-media{min-height:540px}
  .hero-slideshow{min-height:540px}
  .hero-overlay-card{position:relative;left:auto;bottom:auto;max-width:none;margin-top:-72px;margin-left:18px;margin-right:18px}
}
@media (max-width: 720px){
  .hero-media{min-height:460px}
  .hero-slideshow{min-height:460px;border-radius:26px}
  .slide-caption{left:18px;right:18px;bottom:18px}
  .hero-overlay-card{margin:14px 0 0 0}
  .dashboard-identity{flex-direction:column;align-items:flex-start}
}

/* ===== Phase 7 visual refinement ===== */
:root{
  --bg:#f7f1e8;
  --bg-soft:#fbf8f3;
  --card:#ffffff;
  --text:#162235;
  --muted:#5f6f82;
  --primary:#183a68;
  --primary-2:#2b5d97;
  --gold:#caa44d;
  --border:#e4ddd3;
  --shadow:0 18px 48px rgba(18,32,57,.08);
  --shadow-hover:0 24px 56px rgba(18,32,57,.12);
  --radius:28px;
}
html{scroll-padding-top:130px}
body{
  background:
    radial-gradient(circle at top left, rgba(202,164,77,.13), transparent 26%),
    radial-gradient(circle at top right, rgba(43,93,151,.10), transparent 22%),
    linear-gradient(180deg,#fbf7f0 0%,#f7f2ea 44%,#f6f8fb 100%);
  color:var(--text);
}
body::-webkit-scrollbar{width:12px}
body::-webkit-scrollbar-track{background:#e8e1d7}
body::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#21497d,#7b8da3);border-radius:999px;border:2px solid #e8e1d7}
.app-shell{max-width:1480px;padding:0 22px 38px}
.site-utility-bar{background:#17365f;color:#f4f7fb}
.utility-inner{max-width:1480px;margin:0 auto;padding:14px 22px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.utility-message{font-size:.95rem;font-weight:600;text-align:center;flex:1}
.utility-links{display:flex;gap:20px;flex-wrap:wrap}
.utility-links a{color:#f4f7fb;font-weight:700;opacity:.92}
.utility-links a:hover{opacity:1}
.site-header{padding:14px 0 0;background:transparent;z-index:30}
.sticky{position:sticky;top:0}
.main-nav-shell{background:#fff;border:1px solid rgba(213,203,191,.7);box-shadow:var(--shadow);border-radius:0 0 26px 26px;padding:14px 20px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand-wrap-header{min-width:0}
.brand-mark{width:58px;height:58px;border-radius:8px;background:linear-gradient(145deg,#102f57,#244d81);box-shadow:none}
.brand{font-size:1.9rem;line-height:1;font-family:'Inter',sans-serif}
.brand-sub{font-size:1rem;color:var(--muted);margin-top:4px}
.topnav{display:flex;gap:30px;align-items:center;justify-content:center;flex:1}
.topnav a{color:#334255;font-weight:700;font-size:1.16rem}
.topnav a:hover{color:var(--primary)}
.top-actions{gap:12px;flex-shrink:0}
.btn-nav{padding:12px 18px;border-radius:18px}
.user-chip{background:#f3f5f9;border:1px solid #dbe2ea;color:#233852}
.nav-toggle{display:none;width:44px;height:44px;border-radius:12px;border:1px solid #d8deea;background:#fff;align-items:center;justify-content:center;gap:5px;flex-direction:column}
.nav-toggle span{width:18px;height:2px;background:#183a68;border-radius:2px;display:block}
.btn{border-radius:18px;padding:13px 20px;font-weight:800}
.btn-primary{background:linear-gradient(135deg,#173d72,#2c66a6)}
.btn-secondary{background:#fff;color:var(--primary);border:1px solid #d8c9aa}
.btn-ghost{background:#fff;border:1px dashed #c9b892;color:var(--primary)}
.hero-intentional{padding-top:34px}
.hero-shell-modern{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(420px,.98fr);gap:52px;align-items:start}
.hero-title-serif{font-family:'Cormorant Garamond',serif!important;font-size:clamp(3.6rem,6.2vw,6.25rem)!important;line-height:.95!important;letter-spacing:-.04em!important;font-weight:700!important;max-width:840px;color:#172033}
.eyebrow-line{background:transparent;padding:0;border-radius:0;display:flex;align-items:center;gap:14px;color:#2d5a91;font-size:.95rem;letter-spacing:.16em;text-transform:uppercase;font-weight:800;margin-bottom:18px}
.eyebrow-line::before{content:'';width:42px;height:2px;background:linear-gradient(90deg,var(--gold),rgba(202,164,77,.2));border-radius:999px}
.hero-text{max-width:760px;font-size:1.15rem;color:var(--muted);line-height:1.75}
.hero-actions{margin:28px 0 26px}
.search-inline-card{padding:24px 24px 18px;border-radius:30px;background:#fff;border:1px solid rgba(219,209,197,.9);box-shadow:var(--shadow);max-width:760px}
.search-inline-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:16px;flex-wrap:wrap}
.search-inline-head span{font-size:.95rem;color:#4b5f76;font-weight:700}
.search-inline-head strong{font-size:1rem;color:#1a2f4b}
.search-inline-row{display:flex;gap:12px;align-items:center}
.search-inline-row input{flex:1;padding:18px 18px;border-radius:18px;border:1px solid #d9d5cf;background:#fff;font:inherit;font-size:1rem}
.search-inline-btn{min-width:120px}
.hero-quick-results{margin-top:14px;grid-template-columns:repeat(2,minmax(0,1fr))}
.quick-result{background:#fbfbfc;border:1px solid #e4e7ec;border-radius:18px;padding:15px 16px}
.trust-row-modern{margin-top:24px}
.trust-item{min-width:155px;padding:20px 22px;border-radius:26px;border:1px solid rgba(217,207,194,.9);box-shadow:none}
.trust-item strong{font-size:2rem;color:#173d72;margin-bottom:8px}
.trust-item span{color:#506173;line-height:1.45}
.hero-media{display:grid;gap:18px}
.hero-slideshow-clean{position:relative;height:645px;border-radius:36px;overflow:hidden;background:#fff;box-shadow:var(--shadow);border:1px solid rgba(219,209,197,.8)}
.slide{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transition:opacity .85s ease, transform 1.2s ease;transform:scale(1.02)}
.slide.active{opacity:1;transform:scale(1)}
.slide-overlay-soft{position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.08) 0%, rgba(12,24,43,.08) 100%)}
.slide-caption-clean{position:absolute;left:24px;right:24px;bottom:22px;background:rgba(26,38,58,.73);backdrop-filter:blur(12px);color:#fff;padding:22px 24px;border-radius:22px;display:grid;gap:8px}
.slide-caption-clean span{font-size:.88rem;letter-spacing:.09em;text-transform:uppercase;color:#d7e6fb;font-weight:800}
.slide-caption-clean strong{font-size:1.18rem;line-height:1.45}
.slider-dots-clean{position:absolute;top:22px;right:22px;display:flex;gap:10px}
.slider-dot{width:12px;height:12px;border-radius:999px;border:none;background:rgba(255,255,255,.62);box-shadow:0 2px 8px rgba(0,0,0,.08)}
.slider-dot.active{background:#fff}
.hero-note-card{border-radius:30px;padding:24px 26px;background:#fff}
.hero-note-card h3{font-size:1.24rem;margin-bottom:10px}
.intro-panels-modern .band-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.band-card{padding:28px 24px;border-radius:28px;border:1px solid rgba(219,209,197,.9);box-shadow:none;background:#fff}
.icon-stack{width:54px;height:54px;border-radius:18px;background:#f3f5fa;border:1px solid #e0e7f1;display:grid;place-items:center;margin-bottom:16px}
.icon-stack svg{width:24px;height:24px;fill:#224a7d}
.band-card h3{font-size:1.18rem;color:#1f2f46}
.band-card p{color:var(--muted);line-height:1.7}
.section{padding:42px 0}
.section-head{text-align:center;max-width:860px;margin:0 auto 24px}
.section-head h2{font-family:'Inter',sans-serif;font-size:clamp(2rem,3.2vw,3rem);line-height:1.15;letter-spacing:-.03em;color:#1a2537}
.section-head p{font-size:1.04rem;color:var(--muted);line-height:1.7}
.discover-layout{grid-template-columns:320px minmax(0,1fr);gap:24px}
.filter-card,.results-topbar,.profile-preview,.auth-card,.dashboard-card,.card,.result-card,.cta-card{background:#fff!important;border:1px solid rgba(219,209,197,.82)!important;backdrop-filter:none!important;box-shadow:var(--shadow)!important}
.filter-card{position:sticky;top:128px;border-radius:28px}
.results-topbar{border-radius:24px}
.result-card{border-radius:26px}
.result-card.classic-card::before{background:linear-gradient(90deg,#173d72,#d2aa50);height:3px}
.meta{color:#2b568c}
.badge{background:#f2f5f9;border-color:#dfe7f1;color:#29496f}
.badge.good{background:#edf8f1}
.profile-preview-grid,.auth-grid,.dashboard-grid,.two-col{gap:24px}
.profile-preview,.auth-card{border-radius:30px}
.feature-item{background:#faf9f7;border:1px solid #ebe4da;border-radius:18px;padding:14px 16px}
.auth-tabs{background:#f7f2eb;padding:6px;border-radius:18px}
.tab-btn{border-radius:14px}
.tab-btn.active{background:#fff;color:#163c70;box-shadow:0 8px 18px rgba(18,32,57,.06)}
.stack-form input,.stack-form select,.stack-form textarea,.filter-card input,.filter-card select,.lookup-input,.search-box input{border-radius:16px;border:1px solid #ddd6cb;background:#fff;padding:15px 16px}
.lookup-results{border-radius:16px;border:1px solid #ddd6cb;background:#fff;box-shadow:var(--shadow)}
.footer-clean{margin-top:34px;background:#fff;border:1px solid rgba(219,209,197,.82);border-radius:32px 32px 0 0;box-shadow:var(--shadow);padding:34px 28px 18px}
.footer-grid{display:grid;grid-template-columns:1.6fr .8fr .8fr .9fr;gap:24px}
.footer-column,.footer-brand{display:grid;gap:10px}
.footer-column strong{color:#1d2f48}
.footer-column a,.footer-column span,.footer-copy{color:#5d6f83;line-height:1.7}
.footer-bottom{border-top:1px solid #ebe3d8;margin-top:22px;padding-top:16px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:#67788e;font-size:.95rem}
.flash{margin:14px 0 0;padding:14px 18px;border-radius:16px}
.reveal-up,.reveal-left,.reveal-right,.reveal-scale{opacity:0;transform:translateY(18px);transition:opacity .72s ease, transform .72s ease}
.reveal-left{transform:translateX(-22px)}
.reveal-right{transform:translateX(22px)}
.reveal-scale{transform:scale(.98)}
.reveal-up.is-visible,.reveal-left.is-visible,.reveal-right.is-visible,.reveal-scale.is-visible{opacity:1;transform:none}
.delay-1{transition-delay:.12s}
.delay-2{transition-delay:.22s}
.topbar,.glass,.glass-dark{background:transparent;backdrop-filter:none;box-shadow:none;border:none}
.profile-hero.classic-hero{align-items:center}
.empty-state{padding:28px;border-radius:20px;background:#faf9f7;border:1px dashed #d8ccbd;color:#5d6f83;text-align:center}
@media (max-width: 1180px){
  .utility-inner{padding:12px 18px}
  .main-nav-shell{padding:14px 16px;gap:14px}
  .topnav{gap:18px}
  .topnav a{font-size:1rem}
  .hero-shell-modern{grid-template-columns:1fr;gap:30px}
  .hero-slideshow-clean{height:520px}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media (max-width: 900px){
  .utility-inner{justify-content:center}
  .utility-links{display:none}
  .brand{font-size:1.45rem}
  .brand-sub{font-size:.92rem}
  .nav-toggle{display:flex}
  .topnav{position:absolute;left:0;right:0;top:100%;background:#fff;border:1px solid rgba(219,209,197,.85);border-top:none;border-radius:0 0 22px 22px;box-shadow:var(--shadow);padding:14px 18px;display:none;flex-direction:column;align-items:flex-start;gap:14px}
  .site-header{position:sticky;top:0}
  .main-nav-shell{position:relative;flex-wrap:wrap}
  .topnav.is-open{display:flex}
  .top-actions{width:100%;justify-content:flex-end}
  .btn-nav{padding:10px 14px}
  .hero-title-serif{font-size:clamp(3rem,12vw,4.5rem)!important}
  .hero-quick-results{grid-template-columns:1fr}
  .search-inline-row{flex-direction:column;align-items:stretch}
  .search-inline-btn{width:100%}
  .trust-row-modern,.card-grid,.recommendation-grid,.band-grid,.profile-preview-grid,.auth-grid,.dashboard-grid,.two-col{grid-template-columns:1fr!important}
  .discover-layout{grid-template-columns:1fr}
  .filter-card{position:static}
}
@media (max-width: 640px){
  .app-shell{padding:0 14px 28px}
  .site-utility-bar{display:none}
  .main-nav-shell{border-radius:0 0 20px 20px;padding:12px 14px}
  .brand-mark{width:48px;height:48px}
  .hero-intentional{padding-top:24px}
  .hero-title-serif{font-size:clamp(2.6rem,15vw,3.8rem)!important;line-height:.98!important}
  .hero-slideshow-clean{height:390px;border-radius:26px}
  .slide-caption-clean{left:14px;right:14px;bottom:14px;padding:16px 16px}
  .slide-caption-clean strong{font-size:1rem}
  .section{padding:34px 0}
  .search-inline-card,.hero-note-card,.profile-preview,.auth-card,.filter-card,.results-topbar,.band-card,.footer-clean{border-radius:24px}
  .footer-grid{grid-template-columns:1fr}
  .footer-bottom{flex-direction:column;align-items:flex-start}
}


/* ===== Phase 9 header/footer cleanup ===== */
html{scroll-padding-top:110px}
.app-shell{padding:0 22px 38px}
.site-utility-bar{background:#17365f;color:#f4f7fb}
.utility-inner{max-width:1480px;margin:0 auto;padding:10px 22px;display:flex;align-items:center;justify-content:center;gap:18px}
.utility-inner-centered{justify-content:center}
.utility-message{font-size:.9rem;font-weight:600;text-align:center;line-height:1.35}
.utility-links{display:none!important}
.site-header{padding:0;background:transparent;z-index:30}
.sticky{position:sticky;top:0}
.main-nav-shell{background:#fff;border:1px solid rgba(223,214,203,.88);border-top:none;box-shadow:none;border-radius:0 0 16px 16px;padding:10px 18px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.brand-mark{width:44px;height:44px;border-radius:8px;font-size:1.2rem}
.brand{font-size:1.05rem;line-height:1.05;font-weight:800}
.brand-sub{font-size:.76rem;color:var(--muted);margin-top:2px;line-height:1.25}
.topnav{display:flex;gap:22px;align-items:center;justify-content:center;flex:1}
.topnav a{color:#334255;font-weight:700;font-size:.97rem;line-height:1.1;padding:4px 0}
.top-actions{gap:10px;flex-shrink:0}
.btn-nav{padding:10px 16px;border-radius:15px;font-size:.95rem}
.user-chip{padding:9px 13px;font-size:.9rem;line-height:1.1}
.nav-toggle{width:40px;height:40px;border-radius:10px}
.hero-intentional{padding-top:30px}
.footer-clean{margin-top:36px;background:#fff;border:none;border-radius:0;box-shadow:none;padding:0 0 8px}
.footer-simple-top{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:18px;padding:18px 0;border-top:1px solid #e7dfd3;border-bottom:1px solid #e7dfd3}
.footer-brand-wrap{gap:12px}
.footer-mark{width:52px;height:52px;border-radius:8px;font-size:1.15rem}
.footer-brand-name{font-size:1.02rem;line-height:1.1}
.footer-brand-sub{font-size:.78rem;line-height:1.25}
.footer-message{justify-self:center;text-align:center;color:#5d6f83;font-size:.94rem;line-height:1.5}
.footer-simple-nav,.footer-simple-meta{display:flex;align-items:center;gap:28px;flex-wrap:wrap;padding:14px 0;border-bottom:1px solid #e7dfd3}
.footer-simple-nav a,.footer-simple-meta,.footer-simple-meta a{color:#314358;font-size:.98rem}
.footer-simple-nav a:hover,.footer-simple-meta a:hover{color:var(--primary)}
.footer-socials{display:inline-flex;gap:22px;align-items:center;margin-left:auto}
.footer-simple-bottom{padding:14px 0 0;text-align:center;color:#5d6f83;font-size:.96rem}
@media (max-width:1180px){
  .topnav{gap:16px}
  .topnav a{font-size:.92rem}
  .footer-simple-top{grid-template-columns:1fr;justify-items:start}
  .footer-message{justify-self:start;text-align:left}
}
@media (max-width:900px){
  .main-nav-shell{padding:10px 14px;gap:14px}
  .brand{font-size:1rem}
  .brand-sub{font-size:.74rem}
  .topnav{position:absolute;left:0;right:0;top:100%;background:#fff;border:1px solid rgba(223,214,203,.9);border-top:none;border-radius:0 0 18px 18px;box-shadow:var(--shadow);padding:12px 16px;display:none;flex-direction:column;align-items:flex-start;gap:12px}
  .topnav.is-open{display:flex}
  .top-actions{width:100%;justify-content:flex-end}
  .btn-nav{padding:9px 13px;font-size:.9rem}
  .footer-socials{margin-left:0;width:100%;justify-content:flex-start}
}
@media (max-width:640px){
  html{scroll-padding-top:86px}
  .app-shell{padding:0 14px 28px}
  .site-utility-bar{display:block}
  .utility-inner{padding:8px 14px}
  .utility-message{font-size:.82rem}
  .main-nav-shell{border-radius:0 0 14px 14px;padding:9px 12px}
  .brand-wrap-header{gap:10px}
  .brand-mark{width:40px;height:40px;font-size:1.05rem}
  .brand-sub{display:none}
  .top-actions{gap:8px}
  .user-chip{display:none}
  .btn-nav{padding:8px 12px;border-radius:12px;font-size:.88rem}
  .footer-simple-top{padding:14px 0}
  .footer-simple-nav,.footer-simple-meta{gap:14px;padding:12px 0}
  .footer-simple-nav a,.footer-simple-meta,.footer-simple-meta a,.footer-simple-bottom{font-size:.9rem}
}

.progress-track{height:10px;border-radius:999px;background:#e7edf6;overflow:hidden;position:relative;margin:10px 0 4px}
.progress-track span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#173d72,#2f6cc4,#d2aa50)}
.scope-toolbar{display:flex;gap:10px;flex-wrap:wrap}
.scope-chip{border:1px solid rgba(23,61,114,.14);background:#fff;color:#173d72;border-radius:999px;padding:10px 16px;font-size:13px;font-weight:600;cursor:pointer;transition:all .2s ease;box-shadow:0 8px 18px rgba(23,61,114,.05)}
.scope-chip:hover,.scope-chip.active{background:#173d72;color:#fff;border-color:#173d72}
.smart-multiselect{display:grid;gap:12px;padding:14px;border:1px solid rgba(23,61,114,.1);border-radius:18px;background:#fafcff}
.smart-multiselect-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.selection-count{font-size:12px;color:#5c6f89;font-weight:700}
.multiselect-search{width:100%;border:1px solid rgba(23,61,114,.14);border-radius:12px;padding:11px 13px;font:inherit;background:#fff}
.multiselect-selected{display:flex;flex-wrap:wrap;gap:8px;min-height:10px}
.selected-pill{border:none;background:#eaf1fb;color:#173d72;border-radius:999px;padding:8px 12px;font-size:12px;font-weight:700;cursor:pointer}
.filterable-options{max-height:260px;overflow:auto;padding-right:6px}
.check-chip input:disabled + span{opacity:.45}
.completion-card{padding:16px 18px;border-radius:18px;background:#fafcff;border:1px solid rgba(23,61,114,.08)}
.completion-head{display:flex;justify-content:space-between;align-items:center;gap:12px;color:#173d72}
.completion-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}
.completion-item{display:flex;align-items:center;gap:10px;font-size:13px;color:#8a94a5}
.completion-item.done{color:#173d72;font-weight:600}
.completion-dot{width:10px;height:10px;border-radius:999px;background:#d6dee9;display:inline-block;flex:none}
.completion-item.done .completion-dot{background:#2f6cc4;box-shadow:0 0 0 4px rgba(47,108,196,.12)}
.conference-filter-group{display:grid;gap:12px;margin-top:6px;padding-top:4px}
.card-filter-empty{grid-column:1/-1}
@media (max-width: 900px){
  .completion-list{grid-template-columns:1fr}
  .scope-toolbar{overflow:auto;flex-wrap:nowrap;padding-bottom:4px}
  .scope-chip{white-space:nowrap}
}

.graph-hero{display:flex;justify-content:space-between;gap:22px;align-items:flex-end;padding:28px 30px}
.graph-hero h1{margin:6px 0 10px;font-size:2rem;line-height:1.08}
.graph-hero p{max-width:680px;color:#5d6f83}
.graph-meta-row{display:flex;gap:10px;flex-wrap:wrap}
.graph-hero-actions{display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.graph-controls{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:20px 22px}
.graph-filter-block{display:grid;gap:10px}
.graph-layout{display:grid;grid-template-columns:minmax(0,1.72fr) minmax(280px,.68fr);gap:18px;align-items:start}
.graph-stage-wrap{padding:16px}
.graph-stage-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:4px 4px 14px}
.graph-stage-toolbar strong{display:block;font-size:1rem;color:#183a68}
.graph-stage-toolbar .muted{display:block;font-size:.9rem;line-height:1.45}
.graph-zoom-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.graph-zoom-controls .scope-chip{padding:8px 12px;font-size:12px}
.graph-zoom-value{min-width:56px;text-align:center;font-size:.88rem;font-weight:800;color:#183a68}
.graph-stage{position:relative;height:590px;border-radius:26px;background:radial-gradient(circle at top,#fbfdff 0%,#f3f7fd 42%,#eef3fb 100%);overflow:hidden;border:1px solid rgba(23,61,114,.08);padding:10px}
.graph-canvas{position:relative;width:100%;height:100%;transform-origin:center center;transition:transform .22s ease;will-change:transform}
.graph-lines{position:absolute;inset:0;width:100%;height:100%;z-index:1}
.graph-line{stroke:rgba(23,61,114,.16);stroke-width:2;stroke-linecap:round}
.graph-ring{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:999px;border:1px dashed rgba(23,61,114,.08);pointer-events:none}
.graph-ring-department{width:300px;height:300px}
.graph-ring-university{width:540px;height:540px}
.graph-ring-wider{width:764px;height:764px}
.graph-node{position:absolute;transform:translate(-50%,-50%);display:flex;align-items:center;gap:7px;min-width:84px;max-width:116px;padding:6px 8px;border-radius:14px;border:none;background:#fff;box-shadow:0 12px 20px rgba(25,54,98,.08);color:#173d72;text-align:left;z-index:3;cursor:pointer;transition:transform .24s ease, box-shadow .24s ease, background .24s ease, border-color .24s ease}
.graph-node:hover{transform:translate(-50%,-50%) scale(1.02);box-shadow:0 22px 38px rgba(25,54,98,.13)}
.graph-node.selected{outline:3px solid rgba(47,108,196,.12);box-shadow:0 24px 42px rgba(25,54,98,.16);transform:translate(-50%,-50%) scale(1.03)}
.graph-node-icon{width:24px;height:24px;border-radius:8px;display:grid;place-items:center;font-size:.72rem;font-weight:800;flex:none;background:#eef4ff;color:#173d72}
.graph-node-label{font-size:.68rem;font-weight:700;line-height:1.12;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.graph-node.type-self{min-width:126px;max-width:154px;background:linear-gradient(135deg,#173d72,#2c5da8);color:#fff;box-shadow:0 18px 32px rgba(23,61,114,.2)}
.graph-node.type-self .graph-node-icon{background:rgba(255,255,255,.15);color:#fff}
.graph-node.type-professor .graph-node-icon,.graph-node.type-student .graph-node-icon{background:#edf4ff;color:#1f5cb8}
.graph-node.type-peer .graph-node-icon{background:#f4f0ff;color:#6b48b8}
.graph-node.type-conference .graph-node-icon{background:#fff5ea;color:#b97922}
.graph-node.type-university .graph-node-icon{background:#e9f7ef;color:#248756}
.graph-node.band-department{border:1px solid rgba(47,108,196,.14)}
.graph-node.band-university{border:1px solid rgba(107,72,184,.12)}
.graph-node.band-wider{border:1px solid rgba(188,145,63,.12)}
.graph-legend{display:flex;gap:18px;flex-wrap:wrap;padding:16px 6px 2px;color:#5d6f83;font-size:.92rem}
.legend-dot{display:inline-block;width:10px;height:10px;border-radius:999px;margin-right:8px;vertical-align:middle}
.legend-self{background:#173d72}.legend-professor,.legend-student{background:#1f5cb8}.legend-peer{background:#6b48b8}.legend-conference{background:#b97922}.legend-university{background:#248756}
.graph-sidebar{padding:18px;position:sticky;top:112px;max-width:360px}
.graph-sidebar h3{margin:6px 0 12px;font-size:1.12rem;line-height:1.14}
.graph-sidebar p{color:#5d6f83}
.graph-detail-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;color:#50647d;font-size:.94rem}
.graph-type-pill{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border-radius:999px;font-size:.77rem;font-weight:800;text-transform:capitalize;letter-spacing:.02em;background:#eef4ff;color:#173d72}
.graph-type-pill.type-peer{background:#f4f0ff;color:#6b48b8}.graph-type-pill.type-conference{background:#fff5ea;color:#b97922}.graph-type-pill.type-university{background:#e9f7ef;color:#248756}.graph-type-pill.type-student,.graph-type-pill.type-professor{background:#edf4ff;color:#1f5cb8}
.btn.is-disabled{pointer-events:none;opacity:.55}
@media (max-width:1100px){
  .graph-layout{display:grid;grid-template-columns:minmax(0,1.72fr) minmax(280px,.68fr);gap:18px;align-items:start}
  .graph-sidebar{position:static}
}
@media (max-width:900px){
  .graph-controls{grid-template-columns:1fr}
  .graph-hero{flex-direction:column;align-items:flex-start}
  .graph-stage{height:540px}
  .graph-node{min-width:82px;max-width:112px;padding:6px 8px}
  .graph-node-label{font-size:.67rem}
}
@media (max-width:640px){
  .graph-hero{padding:22px 20px}
  .graph-controls,.graph-stage-wrap,.graph-sidebar{padding:16px}
  .graph-stage-toolbar{padding-bottom:10px}
  .graph-stage{height:450px;padding:8px}
  .graph-node{min-width:76px;max-width:98px;padding:6px 7px;border-radius:13px;gap:6px}
  .graph-node-icon{width:22px;height:22px;border-radius:7px;font-size:.68rem}
  .graph-node-label{font-size:.64rem}
  .graph-legend{gap:12px;font-size:.82rem}
}

.graph-sidebar{position:sticky;top:108px;max-width:360px}
@media (max-width:1180px){
  .graph-layout{grid-template-columns:1fr;gap:16px}
  .graph-sidebar{position:static;max-width:none}
  .graph-stage{height:540px}
}
@media (max-width:720px){
  .graph-stage{height:450px;padding:10px}
  .graph-stage-toolbar{padding:2px 2px 12px}
  .graph-zoom-controls{gap:8px}
}

@media (max-width: 700px){.hero-copy h1,.hero-title{font-size:clamp(2.15rem,10vw,3.2rem);line-height:1;max-width:none}}

/* Phase 23 UI blueprint */
body.ui-context-app{
  background:linear-gradient(180deg,#f6f8fc 0%,#eef3fb 100%);
}
.ui-context-app .site-header-app{top:0}
.ui-context-app .main-nav-shell{
  padding:14px 20px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(217,226,241,.9);
  box-shadow:0 18px 34px rgba(16,34,68,.07);
}
.ui-context-app .main-nav-shell-app{border-radius:22px}
.ui-context-app .topnav a{font-size:.94rem}
.ui-context-app .brand-sub{font-size:.8rem}
.workspace-page{max-width:1360px}
.workspace-shell{display:grid;grid-template-columns:280px minmax(0,1fr);gap:24px;align-items:start}
.workspace-rail{position:sticky;top:96px;display:grid;gap:18px}
.workspace-nav,.workspace-panel{
  background:rgba(255,255,255,.94);
  border:1px solid #dce5f3;
  border-radius:24px;
  box-shadow:0 14px 32px rgba(17,39,74,.07);
}
.workspace-nav{padding:20px}
.workspace-nav h3{font-size:1rem;margin-bottom:12px}
.workspace-nav .nav-group{display:grid;gap:8px}
.workspace-link,.workspace-tab{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  width:100%;padding:12px 14px;border-radius:14px;border:1px solid transparent;
  background:#fff;color:var(--text);font-weight:600;font-family:inherit;cursor:pointer;text-align:left;
}
.workspace-link:hover,.workspace-tab:hover{border-color:#cfe0fb;background:#f7faff}
.workspace-tab.active,.workspace-link.active{background:#edf4ff;border-color:#cfe0fb;color:var(--primary)}
.workspace-kicker{font-size:.78rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#7a8ca6}
.workspace-main{min-width:0}
.workspace-panel{padding:24px}
.workspace-masthead{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;margin-bottom:20px}
.workspace-masthead h1{font-size:clamp(2rem,3.5vw,3rem);margin-bottom:10px}
.workspace-masthead .lead-text{max-width:64ch}
.workspace-actions{display:flex;gap:10px;flex-wrap:wrap}
.dashboard-grid.compact-three{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.dashboard-card.app-card,.app-card{background:#fff;border:1px solid #dce5f3;box-shadow:0 16px 32px rgba(17,39,74,.06);border-radius:22px}
.app-card{padding:22px}
.dashboard-tabs.app-tabs{display:flex;flex-wrap:wrap;gap:10px;padding:8px;background:#eef4fd;border:1px solid #d8e4f6;border-radius:18px}
.dashboard-tabs.app-tabs .tab-btn{background:transparent;border:0;padding:11px 14px;border-radius:12px;color:#5d7391;font-weight:700}
.dashboard-tabs.app-tabs .tab-btn.active{background:#fff;color:var(--primary);box-shadow:0 10px 24px rgba(18,53,99,.08)}
.ui-context-app .dashboard-hero{background:#fff;border:1px solid #dce5f3;box-shadow:0 16px 32px rgba(17,39,74,.06);padding:26px;border-radius:26px}
.ui-context-app .recommendation-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.ui-context-app .two-col{grid-template-columns:repeat(2,minmax(0,1fr))}
.ui-context-app .result-card,.ui-context-app .card,.ui-context-app .dashboard-card{backdrop-filter:none;background:#fff}
.ui-context-app .scope-toolbar{padding:8px;background:#f3f6fc;border:1px solid #dce5f3;border-radius:16px;display:flex;gap:10px;flex-wrap:wrap}
.ui-context-app .scope-chip{background:transparent;border:0;border-radius:12px;padding:10px 12px;font-weight:700;color:#617995}
.ui-context-app .scope-chip.active{background:#fff;color:var(--primary);box-shadow:0 8px 18px rgba(18,53,99,.08)}
.metrics-list{display:grid;gap:12px}
.metric-row{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #edf1f7}
.metric-row:last-child{border-bottom:0;padding-bottom:0}
.stat-mini{font-size:1.65rem;font-weight:800;color:var(--primary)}
.profile-split{display:grid;grid-template-columns:minmax(0,1.15fr) 360px;gap:24px;align-items:start}
.profile-sidecard{position:sticky;top:96px}
.info-stack{display:grid;gap:12px}
.info-line{padding:12px 14px;border:1px solid #ebf0f7;border-radius:16px;background:#fbfcfe}
.info-line span{display:block;font-size:.8rem;font-weight:700;color:#7b8da8;text-transform:uppercase;letter-spacing:.06em;margin-bottom:6px}
.table-list{display:grid;gap:10px}
.table-row{display:grid;grid-template-columns:1.2fr .8fr auto;gap:12px;align-items:center;padding:14px 16px;border:1px solid #ebf0f7;border-radius:16px;background:#fff}
.table-row strong{display:block}
.workspace-section{display:grid;gap:20px}
.admin-split{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);gap:22px;align-items:start}
.footer.footer-clean{margin-top:36px}
@media (max-width: 1080px){
  .workspace-shell,.profile-split,.admin-split{grid-template-columns:1fr}
  .workspace-rail,.profile-sidecard{position:static}
  .ui-context-app .recommendation-grid,.ui-context-app .two-col,.dashboard-grid.compact-three{grid-template-columns:1fr}
}
@media (max-width: 720px){
  .workspace-page{padding-left:0;padding-right:0}
  .workspace-panel,.workspace-nav{border-radius:20px}
  .workspace-masthead{flex-direction:column}
  .ui-context-app .main-nav-shell{padding:12px 14px}
}


/* Phase UI-1: academic homepage + header refinement */
:root{
  --academic-navy:#173d72;
  --academic-slate:#5d6f83;
  --academic-bg:#f7f6f1;
  --academic-border:#ded7ca;
}
body{background:linear-gradient(180deg,#f8f6f0 0%,#fbfbf8 100%);}
.site-utility-bar{background:var(--academic-navy);}
.utility-inner{max-width:1240px;padding:10px 22px;}
.utility-message{font-size:.88rem;font-weight:600;letter-spacing:.01em;}
.site-header-marketing{position:sticky;top:0;background:transparent;backdrop-filter:blur(6px);}
.site-header-marketing .main-nav-shell{max-width:1240px;margin:0 auto;border-radius:0 0 14px 14px;padding:12px 18px;box-shadow:0 8px 20px rgba(30,41,59,.06);}
.brand-mark{background:var(--academic-navy);}
.topnav a{font-size:.95rem;font-weight:600;}
.btn-nav{padding:9px 15px;border-radius:12px;font-size:.92rem;}
.hero-academic-home{padding-top:42px;padding-bottom:22px;}
.hero-academic-shell{display:grid;grid-template-columns:minmax(0,1.03fr) minmax(420px,.97fr);gap:34px;align-items:center;}
.hero-academic-copy{display:flex;flex-direction:column;gap:18px;}
.hero-title-academic{font-family:'Playfair Display',serif;font-size:clamp(3rem,5vw,4.45rem);line-height:.98;letter-spacing:-.03em;color:#1b2740;margin:0;max-width:11ch;}
.hero-text-academic{max-width:58ch;font-size:1.04rem;line-height:1.72;color:var(--academic-slate);margin:0;}
.hero-actions-academic{display:flex;gap:12px;flex-wrap:wrap;}
.hero-search-bar{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--academic-border);border-radius:14px;padding:10px;box-shadow:0 8px 20px rgba(23,61,114,.05);max-width:620px;}
.hero-search-bar input{flex:1;border:none;outline:none;background:transparent;font:inherit;color:#213249;padding:6px 8px;}
.hero-search-bar .search-inline-btn{min-width:126px;}
.hero-quick-results-compact{margin-top:10px;max-width:620px;}
.hero-feature-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:6px;}
.hero-feature-item{display:flex;gap:12px;align-items:flex-start;background:#fff;border:1px solid var(--academic-border);border-radius:16px;padding:16px 16px 15px;box-shadow:0 8px 20px rgba(23,61,114,.04);}
.feature-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#edf3fb;font-size:1rem;flex:none;}
.hero-feature-item strong{display:block;font-size:.98rem;color:#1d2d45;margin-bottom:4px;}
.hero-feature-item span:last-child{display:block;font-size:.88rem;line-height:1.55;color:var(--academic-slate);}
.hero-academic-media{min-width:0;}
.hero-slideshow-academic{min-height:520px;border-radius:24px;overflow:hidden;border:1px solid rgba(223,214,203,.9);box-shadow:0 18px 36px rgba(30,41,59,.08);position:relative;background:#e9edf4;}
.hero-slideshow-academic .slide{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transition:opacity .45s ease;}
.hero-slideshow-academic .slide.active{opacity:1;}
.hero-slideshow-academic .slider-dots{position:absolute;top:18px;right:18px;left:auto;bottom:auto;display:flex;gap:8px;}
.hero-slideshow-academic .slider-dot{width:11px;height:11px;background:rgba(255,255,255,.65);border:1px solid rgba(255,255,255,.8);}
.hero-slideshow-academic .slider-dot.active{background:#fff;}
.hero-stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:22px;}
.hero-stat-card{padding:18px 20px!important;border-radius:18px!important;box-shadow:none!important;}
.hero-stat-card strong{display:block;font-size:2rem;line-height:1;color:#173d72;margin-bottom:10px;}
.hero-stat-card span{display:block;font-size:.95rem;color:var(--academic-slate);line-height:1.45;}
.intro-panels-academic{padding-top:10px;}
.intro-panels-academic .band-card{border-radius:18px;}
.intro-panels-academic .icon-stack{width:42px;height:42px;border-radius:12px;}
.section-head h2{font-family:'Playfair Display',serif;letter-spacing:-.02em;font-weight:700;color:#1b2740;}
.profile-hero.classic-hero h3{font-family:'Playfair Display',serif;font-size:1.8rem;font-weight:700;}
@media (max-width:1080px){
  .hero-academic-shell{grid-template-columns:1fr;gap:24px;}
  .hero-title-academic{max-width:none;}
  .hero-feature-strip,.hero-stats-grid{grid-template-columns:1fr 1fr;}
  .hero-slideshow-academic{min-height:420px;}
}
@media (max-width:700px){
  .site-header-marketing .main-nav-shell{padding:10px 12px;}
  .hero-academic-home{padding-top:28px;}
  .hero-title-academic{font-size:clamp(2.45rem,12vw,3.35rem);}
  .hero-search-bar{flex-direction:column;align-items:stretch;padding:12px;}
  .hero-search-bar .search-inline-btn{width:100%;}
  .hero-feature-strip,.hero-stats-grid{grid-template-columns:1fr;}
  .hero-slideshow-academic{min-height:320px;border-radius:20px;}
  .hero-feature-item{padding:14px;}
}


/* Patch: premium auth page styles */
.auth-page-shell{padding-top:24px;padding-bottom:56px}
.auth-page-grid{display:grid;grid-template-columns:minmax(320px,.95fr) minmax(420px,1.05fr);gap:28px;align-items:start}
.auth-page-grid-wide{grid-template-columns:minmax(320px,.82fr) minmax(520px,1.18fr)}
.auth-page-copy{padding:26px 10px 10px 4px;display:grid;gap:18px}
.auth-page-copy h1{font-size:clamp(2.2rem,4vw,3.5rem);line-height:1.06;max-width:12ch;margin:0}
.auth-page-copy p{font-size:1.03rem;line-height:1.8;max-width:62ch;color:var(--muted);margin:0}
.auth-page-points{display:grid;gap:14px;margin-top:8px}
.auth-page-points .feature-item{padding:18px 18px 16px;border-radius:22px;background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(255,255,255,.78));border:1px solid rgba(255,255,255,.84);box-shadow:0 12px 28px rgba(24,49,84,.08);display:grid;gap:6px}
.auth-page-points .feature-item span{font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:800}
.auth-page-points .feature-item strong{font-size:1rem;line-height:1.55;color:var(--text)}
.auth-card-page{padding:30px;border-radius:32px;background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(255,255,255,.84));border:1px solid rgba(255,255,255,.88);box-shadow:0 24px 50px rgba(24,49,84,.12)}
.auth-card-page-wide{padding:32px}
.compact-head{margin-bottom:18px}
.compact-head h2{margin-bottom:8px}
.compact-head p{max-width:56ch}
.auth-switch-row{padding-top:8px;font-weight:600}
.auth-switch-row a{color:var(--primary);font-weight:800}
.auth-card-page .stack-form label{gap:8px}
.auth-card-page .stack-form input,
.auth-card-page .stack-form select,
.auth-card-page .stack-form textarea{background:#fff;border:1px solid #d7e1ef;border-radius:16px;padding:14px 15px;box-shadow:0 2px 0 rgba(255,255,255,.8) inset,0 1px 2px rgba(24,49,84,.04);transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease}
.auth-card-page .stack-form input:focus,
.auth-card-page .stack-form select:focus,
.auth-card-page .stack-form textarea:focus{border-color:#8eb4ea;box-shadow:0 0 0 4px rgba(74,124,197,.12);outline:none}
.auth-card-page .btn-lg{width:100%;justify-content:center;min-height:52px}
.auth-card-page .lookup-results{background:#fff;border:1px solid #d7e1ef;border-radius:18px;box-shadow:0 22px 42px rgba(24,49,84,.16)}
.auth-card-page .lookup-item{padding:13px 15px}
.auth-card-page .check-chip{border-radius:16px;border-color:#dde5f0;background:#fff}
.auth-card-page .check-chip input:checked + span,
.auth-card-page .check-chip:has(input:checked){color:var(--primary)}
.auth-card-page .check-chip:has(input:checked){border-color:#aac6ef;background:#f4f8ff}
.auth-card-page .smart-multiselect{display:grid;gap:10px;padding:18px;border-radius:22px;background:rgba(247,250,255,.86);border:1px solid #dfe7f2}
.smart-multiselect-head{display:flex;align-items:center;justify-content:space-between;gap:14px}
.selection-count{font-size:.82rem;color:var(--muted);font-weight:700}
.multiselect-search{padding:12px 14px;border-radius:14px;border:1px solid #d7e1ef;background:#fff}
.multiselect-selected{display:flex;gap:8px;flex-wrap:wrap;min-height:8px}
.selected-pill{display:inline-flex;align-items:center;gap:8px;padding:7px 11px;border-radius:999px;background:#edf4ff;color:var(--primary);font-size:.84rem;font-weight:700}
.selected-pill button{border:none;background:transparent;color:inherit;cursor:pointer;font-weight:900;line-height:1}
.auth-page-shell-login .auth-page-copy{padding-top:42px}
.auth-page-shell-login .auth-page-copy h1{max-width:11ch}
.auth-page-shell-register .auth-page-copy h1{max-width:14ch}
.auth-card-page .auth-tabs{margin-bottom:18px;padding:6px;border-radius:18px;background:#f5f8fc;border:1px solid #e1e8f1}
.auth-card-page .auth-tabs .tab-btn{flex:1;justify-content:center;text-align:center;padding:13px 16px;border-radius:14px;background:transparent;border:none;color:var(--muted)}
.auth-card-page .auth-tabs .tab-btn.active{background:#fff;color:var(--primary);box-shadow:0 10px 24px rgba(24,49,84,.08)}
.auth-card-page .tab-panel{padding-top:6px}
@media (max-width: 1080px){
  .auth-page-grid,.auth-page-grid-wide{grid-template-columns:1fr}
  .auth-page-copy{padding:8px 2px 0}
  .auth-page-copy h1{max-width:none}
}
@media (max-width: 720px){
  .auth-page-shell{padding-top:8px;padding-bottom:34px}
  .auth-card-page,.auth-card-page-wide{padding:22px;border-radius:24px}
  .auth-page-points .feature-item{padding:16px 16px 14px;border-radius:18px}
  .smart-multiselect-head{align-items:flex-start;flex-direction:column}
}


/* Patch 22: premium compact footer */
.footer-signature-wrap{
  padding:20px 16px 26px;
  background:transparent;
}
.footer-signature-card{
  max-width:1180px;
  margin:0 auto;
  padding:14px 18px;
  border:1px solid rgba(27,39,64,.10);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(248,250,253,.94));
  box-shadow:0 14px 30px rgba(17,30,52,.06);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px 22px;
}
.footer-signature-left{
  display:flex;
  align-items:center;
  gap:12px 16px;
  flex-wrap:wrap;
  min-width:0;
}
.footer-copyright{
  font-weight:800;
  color:#1b2740;
  letter-spacing:-.01em;
}
.footer-support{
  color:#5c6d84;
  font-weight:700;
  text-decoration:none;
  transition:color .18s ease;
}
.footer-support:hover{color:var(--primary)}
.footer-partner{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid rgba(27,39,64,.10);
  background:#fff;
  color:#1b2740;
  font-weight:800;
  text-decoration:none;
  white-space:nowrap;
  box-shadow:0 4px 12px rgba(17,30,52,.04);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.footer-partner:hover{
  transform:translateY(-1px);
  border-color:rgba(27,39,64,.16);
  box-shadow:0 10px 20px rgba(17,30,52,.08);
}
@media (max-width: 720px){
  .footer-signature-wrap{padding:16px 12px 20px}
  .footer-signature-card{
    padding:12px 14px;
    gap:10px;
    align-items:flex-start;
    flex-direction:column;
    border-radius:16px;
  }
  .footer-signature-left{
    gap:6px 12px;
    flex-direction:column;
    align-items:flex-start;
  }
  .footer-partner{
    padding:9px 12px;
    width:auto;
    max-width:100%;
  }
}

/* === Acadelyn minimal homepage / auth refinement === */
:root {
  --ac-navy: #102746;
  --ac-blue: #225ce6;
  --ac-text: #162033;
  --ac-muted: #667085;
  --ac-soft: #f5f7fb;
  --ac-line: #e7edf5;
  --ac-gold: #c9a86a;
  --ac-shadow: 0 20px 50px rgba(16, 39, 70, 0.08);
}

body.ui-context-marketing,
body.homepage-minimal,
body.auth-minimal-page {
  background: #fff;
  color: var(--ac-text);
}

.site-header-minimal {
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid rgba(16,39,70,0.06);
  box-shadow: none;
}

.main-nav-shell-minimal {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
}

.brand-mark-image {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(16,39,70,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(16,39,70,0.08);
  overflow: hidden;
}

.brand-mark-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-header-minimal .brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-header-minimal .topnav a {
  color: var(--ac-text);
  font-weight: 500;
}

.site-header-minimal .topnav a:hover,
.site-header-minimal .topnav a:focus-visible {
  color: var(--ac-blue);
}

.site-header-minimal .btn-secondary {
  background: #fff;
  border: 1px solid var(--ac-line);
}

.homepage-main .section {
  padding-top: 34px;
  padding-bottom: 34px;
}

.home-hero-minimal {
  padding-top: 52px !important;
}

.home-hero-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.75fr);
  gap: 48px;
  align-items: center;
  padding: 0 24px;
}

.mini-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(16,39,70,0.08);
  border-radius: 999px;
  color: var(--ac-navy);
  font-size: 0.88rem;
  font-weight: 600;
  background: rgba(245,247,251,0.85);
  margin-bottom: 18px;
}

.home-hero-title {
  margin: 0;
  font-size: clamp(2.35rem, 4vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 800;
  max-width: 10.5ch;
  color: #0d1d33;
}

.home-hero-text {
  margin: 18px 0 0;
  max-width: 560px;
  font-size: 1.05rem;
  line-height: 1.72;
  color: var(--ac-muted);
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.home-hero-visual {
  display: flex;
  justify-content: center;
}

.hero-illustration-panel {
  width: min(100%, 430px);
  min-height: 300px;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  background: linear-gradient(180deg, rgba(245,247,251,0.45), rgba(255,255,255,0.92));
  border: 1px solid rgba(16,39,70,0.08);
  box-shadow: var(--ac-shadow);
  border-radius: 24px;
  padding: 10px;
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.hero-illustration-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 58px rgba(16, 39, 70, 0.11);
  border-color: rgba(34,92,230,0.16);
}

.hero-illustration-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  filter: none;
  opacity: 1;
}

.home-search-section {
  padding-top: 10px !important;
}

.home-search-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 24px 0;
}

.home-search-head {
  text-align: center;
  margin-bottom: 18px;
}

.home-search-head h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 2rem);
  letter-spacing: -0.04em;
}

.home-search-head p {
  margin: 8px 0 0;
  color: var(--ac-muted);
}

.home-search-box {
  margin: 0 auto;
  max-width: 860px;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  min-height: 72px;
  border-radius: 24px;
  border: 1px solid rgba(16,39,70,0.1);
  background: #fff;
  box-shadow: 0 18px 40px rgba(16,39,70,0.06);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.search-input-wrap:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(16,39,70,0.1);
  border-color: rgba(34,92,230,0.3);
}

.search-input-icon {
  width: 22px;
  height: 22px;
  color: var(--ac-navy);
  flex: 0 0 22px;
}

.search-input-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.search-input-wrap input {
  border: 0;
  outline: 0;
  width: 100%;
  min-width: 0;
  font-size: 1rem;
  background: transparent;
  color: var(--ac-text);
}

.home-search-hints {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.home-search-hints span {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--ac-soft);
  color: var(--ac-navy);
  font-size: 0.88rem;
  font-weight: 600;
}

.quick-results-home {
  max-width: 860px;
  margin: 16px auto 0;
  border: 1px solid rgba(16,39,70,0.08);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(16,39,70,0.06);
  overflow: hidden;
}

.quick-result {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  transition: background-color .2s ease, transform .2s ease;
}

.quick-result:hover {
  background: #f8fbff;
  transform: translateY(-1px);
}

.quick-result + .quick-result {
  border-top: 1px solid rgba(16,39,70,0.06);
}

.quick-result-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ac-soft);
  color: var(--ac-navy);
}

.quick-result-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.quick-result-label {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ac-blue);
  margin-bottom: 4px;
}

.quick-result-title {
  display: block;
  font-weight: 700;
  color: var(--ac-text);
}

.quick-result-meta {
  display: block;
  margin-top: 4px;
  color: var(--ac-muted);
  font-size: 0.93rem;
  line-height: 1.5;
}

.home-value-strip {
  padding-top: 22px !important;
}

.value-strip-grid {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.value-pill-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px 22px;
  background: #fff;
  border: 1px solid rgba(16,39,70,0.08);
  border-radius: 22px;
  box-shadow: 0 12px 34px rgba(16,39,70,0.05);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.value-pill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(16,39,70,0.08);
  border-color: rgba(34,92,230,0.18);
}

.value-pill-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(34,92,230,0.1), rgba(201,168,106,0.12));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ac-navy);
  flex: 0 0 48px;
}

.value-pill-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.value-pill-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.value-pill-card p {
  margin: 0;
  color: var(--ac-muted);
  line-height: 1.6;
}

.home-cta-minimal {
  padding-top: 28px !important;
  padding-bottom: 54px !important;
}

.home-cta-card {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 30px;
  border-radius: 24px;
  border: 1px solid rgba(16,39,70,0.08);
  background: linear-gradient(180deg, #fff, #f8fbff);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 18px 42px rgba(16,39,70,0.06);
}

.home-cta-card h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  letter-spacing: -0.04em;
}

.home-cta-card p {
  margin: 0;
  color: var(--ac-muted);
  line-height: 1.65;
  max-width: 640px;
}

.auth-minimal-shell,
.auth-register-shell {
  padding-top: 48px !important;
}

.auth-minimal-card,
.auth-register-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 34px;
  border-radius: 28px;
  border: 1px solid rgba(16,39,70,0.08);
  background: #fff;
  box-shadow: 0 22px 56px rgba(16,39,70,0.08);
}

.auth-register-card {
  max-width: 980px;
}

.auth-minimal-head {
  text-align: center;
  margin-bottom: 24px;
}

.auth-minimal-head h1 {
  margin: 0;
  font-size: clamp(1.85rem, 2.4vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.auth-minimal-head-wide {
  margin-bottom: 20px;
}

.auth-compact-form label > span,
.auth-register-card .field-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ac-text);
}

.auth-compact-form input,
.auth-compact-form select,
.auth-compact-form textarea,
.auth-register-card .lookup-input,
.auth-register-card .multiselect-search {
  border-radius: 16px;
  border: 1px solid rgba(16,39,70,0.12);
  min-height: 52px;
  background: #fff;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.auth-compact-form textarea {
  min-height: 120px;
}

.auth-compact-form input:focus,
.auth-compact-form select:focus,
.auth-compact-form textarea:focus,
.auth-register-card .lookup-input:focus,
.auth-register-card .multiselect-search:focus {
  border-color: rgba(34,92,230,0.32);
  box-shadow: 0 0 0 4px rgba(34,92,230,0.08);
  transform: translateY(-1px);
}

.auth-tabs-clean {
  margin: 0 auto 22px;
  background: var(--ac-soft);
  border-radius: 18px;
  padding: 6px;
  max-width: 320px;
}

.auth-tabs-clean .tab-btn {
  border-radius: 14px;
  min-height: 46px;
  font-weight: 700;
}

.auth-tabs-clean .tab-btn.active {
  background: #fff;
  box-shadow: 0 8px 24px rgba(16,39,70,0.08);
  color: var(--ac-navy);
}

.auth-register-card .lookup-field,
.auth-register-card .smart-multiselect {
  padding: 16px;
  border: 1px solid rgba(16,39,70,0.08);
  border-radius: 18px;
  background: #fbfcfe;
}

.auth-register-card .lookup-note {
  display: none;
}

.auth-switch-row,
.auth-switch-row-bottom {
  text-align: center;
  margin-top: 16px;
}

.footer-minimal-wrap {
  padding: 0 24px 34px;
}

.footer-signature-card-minimal {
  max-width: 1120px;
  margin: 0 auto;
  border: 1px solid rgba(16,39,70,0.08);
  background: #fff;
  box-shadow: 0 14px 34px rgba(16,39,70,0.04);
}

.btn,
.value-pill-card,
.hero-illustration-panel,
.search-input-wrap,
.auth-minimal-card,
.auth-register-card {
  will-change: transform;
}

@media (max-width: 980px) {
  .home-hero-grid,
  .value-strip-grid,
  .home-cta-card {
    grid-template-columns: 1fr;
  }

  .home-hero-grid {
    gap: 26px;
  }

  .home-hero-title {
    max-width: none;
  }

  .home-hero-visual {
    order: -1;
  }

  .hero-illustration-panel {
    width: min(100%, 360px);
    min-height: 250px;
  }

  .home-cta-card {
    align-items: flex-start;
  }

  .auth-register-card,
  .auth-minimal-card {
    padding: 26px 20px;
  }
}

@media (max-width: 720px) {
  .main-nav-shell-minimal {
    padding: 14px 16px;
  }

  .homepage-main .section {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .home-hero-minimal {
    padding-top: 28px !important;
  }

  .home-hero-grid,
  .home-search-shell,
  .value-strip-grid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .home-hero-title {
    font-size: clamp(2rem, 9vw, 2.9rem);
  }

  .search-input-wrap {
    min-height: 62px;
    border-radius: 20px;
  }

  .quick-results-home {
    border-radius: 20px;
  }

  .quick-result {
    grid-template-columns: 38px 1fr;
    gap: 12px;
    padding: 14px 16px;
  }

  .quick-result-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .value-strip-grid {
    gap: 14px;
  }

  .value-pill-card {
    padding: 18px 16px;
    border-radius: 18px;
  }

  .home-cta-card {
    margin: 0 16px;
    padding: 22px 18px;
    border-radius: 20px;
  }

  .auth-register-card .two-field,
  .auth-minimal-card .two-field {
    grid-template-columns: 1fr;
  }
}


.quick-result-see-all {
  border-top: 1px solid rgba(15, 39, 71, 0.08);
  background: linear-gradient(180deg, rgba(15,39,71,0.02), rgba(15,39,71,0.05));
}
.quick-result-icon-accent {
  background: rgba(15, 39, 71, 0.08);
  color: #0F2747;
}
.discover-main {
  padding-bottom: 4rem;
}
.discover-shell {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}
.discover-heading-row {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}
.discover-page-title {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.discover-page-text {
  max-width: 46rem;
  margin: 0;
  color: var(--muted);
}
.card-panel.discover-toolbar {
  padding: 1rem;
  border: 1px solid rgba(15,39,71,0.08);
  box-shadow: 0 18px 40px rgba(15,39,71,0.06);
}
.discover-toolbar-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}
.search-input-wrap-wide {
  width: 100%;
}
.discover-toolbar-actions {
  display: flex;
  gap: 0.75rem;
}
.form-control {
  height: 48px;
  min-width: 0;
  border-radius: 14px;
  border: 1px solid rgba(15,39,71,0.12);
  background: #fff;
  color: #132238;
  padding: 0 0.95rem;
  font: inherit;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.form-control:focus {
  border-color: rgba(30, 86, 190, 0.45);
  box-shadow: 0 0 0 4px rgba(30, 86, 190, 0.12);
}
.discover-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.discover-filter-toggles {
  margin-top: 0.8rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.check-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text);
  font-weight: 500;
}
.check-inline input {
  accent-color: var(--primary);
}
.conference-filter-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.discover-results-head {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
}
.results-count {
  min-width: 110px;
  text-align: right;
  color: var(--muted);
  font-weight: 600;
}
.discover-results-grid {
  margin-top: 1rem;
}
@media (max-width: 980px) {
  .discover-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .discover-heading-row,
  .discover-results-head,
  .discover-toolbar-top {
    grid-template-columns: 1fr;
    display: grid;
    align-items: stretch;
  }
  .discover-toolbar-actions {
    justify-content: stretch;
  }
  .discover-toolbar-actions > * {
    flex: 1 1 auto;
  }
}
@media (max-width: 640px) {
  .discover-shell {
    width: min(100% - 1rem, 100%);
  }
  .discover-filter-grid {
    grid-template-columns: 1fr;
  }
  .discover-page-title {
    font-size: 1.9rem;
  }
  .results-count {
    text-align: left;
  }
}


.auth-flow-strip{display:flex;align-items:center;justify-content:center;gap:12px;margin:0 auto 22px;max-width:560px;flex-wrap:wrap}
.flow-chip{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:999px;background:#f5f7fb;color:#5f6b7d;font-size:.88rem;font-weight:700;border:1px solid rgba(16,39,70,.08);transition:transform .22s ease,box-shadow .22s ease,color .22s ease,background .22s ease}
.flow-chip.active{background:#fff;color:var(--ac-navy);box-shadow:0 10px 24px rgba(16,39,70,.08);transform:translateY(-1px)}
.flow-divider{width:24px;height:2px;background:linear-gradient(90deg,rgba(16,39,70,.08),rgba(16,39,70,.22),rgba(16,39,70,.08));border-radius:999px}
.student-register-form{max-width:720px;margin:0 auto}
.cv-upload-card{display:flex;flex-direction:column;gap:10px;padding:18px 18px 16px;border:1px dashed rgba(34,92,230,.24);border-radius:18px;background:linear-gradient(180deg,#fbfdff 0%,#f5f8fd 100%);cursor:pointer;transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease}
.cv-upload-card:hover{transform:translateY(-2px);box-shadow:0 14px 28px rgba(16,39,70,.08);border-color:rgba(34,92,230,.4)}
.cv-upload-card input[type=file]{font-size:.94rem;padding:0;background:transparent;border:0;min-height:unset}
.cv-upload-top{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.cv-upload-top strong{font-size:1rem;color:var(--ac-navy)}
.cv-upload-top small,.cv-upload-name{color:var(--ac-muted);font-size:.92rem}
.cv-upload-inline{margin-bottom:4px}
.dashboard-onboarding-banner{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 24px;border-radius:26px;background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);border:1px solid rgba(16,39,70,.08);box-shadow:0 18px 42px rgba(16,39,70,.06);margin-top:22px}
.dashboard-onboarding-banner h3{margin:4px 0 8px;font-size:1.22rem;letter-spacing:-.03em}
.dashboard-onboarding-banner p{margin:0;color:var(--ac-muted);max-width:650px}
.onboarding-progress-side{min-width:220px;display:flex;flex-direction:column;align-items:flex-end;gap:10px}
.onboarding-progress-side .progress-track{width:100%;margin:0}
.pulse-soft{animation:pulseSoft 2s ease-in-out infinite}
@keyframes pulseSoft{0%,100%{box-shadow:0 0 0 0 rgba(34,92,230,.16)}50%{box-shadow:0 0 0 10px rgba(34,92,230,0)}}
@media (max-width: 900px){.dashboard-onboarding-banner{flex-direction:column;align-items:flex-start}.onboarding-progress-side{width:100%;align-items:stretch}.auth-flow-strip{justify-content:flex-start}}


.auth-minimal-sub{margin:10px auto 0;max-width:680px;color:var(--ac-muted);font-size:1rem;line-height:1.65}
.onboarding-card{max-width:1120px}
.onboarding-form{display:grid;gap:22px}
.onboarding-grid{display:grid;gap:18px}
.onboarding-grid.two-up{grid-template-columns:repeat(2,minmax(0,1fr))}
.form-card{padding:22px;border:1px solid rgba(16,39,70,.08);border-radius:22px;background:#fbfcfe;box-shadow:0 14px 34px rgba(16,39,70,.05)}
.form-card h3{margin:0 0 16px;font-size:1.15rem;letter-spacing:-.03em}
.form-grid{display:grid;gap:16px}
.form-grid.three-field{grid-template-columns:repeat(3,minmax(0,1fr))}
.field-help{display:block;margin-top:8px;color:#66768c;line-height:1.5}
.bio-card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.onboarding-actions{display:flex;justify-content:space-between;align-items:center;gap:14px;padding-top:6px}
.tag-lookup-field .selected-tags{display:flex;flex-wrap:wrap;gap:8px;min-height:10px;margin-top:12px}
.tag-lookup-field .lookup-item{justify-content:flex-start}
.flow-chip.is-done{background:#eaf5ee;color:#1f7a46}
@media (max-width: 920px){.onboarding-grid.two-up,.form-grid.three-field{grid-template-columns:1fr}.onboarding-actions{flex-direction:column-reverse;align-items:stretch}.bio-card-head{align-items:flex-start;flex-direction:column}}


.required-mark{color:#d14343;font-weight:700}
.field-optional{color:#6b7280;font-size:.82rem;font-weight:500;margin-left:.35rem}
.password-field{position:relative}
.password-field input{padding-right:4.5rem}
.password-toggle{position:absolute;right:.7rem;top:50%;transform:translateY(-50%);border:0;background:none;color:#1d4ed8;font-weight:600;cursor:pointer;padding:0}
.password-toggle:hover{opacity:.85}
.wide-entry-field{min-height:3.25rem}
.onboarding-form .field-help{display:block;margin-top:.35rem}
.onboarding-form .lookup-field .field-label,.onboarding-form label .field-label{display:flex;align-items:center;gap:.15rem;flex-wrap:wrap}
.onboarding-form .selected-tags{min-height:2.5rem}

.lookup-results .lookup-state {
  padding: 0.8rem 0.95rem;
  color: #5b6473;
  font-size: 0.94rem;
}
.required-star {
  color: #d14343;
  font-weight: 700;
}
.field-optional {
  color: #6b7280;
  font-weight: 500;
  font-size: 0.82rem;
}


/* Scoped step-2 onboarding polish */
.complete-profile-page .auth-register-card.onboarding-card{max-width:1080px}
.complete-profile-page .auth-minimal-head{margin-bottom:10px}
.complete-profile-page .auth-minimal-sub{max-width:760px}
.complete-profile-page .auth-flow-strip{margin-bottom:18px}
.complete-profile-page .onboarding-form{gap:18px}
.complete-profile-page .onboarding-grid{gap:16px}
.complete-profile-page .onboarding-grid.two-up{grid-template-columns:repeat(2,minmax(0,1fr))}
.complete-profile-page .form-card{padding:20px 22px;border-radius:20px;background:#fff;box-shadow:0 10px 26px rgba(16,39,70,.04)}
.complete-profile-page .form-card h3{margin-bottom:14px}
.complete-profile-page .form-grid{gap:14px}

.complete-profile-page .basics-study-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(140px,.78fr);gap:14px;align-items:start}
.complete-profile-page .basics-study-grid .study-programme{grid-column:1 / -1}
.complete-profile-page .basics-study-grid .study-programme input{min-height:56px}
.complete-profile-page .basics-study-grid .study-year input,
.complete-profile-page .basics-study-grid .study-degree select{min-height:56px}
.complete-profile-page .basics-study-grid .field-help{max-width:none}
.complete-profile-page .lookup-field,.complete-profile-page .onboarding-form label{display:block}
.complete-profile-page .lookup-field input[type=text],
.complete-profile-page .onboarding-form input[type=text],
.complete-profile-page .onboarding-form input[type=url],
.complete-profile-page .onboarding-form input[type=number],
.complete-profile-page .onboarding-form select,
.complete-profile-page .onboarding-form textarea{width:100%}
.complete-profile-page .full-width-field input{min-height:54px}
.complete-profile-page .lookup-field.tag-lookup-field .lookup-input{min-height:54px}
.complete-profile-page textarea[data-bio-target]{min-height:170px;resize:vertical}
.complete-profile-page .field-help{margin-top:6px;font-size:.88rem;line-height:1.45}
.complete-profile-page .onboarding-actions{padding-top:2px}
.complete-profile-page .onboarding-actions .btn{min-width:170px}
@media (max-width: 920px){
  .complete-profile-page .onboarding-grid.two-up,
  .complete-profile-page .basics-study-grid{grid-template-columns:1fr}
  .complete-profile-page .form-card{padding:18px}
}


.discover-filter-picker{position:relative;display:flex;flex-direction:column;gap:.35rem}
.discover-filter-label{font-size:.84rem;font-weight:700;color:#16325c}
.discover-chip-box{display:flex;flex-wrap:wrap;align-items:center;gap:.45rem;min-height:54px;padding:.6rem .8rem;border:1px solid rgba(15,39,71,.12);border-radius:16px;background:#fff}
.discover-chip-list{display:flex;flex-wrap:wrap;gap:.4rem}
.discover-chip-input{border:0 !important;box-shadow:none !important;padding:.2rem 0 !important;min-width:180px;flex:1;background:transparent}
.discover-chip-input:focus{outline:none}
.discover-chip-tag{display:inline-flex;align-items:center;gap:.4rem;padding:.42rem .7rem;border-radius:999px;background:#eef4ff;color:#123258;font-weight:600;font-size:.84rem}
.discover-chip-remove{border:0;background:transparent;color:#345;cursor:pointer;font-size:1rem;line-height:1;padding:0}
.discover-filter-feedback{font-size:.78rem;color:#66758a}
.discover-suggestion-list{position:absolute;left:0;right:0;top:100%;z-index:20;background:#fff;border:1px solid rgba(15,39,71,.12);border-radius:16px;box-shadow:0 16px 38px rgba(15,39,71,.12);padding:.35rem;margin-top:.2rem;max-height:230px;overflow:auto}
.discover-suggestion-item{display:block;width:100%;text-align:left;padding:.72rem .85rem;border:0;background:transparent;border-radius:12px;cursor:pointer;color:#16325c}
.discover-suggestion-item:hover{background:#f4f7fb}
@media (max-width: 860px){.discover-filter-picker{grid-column:1/-1}}


/* Discover page refinement only */
.discover-page .discover-filter-grid{align-items:start;grid-template-columns:minmax(0,1.18fr) minmax(0,1.18fr) minmax(0,.92fr)}
.discover-page .discover-filter-picker-wide{min-width:0}
.discover-page .discover-filter-field{justify-content:flex-end}
.discover-page .discover-filter-field .form-control{width:100%}
.discover-page .discover-chip-box{min-height:48px;padding:.45rem .75rem;border-radius:14px}
.discover-page .discover-chip-input{min-width:120px}
.discover-page .discover-filter-grid > *{min-width:0}
.discover-page .discover-filter-picker,.discover-page .discover-filter-field,.discover-page .discover-filter-picker-wide{min-width:0;max-width:100%}
.discover-page .discover-chip-box{width:100%;max-width:100%}
.discover-page .discover-toolbar{overflow-x:clip}
.discover-page .discover-filter-feedback{min-height:1.15rem;margin-top:.1rem}
.discover-page .discover-filter-toggles{padding-top:.15rem}
.discover-page .conference-filter-inline{padding:.55rem .65rem;border:1px solid rgba(15,39,71,.08);border-radius:14px;background:#fbfcfe}
.discover-page .results-flash{animation:discoverFlash 1.1s ease}
@keyframes discoverFlash{0%{box-shadow:0 0 0 0 rgba(34,92,230,.18)}50%{box-shadow:0 0 0 10px rgba(34,92,230,0)}100%{box-shadow:none}}
@media (max-width:980px){.discover-page .discover-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.discover-page .discover-filter-grid{grid-template-columns:1fr}.discover-page .conference-filter-inline{padding:.35rem 0;border:0;background:transparent}}


/* Discover result card premium refinement */
.discover-page .discover-results-grid{display:grid;gap:16px}
.discover-page .discover-result-card{padding:16px 18px;border-radius:22px}
.discover-page .discover-result-shell{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:start}
.discover-page .discover-result-main{min-width:0;display:grid;gap:10px}
.discover-page .discover-result-head{margin-bottom:0;gap:12px;align-items:flex-start}
.discover-page .discover-result-avatar{width:64px;height:64px;border-radius:20px;font-size:1.05rem;box-shadow:0 10px 22px rgba(19,50,88,.08)}
.discover-page .discover-conference-avatar{display:grid;place-items:center;color:#fff;font-weight:800;overflow:hidden}
.discover-page .discover-conference-avatar svg{width:28px;height:28px;fill:#fff}
.discover-page .discover-result-copy{min-width:0}
.discover-page .discover-result-copy h4{margin:0 0 4px;font-size:1.02rem;line-height:1.3;color:#123258}
.discover-page .discover-result-copy .meta{font-size:.92rem;line-height:1.3}
.discover-page .discover-result-copy .muted{font-size:.87rem;line-height:1.45}
.discover-page .discover-result-badges,.discover-page .professor-reco-badges{gap:8px}
.discover-page .discover-result-badges .badge,.discover-page .professor-reco-badges .badge{padding:6px 10px;font-size:.76rem}
.discover-page .discover-result-summary{margin:0;line-height:1.56;color:#5f6f85;max-width:78ch;font-size:.92rem}
.discover-page .discover-conference-card .discover-result-head{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px;align-items:start}
.discover-page .discover-conference-card .discover-result-copy .muted{margin-top:2px}
.discover-page .discover-conference-card .discover-result-summary{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;max-width:none}
.discover-page .discover-conference-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;margin-top:2px}
.discover-page .discover-conference-meta-item{display:flex;align-items:flex-start;gap:10px;padding:11px 12px;border-radius:16px;background:#f8fbff;border:1px solid rgba(23,61,114,.08);min-width:0}
.discover-page .discover-conference-meta-icon{width:34px;height:34px;border-radius:12px;display:grid;place-items:center;background:#eaf2ff;color:#173d72;flex:0 0 34px}
.discover-page .discover-conference-meta-icon svg{width:17px;height:17px;fill:currentColor}
.discover-page .discover-conference-meta-copy{min-width:0;display:grid;gap:2px}
.discover-page .discover-conference-meta-label{font-size:.72rem;font-weight:800;letter-spacing:.02em;text-transform:uppercase;color:#6d7b8e}
.discover-page .discover-conference-meta-value{font-size:.88rem;line-height:1.4;color:#17324f;word-break:break-word}
.discover-page .discover-conference-card .discover-result-actions{justify-content:flex-start;align-items:stretch;min-width:188px}
.discover-page .discover-conference-card .discover-result-actions .btn{width:100%}
.discover-page .discover-result-summary .muted{line-height:1.56}
.discover-page .discover-result-actions{display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;gap:10px;min-width:170px}
.discover-page .discover-result-actions .btn{white-space:nowrap;justify-content:center}
.discover-page .discover-deadline{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:.84rem;color:#6a778a;padding-top:2px}
.discover-page .discover-deadline strong{color:#173d72;font-size:.79rem;letter-spacing:.01em;text-transform:uppercase}
.discover-page .conference-discover-actions{gap:9px}
.discover-page .conference-discover-actions form{margin:0}
.discover-page .conference-discover-actions .btn,
.discover-page .professor-reco-actions .btn{min-width:148px}
.discover-page .university-discover-summary{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.discover-page .match-reason-block{display:grid;gap:4px;margin-top:2px}
.discover-page .match-reason-label{font-size:.76rem;letter-spacing:.01em;text-transform:uppercase;color:#173d72}
.discover-page .results-count{padding:8px 12px;border-radius:999px;background:#f7f9fd;border:1px solid rgba(15,39,71,.08)}
@media (min-width: 861px){
  .discover-page .discover-results-grid{gap:14px}
  .discover-page .discover-conference-card .discover-result-shell,
  .discover-page .discover-university-card .discover-result-shell,
  .discover-page .discover-person-card .discover-result-shell{grid-template-columns:minmax(0,1fr) auto}
}
@media (max-width: 860px){
  .discover-page .discover-result-card{padding:15px 15px 16px}
  .discover-page .discover-result-shell{grid-template-columns:1fr;gap:12px}
  .discover-page .discover-result-actions{min-width:0;align-items:stretch}
  .discover-page .discover-result-actions .btn{width:100%}
  .discover-page .discover-result-avatar{width:58px;height:58px;border-radius:18px}
  .discover-page .discover-result-summary{font-size:.9rem;max-width:none}
  .discover-page .discover-conference-meta{grid-template-columns:1fr}
  .discover-page .discover-conference-meta-item{padding:10px 11px}
  .discover-page .discover-conference-meta-icon{width:32px;height:32px;flex-basis:32px}
  .discover-page .discover-result-badges .badge,.discover-page .professor-reco-badges .badge{font-size:.74rem}
}


/* Logged-in menu notice badges */
.topnav a{
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.nav-link-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:20px;
  height:20px;
  padding:0 6px;
  border-radius:999px;
  background:rgba(23,61,114,.10);
  border:1px solid rgba(23,61,114,.12);
  color:var(--primary);
  font-size:.72rem;
  font-weight:800;
  line-height:1;
  vertical-align:middle;
  flex:none;
}
.ui-context-app .nav-link-badge{
  background:rgba(23,61,114,.12);
  color:#173d72;
}
@media (max-width: 860px){
  .topnav a{
    width:100%;
    justify-content:space-between;
  }
  .nav-link-badge{
    margin-left:12px;
  }
}


/* Planner foundation */
.planner-page{display:grid;gap:26px}
.planner-hero{display:grid;grid-template-columns:1.25fr .75fr;gap:20px;align-items:center;padding:28px 30px}
.planner-hero h1{font-size:clamp(2rem,4vw,2.85rem);margin:6px 0 10px}
.planner-subcopy{max-width:760px;color:var(--muted);font-size:1.02rem;line-height:1.7;margin:0}
.planner-anchor-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.planner-anchor-chip{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:999px;background:#fff;border:1px solid var(--border);color:var(--primary);font-weight:700}
.planner-anchor-chip:hover{background:#f6f9ff}
.planner-hero-pillbox{display:grid;gap:10px;justify-items:start}
.planner-section{display:grid;gap:16px}
.planner-section-head,.planner-subsection-head{display:flex;justify-content:space-between;align-items:end;gap:18px}
.planner-section-head.compact{align-items:center}
.planner-section-head h2,.planner-subsection-head h3{margin:0}
.planner-section-head h2{font-size:1.35rem}
.planner-subsection-head h3{font-size:1.08rem}
.planner-section-head p,.planner-subsection-head p{margin:4px 0 0;color:var(--muted)}
.planner-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.planner-summary-card{padding:22px 22px 20px;border-radius:22px}
.planner-summary-label{display:block;font-size:.84rem;font-weight:800;color:var(--primary);text-transform:uppercase;letter-spacing:.04em;margin-bottom:10px}
.planner-summary-card strong{display:block;font-size:2rem;line-height:1}
.planner-summary-card p{margin:10px 0 0;color:var(--muted);line-height:1.6}
.planner-item-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.planner-item-card{padding:20px;border-radius:22px;display:grid;gap:14px}
.planner-item-top{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:start}
.planner-item-badge,.planner-mini-badge{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;overflow:hidden;background:#edf4ff;flex-shrink:0}
.planner-mini-badge{width:38px;height:38px;border-radius:12px}
.planner-item-badge img,.planner-mini-badge img{width:100%;height:100%;object-fit:cover}
.planner-item-copy h4{margin:0 0 4px;font-size:1.02rem;line-height:1.35}
.planner-item-meta,.planner-list-meta{color:var(--muted);font-size:.93rem;line-height:1.5}
.planner-status{display:inline-flex;align-items:center;justify-content:center;padding:7px 11px;border-radius:999px;font-size:.8rem;font-weight:800;background:#edf4ff;color:var(--primary);white-space:nowrap}
.planner-status.tone-warn{background:#fff6e8;color:var(--warning);border:1px solid #f0dfb3}
.planner-status.tone-alert{background:#fff1f0;color:var(--danger);border:1px solid #f4d2cf}
.planner-status.tone-good{background:#eaf8f1;color:var(--success);border:1px solid #ccebd9}
.planner-status.tone-muted{background:#f4f6f9;color:var(--muted);border:1px solid #e3e9f2}
.planner-date-row{display:flex;justify-content:space-between;gap:16px;padding:12px 14px;border-radius:16px;background:#f8fbff;border:1px solid #e6eef9;font-size:.93rem;color:var(--muted)}
.planner-date-row strong{color:var(--text);font-size:.94rem}
.planner-actions{display:flex;gap:10px;flex-wrap:wrap}
.planner-actions .btn{padding:10px 14px;border-radius:12px}
.planner-subsection{display:grid;gap:14px}
.planner-list{padding:12px 18px;border-radius:22px;display:grid;gap:6px}
.planner-list-row{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:14px 4px;border-top:1px solid var(--border)}
.planner-list-row:first-child{border-top:none}
.planner-list-main{display:flex;align-items:center;gap:12px;min-width:0}
.planner-list-main strong{display:block;margin-bottom:3px}
.planner-list-side{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.planner-list-side a{font-weight:700}
.planner-item-card.tone-alert,.planner-list-row.muted-state{background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(251,252,255,.92))}
.planner-avatar{width:52px;height:52px;border-radius:16px;object-fit:cover;background:#edf4ff}
@media (max-width:1080px){
  .planner-hero,.planner-summary-grid,.planner-item-grid{grid-template-columns:1fr}
}
@media (max-width:720px){
  .planner-hero{padding:22px}
  .planner-item-top{grid-template-columns:auto 1fr;}
  .planner-item-top .planner-status{grid-column:1 / -1;justify-self:start}
  .planner-date-row,.planner-list-row,.planner-section-head,.planner-subsection-head{flex-direction:column;align-items:flex-start}
  .planner-list-side{justify-content:flex-start}
}

/* Shared presence UI */
.presence-badge{display:inline-flex;align-items:center;gap:7px;border-radius:999px;padding:5px 10px;font-size:.74rem;font-weight:700;line-height:1;background:#eef3f8;color:#52657c;border:1px solid transparent;white-space:nowrap}
.presence-dot{width:8px;height:8px;border-radius:50%;display:inline-block;background:currentColor;box-shadow:0 0 0 3px rgba(255,255,255,.55)}
.presence-badge.is-online{background:rgba(34,197,94,.12);color:#166534;border-color:rgba(34,197,94,.18)}
.presence-badge.is-recent{background:rgba(245,158,11,.14);color:#9a5d00;border-color:rgba(245,158,11,.2)}
.presence-badge.is-offline{background:rgba(148,163,184,.16);color:#52657c;border-color:rgba(148,163,184,.24)}
.discover-page .discover-result-copy .presence-badge{margin-top:8px;align-self:flex-start}

.discover-student-focus{display:grid;gap:4px;margin-top:12px;padding:10px 12px;border-radius:14px;background:#f7f9fc;border:1px solid #e1e8f2}
.discover-student-focus span{font-size:.72rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#6a7a92}
.discover-student-focus strong{font-size:.92rem;line-height:1.4;color:#18314f;font-weight:700}
.discover-course-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.discover-course-row .course-chip{display:inline-flex;align-items:center;padding:7px 10px;border-radius:999px;background:#eef4fb;border:1px solid #d7e2f0;color:#18314f;font-size:.82rem;font-weight:700;line-height:1.2}


.auth-entry-card{max-width:620px}
.auth-entry-form{max-width:720px;margin:0 auto}
.auth-role-switch{display:flex;gap:8px;justify-content:center;align-items:center;margin:0 auto 18px;max-width:340px;padding:6px;border-radius:18px;background:#f5f7fb;border:1px solid rgba(16,39,70,.08)}
.auth-role-chip{flex:1 1 0;display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 16px;border-radius:14px;color:#5f6b7d;font-weight:700;text-decoration:none;transition:background .2s ease,box-shadow .2s ease,color .2s ease,transform .2s ease}
.auth-role-chip.active{background:#fff;color:var(--ac-navy);box-shadow:0 8px 22px rgba(16,39,70,.08);transform:translateY(-1px)}
.auth-entry-card-professor .auth-minimal-sub{max-width:720px}
.auth-entry-card-professor .student-register-form{max-width:640px}
@media (max-width:720px){.auth-role-switch{max-width:none}.auth-role-chip{min-height:44px;font-size:.95rem}}


.auth-entry-card-professor .form-card h3{margin-bottom:.75rem;}
.auth-entry-card-professor .lookup-field,.auth-entry-card-professor .full-width-field{margin-bottom:1rem;}
.auth-entry-card-professor .bio-card-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.75rem;}
.auth-entry-card-professor .bio-card-head .btn{white-space:nowrap;}
.auth-entry-card-professor .lookup-results{max-height:220px;overflow:auto;}
.auth-entry-card-professor .selected-tags{display:flex;flex-wrap:wrap;gap:.45rem;margin-top:.65rem;}
@media (max-width: 760px){
  .auth-entry-card-professor .bio-card-head{align-items:flex-start;flex-direction:column;}
}


.select-filter-input{width:100%;margin:8px 0 10px;border:1px solid rgba(30,42,68,.12);border-radius:14px;padding:12px 14px;background:#fff;color:#1f2937;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.select-filter-input:focus{outline:none;border-color:rgba(37,99,235,.45);box-shadow:0 0 0 4px rgba(59,130,246,.10)}
.lookup-field .lookup-results.open{display:block;max-height:240px;overflow:auto}
.lookup-field .lookup-item{display:flex;width:100%;text-align:left;justify-content:space-between;gap:10px;border:none;background:#fff;padding:12px 14px;cursor:pointer}
.lookup-field .lookup-item:hover{background:#f8fafc}
.lookup-field .lookup-state{padding:12px 14px;color:#6b7280}
.selected-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.selected-pill{border:1px solid rgba(37,99,235,.16);background:#eff6ff;color:#1d4ed8;border-radius:999px;padding:8px 12px;font-size:.92rem;cursor:pointer}
.selected-pill::after{content:" ×";opacity:.7}


.professor-refine-embedded {
  background: #f8fafc;
}

.professor-embedded-shell {
  padding: 18px;
}

.professor-embedded-shell .auth-register-card.embedded {
  margin: 0;
  max-width: none;
  box-shadow: none;
  border: 0;
  background: transparent;
}

.professor-embedded-shell .auth-minimal-head {
  margin-bottom: 18px;
}


.auth-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
  padding:6px 12px;
  border-radius:999px;
  background:rgba(34,92,230,.08);
  color:#1d4ed8;
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.footer-academic-wrap{
  width:auto;
  max-width:none;
  margin:52px calc(50% - 50vw) 0;
  padding:0;
  overflow-x:clip;
  background:linear-gradient(180deg,#152c4d 0%,#10223d 100%);
  border-top:1px solid rgba(223,232,245,.10);
}
.footer-academic-card{
  max-width:1240px;
  margin:0 auto;
  padding:34px 24px 30px;
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(180px,.72fr) minmax(220px,.82fr);
  gap:22px 34px;
  align-items:start;
}
.footer-academic-brand,
.footer-academic-links,
.footer-academic-contact{
  display:grid;
  align-content:start;
  gap:10px;
}
.footer-academic-mark{
  display:inline-block;
  margin-bottom:6px;
  font-size:1.15rem;
  font-weight:900;
  letter-spacing:-.02em;
  color:#f7fbff;
}
.footer-academic-label{
  display:inline-block;
  margin-bottom:4px;
  color:rgba(225,235,247,.66);
  font-size:.8rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.footer-academic-copy{
  margin:0;
  max-width:32rem;
  color:#b9c7d8;
  line-height:1.75;
}
.footer-academic-links a,
.footer-academic-contact a,
.footer-academic-meta{
  color:#f2f7ff;
  text-decoration:none;
  font-weight:700;
}
.footer-academic-links a,
.footer-academic-contact a{
  opacity:.94;
}
.footer-academic-links a:hover,
.footer-academic-contact a:hover{
  color:#ffffff;
  opacity:1;
}
.footer-academic-meta{
  color:#aebcd0;
  font-weight:600;
}
@media (max-width: 900px){
  .footer-academic-wrap{
    margin-top:42px;
  }
  .footer-academic-card{
    grid-template-columns:1fr;
    padding:26px 18px 24px;
    gap:18px;
  }
}
@media (max-width: 640px){
  .footer-academic-wrap{
    margin-top:34px;
  }
  .footer-academic-card{
    padding:24px 16px 22px;
    gap:16px;
  }
  .footer-academic-copy{
    max-width:none;
    line-height:1.7;
  }
}


/* Mobile polish patch */
@media (max-width:640px){
  .main-nav-shell{align-items:center}
  .top-actions{width:100%;justify-content:stretch;order:3}
  .top-actions .btn-nav{flex:1 1 0;text-align:center;padding:9px 10px}
  .home-hero-title{font-size:clamp(1.95rem,11vw,2.8rem);max-width:9ch;line-height:1.03;letter-spacing:-.05em}
  .home-hero-text{font-size:.98rem;line-height:1.68;max-width:34rem}
  .home-hero-actions{gap:10px}
  .home-hero-actions .btn{flex:1 1 0;text-align:center;justify-content:center}
  .home-search-head p{max-width:32rem;margin-left:auto;margin-right:auto}
  .discover-page .card-panel.discover-toolbar{padding:.85rem}
  .discover-page .discover-toolbar-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .discover-page .discover-toolbar-actions > *{width:100%}
  .discover-page .discover-filter-toggles{margin-top:.65rem}
  .discover-page #studentFilterGroup,
  .discover-page #conferenceFilterGroup{display:grid;grid-template-columns:1fr;gap:.7rem;width:100%}
  .discover-page .check-inline{padding:10px 12px;border:1px solid rgba(15,39,71,.08);border-radius:14px;background:#fafbfd}
}
@media (max-width:430px){
  .brand-wrap-header{min-width:0}
  .brand{font-size:.98rem}
  .home-hero-title{font-size:clamp(1.8rem,11vw,2.45rem);max-width:8.7ch}
  .home-hero-actions{flex-direction:column}
  .home-hero-actions .btn{width:100%}
}
