:root{color-scheme:light;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:#23453b;background:#f5f8f6}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}.psy-top{height:76px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e0eae5;background:white;padding:12px max(24px,calc((100% - 1190px)/2))}.psy-brand{display:flex;align-items:center;gap:12px}.psy-brand img{width:40px;height:40px;object-fit:contain}.psy-brand b,.psy-brand small{display:block}.psy-brand small{font-size:12px;color:#82988e;margin-top:3px}.back-link{color:#267956;font-size:14px;text-decoration:none;font-weight:650}.psy-container{max-width:1190px;padding:35px 22px;margin:auto}.psy-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}.psy-head h1,.psy-public-card h1{margin:7px 0 6px;font-size:30px;letter-spacing:-.7px}.psy-head p,.muted{color:#71857c;font-size:13px}.psy-eyebrow{font-weight:750;letter-spacing:1.4px;font-size:11px;color:#398161}.psy-button{background:#258457;color:white;border:1px solid #258457;padding:11px 15px;border-radius:9px;font-size:13px;font-weight:650}.psy-button.secondary{background:white;color:#32604d;border-color:#d1e4d9}.psy-button.small{padding:7px 11px;font-size:12px}.psy-panel{border:1px solid #e0eae4;background:white;border-radius:15px;overflow:hidden;margin:17px 0;box-shadow:0 3px 12px #183d2405}.psy-panel-head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid #e9f0eb}.psy-panel-head h2{margin:0;font-size:16px}.psy-overflow{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:13px;min-width:740px}th{background:#f6faf7;color:#667d70;font-size:12px;font-weight:650}td,th{padding:14px 18px;border-bottom:1px solid #edf2ee;vertical-align:middle}td small{display:block;color:#93a29a;margin-top:3px}.psy-chip{display:inline-block;padding:4px 7px;margin:2px;color:#286647;background:#ecf6ef;border-radius:5px;font-size:11px}.psy-status{background:#f0f3f0;padding:5px 8px;border-radius:7px;text-transform:capitalize}.psy-notice,.psy-message{border:1px solid #bfd9c8;background:#edf7ef;border-radius:11px;padding:15px 19px;font-size:13px;color:#28543c}.psy-notice p{margin:6px 0 0;line-height:1.6}.psy-message{margin:15px 0}.psy-message.error{background:#fff0f0;color:#a33333;border-color:#e7bbbb}.psy-dialog{border:1px solid #dfe8e2;border-radius:16px;padding:0;width:min(560px,calc(100% - 24px));max-height:92vh;box-shadow:0 18px 80px #162e2740}.psy-dialog::backdrop{background:#1734288a}.psy-dialog-head{display:flex;justify-content:space-between;align-items:center;padding:20px 23px;border-bottom:1px solid #e8efea}.psy-dialog-head h2{margin:0;font-size:17px}.icon-close{background:none;border:0;font-size:25px;color:#71857c}.psy-fields{padding:22px;display:grid;gap:16px;overflow:auto;max-height:65vh}.psy-fields label,.psy-public-card label{display:grid;gap:7px;font-size:13px;font-weight:650}.psy-fields input,.psy-fields select,.psy-public-card input,.psy-linkline input{width:100%;padding:11px;border:1px solid #ccdbd2;border-radius:9px;background:white;color:#244537}.psy-choices{margin-top:9px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.psy-check{display:flex!important;align-items:center;gap:9px;border:1px solid #dde9e1;padding:10px;border-radius:9px;font-weight:500!important}.psy-dialog-foot{padding:17px 22px;display:flex;justify-content:flex-end;gap:8px;border-top:1px solid #e8efea}.psy-qr{display:flex;justify-content:center;padding:18px}.psy-dialog>p{padding:0 22px}.psy-linkline{display:flex;gap:8px;padding:0 20px 20px}.psy-public-main{max-width:650px;margin:80px auto;padding:0 18px}.psy-public-card{background:#fff;border:1px solid #e2ebe4;border-radius:20px;padding:35px;box-shadow:0 12px 40px #183d2410}.psy-public-card h2{font-size:20px}.psy-public-card p{line-height:1.6;color:#5d7268}.psy-public-card form{display:grid;gap:18px;margin-top:26px}.psy-footer{text-align:center;color:#9aa8a0;font-size:12px;margin:24px}@media(max-width:700px){.psy-top{padding:12px 16px}.psy-head{align-items:flex-start;flex-direction:column}.psy-container{padding:25px 14px}.psy-choices{grid-template-columns:1fr}.psy-panel-head{gap:8px;flex-wrap:wrap}.psy-public-main{margin:28px auto}.psy-public-card{padding:25px}}

/* Workstation integration and a compact, accessible package dialog */
body.psy-embedded{background:transparent;font-size:13px}
.psy-embedded .psy-top{display:none}
.psy-embedded .psy-container{max-width:none;padding:2px 2px 20px;margin:0}
.psy-embedded .psy-head{margin-bottom:16px;gap:16px}
.psy-embedded .psy-head h1{font-size:21px;letter-spacing:-.4px;margin:4px 0 5px}
.psy-embedded .psy-head p{margin:0;line-height:1.5}
.psy-embedded .psy-panel{margin:14px 0;border-radius:12px;box-shadow:none}
.psy-embedded .psy-notice{padding:12px 15px;border-radius:10px}
.psy-embedded .psy-notice p{font-size:12px}
.psy-dialog{width:min(630px,calc(100% - 30px));max-height:min(790px,calc(100vh - 38px));overflow:hidden;margin:auto}
.psy-dialog form{display:flex;flex-direction:column;max-height:min(790px,calc(100vh - 38px));min-height:0}
.psy-dialog-head{padding:17px 22px;flex:none}
.psy-dialog-head h2{font-size:17px;font-weight:750}
.psy-fields{padding:18px 22px;gap:14px;max-height:none;min-height:0;overflow-y:auto;flex:1;align-content:start}
.psy-fields label{gap:7px;font-size:12.5px;color:#365849;font-weight:650}
.psy-fields input,.psy-fields select{min-height:43px;font-size:13px}
.psy-test-fieldset{border:0;padding:0;margin:0;min-width:0}
.psy-test-fieldset legend{padding:0;font-size:12.5px;font-weight:700;color:#365849}
.psy-field-hint{font-size:11px;color:#87998f;margin:4px 0 9px}
.psy-required{color:#ba4747}
.psy-choices{margin-top:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.psy-choices .psy-check{display:flex!important;flex-direction:row!important;justify-content:flex-start;align-items:center;gap:10px;min-height:46px;padding:10px 12px;border-radius:10px;cursor:pointer;text-align:left;line-height:1.35;color:#2d4e3c;font-weight:600!important}
.psy-choices .psy-check input[type=checkbox]{display:block;flex:0 0 17px;width:17px!important;min-height:17px;height:17px;margin:0;accent-color:#168d60}
.psy-choices .psy-check span{display:block;flex:1;text-align:left;white-space:normal}
.psy-choices .psy-check:has(input:checked){background:#eaf7ef;border-color:#86c9a4}
.psy-choices .psy-check:hover{border-color:#90c5a6;background:#f6fbf8}
.psy-dialog-foot{flex:none;background:white;padding:13px 22px;position:relative;z-index:1}
.psy-button:focus-visible,.psy-check:focus-within,.icon-close:focus-visible{outline:2px solid #288c65;outline-offset:2px}
@media(max-width:700px){.psy-embedded .psy-container{padding:0 2px 12px}.psy-dialog{width:calc(100% - 16px)}.psy-fields{padding:15px}.psy-dialog-head,.psy-dialog-foot{padding:14px 16px}.psy-choices{grid-template-columns:1fr}}

/* native-style Psikotest tabs, clean package dialog and dedicated results */
.psy-embedded .psy-container{padding:0;margin:0}
.psy-embedded .psy-head{padding:6px 4px 16px;margin:0;align-items:center}
.psy-embedded .psy-head h1{font-size:22px;color:#143f31}
.psy-embedded .psy-head p{font-size:12px;color:#768b80}
.psy-tab-pane[hidden]{display:none!important}
.psy-panel-description{font-size:12px;color:#81948a;margin:5px 0 0}
.psy-embedded .psy-panel{margin:14px 0 0}
.psy-empty-result{text-align:center;padding:65px 20px 70px;color:#778e82}
.psy-empty-result-icon{display:inline-flex;background:#edf6ef;color:#23895e;border-radius:14px;align-items:center;justify-content:center;width:50px;height:50px;font-size:29px}
.psy-empty-result h3{font-size:15px;color:#315645;margin:14px 0 7px}
.psy-empty-result p{font-size:12px;line-height:1.6;max-width:440px;margin:auto}
.psy-dialog{width:min(570px,calc(100vw - 32px));max-height:calc(100vh - 44px);border:1px solid #dce9e0;box-shadow:0 24px 70px #0b281c40}
.psy-dialog form{max-height:calc(100vh - 44px)}
.psy-dialog-head{padding:16px 22px;min-height:64px;background:#fff}
.psy-fields{display:flex;flex-direction:column;gap:16px;padding:20px 22px 23px;overflow-y:auto;overscroll-behavior:contain}
.psy-fields label{display:flex;flex-direction:column;gap:7px}
.psy-fields input,.psy-fields select{width:100%;flex:none;min-height:42px}
.psy-fields label>input[type=checkbox]{width:auto}
.psy-test-section{min-width:0}
.psy-test-label{font-size:12.5px;font-weight:700;color:#365849}
.psy-field-hint{margin:5px 0 11px}
.psy-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;width:100%}
.psy-choices .psy-check{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;min-width:0;min-height:46px;padding:11px 13px;border-radius:9px}
.psy-choices .psy-check input[type=checkbox]{appearance:auto;width:17px!important;height:17px!important;min-height:17px!important;flex:0 0 17px!important;margin:0!important}
.psy-choices .psy-check span{min-width:0;flex:1;text-align:left!important;white-space:normal}
.psy-dialog-foot{padding:13px 22px;min-height:66px}
.psy-embedded .psy-notice{margin-bottom:14px}
@media(max-width:640px){.psy-embedded .psy-head{flex-direction:column;align-items:stretch}.psy-choices{grid-template-columns:1fr}.psy-dialog{width:calc(100vw - 18px)}.psy-fields{padding:16px}}

/* reuse the Leave Log/report tab visual contract inside the authenticated Psikotest workspace. */
.psy-embedded .psy-container{background:#fff;padding:0 0 24px}
.psy-embedded .psy-head{background:#fff;padding:16px 20px 18px;border-bottom:1px solid #e5ebee;align-items:center}
.psy-embedded .psy-head h1{font-size:20px;margin:3px 0 5px}
.psy-embedded .psy-head .psy-eyebrow{display:none}
.psy-embedded .psy-head p{font-size:12px}
.psy-embedded .psy-tab-pane{padding:16px 20px 0}
.psy-embedded .psy-tab-pane[hidden]{display:none!important}
.psy-embedded .psy-panel{margin:0;border-radius:12px}
.psy-embedded .psy-notice{margin-bottom:16px}
.psy-embedded .psy-panel-head{padding:16px 19px}
@media(max-width:700px){.psy-embedded .psy-head{padding:14px}.psy-embedded .psy-tab-pane{padding:12px 13px}.psy-embedded .psy-head{align-items:flex-start}}
/* digital test forms; complements existing HRIS styling. */
.psy-test-list{display:grid;gap:10px;margin:22px 0}.psy-test-entry{display:flex;align-items:center;justify-content:space-between;gap:15px;border:1px solid #d9e7df;background:white;border-radius:11px;padding:14px 15px;text-align:left;color:#194936}.psy-test-entry:hover:not(:disabled){background:#f1faf4;border-color:#a3d6b8}.psy-test-entry:disabled{opacity:.6;cursor:not-allowed}.psy-test-entry strong,.psy-test-entry small{display:block}.psy-test-entry small{margin-top:4px;color:#7b8c83;font-size:11px}.psy-test-header{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:12px 0 18px}.psy-test-header h2{margin:0}.psy-test-header>div{display:flex;gap:12px;align-items:center;color:#567263;font-size:12px}.psy-timer{background:#e9f6ed;padding:8px;border-radius:8px}.psy-question{border:1px solid #e1eae3;border-radius:12px;padding:13px 15px;margin:0 0 12px;min-width:0}.psy-question legend{font-weight:750;color:#225d42;padding:0 4px}.psy-question>label{display:flex;align-items:flex-start;gap:10px;border-radius:8px;padding:9px 4px;font-weight:500;cursor:pointer}.psy-question input[type=radio]{width:17px;height:17px;min-height:17px;flex:0 0 17px;accent-color:#198658;margin:1px 0 0}.psy-disc-head,.psy-disc-option{display:grid;grid-template-columns:minmax(0,1fr) 43px 43px;gap:7px;align-items:center}.psy-disc-head{font-size:12px;font-weight:800;color:#537769;background:#f4f9f6;padding:9px;border-radius:8px}.psy-disc-option{padding:8px 9px;border-bottom:1px solid #f1f4f1}.psy-disc-option label{display:flex;justify-content:center}.psy-wpt-reference{border:1px solid #dbe8e0;border-radius:12px;margin:15px 0 22px;overflow:hidden}.psy-wpt-reference iframe{display:block;width:100%;height:500px;border:0}.psy-wpt-reference>a{display:block;padding:12px;color:#1b7454}.psy-wpt-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.psy-wpt-grid label{display:grid;gap:5px;font-size:12px}.psy-test-actions{position:sticky;bottom:0;background:white;border-top:1px solid #e1ebe5;padding:13px 0;margin-top:22px;display:flex;justify-content:flex-end;gap:10px}.psy-test-footnote{font-size:11px;color:#83948a}.psy-result-summary{padding:4px 0;font-size:12px;line-height:1.5}@media(max-width:600px){.psy-test-header{flex-direction:column;align-items:flex-start}.psy-wpt-grid{grid-template-columns:1fr}.psy-wpt-reference iframe{height:380px}}

/* archived-response audit dialog */
.psy-result-dialog{width:min(760px,calc(100vw - 26px))}
.psy-result-body{padding:18px 22px;overflow-y:auto;max-height:min(62vh,580px);background:#fff}
.psy-result-meta{display:grid;gap:5px;padding:12px 14px;background:#f5faf7;border:1px solid #e0ece4;border-radius:10px;margin-bottom:12px}
.psy-result-meta b{font-size:15px}.psy-result-meta span{font-size:12px;color:#668174}
.psy-result-test{border:1px solid #e0ece4;border-radius:10px;margin-bottom:10px;background:#fff;overflow:hidden}
.psy-result-test summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;padding:13px 15px;background:#f7faf8;color:#2e5543}
.psy-result-test summary span{font-size:11px;color:#73887d}
.psy-scoring-note{font-size:12px;color:#80591b;padding:10px 15px;background:#fff9ee}
.psy-result-answer-wrap{max-height:260px;overflow:auto}.psy-result-answer-wrap table{min-width:0;width:100%}.psy-result-answer-wrap th,.psy-result-answer-wrap td{padding:8px 12px;font-size:12px}.psy-result-answer-wrap th:first-child{width:80px}
.psy-result-test>p{padding:12px 15px;color:#758980;font-size:12px}
@media(max-width:700px){.psy-result-test summary{flex-direction:column;align-items:flex-start}.psy-result-body{padding:12px}}

/* assessment review, scoped exclusively to Psychotest */
.psy-review-form{display:grid;gap:10px;padding:14px 15px;border-top:1px solid #e3eee7;background:#fcfefc}
.psy-review-form label{display:grid;gap:6px;font-size:12px;color:#355949;font-weight:650}
.psy-review-form select,.psy-review-form textarea{width:100%;padding:9px 11px;border:1px solid #cfe0d5;border-radius:9px;color:#254b38;background:#fff;min-height:38px;font:inherit}
.psy-review-form textarea{resize:vertical;min-height:72px}
.psy-review-foot{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.psy-review-foot small{color:#6c8275;font-size:11px}

/* Wartegg original-stimulus digital drawing */
.psy-wartegg-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}.psy-wartegg-tile{min-width:0;border:1px solid #dce9e0;padding:12px;border-radius:13px;background:#fbfdfb}.psy-wartegg-label{font-weight:700;color:#28563f;font-size:12px;margin-bottom:9px}.psy-wartegg-canvas{width:100%;height:auto;display:block;background-color:#fff;background-position:center;background-repeat:no-repeat;background-size:100% 100%;border:1px solid #d5e5da;border-radius:5px;touch-action:none;cursor:crosshair}.psy-wartegg-tile button{margin-top:9px}.psy-wartegg-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}.psy-wartegg-meta label{font-size:12px;display:grid;gap:7px;color:#315e48}.psy-wartegg-meta input,.psy-wartegg-meta select{min-width:0;width:100%;height:42px}@media(max-width:680px){.psy-wartegg-grid,.psy-wartegg-meta{grid-template-columns:1fr}}

.psy-wartegg-result-preview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:13px;border-bottom:1px solid #e8f0eb}.psy-wartegg-preview-cell{min-width:0;display:grid;gap:6px;font-size:11px;color:#315c49}.psy-result-wartegg-canvas{width:100%;height:auto;border:1px solid #d5e5da;background:#fff}@media(max-width:680px){.psy-wartegg-result-preview{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* original Kraepelin sheet and structured response entry */
.psy-kraepelin-reference{margin:16px 0;padding:12px;border:1px solid #d9e8df;border-radius:12px;background:#f7faf8}
.psy-kraepelin-scroll{max-height:520px;overflow:auto;border-radius:9px;background:#fff;border:1px solid #e4ece7}
.psy-kraepelin-scroll img{display:block;width:max(1450px,100%);max-width:none;height:auto}
.psy-kraepelin-reference>a{display:inline-block;margin-top:10px;font-weight:700;font-size:12px;color:#167858}
.psy-kraepelin-entry-note{font-size:12px;color:#5f7769;margin:12px 0}
.psy-kraepelin-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px}
.psy-kraepelin-grid label{display:flex;flex-direction:column;gap:6px;padding:11px;border:1px solid #dce7df;border-radius:10px;background:#fff;font-weight:700;font-size:12px}
.psy-kraepelin-grid textarea{font:15px/1.5 ui-monospace,Consolas,monospace;letter-spacing:.1em;width:100%;min-height:65px;resize:vertical;border:1px solid #cedfd3;border-radius:8px;padding:9px;word-break:break-all}
.psy-kraepelin-grid small{color:#7e9186;font-size:10px}

/* factual Kraepelin activity summary; no inferred correctness or personality norms. */
.psy-kraepelin-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0}
.psy-kraepelin-stats>div{padding:11px 12px;border:1px solid #d9e7df;border-radius:10px;background:#f7fbf8;min-width:0}
.psy-kraepelin-stats b,.psy-kraepelin-stats small{display:block}
.psy-kraepelin-stats b{font-size:17px;color:#176448}
.psy-kraepelin-stats small{margin-top:4px;font-size:11px;color:#657d70}
.psy-kraepelin-bars{display:flex;align-items:flex-end;gap:3px;height:85px;margin:9px 0 18px;border-bottom:1px solid #bad9c8;padding:0 2px}
.psy-kraepelin-bars span{flex:1;min-width:2px;background:#399a70;border-radius:3px 3px 0 0}
@media(max-width:680px){.psy-kraepelin-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* time audit metadata */
.psy-result-objective-meta{font-size:12px;line-height:1.7;color:#5d756b;background:#f7faf8;border:1px solid #e0ebe3;border-radius:9px;padding:10px 12px;margin:12px 0}

/* source-linked objective result audit */
.psy-objective-card{padding:15px 17px;margin:12px 0;background:#f7fbf8;border:1px solid #d4e8dc;border-radius:12px;color:#254d3a}
.psy-objective-card>b{font-size:13px}.psy-objective-card>p{font-size:12px;line-height:1.6;margin:8px 0}.psy-objective-card table{min-width:360px}.psy-objective-card td,.psy-objective-card th{padding:8px 12px}

/* DISC reference-coordinate mini charts on review screen */
.psy-disc-chart-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}.psy-disc-chart{padding:10px;border:1px solid #dce9e0;background:#fbfdfb;border-radius:10px;min-width:0}.psy-disc-chart>b{display:block;font-size:12px;color:#244d39}.psy-disc-chart svg{width:100%;height:auto;display:block}.psy-disc-chart small{display:block;font-size:10px;color:#647c6d;line-height:1.5}@media(max-width:760px){.psy-disc-chart-grid{grid-template-columns:1fr}}

/* review per-item WPT in applicant result detail */
.psy-wpt-audit{margin-top:16px;padding:14px;border:1px solid #dce9e1;border-radius:12px;background:#f8fbf9}
.psy-wpt-audit h4{margin:0 0 6px;font-size:14px;color:#244c3b}
.psy-wpt-audit>p{font-size:12px;line-height:1.6;color:#526e60}
.psy-wpt-item-form{display:grid;grid-template-columns:1fr 130px 1.25fr;align-items:end;gap:10px;padding:12px 0;border-top:1px solid #e3eee6}
.psy-wpt-item-form>div:first-child b,.psy-wpt-item-form>div:first-child small{display:block}
.psy-wpt-item-form small{color:#698276;font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.psy-wpt-item-form label{display:grid;gap:5px;font-size:11px;font-weight:650}
.psy-wpt-item-form input,.psy-wpt-item-form select{height:36px;width:100%;min-width:0;border:1px solid #ccded3;border-radius:8px;padding:5px 9px;background:#fff}
.psy-wpt-review-meta{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:10px}
@media(max-width:780px){.psy-wpt-item-form{grid-template-columns:1fr}.psy-wpt-review-meta{grid-column:auto}}

/* compact role-based package editor and accessible link tools */
.psy-package-fields{gap:18px}.psy-test-order{display:grid;gap:8px;margin-top:10px}.psy-order-row{display:flex;align-items:center;gap:12px;padding:9px 12px;border:1px solid #d9e7dd;border-radius:10px;background:#fafdfa}.psy-order-row strong{font-size:13px;flex:1}.psy-order-no{display:grid;place-items:center;border-radius:8px;background:#e8f5eb;color:#206343;font-weight:750;width:29px;height:29px}.psy-order-arrows{display:flex;gap:5px}.psy-order-arrows button{border:1px solid #cee0d5;border-radius:7px;background:white;color:#226044;width:33px;height:33px;font-size:18px}.psy-order-arrows button:disabled{opacity:.3;cursor:default}.psy-offline-note{background:#f0f7f3;border-radius:9px;padding:12px;color:#30684e;font-size:12px;line-height:1.5}.psy-qr{padding:12px;max-width:100%;overflow:hidden}.psy-qr svg{display:block;width:min(320px,100%)!important;height:auto!important;max-width:100%;flex-shrink:1}.psy-linkline input{min-width:0;flex:1}.psy-linkline button{white-space:nowrap}.psy-context-menu{position:fixed;z-index:4000;width:185px;background:white;border:1px solid #dbe7de;border-radius:11px;box-shadow:0 12px 35px #12362423;padding:5px}.psy-context-menu[hidden]{display:none}.psy-context-menu button{display:block;width:100%;padding:11px;text-align:left;border:0;border-radius:7px;background:transparent;color:#315a45;font-size:13px;cursor:pointer}.psy-context-menu button:hover{background:#edf8f0}.psy-context-menu button.danger{color:#ae4141}.psy-dialog-foot{flex-wrap:wrap}.psy-button:disabled{opacity:.45;cursor:not-allowed}@media(max-width:600px){.psy-linkline{flex-direction:column}.psy-dialog-foot>*{flex:1}.psy-qr svg{width:min(280px,100%)!important}}

/* responsive share dialog. */
.psy-link-dialog{width:min(760px,calc(100% - 28px));max-height:min(92vh,850px);overflow-y:auto}
.psy-link-dialog-body{padding:20px 23px 22px}.psy-link-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.psy-link-heading strong{font-size:16px;color:#254939}.psy-link-status{font-size:11px;color:#17684a;background:#eaf6ee;padding:5px 10px;border-radius:8px;font-weight:700}.psy-link-status.inactive{color:#826036;background:#fbf1df}.psy-link-description{font-size:13px;line-height:1.6;color:#688175;margin:10px 0 18px}
.psy-share-layout{display:grid;grid-template-columns:minmax(0,310px) minmax(0,1fr);gap:22px;align-items:start}.psy-qr-panel{min-width:0;padding:13px;border:1px solid #e2ebe5;border-radius:12px;background:#fff;display:grid;justify-items:center;gap:7px}.psy-qr-panel .psy-qr{padding:0;width:100%;max-width:270px;aspect-ratio:1;display:grid;place-items:center;overflow:visible}.psy-qr-panel .psy-qr svg{width:100%!important;height:auto!important;max-height:270px;display:block}.psy-qr-panel small{font-size:11px;color:#71887c;text-align:center;line-height:1.5}.psy-share-info{display:flex;flex-direction:column;gap:12px;min-width:0}.psy-share-info label{font-size:12px;font-weight:650;color:#395c4a}.psy-share-info input{width:100%;min-width:0;border:1px solid #dfe6e9;border-radius:9px;color:#3c574c;background:#f8faf9;padding:12px;font:12px/1.5 ui-monospace,Consolas,monospace}.psy-share-info input:focus{outline:2px solid #bce0d0;outline-offset:1px}.psy-share-actions{display:flex;gap:8px;flex-wrap:wrap}.psy-share-actions .psy-button{flex:1}.psy-download-qr{align-self:stretch}.psy-share-warning{color:#956329;font-size:12px;line-height:1.5}.psy-link-dialog .psy-dialog-foot{justify-content:flex-end}
@media(max-width:700px){.psy-link-dialog-body{padding:14px 16px 18px}.psy-share-layout{grid-template-columns:1fr;gap:12px}.psy-qr-panel .psy-qr{max-width:220px}.psy-qr-panel .psy-qr svg{max-height:220px}.psy-link-dialog{max-height:90vh}.psy-link-dialog .psy-dialog-foot{padding:12px 16px}}

/* package table shares the main HRIS report table surface; no nested card. */
.psy-embedded .psy-packages-table{margin:0;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.psy-embedded .psy-packages-table table{min-width:690px;width:100%;background:#fff}
.psy-embedded .psy-packages-table th{background:#f6faf7}
.psy-embedded .psy-packages-table tr:last-child td{border-bottom:0}
/* Take dropdown appearance, hover and focus directly from assets/app.css legacy-select-shell. */





/* remove independent Psikotest modal appearance; inherited HRIS classes are canonical. */
body.psy-embedded dialog.modal-card{padding:0; margin:auto; border:1px solid var(--line);border-radius:16px; background:var(--panel);color:var(--text);box-shadow:var(--shadow-lg);width:min(610px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:visible}
body.psy-embedded dialog.modal-card.modal-wide{width:min(820px,calc(100vw - 32px))}
body.psy-embedded dialog.modal-card::backdrop{background:rgba(22,36,54,.32);backdrop-filter:blur(2px)}
body.psy-embedded .form-grid.psy-fields{display:grid;grid-template-columns:1fr;gap:0;padding:16px;max-height:calc(100dvh - 155px);overflow:auto;align-content:start}
body.psy-embedded .form-grid.psy-fields>label{margin:0 0 14px;font-size:12px;color:#44536a;font-weight:700}
body.psy-embedded .psy-link-dialog-body{overflow:auto;max-height:calc(100dvh - 155px)}
body.psy-embedded .psy-dialog form{max-height:calc(100dvh - 32px)}
body.psy-embedded:has(dialog[open]) .psy-container{visibility:hidden}
body.psy-embedded dialog[open]{visibility:visible}
body.psy-embedded dialog .global-select-picker{z-index:999999!important}
body.psy-embedded dialog .global-select-picker[hidden]{display:none!important}


/* WPT digitized questions: extend existing public question fields, not a separate UI library. */
.psy-wpt-question{margin-bottom:14px}.psy-wpt-prompt{white-space:normal;line-height:1.65;margin:10px 0 14px;overflow-wrap:anywhere}.psy-wpt-diagram{display:block;max-width:100%;max-height:310px;object-fit:contain;margin:12px auto}.psy-wpt-answer{display:block;margin-top:12px}.psy-wpt-answer input{width:100%;box-sizing:border-box}

/* Public applicant registration: same existing Psikotest controls, responsive layout. */
.psy-public-main{width:100%;max-width:780px;margin:0 auto;padding:clamp(22px,5vh,64px) 20px 16px;}
.psy-public-card{width:100%;max-width:720px;margin:auto;padding:clamp(24px,3.5vw,42px);border-radius:18px;box-shadow:none;}
.psy-public-card h1{font-size:clamp(26px,3vw,34px);line-height:1.2;margin:8px 0 18px;}
.psy-public-card h2{margin:0 0 8px;font-size:clamp(19px,2vw,23px);line-height:1.35;}
.psy-public-card .psy-registration-tests{margin:0;color:#60786a;font-size:14px;line-height:1.6;}
.psy-public-card .psy-registration-form{display:grid;gap:0;margin-top:26px;}
.psy-registration-form label{display:grid;gap:8px;margin-top:17px;color:#28513e;font-size:13px;font-weight:650;}
.psy-registration-form label:first-child{margin-top:0;}
.psy-public-card .psy-registration-form input{min-width:0;width:100%;min-height:48px;padding:12px 14px;font-size:15px;line-height:1.4;border:1px solid #ccdbd2;border-radius:10px;background:#fff;color:#23453b;}
.psy-registration-form input::placeholder{color:#84978d;opacity:1;font-weight:400;}
.psy-registration-form input:focus{border-color:#22855f;outline:2px solid #c8e7d5;outline-offset:1px;}
.psy-registration-form input[aria-invalid="true"]{border-color:#c55353;outline-color:#f7d6d6;}
.psy-registration-form .psy-field-error{display:block;margin-top:6px;color:#b13939;font-size:12px;line-height:1.4;}
.psy-registration-form .psy-field-error[hidden]{display:none;}
.psy-registration-form .psy-registration-start{width:100%;min-height:48px;margin-top:24px;border-radius:10px;font-size:15px;background:#16865b;border-color:#16865b;}
.psy-registration-form .psy-registration-start:hover:not(:disabled){background:#106f4b;border-color:#106f4b;}
.psy-registration-form .psy-registration-start:focus-visible{outline:2px solid #a4d8b8;outline-offset:3px;}
.psy-public .psy-footer{margin:20px auto 0;text-align:center;line-height:1.5;}
@media(max-width:700px){.psy-public-main{padding:18px 14px 18px;max-width:100%;}.psy-public-card{padding:24px 20px;border-radius:15px;}.psy-public-card h1{font-size:28px;margin-bottom:18px;}.psy-public-card .psy-registration-form{margin-top:18px;}.psy-registration-form label{margin-top:16px;}.psy-public-card .psy-registration-form input{font-size:16px;min-height:50px;}.psy-registration-form .psy-registration-start{min-height:50px;margin-top:20px;}.psy-footer{font-size:11px;}}
@media(max-width:370px){.psy-public-main{padding:12px 10px;}.psy-public-card{padding:20px 16px;}.psy-public-card h1{font-size:25px;}}

/* Registration identity: neutral employer title below Psikotest Online. */
.psy-public-card .psy-registration-brand{font-size:clamp(19px,3vw,23px);line-height:1.3;margin:20px 0 8px;font-weight:700;color:#1c5f46;letter-spacing:-.25px}
@media(max-width:700px){.psy-public-card .psy-registration-brand{margin:16px 0 6px;font-size:20px}}

/* consistent notifications and a single reliable scroll container for result details. */
.psy-toast{position:fixed;right:22px;top:78px;z-index:100050;max-width:min(420px,calc(100vw - 32px));display:flex;gap:16px;align-items:flex-start;justify-content:space-between;padding:12px 13px 12px 16px;border:1px solid #abd5be;border-left:4px solid #238959;border-radius:11px;background:#fff;color:#275742;box-shadow:0 12px 35px #183e302b;font-size:13px;line-height:1.5;overflow-wrap:anywhere;animation:psyToastIn .16s ease-out}
.psy-toast-error{border-color:#ecc9c9;border-left-color:#c14e4e;color:#963a3a}.psy-toast-close{border:0;background:transparent;color:inherit;font-size:23px;line-height:1;padding:0 2px;cursor:pointer;flex:none}
@keyframes psyToastIn{from{opacity:0;transform:translateY(-7px)}to{opacity:1;transform:translateY(0)}}
#resultDialog.psy-native-modal:not([hidden]){display:flex!important;align-items:center;justify-content:center;overflow:hidden;padding:16px}
#resultDialog>.modal-card{display:flex!important;flex-direction:column;min-height:0;min-width:0;width:min(1100px,100%);max-width:1100px;max-height:calc(100dvh - 32px);height:auto;overflow:hidden!important;margin:auto}
#resultDialog>.modal-card>.modal-head,#resultDialog>.modal-card>.modal-actions{flex:0 0 auto;min-height:0}
#resultDialog .psy-result-body{flex:1 1 auto;min-height:0;max-height:none!important;overflow-x:hidden;overflow-y:auto!important;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;padding:20px 24px;scrollbar-gutter:stable}
#resultDialog .psy-result-test,#resultDialog .psy-detail-test-inner{overflow:visible}
#resultDialog .table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
#resultDialog .psy-answer-audit .table-wrap{max-height:none;overflow-x:auto;overflow-y:visible}
.psy-disc-profile-full{margin:12px 0;border:1px solid #dce9e1;border-radius:10px;overflow:hidden;font-size:12px}
.psy-disc-profile-header,.psy-disc-profile-factor{display:grid;grid-template-columns:minmax(90px,1.6fr) repeat(3,minmax(45px,1fr));align-items:center;gap:8px;padding:9px 10px}
.psy-disc-profile-header{background:#edf7f0;color:#39624b;font-size:10px;text-align:center}.psy-disc-profile-header b:first-child{text-align:left}
.psy-disc-profile-factor{border-top:1px solid #edf2ee;text-align:center}.psy-disc-profile-factor:nth-child(odd){background:#fafcfb}.psy-disc-profile-factor>span{text-align:left;display:flex;gap:6px;align-items:center}.psy-disc-profile-factor>span strong{background:#e5f3e9;color:#226546;border-radius:5px;padding:4px 6px}.psy-disc-profile-factor small{color:#738a7b;font-size:10px}
.psy-question-missing{border-color:#d98282!important;background:#fffafa}
@media(max-width:600px){.psy-toast{right:12px;top:65px}.psy-disc-profile-factor>span{flex-direction:column;align-items:flex-start;gap:2px}#resultDialog.psy-native-modal:not([hidden]){padding:7px}#resultDialog>.modal-card{max-height:calc(100dvh - 14px)}#resultDialog .psy-result-body{padding:14px 12px}#resultDialog>.modal-card>.modal-actions{flex-wrap:wrap}}
/* Let the result dialog own vertical scrolling even when raw-answer details are expanded. */
#resultDialog .psy-result-answer-wrap{max-height:none!important;overflow:visible!important}
#resultDialog .psy-result-test summary{touch-action:pan-y;user-select:none}

/* HRD review is content, not an independently scrollable HRIS modal form.
   Avoid trapping wheel/touch gestures at the bottom of the review section. */
#resultDialog .psy-result-body .psy-review-form{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;overflow:visible!important;overscroll-behavior:auto!important;max-height:none!important;min-height:auto!important;align-content:initial;padding:14px 15px;}
#resultDialog .psy-result-body .psy-review-form>label{min-width:0;display:grid;gap:6px;margin:0;}
#resultDialog .psy-result-body .psy-review-form textarea{max-width:100%;resize:vertical;}
#resultDialog .psy-result-body .psy-review-foot{min-width:0;}
#resultDialog .psy-result-body{overflow-y:auto!important;overscroll-behavior-y:auto!important;}

/* one scroll owner in result dialog; HRD review must not trap wheel or touch. */
#resultDialog .psy-review-form,#resultDialog .psy-review-form *{overscroll-behavior: auto;}
#resultDialog .psy-review-form{height:auto!important;max-height:none!important;overflow:visible!important;touch-action:pan-y;}
#resultDialog .psy-result-body{min-height:0;overflow-y:auto!important;scroll-behavior:auto;touch-action:pan-y;}

/* balanced assessment palette. Match HRIS surfaces instead of coloring whole cards. */
#resultDialog .psy-detail-metric{
  position:relative;overflow:hidden;background:#fff;
  border:1px solid #dce9e1;border-top:1px solid #dce9e1;
  box-shadow:0 2px 8px rgba(25,72,49,.025);
}
#resultDialog .psy-detail-metric::before{
  content:"";position:absolute;left:12px;right:12px;top:0;height:2px;
  background:#c9ded2;border-radius:0 0 4px 4px;
}
#resultDialog .psy-metric-papi::before{background:#91bbab}
#resultDialog .psy-metric-disc::before{background:#a3a9c2}
#resultDialog .psy-metric-wpt::before{background:#c9b492}
#resultDialog .psy-hrd-profile-panel{
  background:#fff;border:1px solid #dce9e1;border-top:1px solid #dce9e1;
  box-shadow:0 2px 8px rgba(25,72,49,.02);
}
#resultDialog .psy-panel-papi,#resultDialog .psy-panel-disc,#resultDialog .psy-panel-wpt{
  background:#fff;border-top:1px solid #dce9e1;
}
#resultDialog .psy-panel-papi .psy-hrd-index{background:#eaf3ee;color:#386e55}
#resultDialog .psy-panel-disc .psy-hrd-index{background:#eef0f5;color:#5e6880}
#resultDialog .psy-panel-wpt .psy-hrd-index{background:#f5f1e9;color:#847254}
#resultDialog .psy-disc-profile-header{background:#f3f7f4;color:#466454}
#resultDialog .psy-disc-profile-factor,
#resultDialog .psy-disc-profile-factor.psy-factor-d,
#resultDialog .psy-disc-profile-factor.psy-factor-i,
#resultDialog .psy-disc-profile-factor.psy-factor-s,
#resultDialog .psy-disc-profile-factor.psy-factor-c{
  border-left:0;background:#fff;
}
#resultDialog .psy-disc-profile-factor:nth-child(odd){background:#fafcfb}
#resultDialog .psy-disc-profile-factor>span strong{
  min-width:23px;text-align:center;font-weight:750;border-radius:6px;
}
#resultDialog .psy-factor-d>span strong{background:#f6eae7;color:#97665f}
#resultDialog .psy-factor-i>span strong{background:#f7f0e4;color:#997e50}
#resultDialog .psy-factor-s>span strong{background:#eaf1f5;color:#5c8198}
#resultDialog .psy-factor-c>span strong{background:#efedf5;color:#776e94}
#resultDialog .psy-hrd-wpt-result strong{color:#465a50}
@media print{
  #resultDialog .psy-detail-metric,#resultDialog .psy-hrd-profile-panel,
  #resultDialog .psy-disc-profile-factor{background:#fff!important;box-shadow:none!important;border-color:#ddd!important}
  #resultDialog .psy-detail-metric::before{display:none!important}
}
