@import url("tokens_0914.css");
/* Base styles统一由 app-shell.css 的 .app-layout 体系提供；本文件只保留
   workspace 页面特定样式，消除旧设计系统的重复/冲突声明。 */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 30px; margin-bottom: 8px; font-weight: 650; }
h2 { font-size: 18px; margin-bottom: 12px; font-weight: 650; }
h3 { font-size: 16px; margin-bottom: 8px; font-weight: 600; }
main > div > section, #access { margin-top: 28px; padding: 24px; background: white; border: 1px solid #dde3ec; border-radius: 14px; }
.eyebrow, .muted, .meta { color: #58657b; font-size: 14px; }
.eyebrow { margin-bottom: 4px; }
.heading, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
main > div > section, #access { margin-top: 28px; padding: 24px; background: white; border: 1px solid #dde3ec; border-radius: 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 390px), 1fr)); gap: 16px; }
.card { min-width: 0; border: 1px solid #dce3ed; border-radius: 10px; padding: 20px; overflow-wrap: anywhere; }
.card p { margin-bottom: 10px; }
.tag { display: inline-block; font-size: 12px; padding: 3px 9px; border-radius: 6px; background: #ecf2fc; color: #244d8d; margin-bottom: 12px; }
.actions, .filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
button, select, textarea { font: inherit; }  /* 高度/内距/圆角由 app-shell 控件基线统一 */
button:hover, button[aria-pressed="true"] { background: #2352a3; color: white; border-color: #2352a3; }
button:disabled { opacity: .6; cursor: wait; }
:focus-visible { outline: 3px solid #7ba7eb; outline-offset: 3px; }
textarea { width: 100%; min-height: 76px; resize: vertical; margin-top: 10px; }
summary { cursor: pointer; color: #2352a3; }
details { margin-top: 14px; }
details > p { margin-top: 10px; }
#message { min-height: 24px; }
#message.error { color: #a12626; }
.todo { border-top: 1px solid #e5eaf0; padding: 12px 0; }
.empty { color: #58657b; padding: 18px 0; }
@media (max-width: 620px) { header { padding: 16px; } nav { gap: 12px; } main { padding: 22px 14px; } main > div > section { padding: 16px; } .heading, .section-heading { align-items: flex-start; flex-wrap: wrap; } h1 { font-size: 25px; } }
#content > section { margin: 24px 0; padding: 24px; background: white; border: 1px solid #dde3ec; border-radius: 14px; }
label { display: block; margin: 12px 0; }
input { font: inherit; max-width: 100%; }
label > input:not([type=checkbox]), label > select { display: block; width: 100%; margin-top: 6px; }
input[type=checkbox] { margin: 0 10px; }
.facts { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(0, 4fr); gap: 6px 14px; overflow-wrap: anywhere; }
.facts dt { color: #58657b; }.facts dd { margin: 0; white-space: pre-wrap; }
section > button, article > button, form > button { margin: 6px 8px 6px 0; }
.error { color: #a12626; }
@media(max-width:620px){#content > section {padding:16px;} .facts {grid-template-columns:1fr;} .facts dd{margin-bottom:12px;} }

/* Workspace-specific layout（共享设计语言已移至 app-shell.css） */
.onboarding-card { background: linear-gradient(135deg, #edf2fa, #fff); border: 1px solid #c8d4ee; border-radius: 14px; padding: 28px; margin-bottom: 24px; }
.onboarding-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.app-layout .onboarding-cta,
.app-layout .onboarding-cta:visited { display: inline-flex; align-items: center; justify-content: center; background: #1a52c4; color: #fff; border: 1px solid #1a52c4; padding: 14px 28px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 16px; line-height: 1.5; box-shadow: 0 2px 8px rgba(26,82,196,.3); transition: background .15s, box-shadow .15s, border-color .15s; }
.app-layout .onboarding-cta:hover,
.app-layout .onboarding-cta:focus-visible { background: #1442a8; color: #fff; border-color: #1442a8; box-shadow: 0 4px 12px rgba(26,82,196,.4); }
.app-layout .onboarding-cta:active { background: #1442a8; color: #fff; border-color: #1442a8; box-shadow: none; }
.onboarding-secondary { color: #466397; text-decoration: none; font-size: 14px; }
.onboarding-secondary:hover { text-decoration: underline; }
.workspace-page main { margin: 0 0 0 220px; max-width: 1520px; padding: 42px 42px 64px; }
.workspace-page .heading { align-items: center; }
.workspace-page .heading .eyebrow { font-size: 11px; letter-spacing: .14em; color: #73839e; margin-bottom: 10px; }
.workspace-page h1 { margin-bottom: 8px; }
.page-intro { font-size: 14px; color: #647084; margin-bottom: 0; }
#refresh { flex-shrink: 0; }
.workspace-page #message { font-size: 12px; color: #647084; margin: 16px 0 24px; min-height: 20px; }
.workspace-page #message.error { color: #a12626; }
.workspace-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid #e7eaf0; border-radius: 12px; background: #fff; margin-bottom: 30px; padding: 20px 0; }
.summary-item { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 0 24px; gap: 4px 12px; }
.summary-item + .summary-item { border-left: 1px solid #e7eaf0; }
.summary-item > span { font-size: 12px; color: #59667b; }
.summary-item strong { font-size: 30px; font-weight: 500; line-height: 1.2; color: #466397; grid-row: span 2; font-variant-numeric: tabular-nums; }
.summary-item small { font-size: 11px; color: #737c8b; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.workspace-primary { min-width: 0; }
.workspace-primary > section { scroll-margin-top: 24px; }
.workspace-primary > section + section { margin-top: 32px; padding-top: 26px; border-top: 1px solid #e1e5ec; }
.workspace-page .section-heading h2 { margin-bottom: 0; }
.workspace-page .section-heading { min-height: 30px; margin-bottom: 8px; }
.workspace-page .section-heading > a { font-size: 12px; white-space: nowrap; text-decoration: none; }
.workspace-page .section-heading label { font-size: 12px; margin: 0; }
.workspace-page .section-heading label select { display: inline-block; width: auto; max-width: 190px; margin-left: 6px; min-height: 32px; padding: 5px 10px; line-height: 18px; font-size: 12px; border-radius: 6px; }
.entry-toolbar { display: flex; justify-content: flex-end; margin-top: 16px; }
.entry-toolbar label { margin: 0; color: #647084; font-size: 12px; display: flex; align-items: center; gap: 10px; }
.entry-toolbar label > select { display: inline-block; width: auto; margin: 0; min-height: 32px; padding: 5px 10px; line-height: 18px; font-size: 12px; border-radius: 6px; }
.workspace-page #groups { gap: 4px; margin: 12px 0 18px; padding-bottom: 12px; border-bottom: 1px solid #e1e5ec; }
.workspace-page #groups button { padding: 5px 9px; border: 0; background: transparent; color: #647084; font-size: 12px; border-radius: 6px; }
.workspace-page #groups button:hover { background: #edf2fa; color: #385580; }
.workspace-page #groups button[aria-pressed="true"],
.workspace-page #groups button[aria-pressed="true"]:hover { background: #1a52c4; color: #fff; font-weight: 600; }
.workspace-page #entries, .workspace-page #searches { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.opportunity-card { padding: 24px; border-color: #dfe5ee; }
.entry-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.entry-top .tag { margin: 0; font-size: 11px; }
.stage-badge { color: #387867; background: #edf6f2; font-size: 11px; padding: 3px 8px; border-radius: 5px; }
.opportunity-card h3 { font-size: 21px; margin-bottom: 8px; line-height: 1.5; }
.connection-state { font-size: 12px; color: #647084; }
.next-step { padding: 14px 16px; border-radius: 7px; background: #f6f8fb; margin: 18px 0; }
.next-label { display: block; font-size: 10px; color: #647084; margin-bottom: 4px; }
.next-step p { font-size: 13px; line-height: 1.8; margin: 0; }
.entry-link { font-size: 13px; text-decoration: none; font-weight: 550; }
.opportunity-card > details { border-top: 1px solid #edf0f4; padding-top: 12px; margin-top: 18px; }
#pagination { justify-content: flex-end; align-items: center; margin: 12px 0 0; }
#pagination .meta { font-size: 10px; }
.search-card { position: relative; padding: 20px; }
.search-card h3 { font-size: 15px; max-width: calc(100% - 100px); margin-bottom: 12px; }
.search-card > p { font-size: 12px; margin-bottom: 8px; }
.search-status { float: right; background: #edf2fa; color: #466397; padding: 3px 8px; border-radius: 5px; font-size: 11px; }
.search-card[data-state="expired"] .search-status, .search-card[data-state="paused"] .search-status { color: #8b602a; background: #faf4e9; }
.search-card[data-state="ended"] .search-status, .search-card[data-state="completed"] .search-status { color: #647084; background: #f1f3f6; }
.search-card .actions { align-items: center; gap: 8px; margin-bottom: 0; }
.search-card .actions button { font-size: 12px; padding: 6px 10px; }
.search-card .actions a { font-size: 12px; }
.workspace-page #tasks { padding: 20px; border: 1px solid #e7eaf0; background: white; border-radius: 12px; scroll-margin-top: 20px; }
.workspace-page #tasks h2 { font-size: 17px; }
.workspace-page #tasks > .muted { font-size: 11px; margin-bottom: 18px; }
.agenda-date { font-size: 11px; color: #737c8b; margin-bottom: 10px; }
.agenda-filters { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 20px; }
.agenda-filters button { font-size: 11px; padding: 4px 7px; border: 0; background: #f6f7f9; color: #647084; }
.app-layout .agenda-filters button[aria-pressed="true"],
.app-layout .agenda-filters button[aria-pressed="true"]:hover { background: #1a52c4; color: #fff; font-weight: 600; }
[data-date-group] > h3 { font-size: 12px; color: #647084; margin: 16px 0; font-weight: 500; }
.agenda-owner { margin: 20px 0 8px; color: #466397; font-size: 11px; font-weight: 600; }
.todo.card { border: 0; border-radius: 0; border-bottom: 1px solid #edf0f4; padding: 12px 0 16px; }
.todo.card > p { font-size: 11px; color: #737c8b; margin-bottom: 7px; }
.todo.card > .todo-title { color: #303949; font-size: 13px; font-weight: 550; line-height: 1.8; }
.todo.card > a { display: inline-block; font-size: 12px; text-decoration: none; margin: 4px 0; }
.todo.card .actions { gap: 6px; margin: 12px 0 8px; }
.todo.card button { padding: 5px 8px; font-size: 11px; }
.todo.card .actions button:first-child { color: #466397; border-color: #ccd8e9; background: #f5f8fc; }
.todo.card details { margin-top: 6px; }
.todo.card summary { font-size: 11px; color: #647084; }
.todo.card label { font-size: 11px; }
.todo.card input { padding: 6px; min-width: 0; }
.todo.card[data-own-action="false"] { border-left: 2px solid #e1e7f0; padding-left: 12px; margin-top: 12px; }
@media (max-width: 1200px) { .workspace-page main { padding: 32px 26px 50px; } .workspace-grid { grid-template-columns: minmax(0, 1fr) 290px; gap: 20px; } .summary-item { padding: 0 16px; } }
@media (max-width: 1050px) { .workspace-grid { grid-template-columns: minmax(0, 1fr); } .workspace-primary { display: contents; } #opportunities { order: 0; } #tasks { order: 1; } #search-tasks { order: 2; } .workspace-primary > section + section { margin-top: 0; } .workspace-page #todos [data-date-group] { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; } #todos [data-date-group] > h3, #todos .agenda-owner { grid-column: 1 / -1; } .workspace-page #tasks { padding: 20px 24px; } }
@media (max-width: 760px) {
  .workspace-page main { margin: 0; padding: 26px 20px 48px; }
  .workspace-page h1 { font-size: 25px; }
  .workspace-page .heading { flex-wrap: nowrap; gap: 10px; }
  .page-intro { font-size: 12px; }
  #refresh { font-size: 10px; padding: 6px 8px; }
  .workspace-summary { padding: 16px 0; margin-bottom: 24px; }
  .summary-item { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 0 12px; }
  .summary-item > span { font-size: 11px; } .summary-item strong { font-size: 26px; } .summary-item small { font-size: 9px; }
  .workspace-page #tasks { padding: 18px; }
  .workspace-page #todos [data-date-group] { display: block; }
  .workspace-page #tasks { grid-row: auto; }
  .workspace-primary { display: contents; }
  #opportunities { order: 0; } #tasks { order: 1; } #search-tasks { order: 2; }
  .workspace-primary > section + section { margin-top: 0; }
  .opportunity-card { padding: 19px; } .opportunity-card h3 { font-size: 19px; }
  .entry-toolbar { justify-content: flex-start; }
  .workspace-page .section-heading { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { button { transition: none; } }

/* M11.1 我的投递（B3/B4）：分页、时间线、回执、孤儿记录 */
#application-pagination { display: flex; gap: 8px; align-items: center;
  justify-content: flex-end; margin: 12px 0 0; }
#application-pagination .meta { font-size: 10px; }
.application-card .application-title { margin: 0 0 4px; font-size: 17px; }
.application-meta { font-size: 13px; color: var(--ink-2, #57606a); }
.application-actions { display: flex; gap: 8px; margin-top: 8px; }
.application-timeline-panel { border-top: 1px dashed #d8dee9;
  margin-top: 8px; padding-top: 8px; }
.application-timeline-list { margin: 0; padding-left: 18px;
  display: grid; gap: 6px; }
.application-timeline-when { font-size: 13px; }
.application-timeline-obs { color: #57606a; }
.application-receipt { font-size: 12px; }
.application-orphan { opacity: 0.85; }

/* Search fields own their layout; generic inline toolbar labels must not shrink. */
#job-search-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 640px; margin: 20px 0; }
#job-search-filters label { display: grid; gap: 6px; font-size: 14px; min-width: 0; }
#job-search-filters input { width: 100%; min-width: 0; margin: 0; }
#content > #onboarding { padding: 0; border: 0; background: none; }
#onboarding .onboarding-card { padding: 24px; margin: 0; }
#onboarding:not([hidden]) ~ .workspace-summary { margin-top: 20px; padding: 12px 0; }
.workspace-sidebar { min-width: 0; display: grid; gap: 16px; }
@media (max-width: 620px) {
  #job-search-filters { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  #onboarding .onboarding-card { padding: 20px; }
}

@media (max-width: 1050px) { .workspace-sidebar { display: contents; } }

@media (max-width: 760px) { .workspace-primary > section { scroll-margin-top: 180px; } }

#workspace-views { display: flex; gap: 22px; margin: 0; padding: 16px 22px; border-radius: 14px 14px 0 0; background: white; border-bottom: 1px solid var(--line); }
#workspace-views a { padding: 6px 0; text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; }
#workspace-views a[aria-current] { color: var(--primary); border-color: var(--primary); }
[data-list-view=applications] #opportunities, [data-list-view=opportunities] #applications { display: none; }
.workspace-page .workspace-primary > #opportunities, .workspace-page .workspace-primary > #applications { padding: 20px; background: white; border-radius: 12px; margin-top: 0; }
.workspace-page[data-list-view=applications] #applications, .workspace-page[data-list-view=opportunities] #opportunities { border-radius: 0 0 14px 14px; }
.workspace-page #groups { margin-bottom: 12px; }
.workspace-page .entry-toolbar { margin-top: 6px; }
.workspace-page .opportunity-card:first-child { background: #f0f4ff; border-color: #dbe4fc; }
.workspace-page .opportunity-card .tag { color: #096661; background: #d9f5f1; }
.workspace-page .opportunity-card .next-step { border-left: 3px solid #55bdb6; background: transparent; margin: 10px 0; padding: 4px 12px; }
.workspace-page .entry-link { display: inline-block; padding: 6px 0; color: var(--primary); font-weight: 650; }
.workspace-page .summary-item strong { color: var(--primary); }
#content > .career-profile { border: 0; padding: 0; background: transparent; }
.profile-identity, .profile-column, #profile-editor { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.profile-identity { display: flex; align-items: center; gap: 18px; }
.profile-identity strong { font-size: 24px; }
.profile-identity p { margin: 4px 0 0; overflow-wrap: anywhere; }
.profile-identity button { margin-left: auto; flex-shrink: 0; }
.profile-avatar { display: grid; place-items: center; flex: none; width: 58px; height: 58px; border-radius: 50%; background: var(--primary); color: white; font-size: 26px; }
.profile-overview, #profile-editor { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 20px; margin: 18px 0; }
.profile-column h4 { margin: 14px 0 4px; font-size: 14px; }
.profile-column p { white-space: pre-line; overflow-wrap: anywhere; margin: 0; color: #475770; }
#profile-editor { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
#profile-editor label { margin: 0; } #profile-editor button { justify-self: start; }
@media(max-width:760px) { .profile-identity { flex-wrap: wrap; } .profile-overview, #profile-editor { grid-template-columns: 1fr; } }
.profile-column h3 { display: flex; justify-content: space-between; align-items: center; margin: 0 0 16px; }
.profile-skills { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-skills span { padding: 4px 10px; background: #edf2ff; color: #344b96; border-radius: 6px; overflow-wrap: anywhere; }
.profile-column a { display: inline-block; padding-block: 4px; }
.profile-column h4 { border-top: 1px solid var(--line); padding-top: 12px; }
.workspace-page .opportunity-card:first-child .entry-link { background: var(--primary); color: white; border-radius: 8px; padding: 8px 14px; }
.workspace-page .opportunity-card h3 { font-size: 21px; }
.entry-filter-panel { margin: 6px 0 12px; }
.entry-filter-panel > summary { width: fit-content; }
@media(min-width:1051px) { .workspace-grid { grid-template-columns: minmax(0,1.8fr) minmax(300px,1fr); gap: 22px; } }
.workspace-page .summary-item { position: relative; padding-left: 55px; }
.summary-item::before { content: ""; width: 20px; height: 20px; background: #445b80; mask: var(--icon) center / contain no-repeat; position: absolute; left: 20px; }
.summary-item:nth-child(1) { --icon:url(icons/briefcase.svg); }
.summary-item:nth-child(2) { --icon:url(icons/check2-square.svg); }
.summary-item:nth-child(3) { --icon:url(icons/calendar3.svg); }
@media(max-width:760px) { .workspace-page .summary-item { padding-left: 10px; } .summary-item::before { display: none; } }
#recent-search-update { border-radius: 12px; background: #edf8f7; padding: 18px 22px; }
#recent-search-update strong { display: inline-flex; align-items:center; gap:6px; color:#086c65; font-size:14px; }
#recent-search-update strong::before { content:""; width:18px; height:18px; background:currentColor; mask:url(icons/stars.svg) center / contain no-repeat; }
#recent-search-update h3 { margin: 12px 0 4px; }
#recent-search-update p { margin: 4px 0; }
@media(max-width:1050px) { #recent-search-update { order: 2; } }
