.profile-sharing-document-select-all{display:inline-flex;align-items:center;justify-content:center;align-self:flex-start;gap:7px;width:max-content;margin:9px 16px;padding:7px 10px;color:var(--text);font-size:11px;font-weight:700;background:var(--surface-2);border:1px solid var(--border);border-radius:7px;cursor:pointer}.profile-sharing-document-select-all:hover{border-color:var(--atsrs-field-accent)}.profile-sharing-document-select-all input{flex:0 0 auto;width:15px!important;height:15px!important;min-height:15px!important;margin:0!important;accent-color:var(--atsrs-field-accent)}
body.personal-mode #profilePage #profileTabSharingPanel{padding:12px 16px!important;overflow:hidden!important}
body.personal-mode #profilePage .profile-sharing-v1,body.personal-mode #profilePage .profile-sharing-v1 *{box-sizing:border-box}
body.personal-mode #profilePage .profile-sharing-v1{position:relative;display:grid;height:100%;min-height:0;grid-template-rows:108px minmax(0,1fr);gap:10px;color:var(--text)}
body.personal-mode #profilePage .profile-sharing-actions{position:absolute;z-index:4;top:0;right:0}
body.personal-mode #profilePage .profile-sharing-actions #profileSharingInlineActions[hidden]{display:none!important}
body.personal-mode #profilePage .profile-sharing-v1:not(.is-editing) .profile-sharing-setup{pointer-events:none}
body.personal-mode #profilePage .profile-sharing-v1:not(.is-editing) .profile-sharing-setup input{cursor:default}
body.personal-mode #profilePage .profile-sharing-setup{display:grid;grid-template-columns:minmax(0,466px) 230px;justify-content:start;gap:14px;min-height:0;padding:0;border:0;border-radius:0;background:transparent}
body.personal-mode #profilePage .profile-sharing-audience,body.personal-mode #profilePage .profile-sharing-expiry{min-width:0;margin:0;padding:0;border:0}body.personal-mode #profilePage .profile-sharing-audience legend,body.personal-mode #profilePage .profile-sharing-expiry>legend{display:block;margin:0 0 7px;padding:0;color:var(--text);font-size:10px;font-weight:700}
body.personal-mode #profilePage .profile-sharing-audience-grid{display:grid;grid-template-columns:minmax(0,180px);justify-content:start;gap:8px}
body.personal-mode #profilePage .profile-sharing-audience-grid label{position:relative;display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;gap:6px;min-width:0;height:48px;padding:5px 7px;border:1px solid var(--line);border-radius:7px;background:var(--surface);cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease}
body.personal-mode #profilePage .profile-sharing-audience-grid label:focus-within{border-color:var(--atsrs-field-focus-block-line) var(--atsrs-field-focus-inline-line);background:var(--surface-2);box-shadow:var(--atsrs-field-focus-shadow)}
body.personal-mode #profilePage .profile-sharing-audience-grid label.is-selected{border-color:var(--atsrs-field-focus-block-line) var(--atsrs-field-focus-inline-line);background:var(--surface-2);box-shadow:var(--atsrs-field-focus-shadow)}
body.personal-mode #profilePage .profile-sharing-audience-grid label.is-selected :is(i,strong){color:var(--atsrs-field-accent)}
body.personal-mode #profilePage .profile-sharing-audience-grid input{position:absolute;opacity:0;pointer-events:none}body.personal-mode #profilePage .profile-sharing-audience-grid i{display:grid;width:24px;height:24px;place-items:center;border-radius:6px;background:var(--surface-2);font-size:14px}body.personal-mode #profilePage .profile-sharing-audience-grid strong,body.personal-mode #profilePage .profile-sharing-audience-grid small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}body.personal-mode #profilePage .profile-sharing-audience-grid strong{font-size:10px}body.personal-mode #profilePage .profile-sharing-audience-grid small{margin-top:2px;color:var(--muted);font-size:8px}
body.personal-mode #profilePage .profile-sharing-expiry-options{display:grid;grid-template-columns:repeat(2,max-content);gap:6px 12px}body.personal-mode #profilePage .profile-sharing-expiry-options label{position:relative;display:flex;align-items:center;gap:6px;min-height:22px;color:var(--text);font-size:10px;cursor:pointer}body.personal-mode #profilePage .profile-sharing-expiry-options input{position:absolute;opacity:0;pointer-events:none}.profile-sharing-expiry-check{display:grid;width:16px;height:16px;place-items:center;border:1px solid var(--line);border-radius:4px;background:var(--surface);color:transparent;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease,color .16s ease}.profile-sharing-expiry-check i{font-size:11px;font-weight:900}.profile-sharing-expiry-options label.is-selected .profile-sharing-expiry-check{border-color:var(--atsrs-field-focus-block-line) var(--atsrs-field-focus-inline-line);background:var(--surface-2);color:var(--atsrs-field-accent);box-shadow:var(--atsrs-field-focus-shadow)}.profile-sharing-expiry-options label.is-selected>span:last-child{color:var(--atsrs-field-accent);font-weight:700}.profile-sharing-custom-expiry{position:relative;display:block;width:190px;height:30px;margin-top:6px}.profile-sharing-custom-expiry[hidden]{display:none!important}.profile-sharing-custom-expiry input{width:100%!important;height:30px!important;min-height:30px!important;padding:0 30px 0 8px!important;border:1px solid var(--line)!important;border-radius:7px!important;background:var(--surface)!important;color:var(--text)!important;font-size:10px!important}.profile-sharing-custom-expiry>i{position:absolute;top:7px;right:8px;color:var(--atsrs-field-accent);font-size:16px;pointer-events:none}
body.personal-mode #profilePage .profile-sharing-links{min-height:0;overflow:hidden}body.personal-mode #profilePage .profile-sharing-links>header{display:flex;align-items:center;gap:6px;height:24px;padding:0 4px}body.personal-mode #profilePage .profile-sharing-links>header strong{font-size:12px}body.personal-mode #profilePage .profile-sharing-links>header span{display:grid;min-width:18px;height:18px;place-items:center;border-radius:9px;background:var(--surface-2);font-size:9px}.profile-sharing-active-list{display:grid;min-height:0}.profile-sharing-row{display:grid;grid-template-columns:minmax(160px,.9fr) minmax(250px,1.45fr) minmax(210px,1.05fr) 70px minmax(92px,.5fr) auto;align-items:center;gap:10px;min-height:48px;padding:5px 8px;border-top:1px solid var(--line)}.profile-sharing-row-copy{display:flex;align-items:center;gap:8px;min-width:0}.profile-sharing-row-copy>i{display:grid;width:28px;height:28px;place-items:center;border-radius:50%;background:var(--surface-2)}.profile-sharing-row-copy strong,.profile-sharing-row-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-sharing-row-copy strong{font-size:10px}.profile-sharing-row-copy small,.profile-sharing-row-time{color:var(--muted);font-size:8px}.profile-sharing-row-status{color:#22c55e;font-size:9px}.profile-sharing-row-actions{display:flex;align-items:center;gap:4px}.profile-sharing-row-actions button{width:auto!important;height:24px!important;min-height:24px!important;padding:2px 7px!important;border:1px solid var(--line)!important;border-radius:6px!important;background:transparent!important;color:var(--text)!important;font-size:8px!important;line-height:1!important;white-space:nowrap}.profile-sharing-row-actions button.is-danger{color:#ef4444!important}.profile-sharing-empty{display:grid;height:70px;place-items:center;border-top:1px solid var(--line);color:var(--muted);font-size:10px}
html[data-theme="light"] body.personal-mode #profilePage :is(.profile-sharing-audience-grid label,.profile-sharing-expiry-check,.profile-sharing-custom-expiry input){background:#fff!important}
html[data-theme="light"] body.personal-mode #profilePage :is(.profile-sharing-audience-grid label.is-selected,.profile-sharing-expiry-options label.is-selected .profile-sharing-expiry-check){background:var(--surface-2)!important}
body.personal-mode #profilePage .profile-sharing-links>header{justify-content:space-between;height:30px}body.personal-mode #profilePage .profile-sharing-links>header .profile-sharing-links-heading{display:flex;align-items:center;gap:6px;width:auto;height:auto;padding:0;border-radius:0;background:transparent}body.personal-mode #profilePage .profile-sharing-links>header .profile-sharing-links-heading>span{display:grid;min-width:18px;height:18px;place-items:center;border-radius:9px;background:var(--surface-2);font-size:9px}body.personal-mode #profilePage .profile-sharing-links>header .profile-sharing-create-button>span{display:inline;width:auto;min-width:0;height:auto;padding:0;border-radius:0;background:transparent;font-size:inherit}.profile-sharing-create-button{display:inline-flex!important;align-items:center;justify-content:center;gap:5px;width:auto!important;height:28px!important;min-height:28px!important;padding:4px 10px!important;border:1px solid var(--atsrs-field-focus-inline-line)!important;border-radius:7px!important;background:var(--atsrs-field-accent)!important;color:#fff!important;font-size:9px!important;font-weight:800!important;box-shadow:none!important}.profile-sharing-create-button:hover:not(:disabled){filter:brightness(1.06)}.profile-sharing-create-button:disabled{cursor:default;opacity:.45}.profile-sharing-create-status{min-height:14px;padding:0 4px;color:var(--muted);font-size:8px}.profile-sharing-create-status.is-error{color:#ef4444}
.profile-sharing-document-dialog{width:min(720px,calc(100vw - 32px));max-height:min(680px,calc(100vh - 48px));padding:0;border:1px solid var(--line);border-radius:12px;background:color-mix(in srgb,var(--surface) 94%,transparent);color:var(--text);box-shadow:0 24px 70px rgba(0,0,0,.28);overflow:hidden}.profile-sharing-document-dialog::backdrop{background:rgba(2,6,8,.34);backdrop-filter:blur(1.5px)}html[data-theme="light"] .profile-sharing-document-dialog::backdrop{background:rgba(30,41,59,.18)}.profile-sharing-document-dialog>form{display:grid;max-height:inherit;grid-template-rows:auto minmax(0,1fr) auto}.profile-sharing-document-dialog header,.profile-sharing-document-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px}.profile-sharing-document-dialog header{border-bottom:1px solid var(--line)}.profile-sharing-document-dialog header strong,.profile-sharing-document-dialog header small{display:block}.profile-sharing-document-dialog header strong{font-size:13px}.profile-sharing-document-dialog header small{margin-top:2px;color:var(--muted);font-size:9px}.profile-sharing-document-dialog header button{display:grid!important;width:28px!important;height:28px!important;min-height:28px!important;padding:0!important;place-items:center;border:1px solid var(--line)!important;border-radius:7px!important;background:transparent!important;color:var(--text)!important}.profile-sharing-document-choices{display:grid;gap:6px;padding:12px 14px;overflow:auto}.profile-sharing-document-choice{display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:9px;min-height:42px;padding:7px 9px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}.profile-sharing-document-choice input{width:16px!important;height:16px!important;min-height:16px!important;margin:0!important;accent-color:var(--atsrs-field-accent)}.profile-sharing-document-choice span{min-width:0}.profile-sharing-document-choice strong,.profile-sharing-document-choice small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-sharing-document-choice strong{font-size:10px}.profile-sharing-document-choice small,.profile-sharing-document-choice>em{color:var(--muted);font-size:8px;font-style:normal}.profile-sharing-document-dialog footer{border-top:1px solid var(--line);justify-content:flex-end}.profile-sharing-document-dialog footer button{display:inline-flex!important;align-items:center;justify-content:center;gap:5px;width:auto!important;height:30px!important;min-height:30px!important;padding:5px 12px!important;border-radius:7px!important;font-size:9px!important;font-weight:800!important}.profile-sharing-dialog-cancel{border:1px solid var(--line)!important;background:transparent!important;color:var(--text)!important}.profile-sharing-dialog-confirm{border:1px solid var(--atsrs-field-focus-inline-line)!important;background:var(--atsrs-field-accent)!important;color:#fff!important}.profile-sharing-document-empty{padding:28px 12px;text-align:center;color:var(--muted);font-size:10px}
.profile-sharing-create-button,.profile-sharing-dialog-confirm{border-color:rgba(134,239,172,.72)!important;background:linear-gradient(135deg,#16a34a,#22c55e)!important;color:#fff!important;box-shadow:0 8px 18px rgba(34,197,94,.2)!important}.profile-sharing-create-button{height:30px!important;min-height:30px!important;padding:5px 12px!important;border-radius:8px!important}.profile-sharing-create-button:hover:not(:disabled),.profile-sharing-dialog-confirm:hover:not(:disabled){filter:brightness(1.07);box-shadow:0 10px 22px rgba(34,197,94,.28)!important}.profile-sharing-create-button:disabled,.profile-sharing-dialog-confirm:disabled{filter:saturate(.35);opacity:.45;box-shadow:none!important}
@media(max-width:760px){body.personal-mode #profilePage #profileTabSharingPanel{padding:12px!important;overflow-y:auto!important}body.personal-mode #profilePage .profile-sharing-v1{height:auto;grid-template-rows:auto auto}.profile-sharing-setup{grid-template-columns:minmax(0,150px) minmax(0,190px)!important;align-items:start!important}.profile-sharing-row{grid-template-columns:1fr auto!important}.profile-sharing-row-status{display:none}.profile-sharing-row-time{grid-column:1/-1}.profile-sharing-audience-grid{grid-template-columns:minmax(0,150px)!important;justify-content:start!important}.profile-sharing-audience-grid label{height:48px!important}.profile-sharing-expiry-options{grid-template-columns:1fr!important}.profile-sharing-custom-expiry{width:100%!important}}
.profile-sharing-document-dialog>form{grid-template-rows:auto minmax(0,1fr) auto}.profile-sharing-document-body{display:grid;grid-template-rows:auto auto minmax(0,1fr);min-height:0;overflow:hidden}.profile-sharing-recipient-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:14px 14px 4px}.profile-sharing-recipient-fields .profile-sharing-recipient-field{min-width:0}.profile-sharing-recipient-fields input::placeholder{color:var(--atsrs-field-muted);opacity:.72}
/* Match JobSearch exactly: the shell owns focus; the inner input must not add a second outline. */
html[data-theme] body .profile-sharing-document-dialog .profile-sharing-recipient-field.atsrs-field-shell>input,
html[data-theme] body .profile-sharing-document-dialog .profile-sharing-recipient-field.atsrs-field-shell>input:focus,
html[data-theme] body .profile-sharing-document-dialog .profile-sharing-recipient-field.atsrs-field-shell>input:focus-visible{border:0!important;outline:0!important;outline-offset:0!important;background:transparent!important;box-shadow:none!important;font-size:16px!important}
.profile-sharing-document-choice.is-latest-cv{border-color:color-mix(in srgb,var(--atsrs-field-accent) 48%,var(--line));background:color-mix(in srgb,var(--atsrs-field-accent) 5%,var(--surface))}
.profile-sharing-cv-history{display:block;align-self:start;width:100%;height:max-content;min-height:42px;border:1px solid var(--line);border-radius:8px;background:color-mix(in srgb,var(--surface-2) 70%,var(--surface));overflow:hidden}
.profile-sharing-cv-history>.profile-sharing-cv-history-toggle{position:relative;display:block!important;width:100%!important;height:auto!important;min-height:42px!important;margin:0!important;padding:7px 36px 7px 10px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:var(--text)!important;text-align:left!important;cursor:pointer}
.profile-sharing-cv-history>.profile-sharing-cv-history-toggle>span{display:grid;gap:2px;min-width:0}.profile-sharing-cv-history>.profile-sharing-cv-history-toggle strong{font-size:10px}.profile-sharing-cv-history>.profile-sharing-cv-history-toggle small{color:var(--muted);font-size:8px}.profile-sharing-cv-history>.profile-sharing-cv-history-toggle i{position:absolute;top:14px;right:11px;color:var(--muted);font-size:13px;transition:transform .16s ease}.profile-sharing-cv-history.is-open>.profile-sharing-cv-history-toggle i{transform:rotate(180deg)}
.profile-sharing-cv-history-list{display:grid;gap:6px;padding:0 8px 8px;border-top:1px solid var(--line)}.profile-sharing-cv-history-list .profile-sharing-document-choice{margin-top:6px;background:var(--surface)}
.profile-sharing-cv-history-list[hidden]{display:none!important}
.profile-sharing-document-select-all{background:var(--surface);border-color:var(--line)}
.profile-sharing-expiry{display:grid;grid-template-columns:max-content max-content;align-content:start;column-gap:12px}.profile-sharing-expiry>legend,.profile-sharing-expiry-options{grid-column:1}.profile-sharing-expiry>.profile-sharing-create-button{grid-column:2;grid-row:2;align-self:center}.profile-sharing-custom-expiry{grid-column:1}
.profile-sharing-v1:not(.is-editing) .profile-sharing-expiry>.profile-sharing-create-button{pointer-events:auto}

/* V17: keep the setup compact and reserve the lower half for the active-link list. */
body.personal-mode #profilePage .profile-sharing-v1{grid-template-rows:76px minmax(0,1fr);gap:0}
body.personal-mode #profilePage .profile-sharing-links-heading-floating{position:absolute;z-index:3;top:70px;right:0;display:flex;align-items:center;gap:6px;color:var(--text)}
body.personal-mode #profilePage .profile-sharing-links-heading-floating>strong{font-size:11px}
body.personal-mode #profilePage .profile-sharing-links-heading-floating>span{display:grid;min-width:18px;height:18px;place-items:center;border-radius:9px;background:var(--surface-2);font-size:9px}
body.personal-mode #profilePage .profile-sharing-expiry-main{display:flex;align-items:center;gap:12px;min-width:0}
body.personal-mode #app#app.app:not(.hidden) #profilePage#profilePage .profile-sharing-expiry-main>.profile-sharing-create-button{flex:0 0 116px;width:116px!important;height:48px!important;min-height:48px!important;margin:0!important;padding:6px 9px!important;border:1px solid var(--line)!important;border-radius:7px!important;background:var(--surface)!important;color:var(--text)!important;-webkit-text-fill-color:var(--text)!important;box-shadow:none!important;justify-content:flex-start!important;gap:7px!important}
body.personal-mode #app#app.app:not(.hidden) #profilePage#profilePage .profile-sharing-expiry-main>.profile-sharing-create-button>i{display:grid;width:28px;height:28px;flex:0 0 28px;place-items:center;border-radius:7px;background:var(--surface-2);font-size:14px}
body.personal-mode #app#app.app:not(.hidden) #profilePage#profilePage .profile-sharing-expiry-main>.profile-sharing-create-button>span{font-size:9px;font-weight:800;line-height:1.15;white-space:nowrap}
body.personal-mode #app#app.app:not(.hidden) #profilePage#profilePage .profile-sharing-expiry-main>.profile-sharing-create-button:is(:hover,:focus,:focus-visible):not(:disabled){filter:none;outline:0!important;border-color:var(--line)!important;background:var(--surface-2)!important;color:var(--text)!important;-webkit-text-fill-color:var(--text)!important;box-shadow:none!important}
body.personal-mode #profilePage .profile-sharing-v1:not(.is-editing) .profile-sharing-expiry-main>.profile-sharing-create-button{pointer-events:auto}
body.personal-mode #profilePage .profile-sharing-links{display:grid;grid-template-rows:14px minmax(0,1fr);min-height:0;overflow:hidden}
body.personal-mode #profilePage .profile-sharing-create-status{min-height:14px;padding:0 4px}
body.personal-mode #profilePage .profile-sharing-active-list{display:block;min-height:0;overflow:auto;border-top:1px solid var(--line)}
body.personal-mode #profilePage .profile-sharing-row{border-top:0;border-bottom:1px solid var(--line)}
.profile-sharing-row-requester,.profile-sharing-row-decisions{display:grid;align-content:center;gap:4px;min-width:0;min-height:24px}.profile-sharing-link-request{display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:1px 7px;min-width:0;padding:3px 8px;border-left:2px solid var(--atsrs-field-accent,#22c55e);border-radius:4px;background:color-mix(in srgb,var(--atsrs-field-accent,#22c55e) 5%,transparent)}.profile-sharing-link-request strong{grid-row:1/4;align-self:center;color:var(--text);font-size:9px;white-space:nowrap}.profile-sharing-link-request span{display:block;min-width:0;overflow:hidden;color:var(--muted);font-size:8px;line-height:1.15;text-overflow:ellipsis;white-space:nowrap}.profile-sharing-link-request .request-files{color:var(--atsrs-field-accent,#22c55e);font-weight:700}.profile-sharing-link-request-actions{display:flex;align-items:center;justify-content:flex-start;gap:5px;min-height:22px}.profile-sharing-link-request-actions button{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;min-width:0!important;height:22px!important;min-height:22px!important;max-height:22px!important;margin:0!important;padding:0 6px!important;border:1px solid var(--line)!important;border-radius:5px!important;background:var(--surface-2)!important;color:var(--text)!important;font-size:8px!important;line-height:1!important;box-sizing:border-box!important;box-shadow:none!important}.profile-sharing-link-request-actions button:not(.is-danger){border-color:color-mix(in srgb,var(--atsrs-field-accent,#22c55e) 58%,var(--line))!important;color:var(--atsrs-field-accent,#22c55e)!important}.profile-sharing-link-request-actions button.is-danger{color:#ef4444!important}.profile-sharing-request-state{display:inline-flex;align-items:center;justify-content:center;min-width:0;height:22px;min-height:22px;max-height:22px;padding:0 6px;border:1px solid var(--line);border-radius:5px;background:var(--surface-2);color:var(--muted);font-size:8px;font-weight:800;box-sizing:border-box}.profile-sharing-request-state.status-approved{border-color:color-mix(in srgb,var(--atsrs-field-accent,#22c55e) 48%,var(--line));color:var(--atsrs-field-accent,#22c55e)}.profile-sharing-request-state.status-declined,.profile-sharing-request-state.status-revoked,.profile-sharing-request-state.status-expired{color:#ef4444}.profile-sharing-row.is-email-focus{background:color-mix(in srgb,var(--atsrs-field-accent,#22c55e) 5%,var(--surface));box-shadow:inset 3px 0 0 var(--atsrs-field-accent,#22c55e);scroll-margin:120px}.profile-sharing-link-request.is-email-focus{background:color-mix(in srgb,var(--atsrs-field-accent,#22c55e) 11%,transparent)}
html[data-theme="dark"] body.personal-mode #profilePage .profile-sharing-row.is-email-focus,html[data-theme="dark"] body.personal-mode #profilePage .profile-sharing-link-request,html[data-theme="dark"] body.personal-mode #profilePage .profile-sharing-link-request.is-email-focus,html[data-theme="dark"] body.personal-mode #profilePage .profile-sharing-link-request-actions button,html[data-theme="dark"] body.personal-mode #profilePage .profile-sharing-request-state{background:var(--surface,#0b0f0d)!important}
html[data-theme="light"] body.personal-mode #profilePage .profile-sharing-row-status{color:#2563eb}
.profile-sharing-row.is-expired .profile-sharing-row-status{color:#ef4444!important;font-weight:800}.profile-sharing-row.is-revoked .profile-sharing-row-status,.profile-sharing-row.is-inactive .profile-sharing-row-status{color:var(--muted)!important}.profile-sharing-row.is-expired{opacity:1}.profile-sharing-row.is-revoked,.profile-sharing-row.is-inactive{opacity:.78}.profile-sharing-row.is-revoked .profile-sharing-row-copy>i,.profile-sharing-row.is-expired .profile-sharing-row-copy>i,.profile-sharing-row.is-inactive .profile-sharing-row-copy>i{color:var(--muted)}
@media(max-width:1100px){.profile-sharing-row{grid-template-columns:minmax(150px,1fr) minmax(210px,1.25fr) minmax(170px,1fr) 62px minmax(82px,.55fr) auto}.profile-sharing-link-request-actions button{min-width:0!important;padding-inline:6px!important}}
@media(max-width:760px){.profile-sharing-row{grid-template-columns:1fr auto!important}.profile-sharing-row-requester,.profile-sharing-row-decisions{grid-column:1/-1}.profile-sharing-row-decisions{justify-items:stretch}.profile-sharing-link-request-actions button{flex:1}}
body.personal-mode #profilePage .profile-sharing-empty{height:100%;min-height:70px;border-top:0}
html[data-theme="dark"] .profile-sharing-document-dialog{background:#080b0a!important}
html[data-theme="dark"] .profile-sharing-document-dialog>form{background:#080b0a!important}
html[data-theme="dark"] .profile-sharing-document-choice,html[data-theme="dark"] .profile-sharing-document-select-all{background:#0b0f0d!important}
@media(max-width:760px){body.personal-mode #profilePage .profile-sharing-v1{grid-template-rows:auto minmax(150px,1fr);padding-top:40px}body.personal-mode #profilePage .profile-sharing-links-heading-floating{top:auto;right:0;bottom:calc(100% - 40px)}.profile-sharing-expiry-main{align-items:flex-start!important}.profile-sharing-expiry-main>.profile-sharing-create-button{margin-top:0!important}}
.profile-sharing-custom-expiry.is-collapsed{display:none!important}

/* Keep the workspace height fixed while the share history scrolls inside its remaining track. */
body.personal-mode #profilePage .profile-sharing-v1{display:grid;height:100%;min-height:0;overflow:hidden}
body.personal-mode #profilePage .profile-sharing-history-only{display:grid;height:100%;min-height:0;grid-template-rows:34px minmax(0,1fr);overflow:hidden;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
body.personal-mode #profilePage .profile-sharing-history-only>header{display:flex;align-items:center;justify-content:flex-end;height:34px;padding:0 10px;border-bottom:1px solid var(--line)}
body.personal-mode #profilePage .profile-sharing-history-only .profile-sharing-links-heading{display:flex;align-items:center;gap:6px}
body.personal-mode #profilePage .profile-sharing-history-only .profile-sharing-links-heading>strong{font-size:10px}
body.personal-mode #profilePage .profile-sharing-history-only .profile-sharing-links-heading>span{display:grid;min-width:18px;height:18px;place-items:center;border-radius:9px;background:var(--surface-2);color:var(--atsrs-field-accent,#22c55e);font-size:9px}
body.personal-mode #profilePage .profile-sharing-history-only .profile-sharing-active-list{min-height:0;overflow:auto;border-top:0}
.employer-card.is-directory-focus{border-color:var(--atsrs-field-accent,#22c55e)!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--atsrs-field-accent,#22c55e) 30%,transparent),0 0 24px color-mix(in srgb,var(--atsrs-field-accent,#22c55e) 18%,transparent)!important}

/* Keep link actions inside their row even when global button sizing is loaded later. */
html[data-theme] body.personal-mode #app#app.app:not(.hidden) #profilePage#profilePage .profile-sharing-row{min-height:50px!important;padding-block:5px!important}
html[data-theme] body.personal-mode #app#app.app:not(.hidden) #profilePage#profilePage :is(.profile-sharing-row-actions,.profile-sharing-link-request-actions)>button{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;min-width:0!important;height:26px!important;min-height:26px!important;max-height:26px!important;margin:0!important;padding:0 8px!important;border-radius:6px!important;font-size:9px!important;line-height:1!important;box-sizing:border-box!important}
html[data-theme] body.personal-mode #app#app.app:not(.hidden) #profilePage#profilePage :is(.profile-sharing-row-actions,.profile-sharing-link-request-actions)>button>i{width:auto!important;height:auto!important;margin:0!important;font-size:10px!important;line-height:1!important}
html[data-theme] body.personal-mode #app#app.app:not(.hidden) #profilePage#profilePage :is(.profile-sharing-row-actions,.profile-sharing-link-request-actions)>button:hover{border-color:var(--atsrs-action-border-hover,var(--line))!important;background:var(--atsrs-action-surface-hover,var(--surface-2))!important;color:var(--text)!important;box-shadow:none!important;transform:none!important}
html[data-theme] body.personal-mode #app#app.app:not(.hidden) #profilePage#profilePage :is(.profile-sharing-row-actions,.profile-sharing-link-request-actions)>button:focus-visible{outline:2px solid var(--atsrs-field-accent,var(--accent))!important;outline-offset:2px!important;box-shadow:none!important;transform:none!important}

/* Server-backed sharing history: compact table rows and one ordered action group. */
body.personal-mode #profilePage .profile-sharing-row{grid-template-columns:minmax(180px,.95fr) minmax(250px,1.3fr) 80px minmax(210px,.9fr) minmax(0,430px);gap:10px;min-height:50px;padding:5px 10px}
body.personal-mode #profilePage .profile-sharing-row-requester{display:grid;gap:3px;min-width:0}
body.personal-mode #profilePage .profile-sharing-link-request{grid-template-columns:max-content minmax(0,1fr);min-height:32px;padding:4px 8px}
body.personal-mode #profilePage .profile-sharing-row-copy strong{font-size:11px}
body.personal-mode #profilePage .profile-sharing-row-copy small,body.personal-mode #profilePage .profile-sharing-row-time{font-size:9px}
body.personal-mode #profilePage .profile-sharing-row-copy>i{flex:0 0 28px;min-width:28px;max-width:28px}
body.personal-mode #profilePage .profile-sharing-row-copy>span{flex:1 1 auto;min-width:0;max-width:calc(100% - 36px);text-align:left}
body.personal-mode #profilePage .profile-sharing-row-copy :is(strong,small){width:100%;max-width:100%;text-align:left}
body.personal-mode #profilePage .profile-sharing-row-time.profile-sharing-dates{display:flex;align-items:center;gap:12px;white-space:nowrap;color:var(--text);font-weight:700;line-height:1.25}
body.personal-mode #profilePage .profile-sharing-row-time.profile-sharing-dates span{display:block}
body.personal-mode #profilePage .profile-sharing-row-status{font-size:10px}
body.personal-mode #profilePage .profile-sharing-link-request strong{font-size:10px}
body.personal-mode #profilePage .profile-sharing-link-request span{font-size:9px}
body.personal-mode #profilePage .profile-sharing-no-request{color:var(--muted);font-size:9px}
body.personal-mode #profilePage .profile-sharing-row-actions{justify-content:flex-end;flex-wrap:nowrap;min-width:0;max-width:100%;overflow-x:auto;white-space:nowrap}
body.personal-mode #profilePage :is(.profile-sharing-row-status,.profile-sharing-row-time){justify-self:start;text-align:left}
html[data-theme] body.personal-mode #app#app.app:not(.hidden) #profilePage#profilePage .profile-sharing-row-actions>button:is(.is-copy,.is-recruiter){width:96px!important;min-width:96px!important;max-width:96px!important;flex:0 0 96px!important}
body.personal-mode #profilePage .profile-sharing-row-actions>button.is-approve{border-color:color-mix(in srgb,var(--atsrs-field-accent,#22c55e) 58%,var(--line))!important;color:var(--atsrs-field-accent,#22c55e)!important}
body.personal-mode #profilePage .profile-sharing-row-actions>button.is-decline,body.personal-mode #profilePage .profile-sharing-row-actions>button.is-revoke,body.personal-mode #profilePage .profile-sharing-row-actions>button.is-delete{border-color:color-mix(in srgb,#ef4444 58%,var(--line))!important;color:#ef4444!important}
body.personal-mode #profilePage .profile-sharing-row-actions>button.is-edit{color:var(--text)!important}
@media(max-width:1100px){body.personal-mode #profilePage .profile-sharing-row{grid-template-columns:minmax(145px,.9fr) minmax(180px,1fr) 62px minmax(190px,.9fr) minmax(0,430px)}}
@media(max-width:760px){body.personal-mode #profilePage .profile-sharing-row{grid-template-columns:1fr auto!important}.profile-sharing-row-requester{grid-column:1/-1}.profile-sharing-row-actions{grid-column:1/-1;justify-content:flex-start!important;max-width:100%;overflow-x:auto}.profile-sharing-row-actions>button{flex:0 0 auto!important}}
html[data-theme] body.personal-mode #app#app.app:not(.hidden) #profilePage#profilePage .profile-sharing-link-request-actions>button:not(.is-danger){border-color:color-mix(in srgb,var(--atsrs-field-accent,#22c55e) 58%,var(--line))!important;background:var(--surface,#0b0f0d)!important;color:var(--atsrs-field-accent,#22c55e)!important;-webkit-text-fill-color:var(--atsrs-field-accent,#22c55e)!important}
html[data-theme] body.personal-mode #app#app.app:not(.hidden) #profilePage#profilePage .profile-sharing-link-request-actions>button.is-danger{border-color:color-mix(in srgb,#ef4444 58%,var(--line))!important;background:var(--surface,#0b0f0d)!important;color:#ef4444!important;-webkit-text-fill-color:#ef4444!important}
html[data-theme] body.personal-mode #app#app.app:not(.hidden) #profilePage#profilePage .profile-sharing-link-request-actions>button:not(.is-danger):hover{border-color:var(--atsrs-field-accent,#22c55e)!important;background:color-mix(in srgb,var(--atsrs-field-accent,#22c55e) 7%,var(--surface,#0b0f0d))!important;color:var(--atsrs-field-accent,#22c55e)!important;-webkit-text-fill-color:var(--atsrs-field-accent,#22c55e)!important}
html[data-theme] body.personal-mode #app#app.app:not(.hidden) #profilePage#profilePage .profile-sharing-link-request-actions>button.is-danger:hover{border-color:#ef4444!important;background:color-mix(in srgb,#ef4444 7%,var(--surface,#0b0f0d))!important;color:#ef4444!important;-webkit-text-fill-color:#ef4444!important}
body.personal-mode #profilePage .profile-sharing-row:not(.profile-sharing-request-row){grid-template-columns:minmax(160px,.9fr) minmax(230px,1.25fr) 80px minmax(126px,.62fr) minmax(0,430px)}
body.personal-mode #profilePage .profile-sharing-file-summary{color:var(--atsrs-field-accent);font-size:9px;font-weight:700}
body.personal-mode #profilePage .profile-sharing-row-actions>button.is-view-files{border-color:color-mix(in srgb,var(--atsrs-field-accent) 45%,var(--line))!important;color:var(--atsrs-field-accent)!important}
.profile-sharing-files-dialog{width:min(980px,calc(100vw - 40px))}
.profile-sharing-files-dialog[open]{display:grid!important;grid-template-rows:auto auto minmax(0,1fr) auto;max-height:min(760px,calc(100vh - 40px))}
.profile-sharing-files-dialog header{padding:18px 20px}.profile-sharing-files-dialog header strong{font-size:18px;line-height:1.25}.profile-sharing-files-dialog header small{margin-top:5px;font-size:12px;line-height:1.35}.profile-sharing-files-dialog header button{width:36px!important;height:36px!important;min-height:36px!important;font-size:18px!important}
.profile-sharing-files-details{padding:16px 20px;border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--surface-2) 72%,transparent)}.profile-sharing-files-details dl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0}.profile-sharing-files-details .profile-sharing-detail{display:grid;align-content:center;min-width:0;min-height:64px;padding:11px 13px;border:1px solid var(--line);border-radius:9px;background:var(--surface)}.profile-sharing-files-details dt{margin:0 0 5px;color:var(--muted);font-size:10px;font-weight:900;letter-spacing:.055em;text-transform:uppercase}.profile-sharing-files-details dd{margin:0;overflow:hidden;color:var(--text);font-size:13px;font-weight:750;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.profile-sharing-files-details .is-active{color:var(--atsrs-field-accent)}.profile-sharing-files-details .is-expired,.profile-sharing-files-details .is-revoked{color:#ef4444}
.profile-sharing-files-list{display:grid;align-content:start;gap:10px;min-height:0;padding:18px 20px;overflow:auto}.profile-sharing-files-dialog .profile-sharing-document-empty{padding:40px 18px;font-size:13px;line-height:1.5}
.profile-sharing-file{display:grid;grid-template-columns:minmax(0,1fr) minmax(92px,120px) 32px;align-items:center;column-gap:16px;min-width:0;padding:13px 15px;border:1px solid var(--line);border-radius:9px;background:var(--surface-2)}
.profile-sharing-file>span{display:grid;gap:5px;min-width:0}.profile-sharing-file strong{overflow-wrap:anywhere;color:var(--text);font-size:14px}.profile-sharing-file small{color:var(--muted);font-size:12px}.profile-sharing-file em{grid-column:2;justify-self:end;min-width:0;text-align:right;color:var(--atsrs-field-accent);font-size:12px;font-style:normal;font-weight:700}.profile-sharing-file.is-unavailable em{color:#ef4444}
.profile-sharing-files-dialog .profile-sharing-file-remove{grid-column:3;display:grid!important;place-items:center;justify-self:end;width:28px!important;min-width:28px!important;height:28px!important;min-height:28px!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:var(--muted)!important;cursor:pointer}.profile-sharing-files-dialog .profile-sharing-file-remove:hover,.profile-sharing-files-dialog .profile-sharing-file-remove:focus-visible{border:0!important;background:transparent!important;box-shadow:none!important;color:#ef4444!important}.profile-sharing-files-dialog .profile-sharing-file-remove:focus-visible{outline:2px solid color-mix(in srgb,#ef4444 68%,transparent);outline-offset:2px}.profile-sharing-files-dialog .profile-sharing-file-remove:disabled{opacity:.5;cursor:wait}
.profile-sharing-files-warning{margin:0;padding:13px 20px;border-top:1px solid var(--line);color:var(--muted);font-size:12px;line-height:1.5}.profile-sharing-files-warning[hidden]{display:none!important}
@media(max-width:1100px){body.personal-mode #profilePage .profile-sharing-row:not(.profile-sharing-request-row){grid-template-columns:minmax(130px,.9fr) minmax(180px,1.2fr) 62px minmax(92px,.55fr) minmax(0,430px)}}
@media(max-width:760px){body.personal-mode #profilePage .profile-sharing-row:not(.profile-sharing-request-row){grid-template-columns:1fr auto!important}.profile-sharing-files-dialog{width:calc(100vw - 24px)}.profile-sharing-file{grid-template-columns:minmax(0,1fr) minmax(62px,auto) 28px;column-gap:9px}.profile-sharing-recipient-fields{grid-template-columns:1fr}.profile-sharing-files-details dl{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Full share-link editor: recipient data, duration and documents stay inside one stable modal. */
.profile-sharing-document-body{grid-template-rows:auto auto auto minmax(0,1fr)}
.profile-sharing-dialog-expiry{min-width:0;margin:8px 14px 0;padding:0;border:0}
.profile-sharing-dialog-expiry legend{margin:0 0 5px;color:var(--muted);font-size:8px;font-weight:800}
.profile-sharing-dialog-expiry-options{display:flex;align-items:center;gap:7px;min-width:0;flex-wrap:wrap}
.profile-sharing-dialog-expiry-options>label:not(.profile-sharing-dialog-custom-expiry){box-sizing:border-box;display:inline-flex;align-items:center;gap:5px;height:34px;min-height:34px;padding:0 10px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--text);font-size:9px;font-weight:750;cursor:pointer}
.profile-sharing-dialog-expiry-options>label.is-selected{border-color:var(--atsrs-field-accent);background:color-mix(in srgb,var(--atsrs-field-accent) 8%,var(--surface))}
.profile-sharing-dialog-expiry-options input[type="radio"]{width:14px!important;height:14px!important;min-height:14px!important;margin:0!important;accent-color:var(--atsrs-field-accent)}
.profile-sharing-dialog-custom-expiry{position:relative;display:inline-flex;align-items:center;min-width:150px}
.profile-sharing-dialog-custom-expiry[hidden]{display:none!important}
.profile-sharing-dialog-custom-expiry input{box-sizing:border-box;width:100%!important;height:34px!important;min-height:34px!important;margin:0!important;padding:0 30px 0 10px!important;border:0!important;border-radius:7px!important;outline:0!important;background:transparent!important;color:var(--text)!important;font-size:9px!important;box-shadow:none!important}
.profile-sharing-dialog-custom-expiry i{position:absolute;right:9px;pointer-events:none;color:var(--atsrs-field-accent)}
@media(max-width:760px){.profile-sharing-document-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}.profile-sharing-dialog-expiry-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.profile-sharing-dialog-custom-expiry{grid-column:1/-1;width:100%}}

/* One field/card system for both light and dark share dialogs. */
.profile-sharing-document-dialog{--profile-share-field-bg:#0b0f0d;--profile-share-field-border:rgba(148,163,184,.22);--profile-share-field-hover:rgba(34,197,94,.42)}
html[data-theme="light"] .profile-sharing-document-dialog{--profile-share-field-bg:#fff;--profile-share-field-border:#d8e1ec;--profile-share-field-hover:rgba(37,99,235,.42)}
.profile-sharing-document-dialog :is(.profile-sharing-dialog-expiry-options>label:not(.profile-sharing-dialog-custom-expiry),.profile-sharing-document-select-all,.profile-sharing-document-choice,.profile-sharing-files-details .profile-sharing-detail,.profile-sharing-file){border-color:var(--profile-share-field-border)!important;background:var(--profile-share-field-bg)!important;box-shadow:none!important}
.profile-sharing-document-dialog :is(.profile-sharing-dialog-expiry-options>label:not(.profile-sharing-dialog-custom-expiry),.profile-sharing-document-select-all,.profile-sharing-document-choice,.profile-sharing-files-details .profile-sharing-detail,.profile-sharing-file):hover{border-color:var(--profile-share-field-hover)!important}
.profile-sharing-document-dialog .profile-sharing-dialog-expiry-options>label.is-selected{border-color:var(--atsrs-field-accent)!important;background:color-mix(in srgb,var(--atsrs-field-accent) 8%,var(--profile-share-field-bg))!important}
.profile-sharing-document-dialog .profile-sharing-dialog-custom-expiry input:is(:hover,:focus,:focus-visible){border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important}
