/* Shared favorite button and menu across public Shangan pages. */
body[data-selection-theme="shangan"] .unified-favorite-wrap{position:relative;display:inline-flex;align-items:stretch;min-width:0;max-width:100%;overflow:visible!important;vertical-align:middle}
body[data-selection-theme="shangan"] .position-favorite-native{display:none!important}
body[data-selection-theme="shangan"] .unified-favorite-wrap>.position-favorite-trigger{display:flex;align-items:center;justify-content:center;gap:5px;width:100%;min-width:0;height:38px;padding:0 9px!important;border:1px solid #df6973!important;border-radius:9px!important;background:#fff6f7!important;color:#bd1426!important;box-shadow:none!important;font-family:inherit;font-size:13px!important;font-weight:800;line-height:1.2;white-space:nowrap;cursor:pointer}
body[data-selection-theme="shangan"] .unified-favorite-wrap>.position-favorite-trigger .favorite-star{width:17px;height:17px;flex:none}
body[data-selection-theme="shangan"] .unified-favorite-wrap>.position-favorite-trigger .favorite-chevron{width:10px;height:10px;flex:none}
body[data-selection-theme="shangan"] .unified-favorite-wrap>.position-favorite-trigger[data-favorite-state="focus"]{background:#e60012!important;border-color:#e60012!important;color:#fff!important}
body[data-selection-theme="shangan"] .unified-favorite-wrap>.position-favorite-trigger[data-favorite-state="backup"]{background:#2370db!important;border-color:#2370db!important;color:#fff!important}
body[data-selection-theme="shangan"] .position-favorite-trigger[data-favorite-state]:not([data-favorite-state=""]) .favorite-star{fill:currentColor}
body[data-selection-theme="shangan"] .position-favorite-trigger[aria-expanded="true"] .favorite-chevron{transform:rotate(180deg)}
body[data-selection-theme="shangan"] .position-favorite-menu{z-index:500;padding:6px;border:1px solid #dfe6ef;border-radius:13px;background:#fff;box-shadow:0 8px 28px rgba(26,47,74,.15);display:grid;gap:3px;max-height:220px;overflow-y:auto}
body[data-selection-theme="shangan"] .position-favorite-menu[hidden],body[data-selection-theme="shangan"] .position-favorite-menu button[hidden]{display:none!important}
body[data-selection-theme="shangan"] .position-favorite-menu button{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;height:auto;padding:0 12px!important;border:0!important;border-radius:8px;background:#fff!important;text-align:left;color:#2b2f35!important;font-family:inherit;font-size:14px!important;font-weight:700;cursor:pointer;box-shadow:none!important}
body[data-selection-theme="shangan"] .position-favorite-menu button i{width:8px;height:8px;flex:none;border-radius:50%;background:#e60012}
body[data-selection-theme="shangan"] .position-favorite-menu button[data-position-favorite-choice="backup"] i{background:#2370db}
body[data-selection-theme="shangan"] .position-favorite-menu button b{margin-left:auto;visibility:hidden;color:inherit}
body[data-selection-theme="shangan"] .position-favorite-menu button[aria-pressed="true"] b{visibility:visible}
body[data-selection-theme="shangan"] .position-favorite-menu button[data-position-favorite-choice="focus"]{color:#bc1626!important}
body[data-selection-theme="shangan"] .position-favorite-menu button[data-position-favorite-choice="backup"]{color:#2160ac!important}
body[data-selection-theme="shangan"] .position-favorite-menu button[data-position-favorite-choice="focus"][aria-pressed="true"]{background:#fff0f2!important}
body[data-selection-theme="shangan"] .position-favorite-menu button[data-position-favorite-choice="backup"][aria-pressed="true"]{background:#edf4ff!important}
body[data-selection-theme="shangan"] .position-favorite-menu button[data-position-favorite-choice=""]{justify-content:center;min-height:40px;margin-top:4px;border-top:1px solid #edf0f5!important;border-radius:0;color:#69788b!important;font-size:13px!important;font-weight:500}
body[data-selection-theme="shangan"] .position-favorite-menu button:hover{background:#f5f7fb!important}
body[data-selection-theme="shangan"] .position-favorite-trigger:focus-visible{outline:2px solid #e60012;outline-offset:2px}
body[data-selection-theme="shangan"] .sel-tools>.unified-favorite-wrap{flex:1 1 auto}
body[data-selection-theme="shangan"] :is(.m-report-job-actions,.assistant-job-actions,.m-exam-position-actions,.report-job-actions)>.unified-favorite-wrap{flex:1 1 0;width:100%}
body[data-selection-theme="shangan"] .pc-exam-position-side>.unified-favorite-wrap{width:100%}
body[data-selection-theme="shangan"] .pc-position-row-actions .unified-favorite-wrap{width:100%}
body[data-selection-theme="shangan"] .pool-mark-control.unified-favorite-wrap{padding:0;border:0;background:transparent}
body[data-selection-theme="shangan"] .reg-job-pool.unified-favorite-wrap{padding:0;background:transparent;border:0}
body.mobile[data-selection-theme="shangan"] .unified-favorite-wrap>.position-favorite-trigger{padding:0 6px!important;gap:4px}
@media(max-width:360px){body.mobile[data-selection-theme="shangan"] .unified-favorite-wrap>.position-favorite-trigger{font-size:12px!important;gap:3px;padding:0 4px!important}body.mobile[data-selection-theme="shangan"] .unified-favorite-wrap>.position-favorite-trigger .favorite-star{width:15px;height:15px}}
@media print{body[data-selection-theme="shangan"] .position-favorite-menu{display:none!important}}
body[data-selection-theme="shangan"] .position-favorite-menu.is-favorite-portal{position:fixed;z-index:1100;transform:none!important;right:auto!important;bottom:auto!important;margin:0!important;box-sizing:border-box}
body[data-selection-theme="shangan"] .position-favorite-menu.is-favorite-portal *{box-sizing:border-box}
body.pc[data-selection-theme="shangan"] :is(.pc-exam-position-side,.pc-position-row-actions) .unified-favorite-wrap{display:flex;flex:none;width:100%;min-height:38px}
/* Leave a gutter for the account rail instead of covering the right-hand actions. */
body.pc[data-selection-theme="shangan"]:is(.exam-live-page,.positions-pc-page,.topic-live-page):has(.sel-side-tools:not([hidden])) main.container.page{width:calc(100% - 176px)}
