
.fs-settings-button{display:inline-flex;align-items:center;gap:7px;flex:none;border:1px solid #d9e5f8;border-radius:9px;background:#f4f8ff;color:#2478e8;padding:10px 14px;font:500 14px/20px inherit;cursor:pointer}
.feishu-dialog{width:min(1040px,calc(100vw - 64px));max-height:86vh;border:1px solid #e3e9f1;border-radius:18px;padding:0;color:#19314e;background:white;box-shadow:0 24px 80px #19314e25}
.feishu-dialog::backdrop{background:#203c5c55;backdrop-filter:blur(3px)}
.feishu-dialog header{display:flex;align-items:center;justify-content:space-between;padding:22px 26px;border-bottom:1px solid #e8edf4}.feishu-dialog h2{font-size:21px;margin:0;font-weight:600}.feishu-dialog h3{font-size:16px;margin:0;font-weight:500}.feishu-dialog-body{padding:24px 26px}.feishu-dialog fieldset{display:grid;grid-template-columns:150px 1fr 1fr auto;gap:14px;align-items:end;padding:0;margin:0;border:0}.feishu-dialog label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:500}.feishu-dialog :is(input,select){box-sizing:border-box;width:100%;min-height:38px;padding:8px 11px;border:1px solid #dce4ef;border-radius:8px;background:#fff;color:#233c59;font:400 14px/20px 'PingFang SC',sans-serif}.feishu-dialog input:focus{outline:2px solid #b8d8ff;outline-offset:1px}.feishu-platform-select select{appearance:auto}.feishu-platform-select i{display:none}.feishu-dialog button{min-height:38px;border:1px solid #dce4ef;border-radius:8px;padding:8px 13px;background:#fff;color:#38516e;font-size:14px;cursor:pointer}.feishu-dialog button[type=submit]{color:#1978eb;background:#f4f8ff;border-color:#cbdfff}.feishu-hint{font-size:12px;line-height:1.6;color:#7b899b;margin:10px 0 0;min-height:20px}.feishu-title-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:26px 0 14px}.feishu-title-row input{width:230px}.feishu-mapping-viewport{max-height:42vh;overflow:auto;border:1px solid #e3e9f1;border-radius:10px}.feishu-dialog table{border-collapse:collapse;width:100%;font-size:14px}.feishu-dialog th{position:sticky;top:0;background:#f5f8fc;color:#63758e;font-size:12px;font-weight:500;text-align:left;padding:12px 16px}.feishu-dialog td{padding:12px 16px;border-top:1px solid #e8edf4;font-weight:400}.feishu-dialog th:first-child{width:38%}.feishu-dialog th:last-child{width:26%}
@media(max-width:760px){.feishu-dialog fieldset{grid-template-columns:1fr 1fr}.feishu-dialog{width:calc(100vw - 24px)}.feishu-dialog-body{padding:18px}.feishu-dialog td,.feishu-dialog th{padding:10px}.feishu-title-row input{width:180px}}

#hiringJobHistoryPage .hiring-history-tabs{align-items:center}
#hiringJobHistoryPage .hiring-history-tabs .fs-settings-button{margin-left:auto;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:7px;align-self:center;min-height:36px;padding:8px 14px;border:1px solid #1677ff;border-radius:8px;background:#1677ff;color:#fff;font:500 14px/20px 'PingFang SC',sans-serif;box-shadow:none;white-space:nowrap}
#hiringJobHistoryPage .hiring-history-tabs .fs-settings-button::after{display:none}
#hiringJobHistoryPage .hiring-history-tabs .fs-settings-button:hover{background:#0868ee;border-color:#0868ee}
#hiringJobHistoryPage .hiring-history-tabs .fs-settings-button svg{width:16px;height:16px;color:inherit;flex:none}
#hiringJobHistoryPage .hiring-history-tabs button.fs-settings-button{height:36px!important;padding:8px 14px!important;border:1px solid #1677ff!important;border-radius:8px!important;background:#1677ff!important;color:white!important;font-size:14px!important;font-weight:500!important;line-height:20px!important}

/* Align with talent column action .wadd, including box sizing. */
#hiringJobHistoryPage .hiring-history-tabs button.fs-settings-button{box-sizing:border-box;height:34px!important;min-height:34px!important;max-height:34px!important;padding:0 12px!important;margin:0 0 8px auto!important;border-radius:8px!important;font-size:12px!important;line-height:20px!important;font-weight:500!important;background:var(--workbench-brand-blue,#0079ff)!important;border-color:var(--workbench-brand-blue,#0079ff)!important;align-self:center}
#hiringJobHistoryPage .hiring-history-tabs button.fs-settings-button svg{width:14px;height:14px}

#hiringJobHistoryPage .hiring-history-tabs>button.fs-settings-button::before{display:none!important;content:none!important}

/* Match existing workspace management dialogs: .modal .mh and controls. */
#feishuSettings{box-sizing:border-box;width:min(820px,calc(100vw - 40px));max-height:calc(100dvh - 48px);border:1px solid #e4e9f1;border-radius:14px;box-shadow:0 20px 64px #18365424;color:#29415d;overflow:auto}
#feishuSettings::backdrop{background:#20364d50;backdrop-filter:blur(2px)}
#feishuSettings>header{box-sizing:border-box;min-height:56px;padding:12px 20px;gap:16px;align-items:center}
#feishuSettings h2{font:600 16px/24px 'PingFang SC',sans-serif;margin:0;color:#213953}
#feishuSettings header form{margin:0;display:flex}
#feishuSettings .feishu-dialog-close{display:inline-flex;align-items:center;justify-content:center;min-width:28px;width:28px;height:28px;min-height:28px;padding:0;border:0;background:transparent;color:#7a899b;border-radius:6px}
#feishuSettings .feishu-dialog-close:hover{background:#f3f6fa;color:#29415d}
#feishuSettings .feishu-dialog-close svg{display:block;width:18px;height:18px}
#feishuSettings .feishu-dialog-body{padding:20px}
#feishuSettings fieldset{grid-template-columns:126px minmax(0,1fr) minmax(0,1fr) auto;gap:12px}
#feishuSettings label{gap:6px;font-size:12px;line-height:18px;color:#6d7f95;font-weight:400}
#feishuSettings :is(input,select){height:34px;min-height:34px;padding:6px 10px;border-radius:7px;background:#fafbfd;border-color:#e2e8f0;font:400 13px/20px 'PingFang SC',sans-serif}
#feishuSettings input::placeholder{color:#a0adbd;font-weight:400}
#feishuSettings #feishuCredentials button{box-sizing:border-box;min-height:34px;height:34px;padding:0 12px;border:1px solid var(--workbench-brand-blue,#0079ff);border-radius:7px;background:var(--workbench-brand-blue,#0079ff);color:#fff;font:500 12px/20px 'PingFang SC',sans-serif;white-space:nowrap}
#feishuSettings .feishu-hint{font-size:12px;line-height:18px;color:#8b99ab;margin:8px 0 0;min-height:18px;font-weight:400}
#feishuSettings .feishu-title-row{margin:20px 0 10px;gap:12px}
#feishuSettings h3{font:500 14px/22px 'PingFang SC',sans-serif;color:#344c68}
#feishuSettings .feishu-title-row input{width:190px;height:32px;min-height:32px;background:#fff}
#feishuSettings .feishu-mapping-viewport{border-radius:8px;max-height:38vh;border-color:#e5eaf2}
#feishuSettings table{table-layout:fixed;font-size:13px}
#feishuSettings th{padding:10px 12px;font:400 12px/18px 'PingFang SC',sans-serif;color:#8290a4;background:#f7f9fc}
#feishuSettings td{padding:9px 12px;line-height:20px;color:#49617d;overflow-wrap:anywhere;border-color:#edf0f5}
#feishuSettings td:first-child{color:#304b69}
#feishuSettings th:first-child{width:38%}#feishuSettings th:nth-child(2){width:11%}#feishuSettings th:nth-child(3){width:17%}#feishuSettings th:last-child{width:34%}
#feishuSettings td input{height:32px;min-height:32px;background:#fff;font-size:12px}
#feishuSettings #feishuMappingStatus:empty{display:none}
@media(max-width:680px){#feishuSettings fieldset{grid-template-columns:1fr 1fr}#feishuSettings .feishu-dialog-body{padding:16px}#feishuSettings table{min-width:620px}#feishuSettings .feishu-title-row input{width:170px}}

#feishuSettings .feishu-platform-select{display:block;position:relative}
#feishuSettings .feishu-platform-select select{appearance:none!important;-webkit-appearance:none!important;padding-right:32px;background-image:none!important;cursor:pointer}
#feishuSettings .feishu-platform-select::after{content:'';position:absolute;width:6px;height:6px;right:13px;top:12px;border-right:1.5px solid #7d8fa5;border-bottom:1.5px solid #7d8fa5;transform:rotate(45deg);pointer-events:none}
#feishuSettings .feishu-dialog-close{width:30px;height:30px;min-height:30px;min-width:30px;border:1px solid #dce3ec;border-radius:50%;background:#fff;color:#718096}
/* V20261112.3.012 — both sourcing tabs share the entry; only mappings scroll. */
#mzSourcingHeader .integration-actions #feishuSettingsButton{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;height:36px;min-height:36px;padding:0 14px;border:1px solid #007aff;border-radius:8px;background:#007aff;color:#fff;font:400 14px/20px inherit;cursor:pointer}
#mzSourcingHeader .integration-actions #feishuSettingsButton:hover{background:#006ce3}
#feishuSettings[open]{display:flex;flex-direction:column;max-height:min(86vh,760px);overflow:hidden}
#feishuSettings>header{flex:none}
#feishuSettings .feishu-dialog-body{display:flex;flex-direction:column;gap:0;min-height:0;overflow:hidden;flex:1;padding-bottom:0}
#feishuSettings #feishuCredentials{flex:none}
#feishuSettings .feishu-dialog-body>section{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
#feishuSettings .feishu-title-row{flex:none}
#feishuSettings .feishu-mapping-viewport{flex:1;min-height:100px;max-height:38vh;overflow:auto;overscroll-behavior:contain}
#feishuSettings .feishu-save-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex:none;padding:16px 20px;border-top:1px solid #e8edf4;background:#fff}
#feishuSettings .feishu-save-footer>span{margin-right:auto;color:#8b99ab;font-size:12px;line-height:20px}
#feishuSettings #feishuSaveMappings,#feishuSettings #feishuCredentials button[type=submit]{background:#007aff;color:white;border-color:#007aff;font-weight:400}
#feishuSettings button:disabled{opacity:.45;cursor:not-allowed}
#feishuSettings .feishu-hint[data-state=error],#feishuSettings [data-state=error]{color:#d92d20}
#feishuSettings .feishu-hint[data-state=success],#feishuSettings [data-state=success]{color:#16825d}
#feishuSettings .feishu-hint[data-state=checking]{color:#007aff;display:flex;align-items:center;gap:7px}
#feishuSettings .feishu-hint[data-state=checking]:before{content:'';width:12px;height:12px;border:2px solid #d6e9ff;border-top-color:#007aff;border-radius:50%;animation:fs-check-spin .8s linear infinite}
@keyframes fs-check-spin{to{transform:rotate(360deg)}}
@media(max-height:600px){#feishuSettings[open]{max-height:94vh}#feishuSettings .feishu-dialog-body{padding-top:12px}#feishuSettings .feishu-title-row{margin-top:10px}#feishuSettings>header{padding:12px 20px}}
@media(prefers-reduced-motion:reduce){#feishuSettings .feishu-hint[data-state=checking]:before{animation:none}}

/* V20261112.3.013 — space between mapping table and fixed save footer. */
#feishuSettings .feishu-dialog-body{padding-bottom:18px!important}
#feishuSettings #feishuMappingStatus:empty{display:none}
