/* Workplify's own workspace. Shared by the real application and synthetic demo. */
body.sc-sage-theme{--wp-ink:#253128;--wp-muted:#667164;--wp-line:#d5dbce;--wp-card:#fafbf7;--wp-soft:#f0f3e9;--wp-sage:#e8ebe1;--wp-radius:24px}
body.sc-sage-theme :is(.wp-card,.workspace-overview-card,.workspace-shortcut,.hr-demo .surface){border-radius:var(--wp-radius);box-shadow:0 6px 24px #293a2510}
.wp-card{min-width:0;border:1px solid var(--wp-line);background:var(--wp-card);padding:26px;color:var(--wp-ink)}
.wp-card :is(h2,h3){margin:0 0 16px;line-height:1.3;overflow-wrap:anywhere}.wp-card h2{font-size:21px}.wp-card h3{font-size:17px}.wp-card p{line-height:1.65}.wp-card>p:last-child{margin-bottom:0}
.wp-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin:0 0 22px}.wp-grid>*{min-width:0}.wp-grid-three{grid-template-columns:repeat(3,minmax(0,1fr))}.wp-span-two{grid-column:span 2}.wp-stack{display:grid;gap:16px;min-width:0}.wp-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0}.wp-row>*{min-width:0}.wp-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:18px}.wp-muted{color:var(--wp-muted);font-size:13px}.wp-kicker{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--wp-muted);font-weight:600;margin:0 0 10px}
.wp-button{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:9px 18px;border:1px solid transparent;border-radius:7px;background:#222327;color:white;font-family:inherit;line-height:20px;font-size:14px;font-weight:500;cursor:pointer;max-width:100%;text-decoration:none;-webkit-text-stroke:.12px currentColor}.wp-button:hover{background:#343538}.wp-button:active{background:#151618}.wp-button.secondary{background:#fafbf7;border-color:var(--wp-line);color:var(--wp-ink)}.wp-button.secondary:hover{background:#edf1e7}.wp-button:disabled,.wp-button[aria-disabled=true]{opacity:.55;cursor:default}.wp-button:focus-visible,.wp-input:focus-visible{outline:2px solid #3f5945;outline-offset:3px}
.wp-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;min-width:0}.wp-field{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:13px;font-weight:500}.wp-form>p,.wp-form>.wp-actions,.wp-field.full,.wp-form>fieldset{grid-column:1/-1}.wp-input{width:100%;min-width:0;min-height:44px;max-width:100%;border:1px solid #cbd4c6;border-radius:10px;padding:11px 12px;background:#fafbf7;color:var(--wp-ink);font:inherit;font-size:14px;line-height:1.4}textarea.wp-input{min-height:100px;resize:vertical}select.wp-input{padding-right:28px}.wp-form fieldset{min-width:0;border:1px solid var(--wp-line);border-radius:14px;padding:16px}.wp-form legend{font-size:14px;padding:0 5px}.wp-form input[type=checkbox]{accent-color:#3f5945}.wp-empty{padding:28px 0;color:var(--wp-muted);line-height:1.7}.wp-pill{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border:1px solid #d3decc;border-radius:999px;background:#eaf1e3;color:#41573b;font-size:11px;line-height:1.5;white-space:normal}.wp-error{padding:16px;border:1px solid #dcb9ae;border-radius:14px;background:#fff4ee;color:#7b3527}
.wp-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:14px;margin-bottom:22px}.wp-metric{min-width:0;padding:21px;border-radius:20px;background:#f0f3e9;border:1px solid var(--wp-line);color:var(--wp-ink);text-align:left}.wp-metric strong{display:block;font-size:34px;font-weight:500;letter-spacing:-.04em;line-height:1.2;margin:7px 0}.wp-metric span{display:block;font-size:12px;color:var(--wp-muted)}
.wp-welcome{display:flex;align-items:center;justify-content:space-between;gap:24px;min-width:0;margin-bottom:28px}.wp-welcome h2{font-size:clamp(26px,3vw,38px);font-weight:500;letter-spacing:-.035em;line-height:1.2;margin:8px 0 10px}.wp-welcome p{margin:0;color:var(--wp-muted);font-size:13px;line-height:1.7}.wp-welcome .wp-avatar{width:66px;height:66px;flex-basis:66px;border-radius:23px}
.wp-home-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(260px,1fr);gap:22px;align-items:start}.wp-home-main,.wp-home-aside{display:grid;gap:22px;min-width:0}.wp-avatar{display:inline-grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:14px;background:#dfe8d6;color:#3c5138;font-size:14px;font-weight:600;overflow:hidden}.wp-avatar-photo{background-image:url('media/portraits.png');background-size:200% 200%;font-size:0}.wp-avatar-photo[data-portrait='0']{background-position:0 0}.wp-avatar-photo[data-portrait='1']{background-position:100% 0}.wp-avatar-photo[data-portrait='2']{background-position:0 100%}.wp-avatar-photo[data-portrait='3']{background-position:100% 100%}.wp-profile{background:linear-gradient(135deg,#edf2e5,#f8f7ef);position:relative;overflow:hidden}.wp-profile .wp-avatar{width:76px;height:76px;flex-basis:76px;border-radius:24px}.wp-profile-name{font-size:23px;font-weight:500;letter-spacing:-.025em;margin:0}.wp-profile-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:24px}.wp-profile-links button{border:0;background:transparent;min-height:54px;font:inherit;font-size:11px;line-height:1.4;color:var(--wp-ink);cursor:pointer;padding:8px 3px;border-radius:12px}.wp-profile-links button:hover{background:#e4eadc}.wp-profile-links svg{display:block;margin:0 auto 7px;width:21px;height:21px}
.wp-task{display:flex;align-items:center;gap:13px;padding:15px 0;border-bottom:1px solid #e3e8dc}.wp-task:last-child{border-bottom:0}.wp-task-copy{min-width:0;flex:1;overflow-wrap:anywhere}.wp-task-copy strong{display:block;font-size:14px;font-weight:500;line-height:1.5}.wp-task-copy p{font-size:12px;color:var(--wp-muted);margin:3px 0 0}.wp-task .wp-button{flex:none;padding:7px 12px;font-size:12px}.wp-list{display:grid;gap:12px}.wp-list-item{border:1px solid var(--wp-line);border-radius:18px;padding:18px;min-width:0}.wp-list-item h3{margin-bottom:7px}.wp-table-wrap{overflow:auto;max-width:100%}.wp-table{border-collapse:collapse;width:100%;font-size:13px;line-height:1.5}.wp-table :is(th,td){padding:13px 12px;border-bottom:1px solid #e1e6da;text-align:left;vertical-align:top}.wp-table th{font-weight:600;color:var(--wp-muted)}
.wp-quick-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.wp-quick-link{min-width:0;border:1px solid var(--wp-line);border-radius:18px;background:#f3f5ec;text-align:left;padding:19px;color:var(--wp-ink);cursor:pointer;font:inherit}.wp-quick-link:hover{background:#e9efdf}.wp-quick-link strong{font-size:14px;font-weight:500;display:block;margin:9px 0 5px}.wp-quick-link span{color:var(--wp-muted);font-size:12px;line-height:1.5;display:block}.wp-icon{display:block;width:20px;height:20px;stroke:currentColor;stroke-width:1.6;fill:none;stroke-linecap:round;stroke-linejoin:round}
.wp-story{border-radius:26px;min-height:220px;overflow:hidden;position:relative;background:#e8ebe1 url('media/workplace.png') center/cover no-repeat;display:flex;align-items:end;padding:25px}.wp-story:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#e8ebe1e8 0,#e8ebe180 48%,transparent 76%)}.wp-story>div{position:relative;max-width:58%}.wp-story h3{font-size:23px;line-height:1.25;margin:0 0 9px;font-weight:500;letter-spacing:-.025em}.wp-story p{font-size:12px;line-height:1.6;margin:0}.wp-image-note{font-size:10px;line-height:1.5;color:var(--wp-muted);margin:7px 0 0}
.wp-clock{font-variant-numeric:tabular-nums;font-size:40px;letter-spacing:-.04em;font-weight:500;line-height:1.3}.wp-chart{display:flex;align-items:end;gap:14px;height:170px;padding-top:16px}.wp-chart-column{flex:1;min-width:0;text-align:center;font-size:11px;color:var(--wp-muted)}.wp-chart-bar{height:var(--wp-height,0%);min-height:2px;border-radius:9px 9px 2px 2px;background:#8da582;width:100%;display:block}.wp-chart-column strong{display:block;color:var(--wp-ink);margin:5px 0}
body.sc-sage-theme .workspace-nav .settings-tab,body.sc-sage-theme.hr-demo #demo-module-nav>button{border-radius:14px;min-height:42px;font-size:13px;padding:10px 12px;gap:11px}body.sc-sage-theme .workspace-nav .settings-tab[aria-selected=true],body.sc-sage-theme.hr-demo #demo-module-nav>button[aria-current=page]{background:#dce6d3;border-color:transparent;color:#30432e;font-weight:600}body.sc-sage-theme .workspace-main,body.sc-sage-theme.hr-demo #workspace{background:radial-gradient(ellipse at top right,#f6f4e86b,transparent 58%);padding-top:30px}body.sc-sage-theme .workspace-view-heading{margin-bottom:24px}body.sc-sage-theme .workspace-view-heading h1{font-weight:500;letter-spacing:-.035em}body.sc-sage-theme .workspace-metric{border-radius:20px}body.sc-sage-theme .workspace-next-step{border-radius:15px}body.sc-sage-theme.hr-demo .avatar{border-radius:15px}body.sc-sage-theme .workspace-topbar{gap:14px}.wp-search{min-width:120px;max-width:360px;flex:1}.wp-search input{min-height:38px;border-radius:999px;background:#f0f3e9;font-size:12px}.wp-toolbar-avatar{width:34px;height:34px;flex-basis:34px;border-radius:12px}body.hr-demo .wp-enter{animation:wp-enter .34s ease both}@keyframes wp-enter{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1101px){body.sc-sage-theme.hr-demo .app-shell{grid-template-columns:250px minmax(0,1fr)}body.sc-sage-theme.hr-demo .sidebar{padding:28px 18px 18px}body.sc-sage-theme.hr-demo #demo-module-nav{gap:4px}}
@media(max-width:1100px){.wp-home-grid{grid-template-columns:minmax(0,1.2fr) minmax(225px,1fr)}.wp-card{padding:22px}.wp-grid-three{grid-template-columns:repeat(2,minmax(0,1fr))}.wp-quick-links{grid-template-columns:1fr}.wp-task{flex-wrap:wrap}.wp-task .wp-button{margin-left:55px}.wp-search{max-width:220px}}
@media(max-width:700px){.wp-home-grid,.wp-grid,.wp-grid-three{grid-template-columns:1fr}.wp-span-two{grid-column:auto}.wp-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.wp-metric{padding:16px}.wp-metric strong{font-size:28px}.wp-card{padding:20px;border-radius:20px}.wp-form{grid-template-columns:1fr}.wp-form>*{grid-column:1!important}.wp-welcome{gap:12px}.wp-welcome h2{font-size:28px}.wp-welcome .wp-avatar{width:50px;height:50px;flex-basis:50px;border-radius:18px}.wp-task{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:start;gap:10px 13px}.wp-task .wp-button{grid-column:2;justify-self:start;margin-left:0}.wp-row{flex-wrap:wrap}.wp-search{display:none}.wp-story{min-height:210px;padding:20px;background-position:62% center}.wp-story>div{max-width:68%}.wp-story h3{font-size:21px}.wp-story:before{background:linear-gradient(90deg,#e8ebe1f5,#e8ebe1ab 50%,#e8ebe133)}.wp-actions .wp-button{width:auto}.wp-form .wp-actions .wp-button{width:100%}}
@media(prefers-reduced-motion:reduce){.wp-enter{animation:none}.wp-card,.wp-button{transition:none!important}}

body.sc-sage-theme.hr-demo .wp-demo-login-visual{position:relative;isolation:isolate;overflow:hidden;border-radius:30px;min-height:260px;padding:28px;display:flex;align-items:end;background:#e8ebe1 url('/app/hr-ui/media/workplace.png') center/cover no-repeat;margin-top:28px}body.sc-sage-theme.hr-demo .wp-demo-login-visual:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#e8ebe1ed,#e8ebe1a3 50%,transparent)}body.sc-sage-theme.hr-demo .wp-demo-login-visual>div{max-width:55%}body.sc-sage-theme.hr-demo .wp-demo-login-visual h2{font-size:25px;letter-spacing:-.025em;line-height:1.2;margin:0 0 12px}body.sc-sage-theme.hr-demo .wp-demo-login-visual p{font-size:12px;line-height:1.6;margin:0}.wp-tour{display:flex;align-items:center;gap:16px;justify-content:space-between;padding:18px 22px;border:1px solid #ccd7c4;background:#f3f6ed;border-radius:22px;margin-bottom:24px}.wp-tour-copy{min-width:0;flex:1}.wp-tour-copy strong{display:block;font-size:14px}.wp-tour-copy p{font-size:12px;line-height:1.6;margin:5px 0 0;color:var(--wp-muted)}.wp-tour-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.wp-tour-progress{height:4px;border-radius:999px;background:#d7e1ce;margin-top:12px;overflow:hidden}.wp-tour-progress span{display:block;height:100%;background:#6e8c60;width:var(--wp-progress,0%);transition:width .3s}.wp-tour-target{outline:2px solid #92aa83;outline-offset:5px}@media(max-width:700px){.wp-tour{align-items:stretch;flex-direction:column;padding:18px}.wp-tour-controls{width:100%}.wp-tour-controls .wp-button{flex:1}body.sc-sage-theme.hr-demo .wp-demo-login-visual{padding:22px;min-height:230px;border-radius:24px}body.sc-sage-theme.hr-demo .wp-demo-login-visual>div{max-width:68%}}@media(prefers-reduced-motion:reduce){.wp-tour-progress span{transition:none}}

.wp-profile .wp-row{justify-content:flex-start}.wp-demo-tour{display:flex;gap:18px;align-items:center;justify-content:space-between;padding:18px 22px;background:#f3f6ed;border:1px solid #ccd7c4;border-radius:22px;margin-bottom:24px}.wp-demo-tour-copy{min-width:0;flex:1}.wp-demo-tour-copy p{font-size:12px;color:var(--wp-muted);margin:5px 0;line-height:1.6}.wp-demo-login-visual img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}.wp-demo-login-visual figcaption{position:relative;font-size:10px;color:#44503f;max-width:60%;line-height:1.5}@media(max-width:700px){.wp-demo-tour{align-items:stretch;flex-direction:column}.wp-demo-tour .wp-actions{margin-top:0}}

body.sc-sage-theme.hr-demo .avatar.wp-avatar-photo{background-image:url('media/portraits.png');background-size:200% 200%;font-size:0}body.sc-sage-theme .settings-panel>.workflow-card{border-radius:24px}body.sc-sage-theme.hr-demo :is(.settings-record,.parity-record-detail){border-radius:18px}

.wp-stack{align-content:start}#personal-photo-host{margin-top:24px}.wp-personal-avatar{width:96px;height:96px;display:grid;place-items:center;border-radius:24px;background:#dfe8d6;color:#3c5138;font-size:28px;overflow:hidden}.wp-personal-avatar img{display:block;width:96px;height:96px;border-radius:24px!important;object-fit:cover}.wp-time-shortcut .wp-card{margin:0}.wp-time-shortcut input[type=file],#personal-photo-host input[type=file]{max-width:100%;min-width:0;font-size:12px}

.wp-department-chart{display:block;width:100%;height:auto;max-width:780px;min-width:0;font-family:inherit}.wp-time-shortcut>.wp-stack:empty{display:none}

.wp-department-row{font-size:13px;min-width:0;max-width:780px}.wp-department-row .wp-row{gap:18px;align-items:baseline}.wp-department-row strong{font-size:14px;font-weight:500}.wp-department-bar{display:block;width:100%;height:10px;margin-top:8px}

/* Compact module workspace: one toolbar, readable entries and an explicit edit mode. */
.wp-module-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:0 0 2px}.wp-module-header h2{font-size:19px;font-weight:500;line-height:1.3;margin:0}.wp-module-header>.wp-button{flex:none;margin:0}
.wp-module-note{padding:0 0 0 12px;border-left:2px solid var(--wp-line);color:var(--wp-muted)}.wp-module-note p{font-size:12px;line-height:1.55;margin:0}.wp-module-note p+p{margin-top:4px}
.wp-module-filters{display:flex;align-items:end;flex-wrap:wrap;gap:10px 12px;min-width:0}.wp-module-filter-fields{display:grid;grid-template-columns:minmax(180px,1fr) minmax(170px,.65fr);gap:12px;flex:1 1 440px;min-width:0}.wp-module-filters .wp-field{margin:0;gap:5px;font-size:12px;font-weight:400}.wp-module-filters .wp-input{min-height:40px;height:40px;border-radius:7px;padding:9px 12px;font-size:13px}.wp-module-search-actions.wp-actions{margin:0;gap:8px}.wp-module-search-actions .wp-button{white-space:nowrap}.wp-module-count{font-size:12px;margin:0;color:var(--wp-muted)}
.wp-module-grid{display:grid;grid-template-columns:minmax(230px,.85fr) minmax(0,1.25fr);align-items:start;gap:20px;min-width:0}.wp-module-list{display:grid;align-content:start;gap:10px;min-width:0}.wp-module-entry.wp-button{display:grid;gap:10px;text-align:left;justify-content:stretch;align-items:start;padding:17px 18px;min-height:0;border-radius:16px;white-space:normal;box-shadow:none;-webkit-text-stroke:0;font-weight:400}.wp-module-entry.wp-button:hover{background:#edf1e7}.wp-module-entry[aria-pressed=true]{background:#edf2e6;border-color:#b9c8af;box-shadow:inset 3px 0 0 #8da582}.wp-entry-heading{display:flex;align-items:start;justify-content:space-between;gap:10px;min-width:0}.wp-entry-title{font-size:14px;line-height:1.45;font-weight:500;overflow-wrap:anywhere}.wp-entry-heading .wp-pill{flex:none;max-width:46%;font-weight:400;font-size:10px}.wp-entry-meta{font-size:12px;line-height:1.6;color:var(--wp-muted);overflow-wrap:anywhere}.wp-module-detail{padding:24px;gap:18px}.wp-module-detail>h3{font-size:19px;font-weight:500;line-height:1.35;margin:0}.wp-item-facts{display:grid;grid-template-columns:minmax(110px,.75fr) minmax(0,1fr);gap:10px 18px;margin:0;font-size:13px;line-height:1.55}.wp-item-facts dt{margin:0;font-size:12px;font-weight:400}.wp-item-facts dd{margin:0;overflow-wrap:anywhere}.wp-module-detail .wp-actions{margin-top:0}.wp-module-detail .wp-form{border-top:1px solid var(--wp-line);padding-top:18px;gap:16px}.wp-module-detail .wp-field{margin:0;font-weight:400}.wp-module-detail .wp-form>.wp-actions{margin:0;gap:10px}.wp-module-detail .wp-form>[role=alert]:empty{display:none}.wp-response-form>.wp-field,.wp-response-form>h4{grid-column:1/-1}.wp-response-form>h4{font-size:15px;font-weight:500;margin:0}.wp-module-pagination.wp-actions{margin-top:0;gap:10px}.wp-module-pagination .wp-field{margin:0;flex:0 0 92px;font-size:11px;font-weight:400}.wp-module-pagination .wp-input{min-height:40px;height:40px;padding:8px 10px}.wp-module-pagination .wp-button{align-self:end}.wp-module-detail .wp-empty{padding:12px 0}
/* Legacy action rows share the same spacing and intrinsic action widths. */
body.sc-sage-theme :is(.settings-actions,.workflow-actions,.button-row,.record-actions){display:flex;align-items:center;flex-wrap:wrap;gap:10px 12px;min-width:0}
body.sc-sage-theme :is(.settings-actions,.workflow-actions,.button-row,.record-actions)>.button{flex:0 1 auto;width:auto;max-width:100%;margin:0;white-space:normal}
body.sc-sage-theme .workspace-main .workflow-form>.button{justify-self:start;width:auto;max-width:100%;margin-top:8px}
body.sc-sage-theme .workspace-main .workflow-card>.workflow-form{max-width:none;margin:18px 0 0;padding:18px 0 0;border:0;border-top:1px solid var(--wp-line);border-radius:0;background:transparent;box-shadow:none}
body.sc-sage-theme .workspace-main .workflow-card>.workflow-form>label:first-child{margin-top:0}
@media(max-width:1100px){.wp-module-grid{grid-template-columns:minmax(210px,.8fr) minmax(0,1.2fr)}.wp-module-filter-fields{flex-basis:360px}.wp-module-entry.wp-button{padding:15px}.wp-module-detail{padding:21px}}
@media(max-width:760px){.wp-module-grid{grid-template-columns:minmax(0,1fr);gap:18px}.wp-module-filter-fields{grid-template-columns:minmax(0,1fr) minmax(140px,.7fr);flex-basis:100%}.wp-module-detail{padding:20px}.wp-module-detail .wp-form .wp-actions .wp-button{width:auto}.wp-module-header h2{font-size:18px}.wp-entry-heading .wp-pill{max-width:46%}}
@media(max-width:430px){.wp-module-filter-fields{grid-template-columns:minmax(0,1fr)}.wp-module-filters{gap:10px}.wp-module-search-actions.wp-actions{width:100%}.wp-module-entry.wp-button{padding:15px}.wp-module-detail{padding:18px}.wp-item-facts{grid-template-columns:minmax(90px,.7fr) minmax(0,1fr);gap:9px 12px}.wp-module-pagination.wp-actions{align-items:end}.wp-module-pagination .wp-field{flex-basis:80px}.wp-module-pagination .wp-button{padding-left:12px;padding-right:12px}}
body.sc-sage-theme.hr-demo .parity-lifecycle .workflow-card>.workflow-form{max-width:none;margin:18px 0 0;padding:18px 0 0;border:0;border-top:1px solid var(--wp-line);border-radius:0;background:transparent;box-shadow:none}
body.sc-sage-theme.hr-demo .parity-lifecycle .workflow-form>.button{justify-self:start;width:auto;max-width:100%;margin:8px 0 0}
/* QA-069: filter actions share secondary tokens; keep existing layout and muted disabled actions. */
body.sc-sage-theme :is(.record-search,.hiring-search,.audit-filters,.parity-search,.support-search-form,#workflow-query-form,#policy-profile-search,#time-filter-form) .button{justify-self:start;width:auto}
body.sc-sage-theme :is(.record-search,.hiring-search,.audit-filters,.parity-search,.support-search-form,#workflow-query-form,#policy-profile-search,#time-filter-form) .button:not(:disabled):not([aria-disabled=true]){background:var(--wp-action-secondary);border-color:transparent;color:var(--wp-action-secondary-text);background-image:none;box-shadow:none}
body.sc-sage-theme :is(.record-search,.hiring-search,.audit-filters,.parity-search,.support-search-form,#workflow-query-form,#policy-profile-search,#time-filter-form) .button:not(:disabled):not([aria-disabled=true]):is(:hover,:focus-visible){background:var(--wp-action-secondary-hover)}
body.sc-sage-theme :is(.record-search,.hiring-search,.audit-filters,.parity-search,.support-search-form,#workflow-query-form,#policy-profile-search,#time-filter-form) .button:not(:disabled):not([aria-disabled=true]):active{background:var(--wp-action-secondary-active)}
body.sc-sage-theme .wp-module-entry.wp-button{border-radius:16px;box-shadow:none}
body.sc-sage-theme .wp-module-entry.wp-button[aria-pressed=true]{box-shadow:inset 3px 0 0 #8da582}

.wp-module-grid.is-empty,.wp-module-grid.is-creating{grid-template-columns:minmax(0,1fr)}.wp-module-grid.is-creating .wp-module-detail{max-width:900px}.wp-module-grid.is-empty .wp-empty{padding:10px 0 14px}.wp-entry-progress{appearance:none;border:0;border-radius:99px;height:4px;width:100%;overflow:hidden;background:#dce5d3;accent-color:#8da582}.wp-entry-progress::-webkit-progress-bar{background:#dce5d3}.wp-entry-progress::-webkit-progress-value{background:#8da582}.wp-entry-progress::-moz-progress-bar{background:#8da582}
body.hr-demo .wp-module-entry{animation:wp-enter .34s ease both;transition:transform .16s ease,border-color .16s ease}body.hr-demo .wp-module-entry:nth-child(2){animation-delay:.04s}body.hr-demo .wp-module-entry:nth-child(3){animation-delay:.08s}body.hr-demo .wp-module-entry:nth-child(4){animation-delay:.12s}body.hr-demo .wp-module-entry:hover{transform:translateY(-2px)}body.hr-demo .wp-department-bar rect:last-child{transform-origin:left center;animation:wp-chart-in .6s ease both}@keyframes wp-chart-in{from{transform:scaleX(0)}to{transform:scaleX(1)}}@media(prefers-reduced-motion:reduce){body.hr-demo .wp-enter,body.hr-demo .wp-module-entry,body.hr-demo .wp-department-bar rect:last-child{animation:none;transition:none}body.hr-demo .wp-module-entry:hover{transform:none}}

@media(max-width:420px){.wp-analytics-metrics{grid-template-columns:minmax(0,1fr)}}

.wp-module-detail h4{font-size:14px;font-weight:500;line-height:1.45;margin:0}.wp-module-detail p{margin:0;line-height:1.65}.wp-module-detail ul{margin:0;padding-left:20px}

/* Survey results use server-approved aggregates; text and tables carry the same values as the bars. */
.wp-survey-analytics{margin-top:8px}.wp-survey-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.wp-survey-metric{padding:15px;border-radius:15px;background:var(--wp-soft);border:1px solid var(--wp-line);min-width:0}.wp-survey-metric strong{display:block;font-size:23px;font-weight:500;line-height:1.3}.wp-survey-metric span{display:block;font-size:12px;color:var(--wp-muted);margin-top:4px}.wp-survey-question{padding:22px 0;border-top:1px solid var(--wp-line)}.wp-survey-question:first-of-type{padding-top:10px}.wp-survey-question h5{font-size:16px;font-weight:500;line-height:1.5;margin:0;overflow-wrap:break-word}.wp-survey-question .wp-kicker{margin:0}.wp-survey-question .wp-stack{gap:7px}.wp-survey-question>p{margin:0}.wp-survey-score{font-size:23px;font-weight:500;line-height:1.3}.wp-survey-bars{display:grid;gap:15px}.wp-survey-bar-label{display:flex;justify-content:space-between;align-items:baseline;gap:14px;font-size:12px;line-height:1.5}.wp-survey-bar-label>span:first-child{min-width:0}.wp-survey-bar-label>span:last-child{white-space:nowrap;font-variant-numeric:tabular-nums}.wp-survey-bar-track{display:block;background:#e8ede1;border-radius:6px;height:11px;overflow:hidden;margin-top:6px}.wp-survey-bar-fill{display:block;height:100%;background:#8da582;border-radius:6px;transform-origin:left}.wp-survey-bar-fill[data-tone='1']{background:#a5b99a}.wp-survey-bar-fill[data-tone='2']{background:#748e6d}.wp-survey-table{max-width:100%;min-width:0;overflow-x:auto}.wp-survey-table summary,.wp-survey-individual summary{font-size:13px;line-height:1.6;cursor:pointer;color:var(--wp-ink);padding:8px 0}.wp-survey-table summary:focus-visible,.wp-survey-individual summary:focus-visible,.wp-survey-choice:has(input:focus-visible){outline:2px solid #3f5945;outline-offset:3px}.wp-survey-table table{table-layout:fixed}.wp-survey-table caption{text-align:left;padding:8px 0;color:var(--wp-muted);font-size:12px}.wp-survey-table :is(th,td){padding:9px 5px;overflow-wrap:break-word}.wp-survey-comments{margin:0;padding-left:20px;display:grid;gap:12px;font-size:13px;line-height:1.7}.wp-survey-comments li{padding-left:3px}.wp-survey-individual[open]>div{margin-top:12px}.wp-question-editor{padding:16px;background:var(--wp-soft);border-radius:14px}.wp-question-editor>.wp-button{justify-self:start}.wp-option-editor{display:flex;align-items:end;gap:8px}.wp-option-editor>.wp-field{flex:1}.wp-option-editor>.wp-button{flex:none;font-size:12px;padding:10px}.wp-survey-choice{display:flex;align-items:center;gap:10px;min-height:44px;padding:9px 12px;border:1px solid var(--wp-line);border-radius:10px;background:var(--wp-card);font-size:13px;line-height:1.5;cursor:pointer;min-width:0}.wp-survey-choice input{width:18px!important;height:18px!important;min-height:18px!important;flex:0 0 18px;accent-color:#3f5945;margin:0;padding:0}.wp-survey-choice:has(input:checked){background:#e5eddd;border-color:#8da582}.wp-survey-scale{display:grid;grid-template-columns:repeat(auto-fit,minmax(46px,1fr));gap:8px}.wp-survey-scale .wp-survey-choice{flex-direction:column;gap:6px;padding:9px 5px;justify-content:center}.wp-response-form>h4{grid-column:1/-1}
body.hr-demo .wp-survey-bar-fill{animation:wp-survey-reveal .45s ease-out both}@keyframes wp-survey-reveal{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media(max-width:700px){.wp-survey-question{padding-top:18px}.wp-survey-metrics{grid-template-columns:1fr}.wp-survey-metric{display:flex;align-items:center;justify-content:space-between;gap:12px}.wp-survey-metric span{margin:0}.wp-survey-metric strong{font-size:22px}.wp-option-editor{align-items:stretch;flex-direction:column}.wp-option-editor>.wp-button{align-self:start}.wp-survey-bar-label{gap:9px}.wp-survey-table th{font-size:11px}}
@media(prefers-reduced-motion:reduce){body.hr-demo .wp-survey-bar-fill{animation:none}}

/* Bounded result and person browsers keep large companies usable without rendering every record. */
.wp-bounded-search{display:flex;flex-wrap:wrap;align-items:end;gap:10px 12px;min-width:0}.wp-bounded-search>.wp-field{flex:1 1 180px}.wp-bounded-search>.wp-button{flex:none}.wp-bounded-pagination{margin-top:10px;gap:8px}.wp-bounded-pagination>.wp-field{width:80px;flex:none}.wp-bounded-pagination .wp-button{font-size:12px;padding:9px 12px}.wp-people-picker{grid-column:1/-1}.wp-people-options{max-height:400px;overflow-y:auto;overscroll-behavior:contain;padding:3px}.wp-picker-person{justify-content:flex-start;min-height:40px;gap:12px;padding:6px;margin:0!important;font-size:13px}.wp-picker-person input{width:18px!important;height:18px!important;min-height:18px!important;flex:0 0 18px;margin:0;padding:0}.wp-question-navigation{display:grid;gap:10px;min-width:0}.wp-question-navigation>.wp-actions{margin-top:0}.wp-question-content{min-width:0}.wp-answer-browser h6{font-size:14px;font-weight:500;margin:8px 0 0}.wp-answer-grid{display:grid;grid-template-columns:minmax(135px,.8fr) minmax(0,1.2fr);gap:16px;min-width:0}.wp-answer-list{max-height:360px;overflow-y:auto;overscroll-behavior:contain;padding:3px;gap:7px}.wp-answer-entry.wp-button{justify-content:flex-start;text-align:left;min-height:40px;font-size:12px;padding:8px 10px;white-space:normal;overflow-wrap:break-word}.wp-answer-entry[aria-pressed=true]{background:#e5eddd;border-color:#8da582}.wp-answer-detail{padding:15px;background:var(--wp-soft);border:1px solid var(--wp-line);border-radius:14px;min-width:0}.wp-answer-detail p{margin:0;white-space:pre-wrap;overflow-wrap:break-word}.wp-answer-detail:empty{display:none}.wp-answer-detail strong{font-size:13px;font-weight:500}.wp-answer-detail .wp-muted{font-size:12px}.wp-response-results>h5{font-size:16px;font-weight:500;line-height:1.5}
@media(max-width:700px){.wp-answer-grid{grid-template-columns:1fr}.wp-answer-list{max-height:260px}.wp-bounded-search{align-items:stretch}.wp-bounded-search>.wp-field{flex-basis:100%}.wp-bounded-search>.wp-button{align-self:start}.wp-bounded-pagination{align-items:end}.wp-bounded-pagination .wp-button{width:auto!important}.wp-people-picker>.wp-row{justify-content:flex-start}.wp-people-options{max-height:340px}}
/* Keep long question labels inside native WebKit select controls at narrow widths. */
.wp-question-navigation select.wp-input{width:1px;min-width:100%;text-overflow:ellipsis;overflow:hidden}

/* The selection filter remains a normal compact checkbox in actual auth forms. */
.wp-people-picker>.wp-row{display:flex;align-items:center;justify-content:flex-start;flex-wrap:nowrap;gap:12px;margin:0;font-size:13px;font-weight:400}.wp-people-picker>.wp-row input{display:inline-block;width:18px!important;height:18px!important;min-height:18px!important;flex:0 0 18px;margin:0;padding:0}.wp-picker-person{font-weight:400}

/* QA-062: shared action hierarchy for the actual application and product demo.
   Light sage distinguishes primary actions; warm neutral secondary actions stay
   distinct from selectable record cards, tabs, warnings and form boundaries. */
body.sc-sage-theme {
  --wp-action-primary:var(--sc-action-primary,#d6e1ca);
  --wp-action-primary-hover:var(--sc-action-primary-hover,#c5d5b6);
  --wp-action-primary-active:var(--sc-action-primary-active,#b8cba6);
  --wp-action-primary-text:var(--sc-action-primary-text,#2c3a25);
  --wp-action-secondary:var(--sc-action-secondary,#f5f2e9);
  --wp-action-secondary-hover:var(--sc-action-secondary-hover,#e9e4d8);
  --wp-action-secondary-active:var(--sc-action-secondary-active,#ded7c8);
  --wp-action-secondary-text:var(--sc-action-secondary-text,#374322);
  --wp-action-focus:var(--sc-action-focus,#3f5945);
}
html body.sc-sage-theme :is(.button,.wp-button):not(.button-secondary):not(.secondary):not(:disabled):not([aria-disabled=true]) {
  background:var(--wp-action-primary);
  color:var(--wp-action-primary-text);
  border-color:transparent;
  background-image:none;
  box-shadow:none;
}
html body.sc-sage-theme :is(.button,.wp-button):not(.button-secondary):not(.secondary):not(:disabled):not([aria-disabled=true]):is(:hover,:focus-visible){background:var(--wp-action-primary-hover)}
html body.sc-sage-theme :is(.button,.wp-button):not(.button-secondary):not(.secondary):not(:disabled):not([aria-disabled=true]):active{background:var(--wp-action-primary-active)}
html body.sc-sage-theme :is(.button-secondary,.button.secondary,.wp-button.secondary):not(.wp-module-entry):not(.wp-answer-entry):not(:disabled):not([aria-disabled=true]) {
  background:var(--wp-action-secondary)!important;
  color:var(--wp-action-secondary-text)!important;
  border-color:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
}
html body.sc-sage-theme :is(.button-secondary,.button.secondary,.wp-button.secondary):not(.wp-module-entry):not(.wp-answer-entry):not(:disabled):not([aria-disabled=true]):is(:hover,:focus-visible){background:var(--wp-action-secondary-hover)!important}
html body.sc-sage-theme :is(.button-secondary,.button.secondary,.wp-button.secondary):not(.wp-module-entry):not(.wp-answer-entry):not(:disabled):not([aria-disabled=true]):active{background:var(--wp-action-secondary-active)!important}
html body.sc-sage-theme:is(.hr-demo,:has(.auth-header)) :is(.button,.wp-button,.button-secondary,.button.secondary,.wp-button.secondary):is(:disabled,[aria-disabled=true]) {
  background:#dce3d2!important;
  color:#56624e!important;
  border-color:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  opacity:1;
  cursor:default;
}
html body.sc-sage-theme :is(.button,.wp-button):focus-visible{outline:2px solid var(--wp-action-focus);outline-offset:3px}

/* QA-063: a visible module failure is separated from recovery/content below. */
:is(#company-settings-panel,.wp-module-host) > .wp-stack[aria-live="polite"]:has(> [role="alert"]) + .wp-stack { margin-block-start:16px; }

/* QA-086: separate an available module download from the following content. */
:is(#company-settings-panel,.wp-module-host) > .wp-stack[aria-live="polite"]:has(> a.wp-button[download]) + .wp-stack { margin-block-start:16px; }

/* QA-065: separate the next section and pagination from preceding actions/cards. */
#company-settings-panel > .setup-checklist + .workflow-actions + h4 { margin-block-start:24px; }
#company-settings-panel .directory-users + .directory-pages { margin-block-start:16px; }

/* Direct form checkboxes keep their label next to the control in app and demo. */
.wp-form>label.wp-row:has(>input[type=checkbox]){grid-column:1/-1;display:flex;align-items:center;justify-content:flex-start;flex-wrap:nowrap;gap:12px;min-height:44px;margin:0;font-size:13px;font-weight:400;cursor:pointer}.wp-form>label.wp-row>input[type=checkbox]{width:18px;height:18px;min-height:18px;flex:0 0 18px;margin:0;padding:0}.wp-form>label.wp-row:has(>input[type=checkbox])>span{min-width:0}

/* A single metric uses the row rather than leaving an empty mobile column. */
.wp-metrics>.wp-metric:only-child{grid-column:1/-1}
