/* Phone navigation and one-screen messaging; desktop stays unchanged. */
#tap-mobile-nav,.mobile-search-back,#mobile-menu-tools,.mobile-message-filters{display:none}
@media(max-width:700px){
body .shell{margin-left:0!important;width:100%;min-width:0;padding-bottom:calc(76px + env(safe-area-inset-bottom))}
body main#content{padding:20px 16px;min-width:0;max-width:100%}
body .topbar{position:sticky;top:0;z-index:30;display:flex;flex-wrap:nowrap;gap:8px;min-height:64px;height:auto;padding:10px 12px;background:#fff;backdrop-filter:none;border-bottom:1px solid #e8e3eb}
.topbar .breadcrumb,.topbar .topbar-help,.topbar #picture-control,.topbar #connection-status,.topbar #outlook-connection,.topbar .invite-topbar,.topbar .signout-topbar,.topbar .test-as-toggle{display:none!important}
.topbar .top-actions{display:flex;flex:1;min-width:0;width:auto;gap:8px;flex-wrap:nowrap}
.topbar #sidebar-toggle{flex:0 0 40px;width:40px;height:40px;margin:0}
.topbar .global-profile-search{flex:1;min-width:0;width:auto;max-width:none}
.topbar .global-profile-search-field{width:100%;min-width:0;height:42px;padding:0 12px;border-radius:24px;background:#f4f2f6;box-sizing:border-box}
.topbar .global-profile-search-field input{width:100%;min-width:0;font-size:16px}
.topbar .global-profile-search kbd{display:none}
.topbar .tap-session-nav{order:-1;flex:0 0 auto;margin:0}
.topbar .tap-session-nav .tap-view-switch,.topbar .tap-session-fallback{display:none}
.topbar:has(.tap-session-avatar) #sidebar-toggle{display:none}
.topbar .persona-label{display:none}
body .sidebar{position:fixed!important;inset:0 auto 0 0!important;width:min(340px,88vw)!important;height:100dvh;max-height:none;z-index:160;transform:translateX(-110%);display:flex!important;flex-direction:column;padding:24px 18px calc(20px + env(safe-area-inset-bottom));box-sizing:border-box;box-shadow:16px 0 60px #21182b33;overflow:auto;background:#fff}
body.nav-open .sidebar{transform:translateX(0)}
body.nav-open{overflow:hidden}
.sidebar .mobile-nav-close{display:grid;place-items:center;position:absolute;right:12px;top:12px;width:44px;height:44px;font-size:28px}
.sidebar .brand{padding-right:40px}.sidebar #navigation{flex:1 0 auto;overflow:visible}.sidebar .nav-item,.sidebar .nav-section>summary{min-height:46px}
#mobile-menu-tools{display:flex;flex-wrap:wrap;gap:12px;padding:18px 4px;border-top:1px solid #e5dfeb}
#mobile-menu-tools a{padding:8px;color:#60427c;font-weight:650}
#tap-mobile-nav{position:fixed;z-index:60;bottom:0;left:0;right:0;display:flex;align-items:stretch;justify-content:space-around;padding:6px 6px calc(7px + env(safe-area-inset-bottom));border-top:1px solid #e4dfE8;background:#fffffffa;box-shadow:0 -3px 16px #2b173708}
#tap-mobile-nav a,#tap-mobile-nav button{position:relative;display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:48px;padding:3px;border:0;background:transparent;color:#72687b;font:inherit;font-size:10px;text-decoration:none}
#tap-mobile-nav svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#tap-mobile-nav [aria-current],#tap-mobile-nav button:hover{color:#6c46a1}
#tap-mobile-nav b{position:absolute;top:0;right:calc(50% - 23px);min-width:17px;border-radius:12px;background:#7450a0;color:white;font-size:10px;padding:2px}
#messaging-dock-root .message-dock-closed{display:none}
body.mobile-search-open,body.mobile-messaging-open{overflow:hidden}
.mobile-search-open .topbar{z-index:180}
.mobile-search-open .global-profile-search{position:fixed;inset:var(--mobile-view-top,0) 0 auto!important;width:100vw!important;height:var(--mobile-view-height,100dvh);max-width:none!important;display:grid;grid-template-columns:44px minmax(0,1fr);grid-template-rows:64px 1fr;gap:0;padding:0 12px;background:#fff;box-sizing:border-box;z-index:180}
.mobile-search-open .mobile-search-back{display:grid;place-items:center;width:44px;height:44px;margin:10px 0;border:0;background:#fff;color:#554861}
.mobile-search-back svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8}
.mobile-search-open .global-profile-search-field{align-self:center}
.mobile-search-open #global-profile-search-results{position:static;grid-column:1/-1;width:100%;max-height:none;height:100%;overflow:auto;border:0;border-top:1px solid #ece7ef;border-radius:0;box-shadow:none;padding-top:12px}
.mobile-search-open .global-profile-search-results .workspace-search-results>a.global-profile-suggestion{min-height:76px;padding:12px 4px}
.mobile-search-open .global-profile-search-results .global-profile-suggestion strong{font-size:16px}
.mobile-search-open .global-profile-search-hint{padding:20px 8px}
.mobile-search-open #tap-mobile-nav,.mobile-messaging-open #tap-mobile-nav{display:none}
#messaging-dock-root{position:fixed!important;inset:0!important;z-index:170!important;pointer-events:none}
#messaging-dock-root .message-dock-open{position:fixed;top:var(--mobile-view-top,0);left:0;right:0;bottom:auto;width:100%;height:var(--mobile-view-height,100dvh);max-width:none;overflow:hidden;pointer-events:auto;background:#fff}
.message-dock-open .message-dock-windows{display:block;height:100%;width:100%;padding:0}
#messaging-dock-root .message-dock-open .message-dock-window{display:none;width:100%;height:100%;min-height:0;max-height:none;margin:0;border:0;border-radius:0;box-shadow:none;box-sizing:border-box}
#messaging-dock-root [data-mobile-screen="list"] .message-dock-recent-window,#messaging-dock-root [data-mobile-screen="compose"] .message-dock-compose-window,#messaging-dock-root [data-mobile-screen="thread"] .message-dock-window[data-mobile-active="true"]{display:flex}
.message-dock-open .message-dock-window-header{flex:0 0 auto;min-height:64px;padding:10px 12px;gap:8px;border-bottom:1px solid #e5e0e9}
.message-dock-open .message-dock-window-control{width:44px;height:44px;flex:0 0 44px;font-size:26px}
.message-dock-open .message-dock-window-control svg{width:23px;height:23px}
.message-dock-open .message-dock-board-header>strong{font-size:19px}
.message-dock-open .message-dock-board-avatar{width:36px;height:36px;flex-basis:36px}
.message-dock-open .message-dock-board-avatar .message-avatar{width:36px;height:36px}
.message-dock-open .message-dock-search{height:44px;margin:14px 16px 12px;border-radius:12px;background:#f1eef5}
.message-dock-open input[type=search],.message-dock-open textarea{font-size:16px!important}
.mobile-message-filters{display:flex;gap:8px;padding:0 16px 14px}
.mobile-message-filters button{min-height:36px;padding:7px 16px;border:1px solid #d9d1e1;border-radius:24px;background:#fff;color:#65586e;font:inherit;font-size:14px;font-weight:650}
.mobile-message-filters button[aria-pressed=true]{background:#6d4996;border-color:#6d4996;color:#fff}
.message-dock-open .message-dock-recent-window .message-dock-row{padding:16px;gap:12px;min-height:100px}
.message-dock-open .message-dock-row-avatar,.message-dock-open .message-dock-row-avatar .message-avatar{width:50px;height:50px;flex-basis:50px}
.message-dock-open .message-dock-row-heading strong{font-size:16px}.message-dock-open .message-dock-row-heading time{font-size:10px}
.message-dock-open .message-dock-recent-window .message-dock-preview{font-size:14px;line-height:1.5}
.message-dock-open .message-dock-row-context{font-size:12px}
.message-dock-open .message-dock-full-inbox{display:none}
.message-dock-open .message-dock-window-person{flex:1;min-width:0}
.message-dock-open .message-dock-person-copy{min-width:0}
.message-dock-open [data-action="message.dockMinimize"]{display:none}
.message-dock-open .message-dock-recent-back{display:grid}
.message-dock-open .message-dock-window-body{min-height:0;flex:1}
.message-dock-open .message-dock-window-body .message-dock-log{padding:16px;overscroll-behavior:contain}
.message-dock-open .message-dock-window-body .message-dock-log .message-content>p{font-size:15px;line-height:1.55}
.message-dock-open .message-dock-message-header strong{font-size:14px}
.message-dock-open .message-dock-composer{padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid #e4dfeb}
.message-dock-open .message-dock-composer textarea{min-height:48px;border-radius:14px;background:#f6f3f8}
.message-dock-open .message-composer-footer small{display:none}
.message-dock-open .message-composer-footer{justify-content:flex-end}
.message-dock-open .message-dock-composer .btn{min-height:40px;padding:8px 24px;background:#6d4996}
.message-dock-open .message-tool-button{min-width:40px;min-height:40px}
.message-dock-open .message-dock-compose-window>.message-dock-window-body{padding:16px}
.message-dock-open .message-dock-compose-window .message-dock-list{flex:1;max-height:none;overflow:auto}
.message-dock-open .message-dock-compose-window .message-dock-row{padding:16px 28px 16px 0}
.message-dock-open .message-dock-compose-window .message-avatar{width:48px;height:48px;flex-basis:48px}
.message-dock-open .message-dock-compose-window .message-contact-title strong{font-size:16px}
dialog#editor{max-width:100vw;width:100vw;max-height:100dvh;margin:auto 0 0;border-radius:20px 20px 0 0}
dialog .dialog-header{padding:18px 20px}dialog .dialog-body{padding:20px}
}

@media(max-width:700px){
.message-dock-open .message-dock-windows,.message-dock-open .message-dock-window,.message-dock-open .message-dock-window-header,.message-dock-open .message-dock-window-body,.message-dock-open .message-dock-list{min-width:0!important;max-width:100%;box-sizing:border-box}
.topbar .global-profile-search-field input{border:0!important;box-shadow:none!important;background:transparent!important;padding:0!important;border-radius:0}
.topbar .global-profile-search-field svg{flex:0 0 18px}
.mobile-message-back{display:grid!important;place-items:center}
.message-dock-recent-window [aria-label="Minimise messaging"]{display:none}
.message-dock-open .message-dock-row-heading{flex-wrap:wrap;gap:3px}
.message-dock-open .message-dock-row-heading time{font-size:10px}
#mobile-menu-tools .persona-label{display:flex;flex-direction:column;width:100%;gap:6px}
#mobile-menu-tools select{min-height:44px;font-size:16px;width:100%}
#mobile-nav-backdrop{display:none;position:fixed;inset:0;z-index:150;background:#24182c55;border:0;width:100%;height:100%}
body.nav-open #mobile-nav-backdrop{display:block}
.sidebar #brand-person,.sidebar .sidebar-footer{display:block}
}
.mobile-message-back{display:none}
@media(min-width:701px){#mobile-nav-backdrop{display:none}}

@media(max-width:700px){
.topbar .global-profile-search-field{gap:8px}
.topbar .global-profile-search-field svg{position:static;transform:none}
.topbar .global-profile-search-field input{flex:1}
.topbar .global-profile-search-field:focus-within{outline:2px solid #8f70b7;outline-offset:1px}
.topbar .global-profile-search-field input:focus-visible{outline:0}
.message-dock-open .message-dock-preview{white-space:normal!important}
.message-dock-open .message-dock-row[hidden]{display:none!important}
.message-dock-open .message-dock-compose-window>.message-dock-window-header>strong{font-size:18px}
.message-dock-open .message-dock-row-heading time{max-width:100%}
}

@media(max-width:700px){
body:is(.mobile-messaging-open,.mobile-search-open,.nav-open) .public-demo-controls,body:is(.mobile-messaging-open,.mobile-search-open,.nav-open) .public-demo-tour{visibility:hidden;pointer-events:none}
#messaging-dock-root{z-index:500!important}
.mobile-search-open .topbar,.mobile-search-open .global-profile-search{z-index:510}
body .sidebar{z-index:410}#mobile-nav-backdrop{z-index:400}
}

/* Job rows become readable cards on phones, retaining all existing actions. */
@media(max-width:700px){
.jobs-responsive-list,.jobs-responsive-list .panel,.jobs-responsive-list .table-wrap{min-width:0;width:100%;max-width:100%;overflow:visible}
.jobs-responsive-list .panel{background:transparent;border:0;box-shadow:none}
.jobs-responsive-list .panel-header{padding:16px 0;border:0}
.jobs-responsive-list table{display:block;min-width:0!important;width:100%!important;table-layout:auto}
.jobs-responsive-list thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.jobs-responsive-list tbody{display:grid;gap:16px;width:100%}
.jobs-responsive-list tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 16px;padding:18px;border:1px solid #e4ddea;border-radius:16px;background:#fff;box-shadow:0 3px 12px #35214106}
.jobs-responsive-list tbody td{display:block;width:auto!important;min-width:0;max-width:none!important;padding:10px 0;border:0;white-space:normal!important;word-break:normal!important;overflow-wrap:break-word;font-size:14px;line-height:1.5}
.jobs-responsive-list tbody td::before{content:attr(data-job-field);display:block;margin-bottom:5px;color:#7a6c85;font-size:11px;font-weight:650;letter-spacing:.03em}
.jobs-responsive-list td[data-job-field="Role"]{grid-column:1/-1;padding:0 0 14px;border-bottom:1px solid #eee8f2;margin-bottom:4px}
.jobs-responsive-list td[data-job-field="Role"]::before{display:none}
.jobs-responsive-list td[data-job-field="Role"]>button,.jobs-responsive-list td[data-job-field="Role"]>a{display:block;width:auto;text-align:left;font-size:18px;font-weight:700;line-height:1.35;white-space:normal;word-break:normal}
.jobs-responsive-list td small{font-size:12px;line-height:1.5;white-space:normal;word-break:normal;overflow-wrap:break-word}
.jobs-responsive-list td[data-job-field="Lead recruiter"],.jobs-responsive-list td[data-job-field="Actions"]{grid-column:1/-1}
.jobs-responsive-list td[data-job-field="Actions"]{padding:14px 0 0;margin-top:4px;border-top:1px solid #eee8f2}
.jobs-responsive-list td[data-job-field="Actions"]::before{display:none}
.jobs-responsive-list .actions{display:flex;flex-wrap:wrap;gap:8px}
.jobs-responsive-list .actions .btn{flex:1 1 auto;width:auto;min-height:42px;white-space:normal;word-break:normal}
.jobs-responsive-list td[data-job-field="Lead recruiter"] .btn{width:auto;min-height:40px;margin-top:6px}
}

.phone-table-hint{display:none}
@media(max-width:700px){
/* Keep the working area visible once the demo introduction has scrolled away. */
body.public-demo{padding-top:0!important}
body.public-demo .public-demo-controls,body.public-demo .public-demo-tour{position:relative!important;top:auto!important;left:auto!important;right:auto!important;width:100%;box-sizing:border-box}
body.public-demo .public-demo-tour{scrollbar-width:none}
body.public-demo .public-demo-tour::-webkit-scrollbar{display:none}
.phone-record-wrap{overflow:visible!important;min-width:0;max-width:100%}
table.phone-record-table{display:block;width:100%!important;min-width:0!important;table-layout:auto}
.phone-record-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.phone-record-table tbody{display:grid;gap:14px;width:100%;padding:0}
.phone-record-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 14px;padding:16px;border:1px solid #e5deeb;border-radius:14px;background:#fff}
.phone-record-table tbody td{display:block;min-width:0;width:auto!important;max-width:none!important;padding:9px 0;border:0;white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere;font-size:14px;line-height:1.5}
.phone-record-table td::before{content:attr(data-phone-label);display:block;margin-bottom:5px;color:#7a6b86;font-size:11px;font-weight:650;letter-spacing:.02em}
.phone-record-table td.phone-record-wide{grid-column:1/-1}
.phone-record-table td:first-child{padding-top:0;padding-bottom:12px;margin-bottom:3px;border-bottom:1px solid #eee7f2}
.phone-record-table td:first-child::before{display:none}
.phone-record-table td:first-child>a,.phone-record-table td:first-child>button{font-size:16px;white-space:normal;word-break:normal}
.phone-record-table td small{font-size:12px;line-height:1.5;white-space:normal}
.phone-record-table .actions{display:flex;flex-wrap:wrap;gap:8px}
.phone-record-table .btn{min-height:42px;width:auto;max-width:100%;white-space:normal;word-break:normal}
.phone-record-table .actions>.btn{flex:1 1 auto}
.phone-table-hint{display:block;margin:10px 16px;color:#766684;font-size:12px}
.phone-scroll-table{overflow-x:auto!important;overscroll-behavior-x:contain;max-width:100%;-webkit-overflow-scrolling:touch}
#content .page-heading{gap:14px;min-width:0}
#content .page-heading>.actions{display:flex;flex-wrap:wrap;gap:8px;max-width:100%}
#content .page-heading>.actions>.btn{min-height:44px;width:auto;white-space:normal}
#content input:not([type=checkbox]):not([type=radio]),#content select,#content textarea,dialog input:not([type=checkbox]):not([type=radio]),dialog select,dialog textarea{font-size:16px;max-width:100%;min-width:0}
dialog#editor .dialog-header{position:sticky;top:0;z-index:5;background:#fff;padding:16px 20px}
dialog#editor .dialog-header h2{overflow-wrap:break-word;padding-right:8px}
dialog#editor .dialog-header button[aria-label="Close dialog"]{width:44px;height:44px;flex:0 0 44px}
dialog#editor .dialog-footer{padding-bottom:calc(14px + env(safe-area-inset-bottom))}
dialog .form-grid{grid-template-columns:minmax(0,1fr)!important}
dialog .field{min-width:0}
#content .toolbar{flex-wrap:wrap;gap:10px}
#content .toolbar input{min-width:0}
}

@media(max-width:700px){
.phone-record-table .candidate-name-tools{flex-wrap:wrap}
.phone-record-table .talent-pill,.phone-record-table .stage-picture-tag{max-width:100%;white-space:normal}
.phone-record-table td:first-child>a:has(img){display:inline-flex;vertical-align:middle;margin-right:9px}
.phone-record-table td:first-child:has(input[type=checkbox])::before{display:inline-block;margin-right:12px}
.phone-record-table td:has(input[type=checkbox]) input{width:20px;height:20px}
}

@media(max-width:700px){body.public-demo .topbar{top:0!important}}

/* Keep lead recruiter details and their action aligned on phone job cards. */
@media(max-width:700px){
.phone-record-table tbody td[data-phone-label="Lead recruiter"],
.jobs-responsive-list tbody td[data-job-field="Lead recruiter"]{
 display:grid;grid-column:1/-1;grid-template-columns:minmax(0,1fr) auto;
 align-items:center;column-gap:12px;row-gap:4px;
 padding:12px 0;border-top:1px solid #eee8f2;
}
.phone-record-table td[data-phone-label="Lead recruiter"]::before,
.jobs-responsive-list td[data-job-field="Lead recruiter"]::before{grid-column:1/-1;margin:0 0 3px}
.phone-record-table td[data-phone-label="Lead recruiter"] .btn,
.jobs-responsive-list td[data-job-field="Lead recruiter"] .btn{
 grid-column:2;grid-row:2;align-self:center;width:auto;max-width:130px;
 min-height:44px;margin:0;padding:9px 12px;font-size:12px;line-height:1.35;
 white-space:normal;word-break:normal;overflow-wrap:normal;
}
.phone-record-table td[data-phone-label="Lead recruiter"]>span,
.jobs-responsive-list td[data-job-field="Lead recruiter"]>span{
 grid-column:1;grid-row:2;min-width:0;margin:0;font-size:13px;line-height:1.45;
 overflow-wrap:break-word;
}
.phone-record-table td[data-phone-label="Lead recruiter"] small,
.jobs-responsive-list td[data-job-field="Lead recruiter"] small{font-size:11px;line-height:1.45}
}

/* Keep job rows scannable; secondary actions expand within their own row. */
.jobs-responsive-list .job-row-actions{display:flex;align-items:flex-start;gap:8px;min-width:170px}
.jobs-responsive-list .job-row-actions>.btn{white-space:nowrap;flex:none}
.jobs-responsive-list .job-row-more{margin:0;border:0;background:transparent;min-width:74px}
.jobs-responsive-list .job-row-more>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;list-style:none;cursor:pointer;padding:11px 12px;border:1px solid var(--border,#e4ddea);border-radius:10px;font-weight:600;font-size:14px;min-height:44px;box-sizing:border-box;color:inherit;background:transparent}
.jobs-responsive-list .job-row-more>summary::-webkit-details-marker{display:none}
.jobs-responsive-list .job-row-more>summary:focus-visible{outline:2px solid #9274d2;outline-offset:3px}
.jobs-responsive-list .job-row-options{display:grid;gap:4px;margin-top:8px;min-width:150px}
.jobs-responsive-list .job-row-options .btn{width:100%;text-align:left;justify-content:flex-start;box-shadow:none;background:transparent;min-height:42px}
.jobs-responsive-list .job-row-options [data-action="job.close.confirm"]{color:#a73544}
.jobs-responsive-list td[data-job-field="Actions"]{width:210px}
@media(min-width:901px){.jobs-responsive-list td[data-job-field="Lead recruiter"]{width:170px}.jobs-responsive-list td[data-job-field="Role"]{width:35%}}
@media(max-width:900px){.jobs-responsive-list .job-row-actions{width:100%}.jobs-responsive-list .job-row-actions>.btn{flex:1}.jobs-responsive-list .job-row-more[open]{flex:1}.jobs-responsive-list .job-row-options{min-width:0}}
html[data-theme=dark] .jobs-responsive-list .job-row-options [data-action="job.close.confirm"]{color:#ffabb6}
@media(min-width:701px){
.jobs-responsive-list table{table-layout:auto}
.jobs-responsive-list td[data-job-field="Hiring route"]{min-width:110px}
.jobs-responsive-list td[data-job-field="Lead recruiter"]{min-width:120px;word-break:normal;overflow-wrap:normal}
.jobs-responsive-list td[data-job-field="Status"]{min-width:70px}
.jobs-responsive-list td[data-job-field="Actions"]{min-width:230px}
.jobs-responsive-list td[data-job-field="Role"]{width:auto;min-width:200px}
}
