/* Integration only. The four founder stylesheets remain authoritative. */
.portal-review-notice{padding:8px 24px;border-bottom:1px solid #e5e2dc;background:#f4f1e9;color:#645f55;font:12px/1.5 Inter,Arial,sans-serif;display:flex;justify-content:space-between;gap:12px}
.portal-signout{font:inherit;border:0;background:none;color:inherit;text-decoration:underline;white-space:nowrap;cursor:pointer}
.portal-live{width:100%;min-height:calc(100dvh - 170px);border:0;background:#faf9f7;display:block}
.core-main{min-width:0}.start-screen a{margin-top:16px}
@media(max-width:767px){.portal-review-notice{padding:8px 16px}.portal-live{min-height:calc(100dvh - 210px)}}
/* Contain positioned accessibility labels inside horizontally scrolling tables. */
.resource-table-wrap,.table-scroll,[role=tablist]{position:relative;max-width:100%}
.resource-table-wrap{overflow-x:auto}
@media(max-width:650px){
 .learning-page>*{min-width:0;max-width:100%}
 .learning-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 .learning-toolbar{flex-wrap:wrap;white-space:normal}
 .learning-toolbar input,.learning-toolbar select{flex:1 1 140px;min-width:0}
 .learning-heading>div{min-width:0}
 .learning-page [role=tablist]{overflow-x:auto;justify-content:flex-start}
}
/* Onboarding queue identity and signed agreement thumbnails. */
.ob-candidate-cell{display:flex;align-items:center;gap:11px}
.ob-candidate-avatar{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:50%;background:#eef1e7;border:1px solid #dce3cf;color:#536348;font-size:12px;font-weight:600;letter-spacing:.02em}
.ob-agreement-icon{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:100%;height:100%;color:#617451;background:linear-gradient(145deg,#f5f7ef,#e8eedf)}
.ob-agreement-icon>span{font:600 7px/1 Inter,Arial,sans-serif;letter-spacing:.08em}
.ob-doc-thumb:has(.ob-agreement-icon){width:34px;min-width:34px;height:42px;border-color:#dce3cf;border-radius:5px}
.ob-review-thumb:has(.ob-agreement-icon){border-color:#dce3cf;border-radius:5px}
.ob-review-thumb .ob-agreement-icon>svg{width:30px;height:30px}
/* Keep a long document list from stretching the staff preview. */
.ob-review-documents [data-slot="sheet-header"]{padding-top:18px;padding-bottom:14px}
.ob-review-documents .ob-case-links{padding:10px 0}
.ob-review-documents .core-tabs{margin-bottom:12px}
.ob-review-documents .ob-hr-document-stats{padding:6px 0;gap:16px}
.ob-review-documents .ob-requirement-settings{margin:10px 0;padding:10px 12px}
.ob-review-sheet .ob-doc-workspace{min-height:0}
.ob-review-sheet .ob-doc-stage{min-height:0;overflow:hidden}
.ob-review-sheet .ob-doc-stage-bar{padding:10px 12px;flex:none}
.ob-review-sheet .ob-doc-stage-foot{padding:8px 12px;flex:none;overflow-wrap:anywhere}
.ob-review-sheet .ob-doc-canvas{min-height:0;padding:12px;overflow:hidden}
.ob-review-sheet .ob-doc-canvas:has(.ob-pdf-preview){padding:0}
.ob-review-sheet .ob-doc-canvas iframe{height:100%;min-height:0}
.ob-review-sheet .ob-doc-canvas .ob-uploaded-doc{height:100%;max-height:100%;object-fit:contain}
.ob-review-sheet .ob-found{min-height:0;padding:14px}
.ob-review-sheet .ob-found-fields{min-height:0;max-height:none}
.ob-review-sheet .ob-found-field{margin-bottom:9px}
.ob-review-sheet .ob-doc-list,.ob-review-sheet .ob-found-fields{scrollbar-width:thin;scrollbar-color:#b7c0ac transparent;overscroll-behavior:contain}
@media(min-width:801px){
 .ob-review-sheet .ob-doc-workspace{height:clamp(400px,calc(100dvh - 365px),720px);grid-template-rows:minmax(0,1fr)}
 .ob-review-sheet .ob-doc-list{min-height:0;overflow-y:auto;scrollbar-gutter:stable;padding:10px 6px}
 .ob-review-sheet .ob-doc-list>.ob-overline{position:sticky;top:-10px;z-index:1;background:#fafbf8;margin:0;padding:8px 6px 12px}
 .ob-review-sheet .ob-doc-list>button{min-height:56px;margin-bottom:2px;padding:6px 5px;gap:7px}
 .ob-review-sheet .ob-doc-list small{margin-top:2px}
 .ob-review-sheet .ob-doc-thumb{display:grid}
 .ob-review-sheet .ob-found{overflow-y:auto}
}
@media(min-width:801px) and (max-width:1100px){
 .ob-review-sheet .ob-doc-workspace{grid-template-columns:180px minmax(190px,1fr) 235px}
}
@media(max-width:800px){
 .ob-review-sheet .ob-doc-list{padding:8px;scrollbar-gutter:auto}
 .ob-review-sheet .ob-doc-stage{height:clamp(360px,60dvh,560px)}
 .ob-review-sheet .ob-found-fields{max-height:420px}
}

/* Render PDF pages against the same light surface as the document column. */
.ob-pdf-preview{box-sizing:border-box;width:100%;height:100%;min-width:0;min-height:0;overflow:auto;padding:14px;background:#f0f1ed;scrollbar-width:thin;scrollbar-color:#b7c0ac transparent;overscroll-behavior:contain}
.ob-pdf-preview:focus-visible{outline:2px solid #a8b597;outline-offset:-2px}
.ob-pdf-pages{width:100%;display:flex;flex-direction:column;gap:14px}
.ob-pdf-pages canvas{display:block;width:100%;height:auto;flex:none;background:#fff;box-shadow:0 1px 5px #2d29261a}
.ob-pdf-original{display:block;margin-top:12px;color:#617451;font-size:11px;text-align:center;text-decoration:underline}
.ob-pdf-preview>p{font-size:12px;line-height:1.5;color:#686f5f}
.ob-document-modal .ob-pdf-preview{height:65vh;border-radius:5px}
/* Staff Run 1: retain the portal's spacing, type and color tokens. */
.enterprise-navigation .nav-module-toggle.has-active-page { color:#ffb629; font-weight:650; }
.module-chevron { transition:transform 120ms ease; }
.staff-unlinked { max-width:760px; margin-block:20px; }
.staff-unlinked h2 { margin-bottom:12px; font-size:20px; }
.staff-unlinked p { line-height:1.6; margin-block:8px; }
.staff-tracking-heading { margin:20px 0 12px; }
.staff-tracking-heading h3 { font-size:14px; font-weight:600; margin:0 0 5px; }
.staff-tracking-heading p { font-size:12px; margin:0; line-height:1.5; }
.staff-profile-setup ul { margin:0 0 4px; padding-left:18px; font-size:12px; line-height:1.5; color:#5f5a56; }
.staff-profile-setup.is-warning .staff-tracking-heading p { color:#8a4b00; }
.staff-status-card { border:1px solid #e1e4dc; border-radius:12px; padding:16px; background:#fff; transition:background 120ms ease,border-color 120ms ease; min-width:0; }
.staff-status-card.is-complete { border-color:#b8c6ab; background:#f5f8f1; }
.staff-task-control { display:flex; align-items:flex-start; gap:12px; cursor:pointer; }
.staff-task-control input { appearance:auto; width:20px; height:20px; flex:0 0 20px; margin:1px 0 0; accent-color:#617451; cursor:pointer; }
.staff-task-control input:focus-visible { outline:2px solid #617451; outline-offset:4px; }
.staff-task-control input:disabled { cursor:wait; }
.staff-task-control strong { display:block; font-size:13px; font-weight:600; line-height:1.5; }
.staff-task-state { display:block; font-size:12px; margin-top:3px; color:#73766d; }
.is-complete .staff-task-state { color:#526543; }
.staff-status-card .staff-task-attribution { font-size:11px; line-height:1.65; margin:12px 0 0 32px; color:#606655; overflow-wrap:anywhere; }
.staff-status-card .staff-task-attribution:empty { display:none; }
.staff-task-attribution strong { font-weight:600; }
.staff-task-confirm { border:1px solid #dce2d4; border-radius:10px; background:#f8f9f5; padding:14px 16px; margin:12px 0; }
.staff-task-confirm > strong { font-size:13px; }
.staff-task-confirm p { font-size:12px; margin:6px 0 12px; line-height:1.5; }
.staff-task-confirm-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:8px; }
.staff-task-feedback { font-size:12px; color:#526543; margin:8px 0; }
.staff-task-feedback:empty { display:none; }
@media (prefers-reduced-motion:reduce) { .staff-status-card { transition:none; } }
@media (prefers-reduced-motion:reduce) { .module-chevron { transition:none; } }

@media(max-width:650px){
 .ob-review-sheet { width:100vw!important; max-width:100vw!important; }
 .ob-review-sheet .ob-review-content { min-width:0; padding:16px; }
 .ob-review-sheet .ob-form-grid.two { grid-template-columns:minmax(0,1fr); }
 .ob-review-sheet .ob-case-links { overflow-wrap:anywhere; }
 .ob-review-sheet .ob-review-facts { overflow-wrap:anywhere; }
}

/* Staff onboarding detail cards: readable labels, values and certification. */
.ob-detail-card{margin:24px 0;border:1px solid #e1e6d6;border-radius:12px;background:#fff;overflow:hidden;min-width:0}
.ob-detail-card-heading{padding:19px 22px;background:#f9faf6;border-bottom:1px solid #e8ecdf}
.ob-detail-card-heading h3{margin:0;color:#35432d;font-size:14px;font-weight:600;line-height:1.5}
.ob-detail-card-heading p{margin:5px 0 0;color:#72786a;font-size:12px;line-height:1.6}
.ob-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px;margin:0;padding:4px 22px 10px}
.ob-detail-grid>div{min-width:0;padding:15px 0;border-bottom:1px solid #eef0e8}
.ob-detail-grid>div:nth-last-child(-n+2){border-bottom:0}
.ob-detail-grid dt{color:#747b6c;font-size:11px;line-height:1.5;font-weight:500;margin:0 0 5px}
.ob-detail-grid dd{margin:0;color:#30382b;font-size:13px;line-height:1.65;overflow-wrap:anywhere;white-space:pre-line}
.ob-detail-grid dd.is-identifier{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px}
.ob-detail-grid dd.is-empty{color:#858a7e}
.ob-detail-certification{margin:0 22px 22px;padding:14px 16px;border-left:3px solid #a8b597;border-radius:0 6px 6px 0;background:#f5f7f0}
.ob-detail-certification strong{display:block;color:#526543;font-size:11px;font-weight:600}
.ob-detail-certification p{margin:6px 0 0;color:#535c4c;font-size:12px;line-height:1.8;overflow-wrap:anywhere}
@media(max-width:650px){
 .ob-detail-card-heading{padding:16px}
 .ob-detail-grid{grid-template-columns:minmax(0,1fr);padding:0 16px 5px}
 .ob-detail-grid>div{padding:13px 0}
 .ob-detail-grid>div:nth-last-child(2){border-bottom:1px solid #eef0e8}
 .ob-detail-certification{margin:0 16px 16px;padding:12px}
}

.ob-open-record{display:inline-flex!important;align-items:center;gap:6px;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;min-width:62px;flex-shrink:0}.ob-open-record svg{flex-shrink:0}

/* Portrait proportions must not change the circular onboarding avatar. */
.ob-candidate-avatar{position:relative;flex:0 0 36px;min-width:36px;max-width:36px;min-height:36px;max-height:36px;aspect-ratio:1;box-sizing:border-box;overflow:hidden}
.ob-candidate-avatar img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
/* My Learnings keeps production's learner layout inside the new shell. The new
   shell's compact-page rules target the same class names (.learning-cards,
   .learning-course, .btn); restore learning.css values for Core's learner cards. */
.core-compact-page .learning-cards.learn-cards{padding:0;gap:20px}
.core-compact-page .learning-course.learn-card{padding:20px;gap:14px}
.core-compact-page .learn-card-actions .btn{min-height:40px;padding:9px 12px;font-size:13px}
@media(max-width:760px){.core-compact-page .learning-course.learn-card{padding:18px;gap:14px}}
@media(max-width:400px){.core-compact-page .learn-card-actions .btn{padding-inline:8px;font-size:12px}}
/* Row actions in the last table column ("Open Profile", "Review", …) never wrap
   mid-word; the table scrolls horizontally instead. */
.core-main td:last-child > .text-button,.core-main td:last-child > .btn{white-space:nowrap}
/* Screen-reader-only labels inside scrolled tables must stay inside the table's
   scroll box; otherwise they widen the whole page (Team Members at ≤1280px). */
.core-main table{position:relative}
/* Small screens: button labels stay on one line and never split mid-word;
   toolbars wrap whole buttons onto the next row instead. */
@media (width<=700px){
  .core-main .btn,.core-main .text-button{white-space:nowrap;overflow-wrap:normal;word-break:keep-all}
  .core-main :is(.core-page-actions,.core-page-heading-row,.core-page-tab-actions,.access-toolbar,.learning-toolbar){flex-wrap:wrap}
}

/* Staff demo account (routes.mjs DemoAccountStrip): the strip above the demo person's pages. */
.demo-account-strip{background:#fff6e0;color:#6b5320;border-bottom-color:#f0e2bd}
.demo-account-strip .prototype-pill{background:#f6dfa4;color:#6b4d0b}
.demo-account-strip .demo-account-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.demo-account-strip .demo-account-actions button{display:inline-flex!important;align-items:center;color:#6b4d0b;font-weight:600;padding:4px 10px;border:1px solid #e5cf96;border-radius:6px;background:#fffaf0;cursor:pointer}
.demo-account-strip .demo-account-actions button:hover:not(:disabled){background:#fdf0cf}
.demo-account-strip .demo-account-actions button:disabled{opacity:.55;cursor:default}
.demo-account-panel{flex-basis:100%;background:#fffdf7;border:1px solid #f0e2bd;border-radius:8px;padding:12px 14px;color:#4a4335;font-size:.8125rem;display:grid;gap:10px;max-width:640px;margin-left:auto}
.demo-account-panel p{margin:0}
.demo-account-panel label{display:grid;gap:6px;font-weight:500}
.demo-account-panel textarea{width:100%;border:1px solid #d9d4c7;border-radius:6px;padding:8px 10px;font:inherit;background:#fff;color:inherit;resize:vertical}
.demo-account-row{display:flex;gap:8px;flex-wrap:wrap}
.demo-account-strip .demo-account-row button{display:inline-flex!important}
.demo-account-message{flex-basis:100%;font-weight:500;color:#2f6b3a}
.demo-account-message.error{color:#a3271c}
.demo-account-chip{position:fixed;right:10px;bottom:10px;z-index:60;font:600 11px/1 Inter,Arial,sans-serif;letter-spacing:.04em;color:#6b4d0b;background:#fff6e0;border:1px solid #e5cf96;border-radius:999px;padding:5px 9px;opacity:.55;cursor:pointer}
.demo-account-chip:hover{opacity:1}
.core-switch-person.core-switch-demo{background:#fffaf0}
.demo-account-panel .btn.primary{margin-left:0}
