/* JobsHub Hybrid UX approved 2026-10-27: additive presentation only.
   Intentionally does not modify visibility, permission, entitlement or action semantics. */
:root{--jh-hybrid-royal:#0D397D;--jh-hybrid-navy:#0F1E36;--jh-hybrid-gold:#EAB957;--jh-hybrid-paper:#F8FAFC;--jh-hybrid-line:#E2E8F0}
body.jobshub-pilot{--premium-blue:var(--jh-hybrid-royal);--premium-gold:var(--jh-hybrid-gold);--premium-paper:var(--jh-hybrid-paper);--premium-line:var(--jh-hybrid-line)}
body.jobshub-pilot .jh-main-tabs,body.jobshub-pilot .jh-profile-tabs{border-color:var(--jh-hybrid-line);background:#edf2fc;border-radius:16px}
body.jobshub-pilot .jh-tab{min-height:44px;border-radius:11px;transition:background-color .16s ease,color .16s ease;position:relative}
body.jobshub-pilot .jh-tab[aria-selected=true]{box-shadow:inset 0 -3px var(--jh-hybrid-gold),0 2px 10px #15386b13;color:var(--jh-hybrid-navy)}
body.jobshub-pilot .jh-main-tabs .jh-tab:nth-child(8n+1) svg{color:#d8a13e}
body.jobshub-pilot .jh-main-tabs .jh-tab:nth-child(8n+2) svg{color:#189dcf}
body.jobshub-pilot .jh-main-tabs .jh-tab:nth-child(8n+3) svg{color:#8f72dc}
body.jobshub-pilot .jh-main-tabs .jh-tab:nth-child(8n+4) svg{color:#17a57c}
body.jobshub-pilot .jh-main-tabs .jh-tab:nth-child(8n+5) svg{color:#d76a88}
body.jobshub-pilot .jh-main-tabs .jh-tab:nth-child(8n+6) svg{color:#c78a3b}
body.jobshub-pilot .jh-main-tabs .jh-tab:nth-child(8n+7) svg{color:#477ed1}
body.jobshub-pilot .jh-main-tabs .jh-tab:nth-child(8n) svg{color:#40a3aa}
body.jobshub-pilot .jh-main-tabs .jh-tab svg{width:19px;height:19px;flex-shrink:0;stroke-width:2}
body.jobshub-pilot .panel,body.jobshub-pilot .functional-workspace{border-color:var(--jh-hybrid-line);box-shadow:0 8px 26px #152e6311}
body.jobshub-pilot .panel h2{letter-spacing:-.025em}
body.jobshub-pilot .btn:focus-visible,body.jobshub-pilot .jh-tab:focus-visible{outline:3px solid var(--jh-hybrid-gold);outline-offset:2px}
body.jobshub-pilot[data-approved-admin=true] .ux-admin-nav{background:linear-gradient(180deg,#102458,#0c193d);border-radius:15px}
body.jobshub-pilot[data-approved-admin=true] .ux-admin-nav button{min-height:44px}
body.jobshub-pilot[data-approved-admin=true] .ux-admin-nav button:focus-visible{outline:3px solid var(--jh-hybrid-gold);outline-offset:2px}
@media(max-width:700px){body.jobshub-pilot .jh-main-tabs{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:thin}body.jobshub-pilot .jh-main-tabs .jh-tab{flex:0 0 auto;white-space:nowrap;min-height:44px}body.jobshub-pilot .panel{border-radius:15px}}
@media(prefers-reduced-motion:reduce){body.jobshub-pilot .jh-tab{transition:none}}

/* Authentic Stitch candidate and admin layouts — internal screen refinement.
   Presentation only: never overrides [hidden], permissions, or application state. */
body[data-stitch]{--sf-navy:#0F1E36;--sf-blue:#0D397D;--sf-gold:#EAB957;--sf-paper:#F8FAFC;--sf-line:#E2E8F0;--sf-ink:#0F1E36;--sf-muted:#64748B;--jh-canvas:#F8FAFC;--jh-surface:#FFFFFF;--jh-line:#E2E8F0;--jh-ink:#0F1E36;--jh-muted:#64748B;--jh-royal:#0D397D;--jh-gold:#EAB957}
body[data-stitch] .sf-nav{background:linear-gradient(175deg,#102458,#0b173e);border-color:#293d72}
body[data-stitch] .sf-stage{min-width:0}
body[data-stitch] .sf-screen-head{margin:4px 0 22px}
body[data-stitch] .sf-screen-head h1{font-size:clamp(25px,2.1vw,34px);line-height:1.2;letter-spacing:-.035em;color:#12234f;margin:8px 0 4px}
body[data-stitch] .sf-eyebrow{font-size:10px;font-weight:800;letter-spacing:.17em;color:#bc812f}
body[data-stitch=candidate] .sf-page-body{grid-template-columns:minmax(0,1fr) minmax(260px,29%);gap:18px}
body[data-stitch] .sf-primary>section,body[data-stitch] .sf-primary>.panel,body[data-stitch] .sf-context>section,body[data-stitch] .sf-context>.panel{min-width:0;border:1px solid #dfe7f5;border-radius:16px;background:#fff;box-shadow:0 10px 27px #12285c0a;margin-block:0 16px;padding:19px}
body[data-stitch] :is(.sf-primary,.sf-context) :is(h2,h3){line-height:1.32;color:#13254e;letter-spacing:-.02em}
body[data-stitch] :is(.sf-primary,.sf-context) :is(p,small,.muted){line-height:1.65}
body[data-stitch] .sf-mail-layout{grid-template-columns:minmax(250px,38%) minmax(0,1fr);gap:16px}
body[data-stitch] .sf-mail-list{border:1px solid #dfe7f5;background:#f6f8fe;border-radius:15px;padding:10px;gap:7px}
body[data-stitch] .sf-mail-item{min-height:66px;text-align:start;border:1px solid transparent;border-radius:11px;padding:12px 14px;transition:border-color .15s ease,background-color .15s ease}
body[data-stitch] .sf-mail-item[aria-pressed=true]{border-color:#9bb7f1;background:#eaf0ff;box-shadow:inset 3px 0 #214fb7}
body[data-stitch] .sf-mail-detail{min-width:0;background:#fff;border:1px solid #dfe7f5;border-radius:15px;padding:18px}
body[data-stitch] .sf-mail-detail details{max-width:100%}
body[data-stitch] .sf-op-filter{border-radius:15px;border-color:#dce5f4}
body[data-stitch] .sf-primary :is(button,a.btn),body[data-stitch] .sf-context :is(button,a.btn){min-height:42px}
body[data-stitch] :is(button,a,input,textarea,select,summary):focus-visible{outline:3px solid #dfad4b;outline-offset:2px}
body[data-stitch=admin] .sf-admin-content{gap:17px}
body[data-stitch=admin] .sf-admin-content>section,body[data-stitch=admin] .sf-admin-content>.panel{background:#fff;border:1px solid #dfe7f5;border-radius:16px;padding:18px;box-shadow:0 8px 22px #12285c0c}
body[data-stitch=admin] table{font-variant-numeric:tabular-nums}
body[data-stitch=admin] th{font-weight:750;letter-spacing:.02em}
@media(max-width:1100px){body[data-stitch=candidate] .sf-page-body{grid-template-columns:minmax(0,1fr) minmax(220px,30%)}}
@media(max-width:850px){body[data-stitch=candidate] .sf-page-body{grid-template-columns:1fr}body[data-stitch] .sf-mail-layout{grid-template-columns:1fr}body[data-stitch] .sf-mail-list{max-height:310px;overflow-y:auto}body[data-stitch] .sf-mail-detail{padding:14px}}
@media(prefers-reduced-motion:reduce){body[data-stitch] .sf-mail-item{transition:none}}

/* Distinct operational experiences: opportunities, application tracking, career profile,
   interview outcomes and AI-agent actions. Presentation-only; data and handlers remain owned by the app. */
body[data-stitch=candidate] #candidate-opportunities :is(.ux-opportunities-layout,.sf-page-body){align-items:start;gap:18px}
body[data-stitch=candidate] #candidate-opportunities :is(.ux-fidelity-card,.premium-access-panel){background:#fff;border:1px solid #dce5f4;border-radius:16px;box-shadow:0 8px 24px #10295e0b}
body[data-stitch=candidate] #candidate-job-detail{border-inline-start:4px solid #e6b34e}
body[data-stitch=candidate] #manual-packages :is(table,[role=list],.ux-fidelity-card){border-radius:13px;max-width:100%}
body[data-stitch=candidate] #manual-packages :is(th,td){padding-block:12px;border-bottom:1px solid #e4eaf5;text-align:start}
body[data-stitch=candidate] #manual-packages :is(button,a.btn){white-space:normal}
body[data-stitch=candidate] #workspace :is(input,select,textarea),body[data-stitch=candidate] #cvstudio :is(input,select,textarea){min-height:44px;border-radius:10px;border-color:#d8e3f3;background:#fcfdff;max-width:100%}
body[data-stitch=candidate] #workspace :is(fieldset,.ux-fidelity-card),body[data-stitch=candidate] #cvstudio :is(fieldset,.ux-fidelity-card){border:1px solid #dce5f4;border-radius:14px;padding:16px;margin-block:12px}
body[data-stitch=candidate] #manual-outcomes :is(article,.ux-fidelity-card),body[data-stitch=candidate] #candidate-activity :is(article,.ux-fidelity-card){border-radius:14px;border-color:#dfe7f5}
body[data-stitch=candidate] #manual-consent :is(button,input,select),body[data-stitch=candidate] #manual-settings :is(button,input,select){min-height:44px}
body[data-stitch] :is(#manual-packages,#manual-inbox,#candidate-opportunities,#cvstudio,#workspace) .sf-screen-head{border-bottom:1px solid #e1e8f4;padding-bottom:14px}
body[data-stitch] .sf-primary{overflow-wrap:anywhere}
body[data-stitch] :is(input,select,textarea){font:inherit}
@media(max-width:750px){body[data-stitch=candidate] :is(#manual-packages,#candidate-opportunities,#workspace) .sf-primary{min-width:0}body[data-stitch] #manual-packages{overflow-x:auto}}

/* Authorized mailbox search: retained message editors, fluid AR/EN control. */
body[data-stitch] .sf-message-search{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-block:0 10px}
body[data-stitch] .sf-message-filters{display:flex;flex-wrap:wrap;gap:6px}
body[data-stitch] .sf-message-filters button{min-height:44px;padding:7px 10px;border:1px solid #dce7f6;border-radius:22px;background:#fff;color:#163d75;font-size:12px}
body[data-stitch] .sf-message-filters button[aria-pressed=true]{background:#123f86;color:#fff}
body[data-stitch] .sf-message-query{flex:1;min-width:180px}
body[data-stitch] .sf-mail-unavailable{font-size:11px;color:#657389;align-self:center}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
body[data-stitch] .sf-message-search input{width:100%;box-sizing:border-box;min-height:44px;border:1px solid var(--sf-line);border-radius:10px;padding:10px 12px;background:white;color:var(--sf-ink)}
body[data-stitch] .sf-message-search-status{font-size:12px;color:#4b5c7a;margin-block:2px 8px}

/* Theme the actual navigation surface, including its mobile white background.
   The desktop navy token must never override the bottom-tab surface. */
body[data-stitch] .sf-nav .journey-more-content h3{color:#c6d3e9;font-size:13px;line-height:1.5}
@media(max-width:900px){
 body[data-stitch=candidate] .sf-nav{background:#fff}
 body[data-stitch=candidate] .sf-nav .journey-more-content h3{color:#455a7b}
 body[data-stitch=candidate] .sf-nav .sf-semantic-icon{color:var(--semantic-ink);background:var(--semantic-pale)}
}

/* Owner final completion: actual candidate task components, not a global restyle. */
body[data-stitch=candidate] .completion-back{display:inline-flex;min-height:38px;align-items:center;gap:8px;color:var(--sf-blue);font-size:13px;font-weight:650;text-decoration:none;margin-block-end:8px}
body[data-stitch=candidate] .completion-pipeline{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-block:0 12px}
body[data-stitch=candidate] .completion-pipeline button{display:flex;flex-direction:column;align-items:start;text-align:start;background:#f4f7fd;border-color:var(--sf-line);color:var(--sf-ink);padding:14px;min-width:0;min-height:88px}
body[data-stitch=candidate] .completion-pipeline strong{font-size:25px;line-height:1.2;color:var(--sf-blue)}
body[data-stitch=candidate] .completion-pipeline span{font-size:13px;line-height:1.5}
body[data-stitch=candidate] .completion-pipeline [aria-pressed=true]{background:#eaf0fc;border-color:var(--sf-blue);box-shadow:inset 0 -3px var(--sf-gold)}
body[data-stitch=candidate] .completion-filter-status{font-size:13px;color:#495d7c;margin-block:8px 16px}
body[data-stitch=candidate] #cvstudio .ux-cv-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,30%);gap:18px;align-items:start}
body[data-stitch=candidate] #cvstudio .ux-cv-paper{min-height:0;padding:12px;background:#e9eef7;border:1px solid var(--sf-line);border-radius:14px;min-width:0}
body[data-stitch=candidate] #cvstudio .ux-cv-controls{min-width:0;display:flex;flex-direction:column;gap:12px}
body[data-stitch=candidate] #cvstudio .ux-cv-controls>.row{margin:0;gap:8px}
body[data-stitch=candidate] #cvstudio .ux-cv-controls label{display:flex;flex-direction:column;gap:6px;font-size:13px;flex:1;min-width:0}
body[data-stitch=candidate] #cvstudio .ux-cv-templates{gap:10px}
body[data-stitch=candidate] #cvstudio .ux-cv-template{min-width:0;padding:10px;font-size:13px}
body[data-stitch=candidate] #cv-preview-status{font-size:13px;color:#435a7a;line-height:1.55;margin:0 0 10px}
body[data-stitch=candidate] .completion-cv-guidance{padding:10px 12px;border:1px solid var(--sf-line);border-radius:10px;font-size:13px;line-height:1.6;background:#f6f8fc}
body[data-stitch=candidate] #candidate-activity .sf-primary article{border-inline-start:3px solid var(--sf-gold);border-radius:10px;padding:12px 16px;margin-block:8px;background:#fff;display:grid;gap:5px}
body[data-stitch=candidate] #candidate-activity time{font-size:13px;color:#4c617e}
body[data-stitch=candidate] #manual-inbox .sf-mail-item{gap:7px;min-height:84px}



body[data-stitch=candidate] #pilot-feedback{max-width:920px;margin-inline:auto}
body[data-stitch=candidate] #pilot-feedback form{padding:16px;display:grid;gap:14px;background:white;border:1px solid var(--sf-line);border-radius:14px}
body[data-stitch=candidate] #pilot-feedback label{display:grid;gap:7px;min-width:0;font-size:14px}
body[data-stitch=candidate] #pilot-feedback textarea{min-height:110px}
body[data-stitch=candidate] #pilot-feedback .actions{display:flex;flex-wrap:wrap;gap:8px}
body[data-stitch=candidate] #workspace .ux-profile-story{align-self:start;border-top:3px solid var(--sf-gold)}
@media(min-width:901px){body[data-stitch=candidate] .sf-nav>.journey-more{display:block}body[data-stitch=candidate] .sf-nav>.journey-more:not([open])>.journey-more-content{display:none}}
@media(max-width:900px){body[data-stitch=candidate] #cvstudio .ux-cv-layout{grid-template-columns:1fr}body[data-stitch=candidate] #cvstudio .ux-cv-controls{order:-1}body[data-stitch=candidate] .completion-pipeline{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Keep short authenticated tasks at the top of their grid area. */
body[data-stitch=candidate] .sf-stage{margin-block:0;align-self:start}


/* Applications master/detail composition — scoped to the REAL authorized Applications
   screen. No model, API, permissions, state, routes or locked landing changes.
   Reference: owner-reviewed Uizard Applications & Interviews screenshot.
   Reference-derived presentation; all original controls remain live. */
body[data-stitch="candidate"] #manual-packages.sf-screen{
  --uizard-royal:#2947ad;--uizard-navy:#172955;--uizard-line:#e2e8f3;
  --uizard-surface:#fff;--uizard-soft:#f5f8fe;
  color:var(--uizard-navy);
}
body[data-stitch="candidate"] #manual-packages .sf-screen-head{
  margin-block-end:18px;border-bottom:1px solid var(--uizard-line);
}
body[data-stitch="candidate"] #manual-packages .sf-screen-head h1{
  color:var(--uizard-navy);letter-spacing:-.025em;
}
body[data-stitch="candidate"] #manual-packages .sf-page-body{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.32fr);
  align-items:start;gap:18px;
}
body[data-stitch="candidate"] #manual-packages .sf-primary{
  min-width:0;background:var(--uizard-surface);border:1px solid var(--uizard-line);
  border-radius:16px;padding:18px;box-shadow:0 7px 24px #162b590a;
}
body[data-stitch="candidate"] #manual-packages .sf-context{
  min-width:0;background:var(--uizard-soft);border:1px solid var(--uizard-line);
  border-radius:16px;padding:16px;
}
body[data-stitch="candidate"] #manual-packages :is(table,[role="list"],.ux-fidelity-card){
  border:1px solid var(--uizard-line);border-radius:12px;overflow-wrap:anywhere;
  background:var(--uizard-surface);
}
body[data-stitch="candidate"] #manual-packages :is(th,td){
  padding:13px 12px;vertical-align:middle;
}
body[data-stitch="candidate"] #manual-packages :is(button,a.btn){
  min-height:38px;border-radius:9px;
}
body[data-stitch="candidate"] #manual-packages :is(button,a.btn):focus-visible{
  outline:3px solid #d4a83c;outline-offset:2px;
}
@media(max-width:900px){
  body[data-stitch="candidate"] #manual-packages .sf-page-body{
    grid-template-columns:minmax(0,1fr);
  }
  body[data-stitch="candidate"] #manual-packages .sf-primary,
  body[data-stitch="candidate"] #manual-packages .sf-context{padding:14px}
}
@media(max-width:540px){
  body[data-stitch="candidate"] #manual-packages .sf-page-body{gap:12px}
  body[data-stitch="candidate"] #manual-packages .sf-primary{padding:10px}
}

/* Structural Applications composition: genuine saved records, preparation controls
   and existing stage buttons in a Uizard-inspired master/detail/progress grid. */
body[data-stitch="candidate"] #manual-packages.uiz-app-composed .sf-page-body{
 display:block;
}
body[data-stitch="candidate"] #manual-packages.uiz-app-composed .sf-primary{
 padding:0;background:transparent;border:0;box-shadow:none;
}
body[data-stitch="candidate"] #manual-packages .uiz-app-grid{
 display:grid;grid-template-columns:minmax(185px,0.75fr) minmax(330px,1.9fr) minmax(205px,0.85fr);
 gap:16px;align-items:start;direction:inherit;
}
body[data-stitch="candidate"] #manual-packages .uiz-app-grid> :is(aside,section){
 min-width:0;background:#fff;border:1px solid #e1e8f4;border-radius:15px;
 padding:16px;box-shadow:0 6px 22px #1129580a;
}
body[data-stitch="candidate"] #manual-packages .uiz-app-grid h2{
 font-size:1.02rem;color:#162b55;margin:0 0 15px;line-height:1.4;
}
body[data-stitch="candidate"] #manual-packages .uiz-app-record{
 display:flex;flex-direction:column;align-items:stretch;gap:7px;width:100%;
 min-height:68px;text-align:start;background:#f8faff;border:1px solid #dfe7f3;
 border-radius:12px;padding:11px;margin-block:8px;color:#183260;
 cursor:pointer;white-space:normal;
}
body[data-stitch="candidate"] #manual-packages .uiz-app-record[data-selected="true"]{
 border-color:#3158b7;background:#edf3ff;box-shadow:inset 3px 0 #d5a53b;
}
body[data-stitch="candidate"] #manual-packages .uiz-app-record small{
 font-size:.8rem;color:#627697;
}
body[data-stitch="candidate"] #manual-packages .uiz-app-center> :is(form,article,.panel){
 background:#fff;border:1px solid #e4eaf5;border-radius:12px;
 padding:14px;margin-block:12px;
}
body[data-stitch="candidate"] #manual-packages .uiz-app-rail .completion-pipeline{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;
}
body[data-stitch="candidate"] #manual-packages .uiz-app-rail .completion-pipeline button{
 min-width:0;width:100%;padding:9px;white-space:normal;
}
body[data-stitch="candidate"] #manual-packages .uiz-app-rail .closure-steps{
 display:grid;grid-template-columns:1fr;gap:7px;
}
body[data-stitch="candidate"] #manual-packages .uiz-app-rail .closure-steps li{
 min-width:0;
}
@media(max-width:1170px){
 body[data-stitch="candidate"] #manual-packages .uiz-app-grid{
  grid-template-columns:minmax(170px,0.8fr) minmax(0,2fr);
 }
 body[data-stitch="candidate"] #manual-packages .uiz-app-rail{
  grid-column:1/-1;
 }
}
@media(max-width:710px){
 body[data-stitch="candidate"] #manual-packages .uiz-app-grid{
  grid-template-columns:minmax(0,1fr);
 }
 body[data-stitch="candidate"] #manual-packages .uiz-app-rail{
  grid-column:auto;
 }
}

/* Applications fidelity phase two: selected original record takes visual priority.
   The new-draft form stays mounted and functional inside a disclosure. */
body[data-stitch="candidate"] #manual-packages .uiz-app-selected{
 min-height:0;display:block;
}
body[data-stitch="candidate"] #manual-packages .uiz-app-selected>article{
 border:0;background:#fff;box-shadow:none;margin:0;padding:12px 0;
}
body[data-stitch="candidate"] #manual-packages .uiz-app-selected .closure-package-controls{
 display:block;margin-top:18px;border:1px solid #e0e7f3;
 border-radius:12px;padding:14px;background:#fafcff;
}
body[data-stitch="candidate"] #manual-packages .uiz-app-new{
 margin-block:20px 0;border:1px solid #dbe4f3;border-radius:12px;
 background:#f6f9fe;padding:13px;
}
body[data-stitch="candidate"] #manual-packages .uiz-app-new>summary{
 cursor:pointer;color:#2046a4;font-weight:700;padding:4px 0;
}
body[data-stitch="candidate"] #manual-packages .uiz-app-new>form{
 margin-top:16px;background:white;border:1px solid #e0e7f3;border-radius:12px;padding:14px;
}
body[data-stitch="candidate"] #manual-packages .uiz-app-record{
 transition:background-color .12s ease,border-color .12s ease;
}
body[data-stitch="candidate"] #manual-packages .uiz-app-record:hover{
 background:#eef3fe;
}

/* Real recorded-event timeline; never infer external employer actions. */
body[data-stitch="candidate"] #manual-packages .uiz-app-timeline{
 border:1px solid #dce6f5;border-radius:14px;background:#fbfcff;
 padding:16px;margin:16px 0 20px;
}
body[data-stitch="candidate"] #manual-packages .uiz-app-timeline h4{
 margin:0 0 15px;color:#142e60;font-size:1rem;
}
body[data-stitch="candidate"] #manual-packages .uiz-app-timeline ol{
 list-style:none;margin:0;padding:0;padding-inline-start:17px;border-inline-start:2px solid #d3deef;
}
body[data-stitch="candidate"] #manual-packages .uiz-app-timeline li{
 position:relative;display:flex;flex-direction:column;gap:4px;
 padding:0 0 20px;padding-inline-start:16px;color:#223960;
}
body[data-stitch="candidate"] #manual-packages .uiz-app-timeline li:last-child{padding-bottom:0}
body[data-stitch="candidate"] #manual-packages .uiz-app-timeline li::before{
 content:"";position:absolute;inset-inline-start:-24px;top:3px;
 width:11px;height:11px;border-radius:50%;background:#d9ac4e;border:2px solid #fff;
 box-shadow:0 0 0 1px #b8c9e8;
}
body[data-stitch="candidate"] #manual-packages .uiz-app-timeline time,
body[data-stitch="candidate"] #manual-packages .uiz-app-timeline small{
 font-size:.81rem;color:#697b96;
}
html[dir="rtl"] body[data-stitch="candidate"] #manual-packages .uiz-app-timeline ol{
 padding:0 17px 0 0;
}

/* Native hidden attribute must win over flex layout during stage filtering. */
body[data-stitch="candidate"] #manual-packages .uiz-app-record[hidden]{display:none!important}

body[data-stitch=candidate] #manual-packages .uiz-app-rail .closure-steps li{color:#253c5c;font-size:13px}


/* 2026-10-29: Color-coded navigation hierarchy. Authenticated surfaces only.
   Icons use existing SVG nodes; no new dependency, route, handler, or claim of availability. */
body[data-stitch] .sf-nav a[href] svg,
body[data-stitch] .sf-nav a[href] .sf-semantic-icon,
body[data-stitch] .sf-nav [data-admin-destination] svg{
  color:var(--jh-nav-icon,#8fc4f5);
  stroke:currentColor;
  flex-shrink:0;
}
body[data-stitch] .sf-nav a:is([href="#candidate-dashboard"],[href="#manual-dashboard"],[href="#welcome"]) {--jh-nav-icon:#edbb54}
body[data-stitch] .sf-nav a:is([href="#candidate-opportunities"],[href="#job-flow"],[href="#candidate-job-detail"]) {--jh-nav-icon:#64c5f1}
body[data-stitch] .sf-nav a:is([href="#manual-packages"],[href="#candidate-activity"]) {--jh-nav-icon:#9a91f3}
body[data-stitch] .sf-nav a:is([href="#manual-inbox"],[href="#pilot-feedback"]) {--jh-nav-icon:#53d1b3}
body[data-stitch] .sf-nav a:is([href="#cvstudio"],[href="#manual-docs"],[href="#workspace"]) {--jh-nav-icon:#eab77a}
body[data-stitch] .sf-nav a:is([href="#manual-settings"],[href="#manual-consent"]) {--jh-nav-icon:#eaa1c0}
body[data-stitch=admin] .sf-nav [data-admin-module="ADM-01"]{--jh-admin-icon:#efbe58}
body[data-stitch=admin] .sf-nav [data-admin-module="ADM-02"]{--jh-admin-icon:#7ec6fa}
body[data-stitch=admin] .sf-nav [data-admin-module="ADM-03"]{--jh-admin-icon:#62d2b2}
body[data-stitch=admin] .sf-nav [data-admin-module="ADM-04"]{--jh-admin-icon:#b5a4fd}
body[data-stitch=admin] .sf-nav [data-admin-module="ADM-05"]{--jh-admin-icon:#f3a5b5}
body[data-stitch=admin] .sf-nav [data-admin-module="ADM-06"]{--jh-admin-icon:#f1bc77}
body[data-stitch=admin] .sf-nav [data-admin-module="ADM-07"]{--jh-admin-icon:#a1d6f6}
body[data-stitch=admin] .sf-nav [data-admin-module="ADM-08"]{--jh-admin-icon:#9bd6aa}
body[data-stitch=admin] .sf-nav [data-admin-module] > summary{
  border-inline-start:3px solid var(--jh-admin-icon,#edbb54);
  padding-inline-start:12px;
}
body[data-stitch=admin] .sf-nav [data-admin-module] > summary::before{
  content:"";display:inline-block;width:9px;height:9px;flex:none;
  border-radius:3px;background:var(--jh-admin-icon,#edbb54);
  box-shadow:0 0 0 3px #ffffff10;
}
body[data-stitch=admin] .sf-nav [data-admin-module] [data-admin-destination] svg{
  color:var(--jh-admin-icon,#8fc4f5);
}
body[data-stitch] .sf-nav :is(a,summary):focus-visible{outline:3px solid #e9b95a;outline-offset:2px}
@media(max-width:900px){
  body[data-stitch=candidate] .sf-nav a[href] svg,
  body[data-stitch=candidate] .sf-nav a[href] .sf-semantic-icon{
    color:var(--jh-nav-icon,#2855a4);
  }
}


/* Uizard acceptance: visible icon colors on the actual semantic-icon spans, not
   only on child SVGs. Existing glyphs, click targets and callbacks are preserved. */
body[data-stitch=candidate] .sf-nav a[href] > .sf-semantic-icon{
  color:var(--jh-nav-icon,#86c6f1);
  background:color-mix(in srgb,var(--jh-nav-icon,#86c6f1) 17%,transparent);
}
body[data-stitch=candidate] .sf-nav a[href] > .sf-semantic-icon svg,
body[data-stitch=admin] .sf-nav [data-admin-module] [data-admin-destination] > .sf-semantic-icon svg{
  stroke:currentColor;
}
body[data-stitch=admin] .sf-nav [data-admin-module] [data-admin-destination] > .sf-semantic-icon{
  color:var(--jh-admin-icon,#94c9f5);
  background:color-mix(in srgb,var(--jh-admin-icon,#94c9f5) 18%,transparent);
}
body[data-stitch] .sf-nav a[aria-current="page"] > .sf-semantic-icon{
  background:color-mix(in srgb,var(--jh-nav-icon,#efbd55) 27%,transparent);
}
body[data-stitch=candidate] .sf-screen-head{scroll-margin-block-start:110px}
body[data-stitch] .sf-screen-head h1{overflow-wrap:break-word}
@supports not (color:color-mix(in srgb,red,blue)){
 body[data-stitch] .sf-nav .sf-semantic-icon{background:#ffffff17}
}


/* Single language entry point: legacy binary EN/AR toggle is superseded by
   the four-language selector. Keep the old event handler intact, but never
   present two competing language controls in the authenticated shell. */
body[data-stitch] #workspace-language{display:none!important}
body[data-stitch] .product-locale-control{display:flex;align-items:center;flex-wrap:wrap;gap:8px;max-width:100%}
body[data-stitch] .product-locale-control select{min-width:136px;width:auto;max-width:100%;margin:0;direction:ltr;text-align:start}
body[data-stitch] .product-locale-control small{flex-basis:100%;font-size:11px}
body[data-stitch] .product-locale-control option{direction:auto}
/* Inner task navigation uses the same non-monochrome functional signposting. */
body[data-stitch=candidate] .jh-functional-tabs button:nth-child(6n+1) svg{color:#e3ab3e}
body[data-stitch=candidate] .jh-functional-tabs button:nth-child(6n+2) svg{color:#2e9fd2}
body[data-stitch=candidate] .jh-functional-tabs button:nth-child(6n+3) svg{color:#9b7bea}
body[data-stitch=candidate] .jh-functional-tabs button:nth-child(6n+4) svg{color:#20a786}
body[data-stitch=candidate] .jh-functional-tabs button:nth-child(6n+5) svg{color:#db789a}
body[data-stitch=candidate] .jh-functional-tabs button:nth-child(6n) svg{color:#b98b48}
body[data-stitch=candidate] .jh-functional-tabs button[aria-selected=true] svg{color:#f4cf76}
body[data-stitch] .sf-screen-head .sf-semantic-icon{color:#1e83c4;background:#e7f2fd}
body[data-stitch] .sf-screen-head h1{display:inline-flex;align-items:center;flex-wrap:wrap;gap:8px;max-width:100%}

/* Same unified locale control in Admin: remove its superseded EN/AR toggle. */
body[data-stitch=admin] #language{display:none!important}


/* Empty-state layout is a first-class inner screen, not three vacant columns.
   No records or control nodes are removed: they stay mounted for later updates. */
@media(min-width:1171px){
 body[data-stitch=candidate] #manual-packages .uiz-app-grid:not(:has(.uiz-app-record)){
   grid-template-columns:minmax(0,1.75fr) minmax(260px,.75fr);
 }
 body[data-stitch=candidate] #manual-packages .uiz-app-grid:not(:has(.uiz-app-record))>.uiz-app-list{
   display:none;
 }
 body[data-stitch=candidate] #manual-packages .uiz-app-grid:not(:has(.uiz-app-record))>.uiz-app-center{
   grid-column:1;
 }
 body[data-stitch=candidate] #manual-packages .uiz-app-grid:not(:has(.uiz-app-record))>.uiz-app-rail{
   grid-column:2;grid-row:1;
 }
}
body[data-stitch=candidate] #manual-packages .uiz-app-empty{
 margin:0 0 14px;padding:18px;border:1px dashed #afc5e3;
 border-radius:12px;background:#f5f8ff;color:#375273;line-height:1.8;
}
body[data-stitch=candidate] #manual-packages .uiz-app-new{margin-block-start:12px}
body[data-stitch=candidate] #manual-packages .uiz-app-grid .uiz-app-list-title,
body[data-stitch=candidate] #manual-packages .uiz-app-grid .uiz-app-center-title,
body[data-stitch=candidate] #manual-packages .uiz-app-grid .uiz-app-rail-title{
 border-bottom:1px solid #e5edf9;padding-bottom:10px;
}
body[data-stitch=candidate] #manual-inbox .sf-mail-layout:empty{display:none}
body[data-stitch=candidate] #functional-workspace>.jh-functional-tabs{
 grid-template-columns:repeat(4,minmax(0,1fr));
}
@media(max-width:900px){
 body[data-stitch=candidate] #functional-workspace>.jh-functional-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:520px){
 body[data-stitch=candidate] #functional-workspace>.jh-functional-tabs{grid-template-columns:minmax(0,1fr)}
}


/* Inner screen polish: consistent colored section markers and calmer density.
   Scoped to authenticated content; preserves buttons, records and hidden state. */
body[data-stitch=candidate] :is(#manual-inbox,#manual-packages,#candidate-opportunities,#cvstudio,#workspace,#manual-outcomes,#manual-consent,#manual-settings) .sf-screen-head{
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  border-bottom:1px solid #dbe5f4;padding:7px 0 16px;margin-bottom:20px;
}
body[data-stitch=candidate] :is(#manual-inbox,#manual-packages,#candidate-opportunities,#cvstudio,#workspace,#manual-outcomes,#manual-consent,#manual-settings) .sf-screen-head h1{
  font-size:clamp(23px,2vw,30px);line-height:1.4;margin:0;
}
body[data-stitch=candidate] #manual-inbox .sf-primary>section,
body[data-stitch=candidate] #manual-outcomes .sf-primary>section,
body[data-stitch=candidate] #manual-consent .sf-primary>section,
body[data-stitch=candidate] #manual-settings .sf-primary>section{
  border-inline-start:3px solid #5c9cde;
  box-shadow:0 4px 16px #142a5809;
}
body[data-stitch=candidate] #manual-inbox .sf-primary>section:nth-of-type(3n+2),
body[data-stitch=candidate] #manual-outcomes .sf-primary>section:nth-of-type(3n+2){
  border-inline-start-color:#dcac53;
}
body[data-stitch=candidate] #manual-inbox .sf-primary>section:nth-of-type(3n),
body[data-stitch=candidate] #manual-outcomes .sf-primary>section:nth-of-type(3n){
  border-inline-start-color:#54bda4;
}
body[data-stitch=candidate] :is(#manual-inbox,#manual-packages,#manual-outcomes,#manual-consent) details>summary{
  border-radius:8px;
  transition:background-color .15s ease;
}
body[data-stitch=candidate] :is(#manual-inbox,#manual-packages,#manual-outcomes,#manual-consent) details>summary:hover{
  background:#edf3fd;
}
body[data-stitch=candidate] :is(#manual-inbox,#manual-packages,#manual-outcomes,#manual-consent) details>summary:focus-visible{
  outline:3px solid #e5b55d;outline-offset:2px;
}
@media(prefers-reduced-motion:reduce){
  body[data-stitch=candidate] :is(#manual-inbox,#manual-packages,#manual-outcomes,#manual-consent) details>summary{transition:none}
}


/* Arabic mid-width sticky header: leave enough anchor clearance for the wrapped
   topbar/locale picker when opening CV Studio and other interior destinations. */
@media(min-width:701px) and (max-width:1100px){
  html[dir="rtl"]{scroll-padding-top:170px}
  html[dir="rtl"] body[data-stitch=candidate] :is(section[id],article[id],details[id],[role="tabpanel"]){
    scroll-margin-block-start:170px;
  }
  html[dir="rtl"] body[data-stitch=candidate] .sf-screen-head{
    scroll-margin-block-start:170px;
  }
}
