:root {
  --bg: #f3f1ea;
  --bg-2: #fffdf8;
  --ink: #1c2430;
  --muted: #5f6b7a;
  --line: #ddd4c6;
  --card: #ffffff;
  --primary: #0f6b5c;
  --primary-2: #0b5448;
  --good: #0f766e;
  --warn: #b45309;
  --soft: #e7f3ef;
  --danger: #9f1239;
  --shadow: 0 10px 30px rgba(28, 36, 48, 0.06);
  --radius: 14px;
  --mono: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--mono);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(15, 107, 92, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(180, 83, 9, 0.08), transparent 24%),
    var(--bg);
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
}
button, input, select { font: inherit; }
a { color: inherit; }
.app {
  width: min(1200px, calc(100% - 24px));
  margin: 0 auto;
  padding: 16px 0 40px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.brand { display: flex; gap: 12px; align-items: center; min-width: 0; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(145deg, #0f6b5c, #17856f); color: #fff; font-weight: 700; font-size: 20px; flex: none;
}
.brand h1 { margin: 0; font-size: 20px; }
.brand p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.top-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.update-meta { color: var(--muted); font-size: 12px; text-align: right; max-width: 42vw; }
.btn {
  border: 1px solid transparent; border-radius: 10px; padding: 10px 14px; cursor: pointer;
  background: #eef2f0; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
}
.btn.primary { background: var(--primary); color: #fff; }
.btn.ghost { background: #fff; border-color: var(--line); }
.btn.small { padding: 8px 12px; font-size: 13px; }
.btn:disabled { opacity: 0.6; }
.btn-icon { font-size: 16px; }
.access-card, .profile-strip, .toolbar, .card, .job-card, .stats .stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.access-card { padding: 12px 14px; margin-bottom: 12px; background: #ecfdf5; border-color: #a7f3d0; }
.access-card strong { display: block; margin-bottom: 4px; }
.access-card p { margin: 0 0 8px; color: #065f46; font-size: 13px; line-height: 1.5; }
.access-links { display: flex; flex-wrap: wrap; gap: 8px; }
.access-link {
  display: inline-flex; padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid #a7f3d0;
  color: #065f46; font-weight: 600; word-break: break-all;
}
.muted { color: var(--muted); font-size: 13px; }
.profile-strip {
  display: flex; justify-content: space-between; gap: 12px; padding: 14px; margin-bottom: 12px;
  background: linear-gradient(120deg, rgba(15, 107, 92, 0.08), transparent 40%), var(--card);
}
.profile-main { display: flex; gap: 12px; align-items: center; min-width: 0; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; background: #12352f; color: #d9f5ef;
  display: grid; place-items: center; font-weight: 700; flex: none;
}
.profile-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.profile-text strong { font-size: 14px; }
.profile-text span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 8px; align-content: center; justify-content: flex-end; }
.tag {
  display: inline-flex; padding: 4px 10px; border-radius: 999px; background: var(--soft);
  color: var(--primary-2); font-size: 12px; border: 1px solid #cfe7df;
}
.tag.warm { background: #fff7ed; color: #9a3412; border-color: #f0d2b0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.stat { padding: 12px 14px; }
.stat .label { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.stat .value { font-size: 22px; font-weight: 700; }
.stat .hint { margin-top: 4px; color: var(--muted); font-size: 12px; word-break: break-all; }
.toolbar { padding: 12px; margin-bottom: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 130px; }
.field.grow { flex: 1; min-width: 180px; }
.field span, .check span { font-size: 12px; color: var(--muted); }
.field input, .field select {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--bg-2); min-height: 42px;
}
.check { display: flex; align-items: center; gap: 8px; padding: 10px 4px; user-select: none; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; align-items: start; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; gap: 8px; }
.panel-head h2 { margin: 0; font-size: 17px; }
.panel-head span { color: var(--muted); font-size: 13px; }
.status-banner {
  padding: 12px 14px; border-radius: 12px; margin-bottom: 12px; background: #ecfdf5;
  border: 1px solid #a7f3d0; color: #065f46; font-size: 13px; line-height: 1.5;
}
.status-banner.warn { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.status-banner.hidden { display: none; }
.job-list { display: flex; flex-direction: column; gap: 12px; }
.job-card { padding: 14px; }
.job-top { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
.score-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.score {
  width: 68px; height: 68px; border-radius: 16px; display: grid; place-items: center;
  font-size: 22px; font-weight: 800; background: #f8fafc; color: #475569; border: 1px solid #dbe3ee;
}
.score.high { background: #ecfdf5; color: var(--good); border-color: #a7f3d0; }
.score.mid { background: #fff7ed; color: var(--warn); border-color: #fed7aa; }
.level { font-size: 12px; color: var(--muted); text-align: center; }
.job-title-row { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; }
.job-title-row h3 { margin: 0; font-size: 16px; line-height: 1.4; }
.cat {
  flex: none; font-size: 12px; padding: 4px 8px; border-radius: 999px;
  background: #eef2ff; color: #3730a3; border: 1px solid #c7d2fe;
}
.cat.c-公务员 { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.cat.c-事业编 { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.cat.c-行政 { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.cat.c-企业 { background: #fdf2f8; color: #9d174d; border-color: #fbcfe8; }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.badge {
  display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 600; border: 1px solid transparent;
}
.eli-yes { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.eli-likely { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.eli-maybe { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.eli-no { background: #fff1f2; color: #be123c; border-color: #fecdd3; }
.fresh-new { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.fresh-ok { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.fresh-age { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.fresh-expired { background: #f8fafc; color: #64748b; border-color: #e2e8f0; }
.badge-urban { background: #eef2ff; color: #3730a3; border-color: #c7d2fe; }
.meta { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px 12px; color: var(--muted); font-size: 12px; }
.summary { margin: 10px 0 0; color: #334155; font-size: 14px; line-height: 1.65; }
.time-note { margin: 8px 0 0; color: #9a3412; font-size: 12px; }
.check-list { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.check-list li {
  display: grid; grid-template-columns: 16px 1fr; gap: 6px; font-size: 12px; line-height: 1.45;
  padding: 6px 8px; border-radius: 8px; background: #f8fafc; border: 1px solid #e2e8f0;
}
.check-list li span { font-weight: 700; }
.check-yes { color: #047857; }
.check-no { color: #be123c; }
.check-maybe { color: #9a3412; }
.reasons, .tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.reason {
  font-size: 12px; padding: 4px 8px; border-radius: 8px; background: #f8fafc;
  border: 1px dashed #cbd5e1; color: #334155;
}
.job-actions {
  margin-top: 12px; display: flex; gap: 8px; padding-top: 12px; border-top: 1px solid #eee6da; flex-wrap: wrap;
}
.side-panel { display: flex; flex-direction: column; gap: 12px; }
.card { padding: 14px; }
.card h3 { margin: 0 0 10px; font-size: 15px; }
.tips { margin: 0; padding-left: 18px; color: #334155; font-size: 13px; line-height: 1.7; }
.tips li + li { margin-top: 6px; }
.source-list { display: flex; flex-direction: column; gap: 8px; }
.source-item {
  display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--line); text-decoration: none;
}
.source-item strong { font-size: 13px; }
.source-item span { font-size: 12px; color: var(--muted); word-break: break-all; }
.empty {
  padding: 28px 18px; text-align: center; color: var(--muted); border: 1px dashed var(--line);
  border-radius: var(--radius); background: rgba(255,255,255,0.7); line-height: 1.6;
}
.footer {
  margin-top: 20px; display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px;
}
.loading-pulse { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.55} }

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .profile-strip, .topbar { flex-direction: column; align-items: flex-start; }
  .profile-tags { justify-content: flex-start; }
  .update-meta { text-align: left; max-width: none; }
  .top-actions { width: 100%; justify-content: space-between; }
  .side-panel { order: 2; }
}
@media (max-width: 640px) {
  .app { width: min(100% - 16px, 1200px); padding-top: 12px; }
  .brand h1 { font-size: 18px; }
  .job-top { grid-template-columns: 1fr; }
  .score-wrap { flex-direction: row; justify-content: flex-start; gap: 10px; }
  .score { width: 56px; height: 56px; font-size: 18px; border-radius: 14px; }
  .filters { display: grid; grid-template-columns: 1fr 1fr; }
  .field.grow, .check, #applyBtn { grid-column: 1 / -1; }
  .stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .job-actions .btn { flex: 1; justify-content: center; min-height: 42px; }
  .footer { flex-direction: column; }
  .btn.primary { min-height: 42px; }
}


.warn-panel, .notify-panel { margin-bottom: 12px; padding: 14px; }
.warn-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.warn-item { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.warn-item h3 { margin: 8px 0 4px; font-size: 15px; }
.meta-line { color: var(--muted); font-size: 12px; margin: 0; }
.hint { color: #334155; font-size: 13px; line-height: 1.6; margin: 0 0 10px; }
.hint a { color: var(--primary-2); }
.notify-grid { display: grid; gap: 10px; }
.notify-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.digest-box { font-size: 13px; color: #334155; line-height: 1.5; }
.digest-pre { white-space: pre-wrap; word-break: break-word; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; max-height: 360px; overflow: auto; font-size: 12px; }
@media (max-width: 640px) {
  .warn-list { grid-template-columns: 1fr; }
  .notify-actions .btn { flex: 1; justify-content: center; }
}

.link-line a { color: var(--primary-2); word-break: break-all; }
.job-actions .btn.primary { min-width: 140px; justify-content: center; }

/* dual registration sections */
.dual-panel { display: flex; flex-direction: column; gap: 18px; }
.job-section { background: var(--card, #fff); border: 1px solid var(--line, #e5e7eb); border-radius: 10px; padding: 12px; }
.open-section { border-color: #86efac; box-shadow: 0 0 0 1px rgba(16,185,129,.08); }
.closed-section { border-color: #e5e7eb; opacity: 0.98; }
.closed-section .job-card { filter: saturate(0.92); }
.section-note { margin: 0 0 10px; color: var(--muted, #6b7280); font-size: 13px; line-height: 1.45; }
.badge-school { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.cat.c-教育 { background: #fff7ed; color: #c2410c; border-color: #fdba74; }
.school-card { border-left: 3px solid #f59e0b; }
@media (max-width: 720px) {
  .job-section { padding: 10px; border-radius: 8px; }
  .section-note { font-size: 12px; }
}
/* warnings related announcements + school panel */
.warn-item.has-ann { border-color: #86efac; }
.warn-item.school-warn { border-left: 3px solid #f59e0b; }
.related-jobs { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.related-head { font-size: 12px; color: var(--muted, #6b7280); font-weight: 600; }
.related-item {
  display: flex; gap: 10px; justify-content: space-between; align-items: flex-start;
  padding: 10px; border: 1px solid var(--line, #e5e7eb); border-radius: 8px; background: #f8fafc;
}
.related-title { font-size: 14px; font-weight: 600; line-height: 1.35; margin-bottom: 4px; }
.related-main { min-width: 0; flex: 1; }
.school-panel { margin-top: 12px; }
.school-stats { display: flex; gap: 8px; margin: 0 0 10px; flex-wrap: wrap; }
.school-stats .pill {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; border: 1px solid #e5e7eb; background: #fff;
}
.school-stats .pill.open { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.school-stats .pill.closed { background: #f9fafb; color: #4b5563; }
.subhead { font-size: 13px; font-weight: 700; margin: 8px 0 6px; color: #065f46; }
.subhead.muted { color: #6b7280; }
@media (max-width: 720px) {
  .related-item { flex-direction: column; }
  .related-item .job-actions { width: 100%; }
  .related-item .btn { width: 100%; text-align: center; }
}
.platform-panel { margin-top: 12px; }
.platform-card { border-left: 3px solid #6366f1; }
.platform-card .title { font-size: 15px; }

/* strict time audit */
.time-audit { margin-top: 8px; padding: 8px 10px; border-radius: 8px; border: 1px solid #e5e7eb; background: #f8fafc; }
.time-audit.time-ok { background: #ecfdf5; border-color: #a7f3d0; }
.time-audit.time-warn { background: #fffbeb; border-color: #fcd34d; }
.time-audit.time-danger { background: #fef2f2; border-color: #fecaca; }
.time-audit.time-info { background: #eef2ff; border-color: #c7d2fe; }
.time-audit-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.time-badge { font-weight: 700; }
.badge.time-ok, .time-ok.badge { background: #d1fae5; color: #065f46; border-color: #6ee7b7; }
.badge.time-warn, .time-warn.badge { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.badge.time-danger, .time-danger.badge { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.badge.time-info, .time-info.badge { background: #e0e7ff; color: #3730a3; border-color: #a5b4fc; }
.badge.conf-high { background: #dcfce7; color: #166534; }
.badge.conf-mid { background: #ffedd5; color: #9a3412; }
.badge.conf-low { background: #f3f4f6; color: #4b5563; }
.time-meta { margin: 0; font-size: 12px; color: #4b5563; }
.time-mini { margin: 4px 0 0; font-size: 12px; color: #92400e; }
.open-section .panel-head h2 { color: #065f46; }
.closed-section .panel-head h2 { color: #6b7280; }

.platform-panel { margin-top: 12px; padding-bottom: 10px; }
.platform-panel .panel-head { margin-bottom: 6px; }
.platform-panel .school-stats { margin-bottom: 8px; }
.plat-box { display: flex; flex-direction: column; gap: 8px; }
.plat-links { display: flex; flex-direction: column; gap: 6px; }
.plat-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plat-name {
  min-width: 64px; font-size: 12px; font-weight: 700; color: #4338ca;
  background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 999px;
  padding: 3px 8px;
}
.plat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.plat-chip {
  display: inline-flex; align-items: center; padding: 4px 10px;
  border-radius: 999px; border: 1px solid #e5e7eb; background: #fff;
  color: #111827; font-size: 12px; text-decoration: none;
}
.plat-chip:hover { border-color: #818cf8; color: #3730a3; background: #f5f3ff; }
.plat-tip { margin: 0; font-size: 12px; color: #6b7280; line-height: 1.4; }
.plat-detail-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; font-weight: 700; color: #374151; margin-top: 2px;
}
.plat-detail-head span { font-weight: 500; color: #9ca3af; font-size: 12px; }
.plat-detail-list { display: flex; flex-direction: column; gap: 4px; }
.plat-detail-row {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 10px; border: 1px solid #e5e7eb; border-radius: 8px;
  text-decoration: none; color: inherit; background: #fafafa;
}
.plat-detail-row:hover { border-color: #a5b4fc; background: #f8fafc; }
.plat-detail-title { font-size: 13px; font-weight: 600; line-height: 1.35; }
.plat-detail-meta { font-size: 11px; color: #6b7280; }
@media (max-width: 720px) {
  .plat-group { align-items: flex-start; }
  .plat-name { min-width: auto; }
}
