/* RC9 • Humanasha consultant-guided visual system: no backend/OTP/payroll changes. */
:root{--ha9-violet:#6743c6;--ha9-teal:#218d84;--ha9-ink:#242040;--ha9-border:#e7e1f1;--ha9-soft:#faf7ff}
body.ha9-ui{background:#f7f8fc;color:var(--ha9-ink)}
.ha9-ui .workspace{min-width:0}
.ha9-ui .content{max-width:1750px;padding:18px 22px 110px}
.ha9-ui .sidebar{background:linear-gradient(165deg,#272143 0%,#222540 56%,#183d46 100%);box-shadow:7px 0 22px rgba(18,19,55,.06)}
.ha9-ui .nav-item{border-radius:12px;gap:8px;min-height:41px}
.ha9-ui .nav-item .ha9-nav-icon{display:grid;place-items:center;min-width:26px;width:26px;font-size:19px;filter:drop-shadow(0 1px 1px rgba(0,0,0,.07))}
.ha9-ui .nav-item.active{background:linear-gradient(100deg,#fff,#ede8ff);color:#4a2787;box-shadow:0 5px 15px rgba(12,13,40,.13)}
.ha9-ui .nav-item.active b{color:#4a2787}
.ha9-ui .nav-item.active .ha9-nav-icon{color:#4822aa}
.ha9-ui .topbar{padding:14px 22px;background:rgba(255,255,255,.98);border-color:#eceaf2}
.ha9-ui .top-actions{flex-wrap:wrap;justify-content:flex-end}
.ha9-ui .topbar h1{font-size:21px}
.ha9-ui .btn.primary,.ha9-ui .hv-button.hv-primary{background:linear-gradient(110deg,#6534a3,#2a9387);border-color:#6544a3;color:white}
.ha9-icon{display:inline-flex;align-items:center;justify-content:center;flex:none}
.ha9-stepper{display:flex;gap:3px;align-items:center;min-width:0;width:100%;padding:8px;margin:0 0 15px;overflow-x:auto;scrollbar-color:#d6cbea transparent;scrollbar-width:thin;background:#fff;border:1px solid var(--ha9-border);border-radius:17px;box-shadow:0 5px 20px rgba(33,23,66,.035)}
.ha9-step{min-width:103px;max-width:144px;display:flex;gap:7px;align-items:center;text-align:left;border:0;background:transparent;border-radius:11px;padding:9px 7px;font-weight:750;font-size:11px;line-height:1.24;white-space:normal;color:#66627c;flex:0 0 auto}
.ha9-step:hover,.ha9-step:focus-visible{background:#f3efff;color:#4d289e}
.ha9-step.is-active{background:linear-gradient(110deg,#e9dcff,#fff);color:#4e3090}
.ha9-step-number{display:grid;place-items:center;width:28px;height:28px;min-width:28px;border-radius:50%;background:#eeeaf5;font-size:12px;font-weight:850;color:#605c76}
.ha9-step.is-active .ha9-step-number{background:#5a2aa7;color:white}
.ha9-arrow{color:#857ab4;font-size:20px;font-weight:400;flex:none}
.ha9-ui .hv-progress{display:none!important} /* RC9 stepper supersedes older duplicate guidance */
.ha9-coach{display:flex;align-items:center;gap:20px;position:relative;margin:0 0 16px;padding:18px 21px;border:1px solid #e7dff6;border-radius:19px;background:linear-gradient(110deg,#f2eaff 1%,#fbf8ff 55%,#e6f8f6 100%);overflow:hidden;box-shadow:0 9px 28px rgba(79,51,144,.06)}
.ha9-coach:after{content:"✧";font-size:55px;color:#b9a3e9;position:absolute;right:2%;top:-22px;opacity:.44;pointer-events:none}
.ha9-mascot{width:106px;height:106px;flex:none;display:grid;place-items:center;border-radius:27px;background:linear-gradient(140deg,#ebe0ff,#c9edeb);position:relative;box-shadow:inset 0 -10px 20px rgba(118,89,180,.1);transform:rotate(-3deg)}
.ha9-mascot-face{font-size:64px;line-height:1;filter:drop-shadow(0 6px 5px rgba(46,28,84,.13));animation:ha9-float 4s ease-in-out infinite}
.ha9-sparkle{position:absolute;right:5px;top:8px;color:#e9a431;font-size:24px;animation:ha9-pulse 3s ease-in-out infinite}
.ha9-eyebrow{display:block;font-size:10px;letter-spacing:.08em;font-weight:900;color:#6848b0;margin-bottom:6px}
.ha9-coach-words{min-width:0;flex:1;position:relative;z-index:1}
.ha9-coach h2{font-size:19px;margin:0 0 6px;color:#392368}
.ha9-coach p{font-size:12px;line-height:1.7;color:#605777;margin:0;max-width:86ch}
.ha9-coach-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:10px}
.ha9-btn{cursor:pointer;border-radius:10px;border:1px solid #d8cee8;background:#fff;color:#4d386f;padding:9px 12px;font-weight:800;font-size:11px;line-height:1.4;transition:transform .18s,box-shadow .18s}
.ha9-btn:hover{transform:translateY(-2px);box-shadow:0 6px 15px rgba(67,42,124,.12)}
.ha9-btn:focus-visible{outline:3px solid #7daede;outline-offset:2px}
.ha9-btn.ha9-primary{background:linear-gradient(115deg,#6433a6,#318b82);color:#fff;border-color:#6f52a3}
.ha9-btn.ha9-soft{background:#f9f6ff;color:#5e3c93}
.ha9-mini-guide{margin:0 0 14px;border:1px solid #e2d8ef;border-radius:12px;background:#fff;padding:10px 14px;color:#594778;font-size:12px;line-height:1.65}
.ha9-mini-guide>summary{cursor:pointer;font-weight:800}
.ha9-mini-guide p{margin:11px 0}
.ha9-ui .section-intro{border-radius:15px}
.ha9-heading-icon{width:34px;height:34px;border-radius:11px;background:#f2e9ff;font-size:20px;vertical-align:middle;margin-right:9px}
.ha9-ui .panel,.ha9-ui .jd-paper{border-radius:16px;border-color:#e9e3f0;box-shadow:0 8px 24px rgba(40,25,88,.045)}
.ha9-ui .ha9-panel{position:relative}
.ha9-ui .ha9-panel:hover{box-shadow:0 11px 28px rgba(40,25,88,.065)}
.ha9-ui .panel-head h3,.ha9-ui .section-intro h2{color:#302147}
.ha9-ui .panel-head h3:has(.ha9-heading-icon){display:flex;align-items:center}
.ha9-ui .field{position:relative}
.ha9-ui .field>label{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12px;font-weight:770;color:#332748}
.ha9-label-icon,.ha9-sub-icon{font-size:18px;width:28px;height:28px;border-radius:8px;background:linear-gradient(145deg,#f5edff,#e9f9f5);vertical-align:middle;margin-right:4px}
.ha9-ui .field input,.ha9-ui .field textarea,.ha9-ui .field select{transition:border-color .15s,box-shadow .2s}
.ha9-ui .field input:focus,.ha9-ui .field textarea:focus,.ha9-ui .field select:focus{outline:2px solid #b7a0ed;outline-offset:1px}
.ha9-help-chip{font-size:10px;border:0;padding:4px 9px;margin:3px 0 7px 35px;background:#e7f3fa;color:#23709c;font-weight:780}
.ha9-inline-help{border-radius:10px;border:1px solid #dfe9f5;background:#f4faff;padding:10px 12px;line-height:1.6;font-size:11px;color:#385c7a;margin-top:7px}
.ha9-inline-help p{margin:0 0 4px}.ha9-inline-help small{color:#44705f}
.ha9-form-title{display:flex;align-items:center;gap:9px;font-size:17px;font-weight:900;color:#332352;grid-column:1/-1;margin-bottom:0}
.ha9-form-title>.ha9-icon{width:44px;height:44px;border-radius:12px;background:linear-gradient(120deg,#e8daff,#e3f8f1);font-size:24px}
.ha9-form-desc{grid-column:1/-1;font-size:12px;margin:0 0 7px;color:#746787}
.ha9-profile-extra{grid-column:1/-1;padding:13px 16px;border:1px solid #e7e0ee;border-radius:13px;background:#f8f7fc}
.ha9-profile-extra>summary{font-weight:850;cursor:pointer;color:#5c3c81;line-height:1.6}
.ha9-extra-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}
.ha9-extra-grid>.field.full{grid-column:1/-1}
.ha9-ui .ha9-profile-layout.active{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(285px,.85fr);align-items:start;gap:15px}
.ha9-profile-layout>.section-intro,.ha9-profile-layout>.ha9-coach,.ha9-profile-layout>.ha9-module-map,.ha9-profile-layout>.ha9-mini-guide,.ha9-profile-layout>.hv-journey-card{grid-column:1/-1}
.ha9-profile-layout>#profileForm{grid-column:1;min-width:0;padding:20px;gap:12px}
.ha9-profile-layout>.ha9-sharing{grid-column:2;grid-row:auto;position:sticky;top:92px}
.ha9-profile-layout>.hja-report-panel,.ha9-profile-layout>.hja-readiness,.ha9-profile-layout>.hc-expanded{grid-column:1/-1}
.ha9-sharing{padding:18px;border:1px solid #e6def1;border-radius:17px;background:#fff;box-shadow:0 8px 22px rgba(46,29,85,.06)}
.ha9-sharing h3{margin:0 0 7px;font-size:16px;color:#322352}
.ha9-sharing>p{font-size:11px;line-height:1.7;color:#68627a}
.ha9-link-card{padding:14px;margin:12px 0;border-radius:14px;border:1px solid #e5dcef}
.ha9-link-card h4{margin:0 0 6px;font-size:13px}.ha9-link-card p{margin:0 0 9px;font-size:11px;line-height:1.65}
.ha9-link-card small{display:block;margin-top:9px;font-size:10px;line-height:1.6}
.ha9-operator{background:linear-gradient(115deg,#f1eafe,#f9f5ff)}
.ha9-trial{background:linear-gradient(115deg,#e5f8f1,#f2fffd);border-color:#cde9dd}
.ha9-module-map{border:1px solid #e7dff3;border-radius:15px;background:linear-gradient(113deg,#fcf9ff,#eef9f5);padding:15px 18px;margin:0 0 16px}
.ha9-module-map h3{font-size:15px;margin:0 0 5px;color:#3c2964}
.ha9-module-map p{font-size:11px;line-height:1.7;color:#605578;margin:0}
.ha9-chain{display:flex;flex-wrap:wrap;gap:5px;align-items:center;margin-top:11px}
.ha9-chain-item{background:#fff;padding:9px;border:1px solid #e4ddef;border-radius:11px}
.ha9-chain-arrow{color:#7456a6;font-size:20px}
.ha9-approval-note{display:block;font-size:10px;line-height:1.7;margin-top:10px;color:#8e5b25}
.ha9-issue-guide{background:white;border:1px solid #eeddec;border-radius:16px;padding:17px;margin:0 0 17px}
.ha9-issue-title{display:flex;gap:10px;align-items:center;color:#4c305b;font-size:17px;font-weight:850}
.ha9-issue-title .ha9-icon{font-size:27px}
.ha9-issue-intro{color:#70647d;line-height:1.7;font-size:12px}
.ha9-issue-card{background:#fff;border:1px solid #e9e0ed;border-radius:12px;margin:7px 0;overflow:hidden}
.ha9-issue-card[open]{box-shadow:0 6px 16px rgba(56,35,91,.075);border-color:#cdbedc}
.ha9-issue-card>summary{display:flex;gap:11px;align-items:center;padding:12px 14px;cursor:pointer;list-style:none;font-weight:800;color:#422f54;font-size:12px}
.ha9-issue-card>summary::-webkit-details-marker{display:none}
.ha9-issue-card .ha9-icon{font-size:22px}
.ha9-issue-number{width:25px;height:25px;display:grid;place-items:center;border-radius:50%;color:#a72d47;background:#ffeaf0;flex:none}
.ha9-issue-summary{flex:1}
.ha9-chevron{font-size:22px;color:#6d5293}
.ha9-issue-inner{padding:0 16px 15px 58px}
.ha9-issue-inner p{font-size:12px;line-height:1.65;color:#736681}
.ha9-reason{margin:9px 0 13px;border-left:3px solid #cebce7;padding:7px 12px;background:#faf8fe;border-radius:7px}
.ha9-reason summary{font-size:11px;font-weight:800;cursor:pointer}
.ha9-reason p{font-size:11px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}
.ha9-issue-enhanced #qualityGate,.ha9-issue-enhanced #dashboardIssues{position:absolute!important;left:-99999px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.ha9-ui .hja-holistic-group>summary,.ha9-ui .hja-deep-group>summary{display:flex;align-items:center;gap:7px}
.ha9-ui .hja-competency-three>div{border-top:3px solid #d5bfef}
.ha9-ui .hja-competency-three>div:nth-child(2){border-top-color:#69b9a6}
.ha9-ui .hja-competency-three>div:nth-child(3){border-top-color:#e4b36d}
.ha9-ui .hja-competency-three h4{display:flex;align-items:center;gap:8px}
.ha9-ui .hja-talent-field{position:relative}
.ha9-ui .hja-talent-field .ha9-label-icon{margin-left:7px}
@keyframes ha9-float{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-8px) rotate(3deg)}}
@keyframes ha9-pulse{0%,100%{opacity:.6;transform:scale(1)}50%{opacity:1;transform:scale(1.15)}}
@media(max-width:1150px){.ha9-ui .ha9-profile-layout.active{grid-template-columns:minmax(0,1fr)}.ha9-profile-layout>#profileForm,.ha9-profile-layout>.ha9-sharing{grid-column:1;position:static}}
@media(max-width:760px){.ha9-ui .content{padding:12px 10px 90px}.ha9-coach{gap:10px;padding:13px}.ha9-mascot{width:62px;height:68px;border-radius:17px}.ha9-mascot-face{font-size:39px}.ha9-coach h2{font-size:15px}.ha9-coach p{font-size:11px}.ha9-step{min-width:105px}.ha9-extra-grid{grid-template-columns:1fr}.ha9-ui .ha9-profile-layout.active{display:block}.ha9-profile-layout>#profileForm,.ha9-profile-layout>.ha9-sharing{margin-bottom:12px}.ha9-chain-item{font-size:10px}.ha9-issue-inner{padding-left:14px}}
@media(prefers-reduced-motion:reduce){.ha9-mascot-face,.ha9-sparkle{animation:none!important}.ha9-btn{transition:none}}
.ha9-issue-enhanced .panel:has(#qualityGate){display:none!important}
.ha9-ui .cm-table .ha9-sub-icon,.ha9-ui .rating-cell .ha9-sub-icon{width:21px;height:21px;margin-right:6px;font-size:14px;vertical-align:middle;background:linear-gradient(130deg,#eadeff,#e8f6ef)}.ha9-ui .record-card h4 .ha9-sub-icon,.ha9-ui .subsection h4 .ha9-sub-icon{width:27px;height:27px;margin-right:8px;font-size:17px}.ha9-ui .cm-table tbody tr:hover{background:#f7f3fd}.ha9-ui .rating-cell label{font-size:11px;display:flex;align-items:center}
/* RC9.1: the review tables have intrinsic min-content widths. Contain them on narrow screens without hiding data; tables scroll INSIDE their cards. */
@media(max-width:760px){
 .ha9-ui .view[data-view-panel="validation"]{min-width:0;max-width:100%}
 .ha9-ui .view[data-view-panel="validation"] .two-col{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
 .ha9-ui .view[data-view-panel="validation"] .two-col>.panel,
 .ha9-ui .view[data-view-panel="validation"] .panel,
 .ha9-ui .view[data-view-panel="validation"] .table-wrap{min-width:0;max-width:100%}
 .ha9-ui .view[data-view-panel="validation"] .table-wrap{overflow-x:auto;overscroll-behavior-x:contain}
 .ha9-ui .view[data-view-panel="validation"] .formula-grid{grid-template-columns:minmax(0,1fr)}
 .ha9-ui .view[data-view-panel="validation"] .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ha9-ui .view[data-view-panel="validation"] .metric{min-width:0;overflow-wrap:anywhere}
}
/* RC9 visual review: one consultant guide by default; earlier long guide remains available by opt-in button. */
.ha9-ui .view[data-view-panel] > .hv-journey-card{display:none!important}
.ha9-ui .view[data-view-panel].ha9-help-open > .hv-journey-card{display:block!important;max-width:100%;overflow-wrap:anywhere;margin-bottom:14px}
.ha9-ui .view[data-view-panel] > .ha9-coach{margin-top:0}
/* Visual evidence fix: keep form in first screen and side-by-side with share cards, not after giant implicit grid rows. */
.ha9-ui .view[data-view-panel="profile"].ha9-profile-layout.active{display:block!important;min-width:0}
.ha9-ui .view[data-view-panel="profile"]>.section-intro{display:none!important}
.ha9-ui .view[data-view-panel="profile"]>.ha9-mini-guide{display:none!important}
.ha9-ui .view[data-view-panel="profile"]>.ha9-coach{min-height:0;height:auto;padding:13px 18px;margin:10px 0 14px}
.ha9-ui .view[data-view-panel="profile"]>.ha9-coach .ha9-mascot{width:65px;height:65px}
.ha9-ui .view[data-view-panel="profile"]>.ha9-coach .ha9-mascot-face{font-size:39px}
.ha9-profile-main{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(285px,.84fr);align-items:start;gap:16px;width:100%;min-width:0}
.ha9-profile-main>#profileForm{grid-column:1;min-width:0;margin:0}
.ha9-profile-main>.ha9-sharing{grid-column:2;min-width:0;position:sticky;top:94px;margin:0}
.ha9-profile-main .ha9-module-map{margin:15px 0 0}
@media(max-width:1150px){.ha9-profile-main{grid-template-columns:minmax(0,1fr)}.ha9-profile-main>#profileForm,.ha9-profile-main>.ha9-sharing{grid-column:1;position:static}}
/* Keep operator/share card beside first fields; defer optional 47-question depth editor below them. */
@media(min-width:1151px){
 .ha9-profile-main>#profileForm{grid-column:1;grid-row:1}
 .ha9-profile-main>.ha9-sharing{grid-column:2;grid-row:1}
 .ha9-profile-main>.hja-deep-panel{grid-column:1/-1;grid-row:2;min-width:0}
}
@media(max-width:1150px){
 .ha9-profile-main>#profileForm{grid-row:1;grid-column:1}
 .ha9-profile-main>.ha9-sharing{grid-row:2;grid-column:1}
 .ha9-profile-main>.hja-deep-panel{grid-row:3;grid-column:1;min-width:0}
}
