:root{--bg:#f6f7fb;--panel:#fff;--text:#18202a;--muted:#7a8494;--line:#e8ebf0;--brand:#0658f6;--brand2:#0548ca;--green:#17a673;--yellow:#d99400;--red:#e05252;--shadow:0 8px 28px rgba(25,32,56,.07)}*{box-sizing:border-box}body{margin:0;font:14px Montserrat,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);background:var(--bg)}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0}.app{display:flex;min-height:100vh}.side{width:250px;background:#111827;color:#fff;padding:22px 14px;position:fixed;inset:0 auto 0 0}.logo{height:76px;padding:0 12px 28px;overflow:hidden}.logo img{display:block;width:190px;height:48px;max-width:100%;object-fit:contain;object-position:left center}.logo span{color:#8b85ff}.nav{display:grid;gap:4px}.nav button{background:transparent;color:#aeb6c6;text-align:left;padding:11px 12px;border-radius:9px;display:flex;gap:11px;align-items:center}.nav button:hover,.nav button.active{background:#242b3b;color:#fff}.nav-icon{width:19px;height:19px;flex:0 0 19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.nav .sep{height:1px;background:#2b3342;margin:13px 8px}.main{margin-left:250px;flex:1;padding:28px 34px}.top{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.title h1{margin:0;font-size:27px;letter-spacing:-.7px}.title p{margin:5px 0 0;color:var(--muted)}.actions{display:flex;gap:9px}.btn{padding:10px 15px;border-radius:9px;background:#fff;border:1px solid var(--line);color:var(--text)}.btn.primary{background:var(--brand);border-color:var(--brand);color:#fff}.btn.primary:hover{background:var(--brand2)}.btn.onboarding-candidate:hover{background:rgba(23,166,115,.14);border-color:rgba(23,166,115,.38);color:#14875e}.grid{display:grid;gap:16px}.kpis{grid-template-columns:repeat(4,1fr)}.card{background:var(--panel);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.kpi{padding:19px}.kpi .lab{color:var(--muted);font-size:12px}.kpi .num{font-size:29px;font-weight:750;margin-top:7px}.delta{font-size:12px;color:var(--green);margin-top:6px}.section{margin-top:18px;padding:20px}.sectionhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.sectionhead h2{font-size:16px;margin:0}.table{width:100%;border-collapse:collapse}.table th,.table td{padding:13px 10px;border-bottom:1px solid var(--line);text-align:left}.table th{font-size:11px;text-transform:uppercase;color:var(--muted);font-weight:650}.avatar{width:34px;height:34px;border-radius:50%;background:#e8e6ff;color:#5148e8;display:inline-grid;place-items:center;font-weight:700;margin-right:9px;overflow:hidden;flex:0 0 34px}.avatar.photo img{width:100%;height:100%;object-fit:cover;display:block}.person{display:flex;align-items:center}.badge{display:inline-block;padding:5px 8px;border-radius:99px;background:#f0f1f5;color:#596273;font-size:11px}.badge.green{background:#e5f7ef;color:#14875e}.badge.yellow{background:#fff4d9;color:#a86f00}.badge.blue{background:#e9e8ff;color:#5148e8}body:not(.app-ready) .views{display:none!important}.views{display:none}.views.active{display:block}.searchbar{display:flex;gap:10px;margin-bottom:16px}.input{width:100%;border:1px solid var(--line);border-radius:9px;padding:10px 12px;background:#fff;outline:none}.input:focus{border-color:#aaa4ff;box-shadow:0 0 0 3px #eeeaff}.filters{display:flex;gap:9px}.kanban{display:grid;grid-template-columns:repeat(5,minmax(190px,1fr));gap:12px;overflow:auto}.col{background:#eef0f5;border-radius:12px;padding:11px;min-height:440px}.colhead{display:flex;justify-content:space-between;margin-bottom:10px;font-weight:700}.count{color:var(--muted);font-weight:500}.candidate{background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px;margin-bottom:9px;box-shadow:0 3px 10px rgba(0,0,0,.035);cursor:pointer}.candidate:hover{border-color:#bcb8ff}.candidate .name{font-weight:700}.candidate .role{color:var(--muted);font-size:12px;margin:3px 0 9px}.tags{display:flex;gap:5px;flex-wrap:wrap}.tag{background:#f1f2f7;padding:4px 6px;border-radius:5px;font-size:10px;color:#5d6676}.bars{display:grid;gap:13px}.barrow{display:grid;grid-template-columns:140px 1fr 50px;align-items:center;gap:12px}.bar{height:9px;background:#edf0f5;border-radius:20px;overflow:hidden}.bar i{display:block;height:100%;background:var(--brand);border-radius:20px}.integration-grid{grid-template-columns:repeat(3,1fr)}.integration{padding:18px;position:relative}.inttop{display:flex;gap:13px;align-items:center}.intlogo{width:46px;height:46px;border-radius:12px;background:#f0f1f6;display:grid;place-items:center;font-size:17px;font-weight:800}.intname{font-weight:750}.intdesc{font-size:12px;color:var(--muted);margin-top:3px}.intstatus{margin:17px 0 14px;padding:10px;border-radius:8px;background:#f7f8fa;color:var(--muted);font-size:12px}.intstatus.on{background:#e7f8ef;color:#14875e}.intactions{display:flex;justify-content:space-between;align-items:center}.modalwrap{position:fixed;inset:0;background:rgba(15,20,30,.46);display:none;align-items:center;justify-content:center;padding:20px;z-index:100}.modalwrap.open{display:flex}.modal{background:#fff;width:min(720px,100%);max-height:90vh;overflow:auto;border-radius:16px;box-shadow:0 20px 70px rgba(0,0,0,.2);padding:24px}.modal.small{width:min(500px,100%)}.modalhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.modalhead h2{margin:0;font-size:20px}.close{background:#f2f3f6;border-radius:8px;width:34px;height:34px}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.field{display:grid;gap:6px}.field.full{grid-column:1/-1}.field label{font-size:12px;color:#667080;font-weight:650}.modalfoot{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.profile{display:grid;grid-template-columns:180px 1fr;gap:22px}.profileaside{background:#f7f8fb;border-radius:12px;padding:18px;text-align:center}.bigavatar{width:78px;height:78px;border-radius:50%;display:grid;place-items:center;background:#e7e5ff;color:#5148e8;font-size:26px;font-weight:800;margin:0 auto 12px}.rating{font-size:23px;font-weight:800;margin:10px 0}.timeline{display:grid;gap:12px;margin-top:14px}.event{border-left:2px solid #ddd9ff;padding-left:12px}.event b{font-size:12px}.event small{display:block;color:var(--muted);margin-top:3px}.toast{position:fixed;right:22px;bottom:22px;background:#111827;color:#fff;padding:12px 16px;border-radius:9px;opacity:0;transform:translateY(10px);transition:.2s;z-index:50}.toast.show{opacity:1;transform:none}.empty{padding:45px;text-align:center;color:var(--muted)}.mini{font-size:12px;color:var(--muted)}.platform-actions{display:flex;align-items:center;gap:10px;margin-bottom:10px}.platform-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px;border:1px solid var(--line);border-radius:9px;background:#fafbfc}.platform-check{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--text);padding:7px 8px;border-radius:7px}.platform-check:hover{background:#f0f1f6}.platform-check input{accent-color:var(--brand);width:16px;height:16px}@media(max-width:700px){.platform-list{grid-template-columns:1fr}}@media(max-width:1000px){.kpis,.integration-grid{grid-template-columns:repeat(2,1fr)}.side{width:210px}.main{margin-left:210px}.kanban{grid-template-columns:repeat(5,220px)}}@media(max-width:700px){.side{position:static;width:100%;height:auto}.app{display:block}.main{margin:0;padding:18px}.nav{grid-template-columns:repeat(2,1fr)}.kpis,.integration-grid{grid-template-columns:1fr}.top{align-items:flex-start;gap:15px;flex-direction:column}.profile{grid-template-columns:1fr}.formgrid{grid-template-columns:1fr}}

/* Navigation states */
.side{transition:width .22s ease;z-index:30}.main{transition:margin-left .22s ease}.sidebar-toggle{position:absolute;right:-13px;top:23px;width:27px;height:27px;border:1px solid #3a4354;border-radius:50%;background:#242b3b;color:#fff;display:grid;place-items:center;font-size:20px;line-height:1;z-index:2}.sidebar-toggle span{position:absolute;left:50%;top:50%;display:block;font-family:Arial,sans-serif;font-size:22px;font-weight:400;line-height:1;transform:translate(-50%,-54%);transition:none}.side.collapsed .sidebar-toggle span{transform:translate(-50%,-54%)}.side.collapsed{width:78px}.side.collapsed .logo img{width:42px;height:42px;object-fit:cover;object-position:left center}.side.collapsed .logo{padding-left:4px;padding-right:4px}.app.sidebar-collapsed .main{margin-left:78px}.side.collapsed .nav button{font-size:0;justify-content:center;padding-left:0;padding-right:0}.side.collapsed .nav-icon{width:20px;height:20px;flex-basis:20px}.side.collapsed .nav button{position:relative}.side.collapsed .nav button::after{content:attr(data-label);position:absolute;left:calc(100% + 12px);top:50%;transform:translateY(-50%);background:#111827;color:#fff;border-radius:7px;padding:8px 10px;font-size:12px;line-height:1;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .15s;box-shadow:0 6px 18px rgba(0,0,0,.18)}.side.collapsed .nav button:hover::after{opacity:1}.side.collapsed .sidebar-toggle span{transform:translate(-50%,-54%)}.mobilebar,.nav-scrim{display:none}
@media(max-width:700px){.mobilebar{height:60px;position:fixed;inset:0 0 auto 0;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:13px;padding:0 18px;z-index:25}.mobilebar-title{font-size:18px;font-weight:800;color:var(--text)}.mobile-menu-toggle{width:38px;height:38px;background:#f0f1f6;color:var(--text);border-radius:9px;font-size:21px;display:grid;place-items:center}.side,.side.collapsed{position:fixed;top:0;bottom:0;left:0;width:265px;height:100vh;padding-top:22px;transform:translateX(-105%);transition:transform .22s ease;box-shadow:12px 0 30px rgba(15,20,30,.18)}.side.mobile-open{transform:translateX(0)}.side.collapsed .logo img{width:100%;height:auto;object-fit:contain;object-position:left center}.side.collapsed .logo{padding-left:12px;padding-right:12px}.side.collapsed .nav button{font-size:14px;justify-content:flex-start;padding:11px 12px}.side.collapsed .nav-icon{width:19px;height:19px;flex-basis:19px}.side.collapsed .nav button::after,.sidebar-toggle{display:none}.nav-scrim{position:fixed;inset:0;background:rgba(15,20,30,.42);z-index:29}.nav-scrim.open{display:block}.main,.app.sidebar-collapsed .main{margin:0;padding:78px 18px 24px}.top{margin-bottom:18px}.actions{width:100%;flex-wrap:wrap}.actions .btn{flex:1;min-width:145px}.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.card.section{padding:15px}.table-wrap{overflow-x:auto}.table{min-width:680px}.section:has(> .table){overflow-x:auto}.formgrid{grid-template-columns:1fr}.field.full{grid-column:auto}.modal{max-height:calc(100vh - 24px);padding:18px}.profile{grid-template-columns:1fr}.kanban{grid-template-columns:repeat(5,240px);padding-bottom:8px}.barrow{grid-template-columns:105px 1fr 38px;gap:8px}.integration-grid{grid-template-columns:1fr}.sidebar-toggle{display:none}}
@media(max-width:420px){.kpis{grid-template-columns:1fr}.actions .btn{min-width:100%;}.top .title h1{font-size:23px}.main{padding-left:14px;padding-right:14px}.modal{padding:15px}.platform-list{grid-template-columns:1fr}}

@media(max-width:700px){.side.mobile-open{overflow-y:auto;overflow-x:hidden}.side.mobile-open .nav{display:grid;grid-template-columns:1fr;width:100%;min-width:0;gap:4px}.side.mobile-open .nav button{display:flex;width:100%;min-width:0;max-width:100%;box-sizing:border-box;white-space:nowrap}.side.mobile-open .nav .sep{width:calc(100% - 16px);margin-left:8px;margin-right:8px}}

.dashboard-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:16px;margin-top:18px}.dashboard-grid .section{margin-top:0}.metric-list{display:grid;gap:15px}.metric-row{display:grid;grid-template-columns:145px 1fr 48px;align-items:center;gap:12px}.metric-row .bar i{background:var(--brand)}.metric-row small{color:var(--muted);font-size:11px}.activity-list{display:grid;gap:13px}.activity-item{display:flex;gap:10px;align-items:flex-start}.activity-dot{width:9px;height:9px;border-radius:50%;background:var(--brand);margin-top:5px;flex:0 0 9px}.activity-item b{font-size:12px}.activity-item small{display:block;color:var(--muted);margin-top:3px}.dashboard-table{width:100%;border-collapse:collapse}.dashboard-table td{padding:10px 0;border-bottom:1px solid var(--line);vertical-align:middle}.dashboard-table tr:last-child td{border-bottom:0}.dashboard-table td:last-child{text-align:right}.dashboard-table .person{gap:8px}.dashboard-table .avatar{margin-right:0;width:30px;height:30px;font-size:10px}.status-dot{display:inline-flex;align-items:center;gap:5px;color:var(--muted);font-size:11px}.status-dot::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--green)}
@media(max-width:1000px){.dashboard-grid{grid-template-columns:1fr}.metric-row{grid-template-columns:130px 1fr 44px}}
@media(max-width:700px){.dashboard-grid{grid-template-columns:1fr;gap:12px}.metric-row{grid-template-columns:120px 1fr 38px;gap:8px}.dashboard-table{min-width:0}.dashboard-table td{padding:9px 0}}
.avatar.photo{overflow:hidden;background:#eef0f5}.avatar.photo img{width:100%;height:100%;object-fit:cover;display:block}.bigavatar.photo{overflow:hidden;background:#eef0f5}.bigavatar.photo img{width:100%;height:100%;object-fit:cover;display:block}.team-card{cursor:pointer;transition:transform .18s ease,box-shadow .18s ease;border:1px solid var(--line)}.team-card:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(25,32,56,.12)}.team-card .person{gap:12px}.team-card .avatar{width:52px;height:52px;flex:0 0 52px;aspect-ratio:1;border-radius:50%;margin-right:0;font-size:14px}.team-profile{display:grid;grid-template-columns:150px 1fr;gap:22px;align-items:start}.team-profile-photo{width:150px;height:150px;border-radius:16px;object-fit:cover;display:block;background:#eef0f5}.team-profile h3{margin:0 0 5px;font-size:20px}.team-detail-list{display:grid;gap:12px;margin-top:18px}.team-detail{display:grid;grid-template-columns:130px 1fr;gap:12px;padding-bottom:10px;border-bottom:1px solid var(--line)}.team-detail label{color:var(--muted);font-size:12px}.team-detail span{font-weight:600}.contact-disabled{opacity:.55;cursor:not-allowed!important}@media(max-width:700px){.team-profile{grid-template-columns:1fr}.team-profile-photo{width:110px;height:110px}.team-detail{grid-template-columns:1fr;gap:3px}}

.team-kpis{margin-bottom:18px}.team-kpis .kpi{min-height:120px}.team-tools{display:flex;gap:10px;align-items:center;margin-bottom:16px;flex-wrap:wrap}.team-tools .input:first-child{flex:1;min-width:220px}.team-tools .input{max-width:210px}.team-card.team-hidden{display:none}.team-lower{display:grid;grid-template-columns:1.2fr .8fr;gap:16px;margin-top:18px}.team-lower .section{margin-top:0}.activity-list.team-activity{display:grid;gap:14px}.quick-actions{display:grid;gap:9px}.quick-actions .btn{width:100%;text-align:left}.team-status{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:var(--green);margin-top:7px}.team-status::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}.team-card[data-department="HR"] .team-status{color:var(--green)}
@media(max-width:1000px){.team-lower{grid-template-columns:1fr}}
@media(max-width:700px){.team-tools{display:grid;grid-template-columns:1fr}.team-tools .input,.team-tools .input:first-child{max-width:none;min-width:0;width:100%}.team-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.team-kpis{grid-template-columns:1fr}}
.hiring-calendar{margin-top:18px}.calendar-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.calendar-nav{display:flex;align-items:center;gap:8px}.calendar-nav .btn{width:34px;height:34px;padding:0;font-size:18px}.calendar-title{font-size:16px;font-weight:700;min-width:150px;text-align:center}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-top:1px solid var(--line);border-left:1px solid var(--line)}.calendar-weekday{padding:9px 8px;background:#fafbfc;color:var(--muted);font-size:11px;font-weight:700;text-transform:uppercase;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.calendar-day{min-height:92px;padding:8px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:#fff}.calendar-day.muted{background:#fafbfc;color:#b0b7c3}.calendar-day.today{background:#f5f4ff}.day-number{font-size:12px;font-weight:700;margin-bottom:6px}.calendar-event{display:block;width:100%;border:0;text-align:left;padding:5px 6px;margin-top:4px;border-radius:6px;background:#e9e8ff;color:#5148e8;font-size:10px;line-height:1.25;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.calendar-event:hover{background:#dcd9ff}.calendar-event.screening{background:#fff4d9;color:#a86f00}.calendar-event.interview{background:#e5f7ef;color:#14875e}.calendar-event.offer{background:#e8f0ff;color:#2463b4}.meeting-detail{display:grid;gap:13px}.meeting-row{display:grid;grid-template-columns:125px 1fr;gap:12px;padding-bottom:10px;border-bottom:1px solid var(--line)}.meeting-row label{font-size:12px;color:var(--muted)}.meeting-row span{font-weight:600}@media(max-width:700px){.calendar-day{min-height:76px;padding:5px}.calendar-weekday{padding:7px 3px;font-size:9px}.calendar-event{font-size:9px;padding:4px}.calendar-title{min-width:120px}.meeting-row{grid-template-columns:1fr;gap:3px}}

.analytics-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:18px}.analytics-toolbar .input{max-width:210px}.analytics-toolbar .period-label{font-size:12px;color:var(--muted);font-weight:650}.analytics-grid{margin-top:18px}.analytics-table{width:100%;border-collapse:collapse}.analytics-table th,.analytics-table td{padding:12px 10px;border-bottom:1px solid var(--line);text-align:left}.analytics-table th{font-size:11px;text-transform:uppercase;color:var(--muted);font-weight:650}.analytics-table td:last-child,.analytics-table th:last-child{text-align:right}.analytics-table .mini{margin-top:3px}.quality-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.quality-card{padding:15px;border:1px solid var(--line);border-radius:10px;background:#fafbfc}.quality-card .quality-num{font-size:24px;font-weight:800;margin:5px 0}.quality-card p{font-size:12px;color:var(--muted);margin:0;line-height:1.45}.quality-positive{color:var(--green)}.quality-neutral{color:var(--brand)}.quality-warning{color:var(--yellow)}
@media(max-width:1000px){.analytics-table{min-width:760px}.analytics-table-wrap{overflow-x:auto}.quality-grid{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.analytics-toolbar{display:grid;grid-template-columns:1fr}.analytics-toolbar .input{max-width:none;width:100%}.quality-grid{grid-template-columns:1fr}.analytics-table{min-width:700px}}
.analytics-refresh{height:42px;min-height:42px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;padding:0 15px}.analytics-toolbar .input,.analytics-toolbar .analytics-refresh{height:42px;min-height:42px;box-sizing:border-box}.analytics-toolbar .analytics-refresh{background:var(--brand);border-color:var(--brand);color:#fff}.analytics-toolbar .analytics-refresh:hover{background:var(--brand2)}
@keyframes tdFadeUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes tdGrowBar{from{transform:scaleX(0);transform-origin:left center}to{transform:scaleX(1);transform-origin:left center}}@keyframes tdSoftLine{from{opacity:.25;transform:translateX(-8px)}to{opacity:1;transform:translateX(0)}}.views.active .kpi{animation:tdFadeUp .5s ease both}.views.active .kpi:nth-child(2){animation-delay:.08s}.views.active .kpi:nth-child(3){animation-delay:.16s}.views.active .kpi:nth-child(4){animation-delay:.24s}.views.active .kpi:nth-child(5){animation-delay:.32s}.views.active .kpi:nth-child(6){animation-delay:.4s}.views.active .bars .bar i,.views.active .metric-row .bar i{animation:tdGrowBar 1s cubic-bezier(.2,.8,.2,1) both}.views.active .bars .barrow:nth-child(2) .bar i{animation-delay:.1s}.views.active .bars .barrow:nth-child(3) .bar i{animation-delay:.2s}.views.active .bars .barrow:nth-child(4) .bar i{animation-delay:.3s}.views.active .bars .barrow:nth-child(5) .bar i{animation-delay:.4s}.views.active .analytics-table tbody tr,.views.active .quality-card{animation:tdSoftLine .45s ease both}.views.active .analytics-table tbody tr:nth-child(2),.views.active .quality-card:nth-child(2){animation-delay:.08s}.views.active .analytics-table tbody tr:nth-child(3),.views.active .quality-card:nth-child(3){animation-delay:.16s}.views.active .analytics-table tbody tr:nth-child(4),.views.active .quality-card:nth-child(4){animation-delay:.24s}.views.active .analytics-table tbody tr:nth-child(5),.views.active .quality-card:nth-child(5){animation-delay:.32s}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
.initializing-sidebar .side,.initializing-sidebar .main{transition:none!important}
.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.settings-grid .section{margin-top:0}.settings-wide{grid-column:1/-1}.settings-card-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.settings-card-title h2{margin:0;font-size:16px}.settings-card-title .mini{font-size:11px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 0;border-bottom:1px solid var(--line)}.setting-row:last-child{border-bottom:0}.setting-row b{font-size:13px}.setting-row p{margin:4px 0 0;color:var(--muted);font-size:11px;line-height:1.45}.switch{position:relative;width:42px;height:24px;flex:0 0 42px}.switch input{opacity:0;width:0;height:0}.switch span{position:absolute;inset:0;background:#d8dce5;border-radius:20px;transition:.2s;cursor:pointer}.switch span:before{content:"";position:absolute;width:18px;height:18px;left:3px;top:3px;background:#fff;border-radius:50%;transition:.2s;box-shadow:0 1px 3px rgba(0,0,0,.2)}.switch input:checked+span{background:var(--brand)}.switch input:checked+span:before{transform:translateX(18px)}.template-tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:13px}.template-tab{padding:8px 11px;border-radius:8px;background:var(--bg);color:var(--muted);border:1px solid var(--line);font-size:12px}.template-tab.active{background:#e9e8ff;color:#5148e8;border-color:#dcd9ff}.template-editor{min-height:132px;resize:vertical}.dark-toggle{display:flex;align-items:center;gap:12px}.security-badge{font-size:11px;padding:5px 8px;border-radius:99px;background:#e5f7ef;color:#14875e}.security-badge.disabled{background:rgba(220,68,78,.11);color:#c63845}.session-list{display:grid;gap:9px}.session-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px;border-radius:9px;background:var(--bg)}.session-item b{font-size:12px}.session-item small{display:block;color:var(--muted);margin-top:3px}.history-list{display:grid;gap:10px}.history-item{display:flex;gap:10px;align-items:flex-start}.history-dot{width:8px;height:8px;border-radius:50%;background:var(--brand);margin-top:5px;flex:0 0 8px}.history-item b{font-size:12px}.history-item small{display:block;color:var(--muted);margin-top:3px}.storage-meter{height:9px;background:var(--bg);border-radius:10px;overflow:hidden;margin:13px 0 7px}.storage-meter i{display:block;height:100%;width:38%;background:var(--brand);border-radius:10px}.plan-card{background:linear-gradient(135deg,#eef2ff,#f8f9ff);border:1px solid #dfe4ff}.plan-price{font-size:28px;font-weight:800;color:var(--brand);margin:9px 0}.plan-details{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:17px}.plan-detail{padding:10px;background:rgba(255,255,255,.7);border-radius:8px}.plan-detail b{display:block;font-size:16px}.plan-detail span{font-size:11px;color:var(--muted)}body.dark{--bg:#111827;--panel:#1f2937;--text:#f3f4f6;--muted:#aeb6c6;--line:#374151;--shadow:0 8px 28px rgba(0,0,0,.24)}body.dark .side{background:#0b1220}body.dark .btn,body.dark .input{background:#263244;color:var(--text);border-color:#465267}body.dark .template-tab{background:#263244}body.dark .template-tab.active{background:#37316d;color:#c9c5ff;border-color:#5148e8}body.dark .plan-card{background:linear-gradient(135deg,#242b55,#202738);border-color:#414b85}body.dark .plan-detail{background:rgba(255,255,255,.06)}body.dark .badge.blue{background:#37316d;color:#c9c5ff}
@media(max-width:900px){.settings-grid{grid-template-columns:1fr}.settings-wide{grid-column:auto}}
@media(max-width:700px){.setting-row{align-items:flex-start}.plan-details{grid-template-columns:1fr 1fr}}
.dark .modal,.dark .modalwrap{color:var(--text)}.dark .modal{background:var(--panel);border-color:var(--line)}.dark .modalwrap{background:rgba(0,0,0,.62)}.dark .modalhead h2,.dark .modal h3{color:var(--text)}.dark .close{background:#263244;color:var(--text)}.dark .profileaside,.dark .platform-list,.dark .intstatus{background:#263244}.dark .field label{color:var(--muted)}.dark .input::placeholder{color:#8994a7}.dark .col{background:#1b2637}.dark .candidate{background:#263244;border-color:#465267;color:var(--text)}.dark .candidate:hover{border-color:#7771ef}.dark .quality-card,.dark .calendar-day,.dark .calendar-weekday{background:#263244;border-color:var(--line);color:var(--text)}.dark .calendar-day.muted,.dark .calendar-weekday{background:#202b3b;color:var(--muted)}.dark .calendar-day.today{background:#302d57}.dark .calendar-grid{border-color:var(--line)}.dark .calendar-event{background:#37316d;color:#d7d3ff}.dark .calendar-event.screening{background:#4b3b1a;color:#f5d78a}.dark .calendar-event.interview{background:#164936;color:#a7e8cc}.dark .calendar-event.offer{background:#19375f;color:#b7d2ff}.dark .kanban{color:var(--text)}.dark .intlogo{background:#263244;color:#f3f4f6}.dark .intlogo img{filter:none}.intlogo img{width:32px;height:32px;object-fit:contain;display:block}.dark .dashboard-table td,.dark .analytics-table td{border-color:var(--line)}.dark .bar{background:#374151}.dark .toast{background:#f3f4f6;color:#111827}

.nav-divider-label{height:1px;background:#2b3342;margin:13px 8px 5px}.placeholder-page{min-height:calc(100vh - 56px);display:flex;align-items:center;justify-content:center}.placeholder-card{max-width:540px;text-align:center;padding:48px 34px}.placeholder-card .placeholder-icon{width:56px;height:56px;margin:0 auto 20px;border-radius:16px;background:#e9e8ff;color:#5148e8;display:grid;place-items:center}.placeholder-card .placeholder-icon svg{width:28px;height:28px}.placeholder-card h2{margin:0 0 10px;font-size:22px}.placeholder-card p{margin:0 0 24px;color:var(--muted);line-height:1.5}.profile-launcher{position:absolute;left:14px;right:14px;bottom:18px}.profile-trigger{width:100%;display:flex;align-items:center;gap:10px;padding:9px 10px;background:#1b2434;border:1px solid #2f394c;border-radius:11px;color:#fff;text-align:left}.profile-trigger:hover{background:#242e40}.profile-trigger img{width:34px;height:34px;border-radius:50%;object-fit:cover;flex:0 0 34px}.profile-trigger b{font-size:12px;display:block}.profile-trigger small{display:block;color:#aeb6c6;font-size:10px;margin-top:3px}.profile-trigger .profile-chevron{margin-left:auto;margin-right:5px;color:#aeb6c6;width:8px;height:8px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(225deg);transition:transform .16s ease;flex:0 0 8px;font-size:0}.profile-trigger.is-open .profile-chevron{transform:rotate(45deg)}.profile-menu{position:absolute;left:0;right:0;bottom:54px;background:#1b2434;border:1px solid #2f394c;color:#fff;border-radius:12px;box-shadow:0 12px 32px rgba(0,0,0,.22);padding:7px;display:none;z-index:35}.profile-menu.open{display:block}.profile-menu-head{padding:9px 10px 10px;border-bottom:1px solid #2f394c;margin-bottom:5px}.profile-menu-head b{display:block;font-size:13px}.profile-menu-head small{display:block;color:#aeb6c6;font-size:11px;margin-top:3px}.profile-menu-item{display:block;width:100%;padding:9px 10px;border-radius:7px;color:#fff;font-size:12px;text-align:left;background:transparent;cursor:default}.profile-menu-item:hover{background:#242e40}body.dark .profile-menu{background:#1b2434;border-color:#2f394c}body.dark .profile-menu-item{color:#fff}body.dark .profile-menu-head{border-color:#2f394c}@media(max-width:700px){.profile-launcher{position:static;margin-top:16px}.profile-menu{position:fixed;left:18px;right:18px;bottom:72px}.placeholder-page{min-height:calc(100vh - 120px)}}
.profile-menu-item:last-child{background:rgba(220,68,78,.11);color:#c63845;margin-top:4px}.profile-menu-item:last-child:hover{background:rgba(220,68,78,.18)}body.dark .profile-menu-item:last-child{background:rgba(239,96,105,.16);color:#ff9ba2}body.dark .profile-menu-item:last-child:hover{background:rgba(239,96,105,.24)}.side.collapsed .profile-trigger{justify-content:center;padding:7px 5px}.side.collapsed .profile-trigger>span{display:none}.side.collapsed .profile-trigger img{width:38px;height:38px}.side.collapsed .profile-menu{left:64px;right:auto;bottom:0;width:232px}.side.collapsed .profile-launcher{right:auto;width:48px}
.analytics-reset{height:42px;min-height:42px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;padding:0 14px;background:var(--bg);border:1px solid var(--line);color:var(--muted);transition:background .18s ease,color .18s ease,border-color .18s ease}.analytics-reset:hover{background:var(--panel);color:var(--text);border-color:#c4c8d3}.analytics-reset.hidden{display:none}.dark .analytics-reset:hover{border-color:#5b6680}
.danger-icon{width:34px;height:34px;padding:0;display:inline-flex;align-items:center;justify-content:center;background:rgba(220,68,78,.12);border:1px solid rgba(220,68,78,.24);color:#c63845;border-radius:8px}.danger-icon:hover{background:rgba(220,68,78,.22);border-color:rgba(220,68,78,.42);color:#ab2634}.danger-icon svg{width:16px;height:16px;pointer-events:none}.dark .danger-icon{background:rgba(239,96,105,.16);border-color:rgba(239,96,105,.28);color:#ff9ba2}.dark .danger-icon:hover{background:rgba(239,96,105,.25)}.row-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px}.row-actions .btn{height:34px;min-height:34px;box-sizing:border-box;padding:0 15px;display:inline-flex;align-items:center;justify-content:center;line-height:1}
.delete-confirm{display:flex;align-items:center;gap:13px;padding:15px;border-radius:10px;background:var(--bg);border:1px solid var(--line)}.delete-confirm-icon{width:38px;height:38px;flex:0 0 38px;border-radius:10px;display:grid;place-items:center;background:rgba(220,68,78,.12);color:#c63845}.delete-confirm-icon svg{width:20px;height:20px}.delete-confirm-title{margin:0 0 4px;font-weight:700;font-size:13px}.delete-confirm-action{background:#c63845;border-color:#c63845;color:#fff}.delete-confirm-action:hover{background:#ab2634;border-color:#ab2634}.dark .delete-confirm{background:#263244}.dark .delete-confirm-icon{background:rgba(239,96,105,.16);color:#ff9ba2}.dark .delete-confirm-action{background:#b83d4b;border-color:#b83d4b}.dark .delete-confirm-action:hover{background:#d0505e;border-color:#d0505e}

.auth-screen{min-height:100vh;display:none;align-items:center;justify-content:center;padding:24px;background:var(--bg)}.auth-screen.open{display:flex}.auth-card{width:min(430px,100%);padding:34px 34px 28px}.auth-brand{text-align:center;margin-bottom:27px}.auth-brand img{width:190px;height:55px;object-fit:contain}.auth-brand h1{font-size:22px;margin:16px 0 7px}.auth-brand p{color:var(--muted);margin:0;font-size:12px}.auth-form{display:grid;gap:15px}.auth-form .field{display:grid;gap:7px}.auth-form label{font-size:12px;font-weight:600}.auth-form .input{width:100%;height:44px}.auth-password{position:relative}.auth-password .input{padding-right:42px}.auth-password button{position:absolute;right:8px;top:7px;height:30px;width:30px;background:transparent;color:var(--muted);font-size:16px}.auth-submit{width:100%;height:44px;margin-top:3px}.auth-links{display:flex;justify-content:space-between;gap:12px;margin-top:5px}.auth-link{border:0;background:transparent;color:var(--brand);font-size:11px;padding:0}.auth-link:hover{text-decoration:underline}.auth-legal{text-align:center;color:var(--muted);font-size:10px;line-height:1.5;margin:22px 0 0}.auth-legal a{color:var(--muted);text-decoration:underline}.auth-error{min-height:15px;color:#c63845;font-size:11px;text-align:center}.auth-logout-item{cursor:pointer!important}.auth-logout-item:hover{background:rgba(220,68,78,.18)!important}.dark .auth-card{background:var(--panel)}

.onboarding-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.onboarding-funnel{display:grid;grid-template-columns:repeat(5,minmax(180px,1fr));gap:10px;align-items:start;overflow-x:auto;padding-bottom:4px}.onboarding-stage{min-width:180px;background:var(--bg);border:1px solid var(--line);border-radius:11px;padding:11px}.onboarding-stage-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px}.onboarding-stage-head b{font-size:12px}.stage-count{font-size:11px;color:var(--muted);background:var(--panel);padding:4px 7px;border-radius:99px}.onboarding-person{display:flex;align-items:center;gap:9px;padding:10px 8px;border-radius:9px;background:var(--panel);border:1px solid var(--line);margin-top:8px;cursor:pointer;transition:.18s}.onboarding-person:hover{border-color:#a7a1ff;transform:translateY(-1px)}.onboarding-person img,.onboarding-person-avatar{width:30px;height:30px;flex:0 0 30px;border-radius:50%;object-fit:cover}.onboarding-person-avatar{display:grid;place-items:center;background:#e9e8ff;color:#5148e8;font-size:10px;font-weight:700}.onboarding-person b{display:block;font-size:11px}.onboarding-person small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.onboarding-stage-bar{height:4px;background:var(--line);border-radius:5px;margin:0 0 9px;overflow:hidden}.onboarding-stage-bar i{display:block;height:100%;background:var(--brand);border-radius:5px}.roadmap{display:grid;grid-template-columns:repeat(6,1fr);position:relative;gap:0;padding:17px 5px 10px}.roadmap:before{content:"";position:absolute;top:28px;left:7%;right:7%;height:2px;background:var(--line)}.roadmap-point{position:relative;text-align:center;z-index:1}.roadmap-dot{width:22px;height:22px;margin:0 auto 10px;border-radius:50%;background:var(--panel);border:3px solid var(--line)}.roadmap-point.done .roadmap-dot{background:var(--brand);border-color:var(--brand)}.roadmap-point.current .roadmap-dot{border-color:var(--brand);box-shadow:0 0 0 4px rgba(6,88,246,.13)}.roadmap-point b{display:block;font-size:11px}.roadmap-point small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.onboarding-summary{display:grid;grid-template-columns:1.2fr 1fr;gap:16px;margin-top:16px}.onboarding-summary .section{margin-top:0}.onboarding-tasks{display:grid;gap:9px}.onboarding-task-row{display:flex;align-items:center;gap:10px;font-size:12px}.onboarding-task-dot{width:8px;height:8px;border-radius:50%;background:var(--brand);flex:0 0 8px}.onboarding-task-row small{margin-left:auto;color:var(--muted)}.dark .onboarding-stage,.dark .onboarding-person{background:#263244}.dark .stage-count,.dark .onboarding-person-avatar{background:#202b3b}.dark .roadmap-dot{background:#263244}.dark .onboarding-stage-bar{background:#374151}@media(max-width:1100px){.onboarding-kpis{grid-template-columns:repeat(2,1fr)}.onboarding-summary{grid-template-columns:1fr}.roadmap{min-width:650px}.roadmap-wrap{overflow-x:auto}}@media(max-width:700px){.onboarding-kpis{grid-template-columns:1fr 1fr}}
.onboarding-modal-checklist{display:grid;gap:9px}.onboarding-check{display:flex;align-items:center;gap:10px;padding:11px 12px;border:1px solid var(--line);border-radius:9px;cursor:pointer;font-size:12px;transition:.15s}.onboarding-check:hover{background:var(--bg)}.onboarding-check input{position:absolute;opacity:0}.checkmark{width:17px;height:17px;border:1.5px solid #b6bdc9;border-radius:5px;flex:0 0 17px}.onboarding-check.checked{color:var(--muted);text-decoration:line-through;opacity:.6}.onboarding-check.checked .checkmark{background:var(--brand);border-color:var(--brand);box-shadow:inset 0 0 0 4px var(--panel)}
.onboarding-person{cursor:grab}.onboarding-person:active{cursor:grabbing}.onboarding-stage.drag-over{border-color:var(--brand);background:rgba(6,88,246,.06)}.onboarding-next:disabled{opacity:.48;cursor:not-allowed;background:var(--bg);border-color:var(--line);color:var(--muted)}.dark .onboarding-stage.drag-over{background:rgba(100,95,230,.12)}

/* Company structure */
.team-add-wrap{position:relative}.team-add-menu{position:absolute;right:0;top:calc(100% + 8px);width:330px;padding:7px;background:var(--panel);border:1px solid var(--line);border-radius:12px;box-shadow:0 16px 42px rgba(25,32,56,.16);display:none;z-index:18;transform-origin:top right}.team-add-menu.open{display:grid;gap:4px}.team-add-menu button{display:flex;align-items:center;gap:11px;width:100%;padding:11px;border-radius:9px;background:transparent;color:var(--text);text-align:left}.team-add-menu button:hover,.team-add-menu button:focus-visible{background:var(--bg);outline:none}.team-add-menu b{display:block;font-size:12px}.team-add-menu small{display:block;color:var(--muted);font-size:10px;margin-top:4px;line-height:1.35}.team-add-icon{width:31px;height:31px;display:grid;place-items:center;flex:0 0 31px;border-radius:8px;background:#e9efff;color:var(--brand);font-size:17px;font-weight:700}.company-kpis{margin-bottom:18px}.company-structure{margin-top:0}.org-chart{padding:8px 4px 4px}.org-root-wrap{display:flex;justify-content:center;position:relative;padding-bottom:38px}.org-root-wrap:after{content:"";position:absolute;left:50%;bottom:0;width:1px;height:38px;background:var(--line)}.org-branches{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:14px;position:relative;padding-top:25px}.org-branches:before{content:"";position:absolute;top:0;left:16.66%;right:16.66%;height:1px;background:var(--line)}.department-card{position:relative;display:flex;align-items:center;gap:12px;min-height:92px;padding:15px;background:var(--bg);border:1px solid var(--line);border-radius:12px;cursor:pointer;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.department-card:not(.root):before{content:"";position:absolute;left:50%;top:-26px;width:1px;height:25px;background:var(--line)}.department-card:hover,.department-card:focus-visible{transform:translateY(-2px);border-color:#9cb9fb;box-shadow:0 10px 26px rgba(25,32,56,.09);outline:none}.department-card.root{width:min(390px,100%);background:linear-gradient(135deg,rgba(6,88,246,.12),rgba(6,88,246,.04));border-color:rgba(6,88,246,.3)}.department-mark{width:42px;height:42px;display:grid;place-items:center;flex:0 0 42px;border-radius:11px;background:var(--panel);border:1px solid var(--line);color:var(--brand);font-size:12px;font-weight:800}.department-card b{display:block;font-size:13px}.department-card small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.department-meta{margin-left:auto;text-align:right}.department-count{display:inline-grid;place-items:center;min-width:28px;height:24px;padding:0 7px;border-radius:99px;background:var(--panel);border:1px solid var(--line);font-size:11px;font-weight:700;color:var(--text)}.employee-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:15px}.employee-card{display:flex;align-items:center;gap:10px;padding:11px;border:1px solid var(--line);border-radius:10px;background:var(--bg);text-align:left;color:var(--text)}.employee-card:hover,.employee-card:focus-visible{border-color:#9cb9fb;outline:none}.employee-card .avatar{margin-right:0;width:42px;height:42px;flex:0 0 42px}.employee-card b{display:block;font-size:12px}.employee-card small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.employee-status{display:inline-block;margin-top:5px;font-size:9px;padding:3px 6px;border-radius:99px;background:#e5f7ef;color:#14875e}.employee-status.trial{background:#fff4d9;color:#a86f00}.employee-status.external{background:#e9efff;color:var(--brand)}.onboarding-picker{display:grid;gap:8px;margin-top:12px;max-height:390px;overflow:auto}.onboarding-picker-option{display:flex;align-items:center;gap:11px;padding:11px;border:1px solid var(--line);border-radius:10px;cursor:pointer;background:var(--bg)}.onboarding-picker-option:hover{border-color:#9cb9fb}.onboarding-picker-option input{accent-color:var(--brand);width:16px;height:16px}.onboarding-picker-option img,.onboarding-picker-avatar{width:38px;height:38px;flex:0 0 38px;border-radius:50%;object-fit:cover}.onboarding-picker-avatar{display:grid;place-items:center;background:#e9efff;color:var(--brand);font-size:10px;font-weight:700}.onboarding-picker-option b{display:block;font-size:12px}.onboarding-picker-option small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.file-upload{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.file-upload input{position:absolute;opacity:0;pointer-events:none}.file-upload small{color:var(--muted);font-size:10px}.employee-profile-avatar{width:150px;height:150px;border-radius:18px;object-fit:cover;display:grid;place-items:center;background:#e9efff;color:var(--brand);font-size:34px;font-weight:800}.modal-back{display:inline-flex;align-items:center;gap:5px;color:var(--brand);background:transparent;padding:0;font-size:11px;margin-bottom:10px}.dark .team-add-menu{box-shadow:0 16px 42px rgba(0,0,0,.38)}.dark .team-add-icon{background:#263a5e}.dark .department-card.root{background:linear-gradient(135deg,rgba(6,88,246,.2),rgba(6,88,246,.06))}.dark .employee-status.trial{background:#4b3b1a;color:#f5d78a}.dark .employee-status.external{background:#19375f;color:#b7d2ff}@media(max-width:1100px){.org-branches{grid-template-columns:repeat(2,minmax(180px,1fr))}.org-branches:before,.department-card:not(.root):before{display:none}.org-branches{padding-top:0}.org-root-wrap{padding-bottom:16px}.org-root-wrap:after{display:none}}@media(max-width:700px){.company-kpis{grid-template-columns:1fr 1fr}.team-add-wrap,.team-add-wrap>.btn{width:100%}.team-add-menu{position:fixed;left:18px;right:18px;top:auto;bottom:18px;width:auto;z-index:45}.org-branches{grid-template-columns:1fr}.employee-list{grid-template-columns:1fr}.employee-profile-avatar{width:110px;height:110px}.file-upload{align-items:flex-start}.company-structure{overflow:hidden}}@media(max-width:430px){.company-kpis{grid-template-columns:1fr}}
.candidate-save-button{margin-left:auto;margin-right:8px}.candidate-save-disabled{opacity:.42;cursor:not-allowed!important;filter:saturate(.45)}.candidate-photo-actions{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0 12px}.candidate-file-label{display:inline-flex;align-items:center;cursor:pointer}.candidate-resume{display:grid;gap:3px;margin-top:14px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);font-size:12px}.candidate-resume span{color:var(--muted);word-break:break-word}.candidate-edit-button{margin-left:auto;margin-right:8px}.candidate-photo-actions .btn{font-size:11px;padding:7px 9px}.candidate-photo-menu button,.candidate-photo-menu label{display:block;width:100%;padding:9px 10px;border:0;border-radius:7px;background:transparent;color:var(--text);font:inherit;font-size:12px;text-align:left;cursor:pointer}.candidate-photo-menu button:hover,.candidate-photo-menu label:hover{background:var(--hover)}.candidate-resume-edit{display:grid;gap:7px}.candidate-resume-edit .input{font-size:12px}.modalhead .candidate-edit-button,.modalhead .candidate-save-button,.modalhead .close{height:34px;min-height:34px;box-sizing:border-box;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;line-height:1}.modalhead .close{width:34px;padding:0}.resume-file-row{display:flex;align-items:center;gap:10px;min-height:34px}.resume-file-button{display:inline-flex;align-items:center;justify-content:center;width:max-content;height:34px;box-sizing:border-box;padding:0 12px;white-space:nowrap;line-height:1}.resume-file-name{margin-left:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.candidate-resume-edit .resume-file-row,.candidate-resume-edit .resume-file-button,.candidate-resume-edit .resume-file-name{font-size:inherit}.resume-remove-button{width:22px;height:22px;padding:0;border:0;border-radius:6px;background:rgba(220,70,80,.12);color:var(--red);font:600 16px/20px Montserrat,sans-serif;cursor:pointer;display:inline-grid;place-items:center}.resume-remove-button:hover{background:rgba(220,70,80,.22)}.offboarding-funnel{display:grid;grid-template-columns:repeat(6,minmax(170px,1fr));gap:10px;overflow-x:auto;padding-bottom:4px}.offboarding-stage{min-height:210px;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);transition:border-color .18s,background .18s}.offboarding-stage.drag-over{border-color:var(--brand);background:rgba(6,88,246,.06)}.offboarding-stage-head{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:10px;font-size:12px}.offboarding-stage-head b{line-height:1.35}.offboarding-person{display:flex;align-items:center;gap:8px;padding:9px 7px;margin:6px 0;border:1px solid var(--line);border-radius:9px;background:var(--surface);cursor:grab}.offboarding-person:hover{border-color:var(--brand)}.offboarding-person-avatar{width:30px;height:30px;flex:0 0 30px;border-radius:50%;display:grid;place-items:center;background:rgba(6,88,246,.12);color:var(--brand);font-size:10px;font-weight:700}.offboarding-person span:nth-child(2){min-width:0}.offboarding-person b,.offboarding-person small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.offboarding-person b{font-size:11px}.offboarding-person small{font-size:9px;color:var(--muted);margin-top:2px}.offboarding-card-status{display:block;font-style:normal;font-size:9px;color:#2b8a5a;margin-top:5px}.offboarding-card-status.soon{color:#b27613}.offboarding-card-status.risk{color:var(--red)}.offboarding-lower{display:grid;grid-template-columns:1.2fr 1fr;gap:16px;margin-top:16px}.offboarding-calendar{display:grid;gap:7px}.offboarding-calendar-row{display:grid;grid-template-columns:46px 1fr auto;gap:10px;align-items:center;text-align:left;width:100%;padding:9px 0;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--text);cursor:pointer}.offboarding-calendar-row:hover{color:var(--brand)}.offboarding-calendar-row b,.offboarding-calendar-row small{display:block}.offboarding-calendar-row b{font-size:12px}.offboarding-calendar-row small{font-size:10px;color:var(--muted);margin-top:3px}.calendar-date{display:grid;place-items:center;border-radius:8px;background:rgba(6,88,246,.1);padding:5px}.calendar-date b{font-size:16px;color:var(--brand)}.calendar-date small{font-size:9px}.security-summary{display:flex;gap:10px;align-items:center;padding:12px;border-radius:10px;background:rgba(220,68,78,.08);color:var(--text);margin-bottom:12px}.security-icon{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:rgba(220,68,78,.14);color:var(--red);font-weight:700}.security-summary b,.security-summary small{display:block}.security-summary b{font-size:12px}.security-summary small{font-size:10px;color:var(--muted);margin-top:3px}.security-line{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid var(--line);font-size:11px}.security-line span{color:var(--muted)}.offboarding-status{background:rgba(220,68,78,.1)!important;color:var(--red)!important;margin-top:4px}.offboarding-profile-meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:4px 0 18px}.offboarding-warning{padding:10px 12px;border-radius:9px;background:rgba(220,68,78,.1);color:var(--red);font-size:12px}@media(max-width:1050px){.offboarding-funnel{grid-template-columns:repeat(3,minmax(190px,1fr))}}@media(max-width:700px){.offboarding-lower{grid-template-columns:1fr}.offboarding-funnel{grid-template-columns:repeat(2,minmax(180px,1fr))}}.offboarding-person-avatar.photo{object-fit:cover}.offboarding-picker-toolbar{margin:14px 0 10px}.offboarding-departments{display:flex;gap:6px;flex-wrap:wrap;max-height:100px;overflow:auto;margin-bottom:10px}.offboarding-department-chip{border:1px solid var(--line);background:var(--surface-2);color:var(--muted);border-radius:999px;padding:7px 10px;font-size:10px;cursor:pointer}.offboarding-department-chip span{margin-left:5px;opacity:.7}.offboarding-department-chip:hover,.offboarding-department-chip.active{border-color:var(--brand);color:var(--brand);background:rgba(6,88,246,.1)}.offboarding-picker-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:190px;overflow:auto;padding:2px}.offboarding-picker-card{display:flex;align-items:center;gap:8px;text-align:left;border:1px solid var(--line);background:var(--surface-2);color:var(--text);border-radius:9px;padding:8px;cursor:pointer}.offboarding-picker-card:hover,.offboarding-picker-card.selected{border-color:var(--brand);background:rgba(6,88,246,.08)}.offboarding-picker-card b,.offboarding-picker-card small{display:block}.offboarding-picker-card b{font-size:11px}.offboarding-picker-card small{font-size:9px;color:var(--muted);margin-top:3px}.offboarding-picker-avatar{width:30px;height:30px;border-radius:50%;overflow:hidden;display:grid;place-items:center;flex:0 0 30px;background:rgba(6,88,246,.12);color:var(--brand);font-size:10px;font-weight:700}.offboarding-picker-avatar img{width:100%;height:100%;object-fit:cover}.offboarding-picker-check{margin-left:auto;color:var(--brand);font-weight:700}.offboarding-date-fields{margin-top:14px}@media(max-width:650px){.offboarding-picker-list{grid-template-columns:1fr}}.offboarding-date-fields>.field:not(.full) .input{height:42px;min-height:42px;box-sizing:border-box}.resume-score-badge{margin:10px 0 8px;padding:8px 9px;border-radius:9px;background:rgba(6,88,246,.1);color:var(--brand);font-size:10px}.resume-score-badge b{display:block;font-size:21px;margin-top:2px}.resume-score-details{display:grid;gap:3px;text-align:left;color:var(--muted);font-size:9px;margin-bottom:10px}.modal:has(.profile){width:min(980px,calc(100vw - 32px))}.modal:has(.profile) .profile{grid-template-columns:240px minmax(0,1fr);align-items:start}.modal:has(.profile) .profileaside,.modal:has(.profile) .profile>div{min-width:0}.modal:has(.profile) .resume-score-details{overflow-wrap:anywhere}@media(max-width:760px){.modal:has(.profile){width:min(100%,calc(100vw - 20px));padding:18px}.modal:has(.profile) .profile{grid-template-columns:1fr}.modal:has(.profile) .profileaside{text-align:center}}.ai-resume-status::before{content:none!important;display:none!important}.ai-resume-status{box-shadow:none}
.badge.stage-replies{background:rgba(6,88,246,.14);color:#4f8cff}.badge.stage-screening{background:rgba(20,166,130,.16);color:#35c49d}.badge.stage-interview{background:rgba(236,156,43,.18);color:#f2b14b}.badge.stage-offer{background:rgba(157,93,235,.18);color:#b888ff}.badge.stage-hired{background:rgba(47,180,100,.2);color:#54d47e}.badge.stage-default{background:rgba(130,140,160,.18);color:var(--muted)}.vacancy-title-cell{display:flex;align-items:center;gap:9px}.edit-icon{width:34px;height:34px;display:grid;place-items:center;border:1px solid rgba(130,150,180,.35);border-radius:8px;background:rgba(90,110,140,.12);color:var(--text);cursor:pointer}.edit-icon svg,.danger-icon svg{width:17px;height:17px}.edit-icon:hover{background:rgba(6,88,246,.16);border-color:rgba(6,88,246,.5);color:#6ea1ff}.response-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.response-card{padding:14px;border:1px solid var(--line);border-radius:13px;background:var(--panel)}.response-meta{display:flex;justify-content:space-between;gap:8px;margin:12px 0 5px;font-size:11px;color:var(--muted)}.response-ai-score{color:#9b85ff;font-weight:700}.response-actions{display:flex;gap:8px;margin-top:12px}.response-screening{background:rgba(6,88,246,.16);border-color:rgba(6,88,246,.34);color:#75a8ff;transition:background .18s ease,border-color .18s ease,color .18s ease}.response-screening:hover{background:rgba(6,88,246,.28);border-color:rgba(6,88,246,.58);color:#b8d2ff}.dark .response-screening{background:rgba(6,88,246,.2);border-color:rgba(75,137,255,.38);color:#91b9ff}.dark .response-screening:hover{background:rgba(6,88,246,.34);border-color:rgba(94,150,255,.68);color:#d2e1ff}.response-reject{color:#e890a0;border-color:rgba(220,90,110,.3);transition:background .18s ease,border-color .18s ease,color .18s ease}.response-reject:hover{background:rgba(220,68,78,.18);border-color:rgba(220,68,78,.48);color:#ff8f98}.dark .response-reject:hover{background:rgba(239,96,105,.24);border-color:rgba(239,96,105,.52);color:#ffc1c5}@media(max-width:720px){.response-grid{grid-template-columns:1fr}}/* Mobile app experience: scoped below desktop breakpoints */
@media (min-width:701px) and (max-width:1100px){
  .side{width:210px}.main{margin-left:210px;padding:24px 22px}.app.sidebar-collapsed .main{margin-left:78px}
  .grid[style*="1.5fr"],.dashboard-grid{grid-template-columns:1fr!important}.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .table-wrap{overflow-x:auto}.table{min-width:760px}.modal{width:min(760px,calc(100vw - 40px))}.profile{grid-template-columns:230px minmax(0,1fr)}
  .kanban{grid-template-columns:repeat(5,220px);overflow-x:auto}.company-org{overflow-x:auto}
}
@media (max-width:700px){
  html,body{width:100%;min-width:0;overflow-x:hidden}body{padding-bottom:env(safe-area-inset-bottom)}
  .mobilebar{height:calc(60px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 16px 0;background:var(--panel);border-color:var(--line);box-shadow:0 1px 12px rgba(12,20,35,.08)}
  .mobilebar-title{font-size:17px;letter-spacing:-.2px}.mobile-menu-toggle{width:42px;height:42px;min-width:42px;background:rgba(6,88,246,.1);color:var(--brand);font-size:22px}
  .main{padding:calc(78px + env(safe-area-inset-top)) 14px 30px;min-width:0}.top{display:flex;flex-direction:column;align-items:stretch;gap:14px}.title h1{font-size:24px;line-height:1.15}.title p{font-size:12px}
  .actions{display:grid;grid-template-columns:1fr;gap:8px}.actions .btn{min-width:0;width:100%;min-height:44px}
  .grid,.dashboard-grid{grid-template-columns:1fr!important;gap:12px}.kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.card{border-radius:14px}.card.kpi{padding:14px 13px;min-height:104px}.kpi .num{font-size:25px}
  .sectionhead{gap:10px;align-items:flex-start}.sectionhead h2{font-size:16px}.section{padding:14px}.table-wrap,.section:has(> .table){margin-left:-14px;margin-right:-14px;padding:0 14px;overflow-x:auto;-webkit-overflow-scrolling:touch}.table{min-width:690px;font-size:12px}.table th{font-size:10px}.table td{padding:11px 8px}
  .row-actions{gap:6px}.row-actions .btn{min-height:38px;padding:8px 11px}.danger-icon,.edit-icon{width:38px;height:38px;min-width:38px}
  .formgrid{grid-template-columns:1fr!important;gap:12px}.field.full{grid-column:auto}.input{min-height:44px}.modal{width:calc(100vw - 16px);max-width:none;max-height:calc(100dvh - 16px);margin:8px;padding:16px;border-radius:18px;overflow-y:auto;-webkit-overflow-scrolling:touch}.modalhead{position:sticky;top:-16px;padding:4px 0 12px;background:var(--panel);z-index:2}.modalhead h2{font-size:19px;line-height:1.2}.modalfoot{position:sticky;bottom:-16px;padding-top:12px;background:var(--panel);display:grid;grid-template-columns:1fr 1fr;gap:8px}.modalfoot .btn{min-height:44px}.profile{grid-template-columns:1fr;gap:12px}.profile-aside{order:0}.profile-main{order:1}
  .kanban{display:grid;grid-template-columns:repeat(5,minmax(250px,1fr));overflow-x:auto;gap:10px;margin:0 -14px;padding:0 14px 12px;-webkit-overflow-scrolling:touch}.kanban .col{min-height:380px}.candidate{touch-action:pan-y}.bars{overflow-x:auto}.barrow{min-width:430px}.response-grid{grid-template-columns:1fr}.response-card{padding:13px}.response-actions{display:grid;grid-template-columns:1fr 1fr}.response-actions .btn{min-height:42px}
  .integration-grid,.team-grid,.department-grid{grid-template-columns:1fr!important}.calendar{overflow-x:auto}.calendar-grid{min-width:620px}.company-org{overflow-x:auto;padding-bottom:8px}
  .profile-launcher{min-height:52px}.profile-menu{max-width:calc(100vw - 28px)}button,.btn{touch-action:manipulation}.btn:active,.mobile-menu-toggle:active{transform:scale(.97)}
}
@media (max-width:420px){.kpis{grid-template-columns:1fr}.modal{width:calc(100vw - 10px);margin:5px;padding:14px}.modalhead{top:-14px}.modalfoot{bottom:-14px}.main{padding-left:10px;padding-right:10px}.kanban{margin-left:-10px;margin-right:-10px;padding-left:10px;padding-right:10px}}
@media (prefers-reduced-motion:reduce){.side{transition:none}.btn:active,.mobile-menu-toggle:active{transform:none}}
/* Teamdeck AI demo assistant */
.teamdeck-ai-launcher{position:fixed;right:24px;bottom:24px;z-index:80;width:58px;height:58px;border-radius:18px;background:linear-gradient(145deg,#766dff,#0658f6);color:#fff;box-shadow:0 12px 30px rgba(6,88,246,.35),0 0 0 1px rgba(255,255,255,.16) inset;display:grid;place-items:center;transition:transform .18s ease,box-shadow .18s ease}.teamdeck-ai-launcher:hover{transform:translateY(-3px);box-shadow:0 16px 34px rgba(6,88,246,.45),0 0 0 1px rgba(255,255,255,.22) inset}.teamdeck-ai-launcher:active{transform:scale(.96)}.teamdeck-ai-star{font-size:30px;line-height:1;animation:teamdeckAiPulse 2.4s ease-in-out infinite;text-shadow:0 0 12px rgba(255,255,255,.7)}@keyframes teamdeckAiPulse{0%,100%{transform:scale(1) rotate(0deg);opacity:.9}50%{transform:scale(1.14) rotate(8deg);opacity:1}}.teamdeck-ai-chat{position:fixed;right:24px;bottom:94px;z-index:81;width:min(390px,calc(100vw - 32px));height:min(590px,calc(100vh - 120px));display:none;flex-direction:column;overflow:hidden;border:1px solid rgba(125,145,180,.34);border-radius:18px;background:var(--panel);box-shadow:0 22px 60px rgba(5,12,28,.35)}.teamdeck-ai-chat.open{display:flex;animation:teamdeckAiChatIn .2s ease-out}@keyframes teamdeckAiChatIn{from{opacity:0;transform:translateY(10px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}.teamdeck-ai-head{display:flex;align-items:center;justify-content:space-between;padding:15px 16px;background:linear-gradient(135deg,rgba(118,109,255,.16),rgba(6,88,246,.1));border-bottom:1px solid var(--line)}.teamdeck-ai-head b{display:block;font-size:14px}.teamdeck-ai-head small{display:block;margin-top:3px;color:var(--muted);font-size:10px}.teamdeck-ai-close{width:30px;height:30px;border-radius:8px;background:rgba(120,140,175,.12);color:var(--text);font-size:20px;line-height:1}.teamdeck-ai-messages{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:10px}.teamdeck-ai-message{max-width:88%;padding:10px 12px;border-radius:13px;font-size:12px;line-height:1.5;white-space:pre-wrap}.teamdeck-ai-message.assistant{align-self:flex-start;background:rgba(118,109,255,.12);border:1px solid rgba(118,109,255,.2)}.teamdeck-ai-message.user{align-self:flex-end;background:var(--brand);color:#fff}.teamdeck-ai-message.typing{color:var(--muted);font-style:italic}.teamdeck-ai-prompts{display:flex;gap:6px;overflow-x:auto;padding:0 14px 10px}.teamdeck-ai-prompts button{flex:0 0 auto;padding:7px 9px;border:1px solid var(--line);border-radius:8px;background:transparent;color:var(--muted);font-size:10px;white-space:nowrap}.teamdeck-ai-prompts button:hover{border-color:var(--brand);color:var(--brand)}.teamdeck-ai-form{display:flex;gap:8px;padding:12px 14px;border-top:1px solid var(--line)}.teamdeck-ai-form input{min-width:0;flex:1;height:40px;padding:0 11px;border:1px solid var(--line);border-radius:9px;background:var(--bg);color:var(--text);outline:none}.teamdeck-ai-form input:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(6,88,246,.12)}.teamdeck-ai-form button{width:40px;height:40px;border-radius:9px;background:var(--brand);color:#fff;font-size:20px}.teamdeck-ai-form button:disabled{opacity:.55;cursor:wait}@media(max-width:700px){.teamdeck-ai-launcher{right:16px;bottom:calc(16px + env(safe-area-inset-bottom));width:54px;height:54px;border-radius:16px}.teamdeck-ai-chat{right:8px;bottom:calc(78px + env(safe-area-inset-bottom));width:calc(100vw - 16px);height:min(650px,calc(100dvh - 100px));border-radius:17px}.teamdeck-ai-messages{padding:12px}.teamdeck-ai-form{padding-bottom:calc(12px + env(safe-area-inset-bottom))}}@media(prefers-reduced-motion:reduce){.teamdeck-ai-star,.teamdeck-ai-chat{animation:none}}
.integrations-connected-head{margin:24px 0 12px;align-items:flex-end}.integrations-connected-head h2{margin:0 0 4px}.integrations-empty-hint{margin-top:18px}.integration-empty{grid-column:1/-1;text-align:center;padding:48px 20px;border:1px dashed var(--line);border-radius:14px;background:var(--panel)}.integration-empty-icon{width:44px;height:44px;margin:0 auto 12px;border-radius:14px;display:grid;place-items:center;background:rgba(6,88,246,.14);color:var(--brand);font-size:28px}.integration-empty h3{margin:0 0 6px}.integration-catalog{display:grid;grid-template-columns:220px minmax(0,1fr);gap:22px;min-height:420px}.integration-categories{display:flex;flex-direction:column;gap:6px;border-right:1px solid var(--line);padding-right:16px}.integration-category{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 13px;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--muted);text-align:left;cursor:pointer;font:inherit}.integration-category:hover{background:var(--bg);color:var(--text)}.integration-category.active{background:rgba(6,88,246,.14);border-color:rgba(6,88,246,.28);color:var(--text)}.integration-category span{font-size:12px;opacity:.65}.integration-catalog-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-content:start}.catalog-card{display:flex;align-items:center;gap:12px;padding:15px;border:1px solid var(--line);border-radius:12px;background:var(--panel);min-width:0}.catalog-card-logo{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border-radius:11px;background:var(--bg);overflow:hidden}.catalog-card-logo img{width:28px;height:28px;object-fit:contain}.catalog-initial{width:28px;height:28px;display:grid;place-items:center;border-radius:8px;color:#fff;font-weight:700;font-size:13px}.catalog-card-content{min-width:0;flex:1}.catalog-card h3{margin:0 0 4px;font-size:15px}.catalog-card p{margin:0 0 5px;font-size:12px;color:var(--muted);line-height:1.35}.catalog-card>.btn{flex:0 0 auto;padding:8px 10px;font-size:12px}.empty-state{padding:30px;border:1px dashed var(--line);border-radius:12px;text-align:center;color:var(--muted);grid-column:1/-1}@media(max-width:760px){.integration-catalog{grid-template-columns:1fr;gap:14px}.integration-categories{border-right:0;border-bottom:1px solid var(--line);padding:0 0 12px;display:grid;grid-template-columns:repeat(2,1fr)}.integration-catalog-list{grid-template-columns:1fr}.catalog-card{align-items:flex-start}.catalog-card>.btn{margin-left:auto}}.catalog-card{display:flex;flex-direction:column;align-items:stretch;gap:12px;min-height:190px}.catalog-card-top{display:flex;align-items:center;gap:12px;min-width:0}.catalog-card-heading{min-width:0}.catalog-card-heading h3{margin:0 0 4px}.catalog-card-type{font-size:12px;color:var(--muted)}.catalog-card-content{min-height:40px}.catalog-card-content p{margin:0}.catalog-card-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:10px;border-top:1px solid var(--line)}.catalog-connected,.catalog-available{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}.catalog-connected{color:#42c995}.catalog-connected i{width:7px;height:7px;border-radius:50%;background:#28b67e;box-shadow:0 0 0 3px rgba(40,182,126,.14)}.catalog-disconnect{color:#e890a0;border-color:rgba(220,90,110,.3)}.catalog-disconnect:hover{background:rgba(220,68,78,.18);border-color:rgba(220,68,78,.48);color:#ff8f98}.dark .catalog-disconnect:hover{background:rgba(239,96,105,.24);border-color:rgba(239,96,105,.52);color:#ffc1c5}@media(max-width:760px){.catalog-card{min-height:0}.catalog-card-footer{align-items:flex-start}.catalog-card-footer .btn{margin-left:auto}}.modal:has(.integration-catalog){width:min(1120px,calc(100vw - 40px));height:min(760px,calc(100vh - 40px));max-height:none;overflow:hidden;box-sizing:border-box}.modal:has(.integration-catalog) .modalhead{flex:0 0 auto}.integration-catalog{min-width:0;min-height:0;height:calc(100% - 72px);overflow:hidden}.integration-categories{min-height:0;overflow-y:auto}.integration-catalog-list{min-width:0;min-height:0;grid-template-columns:repeat(2,minmax(280px,1fr));overflow-y:auto;align-content:start;padding:2px 8px 12px 2px}.catalog-card{box-sizing:border-box;width:100%;overflow:hidden;align-self:stretch}.catalog-card-content p{overflow-wrap:anywhere}.catalog-card-footer{min-width:0}.catalog-card-footer .btn{white-space:nowrap;flex:0 0 auto}@media(max-width:760px){.modal:has(.integration-catalog){width:calc(100vw - 24px);height:calc(100vh - 24px);padding:18px}.modal:has(.integration-catalog) .modalhead{margin-bottom:14px}.integration-catalog{height:calc(100% - 64px);overflow-y:auto}.integration-categories{overflow:visible}.integration-catalog-list{overflow:visible;padding-right:2px}}.dashboard-updates{min-height:270px}.dashboard-updates .dashboard-table .avatar{width:40px;height:40px;flex:0 0 40px;font-size:11px}.dashboard-updates .dashboard-table td{padding:12px 0}.dashboard-updates .dashboard-table .person{gap:10px}.dashboard-updates .dashboard-table .mini{line-height:1.35}.sync-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.sync-step{display:flex;gap:13px;align-items:flex-start;min-height:128px;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--bg);box-sizing:border-box}.sync-step-number{display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;border-radius:9px;background:rgba(6,88,246,.14);color:var(--brand);font-size:12px;font-weight:750}.sync-step b{display:block;font-size:14px;margin:2px 0 8px}.sync-step p{margin:0;line-height:1.45}@media(max-width:800px){.demo-reset-row>div:first-child{width:auto}.sync-steps{grid-template-columns:1fr}.sync-step{min-height:0}}.close{transition:opacity .08s ease}.close:hover{opacity:.68}.close:focus-visible{outline:2px solid var(--brand);outline-offset:2px}.modal .formgrid>.field>input.input,.modal .formgrid>.field>select.input{width:100%;height:44px;min-height:44px;box-sizing:border-box;padding:0 12px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--text);font:inherit;line-height:44px}.modal .formgrid>.field>select.input{line-height:normal;cursor:pointer}.dark .modal .formgrid>.field>input.input,.dark .modal .formgrid>.field>select.input{background:#263244;color:var(--text);border-color:#465267}.modal .formgrid>.field>input.input:focus,.modal .formgrid>.field>select.input:focus{border-color:#aaa4ff;box-shadow:0 0 0 3px #eeeaff;outline:none}/* Unified modal form controls */
.modal{box-sizing:border-box}
.modal input.input,.modal select.input,.modal textarea.input{box-sizing:border-box;width:100%;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--text);font:inherit;outline:none;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}
.modal input.input,.modal select.input{height:44px;min-height:44px;padding:0 12px;line-height:normal}
.modal textarea.input{min-height:112px;padding:11px 12px;line-height:1.45;resize:vertical}
.modal input.input:focus,.modal select.input:focus,.modal textarea.input:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(6,88,246,.14);outline:none}
.modal input.input::placeholder,.modal textarea.input::placeholder{color:var(--muted);opacity:1}
.modal .field{gap:7px}.modal .field>label{font-size:12px;line-height:1.25;color:var(--muted);font-weight:650}
.modal .btn{min-height:40px;box-sizing:border-box;border-radius:9px;padding:9px 14px;font:inherit;line-height:1.2}
.modal .close{width:34px;height:34px;min-height:34px;padding:0;border-radius:9px;line-height:1}
.modal .platform-list,.modal .integration-categories,.modal .onboarding-modal-checklist{border-radius:9px}
.modal .platform-check,.modal .onboarding-check{border-radius:9px}
.modal .file-upload,.modal .resume-file-row{border-radius:9px}
.modal .resume-file-button,.modal .candidate-file-label{min-height:40px;height:40px;border-radius:9px}
.modal input[type=checkbox]{accent-color:var(--brand)}
/* Cross-browser select controls */
.modal select.input,select.input{appearance:none;-webkit-appearance:none;-moz-appearance:none;border-radius:9px!important;padding-right:42px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238994a7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:16px 16px}
.dark .modal select.input,.dark select.input{background-color:#263244;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c5ccda' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E")}
.modal select.input:focus,select.input:focus{border-radius:9px!important}
/* Borderless modal form fields */
.modal input.input,.modal select.input,.modal textarea.input{border-color:transparent!important;box-shadow:none!important}
.modal input.input:focus,.modal select.input:focus,.modal textarea.input:focus{border-color:transparent!important;box-shadow:none!important;outline:none!important}
/* Soft active-field focus state */
.input:focus,.modal input.input:focus,.modal select.input:focus,.modal textarea.input:focus{border-color:rgba(104,151,246,.82)!important;box-shadow:0 0 0 2px rgba(104,151,246,.16)!important;outline:none!important}
/* Restore visible textarea surface */
.modal textarea.input{background:#fff!important;border-color:transparent!important;min-height:112px;padding:11px 12px;resize:vertical}
.dark .modal textarea.input{background:#263244!important;color:var(--text);border-color:transparent!important}
.modal textarea.input:focus{border-color:rgba(104,151,246,.82)!important;box-shadow:0 0 0 2px rgba(104,151,246,.16)!important}
.platform-select-button{height:36px;min-height:36px;padding:7px 11px;font-size:12px;border-radius:8px}.platform-check:hover{background:rgba(128,142,166,.12)}.dark .platform-check:hover{background:rgba(255,255,255,.055)}.cancel-button:hover{background:rgba(220,70,80,.13);border-color:rgba(220,70,80,.3);color:var(--red)}.dark .cancel-button:hover{background:rgba(239,96,105,.14);border-color:rgba(239,96,105,.3);color:#ff9da5}.dashboard-candidate-button:hover{background:rgba(0,0,0,.045);border-color:var(--line);color:var(--text)}.dark .dashboard-candidate-button:hover{background:rgba(255,255,255,.055);border-color:#465267;color:var(--text)}.modalhead .candidate-edit-button,.modalhead .candidate-save-button{height:34px;min-height:34px;box-sizing:border-box;padding:0 12px;border:0!important;border-color:transparent!important;background:transparent;color:var(--text);border-radius:9px;display:inline-flex;align-items:center;justify-content:center;line-height:1}.modalhead .candidate-edit-button:hover,.modalhead .candidate-save-button:hover{background:rgba(0,0,0,.045);border-color:transparent!important;color:var(--text)}.dark .modalhead .candidate-edit-button:hover,.dark .modalhead .candidate-save-button:hover{background:rgba(255,255,255,.055);border-color:transparent!important;color:var(--text)}#candFilter{appearance:none;-webkit-appearance:none;-moz-appearance:none;background-color:#fff!important;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiM4OTk0YTciIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48cGF0aCBkPSJtNyAxMCA1IDUgNS01Ii8+PC9zdmc+")!important;background-repeat:no-repeat!important;background-position:right 12px center!important;background-size:16px 16px!important;padding-right:40px!important;border-radius:9px!important}body.dark #candFilter{background-color:#263244!important}
/* Final select arrow normalization: prevent repeated decorative arrows in filters. */
select.input,
select,
#analytics select.input {
  -webkit-appearance: none;
  appearance: none;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 14px 14px !important;
  padding-right: 40px !important;
}

.integration-settings-title{display:flex;align-items:center;gap:14px}.integration-settings-title .intlogo{width:48px;height:48px;flex:0 0 48px}.integration-settings-title h2{margin:0 0 4px}.settings-online{color:#19a875}.integration-settings-intro{display:flex;justify-content:space-between;align-items:center;margin:4px 0 18px;padding:12px 14px;background:rgba(6,88,246,.08);border-radius:12px}.integration-last-sync{display:flex;justify-content:space-between;align-items:center;margin-top:14px;padding:12px 14px;border-radius:12px;background:var(--surface-2);font-size:13px}.check-row{display:flex;align-items:center;gap:9px;margin:10px 0;color:var(--text)}.check-row input{accent-color:var(--brand)}.integration-danger-button{color:#ff9b9b!important}.integration-danger-button:hover{background:rgba(221,72,72,.18)!important;color:#ffb0b0!important}

/* Keep Screening action text readable on light-theme hover. */
#modalContent .response-screening:hover,
.response-grid .response-screening:hover {
  background: rgba(6,88,246,.28) !important;
  border-color: rgba(6,88,246,.58) !important;
  color: #174aa8 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}
.dark #modalContent .response-screening:hover,
.dark .response-grid .response-screening:hover {
  color: #d2e1ff !important;
}
.demo-reset-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px;padding:14px 0 0;border-top:1px solid var(--line)}.demo-reset-button,.demo-reset-confirm{color:#e890a0;border-color:rgba(220,90,110,.3);white-space:nowrap;min-width:132px;flex:0 0 auto}.demo-reset-button:hover,.demo-reset-confirm:hover{background:rgba(220,68,78,.18);border-color:rgba(220,68,78,.48);color:#ff8f98}
body.dark .demo-reset-button:hover,
body.dark .demo-reset-confirm:hover {
  background: rgba(239,96,105,.24) !important;
  border-color: rgba(239,96,105,.58) !important;
  color: #ffc1c5 !important;
  opacity: 1 !important;
}

.integration-settings-actions{display:flex;align-items:center;gap:10px;width:100%}.integration-settings-actions-spacer{flex:1}.integration-sync-button{border-color:rgba(6,88,246,.32);color:var(--text);transition:background .18s ease,border-color .18s ease,color .18s ease,transform .16s ease}.integration-sync-button:hover{background:rgba(6,88,246,.14);border-color:rgba(6,88,246,.58);color:var(--text);transform:translateY(-1px)}.integration-sync-button:active{transform:translateY(0) scale(.98)}body.dark .integration-sync-button:hover{background:rgba(75,137,255,.18);border-color:rgba(111,165,255,.65);color:#dce9ff}
.offboarding-events-section{margin-top:16px}.offboarding-event-person{display:flex;align-items:center;gap:10px;min-width:0}.offboarding-event-avatar{width:34px;height:34px;border-radius:50%;overflow:hidden;background:var(--panel);display:grid;place-items:center;color:var(--brand);font-size:11px;font-weight:700;flex:0 0 34px}.offboarding-event-avatar img{width:100%;height:100%;object-fit:cover;display:block}.offboarding-calendar-row{grid-template-columns:54px 1fr auto;gap:14px;padding:11px 0}.offboarding-calendar-row:hover{background:rgba(6,88,246,.05);color:var(--text);border-radius:9px;padding-left:8px;padding-right:8px}.dark .offboarding-calendar-row:hover{background:rgba(75,137,255,.1)}.toast{left:50%;right:auto;bottom:24px;z-index:10000;max-width:min(420px,calc(100vw - 260px));width:max-content;text-align:center;transform:translate(-50%,10px)}.toast.show{transform:translate(-50%,0)}.platform-reset-button{color:var(--muted)}@media(max-width:700px){.toast{max-width:calc(100vw - 32px);width:calc(100vw - 32px);bottom:18px}}/* Vertical offboarding funnel preview: stages in rows, people cards side by side. */
.offboarding-funnel{display:flex;flex-direction:column;gap:12px;overflow:visible;padding:2px}.offboarding-stage{display:grid;grid-template-columns:220px repeat(3,minmax(190px,1fr));gap:10px;align-items:start;min-height:0;padding:12px 14px;border-radius:14px}.offboarding-stage-head{grid-column:1;grid-row:1 / span 2;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:8px;min-height:92px;padding:4px 14px 4px 2px;border:0;border-right:1px solid var(--line)}.offboarding-stage-head b{font-size:14px;line-height:1.3}.stage-count{font-size:12px;padding:5px 9px;border-radius:99px;background:rgba(6,88,246,.1);color:var(--brand)}.offboarding-person{margin:0;min-width:0;min-height:82px;padding:12px 10px}.offboarding-stage>.mini{grid-column:2 / -1;padding:18px 4px}.offboarding-stage.drag-over{border-color:var(--brand);background:rgba(6,88,246,.06)}
@media(max-width:900px){.offboarding-stage{grid-template-columns:180px repeat(2,minmax(180px,1fr))}.offboarding-stage-head{grid-row:1 / span 3}}
@media(max-width:700px){.offboarding-stage{grid-template-columns:1fr;gap:8px}.offboarding-stage-head{grid-column:1;grid-row:auto;min-height:0;padding:2px 0 9px;border-right:0;border-bottom:1px solid var(--line);flex-direction:row;align-items:center;justify-content:space-between}.offboarding-person,.offboarding-stage>.mini{grid-column:1}.offboarding-person{min-height:70px}}
.offboarding-month-grid{margin-top:4px}.offboarding-calendar-event{display:flex;flex-direction:column;gap:2px;white-space:normal;min-height:38px}.offboarding-calendar-event span,.offboarding-calendar-event small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.offboarding-calendar-event small{font-size:9px;opacity:.85}.offboarding-stage-0{background:#fff4d9;color:#a86f00}.offboarding-stage-1{background:#e5f7ef;color:#14875e}.offboarding-stage-2{background:#e8f0ff;color:#2463b4}.offboarding-stage-3{background:#f0eaff;color:#6955ba}.offboarding-stage-4{background:#ffe8eb;color:#c63845}.offboarding-stage-5{background:#e6f1ff;color:#1664b7}.dark .offboarding-calendar-event{filter:saturate(.85) brightness(.82)}.dark .offboarding-stage-0{background:rgba(190,135,20,.22);color:#e4b85a}.dark .offboarding-stage-1{background:rgba(20,145,93,.2);color:#62c99a}.dark .offboarding-stage-2{background:rgba(36,99,180,.24);color:#82adf1}.dark .offboarding-stage-3{background:rgba(105,85,186,.24);color:#b2a4ef}.dark .offboarding-stage-4{background:rgba(198,56,69,.22);color:#f08b96}.dark .offboarding-stage-5{background:rgba(22,100,183,.24);color:#82b7f4}@media(max-width:700px){.offboarding-month-grid .calendar-day{min-height:76px}.offboarding-month-grid .calendar-event{font-size:9px;padding:4px}.offboarding-month-grid .calendar-event small{font-size:8px}}.offboarding-stage-head{border-right:0}.offboarding-calendar-event{transition:transform .16s ease,background-color .16s ease;transform-origin:center}.offboarding-calendar-event:hover{transform:scale(1.035)}.offboarding-stage{grid-template-columns:220px minmax(0,1fr)}.offboarding-stage-head{grid-column:1;grid-row:auto}.offboarding-stage-people{grid-column:2;display:grid;grid-template-columns:repeat(3,minmax(190px,1fr));gap:10px;align-items:start}.offboarding-stage-people .offboarding-person{margin:0}.offboarding-stage-people>.mini{padding:18px 4px}.offboarding-stage>.mini{grid-column:2}@media(max-width:900px){.offboarding-stage{grid-template-columns:180px minmax(0,1fr)}.offboarding-stage-people{grid-template-columns:repeat(2,minmax(180px,1fr))}}@media(max-width:700px){.offboarding-stage{grid-template-columns:1fr}.offboarding-stage-head{grid-column:1}.offboarding-stage-people{grid-column:1;grid-template-columns:1fr}.offboarding-stage>.mini{grid-column:1}}.calendar-event{transition:transform .16s ease,background-color .16s ease;transform-origin:center}.calendar-event:hover{transform:scale(1.035)}.preference-select{width:auto;min-width:190px}.preference-time{display:flex;align-items:center;gap:8px}.preference-time .input{width:118px}@media(max-width:700px){.preference-select{width:100%;min-width:0}.preference-time{width:100%}.preference-time .input{flex:1;width:auto}}.settings-card-title + .setting-row select:focus{}.btn:disabled,.btn[disabled]{opacity:.48;cursor:not-allowed;filter:saturate(.55);pointer-events:none}.template-tabs{display:flex;flex-wrap:wrap;gap:8px}.template-tab{white-space:nowrap}@media(max-width:700px){.template-tabs{gap:6px}.template-tab{flex:1 1 calc(50% - 6px)}}.dark .offboarding-stage-head .stage-count{background:#344154;color:#aeb9c8}.offboarding-stage-head .stage-count{font-weight:500} .security-session-card,.security-history-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;border-radius:12px;background:var(--panel);border:1px solid var(--line)}.security-session-card small{display:block;color:var(--muted);font-size:11px;margin:5px 0 0}.security-modal-list,.security-history-list{display:grid;gap:10px}.security-history-row{justify-content:flex-start}.security-history-row span{flex:1;color:var(--muted);font-size:12px}.security-history-row em{font-style:normal}.dark .security-session-card,.dark .security-history-row{background:#263244}@media(max-width:800px){.security-history-row{align-items:flex-start;flex-wrap:wrap}.security-history-row span{flex-basis:100%}}.backup-codes-generating{text-align:center;padding:28px 12px 22px}.backup-codes-spinner{width:42px;height:42px;margin:0 auto 14px;border:3px solid var(--line);border-top-color:var(--brand);border-radius:50%;animation:backupSpin .75s linear infinite}.backup-codes-generating p{margin:7px 0 0}.backup-codes-result{padding:4px 0 8px}.backup-codes-list{display:grid;gap:8px}.backup-code-row{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:10px;background:var(--panel);border:1px solid var(--line)}.backup-code-row>span{width:20px;color:var(--muted);font-size:12px}.backup-code-row code{flex:1;letter-spacing:2px;font-size:15px}.backup-code-row .icon-btn{border:0;background:transparent;color:var(--muted);cursor:pointer;font-size:18px}.backup-code-row .icon-btn:hover{color:var(--brand)}.backup-codes-note{margin-top:12px;padding:10px 12px;border-radius:9px;background:color-mix(in srgb,var(--brand) 10%,transparent);color:var(--muted);font-size:11px}@keyframes backupSpin{to{transform:rotate(360deg)}}.backup-actions{display:flex;align-items:center;gap:8px}.backup-view-button{min-width:46px;padding:10px 13px;font-size:20px;line-height:1}.backup-view-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.backup-view-button:hover{color:var(--brand)}.demo-reset-row>div:first-child{width:50%;max-width:520px}.demo-reset-description{margin:0;font-size:11px}.storage-segmented{display:flex;gap:2px;background:var(--bg)}.storage-segmented i{display:block;height:100%;border-radius:0}.storage-segmented i:first-child{width:24%;background:#3274ff;border-radius:10px 0 0 10px}.storage-segmented i:nth-child(2){width:8.6%;background:#9b6cff}.storage-segmented i:nth-child(3){width:5.4%;background:#f09a55;border-radius:0 10px 10px 0}.storage-legend{display:flex;flex-wrap:wrap;gap:8px 18px;color:var(--muted);font-size:11px;margin:9px 0 17px}.storage-legend span{display:inline-flex;align-items:center;gap:6px}.storage-legend i{width:8px;height:8px;border-radius:50%;display:inline-block}.legend-resumes{background:#3274ff}.legend-documents{background:#9b6cff}.legend-files{background:#f09a55}.legend-free{background:#344154}.storage-manage-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:17px;padding-top:16px;border-top:1px solid var(--line)}.storage-manage-row p{margin:0;color:var(--muted);font-size:11px}.finder-toolbar{display:flex;align-items:center;gap:8px;padding:9px 11px;border:1px solid var(--line);border-radius:10px;background:var(--panel);margin-bottom:13px}.finder-nav{width:26px;height:26px;border:0;border-radius:7px;background:var(--bg);color:var(--text);font-size:19px}.finder-path{font-size:12px;font-weight:600;margin-left:5px}.finder-search{margin-left:auto;color:var(--muted);font-size:11px;background:var(--bg);padding:6px 10px;border-radius:7px}.finder-layout{display:grid;grid-template-columns:130px 1fr;gap:14px;min-height:220px}.finder-sidebar{display:flex;flex-direction:column;gap:8px;padding:8px 5px;color:var(--muted);font-size:11px}.finder-sidebar b{color:var(--text);font-size:10px;text-transform:uppercase;letter-spacing:.05em;margin:4px 0}.finder-sidebar span{padding:5px 7px;border-radius:6px}.finder-sidebar span:hover{background:var(--bg);color:var(--text)}.finder-tag{display:flex;align-items:center;gap:6px}.finder-tag i{width:7px;height:7px;border-radius:50%}.tag-blue{background:#3274ff}.tag-orange{background:#f09a55}.finder-files{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;align-content:start}.finder-file-card{display:flex;flex-direction:column;gap:5px;padding:12px 9px;border-radius:10px;background:var(--panel);border:1px solid var(--line);min-width:0}.finder-file-card:hover{border-color:var(--brand);transform:translateY(-1px)}.finder-file-card b{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.finder-file-card small{color:var(--muted);font-size:10px}.finder-file-icon{width:40px;height:44px;border-radius:7px;display:grid;place-items:center;font-size:9px;font-weight:800;color:#fff}.finder-file-icon.pdf{background:#ef6a75}.finder-file-icon.doc{background:#3274ff}.finder-file-icon.img{background:#39a87b}.finder-file-icon.xls{background:#6c8fdb}@media(max-width:800px){.storage-manage-row{align-items:flex-start;flex-direction:column}.finder-layout{grid-template-columns:1fr}.finder-sidebar{display:none}.finder-files{grid-template-columns:repeat(2,1fr)}}.finder-modal{width:min(860px,100%);padding:22px 24px}.finder-modal .modalhead{margin-bottom:16px}.finder-modal .modalhead h2{font-size:19px}.finder-modal .finder-layout{min-height:0;gap:12px}.finder-modal .finder-toolbar{margin-bottom:11px;padding:8px 10px}.finder-modal .finder-sidebar{gap:6px;padding:5px 4px}.finder-modal .finder-sidebar b{margin:5px 0 2px}.finder-modal .finder-files{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.finder-modal .finder-file-card{min-height:126px;padding:11px 10px}.finder-modal .finder-file-icon{width:36px;height:40px}.finder-modal .modalfoot{margin-top:14px}@media(max-width:800px){.finder-modal .finder-files{grid-template-columns:repeat(2,minmax(0,1fr))}}.finder-modal .finder-toolbar{background:#27364a;border-color:#3b4c63}.finder-modal .finder-nav{display:grid;place-items:center;width:30px;height:30px;padding:0;background:#34455b;color:#eef3fb;font-size:21px;line-height:1}.finder-modal .finder-search{background:#34455b;color:#e0e7f1;padding:7px 11px}.finder-modal .finder-layout{grid-template-columns:155px 1fr;gap:16px}.finder-modal .finder-sidebar{font-size:12px;padding:7px 6px;gap:7px}.finder-modal .finder-sidebar b{font-size:10px}.finder-modal .finder-sidebar span{padding:6px 8px}.finder-modal .finder-files{background:#202d3e;border:1px solid #33445a;border-radius:12px;padding:12px}.finder-modal .finder-footer{justify-content:space-between;align-items:center}.finder-summary{color:var(--muted);font-size:12px}.finder-summary i{font-style:normal;margin:0 4px;color:#65758c}.finder-modal .finder-nav svg{width:17px;height:17px;display:block;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.finder-modal .finder-search{display:inline-flex;align-items:center;gap:6px}.finder-modal .finder-search svg{width:14px;height:14px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}.finder-modal .finder-sidebar{background:#202d3e;border:1px solid #33445a;border-radius:12px;padding:12px 10px}.finder-modal .finder-sidebar span{padding:6px 8px}.storage-card .setting-row{border-bottom:0}.storage-card .storage-manage-row{border-top:0}.storage-card .storage-manage-row .btn{white-space:nowrap;min-width:205px}.plan-card-interactive{cursor:pointer;transition:transform .16s ease,border-color .16s ease}.plan-card-interactive:hover{transform:translateY(-2px);border-color:var(--brand)}.plan-card-interactive:focus-visible{outline:2px solid var(--brand);outline-offset:3px}.plan-modal-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.plan-option{display:flex;flex-direction:column;padding:16px 14px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.plan-option.featured{border-color:var(--brand);box-shadow:0 0 0 1px rgba(6,88,246,.22)}.plan-option-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.plan-option h3{margin:0;font-size:16px}.plan-option-price{font-size:20px;font-weight:800;margin:14px 0 8px;color:var(--brand)}.plan-option-price small{font-size:10px;color:var(--muted);font-weight:500}.plan-option-description{min-height:48px;margin:0 0 13px;color:var(--muted);font-size:11px;line-height:1.45}.plan-option ul{display:grid;gap:8px;margin:0;padding:0;list-style:none;color:var(--muted);font-size:11px}.plan-option li::before{content:'✓';color:#28a879;margin-right:7px;font-weight:700}.plan-option .badge{white-space:nowrap;font-size:10px}@media(max-width:800px){.plan-modal-grid{grid-template-columns:1fr}.plan-option-description{min-height:0}}.plan-modal-shell{width:min(1080px,100%);padding:32px;background:linear-gradient(135deg,#eef2ff,#f8f9ff);border:1px solid #dfe4ff}.plan-modal-shell .plan-option{transition:transform .18s cubic-bezier(.23,1,.32,1),box-shadow .18s ease}.plan-modal-shell .plan-option:hover{transform:scale(1.025);box-shadow:0 18px 38px rgba(24,38,75,.16);position:relative;z-index:1}.plan-modal-shell .modalhead{margin-bottom:28px}.plan-modal-shell .modalhead h2{font-size:28px;letter-spacing:-.02em}.plan-modal-shell .modalhead .mini{font-size:13px}.plan-modal-grid{gap:18px}.plan-option{min-height:370px;padding:24px 21px;border-radius:16px;background:rgba(255,255,255,.76);border-color:#dfe4ff;box-shadow:0 10px 25px rgba(52,66,120,.08)}.plan-option.featured{background:linear-gradient(145deg,#252d5d,#20283f);border:2px solid var(--brand);box-shadow:0 14px 32px rgba(6,88,246,.2)}.plan-option h3{font-size:21px}.plan-option-head .mini{font-size:12px}.plan-option-price{font-size:30px;margin:25px 0 12px}.plan-option-description{min-height:68px;font-size:13px;line-height:1.55}.plan-option ul{gap:11px;font-size:13px}.plan-modal-footer{margin-top:26px}.plan-modal-footer .btn{min-width:130px}.dark .plan-modal-shell{background:linear-gradient(135deg,#242b55,#202738);border-color:#414b85}.dark .plan-modal-shell .plan-option{background:rgba(31,41,55,.76);border-color:#414b63}.dark .plan-modal-shell .plan-option.featured{background:linear-gradient(145deg,#252d5d,#20283f);border-color:var(--brand)}@media(max-width:800px){.plan-modal-shell{padding:22px}.plan-modal-shell .modalhead h2{font-size:22px}.plan-option{min-height:0;padding:20px}.plan-option-price{font-size:26px}}.security-card .setting-row>.btn,.security-card .backup-actions .btn{transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease}.security-card .setting-row>.btn:hover,.security-card .backup-actions .btn:hover{background:transparent;border-color:rgba(6,88,246,.42);color:var(--text);transform:translateY(-1px)}body.dark .security-card .setting-row>.btn:hover,body.dark .security-card .backup-actions .btn:hover{background:transparent;border-color:rgba(92,145,255,.55);color:#f3f4f6}.backup-card .backup-auto-row{border-bottom:0}.backup-card .btn.primary{transition:background .16s ease,border-color .16s ease,box-shadow .16s ease}.backup-card .btn.primary:hover{background:#145fe0;border-color:#145fe0;box-shadow:0 3px 10px rgba(6,88,246,.18)}.backup-card .btn.primary{transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease}.backup-card .btn.primary:hover{background:rgba(6,88,246,.12);border-color:rgba(6,88,246,.42);color:var(--text);transform:translateY(-1px)}body.dark .backup-card .btn.primary:hover{background:rgba(73,126,255,.16);border-color:rgba(92,145,255,.55);color:#f3f4f6}.contact-channel-list{display:grid;gap:9px;margin-top:16px}.contact-channel{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:11px;background:var(--panel);color:var(--text);text-align:left;cursor:pointer;transition:background .16s ease,border-color .16s ease,transform .16s ease}.contact-channel:hover{background:rgba(6,88,246,.08);border-color:rgba(6,88,246,.35);transform:translateY(-1px)}.contact-channel img{width:24px;height:24px}.contact-channel span:not(.contact-logo){display:grid;gap:2px;flex:1}.contact-channel small{color:var(--muted)}.contact-channel i{font-size:22px;color:var(--muted);font-style:normal}.contact-logo{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;flex:0 0 26px}.whatsapp-logo{background:#25d366;color:#fff;font-size:18px;font-weight:800}.email-logo{background:#3b82f6;color:#fff}.phone-logo{background:#64748b;color:#fff}.contact-logo svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}.contact-chat-title{display:flex;align-items:center;gap:10px}.contact-chat-messages{display:grid;gap:9px;min-height:240px;max-height:360px;overflow:auto;padding:14px;border-radius:12px;background:var(--surface-2);margin-top:14px}.contact-message{max-width:78%;padding:9px 11px;border-radius:11px;font-size:12px;line-height:1.45;white-space:pre-wrap}.contact-message.assistant{justify-self:start;background:var(--panel);border:1px solid var(--line)}.contact-message.user{justify-self:end;background:rgba(6,88,246,.16);color:var(--text)}.contact-chat-form{display:flex;gap:8px;margin-top:12px}.contact-chat-form .input{flex:1}.contact-chat-form .btn{width:42px;padding:0}.contact-email-form{margin-top:14px}.contact-email-form .field{gap:7px}.email-signature{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.contact-attachment{display:inline-flex;align-items:center;gap:7px;width:max-content;margin-top:8px;color:var(--muted);font-size:12px;cursor:pointer}.contact-clip{font-size:18px;color:var(--brand)}.chat-logo{width:26px;height:26px}@media(max-width:600px){.contact-chat-messages{min-height:200px}.contact-email-form{grid-template-columns:1fr}}.contact-trigger{transition:background .16s ease,border-color .16s ease,color .16s ease}.contact-trigger:hover{background:rgba(6,88,246,.08);border-color:rgba(6,88,246,.34)}body.dark .contact-trigger:hover{background:rgba(73,126,255,.12);border-color:rgba(92,145,255,.45)}.contact-trigger-wrap{display:inline-flex;position:relative}.contact-hover-menu{position:fixed;z-index:120;min-width:168px;display:grid;gap:4px;padding:7px;border:1px solid var(--line);border-radius:12px;background:var(--panel);box-shadow:0 14px 34px rgba(0,0,0,.22)}.contact-hover-item{display:flex;align-items:center;gap:9px;width:100%;padding:9px 10px;border:0;border-radius:8px;background:transparent;color:var(--text);font:inherit;font-size:12px;text-align:left;cursor:pointer;transition:background .16s ease}.contact-hover-item:hover{background:rgba(6,88,246,.1)}.contact-hover-item img{width:20px;height:20px;border-radius:50%;background:#16a9e8;padding:3px;box-sizing:border-box}.contact-hover-item:nth-child(2) img{background:#25d366}.contact-hover-icon{width:20px;height:20px;border-radius:50%;display:grid;place-items:center}.contact-hover-icon svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.contact-trigger-wrap{position:relative;display:inline-flex}.contact-trigger-wrap>.contact-hover-menu{position:absolute;right:0;bottom:calc(100% + 6px);display:none;min-width:168px}.contact-trigger-wrap:hover>.contact-hover-menu,.contact-trigger-wrap:focus-within>.contact-hover-menu{display:grid}.contact-trigger{transition:background .16s ease,border-color .16s ease,color .16s ease}.contact-trigger:hover{background:rgba(6,88,246,.08);border-color:rgba(6,88,246,.34);color:var(--text)}body.dark .contact-trigger:hover{background:rgba(73,126,255,.12);border-color:rgba(92,145,255,.45);color:#f3f4f6}.contact-hover-menu{z-index:121;gap:4px;padding:7px;border:1px solid var(--line);border-radius:12px;background:var(--panel);box-shadow:0 14px 34px rgba(0,0,0,.22)}.contact-trigger-wrap>.contact-hover-menu.is-open{display:grid}
/* Contact demo chat polish */
.contact-chat-messages{height:248px;min-height:0;max-height:248px;overflow-y:auto;align-content:start;gap:10px;background:rgba(10,24,43,.42);border:1px solid rgba(120,150,190,.22);scroll-behavior:smooth}
.contact-message{display:flex;flex-direction:column;gap:5px;max-width:76%;padding:10px 12px;border:1px solid rgba(120,150,190,.2);box-shadow:0 4px 12px rgba(0,0,0,.08)}
.contact-message.assistant{background:rgba(52,72,99,.58);border-color:rgba(145,170,205,.28)}
.contact-message.user{background:rgba(37,91,201,.72);border-color:rgba(91,151,255,.4)}
.contact-message-meta{display:block;align-self:flex-end;font-size:10px;line-height:1;color:rgba(220,230,245,.62);white-space:nowrap}
.message-read{font-size:11px;letter-spacing:-2px;color:#8fc1ff;margin-left:3px}
.contact-chat-form{padding:5px;border:1px solid rgba(120,150,190,.28);border-radius:13px;background:rgba(38,56,79,.7);box-shadow:0 4px 16px rgba(0,0,0,.12)}
.contact-chat-form .input{min-height:42px;border:0!important;background:transparent!important;box-shadow:none!important;outline:none!important;color:var(--text)}
.contact-chat-form:focus-within{border-color:rgba(92,145,255,.72);box-shadow:0 0 0 3px rgba(92,145,255,.12)}
.contact-send-button{width:44px!important;height:42px!important;display:grid;place-items:center;padding:0!important;border-radius:10px!important}
.contact-send-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round;transform:rotate(-8deg)}
.contact-send-button:hover{filter:brightness(1.08);transform:translateY(-1px)}
.chat-logo{width:42px;height:42px;border-radius:50%;display:grid;place-items:center}
.telegram-chat-logo{width:42px;height:42px;border-radius:50%;background:#229ed9;padding:8px;box-sizing:border-box}
.whatsapp-logo{background:#25d366;color:#fff;font-size:18px;font-weight:800}
.whatsapp-logo svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:600px){.contact-chat-messages{height:220px;max-height:220px}}

/* Final messenger input and WhatsApp logo polish */
.whatsapp-chat-logo{width:42px;height:42px;border-radius:50%;object-fit:cover;display:block}
.contact-chat-form{align-items:center;padding:4px 5px;border:1px solid rgba(125,153,188,.32);background:rgba(38,56,79,.58);box-shadow:none;gap:8px}
.contact-chat-form:focus-within{border-color:rgba(125,153,188,.52);box-shadow:none}
.contact-chat-form .input{min-height:42px;height:42px;padding:0 10px}
.contact-chat-form .input:focus{outline:none!important;box-shadow:none!important}
.contact-send-button{align-self:center;flex:0 0 44px;transition:background .16s ease,border-color .16s ease,color .16s ease!important;transform:none!important}
.contact-send-button:hover{filter:none;transform:none!important;background:rgba(92,145,255,.22)!important;border-color:rgba(125,170,255,.55)!important}

/* Slightly larger Telegram icon in the contact channel menu */
.contact-channel.telegram-channel img{width:29px;height:29px}

/* Candidate email form polish */
.email-header-logo{width:42px;height:42px;flex:0 0 42px}
.email-header-logo svg{width:25px;height:25px}
.email-body-wrap{position:relative}
.email-body-wrap textarea{padding-bottom:42px}
.email-attachment-inside{position:absolute;right:12px;bottom:12px;display:inline-flex;align-items:center;gap:6px;padding:7px 9px;border-radius:8px;color:var(--muted);font-size:11px;cursor:pointer;transition:background .16s ease,color .16s ease}
.email-attachment-inside svg{width:18px;height:18px;fill:none;stroke:var(--brand);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.email-attachment-inside span{max-width:0;overflow:hidden;white-space:nowrap;transition:max-width .16s ease}
.email-attachment-inside:hover{background:rgba(6,88,246,.1);color:var(--text)}
.email-attachment-inside:hover span{max-width:160px}
.email-signature-input{min-height:64px;resize:vertical}

/* CEO approvals */
.approval-button{position:relative;display:inline-flex;align-items:center;gap:7px}.approval-count{display:inline-grid;place-items:center;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#ef4444;color:#fff;font-size:11px;font-weight:800;line-height:1}.approval-list{display:grid;gap:12px;max-height:62vh;overflow:auto;padding:2px 3px 4px}.approval-request-card{padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2)}.approval-request-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.approval-request-meta{display:flex;gap:14px;flex-wrap:wrap;margin:13px 0;color:var(--muted);font-size:12px}.approval-request-message,.approval-response{padding:11px 13px;border-radius:10px;background:rgba(6,88,246,.07);border:1px solid rgba(6,88,246,.14);font-size:12px}.approval-request-message p,.approval-response p{margin:5px 0 0;line-height:1.5}.approval-response{margin-top:8px;background:rgba(34,197,94,.08);border-color:rgba(34,197,94,.2)}.approval-request-actions{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap}.approval-request-actions .btn{font-size:12px}.approval-approve{color:#fca5a5;border-color:rgba(239,68,68,.35)}.approval-approve:hover{background:rgba(239,68,68,.12);border-color:rgba(239,68,68,.55)}.approval-empty{text-align:center;padding:48px 24px;color:var(--muted)}.approval-empty-icon{width:44px;height:44px;margin:0 auto 12px;display:grid;place-items:center;border-radius:50%;background:rgba(34,197,94,.12);color:#4ade80;font-size:22px}.approval-empty h3{margin:0 0 6px;color:var(--text)}.approval-empty p{margin:0}.approval-reply-input{min-height:120px}@media(max-width:700px){.approval-request-head{flex-direction:column}.approval-request-actions .btn{flex:1}}

/* Consistent restrained hover for approvals and its modal actions */
.approval-button{transition:background .16s ease,color .16s ease,border-color .16s ease;box-shadow:none!important;transform:none!important}
.approval-button:hover{background:rgba(6,88,246,.1);border-color:rgba(6,88,246,.32);box-shadow:none!important;transform:none!important}
#modal .btn{box-shadow:none!important;transform:none!important;transition:background .16s ease,color .16s ease,border-color .16s ease}
#modal .btn:hover{background:rgba(6,88,246,.1);border-color:rgba(6,88,246,.32);box-shadow:none!important;transform:none!important}
#modal .btn.primary:hover{background:rgba(6,88,246,.22);border-color:rgba(92,145,255,.42);color:var(--text)}
#modal .approval-approve:hover{background:rgba(239,68,68,.1);border-color:rgba(239,68,68,.38)}

.candidate-comment-save{white-space:nowrap}

/* Response AI score uses the brand blue star badge */
.response-ai-score{display:inline-flex;align-items:center;gap:6px;color:var(--text)!important;font-weight:700}
.response-ai-icon{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:linear-gradient(135deg,#766dff,#0658f6);color:#fff;font-style:normal;font-size:12px;line-height:1;box-shadow:none}

/* Demo resume viewer — enabled for one pilot candidate */
.resume-demo-link{display:flex;align-items:center;gap:8px;width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--text);text-align:left;cursor:pointer;transition:background .16s ease,border-color .16s ease}.resume-demo-link:hover{background:rgba(128,140,160,.10);border-color:rgba(128,140,160,.28)}.resume-demo-link b:last-child{margin-left:auto;color:var(--brand);font-size:11px}.demo-resume-title{display:flex;align-items:center;gap:10px}.demo-file-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#ef4444;color:#fff;font-size:11px;font-weight:800}.demo-resume-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0}.demo-resume-tools{display:flex;gap:7px}.demo-resume-tools .btn{font-size:11px}.demo-resume-page{padding:28px 32px;background:#fff;color:#1f2937;border-radius:10px;box-shadow:0 12px 26px rgba(0,0,0,.18);max-height:65vh;overflow:auto}.demo-resume-page-head{display:flex;justify-content:space-between;gap:18px;padding-bottom:18px;border-bottom:2px solid #e5e7eb}.demo-resume-page-head h1{margin:0;font-size:25px}.demo-resume-page-head h2{margin:5px 0;color:#2563eb;font-size:15px}.demo-resume-page-head p{margin:8px 0 0;color:#6b7280;font-size:12px}.demo-resume-score{display:grid;place-items:center;align-content:center;min-width:70px;height:70px;border-radius:50%;background:#eff6ff;color:#2563eb}.demo-resume-score span{font-size:11px;font-weight:700}.demo-resume-score b{font-size:22px;line-height:1}.demo-resume-score small{font-size:10px}.demo-resume-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:28px;margin-top:18px}.demo-resume-page h3{margin:0 0 8px;font-size:13px;color:#1d4ed8}.demo-resume-page section{margin-bottom:20px}.demo-resume-page p,.demo-resume-page span,.demo-resume-page li{font-size:12px;line-height:1.55}.demo-resume-entry{display:grid;gap:4px;margin-bottom:12px}.demo-resume-entry span{color:#4b5563}.demo-resume-tags{display:flex;flex-wrap:wrap;gap:6px}.demo-resume-tags span{padding:5px 8px;border-radius:6px;background:#eff6ff;color:#1d4ed8}.demo-resume-page footer{padding-top:14px;border-top:1px solid #e5e7eb;color:#9ca3af;font-size:10px}@media(max-width:700px){.demo-resume-toolbar,.demo-resume-page-head{align-items:flex-start;flex-direction:column}.demo-resume-grid{grid-template-columns:1fr}.demo-resume-page{padding:20px 18px}}

/* Demo resume contrast and restrained document headings */
.demo-resume-page h1,.demo-resume-page h3{color:#1f3a5f!important}.demo-resume-page h2{color:#2563eb!important}.demo-resume-entry b{color:#243b53!important}.demo-resume-page aside h3{color:#1f3a5f!important}.demo-resume-page footer{color:#64748b!important}

/* Response card spacing and restrained action hovers */
.response-card{padding:18px 18px 17px}
.response-card .person{margin-bottom:15px}
.response-meta{margin:0 0 12px;min-height:22px;align-items:center}
.response-card .resume-demo-link{margin-top:6px;margin-bottom:15px;padding:9px 14px;min-height:46px}
.response-actions{margin-top:0;gap:12px}
.response-actions .btn{box-shadow:none!important;transform:none!important}
#modal .response-reject:hover{background:rgba(239,68,68,.14)!important;border-color:rgba(239,68,68,.48)!important;color:#ff9da5!important;box-shadow:none!important;transform:none!important}
.dark #modal .response-reject:hover{background:rgba(239,96,105,.2)!important;border-color:rgba(239,96,105,.5)!important;color:#ffc1c5!important}

/* Response source logos, dates and sorting */
.response-avatar-wrap{position:relative;display:inline-block;width:44px;height:44px;flex:0 0 44px}.response-avatar-wrap>.avatar{width:44px;height:44px}.response-source-logo{position:absolute;right:-5px;top:-6px;width:20px;height:20px;padding:3px;border-radius:50%;background:var(--panel);border:1px solid var(--line);object-fit:contain}.response-card .person{align-items:center}.response-date{color:var(--muted);font-size:11px}.responses-toolbar{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin:12px 0 14px}.response-sort-select{width:auto;min-width:180px;padding:8px 30px 8px 11px;font-size:12px}.response-meta .response-ai-score{margin:0}.response-demo-link{color:var(--muted)!important}.resume-demo-link b:last-child{color:var(--muted)!important}.resume-demo-link:hover b:last-child{color:var(--text)!important}

.response-card .person{gap:14px}
.response-card .person>div{min-width:0;padding-left:2px}

.responses-toolbar{margin:10px 0 12px}
.response-sort-select{width:174px!important;min-width:174px;max-width:174px;height:30px;padding:5px 26px 5px 10px;font-size:10.5px;border-radius:8px}

/* Pilot candidate profile redesign */
.redesigned-profile{padding:2px 2px 0}.redesigned-profile-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding:2px 0 20px;border-bottom:1px solid var(--line)}.redesigned-person{display:flex;gap:16px;align-items:center}.redesigned-avatar{width:72px;height:72px;overflow:hidden;border-radius:22px;background:var(--panel);display:grid;place-items:center;color:var(--brand);font-size:22px;font-weight:700}.redesigned-avatar img{width:100%;height:100%;object-fit:cover}.redesigned-eyebrow,.section-kicker{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:700}.redesigned-profile h2{margin:5px 0 3px;font-size:24px}.redesigned-person p{margin:0;color:var(--muted)}.redesigned-head-tags{display:flex;align-items:center;gap:9px;margin-top:10px}.redesigned-rating{font-weight:700;color:#f0b95a}.redesigned-profile-actions{display:flex;gap:10px;align-items:center}.redesigned-profile-actions .close{position:static}.redesigned-profile-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(290px,.75fr);gap:16px;margin-top:16px}.redesigned-main{display:grid;gap:12px}.redesigned-section,.redesigned-chat{padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}.redesigned-section h3,.redesigned-chat h3{margin:4px 0 8px;font-size:16px}.redesigned-section p{line-height:1.5}.redesigned-contact-row{display:flex;gap:16px;flex-wrap:wrap;margin-top:13px;color:var(--muted);font-size:12px}.redesigned-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.demo-file-pill{font-size:10px;color:var(--muted);padding:5px 8px;border:1px solid var(--line);border-radius:7px}.redesigned-resume-link{margin-top:12px;background:rgba(128,140,160,.06)}.redesigned-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.redesigned-info-grid>div{padding:11px;border-radius:10px;background:rgba(128,140,160,.06)}.redesigned-info-grid h4{margin:0 0 5px;font-size:12px}.redesigned-info-grid p{margin:0;font-size:12px;color:var(--muted)}.redesigned-tags{margin-top:12px}.redesigned-section-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:9px}.redesigned-section-foot .btn{font-size:11px}.redesigned-chat{display:flex;flex-direction:column;min-height:470px}.redesigned-chat-head{display:flex;justify-content:space-between;align-items:flex-start}.chat-online-dot{color:#42c982;font-size:13px}.redesigned-chat-messages{display:grid;gap:9px;margin:16px 0;flex:1;align-content:start}.team-chat-message{padding:10px 11px;border-radius:11px;background:rgba(6,88,246,.07);border:1px solid rgba(6,88,246,.12)}.team-chat-message-head{display:flex;justify-content:space-between;gap:8px;font-size:11px}.team-chat-message-head span{color:var(--muted);font-size:10px}.team-chat-message p{margin:5px 0 0;font-size:12px;line-height:1.45}.redesigned-chat-compose{display:grid;gap:8px}.redesigned-chat-compose textarea{width:100%;resize:vertical;min-height:54px;padding:9px 10px;border-radius:9px;border:1px solid var(--line);background:var(--bg);color:var(--text);font:inherit;font-size:12px}.redesigned-chat-compose .btn{justify-self:end;font-size:11px}@media(max-width:800px){.redesigned-profile-head{flex-direction:column}.redesigned-profile-grid{grid-template-columns:1fr}.redesigned-chat{min-height:360px}}

/* Wide candidate workspace pilot */
#modal:has(.anna-workspace){align-items:flex-start;padding:4vh 2vw}#modal:has(.anna-workspace) .modal{width:min(1240px,96vw);max-width:none;max-height:92vh;padding:0;overflow:hidden}#modal:has(.anna-workspace) #modalContent{padding:0}.anna-workspace-shell{display:flex;flex-direction:column;max-height:92vh}.anna-workspace-header{display:flex;justify-content:space-between;gap:20px;padding:24px 28px 18px;background:var(--panel);border-bottom:1px solid var(--line)}.anna-workspace-person{display:flex;gap:16px;align-items:center}.anna-workspace-avatar{width:68px;height:68px;border-radius:18px;overflow:hidden;background:var(--bg);display:grid;place-items:center;color:var(--brand);font-size:22px;font-weight:700}.anna-workspace-avatar img{width:100%;height:100%;object-fit:cover}.anna-workspace-header h2{margin:5px 0 3px;font-size:25px}.anna-workspace-header p{margin:0;color:var(--muted)}.anna-workspace-badges{display:flex;gap:10px;align-items:center;margin-top:10px}.anna-workspace-rating{color:#f0b95a;font-weight:700}.anna-workspace-actions{display:flex;gap:10px;align-items:flex-start}.anna-workspace-actions .close{position:static}.anna-workspace-tabs{display:flex;gap:4px;padding:0 28px;background:var(--panel);border-bottom:1px solid var(--line)}.anna-workspace-tab{border:0;background:transparent;color:var(--muted);padding:13px 15px;border-bottom:2px solid transparent;cursor:pointer;font:inherit;font-size:12px;transition:background .16s ease,color .16s ease}.anna-workspace-tab:hover{background:rgba(128,140,160,.1);color:var(--text)}.anna-workspace-tab.active{color:var(--text);border-bottom-color:var(--brand);font-weight:700}.anna-workspace-body{overflow:auto;padding:22px 28px 28px;background:var(--bg)}.anna-workspace-columns{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr);gap:16px}.anna-workspace-main,.anna-workspace-side,.anna-resume-actions,.anna-history-layout aside{display:grid;gap:16px;align-content:start}.anna-panel{padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}.anna-panel h3{margin:5px 0 8px;font-size:17px}.anna-panel p{line-height:1.55}.anna-facts{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:16px}.anna-facts div{padding:11px;border-radius:10px;background:rgba(128,140,160,.07)}.anna-facts span{display:block;color:var(--muted);font-size:10px;margin-bottom:4px}.anna-facts b{font-size:12px;word-break:break-word}.anna-panel-head{display:flex;justify-content:space-between;gap:12px}.anna-resume-summary{margin:15px 0;padding:15px;border-radius:11px;background:rgba(128,140,160,.07)}.anna-resume-summary h4{margin:0 0 3px;font-size:17px}.anna-resume-summary b{color:var(--brand);font-size:12px}.anna-resume-summary p{font-size:12px;margin:9px 0}.anna-open-resume{margin-top:14px}.anna-panel-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:10px}.anna-panel-actions .btn{font-size:11px}.anna-chat-panel{min-height:300px;display:flex;flex-direction:column}.anna-chat-messages{display:grid;gap:9px;margin:15px 0;flex:1;align-content:start}.anna-chat-message{padding:10px 12px;border-radius:10px;background:rgba(6,88,246,.07);border:1px solid rgba(6,88,246,.12)}.anna-chat-message>div{display:flex;justify-content:space-between;gap:8px;font-size:11px}.anna-chat-message>div span{color:var(--muted);font-size:10px}.anna-chat-message p{margin:5px 0 0;font-size:12px}.anna-chat-compose{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:end}.anna-chat-compose textarea{width:100%;resize:vertical;min-height:45px;padding:9px;border-radius:9px;border:1px solid var(--line);background:var(--bg);color:var(--text);font:inherit;font-size:12px}.anna-chat-compose .btn{font-size:11px}.anna-resume-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:16px;align-items:start}.anna-document{padding:34px 42px;background:#fff;color:#243447;border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.14)}.anna-document header{display:flex;justify-content:space-between;gap:20px;padding-bottom:18px;border-bottom:2px solid #dbe4ef}.anna-document h1{margin:0;color:#1f3a5f;font-size:28px}.anna-document h2{margin:5px 0;color:#2563eb;font-size:16px}.anna-document header p{margin:8px 0 0;color:#64748b;font-size:12px}.anna-document-mark{color:#2563eb;font-size:11px;font-weight:800;letter-spacing:.12em}.anna-document section{margin-top:22px}.anna-document h3{margin:0 0 8px;color:#1f3a5f;font-size:14px}.anna-document p,.anna-document li{font-size:12px;line-height:1.6}.anna-experience{display:grid;gap:5px}.anna-experience b{margin-top:8px}.anna-document-tags{display:flex;flex-wrap:wrap;gap:7px}.anna-document-tags span{padding:6px 9px;border-radius:7px;background:#eff6ff;color:#1d4ed8;font-size:11px}.anna-secondary-action{margin-top:8px}.anna-history-layout{display:grid;grid-template-columns:1fr minmax(340px,.72fr);gap:16px;align-items:start}.anna-timeline{display:grid;gap:0;margin-top:18px}.anna-timeline>div{position:relative;padding:0 0 22px 22px;border-left:1px solid var(--line)}.anna-timeline>div:before{content:'';position:absolute;left:-5px;top:2px;width:9px;height:9px;border-radius:50%;background:var(--brand)}.anna-timeline b,.anna-timeline span{display:block}.anna-timeline b{font-size:12px}.anna-timeline span{margin-top:4px;color:var(--muted);font-size:12px}.anna-discussion-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:16px;align-items:start}.anna-discussion-layout>.anna-chat-panel{min-height:460px}@media(max-width:900px){#modal:has(.anna-workspace){padding:2vh 1vw}.anna-workspace-header{padding:18px}.anna-workspace-tabs{padding:0 18px;overflow:auto}.anna-workspace-body{padding:16px}.anna-workspace-columns,.anna-resume-layout,.anna-history-layout,.anna-discussion-layout{grid-template-columns:1fr}.anna-resume-actions{order:-1}}@media(max-width:600px){.anna-workspace-person{align-items:flex-start}.anna-workspace-avatar{width:54px;height:54px}.anna-workspace-header h2{font-size:20px}.anna-workspace-header{flex-direction:column}.anna-workspace-actions{position:absolute;right:16px;top:16px}.anna-facts{grid-template-columns:1fr}.anna-document{padding:22px 18px}}

/* Anna workspace actions and overview chat */
.anna-workspace-actions{align-items:center}.anna-contact-wrap{position:relative}.anna-contact-button,.anna-edit-icon{height:38px;border-radius:9px;border:1px solid var(--line);font:inherit;cursor:pointer;transition:background .16s ease,border-color .16s ease,color .16s ease}.anna-contact-button{display:inline-flex;align-items:center;gap:7px;padding:0 13px;background:var(--brand);border-color:var(--brand);color:#fff;font-size:12px;font-weight:700}.anna-contact-button:hover{background:#174fc4;border-color:#174fc4}.anna-contact-icon{font-size:16px;line-height:1;transform:rotate(-35deg)}.anna-edit-icon{width:38px;display:grid;place-items:center;background:transparent;color:var(--text)}.anna-edit-icon:hover{background:rgba(128,140,160,.12);border-color:var(--muted)}.anna-edit-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.anna-workspace-actions .close{position:static;width:38px;height:38px}.anna-contact-dropdown{position:absolute;z-index:20;top:calc(100% + 8px);right:0;display:none;min-width:170px;padding:7px;border:1px solid var(--line);border-radius:11px;background:var(--panel);box-shadow:0 14px 34px rgba(0,0,0,.26)}.anna-contact-wrap.open .anna-contact-dropdown{display:grid;gap:3px}.anna-contact-dropdown button{display:flex;align-items:center;gap:9px;width:100%;padding:9px 10px;border:0;border-radius:7px;background:transparent;color:var(--text);font:inherit;font-size:12px;text-align:left;cursor:pointer;transition:background .16s ease}.anna-contact-dropdown button:hover{background:rgba(6,88,246,.1)}.anna-contact-dropdown img,.anna-contact-svg{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;object-fit:contain}.anna-contact-dropdown img{padding:3px;background:#25d366}.anna-contact-dropdown button:first-child img{background:#16a9e8}.anna-contact-svg{font-size:16px;color:var(--brand);background:rgba(6,88,246,.1)}.anna-overview-columns{align-items:stretch}.anna-main-info-panel,.anna-overview-chat .anna-chat-panel{height:100%;min-height:332px;box-sizing:border-box}.anna-overview-chat .anna-chat-panel{min-height:0}.anna-overview-chat .anna-chat-messages{max-height:155px;overflow:auto}.anna-workspace-actions .anna-contact-button:active,.anna-workspace-actions .anna-edit-icon:active,.anna-workspace-actions .close:active{transform:scale(.97)}

/* Minimal candidate profile adjustments: preserve original modal geometry */
.candidate-profile-head-actions{display:flex;align-items:center;gap:9px}.candidate-pencil-button{width:38px;height:38px;padding:0;display:grid;place-items:center}.candidate-pencil-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.profile-contact-wrap .contact-hover-menu{top:calc(100% + 8px);bottom:auto;right:0}.profile-contact-wrap:hover .contact-hover-menu,.profile-contact-wrap:focus-within .contact-hover-menu,.profile-contact-wrap .contact-hover-menu.is-open{display:grid}.candidate-profile-photo-wrap{position:relative;display:flex;justify-content:center;margin-bottom:12px}.candidate-profile-left .bigavatar{width:150px;height:150px}.candidate-profile-source{position:absolute;right:calc(50% - 75px - 3px);top:-3px;width:30px;height:30px;padding:4px;box-sizing:border-box;border-radius:50%;object-fit:contain;background:var(--panel);border:1px solid var(--line);z-index:2}.candidate-ai-inline{display:inline-flex;align-items:center;gap:7px;margin-top:14px;color:#a8c5ff;font-size:18px;font-weight:700}.candidate-ai-inline i{font-style:normal;display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:var(--brand);color:#fff;font-size:15px}.candidate-main-info{margin-top:22px;padding:15px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.candidate-main-info h3{margin:5px 0 12px}.candidate-main-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.candidate-main-info-grid>div{padding:10px;border-radius:9px;background:rgba(128,140,160,.07)}.candidate-main-info-grid span{display:block;color:var(--muted);font-size:10px;margin-bottom:4px}.candidate-main-info-grid b{font-size:12px;word-break:break-word}.candidate-edit-footer{justify-content:flex-end;gap:10px}.candidate-edit-footer .cancel-button{margin-right:auto}@media(max-width:760px){.candidate-main-info-grid{grid-template-columns:1fr}.candidate-profile-left .bigavatar{width:130px;height:130px}}

/* Small control alignment refinements only */
.candidate-profile-head-actions{gap:9px}.candidate-profile-head-actions .contact-trigger,.candidate-profile-head-actions .candidate-pencil-button,.candidate-profile-head-actions .close{height:38px;box-sizing:border-box}.candidate-profile-head-actions .candidate-pencil-button{width:38px;padding:0;display:grid;place-items:center;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--text);cursor:pointer;opacity:1}.candidate-profile-head-actions .candidate-pencil-button:hover{background:rgba(128,140,160,.14)}.candidate-profile-head-actions .candidate-pencil-button.candidate-save-disabled{opacity:.45;cursor:not-allowed;pointer-events:none}.candidate-profile-head-actions .candidate-pencil-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.candidate-profile-source{width:34px;height:34px;padding:5px;right:calc(50% - 78px);top:-5px}.candidate-profile-photo-wrap{margin-bottom:12px}

/* Final alignment for the existing profile header */
.candidate-profile-head-actions{display:flex;align-items:center;gap:8px}.candidate-profile-head-actions .contact-trigger,.candidate-profile-head-actions .candidate-pencil-button,.candidate-profile-head-actions .close{height:38px;min-height:38px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;margin:0;line-height:1}.candidate-profile-head-actions .contact-trigger{padding:0 14px}.candidate-profile-head-actions .candidate-pencil-button,.candidate-profile-head-actions .close{width:38px;padding:0}.candidate-profile-head-actions .candidate-pencil-button{background:rgba(128,140,160,.10);border-color:var(--line)}.candidate-profile-head-actions .candidate-pencil-button:hover{background:rgba(128,140,160,.18)}.candidate-profile-head-actions .close{position:static}.candidate-profile-source{width:38px;height:38px;padding:5px;right:calc(50% - 95px);top:8px}

/* Profile action buttons: same compact geometry, brand-blue contact action */
.candidate-profile-head-actions .candidate-pencil-button,.candidate-profile-head-actions .close{width:38px;height:38px;min-width:38px;min-height:38px;box-sizing:border-box;border:1px solid var(--line);border-radius:9px;padding:0;display:inline-flex;align-items:center;justify-content:center;background:var(--panel);color:var(--text);line-height:1}.candidate-profile-head-actions .candidate-pencil-button:hover,.candidate-profile-head-actions .close:hover{background:rgba(128,140,160,.16);border-color:var(--muted)}.candidate-profile-head-actions .candidate-pencil-button.candidate-save-disabled{opacity:.45;cursor:not-allowed;pointer-events:none}.candidate-profile-head-actions .contact-trigger{height:38px;min-height:38px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;padding:0 14px;border:1px solid var(--brand);border-radius:9px;background:var(--brand);color:#fff;line-height:1;transition:background .16s ease,border-color .16s ease}.candidate-profile-head-actions .contact-trigger:hover{background:#174fc4;border-color:#174fc4}
.candidate-profile-head-actions .contact-trigger{border:0}.candidate-profile-head-actions .contact-trigger:hover{border:0}

/* Edit action uses the same visual treatment as the close action */
.candidate-profile-head-actions .candidate-pencil-button,.candidate-profile-head-actions .close{width:34px;height:34px;min-width:34px;min-height:34px;box-sizing:border-box;border:0;border-radius:8px;padding:0;display:inline-flex;align-items:center;justify-content:center;background:#f2f3f6;color:var(--text);line-height:1;opacity:1}.candidate-profile-head-actions .candidate-pencil-button:hover,.candidate-profile-head-actions .close:hover{background:#f2f3f6;border:0;opacity:.68}.dark .candidate-profile-head-actions .candidate-pencil-button,.dark .candidate-profile-head-actions .close{background:#263244}.dark .candidate-profile-head-actions .candidate-pencil-button:hover,.dark .candidate-profile-head-actions .close:hover{background:#263244;opacity:.68}.candidate-profile-head-actions .candidate-pencil-button.candidate-save-disabled{opacity:.45;cursor:not-allowed;pointer-events:none}

/* Exact header action appearance from the reference: bare pencil, framed close */
.candidate-profile-head-actions .candidate-pencil-button{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;padding:0!important;border:0!important;border-radius:8px!important;background:transparent!important;color:var(--text)!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;opacity:1!important}.candidate-profile-head-actions .candidate-pencil-button:hover{background:rgba(128,140,160,.10)!important;border:0!important;opacity:.68!important}.candidate-profile-head-actions .candidate-pencil-button.candidate-save-disabled{opacity:.45!important;pointer-events:none!important}.candidate-profile-head-actions .close{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;border:1px solid var(--line)!important;border-radius:8px!important;background:rgba(128,140,160,.08)!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;opacity:1!important}.candidate-profile-head-actions .close:hover{background:rgba(128,140,160,.14)!important;border-color:var(--muted)!important;opacity:.68!important}

/* Final profile header alignment: all actions share one height */
.candidate-profile-head-actions .contact-trigger,.candidate-profile-head-actions .candidate-pencil-button,.candidate-profile-head-actions .close{height:38px!important;min-height:38px!important;box-sizing:border-box!important;border-radius:9px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;margin:0!important;line-height:1!important}.candidate-profile-head-actions .contact-trigger{padding:0 14px!important;border:0!important;background:var(--brand)!important;color:#fff!important;transition:background .16s ease!important}.candidate-profile-head-actions .contact-trigger:hover{border:0!important;background:#174fc4!important}.candidate-profile-head-actions .candidate-pencil-button,.candidate-profile-head-actions .close{width:38px!important;min-width:38px!important;padding:0!important;border:1px solid var(--line)!important;background:rgba(128,140,160,.08)!important;color:var(--text)!important}.candidate-profile-head-actions .candidate-pencil-button:hover,.candidate-profile-head-actions .close:hover{background:rgba(128,140,160,.16)!important;border-color:var(--muted)!important}.candidate-profile-head-actions .candidate-pencil-button.candidate-save-disabled{opacity:.45!important;pointer-events:none!important}

/* Larger profile contact menu with centered channel icons */
.profile-contact-wrap .contact-hover-menu{min-width:238px;padding:10px;gap:4px;border-radius:12px}.profile-contact-wrap .contact-hover-item{min-height:48px;padding:10px 12px;gap:12px;font-size:15px}.profile-contact-wrap .contact-hover-item img,.profile-contact-wrap .contact-hover-icon{width:32px;height:32px;min-width:32px;box-sizing:border-box;border-radius:50%;display:grid;place-items:center;object-fit:contain}.profile-contact-wrap .contact-hover-item img{padding:5px}.profile-contact-wrap .contact-hover-icon{padding:7px;background:rgba(6,88,246,.85);color:#fff}.profile-contact-wrap .contact-hover-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;display:block}.profile-contact-wrap .phone-logo{background:#8a99b1}

/* Compact candidate edit fields without changing modal geometry */
.candidate-edit-compact-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}.candidate-edit-compact-grid .candidate-edit-tags{grid-column:1/-1;background:var(--panel);border-color:var(--line)}.candidate-edit-compact-grid .input{min-width:0;height:40px;min-height:40px;box-sizing:border-box}.dark .candidate-edit-compact-grid .input{background:#263244;color:var(--text)}.candidate-edit-compact-grid select.input{cursor:pointer}@media(max-width:760px){.candidate-edit-compact-grid{grid-template-columns:1fr}.candidate-edit-compact-grid .candidate-edit-tags{grid-column:auto}}

/* Edit fields live inside the existing basic-information block */
.candidate-edit-compact-grid{display:block;margin:0}.candidate-edit-compact-grid{display:contents}.candidate-edit-tags{display:block;width:100%;height:40px;box-sizing:border-box;margin:14px 0 0;background:var(--panel);border-color:var(--line)}.candidate-main-info-grid>.input{width:100%;height:40px;min-height:40px;box-sizing:border-box}.dark .candidate-main-info-grid>.input{background:#263244;color:var(--text)}

/* Make the editable tags field clearly distinct from the profile background */
.candidate-profile-head-actions~.profile .candidate-edit-tags,.candidate-edit-tags{display:block!important;width:100%!important;height:40px!important;min-height:40px!important;box-sizing:border-box!important;margin:14px 0 0!important;padding:0 12px!important;border:1px solid #53627a!important;border-radius:9px!important;background:#263244!important;color:var(--text)!important;font:inherit!important;line-height:40px!important;opacity:1!important}.candidate-edit-tags::placeholder{color:var(--muted)!important}.candidate-edit-tags:focus{border-color:rgba(110,160,255,.72)!important;outline:none!important;background:#2b394d!important;box-shadow:none!important}
.candidate-main-info{margin-top:88px}

/* Keep the information panel bottom-aligned with the left candidate card */
.profile{align-items:stretch}.profile>div:last-child{display:flex;flex-direction:column;align-self:stretch;min-height:100%}.profile>div:last-child .candidate-main-info{margin-top:auto}
.profile>div:last-child .candidate-main-info{transform:translateY(-30px)}

/* Candidate left panel refinements */
.candidate-profile-source{width:42px!important;height:42px!important;padding:5px!important;right:calc(50% - 75px + 12px)!important;top:10px!important}.candidate-ai-inline{margin-top:22px!important}

/* Harmonized candidate profile geometry */
@media(min-width:761px){.modal:has(.profile) .profile{grid-template-columns:240px minmax(0,1fr);column-gap:24px;align-items:stretch}.modal:has(.profile) .profile>div:last-child{display:flex;flex-direction:column;align-self:stretch;min-height:100%}.modal:has(.profile) .profile>div:last-child .candidate-main-info{margin-top:auto!important;margin-bottom:0!important;transform:none!important}}
.modal:has(.profile) .candidate-profile-source{width:40px!important;height:40px!important;padding:5px!important;right:18px!important;top:18px!important}.modal:has(.profile) .candidate-profile-photo-wrap{margin-bottom:14px!important}.modal:has(.profile) .candidate-ai-inline{margin-top:20px!important}

/* Unified edit/close button states */
.modal:has(.profile) .candidate-profile-head-actions .candidate-pencil-button,.modal:has(.profile) .candidate-profile-head-actions .close{border:1px solid var(--line)!important;background:rgba(128,140,160,.08)!important;color:var(--text)!important;opacity:1!important;transition:background .16s ease,border-color .16s ease,color .16s ease}.modal:has(.profile) .candidate-profile-head-actions .candidate-pencil-button:hover,.modal:has(.profile) .candidate-profile-head-actions .close:hover{border-color:var(--brand)!important;background:rgba(6,88,246,.08)!important;color:var(--brand)!important;opacity:1!important}.modal:has(.profile) .candidate-profile-head-actions .candidate-pencil-button.candidate-save-disabled{opacity:.45!important;pointer-events:none!important}

/* System-wide close button treatment */
button.close,.modal .close{font-size:18px!important;font-weight:500;line-height:1;transition:background .16s ease,border-color .16s ease,color .16s ease,opacity .16s ease}button.close:hover,.modal .close:hover{border-color:#7f8b9d!important;background:rgba(128,140,160,.14)!important;color:#aeb8c8!important;opacity:1!important}.modal:has(.profile) .candidate-profile-head-actions .candidate-pencil-button:hover{border-color:#7f8b9d!important;background:rgba(128,140,160,.14)!important;color:#aeb8c8!important}

/* Force the neutral close hover after all legacy modal rules */
#modal button.close:hover,#modal .close:hover{color:#aeb8c8!important;border-color:#7f8b9d!important;background:rgba(128,140,160,.14)!important;opacity:1!important}#modal .candidate-profile-head-actions .close:hover{color:#aeb8c8!important;border-color:#7f8b9d!important;background:rgba(128,140,160,.14)!important}

/* Candidate resume action */
.candidate-profile-head-actions .candidate-resume-header-button{height:38px;min-height:38px;box-sizing:border-box;padding:0 14px;border:1px solid rgba(6,88,246,.36);border-radius:9px;background:rgba(6,88,246,.28);color:#cfe0ff;font:inherit;font-size:13px;line-height:1;cursor:pointer;transition:background .16s ease,border-color .16s ease,color .16s ease}.candidate-profile-head-actions .candidate-resume-header-button:hover{background:rgba(6,88,246,.42);border-color:rgba(6,88,246,.52);color:#fff}
.candidate-profile-head-actions .candidate-resume-header-button{background:rgba(38,166,112,.28);border-color:rgba(38,166,112,.38);color:#b9f1d2}.candidate-profile-head-actions .candidate-resume-header-button:hover{background:rgba(38,166,112,.42);border-color:rgba(38,166,112,.54);color:#fff}
.candidate-main-info .candidate-hidden-subheading{visibility:hidden}
.candidate-profile-head-actions .candidate-resume-header-button{border:0!important;color:#fff!important}.candidate-profile-head-actions .candidate-resume-header-button:hover{border:0!important;color:#fff!important}
.candidate-profile-head-actions .candidate-resume-header-button{height:38px!important;min-height:38px!important;box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:1!important;margin:0!important}
.department-mark{border-color:color-mix(in srgb,var(--department-accent,var(--brand)) 45%,transparent)!important;background:color-mix(in srgb,var(--department-accent,var(--brand)) 16%,var(--card))!important;color:var(--department-accent,var(--brand))!important}.department-form-grid{row-gap:14px}.required-mark{color:var(--brand);font-weight:700}.dark .department-mark{background:color-mix(in srgb,var(--department-accent,var(--brand)) 18%,#263244)!important}

/* Unified cancel action: muted red hover across every modal */
.modal .btn.cancel-button:hover,.modal button.cancel-button:hover{background:rgba(220,70,80,.13)!important;border-color:rgba(220,70,80,.3)!important;color:var(--red)!important;box-shadow:none!important;transform:none!important}.dark .modal .btn.cancel-button:hover,.dark .modal button.cancel-button:hover{background:rgba(239,96,105,.14)!important;border-color:rgba(239,96,105,.3)!important;color:#ff9da5!important}

/* Employee-specific contact system */
.employee-profile-actions{justify-content:flex-start}.employee-contact-wrap{position:relative}.employee-contact-button{background:var(--brand);color:#fff;border:0;transition:background .16s ease}.employee-contact-button:hover{background:#0b4fd1}.employee-contact-menu{position:absolute;left:0;top:calc(100% + 8px);z-index:20;display:none;min-width:270px;padding:7px;border:1px solid var(--line);border-radius:12px;background:var(--card);box-shadow:0 14px 34px rgba(0,0,0,.2)}.employee-contact-wrap.open .employee-contact-menu{display:grid;gap:3px}.employee-contact-item{display:flex;align-items:center;gap:10px;width:100%;padding:10px;border:0;border-radius:8px;background:transparent;color:var(--text);text-align:left;cursor:pointer}.employee-contact-item:hover{background:rgba(128,140,160,.12)}.employee-contact-item-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:rgba(6,88,246,.14);color:var(--brand);font-size:16px}.employee-contact-item span:nth-child(2){display:grid;gap:2px}.employee-contact-item small{color:var(--muted);font-size:10px}.employee-messenger-shell{min-height:580px;display:flex;flex-direction:column}.employee-messenger-header{display:flex;justify-content:space-between;align-items:flex-start;padding-bottom:14px;border-bottom:1px solid var(--line)}.employee-messenger-body{display:grid;grid-template-columns:280px minmax(0,1fr);min-height:500px;margin:0 -4px}.employee-messenger-sidebar{padding:16px 14px;border-right:1px solid var(--line);background:rgba(128,140,160,.05)}.employee-messenger-search{position:relative;margin-bottom:16px}.employee-messenger-search>span{position:absolute;left:11px;top:10px;color:var(--muted)}.employee-messenger-search .input{padding-left:30px;height:38px}.employee-messenger-section-title{margin:7px 4px 8px;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.08em}.employee-chat-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:9px;align-items:center;width:100%;padding:9px 7px;border:0;border-radius:9px;background:transparent;color:var(--text);text-align:left;cursor:pointer}.employee-chat-row:hover,.employee-chat-row.active{background:rgba(6,88,246,.12)}.employee-chat-row>span:nth-child(2){display:grid;gap:3px;min-width:0}.employee-chat-row b,.employee-chat-row small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.employee-chat-row small{font-size:10px;color:var(--muted)}.employee-chat-row time{font-size:9px;color:var(--muted)}.employee-chat-avatar{display:grid;place-items:center;width:34px;height:34px;overflow:hidden;border-radius:10px;background:rgba(6,88,246,.16);color:var(--brand);font-size:11px;font-weight:700}.employee-chat-avatar img{width:100%;height:100%;object-fit:cover}.employee-chat-avatar.large{width:40px;height:40px;border-radius:12px}.employee-messenger-conversation{display:flex;flex-direction:column;min-width:0}.employee-conversation-head{display:flex;align-items:center;gap:10px;padding:16px 18px;border-bottom:1px solid var(--line)}.employee-conversation-head>div{display:grid;gap:3px}.employee-conversation-head small{color:var(--muted)}.employee-online-dot{margin-left:auto;color:#26a670;font-size:11px}.employee-message-list{display:flex;flex:1;flex-direction:column;gap:12px;overflow:auto;padding:20px;background:rgba(128,140,160,.035)}.employee-message{display:flex;max-width:76%}.employee-message.mine{align-self:flex-end}.employee-message-bubble{padding:10px 12px;border-radius:12px 12px 12px 4px;background:var(--card);border:1px solid var(--line)}.employee-message.mine .employee-message-bubble{border-radius:12px 12px 4px 12px;background:rgba(6,88,246,.14);border-color:rgba(6,88,246,.22)}.employee-message-bubble b{font-size:11px}.employee-message-bubble p{margin:4px 0;font-size:12px;line-height:1.45}.employee-message-bubble small{color:var(--muted);font-size:9px}.employee-message-composer{display:flex;gap:8px;padding:13px;border-top:1px solid var(--line)}.employee-message-composer .input{min-height:40px}.employee-message-composer button{width:40px;border:0;border-radius:9px;background:var(--brand);color:#fff;cursor:pointer;transition:background .16s ease}.employee-message-composer button:hover{background:#0b4fd1}.employee-email-body-wrap{position:relative}.employee-email-body-wrap textarea{padding-right:45px}.employee-email-attach{position:absolute;right:10px;bottom:10px;display:grid;place-items:center;width:28px;height:28px;border-radius:7px;color:var(--muted);cursor:pointer}.employee-email-attach:hover{background:rgba(128,140,160,.12);color:var(--text)}.employee-email-attach input{display:none}.employee-email-form{display:grid;gap:12px}.employee-email-form .field{margin:0}@media(max-width:700px){.employee-messenger-body{grid-template-columns:1fr}.employee-messenger-sidebar{border-right:0;border-bottom:1px solid var(--line);max-height:210px;overflow:auto}.employee-messenger-shell{min-height:0}.employee-message-list{min-height:260px}.employee-contact-menu{left:auto;right:0}}

.approval-toolbar{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:2px 0 12px;padding:3px}.approval-filter{border:0;background:transparent;color:var(--muted);padding:7px 10px;border-radius:8px;font:inherit;font-size:12px;cursor:pointer;transition:background .18s,color .18s}.approval-filter:hover{background:rgba(148,163,184,.10);color:var(--text)}.approval-filter.active{background:rgba(6,88,246,.12);color:var(--text)}.approval-filter b{font-size:11px;opacity:.72;margin-left:3px}.approval-clear-archive{margin-left:auto;font-size:11px;padding:4px 8px;min-height:28px;line-height:1.1}.approval-archived-card{opacity:.94}.approval-archive-meta{margin-top:12px;color:var(--muted);font-size:12px;padding-top:10px;border-top:1px solid var(--line)}

/* Dashboard product tour */
.dashboard-tour{display:none;position:fixed;inset:0;z-index:12000;pointer-events:none}.dashboard-tour.open{display:block}.dashboard-tour-backdrop{position:absolute;inset:0;background:rgba(5,12,25,.68);pointer-events:none}.dashboard-tour-backdrop:after{content:"";position:absolute;top:var(--tour-top);left:var(--tour-left);width:var(--tour-width);height:var(--tour-height);border-radius:14px;background:transparent;box-shadow:0 0 0 9999px rgba(5,12,25,.68),0 0 0 2px rgba(109,157,255,.95);pointer-events:none;transition:all .2s ease}.dashboard-tour-card{position:fixed;z-index:2;box-sizing:border-box;padding:18px 18px 15px;border:1px solid rgba(117,153,220,.34);border-radius:14px;background:var(--panel,#202b3b);color:var(--text,#f4f7fb);box-shadow:0 18px 50px rgba(0,0,0,.28);pointer-events:auto;transition:left .2s ease,top .2s ease}.dashboard-tour-kicker{margin-bottom:8px;color:#8eb5ff;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.dashboard-tour-card h2{margin:0 0 7px;font-size:18px;line-height:1.25}.dashboard-tour-card p{margin:0;min-height:44px;color:var(--muted,#aeb9c9);font-size:13px;line-height:1.5}.dashboard-tour-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:17px}.dashboard-tour-progress{color:var(--muted,#aeb9c9);font-size:12px;white-space:nowrap}.dashboard-tour-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px}.dashboard-tour-actions button{height:32px;min-height:32px;padding:0 10px;border-radius:8px;font-size:12px}.dashboard-tour-skip,.dashboard-tour-back{border:1px solid transparent;background:transparent;color:var(--muted,#aeb9c9);cursor:pointer}.dashboard-tour-skip:hover,.dashboard-tour-back:hover{background:rgba(255,255,255,.07);color:var(--text,#f4f7fb)}.dashboard-tour-back:disabled{opacity:.38;cursor:default}.dashboard-tour-next{border:1px solid rgba(6,88,246,.8);background:#0658f6;color:#fff;cursor:pointer}.dashboard-tour-next:hover{background:#0b62ff}.dark .dashboard-tour-card{background:#202b3b}.dashboard-tour-active .views{scroll-margin-top:20px}@media(max-width:700px){.dashboard-tour-card{padding:16px}.dashboard-tour-footer{align-items:flex-end}.dashboard-tour-actions{flex-wrap:wrap}.dashboard-tour-card p{min-height:0}}

/* Organization chart connector alignment */
.org-branches:before{left:calc((100% - 28px) / 6);right:calc((100% - 28px) / 6)}
.org-branches>.department-card:not(.root):before{top:-14px;height:14px}
.org-branches>.department-card:nth-child(-n+3):before{top:-26px;height:25px}

/* Department actions and drag-and-drop preview */
.department-card{padding-right:92px}
.department-card[draggable="true"]{cursor:grab}
.department-card.is-dragging{opacity:.5;cursor:grabbing}
.department-card.is-drag-over{border-color:rgba(6,88,246,.72);background:rgba(6,88,246,.08)}
.department-copy{min-width:0}
.department-actions{position:absolute;right:10px;top:10px;display:flex;gap:4px;align-items:center}
.department-actions button{display:grid;place-items:center;width:25px;height:25px;padding:0;border:1px solid var(--line);border-radius:7px;background:var(--panel);color:var(--muted);font:600 14px/1 inherit;cursor:pointer;transition:background .16s ease,color .16s ease,border-color .16s ease}
.department-actions button:hover{background:rgba(6,88,246,.12);border-color:rgba(6,88,246,.35);color:var(--text)}
.department-actions .department-move{cursor:grab;font-size:15px;letter-spacing:-2px}
.department-actions .department-delete:hover{background:rgba(220,68,78,.14);border-color:rgba(220,68,78,.4);color:#ff8f98}
.department-card.root{padding-right:15px}
@media(max-width:700px){.department-card{padding-right:72px}.department-actions{right:8px}.department-actions button{width:24px;height:24px}}

/* Platform performance ranking */
.platform-rating-card{margin-top:18px}.platform-rating-table th:nth-child(1){min-width:180px}.platform-rating-table th:nth-child(4),.platform-rating-table th:nth-child(6){min-width:170px}.platform-rating-table td strong{font-weight:800;color:var(--text)}.platform-rank{display:inline-grid;place-items:center;width:22px;height:22px;margin-right:9px;border-radius:7px;background:rgba(6,88,246,.12);color:var(--brand);font-size:11px}.platform-rating-table tbody tr:first-child .platform-rank{background:rgba(245,190,58,.18);color:#c48a00}.dark .platform-rank{background:rgba(78,139,255,.18);color:#9fc0ff}.dark .platform-rating-table tbody tr:first-child .platform-rank{background:rgba(245,190,58,.2);color:#f5d78a}@media(max-width:1000px){.platform-rating-table{min-width:860px}}

/* Bright product-tour card inspired by the pricing modal */
.dashboard-tour-card{background:linear-gradient(135deg,#eef2ff 0%,#f8f9ff 58%,#f1edff 100%);border:1px solid #dfe4ff;color:#20283f;box-shadow:0 20px 54px rgba(35,48,105,.22),0 0 0 1px rgba(255,255,255,.68) inset;overflow:hidden}
.dashboard-tour-card::before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:linear-gradient(90deg,#0658f6,#7771ef,#b36bff)}
.dashboard-tour-kicker{color:#0658f6}.dashboard-tour-card h2{color:#20283f}.dashboard-tour-card p{color:#5b6680}.dashboard-tour-progress{color:#6c7690}.dashboard-tour-skip,.dashboard-tour-back{color:#68748d}.dashboard-tour-skip:hover,.dashboard-tour-back:hover{background:rgba(6,88,246,.08);color:#20283f}.dashboard-tour-next{border-color:#0658f6;background:linear-gradient(135deg,#0658f6,#5148e8);box-shadow:0 7px 16px rgba(6,88,246,.2)}.dashboard-tour-next:hover{background:linear-gradient(135deg,#0b62ff,#5c54f0)}
.dark .dashboard-tour-card{background:linear-gradient(135deg,#242b55 0%,#202738 58%,#32264f 100%);border-color:#5965a4;color:#f3f4f6;box-shadow:0 20px 54px rgba(0,0,0,.42),0 0 0 1px rgba(255,255,255,.08) inset}.dark .dashboard-tour-card h2{color:#f3f4f6}.dark .dashboard-tour-card p,.dark .dashboard-tour-progress{color:#c0c8d8}.dark .dashboard-tour-kicker{color:#9fc0ff}.dark .dashboard-tour-skip,.dark .dashboard-tour-back{color:#c0c8d8}.dark .dashboard-tour-skip:hover,.dark .dashboard-tour-back:hover{background:rgba(159,192,255,.12);color:#fff}
@media(prefers-reduced-motion:reduce){.dashboard-tour-card{transition:none}}

/* OTP login status */
.otp-status{min-height:18px;margin:-2px 0 10px;color:rgba(110,120,138,.82);font-size:12px;line-height:1.4}.otp-status:empty{display:none}.auth-submit:disabled{opacity:.52;cursor:not-allowed;filter:saturate(.65)}
.otp-code-field[hidden]{display:none!important}

/* Profile identity overflow protection */
.profile-trigger>span:not(.profile-chevron){min-width:0;max-width:calc(100% - 56px)}.profile-trigger b,.profile-menu-head b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-menu-head{min-width:0}.profile-menu-head b{max-width:100%}

/* External authentication providers */
.auth-divider{display:flex;align-items:center;gap:10px;margin:18px 0 12px;color:var(--muted);font-size:11px}.auth-divider::before,.auth-divider::after{content:"";height:1px;flex:1;background:var(--line,#2f394c)}.external-auth-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.external-auth-btn{min-height:42px;border:1px solid var(--line,#2f394c);border-radius:9px;background:rgba(255,255,255,.035);color:var(--text,#fff);display:flex;align-items:center;justify-content:center;gap:7px;font:600 11px Montserrat,sans-serif;cursor:pointer;transition:background .16s ease,border-color .16s ease}.external-auth-btn:hover{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.28)}.external-auth-btn b{display:grid;place-items:center;width:21px;height:21px;border-radius:6px;font-size:13px}.external-auth-yandex b{background:#fc3f1d;color:#fff}.external-auth-mail b{background:#168de2;color:#fff}.external-auth-telegram b{background:#229ed9;color:#fff}@media(max-width:520px){.external-auth-grid{grid-template-columns:1fr}.external-auth-btn{justify-content:flex-start;padding:0 14px}}

.external-auth-btn img{width:22px;height:22px;display:block;object-fit:cover;border-radius:5px;flex:none}.external-auth-btn b{display:none}

.telegram-login-widget{display:flex;justify-content:center;align-items:center;margin:12px 0 4px;min-height:40px}.telegram-login-widget iframe{max-width:100%}

/* Account security page */
.security-page{padding:32px 36px 60px}.security-page .top{margin-bottom:22px}.security-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:18px}.security-kpis .card{padding:20px 22px}.security-kpis span,.security-kpis small{display:block;color:var(--muted)}.security-kpis strong{display:block;font-size:30px;margin:8px 0 2px;color:var(--text)}.security-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:18px}.security-panel{padding:22px}.security-panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px}.security-panel-head h2{margin:5px 0 0}.security-session-list,.security-event-list{display:flex;flex-direction:column}.security-session,.security-event{display:flex;align-items:center;gap:14px;padding:16px 0;border-top:1px solid var(--line)}.security-session:first-child,.security-event:first-child{border-top:0}.security-session-icon{width:38px;height:38px;border-radius:12px;background:rgba(6,88,246,.13);color:#6da0ff;display:grid;place-items:center;font-size:20px;flex:none}.security-session-main{min-width:0;flex:1}.security-session-main strong{font-size:14px}.security-session-main p,.security-session-main small,.security-event p,.security-event small{display:block;color:var(--muted);margin:4px 0 0;font-size:12px}.security-current,.security-status{margin-left:8px;padding:4px 8px;border-radius:999px;font-size:11px;background:rgba(70,190,140,.15);color:#73d7ae}.security-status.revoked,.security-status.blocked{background:rgba(160,170,190,.14);color:var(--muted)}.security-session-actions{display:flex;align-items:center;gap:8px}.btn.small{padding:7px 11px;font-size:12px}.danger-soft{color:#ff9c9c;border-color:rgba(255,100,100,.32)}.icon-btn{width:30px;height:30px;border-radius:8px;border:1px solid var(--line);background:transparent;color:var(--muted);cursor:pointer}.security-event-dot{width:9px;height:9px;border-radius:50%;background:#65d1a1;flex:none}.security-event-dot.failed{background:#f19a9a}.security-event-dot.revoke{background:#8fa6c8}.security-event-dot.block{background:#d88cf3}.security-event>div{flex:1}.security-event time{font-size:12px;color:var(--muted);white-space:nowrap}.security-filter{width:auto;min-width:130px}.security-blocked-panel{margin-top:18px}.security-blocked-row{display:flex;justify-content:space-between;align-items:center;padding:13px 0;border-top:1px solid var(--line)}.security-empty{padding:20px 0;color:var(--muted);font-size:13px}.security-menu-item{color:#8fb7ff}.is-muted{opacity:.64}@media(max-width:900px){.security-grid{grid-template-columns:1fr}.security-kpis{grid-template-columns:1fr}.security-session{align-items:flex-start}.security-session-actions{flex-direction:column}}

.security-page .btn,.security-page .icon-btn{transition:background-color .16s ease,border-color .16s ease,color .16s ease}.security-page .btn:hover{background:#f1f3f7;border-color:#d9dee8;color:var(--text)}.security-page .btn.primary:hover{background:var(--brand2);border-color:var(--brand2);color:#fff}.security-page .danger-soft:hover{background:rgba(224,82,82,.12);border-color:rgba(224,82,82,.48);color:#d54848}.security-page .icon-btn:hover{background:#f1f3f7;border-color:#d9dee8;color:var(--text)}

body.dark .security-page .btn:hover,.dark .security-page .btn:hover{background:rgba(255,255,255,.08);border-color:rgba(170,190,220,.34);color:#f3f6fb}body.dark .security-page .danger-soft:hover,.dark .security-page .danger-soft:hover{background:rgba(224,82,82,.16);border-color:rgba(255,120,120,.52);color:#ffb0b0}body.dark .security-page .icon-btn:hover,.dark .security-page .icon-btn:hover{background:rgba(255,255,255,.08);border-color:rgba(170,190,220,.34);color:#f3f6fb}

.security-panel-footer{display:flex;justify-content:flex-end;padding-top:16px;margin-top:10px;border-top:1px solid var(--line)}.security-log-modal{position:fixed;inset:0;z-index:150;background:rgba(8,15,28,.68);display:flex;align-items:center;justify-content:center;padding:24px}.security-log-dialog{width:min(1180px,100%);max-height:min(86vh,820px);overflow:auto;background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:24px;box-shadow:0 24px 80px rgba(0,0,0,.35)}.security-log-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:18px}.security-log-head h2{margin:5px 0 0}.security-log-toolbar{display:grid;grid-template-columns:2fr repeat(4,minmax(125px,1fr));gap:8px;margin-bottom:18px}.security-log-table{display:grid;border:1px solid var(--line);border-radius:10px;overflow:auto}.security-log-row{display:grid;grid-template-columns:1.3fr 1fr 1.4fr 1fr 1.25fr 125px;gap:12px;align-items:center;min-width:920px;padding:13px 14px;border-top:1px solid var(--line);font-size:12px}.security-log-row:first-child{border-top:0}.security-log-row strong{display:block;font-size:12px}.security-log-row em{display:inline-block;margin-top:4px;padding:3px 7px;border-radius:99px;background:rgba(70,190,140,.15);color:#73d7ae;font-style:normal;font-size:10px}.security-log-header{background:rgba(128,142,166,.08);color:var(--muted);font-size:10px;text-transform:uppercase;font-weight:700}.security-log-actions{display:flex;align-items:center;gap:6px}.security-log-actions .icon-btn{font-size:16px}.security-session-actions .btn.small{font-size:17px;line-height:1;padding:7px 10px}.security-page .security-log-modal .btn:hover{background:rgba(128,142,166,.12);border-color:var(--line);color:var(--text)}body.dark .security-log-dialog,.dark .security-log-dialog{background:#182536;border-color:#3a4a60}body.dark .security-log-header,.dark .security-log-header{background:rgba(255,255,255,.06)}
@media(max-width:900px){.security-log-toolbar{grid-template-columns:1fr 1fr}.security-log-toolbar .input:first-child{grid-column:1/-1}}@media(max-width:600px){.security-log-modal{padding:10px}.security-log-dialog{padding:16px}.security-log-toolbar{grid-template-columns:1fr}.security-log-toolbar .input:first-child{grid-column:auto}}

.security-device-detail{display:block;color:var(--muted);font-size:10px;margin-top:3px;font-weight:400}

.security-custom-select{position:relative;min-width:0}.security-custom-select-trigger{width:100%;height:42px;padding:0 12px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--text);display:flex;align-items:center;justify-content:space-between;text-align:left;cursor:pointer;transition:background .16s ease,border-color .16s ease,color .16s ease}.security-custom-select-trigger:hover,.security-custom-select.is-open .security-custom-select-trigger{background:rgba(6,88,246,.08);border-color:rgba(6,88,246,.42)}.security-select-chevron{font-size:17px;color:var(--muted);line-height:1;transform:none;display:inline-flex;align-items:center}.security-custom-select-menu{position:absolute;z-index:20;left:0;right:0;top:calc(100% + 5px);display:none;padding:5px;border:1px solid var(--line);border-radius:10px;background:var(--panel);box-shadow:0 14px 34px rgba(0,0,0,.25);max-height:260px;overflow:auto}.security-custom-select.is-open .security-custom-select-menu{display:grid;gap:2px}.security-custom-select-menu button{width:100%;padding:9px 10px;border:0;border-radius:7px;background:transparent;color:var(--text);font:inherit;font-size:12px;text-align:left;cursor:pointer;white-space:nowrap;transition:background .14s ease,color .14s ease}.security-custom-select-menu button:hover,.security-custom-select-menu button.is-selected{background:rgba(6,88,246,.12);color:var(--brand)}body.dark .security-custom-select-trigger,.dark .security-custom-select-trigger{background:#1b2a3d;border-color:#43546b;color:#f3f6fb}body.dark .security-custom-select-trigger:hover,.dark .security-custom-select-trigger:hover,body.dark .security-custom-select.is-open .security-custom-select-trigger,.dark .security-custom-select.is-open .security-custom-select-trigger{background:rgba(75,137,255,.16);border-color:#6fa5ff}body.dark .security-custom-select-menu,.dark .security-custom-select-menu{background:#1b2a3d;border-color:#43546b}body.dark .security-custom-select-menu button,.dark .security-custom-select-menu button{color:#f3f6fb}body.dark .security-custom-select-menu button:hover,body.dark .security-custom-select-menu button.is-selected,.dark .security-custom-select-menu button:hover,.dark .security-custom-select-menu button.is-selected{background:rgba(75,137,255,.22);color:#a9c8ff}

body.security-modal-open{overflow:hidden}.security-action-btn,.security-block-btn{display:inline-grid;place-items:center;flex:0 0 34px;width:34px;height:34px;padding:0}.security-action-btn svg,.security-block-btn svg{width:17px;height:17px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.security-action-btn{background:transparent}.security-action-btn:hover{background:rgba(128,142,166,.14);border-color:rgba(128,142,166,.42);color:var(--text)}.security-block-btn:hover{background:rgba(224,82,82,.14);border-color:rgba(224,82,82,.48);color:#d54848}body.dark .security-action-btn:hover,.dark .security-action-btn:hover{background:rgba(255,255,255,.09);border-color:rgba(170,190,220,.42);color:#f3f6fb}body.dark .security-block-btn:hover,.dark .security-block-btn:hover{background:rgba(224,82,82,.2);border-color:rgba(255,120,120,.56);color:#ffb0b0}.security-log-modal{overscroll-behavior:contain}.security-log-dialog{overscroll-behavior:contain}.security-log-table .security-log-row>span{min-width:0}

body.security-confirm-open{overflow:hidden}.security-confirm-modal{position:fixed;inset:0;z-index:220;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(4,10,20,.72);backdrop-filter:blur(5px)}.security-confirm-card{position:relative;width:min(430px,100%);padding:26px 26px 22px;border:1px solid var(--line);border-radius:18px;background:var(--panel);box-shadow:0 22px 70px rgba(0,0,0,.42);color:var(--text)}.security-confirm-icon{display:grid;place-items:center;width:42px;height:42px;margin-bottom:15px;border-radius:12px;background:rgba(6,88,246,.14);color:#78a7ff;font-size:22px;font-weight:700}.security-confirm-icon.danger{background:rgba(224,82,82,.14);color:#ff9292}.security-confirm-copy h3{margin:0 38px 8px 0;font-size:19px;letter-spacing:-.02em}.security-confirm-copy p{margin:0;color:var(--muted);font-size:13px;line-height:1.55}.security-confirm-close{position:absolute;top:16px;right:16px;width:30px;height:30px;border:1px solid var(--line);border-radius:8px;background:transparent;color:var(--muted);font-size:20px;line-height:1;cursor:pointer;transition:background .16s ease,color .16s ease,border-color .16s ease}.security-confirm-close:hover{background:rgba(128,142,166,.14);border-color:rgba(128,142,166,.42);color:var(--text)}.security-confirm-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:24px}.security-confirm-actions .btn{min-height:38px;padding:0 16px}.security-confirm-cancel{background:transparent;border-color:var(--line)}.security-confirm-cancel:hover{background:rgba(128,142,166,.12);border-color:rgba(128,142,166,.42);color:var(--text)}.security-confirm-primary{background:rgba(6,88,246,.16);border-color:rgba(6,88,246,.4);color:#8db5ff}.security-confirm-primary:hover{background:rgba(6,88,246,.28);border-color:rgba(92,147,255,.65);color:#c5d9ff}.security-confirm-danger{background:rgba(224,82,82,.14);border-color:rgba(224,82,82,.4);color:#ff9d9d}.security-confirm-danger:hover{background:rgba(224,82,82,.25);border-color:rgba(255,120,120,.65);color:#ffc1c1}body.dark .security-confirm-card,.dark .security-confirm-card{background:#182536;border-color:#3e5068}

.auth-screen.blocked-screen{align-items:center;justify-content:center;background:radial-gradient(circle at 50% 10%,rgba(6,88,246,.14),transparent 42%),var(--bg)}.blocked-card{width:min(520px,calc(100% - 32px));padding:38px 36px 32px;border:1px solid var(--line);border-radius:22px;background:var(--panel);box-shadow:0 24px 80px rgba(0,0,0,.32);text-align:left}.blocked-mark{display:grid;place-items:center;width:48px;height:48px;margin-bottom:20px;border-radius:14px;background:rgba(224,82,82,.15);color:#ff9b9b;font-size:26px;font-weight:800}.blocked-card h1{margin:7px 0 12px;font-size:29px;letter-spacing:-.04em}.blocked-card p{max-width:450px;margin:0;color:var(--muted);font-size:14px;line-height:1.65}.blocked-identity{margin-top:20px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:rgba(128,142,166,.08);color:var(--text);font-size:13px;word-break:break-word}.blocked-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:22px}.blocked-actions .btn{min-height:40px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.blocked-secondary{background:transparent;border-color:var(--line);color:var(--text)}.blocked-secondary:hover{background:rgba(128,142,166,.12);border-color:rgba(128,142,166,.42)}.blocked-card>small{display:block;margin-top:18px;color:var(--muted);font-size:11px;line-height:1.5}

body.auth-minimal .ai-fab,body.auth-minimal .floating-widget,body.auth-minimal .floating-assistant,body.auth-minimal .manus-floating-button,body.auth-minimal [data-floating-widget],body.auth-minimal [data-ai-assistant]{display:none!important}.blocked-identity{display:flex;align-items:center;justify-content:space-between;gap:10px}.blocked-identity span{min-width:0;overflow:hidden;text-overflow:ellipsis}.blocked-copy-button{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border:1px solid rgba(128,142,166,.3);outline:0!important;box-shadow:none!important;border-radius:8px;background:transparent;color:var(--muted);-webkit-appearance:none;-webkit-tap-highlight-color:transparent;transition:background .16s ease,border-color .16s ease,color .16s ease}.blocked-copy-button:focus,.blocked-copy-button:focus-visible{outline:0!important;box-shadow:none!important;border-color:rgba(128,142,166,.42)}.blocked-copy-button:hover{background:rgba(6,88,246,.12);border-color:rgba(6,88,246,.42);color:#8db5ff}.blocked-copy-button.copied{background:rgba(70,190,140,.14);border-color:rgba(70,190,140,.45);color:#73d7ae}.blocked-copy-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.blocked-secondary:hover{background:rgba(6,88,246,.12);border-color:rgba(6,88,246,.42);color:#8db5ff}

/* Hide the application shell until auth initialization explicitly opens it. */
.app{display:none}

html.auth-ready .auth-screen{display:flex}html.auth-logged-in .auth-screen{display:none}

html.auth-blocked .auth-screen{display:flex;background:#101827}html.auth-blocked .auth-screen>.auth-card{display:none}a.btn.blocked-secondary:hover{background:rgba(6,88,246,.14)!important;border-color:rgba(6,88,246,.48)!important;color:#a9c8ff!important}

/* Scalable Security preview: bounded panels, internal scrolling, stable page height. */
.security-page .security-grid{align-items:stretch;min-height:0}.security-page .security-panel{min-height:0}.security-page .security-grid>.security-panel{height:min(560px,calc(100vh - 260px));display:flex;flex-direction:column}.security-page .security-panel-head{flex:0 0 auto}.security-page .security-panel-note{flex:0 0 auto;margin:-6px 0 10px;color:var(--muted);font-size:11px}.security-page .security-session-list,.security-page .security-event-list{min-height:0;overflow-y:auto;overflow-x:hidden;padding-right:4px}.security-page .security-session-list{flex:1}.security-page .security-event-list{flex:1}.security-page .security-panel-footer{flex:0 0 auto}.security-page .security-blocked-panel{max-height:240px;overflow:auto}.security-page .security-session-list::-webkit-scrollbar,.security-page .security-event-list::-webkit-scrollbar,.security-page .security-blocked-panel::-webkit-scrollbar{width:7px}.security-page .security-session-list::-webkit-scrollbar-thumb,.security-page .security-event-list::-webkit-scrollbar-thumb,.security-page .security-blocked-panel::-webkit-scrollbar-thumb{background:rgba(128,142,166,.34);border-radius:99px}@media(max-width:900px){.security-page .security-grid>.security-panel{height:420px}}@media(max-width:600px){.security-page .security-grid>.security-panel{height:380px}}

/* Preview option: full-width security panels stacked vertically. */
.security-page .security-grid{grid-template-columns:1fr}.security-page .security-grid>.security-panel{height:min(500px,calc(100vh - 280px))}.security-page .security-event-list .security-event{grid-template-columns:minmax(0,1fr) auto;align-items:center}@media(max-width:600px){.security-page .security-grid>.security-panel{height:390px}}

.security-status.revoked{background:rgba(150,160,175,.16);color:#aeb8c8}.security-status.blocked{background:rgba(224,82,82,.18);color:#ff9b9b;border:1px solid rgba(224,82,82,.22)}

.security-log-actions{justify-content:flex-start}

.security-log-actions{width:100%;margin:0;justify-content:flex-start!important;text-align:left}

.security-log-actions .security-status{margin-left:0}

.security-select-chevron{display:block;width:8px;height:8px;flex:0 0 8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;line-height:0;transform:rotate(45deg);position:relative;top:-2px}

/* Confirmation modal polish: icon and close control share the same top line. */
.security-confirm-icon{margin-top:-10px}.security-confirm-actions .btn{transition:background .16s ease,border-color .16s ease,color .16s ease}.security-confirm-cancel:hover{background:rgba(128,142,166,.16);border-color:rgba(128,142,166,.5);color:var(--text)}.security-confirm-primary:hover{background:rgba(6,88,246,.28);border-color:rgba(92,147,255,.65);color:#c5d9ff}.security-confirm-danger:hover{background:rgba(224,82,82,.25);border-color:rgba(255,120,120,.65);color:#ffc1c1}

.security-confirm-modal .security-confirm-actions .security-confirm-cancel:hover{background:rgba(128,142,166,.2)!important;border-color:rgba(128,142,166,.58)!important;color:var(--text)!important}.security-confirm-modal .security-confirm-actions .security-confirm-primary:hover{background:rgba(6,88,246,.34)!important;border-color:rgba(92,147,255,.78)!important;color:#d8e5ff!important}.security-confirm-modal .security-confirm-actions .security-confirm-danger:hover{background:rgba(224,82,82,.32)!important;border-color:rgba(255,120,120,.78)!important;color:#ffd0d0!important}

.security-session-icon{display:grid;place-items:center;width:38px;height:38px}.security-session-icon svg{display:block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

.security-log-table .security-log-row{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,1.4fr) minmax(0,1fr) minmax(0,1.25fr) 125px}.security-log-table .security-log-row>span{min-width:0;overflow:hidden;overflow-wrap:anywhere;word-break:break-word}.security-log-table .security-log-row>span strong{min-width:0;overflow-wrap:anywhere;word-break:break-word}

.security-blocked-row{display:grid;grid-template-columns:minmax(220px,1.5fr) minmax(160px,1fr) minmax(160px,1fr) auto;gap:18px;align-items:center}.security-blocked-user{min-width:0}.security-blocked-user strong,.security-blocked-user small{display:block;overflow-wrap:anywhere}.security-blocked-user small{color:var(--muted);font-size:11px;margin-top:4px}.security-blocked-date{display:grid;gap:4px;min-width:0}.security-blocked-date span{color:var(--muted);font-size:11px}.security-blocked-date b{font-size:12px;overflow-wrap:anywhere}@media(max-width:760px){.security-blocked-row{grid-template-columns:1fr 1fr;gap:12px}.security-blocked-row .security-blocked-user{grid-column:1/-1}.security-blocked-row>.btn{justify-self:start}}

html.auth-logged-in #authScreen{display:none!important}html.auth-ready .app,html.auth-blocked .app{display:none!important}html.auth-ready #authScreen,html.auth-blocked #authScreen{display:flex!important}body.auth-minimal #teamdeckAiLauncher{display:none!important}

/* Shared button hover: neutral by default; feature-specific danger/security styles keep their own hover. */
.btn:not(.primary):not(.security-confirm-primary):not(.security-confirm-danger):not(.security-confirm-cancel):not(.approval-approve):not(.delete-confirm-action):not(.cancel-button):hover{background:rgba(128,142,166,.12);border-color:rgba(128,142,166,.42);color:var(--text)}
body.dark .btn:not(.primary):not(.security-confirm-primary):not(.security-confirm-danger):not(.security-confirm-cancel):not(.approval-approve):not(.delete-confirm-action):not(.cancel-button):hover,.dark .btn:not(.primary):not(.security-confirm-primary):not(.security-confirm-danger):not(.security-confirm-cancel):not(.approval-approve):not(.delete-confirm-action):not(.cancel-button):hover{background:rgba(255,255,255,.09);border-color:rgba(170,190,220,.42);color:#f3f6fb}

/* Offboarding archive */
.offboarding-archive-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}.offboarding-archive{display:grid;gap:10px}.offboarding-archive-card{display:grid;grid-template-columns:minmax(210px,1.1fr) minmax(260px,1.5fr) auto;align-items:center;gap:18px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:rgba(128,142,166,.06)}.offboarding-archive-person{display:flex;align-items:center;gap:10px;min-width:0}.offboarding-archive-person .offboarding-person-avatar{flex:0 0 38px;width:38px;height:38px}.offboarding-archive-person span:last-child{min-width:0}.offboarding-archive-person b,.offboarding-archive-person small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.offboarding-archive-person small{margin-top:3px;color:var(--muted);font-size:12px}.offboarding-archive-meta{display:flex;flex-wrap:wrap;gap:6px 16px;color:var(--muted);font-size:12px}.offboarding-archive-meta span{min-width:0}.offboarding-archive-meta b{color:var(--text);font-weight:650}.offboarding-archive-open{white-space:nowrap}.offboarding-archive-empty{padding:24px}.offboarding-archive-detail{display:grid;gap:10px;margin-top:18px;padding:14px;border:1px solid var(--line);border-radius:10px;background:rgba(128,142,166,.06)}.offboarding-archive-detail p{margin:0;color:var(--muted);line-height:1.5}.offboarding-archive-detail p b{color:var(--text)}.offboarding-archive-detail ul{margin:0;padding-left:20px;color:var(--text)}
@media(max-width:900px){.offboarding-archive-card{grid-template-columns:1fr}.offboarding-archive-open{justify-self:start}.offboarding-archive-actions{justify-content:flex-start}}
body.dark .offboarding-archive-card,.dark .offboarding-archive-card{background:rgba(128,142,166,.08)}
/* Apply the saved dark palette before JavaScript reaches body initialization. */
html.theme-dark{--bg:#111827;--panel:#1f2937;--text:#f3f4f6;--muted:#aeb6c6;--line:#374151;--shadow:0 8px 28px rgba(0,0,0,.24);background:#111827;color:#f3f4f6}
html.theme-dark body{background:#111827;color:#f3f4f6}
/* Keep login controls and floating launcher stable during the pre-auth paint. */
html.theme-dark .auth-screen .input,html.theme-dark .auth-card .input{background:#263244;color:#f3f4f6;border-color:#465267}
html.theme-dark .auth-screen .input::placeholder{color:#8994a7}
html.auth-ready #teamdeckAiLauncher,html.auth-blocked #teamdeckAiLauncher{display:none!important}
/* Auth preloader: intentional first paint while the cross-domain session is checked. */
.auth-preloader{display:none;position:fixed;inset:0;z-index:250;align-items:center;justify-content:center;flex-direction:column;gap:9px;background:#111827;color:#f3f4f6}.auth-preloader strong{font-size:20px;letter-spacing:-.04em}.auth-preloader small{color:#9aa8bc;font-size:11px}.auth-preloader-mark{display:flex;align-items:flex-end;justify-content:center;gap:4px;width:36px;height:32px;margin-bottom:1px}.auth-preloader-mark span{display:block;width:8px;border-radius:5px;background:#3f82ff;animation:authPreloaderPulse 1s ease-in-out infinite}.auth-preloader-mark span:nth-child(1){height:16px;animation-delay:0s}.auth-preloader-mark span:nth-child(2){height:25px;animation-delay:.14s}.auth-preloader-mark span:nth-child(3){height:19px;animation-delay:.28s}@keyframes authPreloaderPulse{0%,100%{opacity:.42;transform:scaleY(.78)}50%{opacity:1;transform:scaleY(1)}}html.auth-bootstrap-pending .auth-preloader{display:flex}@media(prefers-reduced-motion:reduce){.auth-preloader-mark span{animation:none;opacity:.8}}
/* Keep the login UI hidden while the cross-domain session is being hydrated. */
html.auth-bootstrap-pending .auth-screen{display:none!important}
/* Do not paint the legacy demo form while OTP auth replaces it. */
html.auth-bootstrap-pending .auth-form{visibility:hidden}

/* Vacancies table entrance animation matches Analytics performance rows. */
.views.active #vacBody tr{animation:tdSoftLine .45s ease both}
.views.active #vacBody tr:nth-child(2){animation-delay:.08s}
.views.active #vacBody tr:nth-child(3){animation-delay:.16s}
.views.active #vacBody tr:nth-child(4){animation-delay:.24s}
.views.active #vacBody tr:nth-child(5){animation-delay:.32s}
.views.active #vacBody tr:nth-child(6){animation-delay:.40s}
.views.active #vacBody tr:nth-child(7){animation-delay:.48s}
@media(prefers-reduced-motion:reduce){.views.active #vacBody tr{animation-duration:.01ms!important;animation-delay:0!important}}

/* Candidates table entrance animation matches Vacancies and Analytics rows. */
.views.active #candBody tr{animation:tdSoftLine .45s ease both}
.views.active #candBody tr:nth-child(2){animation-delay:.08s}
.views.active #candBody tr:nth-child(3){animation-delay:.16s}
.views.active #candBody tr:nth-child(4){animation-delay:.24s}
.views.active #candBody tr:nth-child(5){animation-delay:.32s}
.views.active #candBody tr:nth-child(6){animation-delay:.40s}
.views.active #candBody tr:nth-child(7){animation-delay:.48s}
.views.active #candBody tr:nth-child(8){animation-delay:.56s}
@media(prefers-reduced-motion:reduce){.views.active #candBody tr{animation-duration:.01ms!important;animation-delay:0!important}}

/* Department actions live in the department modal header. */
.department-card{padding-right:15px}
.department-modal-head{align-items:flex-start}
.department-modal-tools{display:flex;align-items:flex-start;gap:7px;margin-left:auto}
.department-modal-action{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;padding:0;border:1px solid var(--line);border-radius:9px;background:transparent;color:var(--muted);cursor:pointer;transition:background .16s ease,color .16s ease,border-color .16s ease}
.department-modal-action svg{width:16px;height:16px}
.department-modal-move:hover{background:rgba(6,88,246,.10);border-color:rgba(6,88,246,.35);color:var(--text)}
.department-modal-delete:hover{background:rgba(220,68,78,.14);border-color:rgba(220,68,78,.42);color:#ff8f98}
.department-modal-tools>.close{flex:0 0 34px;width:34px;height:34px;margin:0}
@media(max-width:700px){.department-modal-tools{gap:5px}.department-modal-action,.department-modal-tools>.close{flex-basis:32px;width:32px;height:32px}}

/* Employee profile contact menu: match candidate profile and open upward. */
.employee-contact-wrap{position:relative;display:inline-flex}
.employee-contact-menu{left:auto;right:0;top:auto;bottom:calc(100% + 8px);min-width:238px;padding:10px;gap:4px;border-radius:12px;background:var(--panel);box-shadow:0 14px 34px rgba(0,0,0,.22)}
.employee-contact-item{min-height:48px;padding:10px 12px;gap:12px;border-radius:8px;font-size:15px;transition:background .16s ease,color .16s ease}
.employee-contact-item:hover{background:rgba(128,140,160,.12);color:var(--text)}
.employee-contact-item-icon{width:32px;height:32px;min-width:32px;border-radius:50%;display:grid;place-items:center;background:rgba(6,88,246,.85);color:#fff;font-size:16px}
.employee-contact-item span:nth-child(2){display:grid;gap:2px;min-width:0}
.employee-contact-item b{font-size:15px}
.employee-contact-item small{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.team-detail>.employee-status{justify-self:start;width:auto;align-self:start}
@media(max-width:700px){.employee-contact-menu{right:0;min-width:224px}}
.employee-contact-item-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;display:block}

/* Compact Offboarding person cards: size follows the content instead of an oversized grid track. */
.offboarding-stage-people .offboarding-person{align-self:start;min-height:0!important;height:auto!important;padding:10px 9px!important;gap:9px}
.offboarding-stage-people .offboarding-person-avatar{width:34px;height:34px;flex-basis:34px}
.offboarding-stage-people .offboarding-person b{font-size:13px;line-height:1.2;font-weight:700}
.offboarding-stage-people .offboarding-person small{font-size:11px;line-height:1.25;margin-top:3px}
.offboarding-stage-people .offboarding-person em{display:block;margin-top:5px;font-size:11px;line-height:1.25;font-style:normal}

/* Offboarding cards follow the compact Onboarding card pattern. */
.offboarding-stage-people .offboarding-person{display:flex;align-items:center;gap:9px;margin:0!important;padding:10px 8px!important;border:1px solid var(--line);border-radius:9px;background:var(--panel);min-height:0!important;height:auto!important;cursor:grab;transition:.18s}
.offboarding-stage-people .offboarding-person:hover{border-color:#a7a1ff;transform:translateY(-1px)}
.offboarding-stage-people .offboarding-person-avatar{width:30px;height:30px;flex:0 0 30px}
.offboarding-stage-people .offboarding-person b{display:block;font-size:11px;line-height:1.2}
.offboarding-stage-people .offboarding-person small{display:block;color:var(--muted);font-size:10px;line-height:1.2;margin-top:3px}
.offboarding-card-badges{display:flex;align-items:center;flex-wrap:wrap;gap:4px;margin-top:5px}
.offboarding-card-status,.offboarding-card-badge,.offboarding-info-badge{display:inline-flex;align-items:center;min-height:20px;padding:2px 7px;border:1px solid rgba(128,142,166,.28);border-radius:999px;background:rgba(128,142,166,.12);color:var(--muted);font-size:10px;line-height:1.2;font-style:normal;font-weight:500;white-space:nowrap}
.offboarding-info-badge{font-size:11px;color:var(--muted);gap:3px}
.offboarding-info-badge b{color:var(--text);font-weight:650}
.offboarding-archive-meta{gap:7px}
.dark .offboarding-card-status,.dark .offboarding-card-badge,.dark .offboarding-info-badge{background:rgba(148,163,184,.14);border-color:rgba(148,163,184,.25);color:#b8c1cf}

/* Offboarding pipeline cards intentionally match Onboarding: identity only; exit metadata belongs to the checklist modal. */
.offboarding-stage-people .offboarding-person{display:flex;align-items:center;gap:9px;margin:0!important;padding:10px 8px!important;border:1px solid var(--line);border-radius:9px;background:var(--panel);min-height:0!important;height:auto!important;cursor:grab;transition:.18s}
.offboarding-stage-people .offboarding-person:hover{border-color:#a7a1ff;transform:translateY(-1px)}
.offboarding-stage-people .offboarding-person-avatar{width:30px;height:30px;flex:0 0 30px}
.offboarding-stage-people .offboarding-person b{display:block;font-size:11px;line-height:1.2}
.offboarding-stage-people .offboarding-person small{display:block;color:var(--muted);font-size:10px;line-height:1.2;margin-top:3px}
.offboarding-profile-meta{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:12px 0 18px}

/* Offboarding cards size to their identity content, like compact kanban cards. */
.offboarding-stage-people{display:flex!important;flex-wrap:wrap;align-items:flex-start!important;gap:10px!important}
.offboarding-stage-people .offboarding-person{flex:0 0 auto;width:max-content;min-width:0;max-width:100%;padding-inline:8px!important;box-sizing:border-box}
.offboarding-stage-people .offboarding-person>span:last-child{min-width:0}
@media(max-width:900px){.offboarding-stage-people .offboarding-person{max-width:100%}}

.demo-resume-page-head{position:relative}.demo-resume-page-head .demo-resume-watermark{position:absolute;right:0;top:0;width:132px;height:auto;opacity:1;display:block;margin:0}
@media print{
  @page{size:A4;margin:12mm}
  html,body{background:#fff!important;color:#182235!important}
  body>*:not(#modal){display:none!important}
  #modal{display:block!important;position:static!important;background:#fff!important;padding:0!important;overflow:visible!important}
  #modalContent{display:block!important;position:static!important;max-width:none!important;width:auto!important;max-height:none!important;overflow:visible!important;padding:0!important;background:#fff!important;border:0!important;box-shadow:none!important}
  #modalContent>.modalhead,#modalContent>.demo-resume-toolbar{display:none!important}
  .demo-resume-page{display:block!important;position:relative!important;width:auto!important;max-width:none!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:#fff!important;color:#182235!important}
  .demo-resume-page-head,.demo-resume-grid{display:grid!important}
  .demo-resume-page h1,.demo-resume-page h2,.demo-resume-page h3,.demo-resume-page p,.demo-resume-page span,.demo-resume-page b,.demo-resume-page li{color:#182235!important}
  .demo-resume-page h2{color:#2563eb!important}
  .demo-resume-page footer{display:block!important;color:#6b7280!important;border-top:1px solid #e5e7eb!important;padding-top:12px!important;margin-top:18px!important}
  .demo-resume-page-head .demo-resume-watermark{display:block!important;opacity:1!important;filter:none!important;position:absolute!important;right:0!important;top:0!important;width:132px!important;height:auto!important}
}

/* Account settings and Knowledge Base */
.account-page-top,.knowledge-page-top{align-items:flex-end}
.account-settings-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.75fr);gap:16px;align-items:start}
.account-settings-main,.account-settings-side{display:grid;gap:16px}.account-card{margin:0!important}.account-card .settings-card-title{align-items:flex-start}.account-avatar{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:rgba(6,88,246,.16);border:1px solid rgba(83,134,255,.42);color:#73a0ff;font-size:14px;font-weight:800;letter-spacing:.04em}.account-form{margin-top:18px}.account-form .field-hint{display:block;margin-top:6px;color:var(--muted);font-size:11px;line-height:1.45}.account-setting-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 0;border-top:1px solid var(--line)}.account-setting-row:first-of-type{margin-top:10px}.account-setting-row p{margin:5px 0 0;color:var(--muted);font-size:12px}.account-access-card{background:linear-gradient(145deg,rgba(6,88,246,.12),rgba(6,88,246,.035))}.account-access-line{display:flex;justify-content:space-between;gap:14px;padding:12px 0;border-top:1px solid var(--line);font-size:12px}.account-access-line span{color:var(--muted)}.account-outline-btn{width:100%;margin-top:12px}.green-dot{display:block;width:9px;height:9px;border-radius:50%;background:#4ade80;box-shadow:0 0 0 4px rgba(74,222,128,.12)}
.knowledge-page-top{margin-bottom:16px}.knowledge-support-btn{background:rgba(6,88,246,.14);border-color:rgba(83,134,255,.35);color:#8eb3ff}.knowledge-hero{position:relative;overflow:hidden;display:grid;grid-template-columns:1fr minmax(260px,.8fr);gap:28px;align-items:center;padding:28px!important;background:linear-gradient(125deg,rgba(6,88,246,.18),rgba(103,72,232,.11) 58%,rgba(26,36,55,.3))}.knowledge-hero:after{content:"";position:absolute;width:230px;height:230px;right:12%;top:-120px;border-radius:50%;border:1px solid rgba(120,160,255,.22);box-shadow:0 0 0 28px rgba(120,160,255,.04),0 0 0 56px rgba(120,160,255,.025)}.knowledge-hero>div{position:relative;z-index:1}.knowledge-hero-label,.section-kicker{display:block;color:#8eb3ff;font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.knowledge-hero h2{max-width:510px;margin:9px 0 7px;font-size:26px;line-height:1.12}.knowledge-hero p{max-width:520px;margin:0;color:var(--muted);line-height:1.55}.knowledge-hero-mark{position:absolute!important;right:11%;top:25px;color:rgba(142,179,255,.34);font-size:120px;font-weight:800;line-height:1}.knowledge-search{position:relative;z-index:2;display:flex;align-items:center;gap:10px;min-width:0;padding:12px 13px;border:1px solid rgba(142,179,255,.34);border-radius:12px;background:rgba(11,20,36,.54);box-shadow:inset 0 1px rgba(255,255,255,.05)}.knowledge-search>span{font-size:22px;color:#8eb3ff;line-height:1}.knowledge-search input{min-width:0;flex:1;border:0;outline:0;background:transparent;color:var(--text);font:inherit}.knowledge-search input::placeholder{color:var(--muted)}.knowledge-search kbd{padding:3px 6px;border:1px solid var(--line);border-radius:5px;color:var(--muted);font-size:10px}.knowledge-categories{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.knowledge-category{border:1px solid var(--line);border-radius:999px;background:transparent;color:var(--muted);padding:8px 13px;font:inherit;font-size:12px;cursor:pointer;transition:background .18s ease,border-color .18s ease,color .18s ease}.knowledge-category:hover{background:rgba(6,88,246,.1);border-color:rgba(83,134,255,.45);color:var(--text)}.knowledge-category.active{background:rgba(6,88,246,.17);border-color:rgba(83,134,255,.65);color:#a8c4ff}.section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:12px}.knowledge-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.knowledge-article-card{position:relative;display:flex;align-items:flex-start;gap:12px;min-height:148px;padding:17px;text-align:left;border:1px solid var(--line);border-radius:14px;background:var(--panel);color:var(--text);cursor:pointer;transition:transform .18s ease,background .18s ease,border-color .18s ease}.knowledge-article-card:hover{transform:translateY(-2px);background:color-mix(in srgb,var(--panel) 88%,#0658f6 12%);border-color:rgba(83,134,255,.55)}.knowledge-article-icon,.knowledge-modal-icon{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:10px;background:rgba(6,88,246,.16);color:#83adff;font-size:17px;font-weight:700}.knowledge-article-copy{display:grid;gap:7px;min-width:0}.knowledge-article-copy b{font-size:13px;line-height:1.25}.knowledge-article-copy small{color:var(--muted);font-size:11px;line-height:1.45}.knowledge-article-copy em{color:#83adff;font-size:10px;font-style:normal}.knowledge-arrow{position:absolute;top:15px;right:15px;color:var(--muted);font-size:15px}.knowledge-bottom-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:16px;margin-top:16px}.knowledge-checklist,.knowledge-contact-card{margin:0!important;padding:22px!important}.knowledge-checklist h2,.knowledge-contact-card h2{margin:8px 0;font-size:18px}.knowledge-checklist p,.knowledge-contact-card p{max-width:470px;margin:0 0 16px;color:var(--muted);font-size:12px;line-height:1.55}.knowledge-progress{height:7px;margin:14px 0 8px;border-radius:99px;background:rgba(142,160,190,.16);overflow:hidden}.knowledge-progress i{display:block;height:100%;border-radius:inherit;background:#548bff}.knowledge-checklist small{display:block;margin-bottom:16px;color:var(--muted);font-size:11px}.knowledge-contact-card{background:linear-gradient(145deg,rgba(103,72,232,.17),rgba(6,88,246,.07))}.knowledge-empty{grid-column:1/-1;padding:32px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:14px}.knowledge-article-modal{padding:6px 0 18px}.knowledge-modal-icon{margin-bottom:18px;width:44px;height:44px}.knowledge-article-modal p{color:var(--text);font-size:14px;line-height:1.7}.knowledge-modal-tip{display:grid;gap:6px;margin-top:18px;padding:14px;border-left:3px solid #548bff;border-radius:0 10px 10px 0;background:rgba(6,88,246,.08)}.knowledge-modal-tip span{color:var(--muted);font-size:12px;line-height:1.5}
@media(max-width:1000px){.knowledge-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.account-settings-layout{grid-template-columns:1fr}}
@media(max-width:680px){.knowledge-hero{grid-template-columns:1fr;padding:20px!important}.knowledge-hero-mark{right:8%;top:5px;font-size:90px}.knowledge-grid,.knowledge-bottom-grid{grid-template-columns:1fr}.account-page-top,.knowledge-page-top{align-items:flex-start;gap:12px}.knowledge-search{width:100%}}
/* Keep the knowledge search area clean: no question mark or decorative semicircle. */
.knowledge-hero:after,.knowledge-hero-mark{display:none!important}

/* Vacancy department dropdown matches the modal input controls. */
.modal .platform-select[data-select-id="vdept"]{display:block;width:100%;min-width:0}
.modal .platform-select[data-select-id="vdept"] .platform-select-trigger{box-sizing:border-box;width:100%;min-width:0;height:44px;padding:0 12px;border:1px solid transparent;border-radius:9px;background:#263244;color:var(--text);font:inherit;line-height:normal}
.modal .platform-select[data-select-id="vdept"] .platform-select-trigger:hover,.modal .platform-select[data-select-id="vdept"].open .platform-select-trigger{background:#263244;border-color:transparent;color:var(--text)}
.modal .platform-select[data-select-id="vdept"].is-placeholder .platform-select-value{color:var(--muted);opacity:1}

/* Vacancy list filters. */
.vacancy-filters{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:-2px 0 16px}.vacancy-filters .input{min-width:0;padding:10px 11px;font-size:13px}.vacancy-filters .vacancy-sort{grid-column:auto}
@media(max-width:1100px){.vacancy-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.vacancy-filters{grid-template-columns:1fr 1fr}.vacancy-filters .vacancy-sort{grid-column:1/-1}}

/* Vacancy level dropdown uses the same control treatment as department. */
.modal .platform-select[data-select-id="vlevel"]{display:block;width:100%;min-width:0}
.modal .platform-select[data-select-id="vlevel"] .platform-select-trigger{box-sizing:border-box;width:100%;min-width:0;height:44px;padding:0 12px;border:1px solid transparent;border-radius:9px;background:#263244;color:var(--text);font:inherit;line-height:normal}
.modal .platform-select[data-select-id="vlevel"] .platform-select-trigger:hover,.modal .platform-select[data-select-id="vlevel"].open .platform-select-trigger{background:#263244;border-color:transparent;color:var(--text)}

/* Shared platform dropdowns for Candidates and Analytics. */
.platform-select{position:relative;display:inline-flex;min-width:0;vertical-align:middle}
.platform-select>select{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.platform-select-trigger{display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:190px;height:42px;padding:0 15px;border:1px solid var(--line);border-radius:12px;background:rgba(28,43,62,.72);color:var(--text);font:inherit;font-size:14px;line-height:1;cursor:pointer;transition:background .16s ease,border-color .16s ease,color .16s ease}
.platform-select-trigger:hover,.platform-select.open .platform-select-trigger{background:rgba(39,59,84,.9);border-color:rgba(111,157,255,.76);color:#dce8ff}
.platform-select-chevron{width:8px;height:8px;flex:0 0 8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);position:relative;top:-2px;opacity:.8;transition:transform .16s ease,top .16s ease}
.platform-select.open .platform-select-chevron{transform:rotate(225deg);top:2px}
.platform-select-menu{position:absolute;z-index:140;top:calc(100% + 7px);left:0;min-width:100%;padding:6px;border:1px solid rgba(132,157,190,.48);border-radius:14px;background:#172536;box-shadow:0 18px 45px rgba(0,0,0,.34);opacity:0;visibility:hidden;transform:translateY(-5px);transition:opacity .14s ease,transform .14s ease,visibility .14s ease}
.platform-select.open .platform-select-menu{opacity:1;visibility:visible;transform:translateY(0)}
.platform-select-option{display:flex;align-items:center;gap:8px;width:100%;min-height:38px;padding:0 11px;border:0;border-radius:9px;background:transparent;color:#edf3ff;text-align:left;font:inherit;font-size:14px;white-space:nowrap;cursor:pointer;transition:background .14s ease,color .14s ease}
.platform-select-option:hover{background:rgba(75,126,232,.28);color:#fff}
.platform-select-option.selected{background:linear-gradient(90deg,rgba(27,91,201,.82),rgba(30,89,181,.55));color:#fff}
.platform-select-check{display:inline-grid;place-items:center;width:14px;min-width:14px;color:#a9c7ff;font-size:15px;font-weight:700}
.analytics-toolbar .platform-select{flex:0 1 290px}.analytics-toolbar .platform-select-trigger{width:100%}
.searchbar .platform-select{flex:0 0 190px}.searchbar .platform-select-trigger{width:100%}
body.dark .platform-select-trigger,.dark .platform-select-trigger{background:rgba(28,43,62,.78)}
body.dark .platform-select-menu,.dark .platform-select-menu{background:#172536;border-color:rgba(132,157,190,.48)}
@media(max-width:760px){.analytics-toolbar .platform-select{flex:1 1 220px}.searchbar .platform-select{flex:1 1 190px}}

/* Login language switcher. */
.auth-language-switch{display:flex;justify-content:flex-end;gap:4px;margin:0 0 18px}
.auth-language-option{min-width:42px;height:30px;padding:0 10px;border:1px solid transparent;border-radius:8px;background:rgba(128,142,166,.10);color:var(--muted);font:inherit;font-size:11px;font-weight:700;letter-spacing:.04em;cursor:pointer;transition:background .16s ease,color .16s ease,border-color .16s ease}
.auth-language-option:hover{background:rgba(6,88,246,.14);color:var(--text);border-color:rgba(6,88,246,.25)}
.auth-language-option.active{background:rgba(6,88,246,.18);color:#a9c8ff;border-color:rgba(6,88,246,.35)}

/* Login screen: subtle pricing-panel visual language. */
.auth-screen{position:relative;overflow:hidden;background:radial-gradient(circle at 18% 18%,rgba(6,88,246,.16),transparent 34%),radial-gradient(circle at 84% 78%,rgba(103,72,232,.12),transparent 30%),var(--bg)}
.auth-screen:before,.auth-screen:after{content:"";position:absolute;pointer-events:none;border-radius:999px;filter:blur(2px);opacity:.55}
.auth-screen:before{width:280px;height:280px;left:-150px;top:-120px;background:radial-gradient(circle,rgba(6,88,246,.22),transparent 68%)}
.auth-screen:after{width:360px;height:360px;right:-190px;bottom:-180px;background:radial-gradient(circle,rgba(103,72,232,.18),transparent 68%)}
.auth-card{position:relative;isolation:isolate;overflow:hidden;border:1px solid rgba(132,157,190,.26);background:linear-gradient(145deg,rgba(31,46,66,.97),rgba(24,36,53,.98));box-shadow:0 26px 80px rgba(0,0,0,.28),0 0 0 1px rgba(6,88,246,.05)}
.auth-card:before{content:"";position:absolute;z-index:-1;left:0;right:0;top:0;height:3px;background:linear-gradient(90deg,#0658f6,#6d5dfc,#33a4ff);opacity:.9}
.auth-brand,.auth-form,.auth-legal{position:relative;z-index:1}
.auth-brand h1{letter-spacing:-.02em}
.auth-submit{box-shadow:0 12px 28px rgba(6,88,246,.22)}
.auth-language-switch{position:fixed;z-index:20;right:24px;bottom:22px;display:flex;align-items:center;gap:4px;margin:0;padding:4px;border:1px solid rgba(132,157,190,.22);border-radius:12px;background:rgba(23,37,54,.72);backdrop-filter:blur(12px);box-shadow:0 10px 28px rgba(0,0,0,.18)}
@media(max-width:600px){.auth-language-switch{right:14px;bottom:14px}.auth-card{padding-left:24px;padding-right:24px}}

/* iPad / tablet responsive layer: preserve desktop density while making every page touch-friendly. */
@media (min-width:701px) and (max-width:1100px){
  .side{width:210px;padding:18px 12px}.side .logo img{width:170px}.main,.app.sidebar-collapsed .main{margin-left:210px;padding:24px 22px}
  .title h1{font-size:25px}.top{gap:16px}.actions{flex-wrap:wrap;justify-content:flex-end}.actions .btn{min-height:44px}
  .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.integration-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid,.team-lower{grid-template-columns:1fr}.team-tools{flex-wrap:wrap}.team-tools .input{max-width:none;flex:1 1 210px}
  .table-wrap,.section:has(> .table),.bars,.company-org{overflow-x:auto;-webkit-overflow-scrolling:touch}.table{min-width:680px}.platform-rating-table{min-width:860px}
  .formgrid{grid-template-columns:1fr 1fr}.modal{width:min(760px,calc(100vw - 44px));max-height:calc(100vh - 44px);padding:22px}.modal:has(.integration-catalog){width:calc(100vw - 44px);height:calc(100vh - 44px)}
  .calendar{overflow-x:auto;-webkit-overflow-scrolling:touch}.calendar-grid{min-width:680px}.kanban{grid-template-columns:repeat(5,minmax(220px,1fr));overflow-x:auto;padding-bottom:10px;-webkit-overflow-scrolling:touch}.col{min-height:420px}
  .bars .barrow{min-width:440px}.response-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.vacancy-grid,.candidate-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.department-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.team-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .security-grid{grid-template-columns:1fr}.security-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.security-log-toolbar{grid-template-columns:1.5fr 1fr 1fr}.security-log-table{overflow-x:auto}.security-log-table .security-log-row{min-width:920px}.security-page .security-grid>.security-panel{height:min(520px,calc(100vh - 270px))}
  .account-settings-layout{grid-template-columns:1fr}.knowledge-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.knowledge-bottom-grid{grid-template-columns:1fr 1fr}.knowledge-hero{grid-template-columns:1fr minmax(260px,.8fr)}
  .profile{grid-template-columns:150px 1fr}.team-profile{grid-template-columns:130px 1fr}.team-profile-photo{width:130px;height:130px}.team-detail{grid-template-columns:120px 1fr}.employee-contact-menu,.contact-hover-menu{max-width:calc(100vw - 44px)}
  button,.btn,.input,select,textarea{touch-action:manipulation}.btn,.nav button,.close{min-height:44px}.nav button{padding-top:12px;padding-bottom:12px}.sidebar-toggle{width:30px;height:30px}
}
/* iPad portrait: switch to the same drawer navigation used on compact screens. */
@media (min-width:701px) and (max-width:820px){
  .mobilebar{height:62px;position:fixed;inset:0 0 auto 0;background:var(--panel);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:13px;padding:0 18px;z-index:25}.mobilebar-title{font-size:18px;font-weight:800;color:var(--text)}.mobile-menu-toggle{width:42px;height:42px;background:rgba(128,142,166,.14);color:var(--text);border-radius:10px;font-size:21px;display:grid;place-items:center}
  .side,.side.collapsed{position:fixed;top:0;bottom:0;left:0;width:290px;height:100vh;padding-top:22px;transform:translateX(-105%);transition:transform .22s ease;box-shadow:12px 0 30px rgba(15,20,30,.18);z-index:30}.side.mobile-open{transform:translateX(0)}.side.collapsed .logo img{width:100%;height:auto;object-fit:contain;object-position:left center}.side.collapsed .logo{padding-left:12px;padding-right:12px}.side.collapsed .nav button{font-size:14px;justify-content:flex-start;padding:12px}.side.collapsed .nav-icon{width:19px;height:19px;flex-basis:19px}.side.collapsed .nav button::after,.sidebar-toggle{display:none}.nav-scrim{position:fixed;inset:0;background:rgba(15,20,30,.42);z-index:29}.nav-scrim.open{display:block}
  .main,.app.sidebar-collapsed .main{margin:0;padding:82px 20px 28px}.top{align-items:flex-start;gap:14px}.actions{width:100%;justify-content:flex-start}.actions .btn{flex:1 1 180px}.formgrid{grid-template-columns:1fr}.field.full{grid-column:auto}.profile,.team-profile{grid-template-columns:1fr}.team-profile-photo{width:112px;height:112px}.modal{width:calc(100vw - 32px);max-height:calc(100vh - 32px)}.knowledge-hero{grid-template-columns:1fr}.knowledge-bottom-grid{grid-template-columns:1fr}.response-grid,.vacancy-grid,.candidate-grid,.department-grid,.team-grid{grid-template-columns:1fr 1fr}
}
/* Auth and blocked screens on tablets. */
@media (min-width:701px) and (max-width:1100px){
  .auth-screen{padding:28px 24px}.auth-card{width:min(500px,100%);padding:34px 36px 30px}.blocked-card{width:min(520px,calc(100vw - 48px));padding:34px}.auth-language-switch{right:20px;bottom:18px}
}
@media (min-width:701px) and (max-width:820px){.auth-screen{padding:24px 20px}.auth-card{width:min(560px,100%);max-height:calc(100vh - 80px);overflow:auto}.blocked-card{width:min(560px,calc(100vw - 40px));max-height:calc(100vh - 52px);overflow:auto}}
/* Keep dialogs and floating controls clear of iPad safe-area insets. */
@supports (padding: env(safe-area-inset-bottom)){
  @media (min-width:701px) and (max-width:1100px){.modalwrap{padding:22px max(22px,env(safe-area-inset-right)) max(22px,env(safe-area-inset-bottom)) max(22px,env(safe-area-inset-left))}.toast{right:max(22px,env(safe-area-inset-right));bottom:max(22px,env(safe-area-inset-bottom))}.teamdeck-ai-launcher{right:max(24px,env(safe-area-inset-right));bottom:max(24px,env(safe-area-inset-bottom))}}
}

.dashboard-kpi-link{cursor:pointer;transition:transform .18s cubic-bezier(.23,1,.32,1),border-color .18s ease,box-shadow .18s ease}
.dashboard-kpi-link:hover{transform:scale(1.025);border-color:rgba(6,88,246,.55);box-shadow:0 12px 28px rgba(0,0,0,.16)}
.dashboard-kpi-link:focus-visible{outline:2px solid #0658F6;outline-offset:3px}
.dashboard-kpi-link:active{transform:scale(.99)}

/* Action history */
.action-history-card{cursor:pointer;transition:transform .18s ease,background .18s ease,border-color .18s ease}
.action-history-card:hover{transform:translateY(-2px);background:rgba(32,46,68,.92);border-color:rgba(59,130,246,.55)}
.action-history-list,.action-history-modal-list{display:flex;flex-direction:column;gap:12px;max-height:270px;overflow:hidden;padding:2px 4px 4px 2px}
.action-history-event{display:grid;grid-template-columns:54px minmax(0,1fr);gap:12px;position:relative;padding:5px 8px 5px 14px;border-left:3px solid #94a3b8;border-radius:0 10px 10px 0;transition:font-size .18s ease,background .18s ease,opacity .18s ease}
.action-history-event:before{content:"";position:absolute;left:-5px;top:10px;width:7px;height:7px;border-radius:50%;background:currentColor;box-shadow:0 0 0 3px rgba(15,23,42,.9)}
.action-history-event.is-latest{padding-top:8px;padding-bottom:8px;background:rgba(59,130,246,.09);font-size:1.04em;box-shadow:0 0 18px rgba(59,130,246,.1)}
.action-history-event:not(.is-latest){opacity:.82}
.action-history-time{font-size:.75rem;color:#94a3b8;padding-top:3px;white-space:nowrap}.action-history-copy{min-width:0;display:flex;flex-direction:column;gap:3px}.action-history-copy b{font-size:.87rem;color:#f8fafc;line-height:1.25}.action-history-copy small{font-size:.78rem;color:#aab7ca;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.event-type-vacancy{border-color:#3b82f6;color:#3b82f6}.event-type-candidate{border-color:#a78bfa;color:#a78bfa}.event-type-onboarding{border-color:#22c55e;color:#22c55e}.event-type-offboarding{border-color:#f97316;color:#f97316}.event-type-organization{border-color:#eab308;color:#eab308}
.action-history-empty{padding:30px 10px;text-align:center;color:#94a3b8;font-size:.85rem}
.action-history-toolbar{display:flex;gap:8px;margin:16px 0}.action-history-toolbar .btn{font-size:.82rem;padding:9px 13px}.action-history-modal-list{max-height:55vh;overflow:auto;padding-right:10px}.action-history-modal-list .action-history-event{padding-top:11px;padding-bottom:11px}.action-history-modal-list .action-history-copy b{font-size:.95rem}.action-history-modal-list .action-history-copy small{font-size:.85rem;white-space:normal}

/* Action history visual refinement */
.action-history-list,.action-history-modal-list{gap:10px!important}
.action-history-event{display:grid!important;grid-template-columns:58px minmax(0,1fr)!important;align-items:start!important;gap:14px!important;min-height:54px!important;padding:11px 14px 11px 16px!important;border-left-width:4px!important;background:rgba(15,23,42,.22)!important}
.action-history-event:before{top:18px!important}
.action-history-event.is-latest{min-height:64px!important;padding-top:14px!important;padding-bottom:14px!important;background:rgba(59,130,246,.14)!important}
.action-history-time{display:block!important;font-size:.76rem!important;line-height:1.35!important;color:#aab7ca!important;padding-top:1px!important}
.action-history-copy{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:5px!important;min-width:0!important}
.action-history-copy b{display:block!important;font-size:.92rem!important;line-height:1.3!important;color:#f8fafc!important;white-space:normal!important}
.action-history-copy small{display:block!important;font-size:.8rem!important;line-height:1.35!important;color:#aab7ca!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
.action-history-event.is-latest .action-history-copy b{font-size:1rem!important}
.event-type-vacancy{background:rgba(59,130,246,.12)!important}.event-type-candidate{background:rgba(167,139,250,.12)!important}.event-type-onboarding{background:rgba(34,197,94,.11)!important}.event-type-offboarding{background:rgba(249,115,22,.12)!important}.event-type-organization{background:rgba(234,179,8,.12)!important}
.action-history-modal-list{gap:12px!important;max-height:58vh!important}
.action-history-modal-list .action-history-event{min-height:66px!important}
.action-history-modal-list .action-history-copy b{font-size:1rem!important}

/* Keep the latest event color identical in dashboard and modal. */
.action-history-event.is-latest.event-type-vacancy{background:rgba(59,130,246,.12)!important}
.action-history-event.is-latest.event-type-candidate{background:rgba(167,139,250,.12)!important}
.action-history-event.is-latest.event-type-onboarding{background:rgba(34,197,94,.11)!important}
.action-history-event.is-latest.event-type-offboarding{background:rgba(249,115,22,.12)!important}
.action-history-event.is-latest.event-type-organization{background:rgba(234,179,8,.12)!important}
.action-history-event.is-latest{box-shadow:0 0 0 1px currentColor,0 8px 20px rgba(0,0,0,.12)!important}

/* Fixed dashboard feed and bounded history dialog. */
.action-history-list{height:148px!important;min-height:148px!important;max-height:148px!important;overflow:hidden!important;gap:10px!important}
.action-history-list .action-history-event{flex:0 0 auto!important}
.modal:has(.action-history-modal-list){width:min(920px,100%)!important;max-height:min(760px,calc(100vh - 40px))!important;overflow:hidden!important}
.action-history-modal-list{height:auto!important;max-height:min(58vh,560px)!important;overflow-y:auto!important;overflow-x:hidden!important;padding-right:12px!important}

/* Action history event palette. */
.event-type-rejection{border-color:#ef4444!important;color:#ef4444!important;background:rgba(239,68,68,.12)!important}
.action-history-event.is-latest.event-type-rejection{background:rgba(239,68,68,.12)!important}

/* Dashboard history cards keep a stable two-row layout; long titles scale down. */
.action-history-list{height:182px!important;min-height:182px!important;max-height:182px!important}
.action-history-list .action-history-event,.action-history-list .action-history-event.is-latest{height:86px!important;min-height:86px!important;max-height:86px!important;box-sizing:border-box!important}
.action-history-list .action-history-copy b{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important}
.action-history-list .action-history-copy small{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important}
.action-history-list .action-history-title-normal{font-size:.92rem!important}
.action-history-list .action-history-title-medium{font-size:.84rem!important;line-height:1.22!important}
.action-history-list .action-history-title-long{font-size:.76rem!important;line-height:1.18!important}
.action-history-list .is-latest .action-history-title-normal{font-size:1rem!important}
.action-history-list .is-latest .action-history-title-medium{font-size:.84rem!important}
.action-history-list .is-latest .action-history-title-long{font-size:.76rem!important}

/* Upcoming events and editable calendar events */
.calendar-day[onclick]{cursor:pointer}
.calendar-event{border-left:3px solid var(--event-color,#8b7cf6)!important;background:color-mix(in srgb,var(--event-color,#8b7cf6) 18%,transparent)!important;min-height:28px;text-align:left}
.calendar-event small{display:block;color:var(--muted,#aeb8c8);font-size:11px;margin-top:2px}
.calendar-color-input{height:42px;padding:5px;cursor:pointer}
.upcoming-events-card{overflow:hidden}
.upcoming-events-list{display:grid;gap:10px;max-height:430px;overflow:auto;padding-right:4px}
.upcoming-event{display:grid;grid-template-columns:125px 1fr;gap:16px;width:100%;text-align:left;border:0;border-left:4px solid var(--event-color,#8b7cf6);border-radius:0 14px 14px 0;padding:14px 16px;background:color-mix(in srgb,var(--event-color,#8b7cf6) 15%,#182436);color:inherit;cursor:default;transition:none}
.upcoming-event:hover{filter:none}
.upcoming-event b{display:block;font-size:16px;line-height:1.25}.upcoming-event small{display:block;color:var(--muted,#aeb8c8);margin-top:4px}.upcoming-event-date{color:#d8e0ed;font-size:14px;white-space:nowrap}
.upcoming-modal-list{display:grid;gap:12px;max-height:min(60vh,520px);overflow:auto;padding:4px 4px 8px 0}
.modal-event{cursor:default}.modal-event:hover{transform:none}
@media(max-width:700px){.upcoming-event{grid-template-columns:1fr;gap:5px}.upcoming-events-list{max-height:360px}}
.upcoming-event.checklist-event{grid-template-columns:1fr;background:#303744;border-left-color:#6b7280!important}
.upcoming-event.checklist-event small{color:#b8c0cc}
/* Compact dashboard history: keep three events visible at once. */
.action-history-list{height:208px!important;min-height:208px!important;max-height:208px!important;gap:8px!important}
.action-history-list .action-history-event,.action-history-list .action-history-event.is-latest{height:60px!important;min-height:60px!important;max-height:60px!important;padding:7px 16px 7px 14px!important;grid-template-columns:48px minmax(0,1fr)!important;gap:10px!important;overflow:hidden!important}
.action-history-list .action-history-event.is-latest{height:64px!important;min-height:64px!important;max-height:64px!important;padding-top:9px!important;padding-bottom:9px!important;overflow:hidden!important}
.action-history-list .action-history-event:before{top:15px!important}
.action-history-list .action-history-event.is-latest:before{top:17px!important}
.action-history-list .action-history-copy{gap:2px!important}
.action-history-list .action-history-copy b,.action-history-list .action-history-event.is-latest .action-history-copy b{font-size:.82rem!important;line-height:1.15!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.action-history-list .action-history-copy small{font-size:.7rem!important;line-height:1.15!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.action-history-list .action-history-time{font-size:.7rem!important;padding-top:1px!important}

.action-history-list .action-history-copy{width:100%!important;max-width:100%!important;min-width:0!important;overflow:hidden!important}
.action-history-list .action-history-copy b,.action-history-list .action-history-copy small{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}

/* Dashboard funnel harmonized with the action history panel. */
.dashboard-funnel-card{background:rgba(20,32,48,.72)!important;border-color:rgba(133,151,180,.24)!important;box-shadow:0 10px 28px rgba(0,0,0,.10)!important}
.dashboard-funnel-card .sectionhead{margin-bottom:16px!important}
.dashboard-funnel-card .bars{gap:8px!important}
.dashboard-funnel-card .barrow{grid-template-columns:150px minmax(0,1fr) 42px!important;gap:12px!important;min-height:34px;padding:5px 8px!important;border-radius:9px;background:rgba(87,105,132,.10);box-sizing:border-box}
.dashboard-funnel-card .barrow>span{font-size:.9rem;color:#dbe4f1}
.dashboard-funnel-card .barrow>b{font-size:.9rem;color:#f4f7fb;text-align:right}
.dashboard-funnel-card .bar{height:10px!important;background:rgba(100,119,148,.34)!important}
.dashboard-funnel-card .bar i{background:linear-gradient(90deg,#0658f6,#2b7dff)!important;box-shadow:0 0 10px rgba(6,88,246,.22)}
@media(max-width:700px){.dashboard-funnel-card .barrow{grid-template-columns:112px minmax(0,1fr) 34px!important;gap:9px!important;padding-left:6px!important;padding-right:6px!important}}
/* Unified dashboard surfaces: match every block to the hiring funnel panel. */
#dashboard .card{background:rgba(20,32,48,.72)!important}
/* Checklist items use a deeper neutral gray than the dashboard surface. */
.upcoming-event.checklist-event{background:#242b36!important;border-left-color:#6b7280!important}
/* Dashboard feed entrance animation. */
@keyframes dashboard-block-enter{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
#dashboard .action-history-card,#dashboard .upcoming-events-card{animation:dashboard-block-enter .36s cubic-bezier(.23,1,.32,1) both}
#dashboard .upcoming-events-card{animation-delay:.08s}
@media(prefers-reduced-motion:reduce){#dashboard .action-history-card,#dashboard .upcoming-events-card{animation:none}}
/* History modal uses the same surface as the dashboard history card. */
.modal:has(.action-history-modal-list){background:rgba(20,32,48,.72)!important;border-color:rgba(133,151,180,.24)!important}
/* Opaque history modal surface. */
.modal:has(.action-history-modal-list){background:#142030!important}

/* Scalable response list: dense rows, filters, and responsive mobile cards. */
.modal:has(.response-list){width:min(1280px,calc(100vw - 48px));max-height:min(90vh,900px);padding:28px 30px 26px}
.modal:has(.response-list) .modalhead{margin-bottom:18px}
.response-list-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) 180px 170px 210px;align-items:center;gap:10px;margin:0 0 12px}
.response-search-wrap{position:relative;display:block}
.response-search-wrap>span{position:absolute;left:13px;top:50%;z-index:1;transform:translateY(-52%);color:var(--muted);font-size:20px;line-height:1}
.response-search{width:100%!important;height:40px!important;padding-left:38px!important}
.response-filter{width:100%!important;min-width:0!important;max-width:none!important;height:40px!important;padding:8px 30px 8px 12px!important;font-size:12px!important}
.response-list-header,.response-row{display:grid;grid-template-columns:minmax(240px,1.6fr) minmax(145px,.9fr) minmax(100px,.65fr) minmax(120px,.8fr) minmax(218px,1.35fr);align-items:center;column-gap:16px}
.response-list-header{padding:9px 16px;color:var(--muted);font-size:10px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;border-bottom:1px solid var(--line)}
.response-list{display:flex;flex-direction:column;min-height:0;max-height:calc(90vh - 225px);overflow-y:auto;overflow-x:hidden;border:1px solid var(--line);border-radius:12px;background:color-mix(in srgb,var(--panel) 72%,transparent)}
.response-row{padding:12px 16px;border-bottom:1px solid color-mix(in srgb,var(--line) 75%,transparent);background:transparent;transition:background .16s ease}
.response-row:last-child{border-bottom:0}.response-row:hover{background:rgba(6,88,246,.055)}
.response-row-candidate{display:flex;align-items:center;gap:11px;min-width:0}.response-row-name{display:flex;flex-direction:column;min-width:0;line-height:1.25}.response-row-name b,.response-row-name small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.response-row-name b{font-size:13px}.response-row-name small{color:var(--muted);font-size:11px}.response-row-name .response-row-email{font-size:10px;opacity:.78}.response-row-source{display:flex;flex-direction:column;gap:3px;min-width:0}.response-row-source span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.response-row-source small,.response-row-score small{color:var(--muted);font-size:10px}.response-row-score{display:flex;align-items:baseline;gap:3px;color:#9b85ff;white-space:nowrap}.response-row-score b{font-size:15px}.response-row-resume{width:100%;min-width:0!important;min-height:36px!important;margin:0!important;padding:7px 10px!important;display:flex;align-items:center;gap:8px;text-align:left}.response-row-resume b{margin-left:auto;color:var(--muted);font-size:11px}.response-row-actions{display:flex;gap:7px;margin:0!important}.response-row-actions .btn{flex:1;min-height:36px!important;padding:7px 9px!important;font-size:11px;white-space:nowrap}.response-row-actions .response-reject:disabled{cursor:not-allowed;opacity:.58}.response-empty-state{padding:36px 18px;text-align:center}
@media(max-width:980px){.modal:has(.response-list){width:min(940px,calc(100vw - 30px));padding:22px 20px}.response-list-toolbar{grid-template-columns:1fr 1fr 1fr}.response-search-wrap{grid-column:1/-1}.response-list-header,.response-row{grid-template-columns:minmax(210px,1.5fr) minmax(125px,.9fr) 90px minmax(190px,1.2fr)}.response-list-header span:nth-child(4),.response-row .response-row-resume{display:none}}
@media(max-width:680px){.modal:has(.response-list){width:calc(100vw - 16px);max-height:calc(100vh - 16px);padding:16px 12px}.response-list-toolbar{grid-template-columns:1fr 1fr}.response-filter{font-size:11px!important}.response-list-header{display:none}.response-list{max-height:calc(100vh - 235px);border-radius:10px}.response-row{display:grid;grid-template-columns:1fr auto;gap:10px 12px;padding:13px}.response-row-candidate{grid-column:1/-1}.response-row-source{grid-column:1;grid-row:2}.response-row-score{grid-column:2;grid-row:2;justify-self:end}.response-row-resume{grid-column:1/-1}.response-row-actions{grid-column:1/-1}.response-row-actions .btn{min-height:40px!important;font-size:12px}.response-row-name b{font-size:14px}}
@media(prefers-reduced-motion:reduce){.response-row{transition:none}}

/* Response list refinements. */
.response-list-header{border-bottom:0!important}
.response-list{border-top:0!important;border-radius:0 0 12px 12px!important}
.response-search{background:color-mix(in srgb,var(--panel) 84%,var(--bg))!important;border-color:color-mix(in srgb,var(--line) 65%,var(--brand))!important;box-shadow:inset 0 1px 2px rgba(0,0,0,.08)!important}
.response-search:focus{background:color-mix(in srgb,var(--panel) 76%,var(--brand))!important;border-color:rgba(6,88,246,.62)!important;box-shadow:0 0 0 3px rgba(6,88,246,.14),inset 0 1px 2px rgba(0,0,0,.08)!important}
.response-row-resume{justify-content:flex-start!important}
.response-row-resume .response-resume-icon{width:17px;height:17px;flex:0 0 17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;color:var(--muted)}
.response-row-resume span{font-size:12px}.response-row-resume:hover .response-resume-icon{color:var(--text)}
@media(max-width:680px){.response-list{border-top:1px solid var(--line)!important;border-radius:10px!important}}

/* Keep the resume control as wide as the former icon + label + open action. */
.response-row-resume{min-width:208px!important;justify-content:flex-start!important;padding-right:28px!important}
@media(max-width:980px){.response-row-resume{min-width:190px!important}}

/* Compact resume control: let the response-list column determine its width. */
.response-row-resume{min-width:0!important;width:100%!important;padding-right:10px!important}
@media(max-width:980px){.response-row-resume{min-width:0!important}}

/* Resume button keeps its grid position but hugs the icon and label symmetrically. */
.response-row-resume{width:max-content!important;min-width:0!important;justify-self:start!important;padding:7px 16px!important}
@media(max-width:680px){.response-row-resume{width:100%!important;justify-self:stretch!important;padding:7px 12px!important}}

/* Keep the table top edge; only the header separator stays removed. */
.response-list{border-top:1px solid var(--line)!important}

/* Match the rounded lower corners on the restored table top edge. */
.response-list{border-radius:12px!important}

/* Fine outline for the response search field. */
.response-search{border:1px solid rgba(148,163,184,.28)!important;box-shadow:inset 0 1px 2px rgba(0,0,0,.08)!important}
.response-search:hover{border-color:rgba(148,163,184,.42)!important}

/* Visible but restrained search outline on the dark modal surface. */
.response-search{border:1px solid rgba(148,163,184,.58)!important;background:rgba(30,45,64,.72)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.025),0 0 0 1px rgba(6,88,246,.06)!important}
.response-search:hover{border-color:rgba(174,191,215,.72)!important}

/* Search field: restore the original surface, keep only the soft slate outline. */
.response-search{background:color-mix(in srgb,var(--panel) 84%,var(--bg))!important;border:1px solid rgba(125,145,171,.52)!important;border-radius:14px!important;box-shadow:none!important}
.response-search:hover{background:color-mix(in srgb,var(--panel) 84%,var(--bg))!important;border-color:rgba(145,164,188,.64)!important}
.response-search:focus{background:color-mix(in srgb,var(--panel) 84%,var(--bg))!important;border-color:rgba(125,145,171,.68)!important;box-shadow:0 0 0 2px rgba(125,145,171,.12)!important}

/* Hiring pipeline entrance motion: soft, staggered, and isolated to this page. */
@keyframes pipeline-page-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes pipeline-column-enter{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes pipeline-card-enter{from{opacity:0;transform:translateY(6px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}
.views.active#pipeline .top{animation:pipeline-page-enter .42s cubic-bezier(.23,1,.32,1) both}
.views.active#pipeline .kanban{animation:pipeline-page-enter .42s cubic-bezier(.23,1,.32,1) .06s both}
.views.active#pipeline .kanban .col{animation:pipeline-column-enter .42s cubic-bezier(.23,1,.32,1) both}
.views.active#pipeline .kanban .col:nth-child(1){animation-delay:.10s}.views.active#pipeline .kanban .col:nth-child(2){animation-delay:.15s}.views.active#pipeline .kanban .col:nth-child(3){animation-delay:.20s}.views.active#pipeline .kanban .col:nth-child(4){animation-delay:.25s}.views.active#pipeline .kanban .col:nth-child(5){animation-delay:.30s}
.views.active#pipeline .kanban .candidate{animation:pipeline-card-enter .34s cubic-bezier(.23,1,.32,1) both}
.views.active#pipeline .kanban .col:nth-child(1) .candidate:nth-child(2){animation-delay:.16s}.views.active#pipeline .kanban .col:nth-child(1) .candidate:nth-child(3){animation-delay:.21s}.views.active#pipeline .kanban .col:nth-child(1) .candidate:nth-child(4){animation-delay:.26s}
.views.active#pipeline .kanban .col:nth-child(2) .candidate:nth-child(2){animation-delay:.21s}.views.active#pipeline .kanban .col:nth-child(2) .candidate:nth-child(3){animation-delay:.26s}.views.active#pipeline .kanban .col:nth-child(2) .candidate:nth-child(4){animation-delay:.31s}
.views.active#pipeline .kanban .col:nth-child(3) .candidate:nth-child(2){animation-delay:.26s}.views.active#pipeline .kanban .col:nth-child(3) .candidate:nth-child(3){animation-delay:.31s}.views.active#pipeline .kanban .col:nth-child(3) .candidate:nth-child(4){animation-delay:.36s}
.views.active#pipeline .kanban .col:nth-child(4) .candidate:nth-child(2){animation-delay:.31s}.views.active#pipeline .kanban .col:nth-child(4) .candidate:nth-child(3){animation-delay:.36s}.views.active#pipeline .kanban .col:nth-child(4) .candidate:nth-child(4){animation-delay:.41s}
.views.active#pipeline .kanban .col:nth-child(5) .candidate:nth-child(2){animation-delay:.36s}.views.active#pipeline .kanban .col:nth-child(5) .candidate:nth-child(3){animation-delay:.41s}.views.active#pipeline .kanban .col:nth-child(5) .candidate:nth-child(4){animation-delay:.46s}
@media(prefers-reduced-motion:reduce){.views.active#pipeline .top,.views.active#pipeline .kanban,.views.active#pipeline .kanban .col,.views.active#pipeline .kanban .candidate{animation:none!important}}

/* Pipeline motion matches Vacancies/Candidates: tdSoftLine, 0.5s, 0.08s cadence. */
.views.active#pipeline .top{animation:tdSoftLine .5s ease both}
.views.active#pipeline .kanban{animation:tdSoftLine .5s ease .08s both}
.views.active#pipeline .kanban .col{animation:tdSoftLine .5s ease both}
.views.active#pipeline .kanban .col:nth-child(1){animation-delay:.08s}.views.active#pipeline .kanban .col:nth-child(2){animation-delay:.16s}.views.active#pipeline .kanban .col:nth-child(3){animation-delay:.24s}.views.active#pipeline .kanban .col:nth-child(4){animation-delay:.32s}.views.active#pipeline .kanban .col:nth-child(5){animation-delay:.40s}
.views.active#pipeline .kanban .candidate{animation:tdSoftLine .5s ease both}
.views.active#pipeline .kanban .col:nth-child(1) .candidate:nth-child(2){animation-delay:.16s}.views.active#pipeline .kanban .col:nth-child(1) .candidate:nth-child(3){animation-delay:.24s}.views.active#pipeline .kanban .col:nth-child(1) .candidate:nth-child(4){animation-delay:.32s}
.views.active#pipeline .kanban .col:nth-child(2) .candidate:nth-child(2){animation-delay:.24s}.views.active#pipeline .kanban .col:nth-child(2) .candidate:nth-child(3){animation-delay:.32s}.views.active#pipeline .kanban .col:nth-child(2) .candidate:nth-child(4){animation-delay:.40s}
.views.active#pipeline .kanban .col:nth-child(3) .candidate:nth-child(2){animation-delay:.32s}.views.active#pipeline .kanban .col:nth-child(3) .candidate:nth-child(3){animation-delay:.40s}.views.active#pipeline .kanban .col:nth-child(3) .candidate:nth-child(4){animation-delay:.48s}
.views.active#pipeline .kanban .col:nth-child(4) .candidate:nth-child(2){animation-delay:.40s}.views.active#pipeline .kanban .col:nth-child(4) .candidate:nth-child(3){animation-delay:.48s}.views.active#pipeline .kanban .col:nth-child(4) .candidate:nth-child(4){animation-delay:.56s}
.views.active#pipeline .kanban .col:nth-child(5) .candidate:nth-child(2){animation-delay:.48s}.views.active#pipeline .kanban .col:nth-child(5) .candidate:nth-child(3){animation-delay:.56s}.views.active#pipeline .kanban .col:nth-child(5) .candidate:nth-child(4){animation-delay:.64s}
@media(prefers-reduced-motion:reduce){.views.active#pipeline .top,.views.active#pipeline .kanban,.views.active#pipeline .kanban .col,.views.active#pipeline .kanban .candidate{animation-duration:.01ms!important;animation-delay:0!important}}

/* Offboarding calendar must always retain its seven-day grid. */
#offboarding .offboarding-month-grid{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;grid-auto-flow:row!important}
#offboarding .offboarding-month-grid>.calendar-weekday,#offboarding .offboarding-month-grid>.calendar-day{min-width:0!important}

/* Vacancy form options and urgent vacancy marker. */
.vacancy-options{display:flex;align-items:center;gap:24px;flex-wrap:wrap;margin-bottom:12px}.vacancy-option-check{display:inline-flex;align-items:center;gap:9px;color:var(--text);font-size:.9rem;font-weight:600;cursor:pointer}.vacancy-option-check input{width:18px;height:18px;accent-color:var(--brand);cursor:pointer}.vacancy-urgent-check input{accent-color:#f59e0b}.vacancy-detail-field{min-height:88px;resize:vertical}.platform-check{display:flex!important;align-items:center;gap:10px}.platform-check-logo{width:22px;height:22px;object-fit:contain;flex:0 0 22px;border-radius:5px}.platform-check span{line-height:1.2}.vacancy-row-urgent>td:first-child{position:relative}.vacancy-urgent-badge{display:inline-flex;align-items:center;justify-content:center;margin-left:7px;width:22px;height:22px;border-radius:7px;background:rgba(245,158,11,.14);color:#fbbf24;font-size:14px;line-height:1;vertical-align:middle;white-space:nowrap;filter:saturate(.9)}
@media(max-width:650px){.vacancy-options{gap:13px}.platform-check-logo{width:20px;height:20px;flex-basis:20px}}

/* Urgent is a vacancy status, not a separate icon or row marker. */
.vacancy-row-urgent>td:first-child:before{display:none!important}.vacancy-urgent-badge{display:none!important}.badge.urgent{background:rgba(245,158,11,.16);color:#b76b00;border:1px solid rgba(245,158,11,.28);font-weight:700}
/* Urgent vacancy status: green-tinted accent. */
.badge.urgent{background:rgba(64,184,132,.18);color:#55c995;border-color:rgba(64,184,132,.34)}

/* Candidate contact copy affordance. */
.candidate-copy-field{position:relative;cursor:default;padding-right:38px!important}.candidate-copy-button{position:absolute;right:10px;top:50%;width:26px;height:26px;display:grid;place-items:center;padding:0;border:0;border-radius:6px;background:transparent;color:#8e9bae;opacity:0;transform:translateY(-50%);transition:opacity .16s ease,background .16s ease,color .16s ease}.candidate-copy-field:hover .candidate-copy-button,.candidate-copy-field:focus-within .candidate-copy-button,.candidate-copy-button:focus{opacity:1}.candidate-copy-button:hover{background:rgba(6,88,246,.12);color:var(--brand)}.candidate-copy-button.copied{opacity:1;background:rgba(23,166,115,.14);color:#35c58b}.candidate-copy-button svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* Candidate profile AI score matches the response-list brand treatment. */
.candidate-ai-inline{display:inline-flex!important;align-items:center!important;gap:10px!important;margin-top:20px!important;color:#a8c5ff!important;font-size:27px!important;line-height:1!important;font-weight:800!important;white-space:nowrap}.candidate-ai-inline i{font-style:normal!important;display:grid!important;place-items:center!important;width:40px!important;height:40px!important;border-radius:50%!important;background:var(--brand)!important;color:#fff!important;font-size:22px!important;line-height:1!important}.response-ai-icon{background:var(--brand)!important}

/* Compact candidate profile AI score to match the original card proportions. */
.candidate-ai-inline{gap:7px!important;margin-top:14px!important;font-size:18px!important;font-weight:700!important}.candidate-ai-inline i{width:27px!important;height:27px!important;font-size:15px!important}

/* Provided job-board logos: keep the complete mark inside every logo well. */
.intlogo{overflow:hidden;box-sizing:border-box;background:#263244;padding:5px}
.intlogo img{width:100%;height:100%;max-width:100%;max-height:100%;padding:0;object-fit:contain;object-position:center;border-radius:8px;display:block}
.integration-settings-title .intlogo{overflow:hidden;padding:5px}
.platform-check-logo{max-width:100%;max-height:100%;object-fit:contain;object-position:center}
.response-source-logo,.candidate-profile-source{object-fit:contain;object-position:center}

/* Job-board mark fills the logo well; the dark backing must not remain visible. */
.intlogo{padding:0;background:transparent;overflow:hidden;border-radius:12px}
.intlogo img{width:100%;height:100%;padding:0;border-radius:inherit;object-fit:cover;object-position:center}
.integration-settings-title .intlogo{padding:0;background:transparent;border-radius:12px}

/* Dark theme overrides: remove the old 32px logo cap and backing surface. */
.dark .intlogo{padding:0;background:transparent;overflow:hidden;border-radius:12px}
.dark .intlogo img{width:100%;height:100%;max-width:100%;max-height:100%;padding:0;object-fit:cover;object-position:center;border-radius:inherit;display:block}

/* Actual application theme marker is html.theme-dark. */
html.theme-dark .intlogo{padding:0!important;background:transparent!important;overflow:hidden;border-radius:12px}
html.theme-dark .intlogo img{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;padding:0!important;object-fit:cover!important;object-position:center;border-radius:inherit;display:block}

/* Integration catalog: use the supplied logo as the complete rounded tile. */
.catalog-card-logo{padding:0;background:transparent;overflow:hidden;border-radius:11px}
.catalog-card-logo img{width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;object-position:center;border-radius:inherit;display:block}
html.theme-dark .catalog-card-logo{padding:0!important;background:transparent!important}
html.theme-dark .catalog-card-logo img{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;border-radius:inherit;display:block}

/* Candidate resume upload: structured, calm and readable in the dark modal. */
.candidate-resume-upload-card{display:grid;gap:14px;padding:16px 17px;border:1px solid var(--line);border-radius:12px;background:color-mix(in srgb,var(--panel) 82%,var(--bg));}
.resume-upload-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;}
.resume-upload-head label{display:block;margin:0;color:var(--text);font-size:13px;font-weight:700;}
.resume-upload-subtitle{display:block;margin-top:5px;color:var(--muted);font-size:11px;line-height:1.4;}
.resume-format-badge{flex:0 0 auto;padding:5px 8px;border:1px solid var(--line);border-radius:7px;color:var(--muted);font-size:10px;white-space:nowrap;}
.resume-upload-control{display:flex;align-items:center;gap:12px;min-height:42px;}
.resume-file-button{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:9px 13px;background:var(--brand);border-color:var(--brand);color:#fff;white-space:nowrap;}
.resume-file-button:hover{background:var(--brand2);border-color:var(--brand2);color:#fff;}
.resume-file-button-icon{font-size:17px;line-height:1;font-weight:700;}
.resume-selected-file{display:flex;align-items:center;gap:7px;min-width:0;color:var(--muted);}
.resume-file-icon{display:grid;place-items:center;width:25px;height:25px;border-radius:7px;background:rgba(6,88,246,.12);color:#80a9ff;font-size:13px;}
.resume-selected-file .resume-file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.candidate-resume-upload-card .ai-resume-status{display:flex;align-items:center;gap:8px;margin:0;padding-top:12px;border-top:1px solid var(--line);color:var(--muted);font-size:11px;line-height:1.4;}
.ai-resume-status-dot{display:grid;place-items:center;width:21px;height:21px;flex:0 0 21px;border-radius:7px;background:rgba(6,88,246,.14);color:#8eb3ff;font-size:12px;}
@media(max-width:560px){.resume-upload-head{display:grid;gap:9px}.resume-format-badge{width:max-content}.resume-upload-control{align-items:stretch;flex-direction:column;gap:9px}.resume-file-button{justify-content:center}.resume-selected-file{min-height:28px;}}

/* The upload card already contains its own left AI mark; remove the legacy duplicate. */
.candidate-resume-upload-card .ai-resume-status::before{content:none!important;display:none!important}

/* Legacy AI star removed: the upload card uses the new dedicated AI visual. */
.candidate-resume-upload-card .ai-resume-status-dot{display:none!important}
.candidate-resume-upload-card .ai-resume-status::before{content:none!important;display:none!important;animation:none!important}

/* Candidate meeting action and compact scheduling form. */
.candidate-profile-head-actions .candidate-meeting-button{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;margin:0;padding:0;border:1px solid var(--line);border-radius:9px;background:rgba(128,140,160,.08);color:var(--text);cursor:pointer;transition:background .16s ease,border-color .16s ease,color .16s ease}
.candidate-profile-head-actions .candidate-meeting-button:hover{background:rgba(6,88,246,.12);border-color:rgba(6,88,246,.45);color:#8eb3ff}
.candidate-meeting-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.candidate-meeting-form{display:grid;gap:16px}
.candidate-meeting-person{display:grid;gap:4px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:rgba(128,140,160,.06)}
.candidate-meeting-person b{font-size:15px}
.candidate-meeting-form .formgrid{margin:0}

/* Recruitment calendar: softer Teamdeck surface and event pills. */
#recruitment .calendar-grid,#recruitment .hiring-calendar,#recruitment [id*="hiringCalendar"]{border:1px solid var(--line);border-radius:16px;background:var(--surface-2);overflow:hidden}
#recruitment .calendar-weekday{padding:10px 8px;background:rgba(6,88,246,.08);color:var(--muted);font-size:11px;font-weight:700;text-align:center;border-bottom:1px solid var(--line)}
#recruitment .calendar-day{min-height:88px;padding:8px;background:rgba(128,140,160,.025);border-right:1px solid rgba(128,140,160,.12);border-bottom:1px solid rgba(128,140,160,.12);transition:background .16s ease}
#recruitment .calendar-day:hover{background:rgba(6,88,246,.07)}
#recruitment .calendar-day.muted{opacity:.42;background:transparent}
#recruitment .day-number{display:grid;place-items:center;width:26px;height:26px;margin-bottom:6px;border-radius:50%;color:var(--muted);font-size:12px;font-weight:700}
#recruitment .calendar-day.today .day-number{background:var(--brand);color:#fff;box-shadow:0 4px 12px rgba(6,88,246,.28)}
#recruitment .calendar-event{display:block;width:100%;margin-top:4px;padding:5px 6px;border:0;border-left:3px solid var(--event-color,#3b82f6)!important;border-radius:6px;background:color-mix(in srgb,var(--event-color,#3b82f6) 18%,var(--panel))!important;color:var(--text);font-size:10px;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}
#recruitment .calendar-event:hover{filter:brightness(1.12);transform:none}
.candidate-scheduled-meetings{display:grid;gap:11px;margin:24px 0 18px;padding:15px;border:1px solid var(--line);border-radius:13px;background:var(--surface-2)}
.candidate-scheduled-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.candidate-scheduled-head h4{margin:3px 0 0;font-size:14px}.candidate-meeting-count{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;background:rgba(6,88,246,.15);color:#8eb3ff;font-size:11px;font-weight:700}
.candidate-scheduled-list{display:grid;gap:8px}.candidate-scheduled-row{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:9px;padding:9px 10px;border:1px solid rgba(128,140,160,.15);border-radius:10px;background:rgba(128,140,160,.045)}
.candidate-scheduled-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:rgba(6,88,246,.14);color:#8eb3ff;font-size:16px}.candidate-scheduled-copy{display:grid;gap:3px;min-width:0}.candidate-scheduled-copy b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.candidate-scheduled-copy span{color:var(--muted);font-size:10px}.candidate-scheduled-actions{display:flex;gap:4px}.candidate-scheduled-actions button{width:27px;height:27px;padding:0;border:1px solid var(--line);border-radius:7px;background:transparent;color:var(--muted);cursor:pointer}.candidate-scheduled-actions button:hover{border-color:rgba(6,88,246,.42);background:rgba(6,88,246,.1);color:var(--text)}
.meeting-delete-button{border-color:rgba(220,70,80,.35)!important;color:#ff9da5!important}.meeting-delete-button:hover{background:rgba(220,70,80,.13)!important}
.candidate-meeting-date{color-scheme:dark}
@media(max-width:720px){#recruitment .calendar-day{min-height:70px;padding:5px 4px}#recruitment .calendar-event{font-size:9px;padding:4px}.candidate-scheduled-row{grid-template-columns:28px minmax(0,1fr);}.candidate-scheduled-actions{grid-column:2}.candidate-scheduled-actions button{width:30px;height:30px}}

/* Candidate identity block in meeting form. */
.candidate-meeting-person{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px 14px;border:1px solid rgba(125,151,187,.24);border-radius:13px;background:linear-gradient(135deg,rgba(55,75,103,.52),rgba(38,54,76,.72));box-shadow:inset 0 1px 0 rgba(255,255,255,.03)}
.candidate-meeting-avatar{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:linear-gradient(145deg,#1769f5,#0a47c7);color:#fff;font-size:13px;font-weight:800;letter-spacing:.04em;box-shadow:0 5px 14px rgba(6,88,246,.23)}
.candidate-meeting-identity{display:grid;gap:4px;min-width:0}.candidate-meeting-identity b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}.candidate-meeting-stage{display:grid;gap:4px;justify-items:end;padding-left:14px;border-left:1px solid rgba(145,170,205,.2)}.candidate-meeting-stage span{color:var(--muted);font-size:10px}.candidate-meeting-stage strong{padding:5px 9px;border:1px solid rgba(91,143,255,.3);border-radius:7px;background:rgba(6,88,246,.13);color:#a9c4ff;font-size:11px;font-weight:700;white-space:nowrap}
@media(max-width:560px){.candidate-meeting-person{grid-template-columns:36px minmax(0,1fr);gap:10px}.candidate-meeting-avatar{width:36px;height:36px;border-radius:10px}.candidate-meeting-stage{grid-column:2;justify-items:start;padding-left:0;border-left:0;border-top:1px solid rgba(145,170,205,.2);padding-top:9px;width:100%}}


/* Candidate profile: meeting chip sits alongside tags without changing profile height. */
.candidate-top-tags{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-height:26px;margin:9px 0 17px}.candidate-top-tags .tags{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0}.candidate-meeting-chip{display:inline-flex;align-items:center;gap:6px;max-width:310px;height:26px;padding:0 9px;border:1px solid rgba(91,143,255,.32);border-radius:6px;background:rgba(6,88,246,.12);color:#a9c4ff;font:inherit;font-size:11px;line-height:1;cursor:pointer;overflow:hidden;transition:background .16s ease,border-color .16s ease}.candidate-meeting-chip:hover{background:rgba(6,88,246,.2);border-color:rgba(91,143,255,.55)}.candidate-meeting-chip>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.candidate-meeting-chip-icon{display:grid;place-items:center;width:14px;height:14px;border-radius:4px;background:rgba(91,143,255,.2);font-size:12px;flex:0 0 14px}


/* Meeting identity uses the same stage badge language as the candidates table. */
.candidate-meeting-avatar{overflow:hidden}.candidate-meeting-avatar img{width:100%;height:100%;object-fit:cover;display:block}.candidate-meeting-stage{border-left:0;padding-left:14px}.candidate-meeting-stage strong.badge{padding:5px 9px;font-size:11px}


/* Meeting stage: use the shared candidate badge without a caption or divider. */
.candidate-meeting-stage{align-self:center;justify-items:end;padding-left:0;border-left:0}.candidate-meeting-stage strong.badge{margin:0;padding:5px 9px;border:0;border-radius:999px;font-size:11px;line-height:1.2}
@media(max-width:560px){.candidate-meeting-stage{grid-column:2;justify-items:start;padding-top:9px;border-top:0;width:auto}}


/* Event card delete action: compact red translucent trash button. */
.candidate-scheduled-actions .candidate-scheduled-delete{width:38px;height:38px;border:1px solid rgba(231,91,111,.46);border-radius:11px;background:rgba(190,57,78,.2);color:#ff9aa8}.candidate-scheduled-actions .candidate-scheduled-delete:hover{background:rgba(190,57,78,.34);border-color:rgba(255,116,135,.7);color:#ffc0c9}.candidate-scheduled-delete svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.candidate-scheduled-actions .candidate-scheduled-delete:focus-visible{outline:2px solid rgba(255,142,157,.7);outline-offset:2px}


/* Multiple candidate meetings render as adjacent compact event chips. */
.candidate-meeting-chips{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.candidate-meeting-chip-item{display:inline-flex;align-items:center;gap:4px;height:26px}.candidate-meeting-chip-item .candidate-meeting-chip{max-width:280px}.candidate-meeting-chip-delete{display:inline-grid;place-items:center;width:26px;height:26px;padding:0;border:1px solid rgba(231,91,111,.46);border-radius:7px;background:rgba(190,57,78,.2);color:#ff9aa8;cursor:pointer}.candidate-meeting-chip-delete:hover{background:rgba(190,57,78,.35);border-color:rgba(255,116,135,.7);color:#ffc0c9}.candidate-meeting-chip-delete svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}


/* Meeting editor actions: deletion belongs beside the close button. */
.meeting-modal-head-actions{display:flex;align-items:center;gap:8px}.meeting-header-delete{display:inline-grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid rgba(231,91,111,.46);border-radius:11px;background:rgba(190,57,78,.2);color:#ff9aa8;cursor:pointer}.meeting-header-delete:hover{background:rgba(190,57,78,.35);border-color:rgba(255,116,135,.7);color:#ffc0c9}.meeting-header-delete svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* Meeting editor delete matches the modal close control exactly. */
.modalhead .meeting-header-delete{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;box-sizing:border-box;border-radius:8px;padding:0}.modalhead .meeting-header-delete svg{width:17px;height:17px}

/* Calendar event participants: compact controls beside the color picker. */
.calendar-event-form .calendar-event-color-field{max-width:150px}
.calendar-color-input{width:74px;height:42px;padding:4px;border:1px solid rgba(149,169,202,.28);border-radius:12px;background:#26364b;cursor:pointer}
.calendar-participant-field{grid-column:span 1}
.calendar-participant-actions{display:flex;gap:10px;flex-wrap:wrap}
.calendar-participant-button{min-height:42px;padding:0 15px;border-radius:12px;background:#26364b;border:1px solid rgba(149,169,202,.28);color:#dce6f6;font-size:14px}
.calendar-participant-label.is-selected{color:#8eb5ff}
.calendar-participant-panel{margin-top:8px;max-width:520px}
.calendar-participant-panel.hidden{display:none}
@media (max-width:720px){.calendar-participant-field{grid-column:1/-1}.calendar-event-form .calendar-event-color-field{max-width:none}.calendar-participant-button{flex:1 1 210px}}

/* Recruitment calendar: make the current day readable at cell level, not only by its number. */
#recruitment .calendar-day.today{background:color-mix(in srgb,var(--brand) 10%,var(--panel));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--brand) 28%,transparent)}
#recruitment .calendar-day.today .day-number{background:var(--brand);color:#fff;box-shadow:0 4px 12px rgba(6,88,246,.28)}

/* Calendar event controls: color and both participant actions share one clean row. */
.calendar-event-form .calendar-event-color-field,
.calendar-event-form .calendar-participant-field{align-self:start}
.calendar-event-form .calendar-participant-actions{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;min-height:42px}
.calendar-event-form .calendar-participant-button{flex:0 1 auto;min-height:42px;white-space:nowrap}
@media (max-width:720px){.calendar-event-form .calendar-participant-actions{flex-wrap:wrap}.calendar-event-form .calendar-participant-button{flex:1 1 210px}}

/* Recruitment cards: equal breathing room between cards and the grid edges. */
#recruitment .team-grid{gap:38px;}
@media(max-width:1100px){#recruitment .team-grid{gap:24px;}}
@media(max-width:700px){#recruitment .team-grid{gap:16px;}}

/* Recruitment roster: one consistent rhythm in both axes. */
#recruitment #teamGrid{gap:18px;}
#recruitment #teamGrid .team-card{margin-top:0;}
@media(max-width:700px){#recruitment #teamGrid{gap:16px;}}
/* Tasks workspace */
.tasks-shell{margin-top:16px;background:var(--surface-2,#1d2a3b);border:1px solid var(--line);border-radius:16px;padding:20px}
.tasks-kpis .kpi{background:var(--surface-2,#1d2a3b)}
.tasks-toolbar{display:flex;gap:10px;align-items:center}.tasks-toolbar .input{height:40px;min-height:40px;width:180px}
.tasks-list{display:grid;gap:8px;margin-top:16px}.task-row{display:grid;grid-template-columns:32px minmax(0,1fr) auto 34px 34px;align-items:center;gap:12px;min-height:68px;padding:12px 14px;border:1px solid rgba(130,150,180,.2);border-radius:12px;background:rgba(17,29,47,.42);transition:background .18s ease,border-color .18s ease,transform .18s ease}.task-row:hover{background:rgba(36,51,73,.7);border-color:rgba(94,132,207,.42);transform:translateY(-1px)}.task-row.is-done{opacity:.62}.task-row.is-done .task-row-title{text-decoration:line-through}.task-check{width:26px;height:26px;border-radius:8px;border:1px solid rgba(142,160,190,.5);background:transparent;color:#fff;cursor:pointer;font-weight:800;font-size:15px}.task-check.checked{background:#2db987;border-color:#2db987}.task-row-main{min-width:0}.task-row-title{font-size:14px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.task-row-meta{display:flex;align-items:center;gap:9px;margin-top:6px;color:var(--muted);font-size:11px;white-space:nowrap;overflow:hidden}.task-row-meta>span:not(.task-status-badge){overflow:hidden;text-overflow:ellipsis}.task-status-badge,.task-priority{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:10px;font-weight:750;white-space:nowrap}.status-todo{background:rgba(130,140,160,.18);color:#b6c1d3}.status-in_progress{background:rgba(6,88,246,.17);color:#72a0ff}.status-done{background:rgba(45,185,135,.16);color:#54d4a7}.priority-high{border-left:2px solid #f0a04b}.priority-high .task-priority{color:#f2b14b}.priority-normal .task-priority{color:#b6c1d3}.priority-low .task-priority{color:#72a0ff}.task-edit,.task-delete{width:30px;height:30px;border:1px solid rgba(130,150,180,.28);border-radius:8px;background:transparent;color:var(--muted);cursor:pointer;font-size:15px}.task-edit:hover{color:#fff;border-color:#6f9cf5}.task-delete:hover{color:#ff9da9;border-color:rgba(238,94,112,.55)}.tasks-empty{display:grid;justify-items:center;gap:5px;padding:45px 20px;color:var(--muted);text-align:center}.tasks-empty strong{color:var(--text);font-size:15px}.tasks-empty span{font-size:12px}.task-form .field.full{grid-column:1/-1}
@media(max-width:760px){.tasks-shell{padding:14px}.tasks-shell .sectionhead{display:grid;gap:12px}.tasks-toolbar{width:100%}.tasks-toolbar .input{width:100%;flex:1;min-width:0}.task-row{grid-template-columns:28px minmax(0,1fr) 30px 30px;gap:8px;padding:10px}.task-priority{display:none}.task-row-title{font-size:13px}.task-row-meta{font-size:10px}.task-delete,.task-edit{width:28px;height:28px}}@media(prefers-reduced-motion:reduce){.task-row{transition:none}}
/* Reusable searchable employee picker */
.user-picker{position:relative;width:100%}.user-picker-trigger{display:flex;align-items:center;gap:9px;width:100%;min-height:42px;padding:7px 10px;border:1px solid var(--line);border-radius:9px;background:var(--surface-2);color:var(--text);font:inherit;text-align:left;cursor:pointer;transition:border-color .16s ease,background .16s ease}.user-picker-trigger:hover,.user-picker-trigger[aria-expanded="true"]{border-color:rgba(6,88,246,.65);background:rgba(6,88,246,.06)}.user-picker-selected{display:flex;align-items:center;gap:8px;min-width:0;flex:1}.user-picker-selected-copy{display:grid;min-width:0;line-height:1.15}.user-picker-selected-copy b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.user-picker-selected-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:9px;margin-top:3px}.user-picker-placeholder{color:var(--muted);font-size:12px}.user-picker-chevron{color:var(--muted);font-size:17px;line-height:1;margin-left:auto;transform:translateY(-2px)}.user-picker-avatar{display:grid;place-items:center;width:27px;height:27px;flex:0 0 27px;overflow:hidden;border-radius:50%;background:rgba(6,88,246,.14);color:#75a8ff;font-size:9px;font-weight:800}.user-picker-avatar img{width:100%;height:100%;object-fit:cover}.user-picker-popover{position:absolute;z-index:80;top:calc(100% + 7px);left:0;width:min(390px,calc(100vw - 42px));padding:9px;border:1px solid rgba(125,150,190,.3);border-radius:12px;background:#172235;box-shadow:0 18px 42px rgba(0,0,0,.35);animation:userPickerIn .16s cubic-bezier(.23,1,.32,1)}.user-picker-search-wrap{position:relative}.user-picker-search{width:100%;height:36px;box-sizing:border-box;padding:0 10px 0 30px;border:1px solid rgba(130,155,195,.35);border-radius:8px;background:#101b2b;color:var(--text);font:inherit;font-size:11px;outline:none}.user-picker-search:focus{border-color:#568af6;box-shadow:0 0 0 3px rgba(6,88,246,.13)}.user-picker-search-icon{position:absolute;left:10px;top:8px;color:var(--muted);font-size:16px;line-height:1}.user-picker-departments{display:flex;gap:5px;overflow-x:auto;padding:8px 1px 7px;scrollbar-width:thin}.user-picker-department{flex:0 0 auto;padding:5px 8px;border:1px solid rgba(130,155,195,.25);border-radius:999px;background:transparent;color:var(--muted);font:inherit;font-size:9px;cursor:pointer}.user-picker-department:hover,.user-picker-department.active{border-color:rgba(6,88,246,.7);background:rgba(6,88,246,.15);color:#9fc0ff}.user-picker-department em{font-style:normal;opacity:.65;margin-left:3px}.user-picker-results{max-height:245px;overflow-y:auto;padding:1px;scrollbar-width:thin}.user-picker-group+.user-picker-group{margin-top:7px}.user-picker-group-title{padding:4px 7px;color:#8ea4c4;font-size:9px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}.user-picker-option{display:flex;align-items:center;gap:8px;width:100%;padding:7px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--text);font:inherit;text-align:left;cursor:pointer}.user-picker-option:hover,.user-picker-option.keyboard-active{border-color:rgba(6,88,246,.4);background:rgba(6,88,246,.12)}.user-picker-option.selected{background:rgba(6,88,246,.09)}.user-picker-option-copy{display:grid;min-width:0;line-height:1.15}.user-picker-option-copy b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.user-picker-option-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:9px;margin-top:3px}.user-picker-check{margin-left:auto;color:#6ea1ff;font-size:14px}.user-picker-empty{padding:24px 10px;color:var(--muted);font-size:11px;text-align:center}@keyframes userPickerIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}@media(max-width:600px){.user-picker-popover{position:fixed;top:auto;left:16px;right:16px;bottom:16px;width:auto;max-height:70vh}.user-picker-results{max-height:45vh}}@media(prefers-reduced-motion:reduce){.user-picker-popover{animation:none}}
/* Upcoming events filter */
.upcoming-filter{display:inline-flex;align-items:center;gap:3px;padding:3px;border:1px solid rgba(130,150,180,.28);border-radius:9px;background:rgba(17,29,47,.5)}.upcoming-filter-button{padding:6px 10px;border:0;border-radius:7px;background:transparent;color:var(--muted);font:600 10px Montserrat,sans-serif;cursor:pointer;transition:background .16s ease,color .16s ease}.upcoming-filter-button:hover{color:var(--text)}.upcoming-filter-button.active{background:rgba(6,88,246,.2);color:#8db4ff;box-shadow:inset 0 0 0 1px rgba(6,88,246,.3)}.upcoming-event[onclick]{cursor:pointer}.upcoming-event[onclick]:hover{filter:brightness(1.08)}@media(max-width:600px){.upcoming-events-card .sectionhead{align-items:flex-start;gap:10px}.upcoming-filter-button{padding:6px 9px}}

/* Source filter for the action history modal, matching the upcoming-events segmented control. */
.history-filter{display:flex;flex-wrap:wrap;align-items:center;gap:3px;width:max-content;max-width:100%;margin:16px 0 12px;padding:3px;border:1px solid rgba(130,150,180,.28);border-radius:9px;background:rgba(17,29,47,.5)}.history-filter-button{padding:7px 11px;border:0;border-radius:7px;background:transparent;color:var(--muted);font:600 10px Montserrat,sans-serif;cursor:pointer;transition:background .16s ease,color .16s ease}.history-filter-button:hover{color:var(--text)}.history-filter-button.active{background:rgba(6,88,246,.2);color:#8db4ff;box-shadow:inset 0 0 0 1px rgba(6,88,246,.3)}
@media(max-width:600px){.history-filter{width:100%}.history-filter-button{flex:1;padding-left:7px;padding-right:7px}}

/* Action history controls: source filter and sort stay on one aligned row. */
.history-controls{display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0;margin:16px 0 12px}.history-controls .history-filter{flex:0 1 auto;margin:0}.history-controls .action-history-toolbar{display:flex;align-items:center;gap:3px;flex:0 0 auto;margin:0;padding:3px;border:1px solid rgba(130,150,180,.28);border-radius:9px;background:rgba(17,29,47,.5)}.history-controls .action-history-toolbar .btn{min-height:34px;height:34px;padding:0 11px;border:0;border-radius:7px;background:transparent;color:var(--muted);font:600 10px Montserrat,sans-serif;white-space:nowrap}.history-controls .action-history-toolbar .btn:hover{background:rgba(128,142,166,.12);color:var(--text)}.history-controls .action-history-toolbar .btn.primary{background:rgba(6,88,246,.2);color:#8db4ff;box-shadow:inset 0 0 0 1px rgba(6,88,246,.3)}
@media(max-width:760px){.history-controls{align-items:stretch;flex-direction:column;gap:8px}.history-controls .history-filter,.history-controls .action-history-toolbar{width:100%}.history-controls .history-filter-button,.history-controls .action-history-toolbar .btn{flex:1}.history-controls .action-history-toolbar .btn{text-align:center}}
/* Match sort controls exactly to the source-filter segment height. */
.history-controls .action-history-toolbar .btn{height:auto;min-height:0;padding:7px 11px;line-height:1.2}
/* Task details, priority badges and compact row actions. */
.task-row{cursor:pointer}.task-row-actions{display:inline-flex;align-items:center;gap:4px}.task-edit,.task-delete{margin:0}.task-priority.priority-badge{padding:5px 9px;border:1px solid transparent}.task-priority.priority-high{background:rgba(239,112,72,.16);border-color:rgba(239,112,72,.34);color:#ffae8f}.task-priority.priority-normal{background:rgba(130,142,166,.16);border-color:rgba(130,142,166,.28);color:#b8c3d4}.task-priority.priority-low{background:rgba(6,88,246,.15);border-color:rgba(92,145,255,.3);color:#8db5ff}.task-subtasks{display:grid;gap:12px;padding:14px 0 2px}.task-subtasks-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.task-subtasks-head label{display:block;font-size:12px;font-weight:700}.task-subtasks-head .mini{display:block;margin-top:4px}.task-subtask-count{padding:4px 8px;border-radius:99px;background:rgba(130,142,166,.14);color:var(--muted);font-size:11px;white-space:nowrap}.task-subtask-list{display:grid;gap:7px;max-height:190px;overflow:auto}.task-subtask{display:flex;align-items:center;gap:9px;min-height:34px;padding:7px 9px;border:1px solid rgba(130,150,180,.2);border-radius:8px;background:rgba(17,29,47,.32);font-size:12px}.task-subtask input{accent-color:#2db987}.task-subtask span{min-width:0;flex:1}.task-subtask.is-done span{text-decoration:line-through;color:var(--muted)}.task-subtask button{border:0;background:transparent;color:var(--muted);cursor:pointer;font-size:16px;line-height:1}.task-subtask button:hover{color:#ff9da9}.task-subtasks-empty{padding:10px;color:var(--muted);font-size:11px}.task-subtask-add{display:flex;gap:8px}.task-subtask-add .input{min-width:0;flex:1}.task-subtask-add .btn{white-space:nowrap}.task-subtasks-new{padding-top:4px}@media(max-width:760px){.task-row{grid-template-columns:28px minmax(0,1fr) auto}.task-row-actions{grid-column:3;grid-row:1}.task-priority{display:none}.task-subtask-add{flex-direction:column}.task-subtask-add .btn{width:100%}}
/* Task row action geometry: equal height and equal spacing. */
.task-row{column-gap:8px}.task-row-actions{display:flex;align-items:center;gap:8px}.task-row .task-priority.priority-badge{display:inline-flex;align-items:center;justify-content:center;height:34px;min-height:34px;box-sizing:border-box;padding:0 11px;line-height:1;border-radius:999px}.task-row-actions .task-edit,.task-row-actions .task-delete{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;min-width:34px;min-height:34px;box-sizing:border-box;padding:0;line-height:1;border-radius:9px}.task-row-actions .task-edit{font-size:16px}.task-row-actions .task-delete{font-size:17px}

/* Task subtasks are a distinct, calm workspace inside the task dialog. */
.task-subtasks-field{margin-top:4px;padding:16px 18px;background:rgba(24,38,58,.72);border:1px solid rgba(117,143,180,.3);border-radius:14px;box-shadow:inset 0 1px 0 rgba(255,255,255,.025)}.task-subtasks-field .task-subtasks{padding:0;gap:14px}.task-subtasks-head{padding-bottom:12px;border-bottom:1px solid rgba(130,150,180,.16)}.task-subtasks-head label{font-size:13px;color:var(--text)}.task-subtasks-head .mini{font-size:11px;line-height:1.45}.task-subtask-count{background:rgba(103,130,170,.2);border:1px solid rgba(130,150,180,.18);font-weight:700}.task-subtask-list{gap:6px;max-height:178px}.task-subtask{min-height:36px;padding:8px 10px;background:rgba(12,23,39,.42);border-color:rgba(130,150,180,.22)}.task-subtasks-empty{padding:14px 12px;border:1px dashed rgba(130,150,180,.25);border-radius:9px;text-align:center;background:rgba(12,23,39,.2)}.task-subtask-add{padding-top:2px;align-items:center}.task-subtask-add .input,.task-subtask-add .btn{height:40px;min-height:40px;box-sizing:border-box}.task-subtask-add .btn{padding:0 16px}@media(max-width:760px){.task-subtasks-field{padding:14px}.task-subtask-add{align-items:stretch}}

.task-subtask-edit{border:0!important;background:transparent!important;color:var(--muted);cursor:pointer;font-size:14px!important;padding:0 2px!important}.task-subtask-edit:hover{color:#8db5ff!important}.task-subtask.is-editing{padding:5px 7px}.task-subtask-edit-input{height:30px!important;min-height:30px!important;flex:1;min-width:0;padding:0 9px!important}.task-subtask-save,.task-subtask-cancel{width:28px;height:28px;border:1px solid rgba(130,150,180,.25);border-radius:7px;background:transparent;color:var(--muted);cursor:pointer}.task-subtask-save:hover{color:#54d4a7;border-color:rgba(45,185,135,.5)}.task-subtask-cancel:hover{color:#ff9da9;border-color:rgba(238,94,112,.5)}
/* Match priority badge corner radius to task action buttons. */
.task-row .task-priority.priority-badge{border-radius:9px}
/* Inline subtask editing actions: equal compact buttons and clear feedback colors. */
.task-subtask.is-editing{gap:8px}.task-subtask.is-editing .task-subtask-save,.task-subtask.is-editing .task-subtask-cancel{display:grid;place-items:center;flex:0 0 28px;width:28px;min-width:28px;height:28px;min-height:28px;box-sizing:border-box;padding:0!important;border-radius:7px;font-size:14px;line-height:1}.task-subtask.is-editing .task-subtask-save{color:var(--muted);border-color:rgba(130,150,180,.25)}.task-subtask.is-editing .task-subtask-save:hover{color:#54d4a7!important;border-color:rgba(45,185,135,.55)!important;background:rgba(45,185,135,.1)!important}.task-subtask.is-editing .task-subtask-cancel{color:var(--muted)}.task-subtask.is-editing .task-subtask-cancel:hover{color:#ff9da9!important;border-color:rgba(238,94,112,.55)!important;background:rgba(238,94,112,.1)!important}

/* Consistent optical sizing for task action icons. */
.task-action-icon{display:block;width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.task-check .task-action-icon{width:15px;height:15px}.task-row-actions .task-edit .task-action-icon,.task-row-actions .task-delete .task-action-icon{width:15px;height:15px}.task-subtask-save .task-action-icon,.task-subtask-cancel .task-action-icon{width:14px;height:14px}

/* Compact blue add-subtask action. */
.task-subtask-add-button{display:grid!important;place-items:center;width:40px;height:40px;min-width:40px;min-height:40px;padding:0!important;border:1px solid rgba(91,145,255,.7)!important;border-radius:9px!important;background:#0658F6!important;color:#fff!important;font-size:24px!important;font-weight:400!important;line-height:1!important;box-shadow:0 5px 14px rgba(6,88,246,.2)}.task-subtask-add-button:hover{background:#175fff!important;border-color:#7ba6ff!important;transform:translateY(-1px)}
/* Softer translucent blue treatment for the add-subtask button. */
.task-subtask-add-button{background:rgba(6,88,246,.28)!important;border-color:rgba(91,145,255,.5)!important;box-shadow:0 5px 14px rgba(6,88,246,.1);transition:background .18s ease,border-color .18s ease,transform .18s ease,color .18s ease}.task-subtask-add-button:hover{background:rgba(31,108,255,.42)!important;border-color:rgba(125,166,255,.72)!important;color:#fff!important}
/* Subtask edit actions use their semantic colors by default; hover only adds an outline. */
.task-subtask.is-editing .task-subtask-save{color:#54d4a7!important;background:rgba(45,185,135,.12)!important;border-color:transparent!important;transition:border-color .18s ease,background .18s ease}.task-subtask.is-editing .task-subtask-save:hover{color:#54d4a7!important;background:rgba(45,185,135,.12)!important;border-color:rgba(45,185,135,.7)!important}.task-subtask.is-editing .task-subtask-cancel{color:#ff9da9!important;background:rgba(238,94,112,.12)!important;border-color:transparent!important;transition:border-color .18s ease,background .18s ease}.task-subtask.is-editing .task-subtask-cancel:hover{color:#ff9da9!important;background:rgba(238,94,112,.12)!important;border-color:rgba(238,94,112,.7)!important}
/* Hover adds a fine semantic outline plus a subtle lift in brightness. */
.task-subtask.is-editing .task-subtask-save:hover{background:rgba(45,185,135,.2)!important;border-color:rgba(45,185,135,.7)!important}.task-subtask.is-editing .task-subtask-cancel:hover{background:rgba(238,94,112,.2)!important;border-color:rgba(238,94,112,.7)!important}
/* The pencil has a wider silhouette; reduce only the glyph, not its button. */
.task-row-actions .task-edit .task-action-icon,.task-subtask-edit .task-action-icon{width:13px;height:13px}
/* Match the delete glyph to the compact edit glyph. */
.task-row-actions .task-delete .task-action-icon,.task-subtask-cancel .task-action-icon{width:13px;height:13px}
/* Delete glyph is intentionally a little larger than the pencil for optical balance. */
.task-row-actions .task-delete .task-action-icon,.task-subtask-cancel .task-action-icon{width:15px;height:15px}
/* Center the completion mark optically inside its square control. */
.task-check{display:grid!important;place-items:center!important;padding:0!important;line-height:0!important}.task-check .task-action-icon{width:15px;height:15px;margin:0;transform:translateY(0)}

/* The onboarding assignee is the employee going through the stage and cannot be changed manually. */
.user-picker.is-locked .user-picker-trigger{cursor:default!important;opacity:.82}.user-picker.is-locked .user-picker-chevron{display:none}.user-picker.is-locked .user-picker-selected{padding-right:14px}

/* Workflow calendars share the recruitment calendar surface and controls. */
.onboarding-calendar,.offboarding-calendar{margin-top:2px}.onboarding-calendar .calendar-grid,.offboarding-calendar .calendar-grid{width:100%}

#onboarding .onboarding-month-grid{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;grid-auto-flow:row!important}
#onboarding .onboarding-month-grid>.calendar-weekday,#onboarding .onboarding-month-grid>.calendar-day{min-width:0!important}
/* Brighter workflow calendar events: keep the shared look, increase contrast and emphasis. */
#onboarding .calendar-event,#offboarding .calendar-event{display:block;width:100%;margin-top:4px;padding:6px 7px;border:1px solid color-mix(in srgb,var(--event-color,#3b82f6) 58%,var(--line))!important;border-left:4px solid var(--event-color,#3b82f6)!important;border-radius:7px;background:color-mix(in srgb,var(--event-color,#3b82f6) 34%,var(--panel))!important;color:var(--text);font-size:10px;font-weight:700;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;box-shadow:0 3px 10px color-mix(in srgb,var(--event-color,#3b82f6) 20%,transparent);transition:filter .16s ease,transform .16s ease,box-shadow .16s ease}
#onboarding .calendar-event:hover,#offboarding .calendar-event:hover{filter:brightness(1.16);transform:translateY(-1px);box-shadow:0 5px 14px color-mix(in srgb,var(--event-color,#3b82f6) 30%,transparent)}
#onboarding .calendar-event small,#offboarding .calendar-event small{display:block;margin-top:3px;color:color-mix(in srgb,var(--text) 82%,var(--event-color,#3b82f6));font-size:10px;font-weight:600}
.task-search-control{position:relative;display:flex;align-items:center}.task-search-control .input{min-width:240px}.task-search-results{position:absolute;right:12px;bottom:-18px;color:var(--muted);font-size:10px;white-space:nowrap;pointer-events:none}@media(max-width:700px){.task-search-control{flex:1}.task-search-control .input{min-width:0;width:100%}}
.onboarding-people-kpi{align-content:start}.kpi-people-badges{display:flex;flex-wrap:wrap;gap:5px;margin-top:10px;min-height:0}.kpi-person-badge{display:inline-flex;align-items:center;max-width:100%;padding:4px 8px;border:1px solid rgba(6,88,246,.28);border-radius:7px;background:rgba(6,88,246,.12);color:var(--text);font-size:10px;font-weight:700;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.onboarding-people-kpi:last-child .kpi-person-badge{border-color:rgba(220,70,80,.3);background:rgba(220,70,80,.1)}
/* Team KPI cards use a clean two-level hierarchy: label and live value only. */
.company-kpis .delta{display:none}

.onboarding-people-kpi{height:154px;min-height:154px;max-height:154px;box-sizing:border-box;overflow:hidden}.onboarding-people-kpi .kpi-people-badges{max-height:44px;overflow-y:auto;align-content:flex-start;padding-right:3px}.onboarding-people-kpi .kpi-people-badges::-webkit-scrollbar{width:4px}.onboarding-people-kpi .kpi-people-badges::-webkit-scrollbar-thumb{background:rgba(142,179,255,.4);border-radius:8px}

.kpi-person-more{background:rgba(142,179,255,.1);border-color:rgba(142,179,255,.3);color:var(--muted);cursor:help;min-width:28px;justify-content:center}

/* KPI people list stays single-line: one visible name plus a tooltip-backed count. */
.onboarding-people-kpi{overflow:visible}.onboarding-people-kpi .kpi-people-badges{max-height:none;overflow:visible;flex-wrap:nowrap}.kpi-person-more{position:relative}.kpi-person-more::after{content:attr(data-tooltip);position:absolute;left:0;top:calc(100% + 8px);z-index:20;width:max-content;max-width:260px;padding:7px 9px;border:1px solid rgba(142,179,255,.35);border-radius:7px;background:#17253a;color:#f4f7ff;font-size:10px;font-weight:600;line-height:1.3;white-space:normal;box-shadow:0 8px 20px rgba(0,0,0,.25);opacity:0;visibility:hidden;transform:translateY(-3px);transition:opacity .16s ease,transform .16s ease,visibility .16s ease;pointer-events:none}.kpi-person-more:hover::after,.kpi-person-more:focus-visible::after{opacity:1;visibility:visible;transform:translateY(0)}
/* Team KPI surfaces match the dashboard hiring-funnel panel. */
.company-kpis .kpi{background:rgba(20,32,48,.72)!important}
/* Restore the original KPI card sizing; the compact people row must not define card height. */
.onboarding-people-kpi{height:auto;min-height:0;max-height:none;overflow:visible}.onboarding-people-kpi .kpi-people-badges{max-height:none;overflow:visible}.kpi-person-more{cursor:default}
/* Apply the hiring-funnel surface to the organization panel, not team KPI cards. */
.company-kpis .kpi{background:var(--panel)!important}.company-structure{background:rgba(20,32,48,.72)!important}

/* Reliable +N popover: a real child element instead of a pseudo-element. */
.kpi-person-more{position:relative;cursor:default!important}.kpi-person-tooltip{position:absolute;left:0;top:calc(100% + 8px);z-index:1000;width:max-content;max-width:280px;padding:8px 10px;border:1px solid rgba(142,179,255,.4);border-radius:8px;background:#17253a;color:#f4f7ff;font-size:10px;font-weight:600;line-height:1.35;white-space:normal;box-shadow:0 10px 24px rgba(0,0,0,.28);opacity:0;visibility:hidden;transform:translateY(-3px);transition:opacity .16s ease,transform .16s ease,visibility .16s ease;pointer-events:none}.kpi-person-more:hover .kpi-person-tooltip,.kpi-person-more:focus-visible .kpi-person-tooltip{opacity:1;visibility:visible;transform:translateY(0)}

.kpi-person-more.is-open .kpi-person-tooltip{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}

.move-employee-list{display:grid;gap:7px;max-height:300px;overflow:auto;margin-top:14px;padding:8px;border:1px solid var(--line);border-radius:12px;background:rgba(11,20,36,.25)}.move-employee-choice,.move-employee-all{display:flex;align-items:center;gap:10px;padding:9px;border-radius:9px;cursor:pointer}.move-employee-choice:hover,.move-employee-all:hover{background:rgba(6,88,246,.09)}.move-employee-choice input,.move-employee-all input{width:16px;height:16px;accent-color:var(--brand)}.move-employee-choice-avatar{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:50%;background:rgba(6,88,246,.15);color:var(--brand);font-size:10px;font-weight:700;overflow:hidden}.move-employee-choice-avatar img{width:100%;height:100%;object-fit:cover}.move-employee-choice b{display:block;font-size:12px}.move-employee-choice small{display:block;margin-top:2px;color:var(--muted);font-size:10px}.move-employee-all{border-bottom:1px solid var(--line);border-radius:0;font-weight:700;color:var(--text)}
/* Let the +N badge display its tooltip outside the badge bounds. */
.kpi-person-more{overflow:visible!important}

/* Keep the custom KPI popover above adjacent cards and Safari native tooltips. */
.onboarding-people-kpi{position:relative;z-index:5}.kpi-person-more{z-index:20}.kpi-person-tooltip{z-index:1001;top:auto;bottom:calc(100% + 8px);left:0}

/* Use one bounded tooltip layer; disable the legacy pseudo-tooltip. */
.kpi-person-more::after{display:none!important}.kpi-person-tooltip{display:block;box-sizing:border-box;width:min(240px,calc(100vw - 32px));max-width:240px;overflow-wrap:anywhere;white-space:normal;text-align:left;top:auto;bottom:calc(100% + 8px);left:0;padding:8px 10px;border-radius:8px;background:#17253a;color:#f4f7ff;border:1px solid rgba(142,179,255,.4);font-size:10px;font-weight:600;line-height:1.35;box-shadow:0 10px 24px rgba(0,0,0,.28)}

.kpi-person-tooltip.is-floating{position:fixed!important;z-index:2147483647!important;top:auto;bottom:auto;left:auto;transform:translateY(-100%);pointer-events:auto}

/* One visual language for name badge, +N badge and its below-trigger popover. */
.kpi-person-more,.kpi-person-tooltip{border:1px solid rgba(6,88,246,.28);border-radius:7px;background:rgba(6,88,246,.12);color:var(--text);font-size:10px;font-weight:700;line-height:1.2}.kpi-person-more{padding:4px 8px}.kpi-person-tooltip.is-floating{position:fixed!important;z-index:2147483647!important;top:auto;bottom:auto;left:auto;display:block;width:max-content!important;max-width:min(300px,calc(100vw - 32px));padding:4px 8px;overflow-wrap:anywhere;white-space:normal;text-align:left;transform:none!important;box-shadow:0 10px 24px rgba(0,0,0,.28);pointer-events:auto}

/* Portal tooltip: once open it lives in body, outside card stacking contexts. */
.kpi-person-tooltip.is-floating{position:fixed!important;z-index:2147483647!important;display:block!important;width:max-content!important;max-width:calc(100vw - 32px)!important;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere;transform:none!important}

/* Independent KPI popover: no inherited tooltip or card stacking context. */
.kpi-person-tooltip{display:none!important}.kpi-people-popover{position:fixed;z-index:2147483647;display:block;box-sizing:border-box;width:max-content;max-width:calc(100vw - 32px);padding:4px 8px;border:1px solid rgba(6,88,246,.28);border-radius:7px;background:rgba(6,88,246,.12);color:var(--text);font-size:10px;font-weight:700;line-height:1.2;white-space:normal;overflow-wrap:anywhere;box-shadow:0 10px 24px rgba(0,0,0,.28);overflow:auto;pointer-events:auto}
/* Workflow calendars use the same compact visual language as Recruitment. */
#onboarding .calendar-grid,#offboarding .calendar-grid{border:1px solid var(--line);border-radius:16px;background:var(--surface-2);overflow:hidden}
#onboarding .calendar-weekday,#offboarding .calendar-weekday{padding:10px 8px;background:rgba(6,88,246,.08);color:var(--muted);font-size:11px;font-weight:700;text-align:center;border-bottom:1px solid var(--line)}
#onboarding .calendar-day,#offboarding .calendar-day{min-height:88px;padding:8px;background:rgba(128,140,160,.025);border-right:1px solid rgba(128,140,160,.12);border-bottom:1px solid rgba(128,140,160,.12);transition:background .16s ease}
#onboarding .calendar-day:hover,#offboarding .calendar-day:hover{background:rgba(6,88,246,.07)}
#onboarding .calendar-day.muted,#offboarding .calendar-day.muted{opacity:.42;background:transparent}
#onboarding .calendar-day.today,#offboarding .calendar-day.today{background:color-mix(in srgb,var(--brand) 10%,var(--panel));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--brand) 28%,transparent)}
#onboarding .calendar-day.today .day-number,#offboarding .calendar-day.today .day-number{background:var(--brand);color:#fff;box-shadow:0 4px 12px rgba(6,88,246,.28)}
#onboarding .calendar-event,#offboarding .calendar-event{display:block;width:100%;margin-top:4px;padding:5px 6px;border:0;border-left:3px solid var(--event-color,#3b82f6)!important;border-radius:6px;background:color-mix(in srgb,var(--event-color,#3b82f6) 18%,var(--panel))!important;color:var(--text);font-size:10px;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;box-shadow:none;transition:filter .16s ease,transform .16s ease}
#onboarding .calendar-event:hover,#offboarding .calendar-event:hover{filter:brightness(1.12);transform:none;box-shadow:none}
#onboarding .calendar-event small,#offboarding .calendar-event small{display:block;margin-top:2px;color:var(--muted);font-size:11px;font-weight:400}
@media(max-width:720px){#onboarding .calendar-day,#offboarding .calendar-day{min-height:70px;padding:5px 4px}#onboarding .calendar-event,#offboarding .calendar-event{font-size:9px;padding:4px}}

/* User-provided looping animation for the auth preloader. */
.auth-preloader-gif{display:block;width:120px;height:120px;object-fit:contain;border-radius:22px;margin-bottom:2px;image-rendering:auto}
/* Exact recruitment calendar shell for onboarding and offboarding. */
#onboarding .onboarding-calendar-section,#offboarding .offboarding-events-section{border:1px solid var(--line);border-radius:16px;background:var(--surface-2);overflow:hidden}
#onboarding .onboarding-calendar-section .sectionhead,#offboarding .offboarding-events-section .sectionhead{margin-bottom:16px}
#onboarding .day-number,#offboarding .day-number{display:grid;place-items:center;width:26px;height:26px;margin-bottom:6px;border-radius:50%;color:var(--muted);font-size:12px;font-weight:700}
#onboarding .calendar-day.today .day-number,#offboarding .calendar-day.today .day-number{background:var(--brand);color:#fff;box-shadow:0 4px 12px rgba(6,88,246,.28)}
#onboarding .calendar-day.today,#offboarding .calendar-day.today{background:color-mix(in srgb,var(--brand) 10%,var(--panel));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--brand) 28%,transparent)}
#onboarding .calendar-weekday,#offboarding .calendar-weekday{min-height:36px;display:flex;align-items:center;justify-content:center;text-transform:uppercase}
/* KPI people hint must stay fully opaque above neighboring cards. */
.kpi-people-popover,.kpi-person-tooltip{background:#17253a!important;opacity:1}
/* Employee profile editor and one-line detail rows. */
.team-detail{grid-template-columns:180px minmax(0,1fr);align-items:center}
.team-detail label{white-space:nowrap}
.employee-edit-form .field-lock{display:inline-flex;margin-left:6px;padding:2px 6px;border-radius:999px;background:rgba(245,158,11,.12);color:#fbbf24;font-size:9px;font-weight:700;letter-spacing:.02em}
.employee-edit-note{margin:14px 0 0;padding:11px 13px;border:1px solid rgba(245,158,11,.22);border-radius:10px;background:rgba(245,158,11,.07);color:var(--muted);font-size:12px;line-height:1.45}
.approval-status-badge{display:inline-flex;align-items:center;height:26px;padding:0 9px;border-radius:8px;background:rgba(6,88,246,.12);border:1px solid rgba(6,88,246,.28);color:#93b8ff;font-size:11px;font-weight:700}
.employee-approval-card .approval-approve{color:#fca5a5;border-color:rgba(239,68,68,.35)}
@media(max-width:700px){.team-detail{grid-template-columns:1fr;gap:3px;align-items:start}.team-detail label{white-space:normal}.employee-edit-form .field-lock{display:block;width:max-content;margin:4px 0 0}}
/* Use the original high-frame-rate video for a smooth auth preloader. */
.auth-preloader-gif{image-rendering:auto;object-fit:contain}
/* Employee profile edit action lives beside the modal close button. */
.employee-profile-modal-head{align-items:center}
.employee-profile-modal-tools{display:flex;align-items:center;gap:8px}
.employee-profile-edit-icon{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid transparent;border-radius:10px;background:rgba(128,142,166,.10);color:var(--muted);cursor:pointer;transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease}
.employee-profile-edit-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.employee-profile-edit-icon:hover{background:rgba(6,88,246,.14);border-color:rgba(6,88,246,.34);color:#8eb6ff;transform:translateY(-1px)}
/* Department leader picker helper text. */
.field-help{display:block;margin-top:6px;color:var(--muted);font-size:11px}
/* Profile header actions match the modal close control before hover. */
.employee-profile-edit-icon{width:34px;height:34px;min-width:34px;min-height:34px;border:0;border-radius:8px;background:#263244;color:var(--text)}
.employee-profile-edit-icon:hover{background:rgba(128,140,160,.14);border:0;color:var(--text)}
/* Center the empty employee state inside a department modal. */
.employee-list:has(.empty){display:grid;place-items:center;min-height:280px}
.employee-list:has(.empty) .empty{grid-column:1/-1;width:100%;text-align:center}
/* Searchable department leader picker. */
.department-create-head{align-items:flex-start}
.department-create-head .mini{display:block;margin-top:6px}
.department-create-form{align-items:start;gap:18px;margin-top:4px}
.department-create-form .field{min-width:0}
.department-create-footer{margin-top:24px}
.leader-picker{position:relative}
.leader-picker-trigger{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:44px;padding:0 14px;border:1px solid var(--line);border-radius:10px;background:var(--input-bg,var(--surface-2));color:var(--text);font:inherit;text-align:left;cursor:pointer;transition:border-color .16s ease,background .16s ease}
.leader-picker-trigger:hover,.leader-picker.open .leader-picker-trigger{border-color:rgba(6,88,246,.7);background:rgba(6,88,246,.07)}
.leader-picker-chevron{color:var(--muted);font-size:18px;line-height:1;transform:translateY(-2px)}
.leader-picker-panel{position:absolute;z-index:40;left:0;right:0;top:calc(100% + 7px);display:none;padding:8px;border:1px solid var(--line);border-radius:12px;background:#1b293b;box-shadow:0 18px 40px rgba(0,0,0,.28)}
.leader-picker.open .leader-picker-panel{display:block}
.leader-picker-search{position:relative;margin-bottom:7px}.leader-picker-search>span{position:absolute;left:11px;top:9px;color:var(--muted)}.leader-picker-search .input{width:100%;height:38px;padding-left:29px}
.leader-picker-options{max-height:220px;overflow:auto;display:grid;gap:2px}.leader-picker-group-title{padding:7px 8px 4px;color:var(--muted);font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}.leader-picker-option{display:flex;align-items:center;gap:9px;width:100%;padding:8px;border:0;border-radius:8px;background:transparent;color:var(--text);text-align:left;cursor:pointer}.leader-picker-option:hover{background:rgba(6,88,246,.14)}.leader-picker-option>span:nth-child(2){display:grid;gap:2px;min-width:0}.leader-picker-option b,.leader-picker-option small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.leader-picker-option small{color:var(--muted);font-size:10px}.leader-picker-avatar{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;overflow:hidden;border-radius:8px;background:rgba(6,88,246,.16);color:#9fc0ff;font-size:10px;font-weight:700}.leader-picker-avatar img{width:100%;height:100%;object-fit:cover}.leader-picker-empty{text-align:center;padding:20px 8px;color:var(--muted);font-size:12px}.leader-picker-later{width:100%;margin-top:7px;padding:8px;border:0;border-top:1px solid var(--line);background:transparent;color:var(--muted);text-align:left;cursor:pointer}.leader-picker-later:hover{color:var(--text)}
@media(max-width:700px){.department-create-form{grid-template-columns:1fr}.leader-picker-panel{position:fixed;left:18px;right:18px;top:25%;max-height:52vh}.leader-picker-options{max-height:calc(52vh - 100px)}}
/* Safe department deletion summary and leader ownership notice. */
.delete-department-summary{display:grid;gap:10px;margin:8px 0 16px;padding:14px;border:1px solid var(--line);border-radius:12px;background:rgba(128,142,166,.06)}
.delete-department-summary p{margin:0;color:var(--muted)}
.delete-department-leader{display:grid;gap:3px;padding-top:10px;border-top:1px solid var(--line)}
.delete-department-leader span{font-weight:700}.delete-department-leader small{color:var(--muted)}
.delete-department-option{display:flex;align-items:center;gap:9px;margin-top:13px;color:var(--text);cursor:pointer}.delete-department-option input{accent-color:var(--brand)}
/* New departments keep their own accent and show a temporary NEW badge. */
.department-copy b{display:flex;align-items:center;gap:7px;min-width:0}
.department-new-badge{display:inline-flex;align-items:center;height:17px;padding:0 6px;border:1px solid rgba(126,166,255,.38);border-radius:5px;background:rgba(6,88,246,.16);color:#9fc0ff;font-size:9px;font-weight:800;letter-spacing:.06em;line-height:1}
/* Keep the leader list above the modal bounds and fully usable. */
.leader-picker-panel{position:fixed;max-height:calc(100vh - 24px);overflow:hidden}
.leader-picker-search>span{display:none}
.leader-picker-search .input{padding-left:12px}
.leader-picker-options{max-height:330px}
@media(max-width:700px){.leader-picker-panel{left:18px!important;right:18px;width:auto!important;max-height:52vh}.leader-picker-options{max-height:calc(52vh - 100px)}}
/* Organization KPI cards mirror the dashboard entrance and number reveal. */
@keyframes companyKpiNumberEnter{from{opacity:0;transform:translateY(8px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}
.company-kpis .kpi{animation:tdFadeUp .5s cubic-bezier(.23,1,.32,1) both}
.company-kpis .kpi:nth-child(2){animation-delay:.08s}.company-kpis .kpi:nth-child(3){animation-delay:.16s}.company-kpis .kpi:nth-child(4){animation-delay:.24s}.company-kpis .kpi:nth-child(5){animation-delay:.32s}.company-kpis .kpi:nth-child(6){animation-delay:.4s}.company-kpis .kpi:nth-child(7){animation-delay:.48s}.company-kpis .kpi:nth-child(8){animation-delay:.56s}
.company-kpis .num{animation:companyKpiNumberEnter .42s cubic-bezier(.23,1,.32,1) both;animation-delay:.12s}
@media(prefers-reduced-motion:reduce){.company-kpis .kpi,.company-kpis .num{animation:none}}
/* Higher specificity keeps organization KPI motion from being overridden by the global .views.active rule. */
.views.active .company-kpis .kpi{animation:tdFadeUp .5s cubic-bezier(.23,1,.32,1) both}
.views.active .company-kpis .kpi:nth-child(2){animation-delay:.08s}.views.active .company-kpis .kpi:nth-child(3){animation-delay:.16s}.views.active .company-kpis .kpi:nth-child(4){animation-delay:.24s}.views.active .company-kpis .kpi:nth-child(5){animation-delay:.32s}.views.active .company-kpis .kpi:nth-child(6){animation-delay:.4s}.views.active .company-kpis .kpi:nth-child(7){animation-delay:.48s}.views.active .company-kpis .kpi:nth-child(8){animation-delay:.56s}
.views.active .company-kpis .num{animation:companyKpiNumberEnter .42s cubic-bezier(.23,1,.32,1) both;animation-delay:.12s}
@media(prefers-reduced-motion:reduce){.views.active .company-kpis .kpi,.views.active .company-kpis .num{animation:none}}
/* Onboarding KPI cards use the same entrance and number treatment as team KPIs. */
.views.active .onboarding-kpis .kpi{animation:tdFadeUp .5s cubic-bezier(.23,1,.32,1) both}
.views.active .onboarding-kpis .kpi:nth-child(2){animation-delay:.08s}.views.active .onboarding-kpis .kpi:nth-child(3){animation-delay:.16s}.views.active .onboarding-kpis .kpi:nth-child(4){animation-delay:.24s}
.views.active .onboarding-kpis .num{animation:companyKpiNumberEnter .42s cubic-bezier(.23,1,.32,1) both;animation-delay:.12s}
@media(prefers-reduced-motion:reduce){.views.active .onboarding-kpis .kpi,.views.active .onboarding-kpis .num{animation:none}}
/* Offboarding profile details editor and deadline guidance. */
.offboarding-edit-trigger{margin-left:auto;min-height:32px;padding:5px 12px;font-size:12px}
.offboarding-edit-panel{display:none;margin:0 0 18px;padding:16px;border:1px solid rgba(6,88,246,.28);border-radius:14px;background:rgba(15,31,53,.72)}
.offboarding-edit-panel.open{display:block;animation:tdFadeUp .2s ease both}
.offboarding-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.offboarding-edit-grid .field{margin:0}.offboarding-edit-grid label{display:block;margin-bottom:7px;color:var(--muted);font-size:12px;font-weight:650}.offboarding-edit-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}
.offboarding-deadline{margin:0 0 18px;padding:12px 14px;border:1px solid rgba(6,88,246,.28);border-radius:12px;background:rgba(6,88,246,.12);color:#8db5ff;font-size:13px;font-weight:650}.offboarding-deadline.overdue{border-color:rgba(220,90,110,.35);background:rgba(220,68,78,.13);color:#ff969d}
@media(max-width:650px){.offboarding-edit-grid{grid-template-columns:1fr}.offboarding-edit-trigger{margin-left:0}.offboarding-profile-meta{align-items:flex-start}}
/* Offboarding profile header actions match the modal close control. */
.modalhead-actions{display:flex;align-items:center;gap:8px}.offboarding-edit-icon svg{width:17px;height:17px;display:block}.offboarding-edit-icon:hover{color:#82adff;background:rgba(6,88,246,.16);border-color:rgba(6,88,246,.42)}
/* Distinct picker surfaces keep search, departments and employee results separate from the modal. */
.offboarding-picker-toolbar,.offboarding-departments,.offboarding-picker-list{border:1px solid rgba(128,151,181,.22);border-radius:14px;background:rgba(18,35,57,.72);box-shadow:inset 0 1px 0 rgba(255,255,255,.025)}
.offboarding-picker-toolbar{margin:14px 0 10px;padding:11px 12px}.offboarding-picker-toolbar .input{background:rgba(31,49,74,.94);border-color:rgba(128,151,181,.22)}
.offboarding-departments{padding:10px;max-height:118px;margin-bottom:10px}.offboarding-picker-list{padding:10px;max-height:208px}.offboarding-picker-card{background:rgba(31,49,74,.82)}
/* Offboarding KPI cards share the dashboard and onboarding motion system. */
.views.active .offboarding-kpis .kpi{animation:tdFadeUp .5s cubic-bezier(.23,1,.32,1) both}
.views.active .offboarding-kpis .kpi:nth-child(2){animation-delay:.08s}.views.active .offboarding-kpis .kpi:nth-child(3){animation-delay:.16s}.views.active .offboarding-kpis .kpi:nth-child(4){animation-delay:.24s}
.views.active .offboarding-kpis .num{animation:companyKpiNumberEnter .42s cubic-bezier(.23,1,.32,1) both;animation-delay:.12s}
@media(prefers-reduced-motion:reduce){.views.active .offboarding-kpis .kpi,.views.active .offboarding-kpis .num{animation:none}}
/* Workflow stages use a subtly lighter surface than the enclosing funnel. */
.offboarding-funnel .offboarding-stage{background:rgba(31,49,74,.72);border-color:rgba(128,151,181,.28);box-shadow:inset 0 1px 0 rgba(255,255,255,.025)}
/* Offboarding stages intentionally use the page surface, not a separate panel tint. */
.offboarding-funnel .offboarding-stage{background:var(--bg);box-shadow:none}
/* Offboarding meta badges match the standard stage badge geometry. */
.offboarding-profile-meta .offboarding-info-badge{min-height:0;padding:5px 8px;border-radius:99px;font-size:11px;line-height:normal;box-sizing:border-box}
/* Archive last-day metadata uses the same green badge geometry as the completed status. */
.offboarding-last-day-badge{display:inline-flex;align-items:center;gap:3px;white-space:nowrap}
.offboarding-last-day-badge b{font-weight:700}
/* Archived offboarding cards use the same page surface as the offboarding view. */
.offboarding-archive-card{background:var(--bg)}
.dark .offboarding-archive-card,.offboarding-archive-card{box-shadow:none}
/* Keep the archived last-day value readable against the green badge surface. */
.offboarding-archive-meta .offboarding-last-day-badge b{color:var(--text)!important;font-weight:700}
/* The archived last-workday value follows the green status color. */
.offboarding-archive-meta .offboarding-last-day-badge b{color:#238b68!important}

/* Keep report filters and actions on one stable row on desktop. */
.analytics-toolbar{flex-wrap:nowrap}.analytics-toolbar .input{flex:1 1 0;min-width:0;max-width:none}.analytics-toolbar .analytics-refresh,.analytics-toolbar .analytics-reset{flex:0 0 auto;height:42px;min-height:42px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}.analytics-toolbar .analytics-reset.hidden{display:none}
@media(max-width:700px){.analytics-toolbar{display:grid;grid-template-columns:1fr}.analytics-toolbar .analytics-refresh,.analytics-toolbar .analytics-reset{width:100%}}

/* Filter reset stays visible but becomes actionable only after a change. */
.analytics-toolbar .analytics-reset{background:transparent;color:var(--muted);border-color:var(--line);opacity:1;cursor:pointer}.analytics-toolbar .analytics-reset:disabled{opacity:.48;cursor:not-allowed}.analytics-toolbar .analytics-reset:not(:disabled):hover{background:rgba(220,68,78,.16);border-color:rgba(220,68,78,.55);color:#ff9ba2}
/* Analytics insight modules */
.analytics-insights-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.analytics-insight-card{min-width:0}.analytics-funnel,.analytics-bars,.analytics-list{display:flex;flex-direction:column;gap:11px}.analytics-funnel-row{display:grid;grid-template-columns:100px 34px minmax(80px,1fr) 108px;align-items:center;gap:10px;font-size:13px}.analytics-funnel-row i,.analytics-bar-row i{height:7px;background:var(--line);border-radius:99px;overflow:hidden}.analytics-funnel-row em,.analytics-bar-row em{display:block;height:100%;background:var(--brand);border-radius:inherit}.analytics-funnel-row small{color:var(--muted);font-size:11px;text-align:right}.analytics-funnel-row b,.analytics-bar-row b{font-size:13px;text-align:right}.analytics-list-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:34px;padding-bottom:10px;border-bottom:1px solid var(--line);font-size:13px}.analytics-list-row:last-child{border-bottom:0;padding-bottom:0}.analytics-list-row small{display:block;color:var(--muted);margin-top:3px}.analytics-list-row .badge{font-size:11px;white-space:nowrap}.analytics-bar-row{display:grid;grid-template-columns:100px minmax(80px,1fr) 42px;align-items:center;gap:10px;font-size:13px}.analytics-bar-row em{background:#5b8df6}.analytics-empty{color:var(--muted);font-size:13px;padding:12px 0}.analytics-history-list{max-height:230px;overflow:auto;padding-right:3px}.analytics-interview-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.analytics-interview-stat{padding:13px 10px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.025)}.analytics-interview-stat span{display:block;color:var(--muted);font-size:11px;line-height:1.3}.analytics-interview-stat b{display:block;margin-top:8px;font-size:21px}.analytics-insight-card .sectionhead{margin-bottom:14px}@media(max-width:900px){.analytics-interview-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:700px){.analytics-insights-grid{grid-template-columns:1fr}.analytics-funnel-row{grid-template-columns:86px 28px minmax(50px,1fr)}.analytics-funnel-row small{display:none}.analytics-bar-row{grid-template-columns:86px minmax(50px,1fr) 40px}.analytics-interview-grid{grid-template-columns:repeat(2,1fr)}}
/* Recruiter workload: every metric aligns with the right edge of its header. */
.analytics-recruiter-table th:not(:first-child),.analytics-recruiter-table td:not(:first-child){text-align:right}.analytics-recruiter-table th:first-child,.analytics-recruiter-table td:first-child{text-align:left}
/* Hold-to-generate analytics report */
.analytics-report-button{position:relative;isolation:isolate;overflow:hidden;min-width:205px;height:42px}.analytics-report-button .analytics-report-fill{position:absolute;inset:0 auto 0 0;width:0;background:rgba(255,255,255,.24);z-index:-1;transition:none}.analytics-report-button .analytics-report-label{position:relative;z-index:1}.analytics-report-button.is-ready{background:#1f9d73;border-color:#1f9d73}.analytics-report-button.is-ready:hover{background:#24b381;border-color:#24b381}.analytics-report-button.is-generating{cursor:grabbing}.analytics-pdf-export{display:block!important;position:fixed;left:-100000px;top:0;width:1180px;max-width:none;background:#0d1727;color:#eef3fb;padding:24px;z-index:-1}.analytics-pdf-export .analytics-report-button{display:none!important}.analytics-pdf-export .views{display:block!important}
@media(max-width:700px){.analytics-report-button{width:100%;min-width:0}.top .analytics-report-button{order:3}}

/* Integration card descriptions keep a readable width and a stable gap before the action. */
.integration .intactions{gap:18px}.integration .intactions .mini{flex:1 1 auto;min-width:0;max-width:220px;line-height:1.35}.integration .intactions .btn{flex:0 0 auto;white-space:nowrap}
/* Slightly more compact synchronization steps. */
.sync-step{min-height:108px;padding:14px}

/* Integration sync modal: a clearer, more spacious settings surface. */
.modal:has(.integration-settings-title){width:min(900px,calc(100vw - 40px));max-height:calc(100vh - 40px);padding:28px 30px;border-radius:18px}
.modal:has(.integration-settings-title) .modalhead{margin-bottom:24px;align-items:flex-start}
.integration-settings-title{gap:18px}
.integration-settings-title .intlogo{width:82px;height:82px;flex:0 0 82px;border-radius:16px;padding:0;overflow:hidden;background:#eef2f8;box-shadow:0 8px 20px rgba(6,24,58,.14)}
.integration-settings-title .intlogo img{width:100%;height:100%;object-fit:cover;display:block;border-radius:inherit}
.integration-settings-title h2{font-size:28px;line-height:1.15;margin:4px 0 8px}
.integration-settings-title .mini{font-size:14px}
.integration-settings-intro{margin:0 0 26px;padding:16px 18px;border:1px solid rgba(6,88,246,.14);background:rgba(6,88,246,.07);border-radius:12px;gap:12px;justify-content:flex-start}
.integration-settings-intro b{font-size:16px;white-space:nowrap}
.integration-settings-intro .mini{font-size:14px}
.modal:has(.integration-settings-title) .formgrid{gap:22px 24px}
.modal:has(.integration-settings-title) .field label{font-size:14px;font-weight:750;color:var(--text)}
.modal:has(.integration-settings-title) .field>input.input,.modal:has(.integration-settings-title) .field>select.input{height:54px;min-height:54px;border-radius:12px;padding:0 16px;font-size:16px;background:var(--surface-2);border-color:transparent}
.modal:has(.integration-settings-title) .field>input.input:focus,.modal:has(.integration-settings-title) .field>select.input:focus{background:var(--surface-2);border-color:rgba(6,88,246,.55);box-shadow:0 0 0 3px rgba(6,88,246,.12)}
.modal:has(.integration-settings-title) .field.full{padding-top:2px}
.modal:has(.integration-settings-title) .field.full>label:first-child{display:block;margin-bottom:10px}
.modal:has(.integration-settings-title) .check-row{min-height:42px;margin:0;padding:8px 10px;border-radius:10px;gap:11px;font-size:15px;font-weight:650;background:rgba(127,145,171,.08)}
.modal:has(.integration-settings-title) .check-row+.check-row{margin-top:8px}
.modal:has(.integration-settings-title) .check-row input{width:18px;height:18px;accent-color:var(--brand)}
.integration-last-sync{margin-top:26px;padding:16px 18px;border:1px solid rgba(127,145,171,.14);background:var(--surface-2);border-radius:12px;font-size:15px}
.integration-last-sync b{font-size:16px}
.modalfoot.integration-settings-actions{margin-top:26px;padding-top:20px;border-top:1px solid var(--line);gap:12px}
.modalfoot.integration-settings-actions .btn{min-height:48px;padding:0 18px;border-radius:11px;font-size:15px}
.integration-settings-actions-spacer{min-width:18px}
.dark .modal:has(.integration-settings-title){background:#1d2a3a;box-shadow:0 24px 80px rgba(0,0,0,.34)}
.dark .integration-settings-intro{background:rgba(28,82,177,.22);border-color:rgba(75,137,255,.16)}
.dark .modal:has(.integration-settings-title) .field>input.input,.dark .modal:has(.integration-settings-title) .field>select.input{background:#263548;border-color:transparent;color:var(--text)}
.dark .modal:has(.integration-settings-title) .check-row{background:rgba(65,84,111,.28)}
@media(max-width:680px){.modal:has(.integration-settings-title){width:calc(100vw - 24px);max-height:calc(100vh - 24px);padding:20px}.integration-settings-title .intlogo{width:64px;height:64px;flex-basis:64px}.integration-settings-title h2{font-size:22px}.integration-settings-intro{display:block}.integration-settings-intro b{display:block;margin-bottom:5px}.modal:has(.integration-settings-title) .formgrid{grid-template-columns:1fr}.modalfoot.integration-settings-actions{flex-wrap:wrap}.integration-settings-actions-spacer{display:none}.modalfoot.integration-settings-actions .integration-sync-button{width:100%}.modalfoot.integration-settings-actions .integration-danger-button{margin-left:auto}}

/* Compact integration sync modal: keep the settings readable without dominating the workspace. */
.modal:has(.integration-settings-title){width:min(780px,calc(100vw - 32px));max-height:calc(100vh - 32px);padding:22px 24px;border-radius:16px}
.modal:has(.integration-settings-title) .modalhead{margin-bottom:18px}
.integration-settings-title{gap:14px}
.integration-settings-title .intlogo{width:64px;height:64px;flex-basis:64px;border-radius:13px}
.integration-settings-title h2{font-size:23px;margin:2px 0 5px}
.integration-settings-title .mini{font-size:12px}
.integration-settings-intro{margin-bottom:20px;padding:12px 14px;border-radius:10px;gap:9px}
.integration-settings-intro b{font-size:14px}
.integration-settings-intro .mini{font-size:12px}
.modal:has(.integration-settings-title) .formgrid{gap:16px 18px}
.modal:has(.integration-settings-title) .field label{font-size:12px}
.modal:has(.integration-settings-title) .field>input.input,.modal:has(.integration-settings-title) .field>select.input{height:46px;min-height:46px;border-radius:10px;padding:0 13px;font-size:14px}
.modal:has(.integration-settings-title) .field.full>label:first-child{margin-bottom:7px}
.modal:has(.integration-settings-title) .check-row{min-height:36px;padding:6px 9px;border-radius:8px;gap:9px;font-size:13px}
.modal:has(.integration-settings-title) .check-row+.check-row{margin-top:6px}
.modal:has(.integration-settings-title) .check-row input{width:16px;height:16px}
.integration-last-sync{margin-top:18px;padding:12px 14px;border-radius:10px;font-size:13px}
.integration-last-sync b{font-size:14px}
.modalfoot.integration-settings-actions{margin-top:18px;padding-top:14px;gap:9px}
.modalfoot.integration-settings-actions .btn{min-height:40px;padding:0 14px;border-radius:9px;font-size:13px}
@media(max-width:680px){.modal:has(.integration-settings-title){width:calc(100vw - 20px);max-height:calc(100vh - 20px);padding:18px}.integration-settings-title .intlogo{width:56px;height:56px;flex-basis:56px}.integration-settings-title h2{font-size:20px}}

/* Calendar participants use the same searchable picker as task assignees. */
.calendar-participant-pickers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0}
.calendar-event-picker{min-width:0}
.calendar-event-picker .user-picker-trigger{min-height:42px;padding:7px 10px;background:var(--surface-2,#26364a);border-color:rgba(130,150,180,.42)}
.calendar-event-picker .user-picker-selected-copy b{font-size:12px}
.calendar-event-picker .user-picker-selected-copy small{font-size:10px}
.calendar-event-picker .user-picker-placeholder{font-size:12px}
@media(max-width:720px){.calendar-participant-pickers{grid-template-columns:1fr}}

/* Event form layout: participant pickers left, color control right. */
.calendar-event-form .calendar-participant-field{grid-column:1;grid-row:3}
.calendar-event-form .calendar-event-color-field{grid-column:2;grid-row:3;max-width:none}
.calendar-event-form .calendar-participant-pickers{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.calendar-event-form .user-picker-popover.is-floating{position:fixed;z-index:1000;max-width:calc(100vw - 32px)}
@media(max-width:720px){.calendar-event-form .calendar-participant-field,.calendar-event-form .calendar-event-color-field{grid-column:1/-1;grid-row:auto}.calendar-event-form .calendar-participant-pickers{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Event participant controls match the task assignee picker geometry. */
.calendar-event-form .calendar-participant-pickers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%}
.calendar-event-form .calendar-event-picker .user-picker-trigger{width:100%;min-height:42px;border:1px solid rgba(130,150,180,.42);border-radius:9px;background:var(--surface-2,#26364a);padding:7px 10px}
.calendar-event-form .calendar-event-picker .user-picker-trigger:hover,.calendar-event-form .calendar-event-picker .user-picker-trigger[aria-expanded="true"]{border-color:rgba(6,88,246,.7);background:rgba(6,88,246,.08)}
.calendar-event-form .calendar-event-picker .user-picker-selected-copy b{font-size:11px}
.calendar-event-form .calendar-event-picker .user-picker-selected-copy small{font-size:9px}
.calendar-event-form .calendar-event-color-field{width:100%;max-width:none}
.calendar-event-form .calendar-event-color-field .calendar-color-input{display:block;width:100%;height:42px;min-height:42px;padding:7px 10px;border:1px solid rgba(130,150,180,.42);border-radius:9px;background:var(--surface-2,#26364a);cursor:pointer}
.calendar-event-form .calendar-event-color-field .calendar-color-input:hover{border-color:rgba(6,88,246,.7);background:rgba(6,88,246,.08)}
@media(max-width:720px){.calendar-event-form .calendar-event-color-field .calendar-color-input{width:100%}}

/* Keep event participant labels on one line, like the task assignee control. */
.calendar-event-form .calendar-event-picker .user-picker-placeholder{white-space:nowrap;font-size:12px}
.calendar-event-form .calendar-event-picker .user-picker-selected-copy b,.calendar-event-form .calendar-event-picker .user-picker-selected-copy small{white-space:nowrap}
/* The color control is a fully filled, same-height button. */
.calendar-event-form .calendar-event-color-field .calendar-color-input{appearance:none;-webkit-appearance:none;height:42px;min-height:42px;padding:0;border-radius:9px;overflow:hidden}
.calendar-event-form .calendar-event-color-field .calendar-color-input::-webkit-color-swatch-wrapper{padding:0}
.calendar-event-form .calendar-event-color-field .calendar-color-input::-webkit-color-swatch{border:0;border-radius:8px}
.calendar-event-form .calendar-event-color-field .calendar-color-input::-moz-color-swatch{border:0;border-radius:8px}

/* Event row proportions: wider participant controls, narrower color control. */
.calendar-event-form{grid-template-columns:minmax(0,1.45fr) minmax(150px,.55fr)}
.calendar-event-form .calendar-event-picker .user-picker-chevron{display:none}
.calendar-event-form .calendar-event-picker .user-picker-trigger{padding-right:10px}
@media(max-width:720px){.calendar-event-form{grid-template-columns:1fr}}

/* The whole picker surface is one hit target; inner labels must not intercept clicks. */
.calendar-event-form .calendar-event-picker .user-picker-trigger>*{pointer-events:none}
.calendar-event-form .calendar-event-picker .user-picker-trigger{position:relative;z-index:1;cursor:pointer}

/* Recruitment insight blocks */
.recruitment-insights{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px}
.recruitment-insight-card{margin-top:0;min-width:0}.recruitment-insight-card .sectionhead{align-items:flex-start}.recruitment-insight-card .sectionhead h2{font-size:15px}.recruitment-insight-list,.recruitment-source-list{display:grid;gap:9px}.recruitment-demand-row,.recruitment-approval-row{display:flex;align-items:center;gap:10px;padding:10px 11px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2,#f8f9fc)}.recruitment-rank{display:grid;place-items:center;width:24px;height:24px;border-radius:7px;background:rgba(6,88,246,.12);color:var(--brand);font-weight:800;font-size:11px;flex:0 0 24px}.recruitment-demand-main,.recruitment-approval-row>div{display:grid;gap:3px;min-width:0;flex:1}.recruitment-demand-main b,.recruitment-approval-row b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recruitment-demand-main small,.recruitment-approval-row small,.recruitment-source-row small{color:var(--muted);font-size:10px}.recruitment-demand-row>strong{color:var(--brand);font-size:13px}.recruitment-approval-icon{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:rgba(217,148,0,.14);color:var(--yellow);font-weight:800;flex:0 0 24px}.recruitment-approval-row .badge{font-size:9px;white-space:nowrap}.recruitment-source-row{padding:9px 10px;border:1px solid var(--line);border-radius:10px}.recruitment-source-head{display:flex;justify-content:space-between;gap:12px}.recruitment-source-head b{font-size:12px}.recruitment-source-head strong{font-size:12px;color:var(--brand)}.recruitment-source-bar{height:6px;margin:7px 0 6px;border-radius:99px;background:rgba(130,150,180,.18);overflow:hidden}.recruitment-source-bar i{display:block;height:100%;border-radius:inherit;background:var(--brand)}.recruitment-recommendation{display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:9px;width:100%;padding:11px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2,#f8f9fc);color:var(--text);text-align:left;transition:border-color .16s ease,background .16s ease}.recruitment-recommendation:hover{border-color:rgba(6,88,246,.5);background:rgba(6,88,246,.06)}.recruitment-recommendation span{color:var(--brand);font-size:18px}.recruitment-recommendation b{font-size:12px}.recruitment-recommendation small{color:var(--muted);font-size:10px}.recruitment-empty{padding:18px 10px;color:var(--muted);font-size:11px;text-align:center;border:1px dashed var(--line);border-radius:10px}@media(max-width:800px){.recruitment-insights{grid-template-columns:1fr}}

/* Recruitment insight rows must inherit the active light/dark surface instead of the light fallback. */
.recruitment-demand-row,.recruitment-approval-row,.recruitment-source-row,.recruitment-recommendation{background:var(--panel)!important;color:var(--text)}
.recruitment-demand-row,.recruitment-approval-row,.recruitment-source-row,.recruitment-recommendation{border-color:var(--line)}
.recruitment-demand-main small,.recruitment-approval-row small,.recruitment-source-row small,.recruitment-recommendation small{color:var(--muted)}
.recruitment-recommendation:hover{background:color-mix(in srgb,var(--brand) 8%,var(--panel))!important}

/* Interactive pricing modal */
.plan-billing-switch{display:flex;gap:4px;width:max-content;margin:0 auto 18px;padding:4px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}
.plan-billing-switch button{padding:8px 14px;border:0;border-radius:7px;background:transparent;color:var(--muted);font:600 11px Montserrat,sans-serif;cursor:pointer}.plan-billing-switch button.active{background:var(--brand);color:#fff}.plan-billing-switch button span{font-size:9px;color:#6ee7b7;margin-left:4px}.plan-billing-switch button.active span{color:#fff}
.plan-option{cursor:pointer;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}.plan-option:hover{transform:translateY(-2px);border-color:rgba(6,88,246,.6)}.plan-option.selected{border-color:var(--brand)!important;box-shadow:0 0 0 2px rgba(6,88,246,.3),0 14px 34px rgba(6,88,246,.14)}.plan-option-price{min-height:38px}.plan-price-value{font-size:29px;font-weight:800;color:var(--brand)}.plan-trial-badge{display:inline-flex;margin:8px 0;padding:5px 8px;border-radius:999px;background:rgba(45,185,135,.13);color:#36c99b;font-size:10px;font-weight:700}.plan-employee-box{display:flex;align-items:center;justify-content:center;gap:14px;margin:18px 0 10px}.plan-employee-box label{font-size:12px;font-weight:700;color:var(--muted)}.plan-counter{display:flex;align-items:center;gap:6px}.plan-counter button{width:32px;height:32px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--text);font-size:19px}.plan-counter input{width:70px;height:32px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--text);text-align:center}.plan-quote{display:flex;justify-content:center;margin-top:8px;padding:12px 14px;border:1px solid rgba(6,88,246,.25);border-radius:10px;background:rgba(6,88,246,.07)}.plan-quote div{display:flex;align-items:center;gap:18px}.plan-quote span{color:var(--muted);font-size:11px}.plan-quote b{color:var(--brand);font-size:18px}.plan-modal-footer{justify-content:flex-end}.plan-modal-footer #planChoose:disabled{opacity:.45;cursor:not-allowed}.plan-checkout-summary{display:grid;gap:12px;padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.plan-checkout-summary>div{display:flex;justify-content:space-between;gap:16px}.plan-checkout-summary span{color:var(--muted);font-size:12px}.plan-checkout-total{padding-top:13px;border-top:1px solid var(--line)}.plan-checkout-total strong{color:var(--brand);font-size:22px}.plan-trial-note{padding:11px 13px;border-radius:9px;background:rgba(45,185,135,.1);color:#36c99b;font-size:12px}@media(max-width:900px){.plan-modal-shell .plan-modal-grid{grid-template-columns:1fr}.plan-employee-box{justify-content:space-between}}@media(max-width:520px){.plan-employee-box{align-items:flex-start;flex-direction:column;gap:8px}.plan-billing-switch{width:100%}.plan-billing-switch button{flex:1}}

/* Employee count control: prominent, clean input without browser spin buttons. */
.plan-employee-box{padding:12px 16px;border:1px solid rgba(6,88,246,.38);border-radius:12px;background:color-mix(in srgb,var(--brand) 7%,var(--panel));box-shadow:inset 0 0 0 1px rgba(255,255,255,.025)}
.plan-employee-box label{color:var(--text);font-size:12px;font-weight:750}.plan-counter{padding:4px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}
.plan-counter button{width:34px;height:34px;border:0;border-radius:7px;background:rgba(6,88,246,.12);color:var(--brand);font-size:21px;font-weight:700;line-height:1}.plan-counter button:hover{background:rgba(6,88,246,.22)}
.plan-counter input{width:86px;height:34px;border:1px solid rgba(6,88,246,.55);border-radius:7px;background:var(--panel);color:var(--text);font-size:16px;font-weight:750;outline:none;text-align:center}.plan-counter input:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(6,88,246,.16)}
.plan-counter input::-webkit-outer-spin-button,.plan-counter input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.plan-counter input[type=number]{-moz-appearance:textfield}

/* Security page motion: cards enter together, KPI values count up in JS. */
.security-kpi-card{animation:securityCardIn .42s cubic-bezier(.23,1,.32,1) both}.security-kpi-card:nth-child(2){animation-delay:.07s}.security-kpi-card:nth-child(3){animation-delay:.14s}
.security-grid .security-panel,.security-blocked-panel{animation:securityCardIn .5s cubic-bezier(.23,1,.32,1) .18s both}@keyframes securityCardIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.security-kpi-card,.security-grid .security-panel,.security-blocked-panel{animation:none}}

/* Security sessions are grouped by identity for faster review. */
.security-session-group{display:grid;gap:0}.security-session-group+.security-session-group{border-top:1px solid var(--line)}.security-session-group-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;background:color-mix(in srgb,var(--brand) 6%,var(--panel));border-bottom:1px solid var(--line)}.security-session-group-head strong{font-size:12px}.security-session-group-head span{color:var(--muted);font-size:10px}.security-session-group .security-log-row{border-bottom:1px solid color-mix(in srgb,var(--line) 70%,transparent)}

.account-avatar-image{width:100%;height:100%;display:block;object-fit:cover;border-radius:inherit}.account-security-shield{display:grid;place-items:center;width:38px;height:38px;border:1px solid rgba(45,201,155,.35);border-radius:12px;background:rgba(45,201,155,.12);color:#39d59e}.account-security-shield svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.account-access-card{background:linear-gradient(145deg,rgba(6,88,246,.12),var(--card))}.account-access-card .account-access-line b{color:var(--text)}

/* Account profile photo is always cropped inside the compact avatar shape. */
.account-avatar{position:relative!important;display:block!important;flex:0 0 48px!important;width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;max-width:48px!important;max-height:48px!important;aspect-ratio:1/1!important;overflow:hidden!important;border-radius:15px!important;padding:0!important}.account-avatar-image{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:50% 35%!important;border-radius:inherit!important}

/* Larger account photo with a neutral light-gray frame. */
.account-avatar{flex-basis:64px!important;width:64px!important;height:64px!important;min-width:64px!important;min-height:64px!important;max-width:64px!important;max-height:64px!important;border-color:rgba(210,220,232,.68)!important;border-width:2px!important;border-radius:18px!important}.account-avatar-image{object-position:50% 35%!important}

/* Tasks page entrance motion. Rows cascade in after the list container appears. */
.tasks-shell{animation:tasksShellIn .48s cubic-bezier(.23,1,.32,1) both}.tasks-kpis .kpi{animation:tasksKpiIn .42s cubic-bezier(.23,1,.32,1) both}.tasks-kpis .kpi:nth-child(2){animation-delay:.06s}.tasks-kpis .kpi:nth-child(3){animation-delay:.12s}.tasks-kpis .kpi:nth-child(4){animation-delay:.18s}.tasks-shell .task-row{animation:taskRowIn .38s cubic-bezier(.23,1,.32,1) both}.tasks-shell .task-row:nth-child(2){animation-delay:.04s}.tasks-shell .task-row:nth-child(3){animation-delay:.08s}.tasks-shell .task-row:nth-child(4){animation-delay:.12s}.tasks-shell .task-row:nth-child(5){animation-delay:.16s}.tasks-shell .task-row:nth-child(6){animation-delay:.20s}.tasks-shell .task-row:nth-child(n+7){animation-delay:.24s}@keyframes tasksShellIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes tasksKpiIn{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes taskRowIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.tasks-shell,.tasks-kpis .kpi,.tasks-shell .task-row{animation:none}}

.account-settings-save.is-dirty{box-shadow:0 0 0 3px rgba(6,88,246,.16);transform:translateY(-1px)}

.security-page-loading{min-height:320px;display:grid;place-items:center}.security-loading-card{padding:18px 24px;border:1px solid var(--line);border-radius:14px;background:var(--panel);color:var(--muted);animation:securityLoadingPulse 1.2s ease-in-out infinite}@keyframes securityLoadingPulse{0%,100%{opacity:.55}50%{opacity:1}}@media(prefers-reduced-motion:reduce){.security-loading-card{animation:none}}

/* Global knowledge-base Spotlight search. */
.knowledge-spotlight-shell{width:min(720px,calc(100vw - 40px));padding:4px 0 8px}.knowledge-spotlight-head{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid rgba(142,179,255,.42);border-radius:13px;background:rgba(11,20,36,.72);box-shadow:0 0 0 4px rgba(6,88,246,.08)}.knowledge-spotlight-symbol{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:rgba(6,88,246,.18);color:#9fc0ff;font-weight:800}.knowledge-spotlight-head input{min-width:0;flex:1;border:0;outline:0;background:transparent;color:var(--text);font:inherit;font-size:16px}.knowledge-spotlight-head input::placeholder{color:var(--muted)}.knowledge-spotlight-head kbd{padding:4px 7px;border:1px solid var(--line);border-radius:6px;color:var(--muted);font-size:10px}.knowledge-spotlight-head .close{flex:0 0 30px;width:30px;height:30px}.knowledge-spotlight-caption{margin:18px 4px 8px;color:var(--muted);font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:.08em}.knowledge-spotlight-results{display:grid;gap:6px;max-height:min(56vh,460px);overflow:auto;padding:2px}.knowledge-spotlight-result{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:11px;width:100%;padding:11px 12px;border:1px solid transparent;border-radius:10px;background:rgba(130,150,180,.08);color:var(--text);text-align:left;cursor:pointer;transition:background .16s ease,border-color .16s ease,transform .16s ease}.knowledge-spotlight-result:hover,.knowledge-spotlight-result:focus-visible{background:rgba(6,88,246,.16);border-color:rgba(83,134,255,.45);outline:0;transform:translateX(2px)}.knowledge-spotlight-result-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:rgba(6,88,246,.14);color:#8eb3ff;font-size:17px}.knowledge-spotlight-result b,.knowledge-spotlight-result small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.knowledge-spotlight-result small{margin-top:3px;color:var(--muted);font-size:11px}.knowledge-spotlight-result-arrow{color:#8eb3ff;font-size:16px}.knowledge-spotlight-empty{padding:26px 14px;color:var(--muted);text-align:center}.knowledge-article-card{padding-right:42px}.knowledge-read-mark{position:absolute;right:14px;top:14px;display:grid;place-items:center;width:22px;height:22px;border-radius:7px;background:rgba(45,185,135,.16);border:1px solid rgba(45,185,135,.42);color:#54d4a7;font-weight:800}.knowledge-article-card.is-read{border-color:rgba(45,185,135,.28)}
@media(max-width:680px){.knowledge-spotlight-shell{width:calc(100vw - 34px)}.knowledge-spotlight-head{gap:8px}.knowledge-spotlight-head input{font-size:14px}}

.knowledge-hero h2{max-width:none;white-space:nowrap}
@media(max-width:680px){.knowledge-hero h2{white-space:normal}}

.knowledge-article-card{display:block;padding:0;overflow:hidden}.knowledge-article-open{display:flex;align-items:flex-start;gap:12px;width:100%;min-height:148px;padding:17px 42px 17px 17px;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer;font:inherit}.knowledge-article-open:focus-visible{outline:2px solid rgba(83,134,255,.8);outline-offset:-3px}.knowledge-favorite-button{position:absolute;right:12px;bottom:12px;z-index:2;display:grid;place-items:center;width:28px;height:28px;border:1px solid var(--line);border-radius:8px;background:rgba(11,20,36,.42);color:var(--muted);font-size:17px;line-height:1;cursor:pointer;transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease}.knowledge-favorite-button:hover,.knowledge-favorite-button:focus-visible{background:rgba(6,88,246,.18);border-color:rgba(83,134,255,.55);color:#a8c4ff;transform:scale(1.05);outline:0}.knowledge-favorite-button.is-favorite{background:rgba(6,88,246,.18);border-color:rgba(83,134,255,.52);color:#9fc0ff}.knowledge-detail-block{display:grid;gap:7px;margin-top:16px;padding:13px 15px;border:1px solid rgba(130,150,180,.18);border-radius:10px;background:rgba(130,150,180,.07)}.knowledge-detail-block>b{font-size:12px}.knowledge-detail-block>span,.knowledge-detail-block li{color:var(--muted);font-size:12px;line-height:1.55}.knowledge-detail-block ol{margin:0;padding-left:20px}.knowledge-detail-block li+li{margin-top:5px}.knowledge-modal-actions{flex-wrap:wrap}.knowledge-modal-actions .btn{white-space:nowrap}

body.modal-scroll-locked{overflow:hidden!important;overscroll-behavior:none}

/* More breathing room between the knowledge page sections. */
.knowledge-page-top{margin-bottom:28px}
.knowledge-categories{margin-top:28px;margin-bottom:24px}

/* Keep favorite stars optically centered in their square controls. */
.knowledge-favorite-button{font-family:Arial,sans-serif;font-size:18px;font-weight:400;line-height:1;padding:0;text-indent:0;align-items:center;justify-content:center}
.knowledge-favorite-button.is-favorite{font-size:17px;line-height:1}

/* Knowledge article readability: brighter information surfaces and clearer heading hierarchy. */
#modal:has(.knowledge-article-modal) .modal{background:#203044}
#modal:has(.knowledge-article-modal) .modalhead .section-kicker{margin-bottom:12px}
#modal:has(.knowledge-article-modal) .knowledge-detail-block{background:rgba(74,101,132,.28);border-color:rgba(151,177,211,.24);box-shadow:inset 0 1px rgba(255,255,255,.035)}
#modal:has(.knowledge-article-modal) .knowledge-modal-tip{background:rgba(38,87,164,.34);border-left-color:#6a9cff;box-shadow:inset 0 1px rgba(255,255,255,.035)}
#modal:has(.knowledge-article-modal) .knowledge-modal-icon{background:rgba(42,105,226,.28);border:1px solid rgba(115,164,255,.26)}

/* Darker article information panels for stronger text contrast. */
#modal:has(.knowledge-article-modal) .knowledge-detail-block{background:rgba(10,21,37,.72);border-color:rgba(121,151,190,.28);box-shadow:inset 0 1px rgba(255,255,255,.025)}

/* Spotlight must fit inside the modal padding instead of overflowing to the right. */
#modal:has(.knowledge-spotlight-shell) .modal{box-sizing:border-box;overflow-x:hidden}
#modal:has(.knowledge-spotlight-shell) .knowledge-spotlight-shell{width:100%;max-width:none;box-sizing:border-box}
#modal:has(.knowledge-spotlight-shell) .knowledge-spotlight-head,
#modal:has(.knowledge-spotlight-shell) .knowledge-spotlight-results{max-width:100%;box-sizing:border-box}

.knowledge-search-highlight{display:inline;padding:1px 3px;border-radius:4px;background:rgba(91,145,255,.34);color:#dce9ff;box-shadow:0 0 0 1px rgba(133,177,255,.26)}

.knowledge-faq-section{margin-top:26px}
.knowledge-faq-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.knowledge-faq-card{border:1px solid var(--line);border-radius:12px;background:rgba(128,140,160,.06);overflow:hidden}
.knowledge-faq-card>button{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;padding:13px 14px;border:0;background:transparent;color:var(--text);text-align:left;font:inherit;cursor:pointer}
.knowledge-faq-card>button:hover{background:rgba(6,88,246,.1)}
.knowledge-faq-icon,.knowledge-faq-answer-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:rgba(6,88,246,.16);color:#9fc0ff;font-weight:800}
.knowledge-faq-card b,.knowledge-faq-card small{display:block}.knowledge-faq-card b{font-size:12px}.knowledge-faq-card small{margin-top:4px;color:var(--muted);font-size:11px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.knowledge-faq-arrow{color:#8eb3ff}.knowledge-faq-answer{display:flex;gap:14px;align-items:flex-start;padding:18px 0;color:var(--text)}.knowledge-faq-answer p{margin:0;line-height:1.6}
@media(max-width:720px){.knowledge-faq-grid{grid-template-columns:1fr}}

/* Spotlight uses a stronger backdrop while keeping the underlying page visible. */
#modal:has(.knowledge-spotlight-shell){background:rgba(0,0,0,.78)!important}

.knowledge-faq-answer{margin-top:8px;padding:22px 24px;border:1px solid rgba(111,151,214,.28);border-radius:14px;background:linear-gradient(135deg,rgba(16,35,67,.88),rgba(27,43,67,.72));box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 12px 28px rgba(0,0,0,.12)}
.knowledge-faq-answer p{font-size:17px;line-height:1.65;color:var(--text)}
.knowledge-faq-answer-icon{flex:0 0 32px;width:32px;height:32px;font-size:18px}

.logout-confirm-panel{display:flex;align-items:flex-start;gap:14px;margin:8px 0 4px;padding:16px 18px;border:1px solid rgba(111,151,214,.25);border-radius:12px;background:rgba(18,34,58,.62);color:var(--muted);line-height:1.5}
.logout-confirm-panel p{margin:0}.logout-confirm-icon{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:9px;background:rgba(239,96,105,.14);color:#ff9da5;font-size:20px;font-weight:800}

/* FAQ answers use the same dark surface as the dashboard hiring funnel. */
.knowledge-faq-answer{background:rgba(20,32,48,.72);border-color:rgba(133,151,180,.24);box-shadow:0 10px 28px rgba(0,0,0,.10)}
.knowledge-search kbd{padding:5px 9px;border:1px solid rgba(139,111,255,.45);border-radius:7px;background:rgba(118,91,235,.18);color:#c3b5ff;font-size:11px;font-weight:700;line-height:1.2;white-space:nowrap;box-shadow:inset 0 1px rgba(255,255,255,.06)}
.knowledge-article-icon svg,.knowledge-spotlight-result-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

.knowledge-article-icon,.knowledge-spotlight-result-icon{display:grid;place-items:center;align-items:center;justify-items:center;line-height:0;box-sizing:border-box}
.knowledge-article-icon svg,.knowledge-spotlight-result-icon svg{display:block;margin:0;align-self:center;justify-self:center}

.knowledge-favorite-button.is-favorite{background:rgba(245,190,42,.16);border-color:rgba(245,190,42,.5);color:#ffd65a;text-shadow:0 0 8px rgba(255,210,74,.28)}
.knowledge-favorite-button.is-favorite:hover,.knowledge-favorite-button.is-favorite:focus-visible{background:rgba(245,190,42,.24);border-color:rgba(255,214,90,.72);color:#ffe58a}

#modal:has(.knowledge-spotlight-shell) .modal{background:rgba(20,32,48,.72)!important;border-color:rgba(133,151,180,.24)!important;box-shadow:0 10px 28px rgba(0,0,0,.18)!important}

#modal:has(.knowledge-spotlight-shell) .modal{background:#142030!important}

/* FAQ answer card: richer hierarchy while preserving the dashboard dark surface. */
.knowledge-faq-answer{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:42px minmax(0,1fr);align-items:start;gap:18px;padding:24px 26px 25px 24px;border:1px solid rgba(105,145,214,.38);background:linear-gradient(135deg,#142030 0%,#172b46 62%,#1b2a49 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.055),0 16px 34px rgba(0,0,0,.16)}
.knowledge-faq-answer:before{content:"";position:absolute;z-index:-1;left:0;top:0;bottom:0;width:4px;background:linear-gradient(180deg,#6e8cff,#8b5cf6 55%,#4d7dff)}
.knowledge-faq-answer:after{content:"";position:absolute;z-index:-1;right:-72px;top:-92px;width:230px;height:230px;border-radius:50%;background:radial-gradient(circle,rgba(99,102,241,.22),rgba(99,102,241,0) 68%);pointer-events:none}
.knowledge-faq-answer-icon{margin-top:1px;display:grid;place-items:center;width:40px;height:40px;border:1px solid rgba(142,179,255,.42);border-radius:12px;background:linear-gradient(145deg,rgba(6,88,246,.42),rgba(118,91,235,.38));color:#e0e9ff;font-size:22px;box-shadow:0 8px 20px rgba(6,88,246,.18),inset 0 1px rgba(255,255,255,.13)}
.knowledge-faq-answer p{position:relative;margin:0;padding-top:2px;color:#f2f6ff;font-size:17px;line-height:1.65;letter-spacing:.005em}
@media(max-width:680px){.knowledge-faq-answer{grid-template-columns:34px minmax(0,1fr);gap:12px;padding:18px 17px}.knowledge-faq-answer-icon{width:34px;height:34px;border-radius:10px;font-size:19px}.knowledge-faq-answer p{font-size:14px}}

/* FAQ modal shell: the outer card gets its own richer surface; answer panel stays independent. */
#modal:has(.knowledge-faq-answer) .modal{background:linear-gradient(145deg,#142030 0%,#192d45 58%,#1d2b49 100%)!important;border-color:rgba(133,151,180,.3)!important;box-shadow:0 24px 70px rgba(0,0,0,.3),inset 0 1px rgba(255,255,255,.045)!important}

/* The outer FAQ modal matches the opaque dashboard funnel surface. */
#modal:has(.knowledge-faq-answer) .modal{background:#142030!important;border-color:rgba(133,151,180,.3)!important;box-shadow:0 24px 70px rgba(0,0,0,.3),inset 0 1px rgba(255,255,255,.045)!important}

/* Knowledge material cards use the dashboard hiring-funnel surface. */
.knowledge-article-card,.knowledge-faq-card{background:rgba(20,32,48,.72);border-color:rgba(133,151,180,.24)}
.knowledge-article-card:hover{background:rgba(20,32,48,.86);border-color:rgba(83,134,255,.55)}
.knowledge-faq-card>button:hover{background:rgba(6,88,246,.12)}


/* Quick command palette opened with Option-Command-K. */
.quick-actions-modal{width:min(680px,100%);padding:26px;background:#142030;border:1px solid rgba(106,139,194,.34);box-shadow:0 24px 70px rgba(0,0,0,.34)}
.quick-actions-head{margin-bottom:20px}.quick-actions-head h2{margin:5px 0 4px}.quick-actions-head .mini{max-width:450px;margin:0}.quick-actions-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.quick-action-item{display:flex;align-items:center;gap:12px;min-width:0;padding:14px 12px;border:1px solid rgba(126,151,190,.24);border-radius:12px;background:rgba(31,48,71,.7);color:var(--text);text-align:left;cursor:pointer;transition:transform .16s ease,background .16s ease,border-color .16s ease}.quick-action-item:hover{transform:translateY(-1px);background:rgba(6,88,246,.16);border-color:rgba(94,145,255,.62)}.quick-action-icon{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:10px;background:rgba(6,88,246,.22);color:#9ebdff;font-size:19px}.quick-action-copy{display:grid;gap:4px;min-width:0;flex:1}.quick-action-copy b{font-size:13px}.quick-action-copy small{color:var(--muted);font-size:10px;line-height:1.35}.quick-action-arrow{color:#8db3ff;font-size:23px}.quick-actions-hint{display:flex;align-items:center;justify-content:flex-end;gap:5px;margin-top:18px;color:var(--muted);font-size:11px}.quick-actions-hint kbd{min-width:20px;padding:3px 6px;border:1px solid rgba(126,151,190,.35);border-radius:5px;background:rgba(7,16,30,.38);color:#c9d8f5;text-align:center;font:inherit}@media(max-width:620px){.quick-actions-modal{padding:20px}.quick-actions-grid{grid-template-columns:1fr}.quick-actions-hint{justify-content:flex-start}}


/* Modal overlay alignment: normal forms and command palette are centered in the viewport. */
.modalwrap.open{align-items:center!important;justify-content:center!important;overflow-y:auto;overflow-x:hidden;padding:20px}
@media(max-width:700px){.modalwrap.open{padding:12px}}


/* Searchable assignee picker must escape the modal's scroll/overflow context. */
.user-picker-popover.is-floating{position:fixed;z-index:1000;max-width:calc(100vw - 32px)}

/* Guest access management on the security page. */
.guest-accounts-panel{grid-column:1 / -1;margin-top:2px}.security-panel-subtitle{margin:7px 0 0;color:var(--muted,#9ba7ba);font-size:13px;max-width:620px}.guest-account-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0 14px}.guest-account-stats>div{padding:15px 17px;border:1px solid rgba(116,145,190,.22);border-radius:14px;background:rgba(12,28,54,.48);display:flex;align-items:baseline;gap:8px}.guest-account-stats b{font-size:24px;color:#f3f7ff}.guest-account-stats span{font-size:12px;color:#9ba7ba}.guest-account-list{display:grid;gap:9px}.guest-account-row{display:grid;grid-template-columns:40px minmax(0,1fr) auto auto;align-items:center;gap:13px;padding:13px 14px;border:1px solid rgba(116,145,190,.2);border-radius:14px;background:rgba(25,43,73,.5)}.guest-account-row.is-disabled{opacity:.58}.guest-account-avatar{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(145deg,#2264db,#6c52ef);color:#fff;font-weight:800}.guest-account-main{min-width:0;display:grid;gap:3px}.guest-account-main strong{font-size:14px}.guest-account-login,.guest-account-main small{color:#9ba7ba;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.guest-account-metrics{text-align:right;display:grid;gap:1px}.guest-account-metrics b{font-size:18px}.guest-account-metrics span{color:#9ba7ba;font-size:11px}.guest-account-modal{position:fixed;inset:0;z-index:1100;display:grid;place-items:center;padding:20px;background:rgba(2,8,20,.78);backdrop-filter:blur(8px)}.guest-account-dialog{width:min(640px,100%);max-height:min(760px,calc(100vh - 40px));overflow:auto;padding:26px;border:1px solid rgba(102,142,208,.38);border-radius:22px;background:#17263d;box-shadow:0 24px 80px rgba(0,0,0,.46)}.guest-account-form{display:grid;gap:15px;margin-top:20px}.guest-account-form label{display:grid;gap:7px;font-size:13px;font-weight:700;color:#d7e0ef}.guest-account-form .input{width:100%}.guest-credentials{display:grid;gap:10px;margin:23px 0;padding:18px;border:1px solid rgba(105,150,239,.42);border-radius:15px;background:rgba(22,55,107,.48)}.guest-credentials div{display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid rgba(180,200,235,.14);padding-bottom:9px}.guest-credentials div:last-child{border-bottom:0;padding-bottom:0}.guest-credentials span{color:#aab8ce}.guest-credentials b{color:#fff;word-break:break-all}.guest-account-modal-open{overflow:hidden}@media (max-width:720px){.guest-account-stats{grid-template-columns:1fr}.guest-account-row{grid-template-columns:36px minmax(0,1fr)}.guest-account-row .guest-account-metrics{display:none}.guest-account-row .btn{grid-column:2;justify-self:start}.guest-account-dialog{padding:20px}}

/* Guest accounts are a distinct security surface, separated from the blocked-users panel. */
.guest-accounts-panel{margin-top:24px!important;padding:26px 30px!important;background:linear-gradient(145deg,rgba(29,45,72,.98),rgba(20,34,57,.98));border:1px solid rgba(92,132,205,.42);box-shadow:0 18px 42px rgba(0,0,0,.16)}
.guest-accounts-panel .security-panel-head{align-items:flex-start;gap:24px;padding-bottom:4px}
.guest-accounts-panel .security-panel-head>div{min-width:0}
.guest-accounts-panel .security-panel-head>.btn{flex:0 0 auto;white-space:nowrap;margin-top:2px}
.guest-account-stats{margin:24px 0 18px!important;gap:14px!important}
.guest-account-stats>div{min-height:68px;padding:14px 16px!important;align-items:center!important;gap:10px!important;background:rgba(8,22,45,.56)!important;border-color:rgba(103,143,215,.28)!important}
.guest-account-stats b{line-height:1;font-size:25px!important}
.guest-account-stats span{line-height:1.25;white-space:nowrap}
.guest-account-list{margin-top:4px}
@media (max-width:720px){.guest-accounts-panel{padding:22px 18px!important}.guest-accounts-panel .security-panel-head{display:grid}.guest-accounts-panel .security-panel-head>.btn{justify-self:start}.guest-account-stats{margin-top:18px!important}}

.guest-password-field{display:flex;gap:8px;align-items:center}.guest-password-field .input{flex:1}.guest-password-toggle{flex:0 0 auto;height:42px;padding:0 13px;border-radius:9px;border:1px solid rgba(116,145,190,.3);background:rgba(8,22,45,.55);color:#b9c9e3}.guest-password-toggle:hover{border-color:#5c8fe9;color:#fff;background:rgba(32,72,145,.55)}
.guest-account-metrics small{font-size:10px;color:#8fa8d2}.guest-account-row.is-disabled .guest-account-metrics small{color:#e5a2a2}
@media(max-width:720px){.guest-account-row{gap:10px}.guest-password-field{align-items:stretch}.guest-password-toggle{height:auto}}
.guest-password-check{display:inline-flex!important;align-items:center;gap:7px;white-space:nowrap;cursor:pointer;color:#b9c9e3!important;font-size:12px!important;font-weight:650!important}.guest-password-check input{width:16px;height:16px;margin:0;accent-color:#0658f6}.guest-password-check:hover{color:#fff!important}.guest-password-field{align-items:center!important}

/* Guest form controls: keep password visibility beside the field and use regular input text. */
.guest-account-form .guest-password-field{display:flex!important;align-items:center!important;gap:12px!important;min-width:0}
.guest-account-form .guest-password-field>.input{flex:1 1 auto;min-width:0;font-weight:400!important}
.guest-account-form .guest-password-field>.guest-password-check{display:inline-flex!important;flex:0 0 auto;align-items:center!important;gap:7px!important;width:auto!important;margin:0!important;padding:0!important;white-space:nowrap!important;font-weight:600!important}
.guest-account-form .guest-password-check input[type=checkbox]{display:block!important;width:16px!important;height:16px!important;min-width:16px!important;margin:0!important;padding:0!important;accent-color:#0658f6}
.guest-account-form input,.guest-account-form textarea,.guest-account-form select{font-weight:400!important}
.guest-account-form input::placeholder,.guest-account-form textarea::placeholder{font-weight:400!important}
@media(max-width:560px){.guest-account-form .guest-password-field{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:9px!important}.guest-account-form .guest-password-check{grid-column:1 / -1;justify-self:start}}

.guest-credentials b{display:inline-flex;align-items:center;justify-content:flex-end;gap:8px}.copy-credential{display:inline-grid;place-items:center;width:25px;height:25px;padding:0;border:1px solid transparent;border-radius:7px;background:transparent;color:#9fb8e5;opacity:0;cursor:pointer;transition:opacity .16s ease,background .16s ease,border-color .16s ease,color .16s ease}.guest-credentials b:hover .copy-credential,.copy-credential:focus-visible,.copy-credential.is-copied{opacity:1}.copy-credential:hover{background:rgba(6,88,246,.18);border-color:rgba(100,157,255,.45);color:#dce8ff}.copy-credential.is-copied{background:rgba(41,190,109,.16);border-color:rgba(67,214,132,.55);color:#55df91}.copy-credential svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.guest-account-badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:5px}.guest-badge{display:inline-flex;padding:3px 9px;border-radius:6px;font-size:11px;font-weight:600;background:rgba(255,255,255,.06);color:#b9c9e3;border:1px solid rgba(255,255,255,.08)}.guest-badge.login-badge{background:rgba(6,88,246,.12);color:#8fb1ff;border-color:rgba(6,88,246,.25)}.guest-badge.status-badge.active{background:rgba(41,190,109,.12);color:#55df91;border-color:rgba(41,190,109,.22)}.guest-badge.status-badge.expired,.guest-badge.status-badge.blocked{background:rgba(230,80,80,.12);color:#f08a8a;border-color:rgba(230,80,80,.22)}
.guest-account-actions{display:flex;gap:8px;margin-left:auto}.guest-action-btn{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;border:1px solid rgba(116,145,190,.22);background:rgba(8,22,45,.56);color:#8fa8d2;cursor:pointer;transition:all .16s ease}.guest-action-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.guest-action-btn.view-btn:hover{background:rgba(6,88,246,.22);border-color:rgba(92,132,205,.45);color:#fff}.guest-action-btn.toggle-btn:hover{background:rgba(230,80,80,.22);border-color:rgba(230,80,80,.45);color:#fff}.guest-action-btn.toggle-btn.active:hover{background:rgba(230,80,80,.22);border-color:rgba(230,80,80,.45);color:#ff9e9e}
.guest-details-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:22px 0}.guest-details-grid>div{display:grid;gap:5px;min-width:0;padding:13px 14px;border:1px solid rgba(116,145,190,.2);border-radius:11px;background:rgba(8,22,45,.42)}.guest-details-grid span{font-size:11px;color:#9ba7ba}.guest-details-grid b{font-size:13px;color:#edf3ff;overflow-wrap:anywhere}.guest-details-note{margin-top:0!important;line-height:1.45}@media(max-width:720px){.guest-account-row{grid-template-columns:36px minmax(0,1fr) auto}.guest-account-actions{grid-column:3;grid-row:1;align-self:start}.guest-details-grid{grid-template-columns:1fr}}
/* Final guest form reset: valid non-nested markup, regular input typography, and visible credential actions. */
.guest-account-form .input{font-family:inherit!important;font-size:14px!important;font-weight:400!important;line-height:1.4!important}
.guest-account-form .input::placeholder{font-family:inherit!important;font-size:14px!important;font-weight:400!important;opacity:.72}
.guest-account-form .guest-password-check{display:flex!important;align-items:center!important;align-self:center!important;gap:7px!important;height:20px!important;font-size:12px!important;font-weight:500!important;line-height:20px!important;color:#b9c9e3!important}
.guest-account-form .guest-password-check input[type=checkbox]{appearance:none!important;-webkit-appearance:none!important;display:grid!important;place-content:center!important;width:16px!important;height:16px!important;min-width:16px!important;border:1px solid #7185a4!important;border-radius:4px!important;background:#1b2b43!important;cursor:pointer}
.guest-account-form .guest-password-check input[type=checkbox]::before{content:"";width:8px;height:8px;transform:scale(0);transition:transform .12s ease;border-radius:2px;background:#4e8cff}
.guest-account-form .guest-password-check input[type=checkbox]:checked::before{transform:scale(1)}
.guest-account-form .guest-password-check input[type=checkbox]:checked{border-color:#5d96ff}
.guest-credentials .copy-credential{opacity:0!important;background:transparent!important;color:#9fb8e5!important}
.guest-credentials b:hover .copy-credential,.guest-credentials .copy-credential:focus-visible,.guest-credentials .copy-credential.is-copied{opacity:1!important}

/* RE-APPLYING CORE GUEST STYLES - DO NOT NEST LABELS */
.guest-account-badges{display:flex!important;flex-wrap:wrap!important;gap:6px!important;margin-top:5px!important;padding:0!important}
.guest-badge{display:inline-flex!important;padding:3px 9px!important;border-radius:6px!important;font-size:11px!important;font-weight:600!important;background:rgba(255,255,255,.06)!important;color:#b9c9e3!important;border:1px solid rgba(255,255,255,.08)!important}
.guest-badge.login-badge{background:rgba(6,88,246,.12)!important;color:#8fb1ff!important;border-color:rgba(6,88,246,.25)!important}
.guest-account-actions{display:flex!important;gap:8px!important;margin-left:auto!important}
.guest-action-btn{display:grid!important;place-items:center!important;width:38px!important;height:38px!important;border-radius:10px!important;border:1px solid rgba(116,145,190,.22)!important;background:rgba(8,22,45,.56)!important;color:#8fa8d2!important;cursor:pointer!important;transition:all .16s ease!important}
.guest-action-btn svg{width:18px!important;height:18px!important;fill:none!important;stroke:currentColor!important;stroke-width:2!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.guest-action-btn.view-btn:hover{background:rgba(6,88,246,.22)!important;border-color:rgba(92,132,205,.45)!important;color:#fff!important}
.guest-action-btn.toggle-btn:hover,.guest-action-btn.toggle-btn.active:hover{background:rgba(230,80,80,.22)!important;border-color:rgba(230,80,80,.45)!important;color:#ff9e9e!important}
.guest-action-btn.active{color:#41be6d!important}
.guest-account-form input{font-weight:400!important;font-family:inherit!important}
.guest-account-form input::placeholder{font-weight:400!important;opacity:.6}
.guest-password-check{display:flex!important;align-items:center!important;gap:8px!important;margin:8px 0!important;cursor:pointer!important;color:#b9c9e3!important;font-size:12px!important;font-weight:500!important}
.guest-password-check input{width:16px!important;height:16px!important;margin:0!important;accent-color:#0658f6!important}

.guest-credentials>div{display:grid!important;grid-template-columns:1fr minmax(260px,auto)!important;align-items:center!important}.guest-credentials>div>b{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:9px!important;min-width:260px!important;text-align:right!important}.guest-credentials .credential-value{min-width:190px!important;text-align:right!important}.guest-credentials .copy-credential{order:-1!important;display:grid!important;place-items:center!important;opacity:0!important;margin:0!important}.guest-credentials>div:hover .copy-credential,.guest-credentials .copy-credential:focus-visible,.guest-credentials .copy-credential.is-copied{opacity:1!important}.guest-credentials .copy-credential.is-copied{background:rgba(41,190,109,.16)!important;border-color:rgba(67,214,132,.55)!important;color:#55df91!important}.guest-credentials .copy-credential:not(.is-copied){color:#9fb8e5!important}
@media(max-width:600px){.guest-credentials>div{grid-template-columns:1fr minmax(190px,auto)!important}.guest-credentials>div>b{min-width:190px!important}.guest-credentials .credential-value{min-width:130px!important}}

.guest-action-btn.toggle-btn.is-locked{color:#ef737d!important}.guest-action-btn.toggle-btn.is-locked:hover{background:rgba(230,80,80,.2)!important;border-color:rgba(230,80,80,.5)!important;color:#ff9ba2!important}.guest-action-btn.toggle-btn.is-restorable{color:#9fb0ca!important}.guest-action-btn.toggle-btn.is-restorable:hover{background:rgba(6,88,246,.2)!important;border-color:rgba(92,145,255,.5)!important;color:#9fc0ff!important}
.account-avatar-placeholder{width:42px;height:42px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;color:#9fb8e5}

/* Account avatar content stays optically centered for initials, photos, and guest placeholder. */
.account-avatar{display:flex!important;align-items:center;justify-content:center;line-height:1;overflow:hidden}
.account-avatar-initials{display:block;line-height:1;text-align:center;transform:translateY(-.02em)}
.account-avatar-placeholder{display:block;width:28px;height:28px;flex:0 0 28px}
.account-avatar-image{display:block;width:100%;height:100%;object-fit:cover}

/* Guest avatar uses an explicit light outline, never the browser default black fill. */
.account-avatar-placeholder{display:block;width:42px;height:42px;flex:0 0 42px;fill:none!important;stroke:#b9caff!important;color:#b9caff!important}

/* Guest account deletion is destructive: neutral icon, clear red hover affordance. */
.guest-action-btn.delete-btn{color:#9aaaca}
.guest-action-btn.delete-btn:hover{background:rgba(230,80,80,.2);border-color:rgba(230,80,80,.52);color:#ff9ba2}
.guest-action-btn.delete-btn:focus-visible{outline:2px solid rgba(230,80,80,.7);outline-offset:2px}

/* Guest access avatars use the Teamdeck initials instead of a user-specific letter. */
.guest-account-avatar{display:grid!important;place-items:center!important;background:linear-gradient(145deg,rgba(40,108,246,.72),rgba(112,74,235,.72))!important;color:rgba(235,243,255,.82)!important;font-size:12px!important;font-weight:750!important;letter-spacing:.08em!important;text-indent:.08em;border:1px solid rgba(154,190,255,.28);box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 5px 16px rgba(21,71,180,.16)}
.guest-account-avatar span{display:block;line-height:1;transform:translateY(-.02em)}

/* Guest account actions: each icon has a distinct, restrained translucent hover state. */
.guest-action-btn.view-btn:hover{background:rgba(51,190,125,.2)!important;border-color:rgba(83,214,151,.48)!important;color:#72e0a7!important}
.guest-action-btn.toggle-btn:hover,.guest-action-btn.toggle-btn.is-locked:hover{background:rgba(157,170,193,.2)!important;border-color:rgba(177,191,215,.42)!important;color:#d2dced!important}
.guest-action-btn.toggle-btn.is-restorable:hover{background:rgba(157,170,193,.2)!important;border-color:rgba(177,191,215,.42)!important;color:#d2dced!important}
.guest-action-btn.delete-btn:hover{background:rgba(230,80,80,.22)!important;border-color:rgba(255,120,128,.55)!important;color:#ff9ba2!important}
.guest-confirm-dialog{max-width:560px!important}
.guest-confirm-dialog .danger-kicker{color:#ff9ba2!important}
.guest-confirm-warning{display:flex;align-items:center;gap:12px;margin:22px 0;padding:14px 16px;border:1px solid rgba(230,80,80,.28);border-radius:12px;background:rgba(230,80,80,.1);color:#e9b0b4;font-size:13px;line-height:1.4}
.guest-confirm-warning svg{width:22px;height:22px;flex:0 0 22px;fill:none;stroke:#ff8f98;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.guest-confirm-dialog .guest-confirm-delete{background:rgba(210,61,73,.9)!important;border-color:rgba(255,135,143,.42)!important;color:#fff!important}
.guest-confirm-dialog .guest-confirm-delete:hover{background:rgba(235,73,84,.98)!important;border-color:rgba(255,164,170,.7)!important}

/* Compact deletion warning: avoids inherited SVG rendering rules. */
.guest-confirm-warning-mark{display:inline-grid!important;place-items:center!important;flex:0 0 24px!important;width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;border:1px solid rgba(255,143,152,.54)!important;border-radius:50%!important;background:rgba(230,80,80,.14)!important;color:#ff9ba2!important;font-size:14px!important;font-weight:800!important;line-height:1!important}
.guest-confirm-dialog .modalfoot{margin-top:0!important}

/* Final guest-account action hover states. Keep these rules last so generic button styles cannot override them. */
.guest-account-actions > .guest-action-btn.view-btn:hover,
.guest-account-actions > .guest-action-btn.view-btn:focus-visible{
  background:rgba(51,190,125,.22)!important;
  border-color:rgba(83,214,151,.58)!important;
  color:#72e0a7!important;
}
.guest-account-actions > .guest-action-btn.toggle-btn:hover,
.guest-account-actions > .guest-action-btn.toggle-btn:focus-visible,
.guest-account-actions > .guest-action-btn.toggle-btn.is-locked:hover,
.guest-account-actions > .guest-action-btn.toggle-btn.is-restorable:hover{
  background:rgba(157,170,193,.22)!important;
  border-color:rgba(177,191,215,.5)!important;
  color:#d2dced!important;
}
.guest-account-actions > .guest-action-btn.delete-btn:hover,
.guest-account-actions > .guest-action-btn.delete-btn:focus-visible{
  background:rgba(230,80,80,.24)!important;
  border-color:rgba(255,120,128,.62)!important;
  color:#ff9ba2!important;
}

/* Guest account settings avatar uses the same centered TD mark as access cards. */
.account-avatar .guest-profile-initials{display:grid!important;place-items:center!important;width:100%!important;height:100%!important;line-height:1!important;color:#dce8ff!important;font-size:14px!important;font-weight:800!important;letter-spacing:.06em!important;text-indent:.06em!important}

/* Unified delayed loader for slow auth, hydration, and view transitions. */
.teamdeck-loading-overlay{position:fixed;inset:0;z-index:11900;display:grid;place-items:center;pointer-events:none;opacity:0;visibility:hidden;background:rgba(6,14,28,.46);backdrop-filter:blur(5px);transition:opacity .18s ease,visibility .18s ease}
.teamdeck-loading-overlay.is-visible{opacity:1;visibility:visible;pointer-events:auto}
.teamdeck-loading-card{display:grid;justify-items:center;gap:10px;min-width:230px;padding:22px 26px;border:1px solid rgba(126,157,216,.3);border-radius:16px;background:rgba(19,34,57,.94);box-shadow:0 18px 55px rgba(0,0,0,.28);color:#eef4ff;text-align:center}
.teamdeck-loading-card strong{font-size:14px;font-weight:700}.teamdeck-loading-card small{color:#aebed4;font-size:11px}
.teamdeck-loading-mark{display:flex;align-items:flex-end;justify-content:center;gap:4px;width:30px;height:25px}.teamdeck-loading-mark span{display:block;width:7px;height:10px;border-radius:5px;background:#3f82ff;animation:teamdeck-loading-pulse 900ms ease-in-out infinite}.teamdeck-loading-mark span:nth-child(2){height:17px;animation-delay:120ms}.teamdeck-loading-mark span:nth-child(3){height:13px;animation-delay:240ms}
@keyframes teamdeck-loading-pulse{0%,100%{opacity:.38;transform:scaleY(.72)}50%{opacity:1;transform:scaleY(1)}}
@media(prefers-reduced-motion:reduce){.teamdeck-loading-mark span{animation:none;opacity:.8}}

/* Guest action base colors: lock matches the view control; delete is red before hover. */
.guest-account-actions > .guest-action-btn.toggle-btn,
.guest-account-actions > .guest-action-btn.toggle-btn.is-restorable{color:#8fa8d2!important}
.guest-account-actions > .guest-action-btn.delete-btn{color:#ef737d!important}

/* Light dashboard surfaces: pale blue-gray cards without changing dark mode. */
html:not(.theme-dark) #dashboard .card{background:#e8eef6!important;border-color:#d3deeb!important;box-shadow:0 8px 24px rgba(67,88,116,.10)!important}
html:not(.theme-dark) #dashboard .dashboard-funnel-card{background:#dfe8f2!important;border-color:#cbd8e6!important}
html:not(.theme-dark) #dashboard .dashboard-funnel-card .barrow{background:rgba(125,148,178,.12);border:1px solid rgba(133,156,187,.16)}
html:not(.theme-dark) #dashboard .dashboard-funnel-card .barrow>span{color:#405067}
html:not(.theme-dark) #dashboard .dashboard-funnel-card .barrow>b{color:#18202a}
html:not(.theme-dark) #dashboard .dashboard-funnel-card .bar{background:rgba(127,151,183,.27)!important}
html:not(.theme-dark) #dashboard .action-history-event{background:rgba(255,255,255,.42)!important}
html:not(.theme-dark) #dashboard .action-history-event.is-latest{background:rgba(91,141,246,.14)!important}
html:not(.theme-dark) #dashboard .action-history-copy b{color:#1e2938!important}
html:not(.theme-dark) #dashboard .action-history-copy small,html:not(.theme-dark) #dashboard .action-history-time{color:#66758a!important}
html:not(.theme-dark) #dashboard .upcoming-event{color:#18202a;background:color-mix(in srgb,var(--event-color,#8b7cf6) 13%,#e8eef6)}
html:not(.theme-dark) #dashboard .upcoming-event b{color:#1e2938}
html:not(.theme-dark) #dashboard .upcoming-event small,html:not(.theme-dark) #dashboard .upcoming-event-date{color:#66758a}
html:not(.theme-dark) #dashboard .upcoming-event.checklist-event{background:#dbe5ef!important;color:#1e2938}
html:not(.theme-dark) #dashboard .upcoming-event.checklist-event small{color:#66758a}

/* Light-only modal surfaces and segmented controls. Dark theme keeps its existing appearance. */
html:not(.theme-dark) .modalwrap .modal{background:#fff!important;color:var(--text);border-color:#d3deeb!important;box-shadow:0 24px 70px rgba(67,88,116,.20)!important}
html:not(.theme-dark) .modalwrap .modal .close{background:#eef2f6;color:#334155;border-color:#d3deeb}
html:not(.theme-dark) .modalwrap .action-history-event{background:#eef3f8!important;border-left-color:#94a3b8}
html:not(.theme-dark) .modalwrap .action-history-event.is-latest{background:#e2ecf8!important}
html:not(.theme-dark) .modalwrap .action-history-copy b{color:#1e2938!important}
html:not(.theme-dark) .modalwrap .action-history-copy small,html:not(.theme-dark) .modalwrap .action-history-time{color:#66758a!important}
html:not(.theme-dark) .history-filter,html:not(.theme-dark) .upcoming-filter,html:not(.theme-dark) .history-controls .action-history-toolbar{border-color:#cbd8e6;background:#edf2f7}
html:not(.theme-dark) .history-filter-button,html:not(.theme-dark) .upcoming-filter-button,html:not(.theme-dark) .history-controls .action-history-toolbar .btn{color:#5d6b7d}
html:not(.theme-dark) .history-filter-button:hover,html:not(.theme-dark) .upcoming-filter-button:hover,html:not(.theme-dark) .history-controls .action-history-toolbar .btn:hover{background:#e1e9f2;color:#1e2938}
html:not(.theme-dark) .history-filter-button.active,html:not(.theme-dark) .upcoming-filter-button.active,html:not(.theme-dark) .history-controls .action-history-toolbar .btn.primary{background:rgba(6,88,246,.12);color:#145fe0;box-shadow:inset 0 0 0 1px rgba(6,88,246,.28)}

/* Full light-theme pass: normalize surfaces, controls and fields across every view. */
html:not(.theme-dark){--surface-2:#f8f9fc;--input-bg:#fff}
html:not(.theme-dark) .card,html:not(.theme-dark) .section{background:#fff!important;border-color:#d3deeb!important;box-shadow:0 8px 24px rgba(67,88,116,.08)!important}
html:not(.theme-dark) .input,html:not(.theme-dark) input.input,html:not(.theme-dark) select.input,html:not(.theme-dark) textarea.input{background:#fff!important;color:#18202a!important;border:1px solid #cbd8e6!important;box-shadow:none}
html:not(.theme-dark) .input::placeholder,html:not(.theme-dark) textarea::placeholder{color:#8a96a7}
html:not(.theme-dark) .input:focus,html:not(.theme-dark) input.input:focus,html:not(.theme-dark) select.input:focus,html:not(.theme-dark) textarea.input:focus{border-color:rgba(6,88,246,.62)!important;box-shadow:0 0 0 3px rgba(6,88,246,.13)!important}
html:not(.theme-dark) .tasks-shell,html:not(.theme-dark) .tasks-kpis .kpi{background:#fff!important;border-color:#d3deeb!important}
html:not(.theme-dark) .task-row{background:#f8f9fc!important;border-color:#d3deeb!important;color:#18202a}
html:not(.theme-dark) .task-row:hover{background:#eef4fb!important;border-color:rgba(6,88,246,.35)!important}
html:not(.theme-dark) #onboarding .onboarding-calendar-section,html:not(.theme-dark) #offboarding .offboarding-events-section,html:not(.theme-dark) #onboarding .calendar-grid,html:not(.theme-dark) #offboarding .calendar-grid{background:#f8f9fc!important}
html:not(.theme-dark) .user-picker-popover{background:#fff!important;border-color:#cbd8e6!important;box-shadow:0 18px 42px rgba(67,88,116,.20)!important}
html:not(.theme-dark) .user-picker-search{background:#fff!important;color:#18202a!important;border-color:#cbd8e6!important}
html:not(.theme-dark) .user-picker-department{border-color:#d3deeb;background:#f8f9fc;color:#66758a}
html:not(.theme-dark) .user-picker-department:hover,html:not(.theme-dark) .user-picker-department.active{background:rgba(6,88,246,.10);color:#145fe0}
html:not(.theme-dark) .user-picker-option:hover,html:not(.theme-dark) .user-picker-option.keyboard-active{background:rgba(6,88,246,.08);border-color:rgba(6,88,246,.30)}
html:not(.theme-dark) .calendar-event-form .calendar-event-picker .user-picker-trigger,html:not(.theme-dark) .calendar-event-form .calendar-event-color-field .calendar-color-input{background:#fff!important;color:#18202a!important;border-color:#cbd8e6!important}
/* Preserve the requested pale blue-gray dashboard surfaces over the global light cards. */
html:not(.theme-dark) #dashboard .card{background:#e8eef6!important;border-color:#d3deeb!important;box-shadow:0 8px 24px rgba(67,88,116,.10)!important}
html:not(.theme-dark) #dashboard .dashboard-funnel-card{background:#dfe8f2!important;border-color:#cbd8e6!important}

/* Light theme: vacancy/candidate modal controls and custom platform selects. */
html:not(.theme-dark) .modal .input,html:not(.theme-dark) .modal input.input,html:not(.theme-dark) .modal select.input,html:not(.theme-dark) .modal textarea.input{background:#fff!important;color:#18202a!important;border:1px solid #cbd8e6!important;box-shadow:none}
html:not(.theme-dark) .modal .input:focus,html:not(.theme-dark) .modal input.input:focus,html:not(.theme-dark) .modal select.input:focus,html:not(.theme-dark) .modal textarea.input:focus{border-color:rgba(6,88,246,.62)!important;box-shadow:0 0 0 3px rgba(6,88,246,.13)!important}
html:not(.theme-dark) .modal .platform-select-trigger{background:#fff!important;color:#18202a!important;border:1px solid #cbd8e6!important;box-shadow:none}
html:not(.theme-dark) .modal .platform-select-trigger:hover,html:not(.theme-dark) .modal .platform-select.open .platform-select-trigger{background:#f8f9fc!important;color:#18202a!important;border-color:rgba(6,88,246,.62)!important}
html:not(.theme-dark) .modal .platform-select-menu{background:#fff!important;border:1px solid #cbd8e6!important;box-shadow:0 18px 45px rgba(67,88,116,.20)!important}
html:not(.theme-dark) .modal .platform-select-option{background:transparent!important;color:#18202a!important}
html:not(.theme-dark) .modal .platform-select-option:hover{background:rgba(6,88,246,.08)!important;color:#145fe0!important}
html:not(.theme-dark) .modal .platform-select-option.selected{background:rgba(6,88,246,.12)!important;color:#145fe0!important}
html:not(.theme-dark) .modal .platform-select-check{color:#145fe0!important}
html:not(.theme-dark) .modal .platform-select[data-select-id="vdept"] .platform-select-trigger,html:not(.theme-dark) .modal .platform-select[data-select-id="vlevel"] .platform-select-trigger{height:44px;border-color:#cbd8e6!important;background:#fff!important;color:#18202a!important}
html:not(.theme-dark) .modal .vacancy-detail-field{background:#fff!important;color:#18202a!important;border-color:#cbd8e6!important}
html:not(.theme-dark) .modal .resume-upload-card,html:not(.theme-dark) .modal .candidate-resume-upload{background:#f8f9fc!important;border-color:#d3deeb!important}

/* Light theme: separate vacancy platforms and candidate resume cards from the modal canvas. */
html:not(.theme-dark) .modal .platform-list{padding:14px!important;background:#f7faff!important;border:1px solid #cbd8e6!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 4px 14px rgba(67,88,116,.06)!important}
html:not(.theme-dark) .modal .platform-check{background:#fff!important;border:1px solid #e1e8f0!important;color:#24344a!important;min-height:42px;padding:8px 10px!important;transition:background .16s ease,border-color .16s ease,box-shadow .16s ease}
html:not(.theme-dark) .modal .platform-check:hover{background:#f0f6ff!important;border-color:#b9cde4!important;box-shadow:0 2px 8px rgba(67,88,116,.08)!important}
html:not(.theme-dark) .modal .candidate-resume-upload-card{background:#f7faff!important;border:1px solid #cbd8e6!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 4px 14px rgba(67,88,116,.06)!important}
html:not(.theme-dark) .modal .resume-format-badge{background:#fff!important;border-color:#d3deeb!important;color:#65758a!important}
html:not(.theme-dark) .modal .resume-file-button{background:#eef3f8!important;border:1px solid #c2d1e1!important;color:#2f4157!important;box-shadow:0 2px 6px rgba(67,88,116,.08)!important}
html:not(.theme-dark) .modal .resume-file-button:hover{background:#e2ebf4!important;border-color:#aebfd3!important;color:#1d3149!important}
html:not(.theme-dark) .modal .resume-file-button-icon{color:#536f8c!important}
html:not(.theme-dark) .modal .resume-file-icon{background:#e6eef7!important;color:#507092!important}
html:not(.theme-dark) .modal .candidate-resume-upload-card .ai-resume-status{padding:11px 12px!important;border:1px solid #d7e3f0!important;border-top:1px solid #d7e3f0!important;border-radius:10px;background:#edf5fc!important;color:#465d74!important}
html:not(.theme-dark) .modal .candidate-resume-upload-card .ai-resume-status-dot{background:#dceaf7!important;color:#41698f!important}

/* Light theme: make vacancy response actions visually prominent without changing dark mode. */
html:not(.theme-dark) .dashboard-candidate-button{background:#e8f1ff!important;border:1px solid #a9c7eb!important;color:#145fe0!important;font-weight:650!important;box-shadow:0 2px 7px rgba(6,88,246,.10)!important;transition:background .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease}
html:not(.theme-dark) .dashboard-candidate-button:hover{background:#d8e8ff!important;border-color:#7faee5!important;color:#0b4fc5!important;box-shadow:0 4px 12px rgba(6,88,246,.16)!important;transform:translateY(-1px)}
html:not(.theme-dark) .dashboard-candidate-button:active{transform:scale(.97)}

/* Light theme: reserve a non-shrinking slot for the AI mark in the resume hint. */
html:not(.theme-dark) .modal .candidate-resume-upload-card .ai-resume-status{min-width:0!important;display:flex!important;align-items:center!important;gap:8px!important}
html:not(.theme-dark) .modal .candidate-resume-upload-card .ai-resume-status::before{content:none!important;display:none!important;animation:none!important}
html:not(.theme-dark) .modal .candidate-resume-upload-card .ai-resume-status{overflow-wrap:anywhere!important}

/* Light theme: brighter candidate stage badges and readable filter controls. */
html:not(.theme-dark) .badge.stage-replies{background:#dcecff!important;border:1px solid #b8d2f3!important;color:#145fe0!important;font-weight:650!important}
html:not(.theme-dark) .badge.stage-screening{background:#d8f5eb!important;border:1px solid #b2e5d1!important;color:#087d60!important;font-weight:650!important}
html:not(.theme-dark) .badge.stage-interview{background:#fff0cf!important;border:1px solid #f0d796!important;color:#a56800!important;font-weight:650!important}
html:not(.theme-dark) .badge.stage-offer{background:#eee4ff!important;border:1px solid #d5c0f4!important;color:#7040bd!important;font-weight:650!important}
html:not(.theme-dark) .badge.stage-hired{background:#d8f4e3!important;border:1px solid #b0e4c5!important;color:#16834f!important;font-weight:650!important}
html:not(.theme-dark) .badge.stage-default{background:#edf0f4!important;border:1px solid #d4dce6!important;color:#536274!important;font-weight:650!important}
html:not(.theme-dark) .platform-select-trigger{background:#fff!important;color:#24344a!important;border:1px solid #c5d3e2!important;box-shadow:0 2px 6px rgba(67,88,116,.06)!important}
html:not(.theme-dark) .platform-select-trigger:hover,html:not(.theme-dark) .platform-select.open .platform-select-trigger{background:#f5f9ff!important;color:#145fe0!important;border-color:#8eb5e3!important;box-shadow:0 3px 9px rgba(6,88,246,.10)!important}
html:not(.theme-dark) .platform-select-menu{background:#fff!important;border:1px solid #c5d3e2!important;box-shadow:0 18px 45px rgba(67,88,116,.20)!important}
html:not(.theme-dark) .platform-select-option{background:transparent!important;color:#24344a!important}
html:not(.theme-dark) .platform-select-option:hover{background:#eef5ff!important;color:#145fe0!important}
html:not(.theme-dark) .platform-select-option.selected{background:#dcecff!important;color:#145fe0!important}
html:not(.theme-dark) .platform-select-check{color:#145fe0!important}

/* Light theme: restrained response button — tone change only, no lift or bold weight. */
html:not(.theme-dark) .dashboard-candidate-button{background:rgba(6,88,246,.12)!important;border:1px solid rgba(6,88,246,.28)!important;color:#145fe0!important;font-weight:400!important;box-shadow:none!important;transform:none!important;transition:background .16s ease,border-color .16s ease,color .16s ease!important}
html:not(.theme-dark) .dashboard-candidate-button:hover{background:rgba(6,88,246,.20)!important;border-color:rgba(6,88,246,.40)!important;color:#0b4fc5!important;box-shadow:none!important;transform:none!important}
html:not(.theme-dark) .dashboard-candidate-button:active{transform:none!important}

/* Light theme: restore the original animated AI mark; only the text offset is adjusted. */
html:not(.theme-dark) .modal .candidate-resume-upload-card .ai-resume-status{position:relative!important;display:block!important;min-width:0!important;padding:11px 12px 11px 38px!important;overflow-wrap:normal!important}
html:not(.theme-dark) .modal .candidate-resume-upload-card .ai-resume-status::before{content:none!important;display:none!important;animation:none!important;box-shadow:none!important}

/* Light theme: stage badge labels use regular weight while retaining their color accents. */
html:not(.theme-dark) .badge.stage-replies,html:not(.theme-dark) .badge.stage-screening,html:not(.theme-dark) .badge.stage-interview,html:not(.theme-dark) .badge.stage-offer,html:not(.theme-dark) .badge.stage-hired,html:not(.theme-dark) .badge.stage-default{font-weight:400!important}

/* Light theme: brighter candidate profile accents and a neutral meeting identity panel. */
html:not(.theme-dark) .modal:has(.profile) .candidate-profile-head-actions .candidate-resume-header-button{background:rgba(38,166,112,.22)!important;border:1px solid rgba(38,166,112,.42)!important;color:#16834f!important;box-shadow:none!important}
html:not(.theme-dark) .modal:has(.profile) .candidate-profile-head-actions .candidate-resume-header-button:hover{background:rgba(38,166,112,.30)!important;border-color:rgba(38,166,112,.55)!important;color:#0f7044!important}
html:not(.theme-dark) .modal:has(.profile) .candidate-meeting-chip{background:#dcecff!important;border-color:#a9c7eb!important;color:#145fe0!important}
html:not(.theme-dark) .modal:has(.profile) .candidate-meeting-chip:hover{background:#cfe3ff!important;border-color:#7faee5!important;color:#0b4fc5!important}
html:not(.theme-dark) .modal:has(.profile) .candidate-meeting-chip-icon{background:#c4dcfa!important;color:#145fe0!important}
html:not(.theme-dark) .modal:has(.profile) .candidate-ai-inline{color:#3976dd!important}
html:not(.theme-dark) .modal:has(.profile) .candidate-ai-inline i{background:#1769f5!important;color:#fff!important;box-shadow:0 3px 9px rgba(6,88,246,.22)!important}
html:not(.theme-dark) .modal:has(.profile) .candidate-main-info .section-kicker{color:#3976dd!important}
html:not(.theme-dark) .modal:has(.profile) .candidate-main-info-grid>div{background:#f3f6fa!important;border:1px solid #e1e8f0!important}
html:not(.theme-dark) .modal:has(.candidate-meeting-form) .candidate-meeting-person{background:#eef3f8!important;border:1px solid #cbd8e6!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 4px 12px rgba(67,88,116,.08)!important;color:#24344a!important}
html:not(.theme-dark) .modal:has(.candidate-meeting-form) .candidate-meeting-identity b{color:#18202a!important}
html:not(.theme-dark) .modal:has(.candidate-meeting-form) .candidate-meeting-stage{border-left-color:#d2deeb!important}
html:not(.theme-dark) .modal:has(.candidate-meeting-form) .candidate-meeting-stage span{color:#65758a!important}
html:not(.theme-dark) .modal:has(.candidate-meeting-form) .candidate-meeting-stage strong{background:#d8f5eb!important;border-color:#b2e5d1!important;color:#087d60!important}

/* Light theme: keep meeting delete controls readable against their hover background. */
html:not(.theme-dark) .meeting-delete-button,html:not(.theme-dark) .candidate-scheduled-actions .candidate-scheduled-delete,html:not(.theme-dark) .candidate-meeting-chip-delete{background:#fff1f3!important;border-color:#e8a0ad!important;color:#b4233d!important}
html:not(.theme-dark) .meeting-delete-button:hover,html:not(.theme-dark) .candidate-scheduled-actions .candidate-scheduled-delete:hover,html:not(.theme-dark) .candidate-meeting-chip-delete:hover{background:#ffe4e8!important;border-color:#d97889!important;color:#9f1d35!important}

/* Light theme: employee profile edit control matches the light close button. */
html:not(.theme-dark) .employee-profile-modal-head .employee-profile-edit-icon{background:#f1f4f8!important;border:1px solid #d6e0ea!important;color:#24344a!important;box-shadow:none!important;transform:none!important}
html:not(.theme-dark) .employee-profile-modal-head .employee-profile-edit-icon:hover{background:#e7eef6!important;border-color:#b8c9da!important;color:#145fe0!important;box-shadow:none!important;transform:none!important}

/* Light theme: employee profile tools share one visual state before and on hover. */
html:not(.theme-dark) .employee-profile-modal-head .employee-profile-edit-icon,html:not(.theme-dark) .employee-profile-modal-head .close{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;box-sizing:border-box!important;border:1px solid #d6e0ea!important;border-radius:10px!important;background:#f1f4f8!important;color:#24344a!important;box-shadow:none!important;transform:none!important;opacity:1!important}
html:not(.theme-dark) .employee-profile-modal-head .employee-profile-edit-icon:hover,html:not(.theme-dark) .employee-profile-modal-head .close:hover{background:#e7eef6!important;border-color:#b8c9da!important;color:#145fe0!important;box-shadow:none!important;transform:none!important;opacity:1!important}

/* Light theme: onboarding picker uses light surfaces, readable text and visible controls. */
html:not(.theme-dark) .modal:has(.offboarding-picker-toolbar) .offboarding-picker-toolbar,html:not(.theme-dark) .modal:has(.offboarding-picker-toolbar) .offboarding-departments,html:not(.theme-dark) .modal:has(.offboarding-picker-toolbar) .offboarding-picker-list{border:1px solid #d5e0eb!important;border-radius:14px!important;background:#f3f7fb!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 3px 10px rgba(67,88,116,.05)!important}
html:not(.theme-dark) .modal:has(.offboarding-picker-toolbar) .offboarding-picker-toolbar{padding:11px 12px!important}
html:not(.theme-dark) .modal:has(.offboarding-picker-toolbar) .offboarding-picker-toolbar .input{background:#fff!important;border:1px solid #c5d3e2!important;color:#24344a!important;box-shadow:none!important}
html:not(.theme-dark) .modal:has(.offboarding-picker-toolbar) .offboarding-picker-toolbar .input::placeholder{color:#8997a8!important}
html:not(.theme-dark) .modal:has(.offboarding-picker-toolbar) .offboarding-departments{padding:10px!important}
html:not(.theme-dark) .modal:has(.offboarding-picker-toolbar) .offboarding-department-chip{background:#fff!important;border:1px solid #cbd8e6!important;color:#536579!important}
html:not(.theme-dark) .modal:has(.offboarding-picker-toolbar) .offboarding-department-chip:hover,html:not(.theme-dark) .modal:has(.offboarding-picker-toolbar) .offboarding-department-chip.active{background:#e5f0ff!important;border-color:#8eb5e3!important;color:#145fe0!important}
html:not(.theme-dark) .modal:has(.offboarding-picker-toolbar) .offboarding-picker-list{padding:10px!important}
html:not(.theme-dark) .modal:has(.offboarding-picker-toolbar) .offboarding-picker-card{background:#fff!important;border:1px solid #cbd8e6!important;color:#24344a!important;box-shadow:0 2px 6px rgba(67,88,116,.04)!important}
html:not(.theme-dark) .modal:has(.offboarding-picker-toolbar) .offboarding-picker-card:hover,html:not(.theme-dark) .modal:has(.offboarding-picker-toolbar) .offboarding-picker-card.selected{background:#edf5ff!important;border-color:#8eb5e3!important;color:#145fe0!important}
html:not(.theme-dark) .modal:has(.offboarding-picker-toolbar) .offboarding-picker-card small{color:#65758a!important}
html:not(.theme-dark) .modal:has(.offboarding-picker-toolbar) .offboarding-picker-check{color:#145fe0!important}
html:not(.theme-dark) .modal:has(.offboarding-picker-toolbar) .offboarding-date-fields .input{background:#fff!important;border:1px solid #c5d3e2!important;color:#24344a!important}
html:not(.theme-dark) .modal:has(.offboarding-picker-toolbar) textarea.input{background:#fff!important;border:1px solid #c5d3e2!important;color:#24344a!important}

/* Light theme: employee profile actions mirror the 34px offboarding checklist controls. */
html:not(.theme-dark) .employee-profile-modal-head .employee-profile-edit-icon,html:not(.theme-dark) .employee-profile-modal-head .close{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;padding:0!important;border:0!important;border-radius:8px!important;background:#f2f3f6!important;color:#24344a!important;box-shadow:none!important;transform:none!important;opacity:1!important}
html:not(.theme-dark) .employee-profile-modal-head .employee-profile-edit-icon:hover,html:not(.theme-dark) .employee-profile-modal-head .close:hover{background:#f2f3f6!important;border:0!important;color:#24344a!important;box-shadow:none!important;transform:none!important;opacity:.68!important}

/* Light theme: percentage values in analytics use regular weight. */
html:not(.theme-dark) .analytics-table td strong{font-weight:400!important}
html:not(.theme-dark) .analytics-table .conversion,html:not(.theme-dark) .analytics-table .conversion-rate{font-weight:400!important}

/* Light theme: add hierarchy and contrast to the integration catalog modal. */
html:not(.theme-dark) .modal:has(.integration-catalog){background:#fbfcfe!important;border:1px solid #d4e0ec!important;box-shadow:0 24px 80px rgba(44,67,98,.22)!important}
html:not(.theme-dark) .modal:has(.integration-catalog) .modalhead{padding-bottom:14px!important;border-bottom:1px solid #e1e8f0!important}
html:not(.theme-dark) .modal:has(.integration-catalog) .integration-categories{padding:10px!important;border:1px solid #dbe5ef!important;border-radius:14px!important;background:#f3f7fb!important}
html:not(.theme-dark) .modal:has(.integration-catalog) .integration-category{color:#647489!important}
html:not(.theme-dark) .modal:has(.integration-catalog) .integration-category:hover{background:#eaf2fb!important;color:#24344a!important}
html:not(.theme-dark) .modal:has(.integration-catalog) .integration-category.active{background:#dcecff!important;border-color:#a9c7eb!important;color:#145fe0!important;box-shadow:0 2px 7px rgba(6,88,246,.08)!important}
html:not(.theme-dark) .modal:has(.integration-catalog) .catalog-card{background:#fff!important;border:1px solid #d2deea!important;box-shadow:0 3px 10px rgba(67,88,116,.05)!important;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease!important}
html:not(.theme-dark) .modal:has(.integration-catalog) .catalog-card:hover{border-color:#a9c7eb!important;box-shadow:0 10px 24px rgba(67,88,116,.12)!important;transform:translateY(-1px)!important}
html:not(.theme-dark) .modal:has(.integration-catalog) .catalog-card-logo{background:#eef4fa!important;border:1px solid #e0e8f1!important}
html:not(.theme-dark) .modal:has(.integration-catalog) .catalog-card-footer{border-top-color:#e1e8f0!important}
html:not(.theme-dark) .modal:has(.integration-catalog) .catalog-connected{color:#16834f!important}
html:not(.theme-dark) .modal:has(.integration-catalog) .catalog-available{color:#65758a!important}
html:not(.theme-dark) .modal:has(.integration-catalog) .catalog-disconnect{background:#fff1f3!important;border-color:#e8a0ad!important;color:#b4233d!important}
html:not(.theme-dark) .modal:has(.integration-catalog) .catalog-disconnect:hover{background:#ffe4e8!important;border-color:#d97889!important;color:#9f1d35!important}

/* Light theme: task subtasks field and controls. */
html:not(.theme-dark) .modal .task-subtasks-field{background:#f3f7fb!important;border:1px solid #d5e0eb!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 4px 14px rgba(67,88,116,.06)!important}
html:not(.theme-dark) .modal .task-subtasks-head{border-bottom-color:#dbe5ef!important}
html:not(.theme-dark) .modal .task-subtasks-head label{color:#24344a!important}
html:not(.theme-dark) .modal .task-subtasks-head .mini{color:#65758a!important}
html:not(.theme-dark) .modal .task-subtask-count{background:#dcecff!important;border:1px solid #b8d2f3!important;color:#145fe0!important;font-weight:400!important}
html:not(.theme-dark) .modal .task-subtask{background:#fff!important;border:1px solid #d2deea!important;color:#24344a!important;box-shadow:0 2px 6px rgba(67,88,116,.04)!important}
html:not(.theme-dark) .modal .task-subtask:hover{border-color:#a9c7eb!important;background:#f8fbff!important}
html:not(.theme-dark) .modal .task-subtask.is-done{background:#f0faf5!important;border-color:#bfe5d0!important}
html:not(.theme-dark) .modal .task-subtask button{color:#65758a!important}
html:not(.theme-dark) .modal .task-subtask button:hover{color:#b4233d!important}
html:not(.theme-dark) .modal .task-subtask-add .input{background:#fff!important;border:1px solid #c5d3e2!important;color:#24344a!important}
html:not(.theme-dark) .modal .task-subtask-add .input::placeholder{color:#8997a8!important}
html:not(.theme-dark) .modal .task-subtask-add-button{background:rgba(6,88,246,.16)!important;border:1px solid #8eb5e3!important;color:#145fe0!important;box-shadow:none!important;transform:none!important}
html:not(.theme-dark) .modal .task-subtask-add-button:hover{background:rgba(6,88,246,.24)!important;border-color:#5f96d5!important;color:#0b4fc5!important;transform:none!important;box-shadow:none!important}

/* Light theme: make the plan card a clear, premium upgrade surface. */
html:not(.theme-dark) .plan-card{position:relative;overflow:hidden;background:linear-gradient(135deg,#f4f7ff 0%,#edf5ff 56%,#f7f3ff 100%)!important;border:1px solid #b9cfee!important;box-shadow:0 10px 28px rgba(61,91,145,.12)!important}
html:not(.theme-dark) .plan-card::before{content:'';position:absolute;top:-90px;right:-55px;width:210px;height:210px;border-radius:50%;background:radial-gradient(circle,rgba(118,109,255,.25),rgba(118,109,255,0) 68%);pointer-events:none}
html:not(.theme-dark) .plan-card:hover{border-color:#7ea7e3!important;box-shadow:0 16px 34px rgba(61,91,145,.18)!important}
html:not(.theme-dark) .plan-card .settings-card-title,html:not(.theme-dark) .plan-card .mini,html:not(.theme-dark) .plan-card .plan-price,html:not(.theme-dark) .plan-card .plan-details{position:relative;z-index:1}
html:not(.theme-dark) .plan-card .settings-card-title{margin-bottom:16px!important}
html:not(.theme-dark) .plan-card .settings-card-title .badge{background:#e8e5ff!important;border:1px solid #c6bfff!important;color:#5d50c7!important}
html:not(.theme-dark) .plan-card .plan-price{font-size:34px!important;letter-spacing:-.03em!important;color:#145fe0!important;margin:11px 0 8px!important}
html:not(.theme-dark) .plan-card .plan-details{gap:12px!important;margin-top:22px!important}
html:not(.theme-dark) .plan-card .plan-detail{background:rgba(255,255,255,.76)!important;border:1px solid rgba(174,198,228,.8)!important;box-shadow:0 3px 9px rgba(67,88,116,.05)!important}
html:not(.theme-dark) .plan-card .plan-detail b{color:#24344a!important;font-size:17px!important}
html:not(.theme-dark) .plan-card .plan-detail span{color:#65758a!important}
html:not(.theme-dark) .plan-card::after{content:'Нажмите, чтобы выбрать тариф и период оплаты  →';display:block;position:relative;z-index:1;margin-top:18px;color:#145fe0;font-size:11px;font-weight:650;letter-spacing:.01em}

/* Light theme: storage finder with distinct navigation, toolbar and file surfaces. */
html:not(.theme-dark) .finder-modal{background:#fbfcfe!important;border:1px solid #d4e0ec!important;box-shadow:0 24px 80px rgba(44,67,98,.22)!important}
html:not(.theme-dark) .finder-modal .finder-toolbar{background:#f1f6fb!important;border:1px solid #cbd9e8!important}
html:not(.theme-dark) .finder-modal .finder-nav{background:#e4edf7!important;color:#24344a!important}
html:not(.theme-dark) .finder-modal .finder-path{color:#24344a!important}
html:not(.theme-dark) .finder-modal .finder-search{background:#e4edf7!important;color:#24344a!important}
html:not(.theme-dark) .finder-modal .finder-sidebar{background:#f1f6fb!important;border:1px solid #d2dfeb!important;color:#65758a!important}
html:not(.theme-dark) .finder-modal .finder-sidebar b{color:#42556c!important}
html:not(.theme-dark) .finder-modal .finder-sidebar span:hover{background:#e1edf9!important;color:#145fe0!important}
html:not(.theme-dark) .finder-modal .finder-files{background:#f1f6fb!important;border:1px solid #d2dfeb!important}
html:not(.theme-dark) .finder-modal .finder-file-card{background:#fff!important;border:1px solid #cfdde9!important;box-shadow:0 3px 9px rgba(67,88,116,.05)!important}
html:not(.theme-dark) .finder-modal .finder-file-card:hover{border-color:#8eb5e3!important;box-shadow:0 9px 20px rgba(67,88,116,.12)!important}
html:not(.theme-dark) .finder-modal .finder-file-card b{color:#24344a!important}
html:not(.theme-dark) .finder-modal .finder-file-card small,html:not(.theme-dark) .finder-modal .finder-summary{color:#65758a!important}

/* Light theme: knowledge base cards, FAQ and article surfaces. */
html:not(.theme-dark) #knowledge-base .knowledge-article-card,html:not(.theme-dark) #knowledge-base .knowledge-faq-card{background:#fff!important;border:1px solid #d2deea!important;box-shadow:0 4px 12px rgba(67,88,116,.06)!important}
html:not(.theme-dark) #knowledge-base .knowledge-article-card:hover{background:#f8fbff!important;border-color:#9ebfe8!important;box-shadow:0 10px 22px rgba(67,88,116,.12)!important}
html:not(.theme-dark) #knowledge-base .knowledge-article-open{color:#24344a!important}
html:not(.theme-dark) #knowledge-base .knowledge-article-copy b,html:not(.theme-dark) #knowledge-base .knowledge-faq-card b{color:#24344a!important}
html:not(.theme-dark) #knowledge-base .knowledge-article-copy small,html:not(.theme-dark) #knowledge-base .knowledge-faq-card small{color:#65758a!important}
html:not(.theme-dark) #knowledge-base .knowledge-article-copy em{color:#145fe0!important;font-style:normal}
html:not(.theme-dark) #knowledge-base .knowledge-article-icon,html:not(.theme-dark) #knowledge-base .knowledge-faq-icon{background:#e3efff!important;border:1px solid #b9d2f1!important;color:#145fe0!important}
html:not(.theme-dark) #knowledge-base .knowledge-faq-card>button:hover{background:#f0f6ff!important}
html:not(.theme-dark) #knowledge-base .knowledge-faq-arrow{color:#145fe0!important}
html:not(.theme-dark) #knowledge-base .knowledge-favorite-button{background:#f1f5f9!important;border-color:#cbd8e6!important;color:#65758a!important}
html:not(.theme-dark) #knowledge-base .knowledge-favorite-button:hover{background:#e6f0ff!important;border-color:#8eb5e3!important;color:#145fe0!important}
html:not(.theme-dark) #knowledge-base .knowledge-favorite-button.is-favorite{background:#fff5cf!important;border-color:#e1bd54!important;color:#d49a00!important;text-shadow:none!important}
html:not(.theme-dark) #knowledge-base .knowledge-read-mark{background:#e5f7ef!important;border-color:#a9dfc2!important;color:#16834f!important}
html:not(.theme-dark) .knowledge-categories .knowledge-category{background:#fff!important;border-color:#d2deea!important;color:#65758a!important}
html:not(.theme-dark) .knowledge-categories .knowledge-category:hover{background:#eef5ff!important;border-color:#a9c7eb!important;color:#145fe0!important}
html:not(.theme-dark) .knowledge-categories .knowledge-category.active{background:#dcecff!important;border-color:#9ebfe8!important;color:#145fe0!important;box-shadow:0 2px 7px rgba(6,88,246,.08)!important}
html:not(.theme-dark) .knowledge-search kbd{background:#eeeaff!important;border-color:#c9bdff!important;color:#6355c7!important;box-shadow:none!important}
html:not(.theme-dark) .knowledge-search-highlight{background:#fff0a8!important;color:#4d3d00!important;box-shadow:0 0 0 1px #e4c84d!important}

/* Light theme: readable article and FAQ modals. */
html:not(.theme-dark) #modal:has(.knowledge-article-modal) .modal,html:not(.theme-dark) #modal:has(.knowledge-faq-answer) .modal{background:#fbfcfe!important;border:1px solid #d4e0ec!important;color:#24344a!important;box-shadow:0 24px 80px rgba(44,67,98,.22)!important}
html:not(.theme-dark) #modal:has(.knowledge-article-modal) .knowledge-detail-block{background:#f1f6fb!important;border:1px solid #d2dfeb!important;box-shadow:none!important}
html:not(.theme-dark) #modal:has(.knowledge-article-modal) .knowledge-detail-block>b,html:not(.theme-dark) #modal:has(.knowledge-article-modal) .knowledge-detail-block>span,html:not(.theme-dark) #modal:has(.knowledge-article-modal) .knowledge-detail-block li{color:#24344a!important}
html:not(.theme-dark) #modal:has(.knowledge-article-modal) .knowledge-modal-tip{background:#e4efff!important;border-left-color:#6d9fe8!important;color:#24344a!important;box-shadow:none!important}
html:not(.theme-dark) #modal:has(.knowledge-article-modal) .knowledge-modal-icon{background:#e3efff!important;border-color:#b9d2f1!important;color:#145fe0!important}
html:not(.theme-dark) #modal:has(.knowledge-faq-answer) .knowledge-faq-answer{background:linear-gradient(135deg,#eef5ff,#f4f0ff)!important;border-color:#b9cfee!important;box-shadow:0 10px 25px rgba(67,88,116,.1)!important}
html:not(.theme-dark) #modal:has(.knowledge-faq-answer) .knowledge-faq-answer p{color:#24344a!important}
html:not(.theme-dark) #modal:has(.knowledge-faq-answer) .knowledge-faq-answer-icon{background:#e3efff!important;border-color:#b9d2f1!important;color:#145fe0!important;box-shadow:none!important}

/* Light theme: Spotlight search and result rows. */
html:not(.theme-dark) #modal:has(.knowledge-spotlight-shell){background:rgba(27,42,62,.62)!important}
html:not(.theme-dark) #modal:has(.knowledge-spotlight-shell) .modal{background:#fbfcfe!important;border:1px solid #d4e0ec!important;box-shadow:0 24px 80px rgba(44,67,98,.22)!important}
html:not(.theme-dark) .knowledge-spotlight-head{background:#f1f6fb!important;border-color:#a9c7eb!important;box-shadow:0 0 0 4px rgba(6,88,246,.07)!important}
html:not(.theme-dark) .knowledge-spotlight-symbol,html:not(.theme-dark) .knowledge-spotlight-result-icon{background:#e3efff!important;color:#145fe0!important}
html:not(.theme-dark) .knowledge-spotlight-head input{color:#24344a!important}
html:not(.theme-dark) .knowledge-spotlight-head input::placeholder{color:#8997a8!important}
html:not(.theme-dark) .knowledge-spotlight-head kbd{background:#fff!important;border-color:#cbd8e6!important;color:#65758a!important}
html:not(.theme-dark) .knowledge-spotlight-result{background:#f1f6fb!important;border-color:#dbe5ef!important;color:#24344a!important}
html:not(.theme-dark) .knowledge-spotlight-result:hover,html:not(.theme-dark) .knowledge-spotlight-result:focus-visible{background:#e6f0ff!important;border-color:#8eb5e3!important}
html:not(.theme-dark) .knowledge-spotlight-result small,html:not(.theme-dark) .knowledge-spotlight-caption,html:not(.theme-dark) .knowledge-spotlight-empty{color:#65758a!important}
html:not(.theme-dark) .knowledge-spotlight-result-arrow{color:#145fe0!important}

/* Light theme: featured Team Pro option keeps emphasis without the dark surface. */
html:not(.theme-dark) .plan-modal-shell .plan-option.featured{background:linear-gradient(145deg,#edf4ff 0%,#f1efff 100%)!important;border:2px solid #6f9fea!important;color:#24344a!important;box-shadow:0 14px 32px rgba(6,88,246,.14)!important}
html:not(.theme-dark) .plan-modal-shell .plan-option.featured h3,html:not(.theme-dark) .plan-modal-shell .plan-option.featured .plan-option-description,html:not(.theme-dark) .plan-modal-shell .plan-option.featured ul{color:#24344a!important}
html:not(.theme-dark) .plan-modal-shell .plan-option.featured .plan-option-price{color:#145fe0!important}
html:not(.theme-dark) .plan-modal-shell .plan-option.featured .plan-option-price small{color:#65758a!important}
html:not(.theme-dark) .plan-modal-shell .plan-option.featured .plan-option-description,html:not(.theme-dark) .plan-modal-shell .plan-option.featured ul{color:#536579!important}
html:not(.theme-dark) .plan-modal-shell .plan-option.featured li::before{color:#168b61!important}
html:not(.theme-dark) .plan-modal-shell .plan-option.featured .badge{background:#e8e5ff!important;border:1px solid #c6bfff!important;color:#5d50c7!important}
html:not(.theme-dark) .plan-modal-shell .plan-option.featured .plan-trial{background:#e5f7ef!important;color:#16834f!important}

/* Light theme: favorite action and knowledge search bar. */
html:not(.theme-dark) #modal:has(.knowledge-article-modal) .knowledge-modal-actions .knowledge-favorite-action.primary{background:rgba(245,200,61,.28)!important;border-color:rgba(223,174,22,.72)!important;color:#735900!important;box-shadow:0 5px 14px rgba(224,174,22,.12)!important}
html:not(.theme-dark) #modal:has(.knowledge-article-modal) .knowledge-modal-actions .knowledge-favorite-action.primary:hover{background:rgba(248,212,95,.42)!important;border-color:rgba(201,155,8,.86)!important;color:#5c4700!important;transform:translateY(-1px)!important}
html:not(.theme-dark) #knowledge-base .knowledge-search{background:#f1f6fb!important;border:1px solid #a9c7eb!important;box-shadow:0 4px 12px rgba(67,88,116,.08),inset 0 1px rgba(255,255,255,.95)!important}
html:not(.theme-dark) #knowledge-base .knowledge-search>span{color:#145fe0!important}
html:not(.theme-dark) #knowledge-base .knowledge-search input{color:#24344a!important;background:transparent!important}
html:not(.theme-dark) #knowledge-base .knowledge-search input::placeholder{color:#8997a8!important}
html:not(.theme-dark) #knowledge-base .knowledge-search kbd{background:#eeeaff!important;border-color:#c9bdff!important;color:#6355c7!important}

/* Light theme: reading status is blue/green; only the favorite action is yellow. */
html:not(.theme-dark) #modal:has(.knowledge-article-modal) .knowledge-modal-actions .knowledge-read-action{background:rgba(6,88,246,.22)!important;border-color:rgba(6,88,246,.62)!important;color:#145fe0!important;box-shadow:0 5px 14px rgba(6,88,246,.12)!important}
html:not(.theme-dark) #modal:has(.knowledge-article-modal) .knowledge-modal-actions .knowledge-read-action:hover{background:rgba(23,95,255,.34)!important;border-color:rgba(23,95,255,.8)!important;color:#0b4fc5!important;transform:translateY(-1px)!important}
html:not(.theme-dark) #modal:has(.knowledge-article-modal) .knowledge-modal-actions .knowledge-read-action.is-read{background:#e5f7ef!important;border-color:#a9dfc2!important;color:#16834f!important;box-shadow:none!important}
html:not(.theme-dark) #modal:has(.knowledge-article-modal) .knowledge-modal-actions .knowledge-read-action.is-read:hover{background:#d7f2e5!important;border-color:#7dcc9f!important;color:#126b43!important}

/* Light theme: quick command palette. */
html:not(.theme-dark) .quick-actions-modal{background:#fbfcfe!important;border:1px solid #d4e0ec!important;color:#24344a!important;box-shadow:0 24px 80px rgba(44,67,98,.22)!important}
html:not(.theme-dark) .quick-actions-head h2{color:#24344a!important}
html:not(.theme-dark) .quick-actions-head .mini{color:#65758a!important}
html:not(.theme-dark) .quick-action-item{background:#f1f6fb!important;border:1px solid #d2dfeb!important;color:#24344a!important;box-shadow:0 3px 9px rgba(67,88,116,.05)!important}
html:not(.theme-dark) .quick-action-item:hover{background:#e6f0ff!important;border-color:#8eb5e3!important;box-shadow:0 8px 18px rgba(67,88,116,.12)!important}
html:not(.theme-dark) .quick-action-icon{background:#e3efff!important;border:1px solid #b9d2f1!important;color:#145fe0!important}
html:not(.theme-dark) .quick-action-copy b{color:#24344a!important}
html:not(.theme-dark) .quick-action-copy small{color:#65758a!important}
html:not(.theme-dark) .quick-action-arrow{color:#145fe0!important}
html:not(.theme-dark) .quick-actions-hint{color:#65758a!important}
html:not(.theme-dark) .quick-actions-hint kbd{background:#eef3f8!important;border-color:#cbd8e6!important;color:#536579!important;box-shadow:none!important}

/* Light theme: make the current plan card a stronger conversion surface. */
html:not(.theme-dark) .plan-card{background:linear-gradient(135deg,#e5f0ff 0%,#eef5ff 48%,#f0eaff 100%)!important;border:2px solid #8fb5ea!important;box-shadow:0 14px 34px rgba(57,91,151,.18),inset 0 1px rgba(255,255,255,.9)!important}
html:not(.theme-dark) .plan-card::before{background:radial-gradient(circle,rgba(108,100,255,.32),rgba(108,100,255,0) 68%)!important}
html:not(.theme-dark) .plan-card:hover{border-color:#5f92df!important;box-shadow:0 18px 40px rgba(57,91,151,.24),inset 0 1px rgba(255,255,255,.95)!important}
html:not(.theme-dark) .plan-card::after{font-weight:400!important;color:#145fe0!important;font-size:12px!important}

/* Final light-theme action colors: direct class selectors keep them stable in every modal host. */
html:not(.theme-dark) .knowledge-favorite-action.primary,body:not(.dark) .knowledge-favorite-action.primary{background:rgba(245,200,61,.28)!important;border:1px solid rgba(223,174,22,.72)!important;color:#735900!important;box-shadow:0 5px 14px rgba(224,174,22,.12)!important}
html:not(.theme-dark) .knowledge-favorite-action.primary:hover,body:not(.dark) .knowledge-favorite-action.primary:hover{background:rgba(248,212,95,.42)!important;border-color:rgba(201,155,8,.86)!important;color:#5c4700!important}
html:not(.theme-dark) .knowledge-read-action,body:not(.dark) .knowledge-read-action{background:rgba(6,88,246,.22)!important;border:1px solid rgba(6,88,246,.62)!important;color:#145fe0!important;box-shadow:0 5px 14px rgba(6,88,246,.12)!important}
html:not(.theme-dark) .knowledge-read-action:hover,body:not(.dark) .knowledge-read-action:hover{background:rgba(23,95,255,.34)!important;border-color:rgba(23,95,255,.8)!important;color:#0b4fc5!important}
html:not(.theme-dark) .knowledge-read-action.is-read,body:not(.dark) .knowledge-read-action.is-read{background:rgba(45,185,135,.16)!important;border-color:rgba(45,185,135,.5)!important;color:#16834f!important;box-shadow:none!important}

/* Profile menu: Security uses the same neutral label color as other items. */
.security-menu-item{color:inherit!important}
.security-menu-item:hover{background:#242e40!important;color:inherit!important}

/* Light theme: response actions start with the former hover treatment and shift tone gently on hover. */
html:not(.theme-dark) #modal .response-screening{background:#d8e8ff!important;border:1px solid #7faee5!important;color:#0b4fc5!important;box-shadow:none!important;transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease}
html:not(.theme-dark) #modal .response-screening:hover{background:#cbe0ff!important;border-color:#6e9fe0!important;color:#0845aa!important;transform:none!important}
html:not(.theme-dark) #modal .response-reject{background:rgba(239,68,68,.14)!important;border:1px solid rgba(239,68,68,.48)!important;color:#b4233d!important;box-shadow:none!important;transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease}
html:not(.theme-dark) #modal .response-reject:hover{background:#ffe4e8!important;border-color:#d97889!important;color:#9f1d35!important;transform:none!important}

/* Teamdeck Blue: shared translucent brand badge in both themes. */
.teamdeck-brand-badge{background:rgba(6,88,246,.18)!important;border:1px solid rgba(6,88,246,.46)!important;color:#4d91ff!important;box-shadow:inset 0 1px rgba(255,255,255,.08),0 4px 12px rgba(6,88,246,.10)!important}
.teamdeck-brand-badge:hover{background:rgba(6,88,246,.25)!important;border-color:rgba(6,88,246,.66)!important;color:#76adff!important}

/* Light theme: guest access management and create-login dialog. */
html:not(.theme-dark) .guest-accounts-panel{background:linear-gradient(145deg,#f4f8ff 0%,#eef5fc 56%,#f7f5ff 100%)!important;border:1px solid #c9d9eb!important;box-shadow:0 14px 34px rgba(67,88,116,.12)!important}
html:not(.theme-dark) .guest-accounts-panel .security-panel-subtitle{color:#65758a!important}
html:not(.theme-dark) .guest-account-stats>div{background:#fff!important;border-color:#cbdbea!important;box-shadow:0 3px 10px rgba(67,88,116,.06)!important}
html:not(.theme-dark) .guest-account-stats b{color:#24344a!important}
html:not(.theme-dark) .guest-account-stats span{color:#65758a!important}
html:not(.theme-dark) .guest-account-row{background:#fff!important;border-color:#cbdbea!important;box-shadow:0 3px 10px rgba(67,88,116,.05)!important}
html:not(.theme-dark) .guest-account-main strong{color:#24344a!important}
html:not(.theme-dark) .guest-account-login,html:not(.theme-dark) .guest-account-main small,html:not(.theme-dark) .guest-account-metrics span{color:#65758a!important}
html:not(.theme-dark) .guest-badge{background:#f1f5f9!important;border-color:#d2deea!important;color:#536579!important}
html:not(.theme-dark) .guest-badge.login-badge{background:#e5efff!important;border-color:#b7d0ef!important;color:#145fe0!important}
html:not(.theme-dark) .guest-badge.time-badge{background:#eef3f8!important;border-color:#cbd8e6!important;color:#536579!important}
html:not(.theme-dark) .guest-action-btn{background:#eef3f8!important;border-color:#c7d6e5!important;color:#65758a!important;box-shadow:0 2px 6px rgba(67,88,116,.06)!important}
html:not(.theme-dark) .guest-action-btn.view-btn:hover{background:#e2f6ed!important;border-color:#8bd1ad!important;color:#16834f!important}
html:not(.theme-dark) .guest-action-btn.toggle-btn:hover,html:not(.theme-dark) .guest-action-btn.toggle-btn.is-locked:hover,html:not(.theme-dark) .guest-action-btn.toggle-btn.is-restorable:hover{background:#eef1f5!important;border-color:#aebdcd!important;color:#536579!important}
html:not(.theme-dark) .guest-action-btn.delete-btn{color:#c43d53!important}
html:not(.theme-dark) .guest-action-btn.delete-btn:hover{background:#ffe4e8!important;border-color:#d97889!important;color:#9f1d35!important}
html:not(.theme-dark) .guest-account-modal{background:rgba(35,52,74,.48)!important}
html:not(.theme-dark) .guest-account-dialog{background:#fbfcfe!important;border:1px solid #cbdbea!important;color:#24344a!important;box-shadow:0 24px 80px rgba(44,67,98,.24)!important}
html:not(.theme-dark) .guest-account-dialog .security-panel-subtitle{color:#65758a!important}
html:not(.theme-dark) .guest-account-dialog .guest-account-form label{color:#24344a!important}
html:not(.theme-dark) .guest-account-dialog .input{background:#fff!important;border:1px solid #b9cadd!important;color:#24344a!important;box-shadow:inset 0 1px 2px rgba(67,88,116,.04)!important}
html:not(.theme-dark) .guest-account-dialog .input:focus{border-color:#6f9fe2!important;box-shadow:0 0 0 3px rgba(6,88,246,.12)!important}
html:not(.theme-dark) .guest-account-dialog .input::placeholder{color:#8997a8!important}
html:not(.theme-dark) .guest-account-form .guest-password-check{color:#536579!important}
html:not(.theme-dark) .guest-account-form .guest-password-check input[type=checkbox]{background:#fff!important;border-color:#9fb2c8!important}
html:not(.theme-dark) .guest-account-form .guest-password-check input[type=checkbox]:checked{border-color:#6f9fe2!important}
html:not(.theme-dark) .guest-credentials{background:#eef5ff!important;border-color:#b9d2f1!important}
html:not(.theme-dark) .guest-credentials span{color:#65758a!important}
html:not(.theme-dark) .guest-credentials b{color:#24344a!important}

/* Light theme: polished guest-access details dialog. */
html:not(.theme-dark) .guest-details-dialog{background:linear-gradient(145deg,#ffffff 0%,#f8fbff 100%)!important;border-color:#b9cee2!important}
html:not(.theme-dark) .guest-details-dialog .security-panel-head{padding-bottom:4px!important}
html:not(.theme-dark) .guest-details-dialog .section-kicker{color:#6c9fe8!important}
html:not(.theme-dark) .guest-details-grid{gap:12px!important;margin:24px 0!important}
html:not(.theme-dark) .guest-details-grid>div{background:#f1f6fb!important;border:1px solid #d1dfec!important;border-left:3px solid #a9c7eb!important;border-radius:12px!important;padding:15px 16px!important;box-shadow:0 3px 9px rgba(67,88,116,.05)!important}
html:not(.theme-dark) .guest-details-grid span{color:#718298!important;font-size:11px!important;font-weight:500!important}
html:not(.theme-dark) .guest-details-grid b{color:#24344a!important;font-size:15px!important;font-weight:700!important}
html:not(.theme-dark) .guest-details-grid>div:nth-child(2){border-left-color:#80c7a4!important;background:#f0faf5!important}
html:not(.theme-dark) .guest-details-grid>div:nth-child(2) b{color:#16834f!important}
html:not(.theme-dark) .guest-details-note{margin:4px 0 0!important;padding:13px 15px!important;border:1px solid #d1dfec!important;border-radius:11px!important;background:#eef5fc!important;color:#65758a!important}
html:not(.theme-dark) .guest-details-dialog .modalfoot{margin-top:24px!important;padding-top:0!important}

/* Light theme: make clickable dashboard KPI cards visibly interactive. */
html:not(.theme-dark) .dashboard-kpi-link{border:1px solid #cbd9e8!important;transition:transform .18s cubic-bezier(.23,1,.32,1),border-color .18s ease,box-shadow .18s ease!important}
html:not(.theme-dark) .dashboard-kpi-link:hover{transform:translateY(-2px)!important;border-color:#4d91ff!important;box-shadow:0 0 0 2px rgba(6,88,246,.16),0 12px 28px rgba(6,88,246,.14)!important}
html:not(.theme-dark) .dashboard-kpi-link:focus-visible{outline:2px solid #4d91ff!important;outline-offset:3px}

/* Action history: keep the same semantic colors and latest-event emphasis in light theme. */
html:not(.theme-dark) #dashboard .action-history-event,
html:not(.theme-dark) .modalwrap .action-history-event{background:rgba(15,23,42,.06)!important}
html:not(.theme-dark) #dashboard .action-history-event.event-type-vacancy,
html:not(.theme-dark) .modalwrap .action-history-event.event-type-vacancy{background:rgba(59,130,246,.12)!important}
html:not(.theme-dark) #dashboard .action-history-event.event-type-candidate,
html:not(.theme-dark) .modalwrap .action-history-event.event-type-candidate{background:rgba(167,139,250,.14)!important}
html:not(.theme-dark) #dashboard .action-history-event.event-type-onboarding,
html:not(.theme-dark) .modalwrap .action-history-event.event-type-onboarding{background:rgba(34,197,94,.13)!important}
html:not(.theme-dark) #dashboard .action-history-event.event-type-offboarding,
html:not(.theme-dark) .modalwrap .action-history-event.event-type-offboarding{background:rgba(249,115,22,.14)!important}
html:not(.theme-dark) #dashboard .action-history-event.event-type-organization,
html:not(.theme-dark) .modalwrap .action-history-event.event-type-organization{background:rgba(234,179,8,.15)!important}
html:not(.theme-dark) #dashboard .action-history-event.event-type-rejection,
html:not(.theme-dark) .modalwrap .action-history-event.event-type-rejection{background:rgba(239,68,68,.13)!important}
html:not(.theme-dark) #dashboard .action-history-event.is-latest,
html:not(.theme-dark) .modalwrap .action-history-event.is-latest{box-shadow:0 0 0 1px currentColor,0 8px 20px rgba(0,0,0,.12)!important}
html:not(.theme-dark) #dashboard .action-history-event:hover,
html:not(.theme-dark) .modalwrap .action-history-event:hover{filter:saturate(1.08);box-shadow:0 0 0 1px currentColor,0 8px 20px rgba(25,32,56,.10)!important}


/* Modern HR SaaS approvals modal — visual layer only */
#modal .modal:has(.approval-toolbar){
  width:min(900px,calc(100vw - 32px));
  max-width:900px;
  max-height:min(86vh,820px);
  overflow:hidden;
  padding:0;
  border:1px solid color-mix(in srgb,var(--line) 82%,#0658f6 18%);
  border-radius:22px;
  background:var(--panel);
  box-shadow:0 28px 90px rgba(15,23,42,.22);
}
#modal .modal:has(.approval-toolbar) .modalhead{
  margin:0;
  padding:22px 24px 18px;
  border-bottom:1px solid var(--line);
  align-items:flex-start;
}
#modal .modal:has(.approval-toolbar) .modalhead h2{
  margin:0;
  font-size:21px;
  letter-spacing:-.025em;
}
#modal .modal:has(.approval-toolbar) .modalhead .mini{
  display:block;
  margin-top:5px;
  font-size:12px;
}
#modal .modal:has(.approval-toolbar) .close{
  width:34px;
  height:34px;
  min-width:34px;
  border-radius:10px;
  background:rgba(128,142,166,.08);
  border:1px solid transparent;
}
#modal .modal:has(.approval-toolbar) .close:hover{
  background:rgba(128,142,166,.15);
  border-color:var(--line);
}

.approval-toolbar{
  margin:0;
  padding:14px 24px 12px;
  border-bottom:1px solid var(--line);
  background:var(--panel);
  gap:4px;
}
.approval-filter{
  position:relative;
  min-height:34px;
  padding:7px 11px;
  border:1px solid transparent;
  border-radius:9px;
  color:var(--muted);
  font-size:12px;
  font-weight:600;
}
.approval-filter.active{
  color:var(--text);
  background:rgba(6,88,246,.09);
  border-color:rgba(6,88,246,.16);
}
.approval-filter.active:after{
  content:"";
  position:absolute;
  left:10px;
  right:10px;
  bottom:-13px;
  height:2px;
  border-radius:2px;
  background:#0658f6;
}
.approval-filter b{
  display:inline-grid;
  place-items:center;
  min-width:18px;
  height:18px;
  margin-left:5px;
  padding:0 4px;
  border-radius:999px;
  background:rgba(128,142,166,.11);
  font-size:10px;
}
.approval-filter.active b{
  background:rgba(6,88,246,.14);
  color:#5d8eff;
}
.approval-clear-archive{
  margin-left:auto;
  border-radius:9px!important;
}

.approval-list{
  display:grid;
  gap:12px;
  max-height:calc(min(86vh,820px) - 126px);
  overflow:auto;
  padding:18px 24px 24px;
  background:var(--bg);
  scrollbar-width:thin;
}
.approval-request-card{
  position:relative;
  display:grid;
  gap:0;
  padding:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--panel);
  box-shadow:0 3px 14px rgba(15,23,42,.045);
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.approval-request-card:hover{
  border-color:rgba(6,88,246,.22);
  box-shadow:0 8px 26px rgba(15,23,42,.08);
  transform:translateY(-1px);
}
.approval-request-card:before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:3px;
  background:#f59e0b;
}
.approval-archived-card:before{background:#94a3b8}
.approval-request-card>.person{
  display:flex;
  align-items:center;
  gap:12px;
  padding:17px 18px 12px;
}
.approval-request-card>.person .avatar{
  flex:0 0 42px;
  width:42px;
  height:42px;
  border-radius:12px;
}
.approval-request-card>.person b{
  display:block;
  font-size:14px;
  line-height:1.25;
}
.approval-request-card>.person .mini{
  margin-top:3px;
  font-size:11px;
}
.approval-request-meta{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin:0;
  padding:0 18px 14px 72px;
}
.approval-request-meta span{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:0 8px;
  border:1px solid var(--line);
  border-radius:7px;
  background:rgba(128,142,166,.055);
  color:var(--muted);
  font-size:10px;
}
.approval-request-meta b{color:var(--text)}
.approval-request-message,
.approval-response{
  margin:0 18px 10px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:11px;
  background:rgba(128,142,166,.055);
  font-size:12px;
}
.approval-request-message{
  border-color:rgba(245,158,11,.18);
  background:rgba(245,158,11,.055);
}
.approval-response{
  border-color:rgba(34,197,94,.18);
  background:rgba(34,197,94,.055);
}
.approval-request-message>b,
.approval-response>b{
  display:flex;
  align-items:center;
  gap:7px;
  font-size:11px;
  font-weight:700;
}
.approval-request-message>b:before{
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:#f59e0b;
}
.approval-response>b:before{
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:#22c55e;
}
.approval-request-message p,
.approval-response p{
  margin:7px 0 0;
  line-height:1.55;
  color:var(--text);
}
.approval-request-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin:2px 18px 18px;
  padding-top:13px;
  border-top:1px solid var(--line);
}
.approval-request-actions .btn{
  min-height:34px;
  padding:0 12px;
  border-radius:9px;
  font-size:11px;
  font-weight:650;
}
.approval-request-actions .approval-approve{
  color:#fff;
  background:#0658f6;
  border-color:#0658f6;
}
.approval-request-actions .approval-approve:hover{
  color:#fff;
  background:#0b62ff;
  border-color:#0b62ff;
}
.approval-archive-meta{
  margin:2px 18px 18px;
  padding-top:12px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:11px;
}
.approval-empty{
  min-height:310px;
  display:grid;
  place-items:center;
  align-content:center;
  padding:48px 24px;
  border:1px dashed var(--line);
  border-radius:16px;
  background:var(--panel);
}
.approval-empty-icon{
  width:48px;
  height:48px;
  margin:0 auto 13px;
  border:1px solid rgba(34,197,94,.2);
  background:rgba(34,197,94,.08);
  color:#22c55e;
  box-shadow:none;
}
.approval-empty h3{
  margin:0 0 5px;
  font-size:15px;
}
.approval-empty p{
  max-width:320px;
  font-size:11px;
  line-height:1.5;
}
@media(max-width:700px){
  #modal .modal:has(.approval-toolbar){
    width:calc(100vw - 18px);
    max-height:calc(100vh - 18px);
    border-radius:16px;
  }
  #modal .modal:has(.approval-toolbar) .modalhead{padding:17px 17px 15px}
  .approval-toolbar{padding:11px 17px 10px;overflow-x:auto;flex-wrap:nowrap}
  .approval-filter{white-space:nowrap}
  .approval-list{
    max-height:calc(100vh - 145px);
    padding:12px 12px 16px;
  }
  .approval-request-card>.person{padding:14px 14px 10px}
  .approval-request-meta{padding:0 14px 12px 68px}
  .approval-request-message,.approval-response{margin-left:14px;margin-right:14px}
  .approval-request-actions{
    margin-left:14px;
    margin-right:14px;
    justify-content:stretch;
  }
  .approval-request-actions .btn{flex:1}
  .approval-archive-meta{margin-left:14px;margin-right:14px}
}


/* TeamDeck modern CEO approvals modal */
#modal .modal:has(.approval-toolbar){
  width:min(820px,calc(100vw - 32px));
  max-width:820px;
  padding:0;
  overflow:hidden;
  border:1px solid rgba(6,88,246,.16);
  border-radius:20px;
  background:var(--panel);
  box-shadow:0 28px 80px rgba(15,23,42,.22);
}
#modal .modal:has(.approval-toolbar) .modalhead{
  position:relative;
  margin:0;
  padding:22px 24px 18px 66px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg,rgba(6,88,246,.055),rgba(6,88,246,0));
}
#modal .modal:has(.approval-toolbar) .modalhead:before{
  content:"✓";
  position:absolute;
  left:24px;
  top:21px;
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:rgba(6,88,246,.10);
  border:1px solid rgba(6,88,246,.16);
  color:var(--brand);
  font-size:14px;
  font-weight:800;
}
#modal .modal:has(.approval-toolbar) .modalhead h2{margin:0;font-size:19px;line-height:1.25;letter-spacing:-.025em}
#modal .modal:has(.approval-toolbar) .modalhead .mini{display:block;margin-top:5px;font-size:11px;color:var(--muted)}
#modal .modal:has(.approval-toolbar) .close{width:32px;height:32px;min-width:32px;border:1px solid transparent;border-radius:9px;background:rgba(128,142,166,.08);color:var(--muted)}
#modal .modal:has(.approval-toolbar) .close:hover{border-color:var(--line);background:rgba(128,142,166,.15);color:var(--text)}
#modal .modal:has(.approval-toolbar) .approval-toolbar{
  margin:0;
  padding:12px 24px;
  border-bottom:1px solid var(--line);
  background:rgba(128,142,166,.025);
  gap:6px;
}
#modal .modal:has(.approval-toolbar) .approval-filter{
  min-height:32px;
  padding:0 11px;
  border:1px solid transparent;
  border-radius:9px;
  font-size:11px;
  font-weight:650;
}
#modal .modal:has(.approval-toolbar) .approval-filter.active{
  border-color:rgba(6,88,246,.18);
  background:rgba(6,88,246,.10);
  color:var(--brand);
}
#modal .modal:has(.approval-toolbar) .approval-filter b{font-size:10px;margin-left:4px}
#modal .modal:has(.approval-toolbar) .approval-clear-archive{margin-left:auto;min-height:30px}
#modal .modal:has(.approval-toolbar) .approval-list{
  max-height:min(62vh,620px);
  padding:16px 24px 22px;
  gap:10px;
}
#modal .modal:has(.approval-toolbar) .approval-request-card{
  padding:15px;
  border-radius:13px;
  background:var(--panel);
  border-color:var(--line);
  box-shadow:0 2px 8px rgba(15,23,42,.035);
  transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
#modal .modal:has(.approval-toolbar) .approval-request-card:hover{
  border-color:rgba(6,88,246,.24);
  box-shadow:0 8px 24px rgba(15,23,42,.07);
  transform:translateY(-1px);
}
#modal .modal:has(.approval-toolbar) .approval-request-meta{margin:11px 0;gap:8px 18px;font-size:11px}
#modal .modal:has(.approval-toolbar) .approval-request-meta span{display:inline-flex;align-items:center;gap:4px}
#modal .modal:has(.approval-toolbar) .approval-request-message,
#modal .modal:has(.approval-toolbar) .approval-response{
  padding:10px 12px;
  border-radius:10px;
  font-size:11px;
}
#modal .modal:has(.approval-toolbar) .approval-request-message{background:rgba(6,88,246,.045);border-color:rgba(6,88,246,.11)}
#modal .modal:has(.approval-toolbar) .approval-response{background:rgba(34,197,94,.055);border-color:rgba(34,197,94,.14)}
#modal .modal:has(.approval-toolbar) .approval-request-actions{margin-top:11px;justify-content:flex-end}
#modal .modal:has(.approval-toolbar) .approval-request-actions .btn{min-height:34px;padding:0 11px;border-radius:8px;font-size:11px}
#modal .modal:has(.approval-toolbar) .approval-approve{color:var(--text);border-color:rgba(239,68,68,.28)}
#modal .modal:has(.approval-toolbar) .approval-approve:hover{background:rgba(239,68,68,.08);border-color:rgba(239,68,68,.42);color:var(--text)}
#modal .modal:has(.approval-toolbar) .approval-empty{padding:54px 24px}
#modal .modal:has(.approval-toolbar) .approval-empty-icon{width:48px;height:48px;margin-bottom:13px}
@media(max-width:700px){
  #modal .modal:has(.approval-toolbar){width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:17px}
  #modal .modal:has(.approval-toolbar) .modalhead{padding:18px 18px 15px 58px}
  #modal .modal:has(.approval-toolbar) .modalhead:before{left:18px;top:17px}
  #modal .modal:has(.approval-toolbar) .approval-toolbar{padding:10px 14px;overflow-x:auto;flex-wrap:nowrap}
  #modal .modal:has(.approval-toolbar) .approval-list{padding:12px 14px 16px}
  #modal .modal:has(.approval-toolbar) .approval-request-actions{justify-content:stretch}
  #modal .modal:has(.approval-toolbar) .approval-request-actions .btn{flex:1}
}


/* Final candidate AI status cleanup: no legacy decorative star. */
#resumeAutofillStatus::before,#resumeAutofillStatus::after{content:none!important;display:none!important;animation:none!important;box-shadow:none!important}
#resumeAutofillStatus .ai-resume-status-dot{display:none!important}

.candidate-ai-countdown{margin-top:12px;font-size:11px;line-height:16px;color:rgba(148,163,184,.58);font-weight:500;letter-spacing:.01em}

.candidate-ai-idle-message{font-size:14px;line-height:21px;color:rgba(226,232,240,.86);font-weight:500;align-self:center}

/* Candidate resume upload copy cleanup. */
.resume-selected-file .resume-file-name{font-size:11px!important;color:rgba(148,163,184,.62)!important;font-weight:500!important}
.candidate-resume-upload .candidate-resume-note{display:none!important}
.candidate-ai-idle-message{font-size:13px!important;line-height:18px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.candidate-ai-idle-meta{display:flex!important;gap:8px!important}
@media(max-width:700px){.candidate-ai-idle-message{white-space:normal!important;overflow:visible!important;text-overflow:clip!important}}

/* Final candidate upload control alignment. */
.resume-selected-file{align-items:center!important;min-height:24px!important}
.resume-selected-file .resume-file-name,.resume-selected-file .mini.resume-file-name{font-size:10px!important;line-height:14px!important;color:rgba(148,163,184,.46)!important;font-weight:400!important;letter-spacing:0!important}
.resume-file-button{justify-content:center!important;text-align:center!important;min-width:154px!important}
.resume-file-button-icon{display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:1!important}

/* Keep candidate resume panels inside the modal width. */
.candidate-resume-upload,.candidate-ai-section,.candidate-resume-upload-card,.candidate-ai-panel{min-width:0!important;max-width:100%!important;box-sizing:border-box!important;overflow:hidden!important}
.candidate-ai-idle-head,.candidate-ai-idle-head>div{min-width:0!important;max-width:100%!important}
.candidate-ai-idle-head>div:last-child{flex:1 1 auto!important}
.candidate-ai-idle-message{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important}
.candidate-ai-idle-meta{min-width:0!important;max-width:100%!important}

/* Hard containment for full-width resume fields inside the candidate form grid. */
.formgrid>.field.full{min-width:0!important;width:100%!important;max-width:100%!important;grid-column:1/-1!important;overflow:hidden!important}
.formgrid,.modalbox,.modalcontent{min-width:0!important;max-width:100%!important}
.resume-upload-head,.resume-upload-head>div{min-width:0!important;max-width:100%!important}
.resume-upload-head>div{overflow:hidden!important}
.resume-upload-subtitle{display:block!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
@media(max-width:700px){.resume-upload-subtitle{white-space:normal!important;overflow:visible!important;text-overflow:clip!important}}

/* Actual candidate modal wrapper containment. */
#modal .modal:has(.candidate-resume-workspace){box-sizing:border-box!important;max-width:calc(100vw - 32px)!important;overflow-x:hidden!important}
#modal .candidate-resume-workspace{display:grid!important;grid-template-columns:minmax(0,1fr)!important;min-width:0!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;overflow:hidden!important}
#modal .candidate-resume-workspace>section{min-width:0!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;overflow:hidden!important}
#modal .candidate-resume-workspace .candidate-resume-section-head{min-width:0!important;max-width:100%!important}
#modal .candidate-resume-workspace .candidate-resume-section-head>div{min-width:0!important;max-width:100%!important;overflow:hidden!important}
#modal .candidate-resume-workspace .candidate-ai-idle-head{min-width:0!important;width:100%!important;max-width:100%!important}

/* Compact, readable candidate file picker button. */
.resume-file-button{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;width:auto!important;min-width:154px!important;height:42px!important;padding:0 16px!important;font-size:14px!important;line-height:1!important;white-space:nowrap!important}
.resume-file-button-icon{width:17px!important;height:17px!important;font-size:17px!important;flex:0 0 17px!important}

/* AI response Markdown lists: keep markers inside the message rhythm. */
.teamdeck-ai-message.assistant ul{display:block!important;margin:10px 0 12px 8px!important;padding:0 0 0 28px!important;list-style-type:disc!important;list-style-position:outside!important}
.teamdeck-ai-message.assistant li{display:list-item!important;margin:0 0 12px!important;padding:0 0 0 4px!important;line-height:1.55!important}
.teamdeck-ai-message.assistant li:last-child{margin-bottom:0!important}
.teamdeck-ai-message.assistant ul+br{display:none!important}

/* Vacancy AI actions must stay above the rich-text editor on hover. */
.field:has(>.vacancy-ai-label){position:relative!important;z-index:6!important;overflow:visible!important}
.vacancy-ai-label{position:relative!important;z-index:7!important;isolation:isolate}
.vacancy-ai-generate{position:relative!important;z-index:8!important;transform:translateZ(0);will-change:transform}
.vacancy-ai-generate:hover,.vacancy-ai-generate:focus-visible{z-index:9!important;transform:none!important;box-shadow:none!important;background:rgba(74,125,255,.16)!important;border-color:rgba(92,139,255,.38)!important}

/* Main demo credentials control */
.demo-credentials-panel{margin-top:24px!important;padding:26px 30px!important;background:linear-gradient(145deg,rgba(26,43,70,.98),rgba(18,32,54,.98));border:1px solid rgba(92,132,205,.42);box-shadow:0 18px 42px rgba(0,0,0,.14)}
.demo-credentials-panel .security-panel-head{align-items:flex-start;gap:20px}.security-credential-status{flex:0 0 auto;padding:7px 10px;border:1px solid rgba(84,208,147,.28);border-radius:8px;background:rgba(48,190,125,.1);color:#7ee2ae;font-size:11px;font-weight:700;white-space:nowrap}.demo-credentials-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:22px}.demo-credentials-form label{display:grid;gap:7px;color:#d9e5f6;font-size:12px;font-weight:650}.demo-credentials-form .input{width:100%;min-height:42px;background:rgba(8,22,45,.6);border:1px solid rgba(116,145,190,.3);color:#eef4ff;font:inherit;font-weight:400}.demo-credentials-form .input:focus{border-color:#6f9fe2;box-shadow:0 0 0 3px rgba(6,88,246,.14);outline:0}.demo-credentials-form .input:disabled{opacity:.7}.demo-credentials-form .auth-error{min-height:18px;grid-column:1/-1;margin:0;color:#ff9c9c}.demo-credentials-actions{grid-column:1/-1;display:flex;justify-content:flex-end}.demo-credentials-actions .btn{min-height:40px}
html:not(.theme-dark) .demo-credentials-panel{background:linear-gradient(145deg,#f4f8ff 0%,#eef5fc 56%,#f7f5ff 100%)!important;border-color:#c9d9eb!important;box-shadow:0 14px 34px rgba(67,88,116,.12)!important}html:not(.theme-dark) .demo-credentials-form label{color:#24344a}html:not(.theme-dark) .demo-credentials-form .input{background:#fff;color:#24344a;border-color:#b9cadd}html:not(.theme-dark) .demo-credentials-form .input::placeholder{color:#8997a8}html:not(.theme-dark) .security-credential-status{color:#18774a;background:rgba(48,190,125,.1);border-color:rgba(48,150,100,.25)}
@media(max-width:720px){.demo-credentials-panel{padding:22px 18px!important}.demo-credentials-panel .security-panel-head{display:grid}.demo-credentials-form{grid-template-columns:1fr}.demo-credentials-actions{justify-content:flex-start}}

/* Shared SaaS login: target=app uses server credentials, target=demo keeps legacy demo access. */
.app-auth-mode{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;margin:-4px 0 14px;border:1px solid rgba(115,132,166,.26);border-radius:12px;background:rgba(20,32,55,.34)}
.app-auth-mode-button{min-height:34px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:12px;font-weight:650;cursor:pointer}
.app-auth-mode-button.active{background:rgba(40,105,235,.18);color:#fff;box-shadow:0 3px 12px rgba(5,22,62,.2)}
.app-auth-hint{margin:-4px 0 8px;color:var(--muted);font-size:11px;line-height:1.45;text-align:center}
.auth-card .auth-link{cursor:pointer}
@media (max-width:520px){.app-auth-mode-button{font-size:11px}.app-auth-hint{font-size:10px}}

/* Admin organization cards: keep tenant details and controls in one clear row. */
.organization-admin-panel .organization-admin-list{display:grid;gap:12px;margin-top:18px}
.organization-admin-panel .organization-admin-row{display:flex;align-items:center;justify-content:space-between;gap:18px;min-width:0;padding:16px 18px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2);box-shadow:0 8px 22px rgba(0,0,0,.08)}
.organization-admin-panel .organization-admin-row.is-frozen{border-color:rgba(239,96,105,.42);background:rgba(239,96,105,.07)}
.organization-admin-panel .organization-admin-main{display:grid;gap:8px;min-width:0;flex:1}
.organization-admin-panel .organization-admin-main>strong{display:block;min-width:0;overflow:hidden;color:var(--text);font-size:15px;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}
.organization-admin-panel .organization-admin-main>small{display:block;min-width:0;overflow:hidden;color:var(--muted);font-size:12px;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}
.organization-admin-panel .organization-admin-main .guest-account-badges{display:flex;align-items:center;gap:6px;min-width:0;flex-wrap:wrap}
.organization-admin-panel .organization-admin-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 0 auto}
.organization-admin-panel .organization-admin-actions .guest-action-btn{display:grid;place-items:center;width:40px;height:40px;min-width:40px;padding:0;border-radius:11px;font-size:17px;line-height:1}
.organization-admin-panel .organization-admin-actions .guest-action-btn.delete-btn{font-size:20px}
html:not(.theme-dark) .organization-admin-panel .organization-admin-row{background:#f8fbff;border-color:#d2dfec;box-shadow:0 8px 22px rgba(67,88,116,.07)}
html:not(.theme-dark) .organization-admin-panel .organization-admin-row.is-frozen{background:#fff5f6;border-color:#e8a9b3}
@media(max-width:700px){
  .organization-admin-panel .organization-admin-row{align-items:stretch;flex-direction:column;gap:13px;padding:14px}
  .organization-admin-panel .organization-admin-main>strong,.organization-admin-panel .organization-admin-main>small{white-space:normal}
  .organization-admin-panel .organization-admin-actions{justify-content:flex-start}
}

/* Organization details: use the same eye action as guest-account inspection. */
.organization-admin-panel{margin-top:28px}
.organization-admin-panel .organization-admin-actions .guest-action-btn.view-btn svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.organization-details-dialog{width:min(760px,calc(100vw - 32px));max-height:min(88vh,760px);overflow:auto;padding:24px 26px 20px}
.organization-details-dialog .security-panel-head{padding-bottom:16px;border-bottom:1px solid var(--line)}
.organization-details-status{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:18px 0 2px}
.organization-details-id{color:var(--muted);font-size:12px;overflow-wrap:anywhere}
.organization-details-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin:18px 0 22px}
.organization-details-log{padding:16px;border:1px solid var(--line);border-radius:14px;background:rgba(8,22,45,.24)}
.organization-details-log-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.organization-details-log-head h3{margin:3px 0 0;font-size:15px}
.organization-details-log ul{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.organization-details-log li{display:flex;align-items:baseline;justify-content:space-between;gap:14px;padding:9px 0;border-top:1px solid rgba(128,142,166,.16);color:var(--text);font-size:12px}
.organization-details-log li span{color:var(--muted);font-size:11px;text-align:right}
.organization-details-log li.organization-details-empty{color:var(--muted);border-top:0}
.organization-details-dialog .modalfoot{margin-top:20px;padding-top:0}
html:not(.theme-dark) .organization-details-log{background:#f4f8fc;border-color:#d1dfec}
@media(max-width:620px){.organization-details-dialog{padding:20px 18px 18px}.organization-details-grid{grid-template-columns:1fr}.organization-details-log li{align-items:flex-start;flex-direction:column;gap:3px}.organization-details-log li span{text-align:left}}

/* Organization ID: compact copy affordance with a clear hover state. */
.organization-details-id{display:inline-flex;align-items:center;gap:7px;max-width:100%;padding:5px 8px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--muted);font:inherit;font-size:12px;text-align:left;cursor:pointer;transition:color .16s ease,background .16s ease,border-color .16s ease}
.organization-details-id span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.organization-details-id svg{width:14px;height:14px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;opacity:.55;transition:opacity .16s ease,transform .16s ease}
.organization-details-id:hover,.organization-details-id:focus-visible,.organization-details-id.is-copied{border-color:rgba(6,88,246,.35);background:rgba(6,88,246,.12);color:#9fc2ff;outline:none}
.organization-details-id:hover svg,.organization-details-id:focus-visible svg,.organization-details-id.is-copied svg{opacity:1;transform:translateY(-1px)}
.organization-details-id.is-copied{color:#7ee0ae;border-color:rgba(52,211,153,.36);background:rgba(52,211,153,.1)}
html:not(.theme-dark) .organization-details-id:hover,html:not(.theme-dark) .organization-details-id:focus-visible{border-color:#b7d0ef;background:#e5efff;color:#145fe0}

/* Organization freeze action mirrors the guest-account lock hover treatment. */
.organization-admin-panel .organization-admin-actions .guest-action-btn.toggle-btn.is-locked:hover{background:rgba(230,80,80,.2);border-color:rgba(230,80,80,.5);color:#ff9ba2}
.organization-admin-panel .organization-admin-actions .guest-action-btn.toggle-btn.is-restorable:hover{background:rgba(6,88,246,.2);border-color:rgba(92,145,255,.5);color:#9fc0ff}
html:not(.theme-dark) .organization-admin-panel .organization-admin-actions .guest-action-btn.toggle-btn.is-locked:hover{background:#ffe4e8;border-color:#d97889;color:#9f1d35}
html:not(.theme-dark) .organization-admin-panel .organization-admin-actions .guest-action-btn.toggle-btn.is-restorable:hover{background:#e5efff;border-color:#b7d0ef;color:#145fe0}

/* Keep the organization pause/restore icon neutral until the pointer enters the button. */
.organization-admin-panel .organization-admin-actions .guest-action-btn.toggle-btn.is-locked,
.organization-admin-panel .organization-admin-actions .guest-action-btn.toggle-btn.is-restorable{color:#8fa8d2!important}
html:not(.theme-dark) .organization-admin-panel .organization-admin-actions .guest-action-btn.toggle-btn.is-locked,
html:not(.theme-dark) .organization-admin-panel .organization-admin-actions .guest-action-btn.toggle-btn.is-restorable{color:#65758a!important}

/* Pause is an operational state, not a destructive action: never color it red. */
.organization-admin-panel .organization-admin-actions .guest-action-btn.toggle-btn.is-locked:hover,
.organization-admin-panel .organization-admin-actions .guest-action-btn.toggle-btn.is-locked:focus-visible{background:rgba(157,170,193,.2)!important;border-color:rgba(177,191,215,.42)!important;color:#d2dced!important}
html:not(.theme-dark) .organization-admin-panel .organization-admin-actions .guest-action-btn.toggle-btn.is-locked:hover,
html:not(.theme-dark) .organization-admin-panel .organization-admin-actions .guest-action-btn.toggle-btn.is-locked:focus-visible{background:#eef1f5!important;border-color:#aebdcd!important;color:#536579!important}
