#talentPage.portal-live > :not(#portalRealMount){display:none!important}
#portalRealMount{min-height:450px}
.portal-real-hero{background:#fffbed;border:1px solid #e8e0c7;border-radius:18px;padding:30px;margin-bottom:24px}
.portal-real-hero h1{font-size:32px;letter-spacing:-1px;margin:9px 0 8px}
.portal-real-hero p{color:#6a6b63;margin:0 0 12px}
.portal-private{font-size:12px;color:#7b7c73}
.portal-real-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:24px}
.portal-real-metrics article{background:#fff;border:1px solid #e6e2d8;border-radius:15px;padding:22px;display:flex;flex-direction:column;gap:10px}
.portal-real-metrics small{color:#777b75}.portal-real-metrics strong{font-size:28px;letter-spacing:-.5px}
.portal-real-bar{display:flex;justify-content:space-between;align-items:center;margin:20px 0}
.portal-real-bar>div{display:flex;gap:8px}.portal-real-bar button[data-portal-tab]{padding:12px 20px;border:1px solid #e7e1d9;border-radius:9px;background:white;font-weight:700;cursor:pointer}
.portal-real-bar button.chosen{background:#ef5035;color:#fff;border-color:#ef5035}
.portal-real-table{background:white;border:1px solid #e6e2d8;border-radius:14px;overflow-x:auto}
.portal-real-table table{width:100%;border-collapse:collapse;min-width:690px;text-align:left}
.portal-real-table th,.portal-real-table td{padding:17px 19px;border-bottom:1px solid #f0eee8;font-size:13px;vertical-align:top}
.portal-real-table th{color:#81827c;font-size:11px;text-transform:uppercase;letter-spacing:.6px}
.portal-empty{text-align:center;color:#777;padding:38px!important}
.portal-admin-selector{border:1px solid #e8e0c7;border-radius:14px;padding:18px;background:#fff;margin-bottom:20px;max-width:680px}
.portal-admin-selector label{display:block;font-size:13px;font-weight:700}
.portal-admin-selector input{display:block;width:100%;padding:12px;border:1px solid #ddd8cd;border-radius:8px;margin-top:8px}
#portalTalentResults{display:flex;flex-direction:column;max-height:200px;overflow:auto;gap:5px;margin-top:12px}
#portalTalentResults button{border:1px solid #ebe6dc;border-radius:8px;background:#fff;text-align:left;padding:10px 12px;cursor:pointer}
#portalTalentResults button:hover{background:#fff4eb;border-color:#f3a087}
.talent-link-results{display:flex;flex-direction:column;max-height:160px;overflow-y:auto;gap:2px}
.talent-link-option{padding:8px 11px;text-align:left;border:1px solid #e8e3d9;border-radius:6px;background:white;cursor:pointer;color:#30302f}
.talent-link-option:hover{background:#fff5ea}
.talent-link-help{font-size:10px;color:#8b8c86;display:block;margin:6px 0}
@media(max-width:750px){.portal-real-metrics{grid-template-columns:1fr}.portal-real-hero h1{font-size:26px}}

/* Super Admin gets the exact talent portal, with only a compact switcher above it. */
.portal-preview-toolbar{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:18px;padding:12px 18px;border:1px solid #e7e0d5;border-radius:14px;background:#fff}
.portal-preview-label{font-size:12px;font-weight:800;color:#bd432d}
.portal-preview-controls{position:relative;display:flex;align-items:center;gap:10px;flex:1;min-width:220px}
.portal-preview-controls label{font-size:12px;font-weight:700;white-space:nowrap}
.portal-preview-controls input{width:min(320px,100%);height:42px;padding:10px 12px;border:1px solid #dfdcd5;border-radius:9px}
.portal-preview-toolbar>small{color:#85837b;white-space:nowrap}
.portal-preview-results{position:absolute;top:calc(100% + 4px);left:100px;width:min(360px,calc(100vw - 48px));z-index:20;background:#fff;box-shadow:0 12px 30px #17171424;border-radius:10px;max-height:220px;overflow:auto}
.portal-preview-results:empty{display:none}
.portal-preview-results button{display:block;width:100%;padding:12px;text-align:left;background:#fff;border:1px solid #e9e5df;color:#242424;cursor:pointer}
.portal-preview-results button:hover{background:#fff3e8}
@media(max-width:750px){.portal-preview-toolbar{align-items:stretch}.portal-preview-controls{width:100%;flex-wrap:wrap}.portal-preview-controls input{width:100%}.portal-preview-results{left:0;width:100%}}

/* Approved talent dashboard: compact greeting, priority stats and understated tabs. */
#portalRealMount .portal-real-hero{background:transparent;border:0;padding:8px 0 6px;margin-bottom:14px;border-radius:0}
#portalRealMount .portal-real-hero .eyebrow{color:#ef5035;font-size:10px}
#portalRealMount .portal-real-hero h1{font-size:clamp(26px,4vw,36px);letter-spacing:-1px;margin:6px 0}
#portalRealMount .portal-real-hero p{margin:0;color:#898780;font-size:14px}
#portalRealMount .portal-real-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}
#portalRealMount .portal-real-metrics article{padding:18px;gap:12px;border-radius:15px;min-height:108px}
#portalRealMount .portal-real-metrics article:first-child{border-color:#ef5035;background:#fff9f6}
#portalRealMount .portal-real-metrics small{font-size:12px;color:#797873}
#portalRealMount .portal-real-metrics strong{font-size:clamp(21px,2.1vw,28px)}
#portalRealMount .portal-real-bar{border-bottom:1px solid #e8e3dd;padding:0 0 2px;margin:18px 0}
#portalRealMount .portal-real-bar button[data-portal-tab]{background:transparent;border:0;border-bottom:3px solid transparent;border-radius:0;color:#62615b;padding:12px 16px;font-size:13px}
#portalRealMount .portal-real-bar button[data-portal-tab].chosen{color:#ef5035;border-bottom-color:#ef5035}
#portalRealMount .portal-preview-toolbar{justify-content:flex-end;padding:6px 0;border:0;background:transparent;margin-bottom:8px;gap:12px}
#portalRealMount .portal-preview-controls{flex:0 1 285px;min-width:185px}
#portalRealMount .portal-preview-controls input{height:38px}
#portalRealMount .portal-preview-label{font-size:11px;white-space:nowrap}
@media(max-width:780px){
 #portalRealMount .portal-real-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 #portalRealMount .portal-real-metrics article{padding:14px;min-height:98px}
 #portalRealMount .portal-real-metrics strong{font-size:clamp(19px,5vw,25px)}
 #portalRealMount .portal-preview-toolbar{justify-content:flex-end;flex-wrap:nowrap;gap:7px;margin:0 0 10px;padding:0}
 #portalRealMount .portal-preview-label{font-size:10px;max-width:104px;white-space:normal;text-align:right}
 #portalRealMount .portal-preview-controls{flex:0 1 205px;min-width:0;gap:5px}
 #portalRealMount .portal-preview-controls label{display:none}
 #portalRealMount .portal-preview-controls input{width:100%;font-size:12px;padding:8px 9px}
 #portalRealMount .portal-real-bar{align-items:stretch;flex-direction:column;gap:4px}
 #portalRealMount .portal-real-bar>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
 #portalRealMount .portal-real-bar button[data-portal-tab]{padding:11px 4px;font-size:12px}
 #portalRealMount #portalRefresh{align-self:flex-end;margin-bottom:8px}
}

/* Center the talent picker; preview identity belongs in the global header. */
#talentPreviewTopBadge{color:#bc452e;font-size:11px;font-weight:800;line-height:1.15;text-align:center;max-width:120px}
#talentPreviewTopBadge[hidden]{display:none!important}
#portalRealMount .portal-preview-toolbar{justify-content:center;gap:0;width:100%;margin:0 auto 12px;padding:4px 0}
#portalRealMount .portal-preview-controls{flex:0 1 560px;min-width:0;width:min(100%,560px);justify-content:center;gap:10px}
#portalRealMount .portal-preview-controls input{width:100%;height:46px;max-width:none;font-size:14px}
#portalRealMount .portal-preview-results{left:0;width:100%}
@media(max-width:780px){
 #talentPreviewTopBadge{font-size:9px;max-width:76px}
 #portalRealMount .portal-preview-toolbar{justify-content:center;flex-wrap:nowrap;gap:0;margin:0 auto 12px;padding:0}
 #portalRealMount .portal-preview-controls{flex:1 1 100%;width:min(100%,560px);min-width:0}
 #portalRealMount .portal-preview-controls input{width:100%;height:44px;font-size:14px;padding:10px 12px}
}
