:root {
  --table-ink: #102019;
  --table-muted: #607069;
  --table-green: #145b42;
  --table-green-strong: #0e4934;
  --table-green-soft: #edf5ef;
  --table-lime: #c8f45a;
  --table-fog: #f5f8f6;
  --table-line: #d8e2da;
  --table-line-strong: #bfd0c3;
  --table-focus: rgba(20, 91, 66, 0.28);
}

#offer-frontline-root,
#offer-frontline-root * {
  scrollbar-color: #92ad9b #edf3ef;
  scrollbar-width: thin;
}

#offer-frontline-root *::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

#offer-frontline-root *::-webkit-scrollbar-track {
  background: #edf3ef;
}

#offer-frontline-root *::-webkit-scrollbar-thumb {
  border: 2px solid #edf3ef;
  border-radius: 999px;
  background: #92ad9b;
}

#offer-frontline-root *::-webkit-scrollbar-thumb:hover {
  background: #698a75;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.profile-menu:has(.profile-display-preference) {
  width: 250px;
}

.profile-display-preference {
  margin: 7px 4px;
  padding: 12px 7px;
  border-top: 1px solid var(--table-line);
  border-bottom: 1px solid var(--table-line);
}

.profile-display-preference-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.profile-display-preference-head b {
  color: var(--table-ink);
  font-size: 13px;
}

.profile-display-preference-head small,
.profile-view-mobile-note {
  color: var(--table-muted);
  font-size: 10px;
}

.profile-view-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--table-line);
  border-radius: 11px;
  background: var(--table-fog);
}

.profile-menu .profile-view-mode-switch button {
  display: block;
  width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #52645b;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

.profile-menu .profile-view-mode-switch button:hover {
  background: #ffffff;
}

.profile-menu .profile-view-mode-switch button.is-active {
  background: var(--table-green);
  color: #ffffff;
  box-shadow: 0 5px 14px rgba(20, 91, 66, 0.16);
}

.profile-view-mobile-note {
  display: none;
  margin: 8px 2px 0;
  line-height: 1.5;
}

/* 展示方式只由个人中心统一控制；清理旧缓存脚本遗留的模块级入口。 */
.results-head .listing-view-toolbar,
.results-head .listing-view-switch,
.results-head [aria-label="招聘列表展示方式"] {
  display: none !important;
}

.job-table-frame {
  display: none;
}

.listing-view-notice {
  position: fixed;
  z-index: 180;
  top: 96px;
  left: 50%;
  padding: 11px 16px;
  border-radius: 999px;
  background: #10231a;
  color: #ffffff;
  box-shadow: 0 14px 40px rgba(7, 25, 17, 0.24);
  font-size: 13px;
  font-weight: 800;
  transform: translateX(-50%);
}

.listing-view-notice.is-error {
  background: #8f3026;
}

@media (width > 760px) {
  .results-layout.list-view-table-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .list-view-table-layout > .filters-panel.table-filter-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 12px 18px;
    width: 100%;
    padding: 16px 18px 18px;
    border-color: var(--table-line-strong);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(17, 61, 45, 0.04);
  }

  .table-filter-toolbar > .filter-heading {
    grid-column: 1 / -1;
    min-height: 38px;
    padding-bottom: 10px;
  }

  .table-filter-toolbar .filter-heading-copy {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .table-filter-toolbar .filter-heading h3 {
    font-size: 16px;
  }

  .table-filter-toolbar .filter-heading-copy > span {
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--table-green-soft);
    color: var(--table-green);
    font-size: 11px;
    font-weight: 800;
  }

  .table-filter-toolbar .filter-heading-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .table-filter-toolbar .filter-clear {
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid var(--table-line);
    border-radius: 9px;
    background: #ffffff;
  }

  .table-filter-toolbar .filter-toggle {
    display: none;
  }

  .table-filter-toolbar > .filter-group,
  .table-filter-toolbar > .advanced-filters {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
  }

  .table-filter-toolbar .filter-group h4,
  .table-filter-toolbar .advanced-filters label {
    margin: 0 0 8px;
    color: #405149;
    font-size: 12px;
    font-weight: 850;
  }

  .table-filter-toolbar .filter-options {
    flex-wrap: wrap;
    gap: 6px;
    padding: 1px 2px 0;
    overflow-x: visible;
  }

  .table-filter-toolbar .filter-options button {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 7px 10px;
    white-space: nowrap;
  }

  .table-filter-toolbar .region-cascade,
  .table-filter-toolbar .source-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
  }

  .table-filter-toolbar .source-picker {
    grid-template-columns: minmax(170px, 1.3fr) minmax(150px, 1fr);
  }

  .table-filter-toolbar .region-cascade select,
  .table-filter-toolbar .source-picker input,
  .table-filter-toolbar .source-picker select,
  .table-filter-toolbar .advanced-filters select {
    min-height: 38px;
  }

  .results.job-list-table-mode {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--table-line-strong);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(17, 61, 45, 0.055);
  }

  .results.job-list-table-mode.is-table-sorting,
  .results.job-list-table-mode.is-table-sorting > .job-table-frame {
    overflow-anchor: none;
  }

  .results.job-list-table-mode > .results-head,
  .results.job-list-table-mode > .list-error,
  .results.job-list-table-mode > .pagination,
  .results.job-list-table-mode > .empty {
    margin-right: 18px;
    margin-left: 18px;
  }

  .results.job-list-table-mode > .results-head {
    min-height: 72px;
    margin-top: 0;
    margin-bottom: 0;
    padding: 14px 0;
  }

  .results.job-list-table-mode > .results-head > p {
    line-height: 1.55;
  }

  .results.job-list-table-mode > .job-card {
    display: none;
  }

  .job-table-frame {
    display: block;
    border-top: 1px solid var(--table-line);
    background: #ffffff;
  }

  .job-table-scroll-cue {
    display: none;
    margin: 0;
    padding: 9px 16px;
    border-bottom: 1px solid var(--table-line);
    background: var(--table-green-soft);
    color: var(--table-green);
    text-align: right;
    font-size: 11px;
    font-weight: 800;
  }

  .job-table-scroll {
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-gutter: stable;
  }

  .job-list-table {
    width: 100%;
    min-width: 1120px;
    border-spacing: 0;
    border-collapse: separate;
    table-layout: fixed;
    color: #33443b;
    background: #ffffff;
    font-size: 13px;
  }

  .job-table-column-company { width: 150px; }
  .job-table-column-title { width: 310px; }
  .job-table-column-updated { width: 126px; }
  .job-table-column-facts { width: 220px; }
  .job-table-column-type { width: 150px; }
  .job-table-column-deadline { width: 142px; }
  .job-table-column-actions { width: 122px; }

  .job-table-heading {
    height: 58px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--table-line-strong);
    background: #eef5f0;
    color: #405149;
    text-align: left;
    font-size: 12px;
    font-weight: 900;
  }

  .job-table-heading.is-sortable {
    padding: 0;
  }

  .job-table-sort-button {
    display: inline-flex;
    width: 100%;
    height: 58px;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    padding: 13px 16px;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    font: inherit;
    cursor: pointer;
  }

  .job-table-sort-button:hover {
    background: #e4f0e8;
    color: var(--table-green);
  }

  .job-table-sort-button:focus-visible {
    position: relative;
    z-index: 1;
    outline: 3px solid rgba(20, 113, 78, 0.28);
    outline-offset: -3px;
  }

  .job-table-sort-icon {
    display: inline-grid;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    place-items: center;
    border-radius: 999px;
    background: #dfeae3;
    color: #5c6d64;
    font-size: 13px;
    line-height: 1;
  }

  .job-table-sort-button.is-active .job-table-sort-icon {
    background: var(--table-green);
    color: #ffffff;
  }

  .job-table-heading.is-sorted {
    background: #e8f3ec;
    color: var(--table-green);
  }

  .job-table-heading:first-child {
    box-shadow: inset 4px 0 0 var(--table-green);
  }

  .job-table-heading:last-child,
  .job-table-actions {
    position: sticky;
    right: 0;
    z-index: 2;
    background: #ffffff;
    box-shadow: -10px 0 18px rgba(17, 61, 45, 0.08);
  }

  .job-table-heading:last-child {
    z-index: 3;
    background: #eef5f0;
  }

  .job-table-body tr {
    height: 94px;
    transition: background-color 160ms ease;
  }

  .job-table-body tr:nth-child(even) {
    background: #fbfdfb;
  }

  .job-table-body tr:nth-child(even) .job-table-actions {
    background: #fbfdfb;
  }

  .job-table-body tr:hover {
    background: #f2f7f3;
  }

  .job-table-body tr:hover .job-table-actions {
    background: #f2f7f3;
  }

  .job-table-cell {
    min-width: 0;
    padding: 16px;
    border-bottom: 1px solid #e4ebe6;
    vertical-align: middle;
    line-height: 1.5;
  }

  .job-table-body tr:last-child .job-table-cell {
    border-bottom: 0;
  }

  .job-table-company {
    overflow: hidden;
    color: #4a5d53;
    text-overflow: ellipsis;
    font-weight: 750;
    word-break: break-word;
  }

  .job-table-title {
    text-align: left;
  }

  .job-table-title-button {
    display: -webkit-box;
    width: 100%;
    max-height: 3em;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    color: var(--table-ink);
    text-align: left;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .job-table-title-button:hover {
    color: var(--table-green);
  }

  .job-table-updated,
  .job-table-deadline {
    color: #52645b;
    font-variant-numeric: tabular-nums;
  }

  .job-table-date,
  .job-table-time {
    display: block;
    white-space: nowrap;
  }

  .job-table-time {
    margin-top: 3px;
    color: #7a8981;
    font-size: 11px;
  }

  .job-table-facts {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .job-table-fact-pill,
  .job-table-type-pill {
    display: inline-block;
    max-width: 100%;
    margin: 3px 4px 3px 0;
    padding: 4px 8px;
    overflow: hidden;
    border: 1px solid #d3e0d6;
    border-radius: 999px;
    background: #fbfdfb;
    color: #52645b;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    vertical-align: middle;
  }

  .job-table-type-pill {
    border-color: #c9ddce;
    background: var(--table-green-soft);
    color: var(--table-green);
    font-weight: 850;
  }

  .job-table-status {
    display: block;
    margin-top: 7px;
    color: var(--table-muted);
    font-size: 11px;
    font-weight: 750;
  }

  .job-table-actions {
    white-space: nowrap;
  }

  .job-table-favorite,
  .job-table-open {
    min-height: 38px;
    border-radius: 9px;
    font-weight: 850;
    vertical-align: middle;
  }

  .job-table-favorite {
    width: 38px;
    margin-right: 6px;
    border: 1px solid var(--table-line);
    background: #ffffff;
    color: var(--table-green);
    font-size: 18px;
  }

  .job-table-favorite:hover {
    border-color: var(--table-green);
    background: var(--table-green-soft);
  }

  .job-table-favorite.is-favorite {
    border-color: #ebd397;
    background: #fff7d9;
    color: #bb8214;
  }

  .job-table-open {
    min-width: 58px;
    padding: 7px 11px;
    border: 1px solid var(--table-green);
    background: var(--table-green);
    color: #ffffff;
    font-size: 12px;
  }

  .job-table-open:hover {
    background: var(--table-green-strong);
  }
}

.profile-menu .profile-view-mode-switch button:focus-visible,
.table-filter-toolbar button:focus-visible,
.table-filter-toolbar input:focus-visible,
.table-filter-toolbar select:focus-visible,
.job-table-scroll:focus-visible,
.job-table-title-button:focus-visible,
.job-table-favorite:focus-visible,
.job-table-open:focus-visible {
  outline: 3px solid var(--table-focus);
  outline-offset: 2px;
}

@media (width <= 1180px) and (width > 760px) {
  .job-table-scroll-cue {
    display: block;
  }
}

@media (width <= 760px) {
  .profile-view-mobile-note {
    display: block;
  }

}

@media (prefers-reduced-motion: reduce) {
  .job-table-body tr {
    transition: none;
  }
}

@media (forced-colors: active) {
  #offer-frontline-root,
  #offer-frontline-root * {
    scrollbar-color: auto;
  }

  .job-table-heading:first-child {
    box-shadow: inset 4px 0 0 CanvasText;
  }
}
