/* Functional extensions rendered in the approved CorelyHr design system. */body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;line-height:1.5}h1,h2,h3,.brand{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;letter-spacing:-.6px}h1{font-size:32px;line-height:1.25;font-weight:800}h2{font-size:19px;letter-spacing:-.45px}h3{font-size:16px}.icon{width:21px;height:21px;flex-shrink:0;vertical-align:middle}.sidebar{padding:32px 20px;z-index:20}.brand{padding:0 10px}.workspace{margin:39px 0 25px;padding:14px 12px;border:1px solid var(--line);border-radius:12px;display:flex;align-items:center;gap:10px}.workspace-mark{width:35px;height:35px;border-radius:9px;background:#e6edef;display:grid;place-items:center;font-weight:800;font-size:13px}.workspace strong,.side-user strong{display:block;font-size:14px}.workspace small{color:var(--muted)}.nav-label{padding:0 14px;margin:0 0 12px;font-size:11px;letter-spacing:1.6px;font-weight:700;color:#82928f}.nav{display:block}.nav .nav-item{display:flex;align-items:center;gap:13px;width:100%;border-radius:10px;padding:14px;color:#64767c;background:transparent;text-align:left;margin-bottom:6px;font-size:15px;font-weight:600}.nav .nav-item.active{background:var(--nav-active-bg);color:var(--teal);box-shadow:inset 3px 0 0 var(--teal)}.nav .nav-item:hover:not(.active){background:var(--nav-hover-bg)}.sidebar-foot{margin-top:auto;padding-top:30px}.preview-note{padding:17px;background:#f7f8f5;border:1px solid var(--line);border-radius:12px;font-size:13px;color:var(--muted)}.preview-note strong{display:block;color:var(--navy);margin-bottom:5px}.side-user{display:flex;align-items:center;gap:10px;margin-top:24px;padding:0 8px}.side-user .side-avatar{margin:0;width:38px;height:38px;font-size:12px}.topbar{min-height:85px;background:#fff;border-bottom:1px solid var(--line);padding:16px 40px;display:flex;align-items:center;justify-content:space-between;gap:15px}.breadcrumb{font-size:14px;color:var(--muted)}.breadcrumb span{padding:0 10px;color:#bbc5c0}.breadcrumb strong{color:var(--navy)}.top-actions{display:flex;align-items:center;gap:12px}.top-actions .side-avatar{margin:0;width:34px;height:34px;font-size:11px}.badge{display:inline-flex;align-items:center;gap:6px;border-radius:7px;padding:4px 9px;font-size:12px;font-weight:600;white-space:nowrap;background:var(--mint);color:#147552}.badge.gray{background:#eef1f3;color:#63727b}.mobile-brand{display:none}.button{font-size:14px;font-weight:600}.content{max-width:1440px;padding:34px 40px 50px}.page-head p{font-size:15px}.welcome{padding:27px 30px;margin-bottom:24px;position:relative;overflow:hidden}.welcome h2{font-size:23px;letter-spacing:-.6px}.welcome-right{display:flex;align-items:center;gap:25px}.welcome-symbol{background:#264651;border:1px solid #41636b;width:63px;height:63px;border-radius:18px;display:grid;place-items:center;transform:rotate(-8deg)}.welcome-symbol .icon{width:29px;height:29px;color:#cae9b3}.stats{gap:16px;margin:0 0 25px}.stat{padding:20px}.stat-label{font-size:13px;color:var(--muted);display:flex;align-items:center;justify-content:space-between;gap:5px}.stat-label .icon{width:18px;height:18px;color:#789087}.stat-value{font-size:30px;line-height:1.4;margin-top:8px;letter-spacing:-1px}.stat-note{font-size:12px;color:#83918f;margin-top:2px}.columns{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(270px,1fr);gap:24px}.card{overflow:hidden}.card-head{padding:22px 24px 18px;border-bottom:0}.card-head p{font-size:13px;color:var(--muted);margin-top:3px}.card-body{padding:23px 24px}.count{display:inline-grid;place-items:center;background:#edf3ef;color:#40765c;border-radius:6px;min-width:23px;height:23px;font-size:12px;margin-left:6px}.request{padding:19px 24px;display:flex;align-items:center;gap:13px;border-top:1px solid #eef1ed}.request-info{flex:1;min-width:0}.request-info strong{display:block;font-size:14px}.request-info p{font-size:13px;color:var(--muted);margin-top:2px}.mini-avatar{margin:0;width:42px;height:42px;font-size:11px}.upcoming{padding:0 24px 22px}.event{display:flex;gap:15px;padding:16px 0;border-top:1px solid var(--line);align-items:center}.date-tile{border:1px solid var(--line);border-radius:10px;padding:7px;width:47px;flex-shrink:0;text-align:center}.date-tile small{font-size:10px;letter-spacing:.7px;color:#7b8b86;display:block}.date-tile strong{font-size:19px;display:block;line-height:1.3}.event h3{font-size:14px}.event p{font-size:12px;color:var(--muted);margin-top:3px}.bottom-card{margin-top:24px}.people{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.person{padding:25px;border-radius:16px}.person .avatar{width:58px;height:58px;font-size:18px}.row{padding:15px 0}.weekday-options{display:flex;flex-wrap:wrap;gap:8px}.weekday-options label{display:inline-flex;align-items:center;gap:5px}.app-footer{font-size:12px;color:#89968f;text-align:center;margin-top:25px}.drawer-backdrop{backdrop-filter:blur(3px)}@media(max-width:1100px){.shell{grid-template-columns:205px minmax(0,1fr)}.sidebar{width:205px;padding:27px 14px}.topbar{padding:16px 26px}.content{padding:28px 26px}.columns{grid-template-columns:1fr}.stats{gap:10px}.stat{padding:16px}.welcome-symbol{display:none}.people{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){.sidebar{display:none}.topbar{padding:15px 20px;min-height:74px;flex-wrap:wrap;gap:13px}.breadcrumb{display:none}.mobile-brand{display:flex;font-size:22px;padding:0}.mobile-brand img{width:29px}.top-actions{gap:8px}.top-actions>.side-avatar,.top-actions>.badge{display:none}.content{padding:25px 18px 110px}.page-head{align-items:flex-start;margin-bottom:22px;gap:12px}.page-head h1{font-size:27px;letter-spacing:-.8px}.page-head p{font-size:13px}.welcome{padding:23px;display:grid;grid-template-columns:1fr;gap:17px;margin-bottom:18px}.welcome h2{font-size:20px}.welcome p{font-size:13px}.stats{grid-template-columns:1fr 1fr;gap:11px;margin-bottom:20px}.stat{padding:17px}.stat-value{font-size:27px}.columns{grid-template-columns:1fr;gap:20px}.request{padding:16px;gap:10px;flex-wrap:wrap}.mobile-nav .nav-item{background:none;display:grid;justify-items:center;gap:4px;color:#6b7a79;font-size:11px;padding:4px 12px;border-radius:8px}.mobile-nav .nav-item.active{color:var(--teal);background:var(--nav-active-bg);box-shadow:inset 0 -2px 0 var(--teal)}.mobile-nav .icon{width:20px;height:20px}.people{grid-template-columns:1fr 1fr;gap:10px}.person{padding:19px 10px}.person h3{font-size:14px}.person p{font-size:12px}.card-head{padding:20px}.card-head h2{font-size:17px}.card-body{padding:20px}.top-actions .button{min-height:36px;padding:7px 10px}#toast{bottom:88px;text-align:center;width:max-content}}
/* C7: scoped task hierarchy and optional-note form, using existing tokens. */
/* C8: Safari's native menulist ignored C7 sizing; retain native select semantics. */
.ux-request-card .form select{-webkit-appearance:none;appearance:none;height:44px;min-height:44px;padding:10px 36px 10px 12px;border:1px solid #9eb4c0;border-radius:9px;background-color:var(--paper);color:var(--navy);background-image:linear-gradient(45deg,transparent 50%,var(--navy) 50%),linear-gradient(135deg,var(--navy) 50%,transparent 50%);background-position:calc(100% - 18px) 50%,calc(100% - 13px) 50%;background-size:5px 5px;background-repeat:no-repeat}
.welcome.ux-task-hero{gap:24px}
.ux-task-hero>div:first-child{min-width:0;max-width:58ch}
.welcome.ux-task-hero h2{font-size:clamp(24px,3vw,32px);line-height:1.2;letter-spacing:-.025em}
.ux-task-hero .button{min-height:44px;white-space:normal;text-align:center}
.ux-request-card{min-width:0;align-self:start}
.ux-request-card .ux-form-section{display:grid;gap:18px;min-width:0;border:0;padding:0;margin:0}
.ux-request-card .ux-form-section>legend{padding:0;margin:0 0 16px;font-weight:700;color:var(--navy)}
.ux-request-card .form-inline{gap:14px}
.ux-request-card .form input,.ux-request-card .form select,.ux-request-card .form textarea,.ux-request-card .button{min-height:44px;width:100%;min-width:0}
.ux-request-card .ux-optional-note{border:1px solid var(--line);border-radius:12px;background:var(--paper);padding:0 14px 14px}
.ux-request-card .ux-optional-note:not([open]){padding-bottom:0}
.ux-request-card .ux-optional-note>summary{min-height:48px;padding:14px 0;cursor:pointer;font-weight:600;color:var(--navy)}
.ux-request-card .ux-optional-note>label{margin-top:4px}
.ux-request-card .ux-optional-note>p{font-size:13px;line-height:1.5;margin-top:10px}
.ux-request-card .ux-optional-note>summary:focus-visible{outline:3px solid var(--teal);outline-offset:3px}
@media(max-width:700px){.ux-task-hero{align-items:stretch}.ux-task-hero .welcome-right{width:100%;justify-content:space-between}.ux-task-hero .welcome-right>.button{flex:1}.ux-request-card .form-inline{display:grid;grid-template-columns:minmax(0,1fr)}}

/* C9: leave-only target, label and focus rules; native acceptance remains pending. */
:is(.ux-leave-screen,.ux-leave-surface,.ux-leave-review,.ux-leave-discard) button.button,:is(.ux-leave-screen,.ux-leave-surface,.ux-leave-review,.ux-leave-discard) button:not(.button),.ux-leave-control:not([hidden]){min-height:44px;min-width:44px;padding:10px 14px;line-height:1.4}
.ux-leave-screen .top-actions .button{min-height:44px;min-width:44px}
:is(.ux-leave-screen,.ux-leave-surface,.ux-leave-review) :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){box-sizing:border-box;min-height:44px;min-width:0;max-width:100%;font-size:16px}
:is(.ux-leave-screen,.ux-leave-surface,.ux-leave-review) select{-webkit-appearance:none;appearance:none;height:44px;min-height:44px;padding:10px 36px 10px 12px;border:1px solid #9eb4c0;border-radius:9px;background-color:var(--paper);color:var(--navy);background-image:linear-gradient(45deg,transparent 50%,var(--navy) 50%),linear-gradient(135deg,var(--navy) 50%,transparent 50%);background-position:calc(100% - 18px) 50%,calc(100% - 13px) 50%;background-size:5px 5px;background-repeat:no-repeat}
:is(.ux-leave-screen,.ux-leave-surface,.ux-leave-review) textarea{min-height:96px}
.ux-leave-surface label:has(>input:is([type="checkbox"],[type="radio"])){display:inline-flex;align-items:center;gap:10px;min-height:44px;min-width:44px;padding:8px 10px;cursor:pointer}
.ux-leave-surface input:is([type="checkbox"],[type="radio"]){width:20px;height:20px;min-width:20px;min-height:20px;flex:0 0 20px;margin:0}
.ux-leave-screen .filter-bar label{min-width:0;flex:1 1 150px}
:is(.ux-leave-screen,.ux-leave-review,.ux-leave-discard) .row-actions{gap:10px}
.ux-leave-type-row>span:last-child{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.ux-leave-entitlement{gap:14px;flex-wrap:wrap}.ux-leave-entitlement>label{min-width:0;flex:1 1 180px}.ux-leave-entitlement input{width:100%}
:is(.ux-leave-screen,.ux-leave-surface,.ux-leave-review,.ux-leave-discard) :is(button,input,select,textarea,summary):focus-visible,.ux-leave-control:focus-visible,.ux-leave-error:focus{outline:3px solid var(--teal);outline-offset:3px}
.ux-leave-error{overflow-wrap:anywhere}.ux-leave-error[hidden]{display:none}
@media(max-width:700px){.ux-leave-screen .leave-row{align-items:stretch;flex-direction:column;gap:12px}.ux-leave-screen .leave-row>.row-actions{justify-content:flex-start}.ux-leave-type-row{align-items:stretch;flex-direction:column;gap:12px}.ux-leave-review .form-inline{display:grid;grid-template-columns:minmax(0,1fr)}.ux-leave-review .card-head{gap:12px}.ux-leave-review .card-head>div{min-width:0;overflow-wrap:anywhere}}
@media(max-width:700px){.ux-leave-screen .mobile-nav .nav-item{padding:4px 12px;min-height:44px;min-width:44px;line-height:1.5}}

/* C10: one Accounts next step and explicit, scoped manual NIB record forms. */
.ux-accounts-next .button,.ux-finalization-surface button.button{min-height:44px;min-width:44px}
.accounts-nib-record{display:grid;gap:14px;padding:18px 0;border-top:1px solid var(--line)}.accounts-nib-record>div>small{display:block}
.ux-nib-editor>summary{min-height:44px;padding:10px 0;cursor:pointer;font-weight:600}.ux-nib-fields{display:grid;gap:14px;padding:12px 0}
.ux-finalization-surface select{-webkit-appearance:none;appearance:none;min-height:44px;height:44px;padding:10px 36px 10px 12px;background-color:var(--paper);background-image:linear-gradient(45deg,transparent 50%,var(--navy) 50%),linear-gradient(135deg,var(--navy) 50%,transparent 50%);background-position:calc(100% - 18px) 50%,calc(100% - 13px) 50%;background-size:5px 5px;background-repeat:no-repeat}
.ux-finalization-surface input:not([type="checkbox"]){min-height:44px;min-width:0;font-size:16px}.ux-finalization-surface label:has(>input[type="checkbox"]){display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 0}.ux-finalization-surface input[type="checkbox"]{width:20px;height:20px;min-width:20px;min-height:20px;flex:0 0 20px}
.ux-finalization-surface .ux-nib-fields [hidden]{display:none}.ux-finalization-surface :is(button,input,select,summary):focus-visible,.ux-finalization-error:focus{outline:3px solid var(--teal);outline-offset:3px}.ux-nib-readonly{gap:14px;flex-wrap:wrap}

/* C11: portal preparation guidance, readable employer choices and fictional-only confirmation. */
.ux-policy-summary dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin-top:16px}.ux-policy-summary dt{font-weight:700}.ux-policy-summary dd{margin:4px 0 0;overflow-wrap:anywhere}
.ux-platform-confirm{width:min(520px,calc(100vw - 28px));max-height:calc(100vh - 28px);overflow:auto;border:1px solid var(--line);border-radius:14px;padding:24px;color:var(--navy);background:var(--paper)}.ux-platform-confirm::backdrop{background:rgba(16,36,45,.45)}.ux-platform-confirm form{display:grid;gap:18px}.ux-platform-confirm button.button{min-height:44px;min-width:44px}.ux-platform-confirm label{display:flex;align-items:center;gap:12px;min-height:44px}.ux-platform-confirm input[type="checkbox"]{width:20px;height:20px;flex:0 0 20px}.ux-platform-confirm :is(input,button):focus-visible,#platform-action-feedback:focus{outline:3px solid var(--teal);outline-offset:3px}

/* C12: mode-aware access UI; no provider/email configuration or public tenant directory. */
.access-shell{max-width:560px;margin:0 auto;padding:32px 20px}.access-shell .form{display:grid;gap:18px;margin:22px 0}.access-shell .form input,.access-shell button.button{min-height:44px;min-width:44px;font-size:16px}.access-shell input{width:100%;box-sizing:border-box}.access-shell [hidden]{display:none}.access-shell :is(input,button):focus-visible,#access-feedback:focus{outline:3px solid var(--teal);outline-offset:3px}.access-shell .row-actions{gap:12px;flex-wrap:wrap}
/* C16: full-width leave calendar; dates grow the page, never an inner scrollport. */
.ux-leave-screen .ux-leave-requests:has(>article:only-child){grid-template-columns:minmax(0,1fr)}
.ux-leave-screen .ux-leave-calendar-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:22px;margin-top:22px;min-width:0}
.ux-leave-screen .leave-calendar{grid-column:1/-1;min-width:0;overflow:visible}
.ux-leave-screen .calendar-grid{grid-template-columns:repeat(7,minmax(0,1fr));min-width:0;overflow:visible}
.ux-leave-screen .calendar-day{min-width:0;min-height:78px;padding:8px;gap:6px;overflow:visible}
.ux-leave-screen .calendar-day time{font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.ux-leave-screen .absence-chip{align-items:flex-start;min-width:0;font-size:13px;line-height:1.4;white-space:normal;overflow:visible;text-overflow:clip}
.ux-leave-screen .absence-label{min-width:0;overflow-wrap:anywhere}
.ux-leave-screen .calendar-day>small{font-size:12px;line-height:1.4}
.ux-leave-screen .calendar-toolbar>div{min-width:0}
.ux-leave-screen #leave-calendar-title{overflow-wrap:anywhere}
.ux-leave-screen #leave-calendar-title:focus{outline:3px solid var(--teal);outline-offset:3px}
.ux-leave-screen .ux-leave-balances:empty{display:none}
.ux-leave-screen.ux-calendar-expanded{display:block}
.ux-calendar-expanded .sidebar,.ux-calendar-expanded .topbar,.ux-calendar-expanded .context-nav,.ux-calendar-expanded .mobile-nav,.ux-calendar-expanded .page-head,.ux-calendar-expanded .app-footer,.ux-calendar-expanded .ux-leave-requests,.ux-calendar-expanded .ux-leave-balances{display:none}
.ux-calendar-expanded .main{width:100%;margin:0}
.ux-calendar-expanded .content{max-width:none;padding:16px 20px}
.ux-calendar-expanded .ux-leave-calendar-layout{margin-top:0}
.ux-calendar-expanded .calendar-grid{min-height:calc(100dvh - 260px);grid-auto-rows:minmax(78px,1fr)}
.ux-leave-review .drawer{display:flex;flex-direction:column;height:100dvh;max-height:100dvh;overflow:visible}
.ux-leave-review .card-head{flex:none;padding:16px 20px;min-width:0}
.ux-leave-review .drawer>.form{display:flex;flex-direction:column;flex:1;min-height:0;gap:0;padding:0}
.ux-leave-review .ux-leave-review-content{flex:1;min-height:0;overflow-y:auto;padding:16px 20px;scroll-padding:16px;overflow-wrap:anywhere}
.ux-leave-review .ux-leave-review-content>label{display:grid;gap:8px;margin-top:16px}
.ux-leave-review .ux-leave-review-actions{display:flex;flex:none;flex-wrap:wrap;gap:10px;margin:0;padding:12px 20px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--paper)}
.ux-leave-review .ux-leave-review-actions .button{flex:1 1 160px}
@media(max-width:800px){.ux-leave-screen .calendar-grid{grid-template-columns:minmax(0,1fr)}.ux-leave-screen .calendar-day{min-height:0;padding:12px 14px;border-right:0}.ux-leave-screen .calendar-day time{font-size:16px}.ux-leave-screen .absence-chip{font-size:14px}.ux-calendar-expanded .content{padding:12px}.ux-calendar-expanded .calendar-grid{min-height:0;grid-auto-rows:auto}.ux-leave-screen .calendar-toolbar{align-items:stretch}.ux-leave-screen .calendar-toolbar .row-actions{justify-content:flex-start}}

/* C18: the existing own-account action is available on desktop as well as mobile. */
.top-actions .mobile-profile-bubble{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px}
.top-session .side-avatar{display:none}

/* C19: keep complete calendar action labels inside readable narrow targets. */
@media(max-width:400px){.ux-leave-screen .calendar-toolbar .row-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:8px}.ux-leave-screen .calendar-toolbar .row-actions .button{width:100%;min-width:0;white-space:normal}}
