:root {
  --ink: #182331;
  --muted: #687587;
  --paper: #edf3f8;
  --surface: #ffffff;
  --surface-2: #f5f8fb;
  --line: #dbe5ef;
  --purple-950: #102f55;
  --purple-800: #184a7a;
  --purple-600: #246fa8;
  --purple-400: #7aaad0;
  --blue: #246fa8;
  --blue-soft: #e8f2fa;
  --amber: #986820;
  --amber-soft: #f7efe1;
  --red: #a65355;
  --red-soft: #f8eaea;
  --green: #327681;
  --green-soft: #e7f2f4;
  --teal: #277f78;
  --teal-soft: #e5f3f0;
  --coral: #bd604c;
  --coral-soft: #f9ebe7;
  --violet: #735c9e;
  --violet-soft: #f0ebf7;
  --offer: #986820;
  --offer-soft: #f7efe1;
  --shadow: 0 14px 38px rgba(22, 55, 88, .07);
  color-scheme: light;
}

[data-theme="dark"] {
  --ink: #eef5fb;
  --muted: #9eafbf;
  --paper: #0a121c;
  --surface: #111d29;
  --surface-2: #172635;
  --line: #2a3e51;
  --purple-950: #123b63;
  --purple-800: #1c5a8c;
  --purple-600: #70b2e2;
  --purple-400: #3d729b;
  --blue: #70b2e2;
  --blue-soft: #172f43;
  --amber: #deb260;
  --amber-soft: #3a2d17;
  --red: #e28c8e;
  --red-soft: #3c2224;
  --green: #73b6c3;
  --green-soft: #18343a;
  --teal: #6bc0b7;
  --teal-soft: #173a37;
  --coral: #ed927d;
  --coral-soft: #432722;
  --violet: #b69cdb;
  --violet-soft: #30283f;
  --offer: #e1b45e;
  --offer-soft: #3a2d17;
  --shadow: 0 18px 50px rgba(0, 0, 0, .28);
  color-scheme: dark;
}

[data-theme="dark"] .live-pill { color: var(--coral); }
[data-theme="dark"] .view-switch button.active { color: var(--purple-600); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
button, input, select { font: inherit; }
button { color: inherit; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  padding: 28px 20px; color: #f3fbf6; background:
    radial-gradient(circle at 18% 7%, rgba(103, 170, 222, .28), transparent 28%),
    linear-gradient(160deg, #173f68 0%, #102c4c 68%, #0b1f36 100%);
}
.brand-block { display: flex; align-items: center; gap: 12px; padding: 0 8px 32px; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; }
.brand-mark img { width: 100%; height: 100%; display: block; }
.brand-block strong, .brand-block span { display: block; }
.brand-block strong { font-size: 1.05rem; }
.brand-block span { color: #aac9e2; font-size: .82rem; letter-spacing: .08em; }
.side-nav { display: grid; gap: 6px; }
.nav-item { width: 100%; min-height: 46px; display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; border: 0; border-radius: 12px; padding: 0 13px; background: transparent; color: #bdd3e5; text-align: left; cursor: pointer; }
.nav-item:hover, .nav-item.active { color: white; background: rgba(255,255,255,.1); }
.nav-item b { min-width: 24px; padding: 2px 7px; border-radius: 20px; background: rgba(255,255,255,.12); font-size: .78rem; text-align: center; }
.nav-icon { font-size: 1.1rem; text-align: center; }
.side-footer { margin-top: auto; display: grid; gap: 12px; }
.icp-footer { padding: 24px 12px 8px; text-align: center; font-size: 14px; line-height: 1.6; }
.icp-footer[hidden] { display: none; }
.icp-footer a { color: var(--muted); text-decoration: none; }
.icp-footer a:hover, .icp-footer a:focus-visible { text-decoration: underline; }
.sync-card { display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; background: rgba(255,255,255,.06); }
.sync-card strong, .sync-card small { display: block; }
.sync-card strong { font-size: .82rem; }
.sync-card small { color: #9ebdd6; font-size: .72rem; }
.sync-dot { width: 8px; height: 8px; border-radius: 50%; background: #70c5e8; box-shadow: 0 0 0 5px rgba(112,197,232,.12); }
.ghost-button { border: 1px solid rgba(255,255,255,.18); border-radius: 11px; padding: 10px; background: transparent; color: white; cursor: pointer; }

.main-content { width: 100%; max-width: 1600px; padding: 32px 38px 72px; overflow: hidden; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-title { display: flex; align-items: center; gap: 11px; }
.mobile-brand-mark { display: none; width: 40px; height: 40px; flex: 0 0 auto; }
.eyebrow, .section-kicker { margin: 0 0 3px; color: var(--purple-600); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(1.7rem, 3vw, 2.35rem); letter-spacing: -.045em; }
h2 { margin-bottom: 0; font-size: 1.15rem; letter-spacing: -.025em; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.search-box { width: min(34vw, 420px); height: 44px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: 0 5px 18px rgba(22,72,112,.04); }
.search-box:focus-within { border-color: var(--purple-400); box-shadow: 0 0 0 3px rgba(36,111,168,.11); }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-box kbd { border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: var(--muted); background: var(--surface-2); font-size: .72rem; }
.icon-button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); cursor: pointer; }

.overview-grid { display: grid; grid-template-columns: minmax(300px, 1.25fr) repeat(3, minmax(150px, .75fr)); gap: 14px; margin-bottom: 30px; }
.hero-card, .metric-card, .pipeline-card, .schedule-card, .funnel-card, .calendar-section, .list-section { border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.hero-card { min-height: 248px; display: flex; align-items: center; justify-content: space-between; overflow: hidden; padding: 27px 28px; border: 0; border-radius: 20px; color: white; background: radial-gradient(circle at 88% 14%, rgba(126,184,230,.24), transparent 35%), linear-gradient(145deg, #1b5688 0%, #123b63 58%, #0d2c4b 100%); box-shadow: 0 18px 42px rgba(16,48,82,.2); }
.hero-card .section-kicker { color: #a8d3f2; }
.hero-copy { max-width: 62%; }
.hero-copy h2 { margin: 8px 0 10px; font-size: clamp(1.35rem, 2.4vw, 2rem); }
.hero-copy h2 strong { color: var(--purple-600); font-size: 1.35em; }
.hero-card .hero-copy h2 strong { color: #c5e6fb; }
.hero-copy p { max-width: 480px; margin-bottom: 0; color: #bfd3e4; }
.orbit { position: relative; width: 150px; height: 150px; flex: 0 0 150px; display: grid; place-items: center; }
.orbit-ring { position: absolute; border: 1px solid rgba(199,228,248,.32); border-radius: 50%; }
.ring-one { inset: 10px; }
.ring-two { inset: 27px; border-style: dashed; animation: rotate 18s linear infinite; }
.orbit-center { width: 76px; height: 76px; display: grid; place-content: center; z-index: 2; border-radius: 50%; color: #174d79; background: #f0f7fc; text-align: center; box-shadow: 0 14px 28px rgba(6,30,54,.25); }
.orbit-center strong { font-size: 1.7rem; line-height: 1; }
.orbit-center span { margin-top: 5px; font-size: .64rem; opacity: .72; }
.orbit-node { position: absolute; width: 11px; height: 11px; border: 3px solid #17466f; border-radius: 50%; background: #acd9f5; box-shadow: 0 3px 10px rgba(6,31,55,.25); }
.node-one { top: 8px; left: 67px; }.node-two { right: 15px; bottom: 29px; background: var(--blue); }.node-three { left: 17px; bottom: 31px; background: var(--amber); }
@keyframes rotate { to { transform: rotate(360deg); } }
.metric-card { min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; border-radius: 18px; }
.metric-card span { color: var(--muted); font-size: .82rem; font-weight: 650; }
.metric-card strong { font-size: clamp(1.65rem, 3vw, 2.35rem); letter-spacing: -.05em; }
.metric-card small { color: var(--muted); }
.metric-card.purple { background: linear-gradient(145deg, #1c5d92, #102f55); color: white; border: 0; }
.metric-card.purple span, .metric-card.purple small { color: #bfd8eb; }
.metric-card.amber { background: var(--amber-soft); }
.pipeline-card { grid-column: span 2; min-height: 248px; overflow: hidden; padding: 20px 12px 12px 20px; border-radius: 20px; }
.pipeline-heading { margin-right: 8px; }
.count-pill { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; color: var(--teal); background: var(--teal-soft); font-size: .75rem; font-weight: 800; }
.advanced-pipeline { max-height: 180px; display: grid; gap: 4px; overflow-y: auto; padding-right: 7px; scrollbar-color: #9bb6cc transparent; scrollbar-width: thin; }
.advanced-pipeline::-webkit-scrollbar { width: 5px; }.advanced-pipeline::-webkit-scrollbar-thumb { border-radius: 999px; background: #9bb6cc; }
.pipeline-item { width: 100%; min-width: 0; display: grid; grid-template-columns: 7px minmax(0,1fr) auto; align-items: center; gap: 9px; border: 0; border-radius: 10px; padding: 6px 9px; color: var(--ink); background: var(--surface-2); text-align: left; cursor: pointer; }
.pipeline-item:hover { background: var(--blue-soft); }
.pipeline-marker { width: 7px; height: 25px; border-radius: 8px; background: var(--teal); }
.pipeline-item.offer .pipeline-marker { background: var(--offer); }.pipeline-item.written .pipeline-marker { background: var(--amber); }.pipeline-item.written-done .pipeline-marker { background: #8293a4; }
.pipeline-copy { min-width: 0; display: flex; align-items: baseline; gap: 7px; overflow: hidden; white-space: nowrap; }.pipeline-copy strong, .pipeline-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.pipeline-copy strong { flex: 0 1 auto; max-width: 36%; font-size: .82rem; }.pipeline-copy small { min-width: 0; flex: 1; color: var(--muted); font-size: .74rem; }.pipeline-copy small::before { content: "· "; }
.pipeline-status { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 7px; color: var(--teal); background: var(--teal-soft); font-size: .72rem; font-weight: 800; }
.pipeline-check { width: 16px; height: 16px; display: inline-grid; place-items: center; border-radius: 50%; color: #0b0e12; background: #fff; box-shadow: 0 0 0 1px rgba(11,14,18,.15); font-size: .7rem; font-weight: 950; line-height: 1; }
.pipeline-item.offer .pipeline-status { color: var(--offer); background: var(--offer-soft); }.pipeline-item.written .pipeline-status { color: var(--amber); background: var(--amber-soft); }.pipeline-item.written-done .pipeline-status { color: var(--muted); background: var(--line); }
.pipeline-empty { min-height: 130px; display: grid; place-items: center; color: var(--muted); font-size: .82rem; }
.schedule-card { grid-column: 1 / -1; border-radius: 20px; padding: 22px; }
.funnel-card { border-radius: 20px; padding: 20px; }
.overview-funnel { min-height: 248px; background: linear-gradient(155deg, var(--surface) 0%, var(--surface) 62%, var(--amber-soft) 100%); }
.pipeline-card .section-kicker { color: var(--teal); }
.funnel-card .section-kicker { color: var(--amber); }
.schedule-card .section-kicker { color: var(--coral); }
.list-section .section-kicker { color: var(--violet); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-heading.compact { align-items: center; margin-bottom: 16px; }
.section-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.live-pill { padding: 5px 9px; border-radius: 20px; color: var(--coral); background: var(--coral-soft); font-size: .72rem; font-weight: 700; }
.timezone-toggle { position: relative; width: 196px; height: 34px; flex: 0 0 auto; display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 1px 2px rgba(18,58,96,.05); }
.timezone-thumb { position: absolute; top: 3px; left: 3px; width: calc(50% - 3px); height: 26px; border-radius: 999px; background: var(--purple-800); box-shadow: 0 2px 7px rgba(18,58,96,.2); transition: transform .24s cubic-bezier(.2,.75,.25,1); }
.timezone-toggle[data-active="beijing"] .timezone-thumb { transform: translateX(100%); }
.timezone-option { position: relative; z-index: 1; min-width: 0; border: 0; border-radius: 999px; padding: 0 7px; color: var(--muted); background: transparent; font-size: .7rem; font-weight: 750; white-space: nowrap; cursor: pointer; transition: color .2s ease; }
.timezone-option[aria-pressed="true"] { color: white; }
.timezone-option:focus-visible { outline: 2px solid var(--purple-400); outline-offset: 2px; }
.schedule-list { max-height: 430px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-right: 5px; overflow-y: auto; scrollbar-color: #9eb6ca transparent; scrollbar-width: thin; }
.schedule-item { min-width: 0; display: grid; grid-template-columns: 44px 34px minmax(0,1fr) 28px; align-items: center; gap: 10px; padding: 13px; border-radius: 14px; background: var(--surface-2); cursor: pointer; }
.schedule-item:hover { background: var(--blue-soft); }
.schedule-item.is-ended { opacity: .72; }
.schedule-item.is-ended .schedule-date { background: #7890a5; }
.schedule-divider { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin-top: 5px; padding: 9px 2px 2px; border-top: 1px solid var(--line); color: var(--muted); font-size: .74rem; font-weight: 800; }
.schedule-divider small { font-size: .68rem; font-weight: 600; }
.schedule-date { width: 44px; height: 44px; display: grid; place-content: center; border-radius: 11px; color: white; background: var(--coral); text-align: center; }
.schedule-date b { font-size: 1rem; line-height: 1; }.schedule-date span { font-size: .62rem; opacity: .72; }
.schedule-item strong, .schedule-item small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.schedule-item strong { font-size: .86rem; }.schedule-item small { color: var(--muted); font-size: .73rem; }
.schedule-copy { min-width: 0; align-self: center; }
.countdown { display: inline-flex; align-items: center; margin-top: 7px; padding: 3px 7px; border-radius: 7px; color: var(--teal); background: var(--teal-soft); font-size: .7rem; font-weight: 800; }
.countdown.soon { color: var(--red); background: var(--red-soft); }
.countdown.ongoing { color: var(--teal); background: var(--teal-soft); }
.countdown.ended { color: var(--muted); background: var(--line); }
.funnel-bars { display: grid; justify-items: center; gap: 4px; padding: 2px 0 0; }
.funnel-layer { position: relative; isolation: isolate; overflow: hidden; width: var(--funnel-width); min-height: 38px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 7px 18px; clip-path: polygon(4% 0,96% 0,89% 100%,11% 100%); color: white; background: var(--funnel-color); filter: drop-shadow(0 5px 8px rgba(33,43,54,.08)); opacity: 0; transform-origin: center top; transition: width .35s ease, transform .2s ease, filter .2s ease; }
.funnel-layer > * { position: relative; z-index: 2; }
.funnel-layer::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; background: linear-gradient(105deg,transparent 25%,rgba(255,255,255,.06) 40%,rgba(255,255,255,.42) 50%,rgba(255,255,255,.08) 60%,transparent 75%); background-size: 230% 100%; background-position: 135% 0; }
.funnel-bars.is-animating .funnel-layer { animation: funnel-layer-enter 1s cubic-bezier(.16,.84,.24,1) forwards; animation-delay: calc(var(--funnel-index) * 180ms); }
.funnel-bars.is-animating .funnel-layer::after { animation: funnel-sheen 1.05s ease-in-out forwards; animation-delay: calc(220ms + var(--funnel-index) * 180ms); }
.funnel-bars.has-animated .funnel-layer { opacity: 1; }
.funnel-layer:hover { z-index: 1; transform: translateY(-2px) scale(1.012); filter: brightness(1.08) drop-shadow(0 8px 12px rgba(33,43,54,.14)); }
.funnel-layer:active { transform: translateY(0) scale(.99); }
.funnel-layer-label { overflow: hidden; font-size: .72rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.funnel-layer-value { display: flex; align-items: baseline; gap: 4px; }
.funnel-layer-value b { font-size: .94rem; line-height: 1; }
.funnel-layer-value small { font-size: .6rem; opacity: .8; }
@keyframes funnel-layer-enter {
  0% { opacity: 0; transform: translateY(26px) scaleX(.74); filter: blur(4px) brightness(1.22) drop-shadow(0 2px 4px rgba(33,43,54,.03)); }
  68% { opacity: 1; transform: translateY(-2px) scaleX(1.025); filter: blur(0) brightness(1.06) drop-shadow(0 10px 15px rgba(33,43,54,.16)); }
  100% { opacity: 1; transform: translateY(0) scaleX(1); filter: blur(0) brightness(1) drop-shadow(0 5px 8px rgba(33,43,54,.08)); }
}
@keyframes funnel-sheen {
  0%,12% { opacity: 0; background-position: 135% 0; }
  28% { opacity: .75; }
  82% { opacity: .4; }
  100% { opacity: 0; background-position: -75% 0; }
}

.calendar-section { margin-bottom: 30px; padding: 22px; border-radius: 20px; }
.calendar-section .section-kicker { color: var(--teal); }
.calendar-heading { margin-bottom: 18px; }
.calendar-note { color: var(--muted); font-size: .72rem; }
.calendar-panels { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.calendar-panel { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.calendar-title { display: flex; align-items: baseline; gap: 7px; margin-bottom: 12px; }
.calendar-title strong { font-size: 1rem; }.calendar-title span { color: var(--muted); font-size: .72rem; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.calendar-weekdays { margin-bottom: 5px; color: var(--muted); font-size: .68rem; font-weight: 750; text-align: center; }
.calendar-day { min-width: 0; min-height: 61px; padding: 5px; border-top: 1px solid var(--line); background: var(--surface); }
.calendar-day.is-empty { background: transparent; }
.calendar-day > span { display: flex; align-items: center; justify-content: space-between; gap: 3px; color: var(--muted); font-size: .66rem; }
.calendar-day.has-event > span { color: var(--ink); font-weight: 800; }
.calendar-day.is-today { position: relative; z-index: 1; border-radius: 8px; outline: 2px solid var(--purple-600); outline-offset: -2px; background: var(--blue-soft); }
.today-label { flex: 0 0 auto; white-space: nowrap; padding: 2px 3px; border-radius: 5px; color: white; background: var(--purple-600); font-size: .48rem; font-weight: 850; line-height: 1.1; }
.calendar-events { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }
.calendar-event { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 7px; padding: 0; background: transparent; cursor: pointer; }
.calendar-event:hover { outline: 2px solid var(--purple-400); }
.list-section { border-radius: 21px; padding: 24px; }
.list-heading { align-items: center; margin-bottom: 17px; }
.list-tools { display: flex; align-items: center; gap: 9px; }
.view-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.view-switch button { width: 34px; height: 30px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; }
.view-switch button.active { color: var(--purple-800); background: var(--surface); box-shadow: 0 2px 8px rgba(18,58,96,.09); }
select { min-height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 34px 0 11px; color: var(--ink); background: var(--surface); }
.filter-row { display: flex; gap: 8px; overflow-x: auto; margin: 0 -2px 16px; padding: 2px; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 20px; padding: 7px 12px; background: var(--surface); color: var(--muted); font-size: .8rem; cursor: pointer; }
.filter-chip.active { border-color: var(--purple-800); color: white; background: var(--purple-800); }
.data-table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 11px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .72rem; letter-spacing: .04em; text-align: left; }
td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr { transition: background .18s ease; }
tbody tr:hover { background: var(--surface-2); }
.date-cell { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.company-with-logo { display: flex; align-items: center; gap: 12px; min-width: 0; }
.company-with-logo > div { min-width: 0; }
.company-cell strong, .company-cell span { display: block; }
.company-cell strong { font-size: .91rem; }.company-cell span { max-width: 360px; color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 4px 9px; border-radius: 8px; font-size: .76rem; font-weight: 750; white-space: nowrap; }
.status-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-interview { color: var(--teal); background: var(--teal-soft); }
.status-offer { color: var(--offer); background: var(--offer-soft); }
.status-written { color: var(--amber); background: var(--amber-soft); }
.status-screening { color: var(--violet); background: var(--violet-soft); }
.status-rejected { color: var(--coral); background: var(--coral-soft); }
.status-watchlist { color: var(--green); background: var(--green-soft); }
.round-badge { width: 28px; height: 28px; display: inline-grid; place-items: center; border: 1px solid var(--teal); border-radius: 50%; color: var(--teal); background: var(--teal-soft); font-size: .78rem; font-weight: 850; line-height: 1; }
.round-badge-small { width: 24px; height: 24px; font-size: .68rem; }
.company-logo { position: relative; display: inline-grid; place-items: center; flex: 0 0 auto; overflow: hidden; border: 0; border-radius: 0; color: var(--muted); background: transparent; font-size: .58rem; font-weight: 850; line-height: 1; }
.company-logo > span { display: none; }
.company-logo.is-fallback > span { display: block; }
.company-logo img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 1px; object-fit: contain; background: transparent; image-rendering: auto; }
.company-logo img[data-crop="left-symbol"] { top: 50%; right: auto; bottom: auto; left: 0; width: auto; max-width: none; height: 85%; padding: 0; object-fit: fill; transform: translateY(-50%); }
.company-logo img[data-crop="yanfu-symbol"] { top: 50%; right: auto; bottom: auto; left: 17.7%; width: auto; max-width: none; height: 85%; padding: 0; object-fit: fill; transform: translateY(-50%); clip-path: inset(0 75.32% 0 0); }
[data-theme="dark"] .company-logo img[data-monochrome="true"] { filter: invert(1); }
.logo-xs { width: 26px; height: 26px; font-size: .5rem; }.logo-xs img { padding: 1px; }
.logo-sm { width: 34px; height: 34px; }.logo-md { width: 38px; height: 38px; }.logo-lg { width: 42px; height: 42px; }
.no-round { color: var(--muted); }
.link-button, .more-button { border: 0; background: transparent; cursor: pointer; }
.link-button { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 9px; color: var(--purple-600); text-decoration: none; }
.more-button { width: 32px; height: 32px; border-radius: 9px; color: var(--muted); font-size: 1.25rem; }
.more-button:hover { background: var(--surface-2); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.job-card { min-width: 0; display: grid; gap: 13px; padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); cursor: pointer; transition: transform .18s, border-color .18s; }
.job-card:hover { transform: translateY(-2px); border-color: var(--purple-400); }
.job-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.job-card-title { min-width: 0; flex: 1; }.job-card-title strong, .job-card-title span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.job-card-title span { color: var(--muted); font-size: .78rem; }
.job-card-foot { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .72rem; }
.hidden { display: none !important; }
.empty-state { min-height: 220px; display: grid; place-content: center; text-align: center; color: var(--muted); }.empty-state strong, .empty-state span { display: block; }.empty-state strong { color: var(--ink); }

.detail-dialog { width: min(560px, calc(100vw - 30px)); max-height: 88vh; padding: 0; border: 0; border-radius: 22px; color: var(--ink); background: var(--surface); box-shadow: 0 30px 90px rgba(6,24,44,.36); }
.detail-dialog::backdrop { background: rgba(6,22,39,.6); backdrop-filter: blur(5px); }
.dialog-shell { position: relative; padding: 28px; }
.dialog-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--surface-2); cursor: pointer; font-size: 1.3rem; }
.dialog-company { display: flex; align-items: center; gap: 10px; padding-right: 36px; color: var(--purple-600); font-size: .8rem; font-weight: 800; letter-spacing: .08em; }
.dialog-title { max-width: 88%; margin: 5px 0 16px; font-size: 1.45rem; }
.dialog-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.dialog-meta span { padding: 5px 9px; border-radius: 8px; background: var(--surface-2); color: var(--muted); font-size: .75rem; }
.timeline { display: grid; gap: 0; margin: 8px 0 24px; }
.timeline-item { position: relative; display: grid; grid-template-columns: 80px 18px 1fr; gap: 8px; min-height: 54px; }
.timeline-item:not(:last-child)::after { content: ""; position: absolute; left: 88px; top: 20px; bottom: -2px; width: 1px; background: var(--line); }
.timeline-date { color: var(--muted); font-size: .74rem; padding-top: 2px; text-align: right; }
.timeline-dot { width: 9px; height: 9px; z-index: 1; margin-top: 5px; border: 2px solid var(--surface); border-radius: 50%; background: var(--purple-600); box-shadow: 0 0 0 2px var(--purple-400); }
.timeline-copy strong, .timeline-copy span { display: block; }.timeline-copy strong { font-size: .84rem; }.timeline-copy span { color: var(--muted); font-size: .74rem; }
.edit-panel { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 14px; border-radius: 14px; background: var(--surface-2); }
.edit-panel label { color: var(--muted); font-size: .74rem; }.edit-panel select { width: 100%; margin-top: 5px; }
.primary-button { align-self: end; min-height: 38px; border: 0; border-radius: 10px; padding: 0 15px; color: white; background: var(--purple-800); cursor: pointer; }
.local-note { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .7rem; }
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 20; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 10px 15px; border-radius: 10px; color: white; background: #102f55; box-shadow: var(--shadow); transition: .2s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.mobile-nav { display: none; }

@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 210px minmax(0,1fr); }
  .sidebar { padding-inline: 14px; }
  .main-content { padding-inline: 24px; }
  .overview-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero-card, .pipeline-card, .funnel-card { grid-column: auto; }
  .schedule-card { grid-column: 1 / -1; }
  .schedule-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 760px) {
  body { padding-bottom: 76px; }
  .app-shell { display: block; }
  .sidebar { display: none; }
  .main-content { padding: 20px 16px 24px; }
  .topbar { align-items: flex-start; margin-bottom: 18px; }
  .mobile-brand-mark { display: block; }
  .eyebrow { display: none; }
  h1 { font-size: 1.55rem; }
  .top-actions { flex: 1; justify-content: flex-end; }
  .search-box { width: 44px; padding: 0; justify-content: center; overflow: hidden; transition: width .25s ease; }
  .search-box:focus-within { position: absolute; left: 16px; right: 16px; z-index: 5; width: calc(100% - 32px); padding: 0 12px; justify-content: flex-start; }
  .search-box input { display: block; width: 0; flex: 0; opacity: 0; }
  .search-box kbd { display: none; }
  .search-box:focus-within input { width: auto; flex: 1; opacity: 1; }
  .overview-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .hero-card { min-height: 190px; grid-column: 1 / -1; padding: 20px; }
  .hero-copy { max-width: 67%; }.hero-copy p { font-size: .82rem; }
  .orbit { width: 112px; height: 112px; flex-basis: 112px; }.ring-two { inset: 21px; }.orbit-center { width: 61px; height: 61px; }.orbit-center strong { font-size: 1.35rem; }
  .node-one { left: 51px; }.node-two { right: 10px; bottom: 23px; }.node-three { left: 12px; bottom: 25px; }
  .metric-card { min-height: 128px; padding: 16px; }.metric-card.neutral { grid-column: 1 / -1; min-height: 104px; }
  .pipeline-card, .schedule-card, .funnel-card { grid-column: 1 / -1; padding: 18px; }
  .pipeline-card { min-height: 248px; }
  .advanced-pipeline { max-height: 184px; }
  .overview-funnel { min-height: auto; }
  .funnel-bars { width: 100%; gap: 6px; }
  .funnel-layer { min-height: 42px; padding: 8px 18px; clip-path: none; border-radius: 0; background: transparent; filter: none; }
  .funnel-layer::before { content: ''; position: absolute; inset: 0; z-index: 0; background: var(--funnel-color); clip-path: polygon(8px 0, calc(100% - 8px) 0, calc(100% - 15px) 100%, 15px 100%); }
  .funnel-layer::after { clip-path: polygon(8px 0, calc(100% - 8px) 0, calc(100% - 15px) 100%, 15px 100%); }
  .funnel-layer:hover { transform: translateY(-1px); filter: brightness(1.06); }
  .funnel-layer:active { transform: translateY(0) scale(.985); }
  .schedule-list { max-height: 460px; grid-template-columns: 1fr; }
  .schedule-card .section-heading, .calendar-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .schedule-actions, .calendar-actions { width: 100%; justify-content: space-between; }
  .timezone-toggle { width: 184px; }
  .calendar-section { margin-bottom: 18px; padding: 18px 12px; }
  .calendar-heading.section-heading.compact { align-items: stretch; text-align: left; padding-inline: 5px; }
  .calendar-heading > div:first-child { width: 100%; min-width: 0; }
  .calendar-day.is-today > span { gap: 1px; }
  .today-label { padding: 2px 2px; }.calendar-note { display: none; }.calendar-actions { justify-content: flex-end; }
  .calendar-panels { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 4px; scrollbar-width: thin; }
  .calendar-panel { min-width: min(88vw,430px); scroll-snap-align: start; padding: 13px; }
  .calendar-day { min-height: 55px; padding: 4px; }
  .list-section { margin-inline: -5px; padding: 18px 12px; border-radius: 18px; }
  .list-heading { align-items: flex-end; }
  .view-switch { display: none; }
  .data-table-wrap { display: none; }
  .card-grid { display: grid !important; grid-template-columns: 1fr; }
  .job-card { grid-template-columns: 1fr; padding: 15px; }
  .mobile-nav { position: fixed; left: 12px; right: 12px; bottom: 10px; z-index: 15; display: grid; grid-template-columns: repeat(3,1fr); padding: 7px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(13,44,75,.96); box-shadow: 0 12px 35px rgba(7,28,49,.38); backdrop-filter: blur(14px); }
  .mobile-nav button { display: grid; place-items: center; gap: 1px; border: 0; border-radius: 12px; padding: 5px; background: transparent; color: #b7d0e4; font-size: .68rem; }
  .mobile-nav button span { font-size: 1rem; }.mobile-nav button.active { color: white; background: rgba(255,255,255,.1); }
  .dialog-shell { padding: 24px 18px; }.edit-panel { grid-template-columns: 1fr; }.primary-button { width: 100%; }.timeline-item { grid-template-columns: 66px 18px 1fr; }.timeline-item:not(:last-child)::after { left: 74px; }
}

@media (max-width: 430px) {
  .hero-copy { max-width: 70%; }.hero-copy h2 { font-size: 1.25rem; }.orbit { transform: scale(.9); transform-origin: right center; margin-left: -12px; }
  .metric-card strong { font-size: 1.72rem; }
  .list-tools select { width: 118px; font-size: .78rem; }
  .live-pill { font-size: .67rem; }
  .timezone-toggle { width: 174px; }
  .timezone-option { padding-inline: 4px; font-size: .66rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Offer decision area: removed from layout until a confirmed offer exists. */
.offer-section[hidden] { display: none !important; }
.offer-section { grid-column: 1 / -1; min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.offer-section .section-kicker { color: var(--amber); }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,340px),1fr)); gap: 16px; }
.offer-card { min-width: 0; border: 1px solid var(--line); border-top: 3px solid var(--amber); border-radius: 14px; padding: 20px; background: var(--surface); }
.offer-card-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.offer-identity { flex: 1; min-width: 140px; overflow-wrap: anywhere; }
.offer-identity h3 { margin: 0; font-size: 18px; }
.offer-identity p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.offer-decision { color: var(--amber); background: var(--amber-soft); padding: 5px 9px; border-radius: 8px; font-size: 14px; }
.offer-summary { font-size: 16px; line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
.offer-highlights { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 22px 0; }
.offer-highlights > div:last-child { grid-column: 1 / -1; }
.offer-section dt { color: var(--muted); font-size: 14px; }
.offer-section dd { margin: 6px 0 0; line-height: 1.6; font-size: 16px; }
.offer-fact-value { white-space: pre-line; overflow-wrap: anywhere; }
.offer-evidence { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.offer-unknown { color: var(--muted); font-size: 14px; }
.offer-details { border-top: 1px solid var(--line); padding-top: 14px; }
.offer-section summary { cursor: pointer; font-size: 15px; font-weight: 600; padding: 8px 0; }
.offer-facts { display: grid; gap: 14px; }
.offer-facts > div { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.offer-notes h4 { font-size: 15px; margin: 20px 0 10px; }
.offer-notes ul { padding-left: 20px; margin: 0; }
.offer-notes li { padding: 5px 0; font-size: 15px; line-height: 1.65; }
.offer-updated { font-size: 12px; color: var(--muted); }
.offer-record-button { margin-top: 16px; padding: 10px 0; border: 0; background: transparent; color: var(--blue); cursor: pointer; font-size: 14px; }
.offer-comparison { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 12px; }
.offer-table-scroll { overflow-x: auto; max-width: 100%; }
.offer-comparison table { border-collapse: collapse; width: 100%; font-size: 14px; }
.offer-comparison caption { text-align: left; color: var(--muted); padding: 12px 0; }
.offer-comparison th,.offer-comparison td { min-width: 190px; max-width: 350px; padding: 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; white-space: normal; overflow-wrap: anywhere; }
.offer-comparison th { background: var(--surface-2); }
.offer-comparison th:first-child { min-width: 140px; }
.offer-comparison th small { display: block; margin-top: 6px; font-weight: 400; }
.offer-section :focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
@media(max-width:760px) { .offer-section { padding: 18px; } .offer-card { padding: 16px; } .offer-highlights { grid-template-columns: 1fr; } }

.calendar-day.is-china-rest { background: #e3f1e5; }
[data-theme="dark"] .calendar-day.is-china-rest { background: color-mix(in srgb,var(--surface) 83%,#76b98a); }

/* Completed HR interviews remain interviews; only their pipeline presentation changes. */
.pipeline-item.hr-completed { background: #fff0f0; }
.pipeline-item.hr-completed:hover { background: #ffe4e4; }
.pipeline-item.hr-completed .pipeline-marker { background: #d78b8b; }
.pipeline-item.hr-completed .pipeline-status { color: #a34343; background: #f9dada; }

[data-theme="dark"] .pipeline-item.hr-completed { background: #35252b; }
[data-theme="dark"] .pipeline-item.hr-completed:hover { background: #442c33; }
[data-theme="dark"] .pipeline-item.hr-completed .pipeline-status { color: #f0aaaa; background: #512f36; }

/* Keep chart geometry logarithmic on every screen; narrow layers use outside labels. */
.funnel-layer { box-sizing: border-box; width: 100%; padding-inline: 0; overflow: visible; clip-path: none; background: transparent; }
.funnel-layer::before { content: ''; position: absolute; inset: 0; z-index: 0; background: var(--funnel-color); clip-path: polygon(4% 0,96% 0,89% 100%,11% 100%); }
.funnel-layer::after { clip-path: polygon(4% 0,96% 0,89% 100%,11% 100%); }
.funnel-layer::before, .funnel-layer::after { width: var(--funnel-width); left: 50%; right: auto; transform: translateX(-50%); }
.funnel-layer-label, .funnel-layer-value { position: absolute; top: 50%; transform: translateY(-50%); white-space: nowrap; overflow: visible; }
.funnel-layer-label { left: calc(50% - var(--funnel-width) * .39 + 1.5px); }
.funnel-layer-value { right: calc(50% - var(--funnel-width) * .39 + 1.5px); }
.funnel-layer-narrow { color: var(--ink); }
.funnel-layer-narrow .funnel-layer-label { left: auto; right: calc(50% + var(--funnel-width) * .46 + 2.5px); }
.funnel-layer-narrow .funnel-layer-value { right: auto; left: calc(50% + var(--funnel-width) * .46 + 2.5px); }

/* Desktop overview: give the funnel more width and use the full list height. */
@media (min-width: 1181px) {
  .overview-grid { grid-template-columns: minmax(376px, 1.2fr) minmax(0, 1.35fr) minmax(180px, .95fr); }
  .pipeline-card { grid-column: auto; display: flex; flex-direction: column; }
  .pipeline-heading { flex: 0 0 auto; }
  .advanced-pipeline { flex: 1 1 0; height: 0; min-height: 0; max-height: none; align-content: start; }
}

@media (min-width: 1181px) {
  .hero-copy { flex: 1; min-width: 0; max-width: none; }
  .hero-title-line { display: block; white-space: nowrap; }
}

/* Gentle activity around the stable interview count. */
.orbit-satellites { position: absolute; inset: 0; pointer-events: none; animation: orbit-drift 15s linear infinite reverse; }
.orbit-center { animation: orbit-glow 2.4s ease-in-out infinite; }
@keyframes orbit-drift { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes orbit-glow {
  0%, 100% { box-shadow: 0 14px 28px rgba(6,30,54,.25), 0 0 12px 2px rgba(172,217,245,.08); }
  50% { box-shadow: 0 14px 28px rgba(6,30,54,.25), 0 0 24px 7px rgba(172,217,245,.24); }
}
@media (prefers-reduced-motion: reduce) {
  .orbit-satellites, .orbit-center, .orbit .ring-two { animation: none; }
}

.orbit.orbit-awaiting { opacity: 0; }
.orbit.orbit-entering { animation: orbit-reveal 1.4s ease-out both; }
@keyframes orbit-reveal { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .orbit.orbit-awaiting { opacity: 1; }
  .orbit.orbit-entering { animation: none; }
}



/* Chicago noon split; half-day shading follows the corresponding China date. */
.calendar-day.is-split-day { position: relative; padding: 0; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.calendar-day.is-split-day > span { position: absolute; top: 5px; left: 5px; right: 5px; z-index: 1; pointer-events: none; }
.calendar-day.is-split-day.is-today { outline: none; }
.calendar-day.is-split-day.is-today::before { content: ''; position: absolute; inset: 0; border: 2px solid var(--purple-600); border-radius: inherit; z-index: 3; pointer-events: none; }
.calendar-halves { display: grid; grid-template-rows: auto auto; align-content: start; }
.calendar-half { min-width: 0; padding: 5px; background: var(--surface); }
.calendar-am { padding-top: 24px; }
.calendar-pm { position: relative; min-height: 20px; }
.calendar-pm::before { content: ""; position: absolute; top: 0; left: 7px; right: 7px; border-top: 1px dashed #cdd3da; pointer-events: none; }
.calendar-half .calendar-events { margin-top: 0; }
.calendar-half.is-china-rest { background: #e3f1e5; }
.calendar-untimed { padding: 5px; background: var(--surface); color: var(--muted); }
.calendar-untimed > small { font-size: .6rem; }
[data-theme="dark"] .calendar-half.is-china-rest { background: color-mix(in srgb,var(--surface) 83%,#76b98a); }
[data-theme="dark"] .calendar-pm::before { border-top-color: #536170; }

/* Each week's AM and PM tracks size independently to their own contents. */
@supports (grid-template-rows: subgrid) {
  .is-chicago-grid > .calendar-day { grid-row: span 2; }
  .is-chicago-grid > .is-split-day { display: grid; grid-template-rows: subgrid; }
  .is-chicago-grid .calendar-halves { display: contents; }
  .is-chicago-grid .calendar-untimed { grid-row: 2; grid-column: 1; align-self: end; }
}

/* Arrival boundary and pre-06:00 interviews in Chicago local time. */
.calendar-day.is-chicago-arrival::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--blue); z-index: 2; pointer-events: none; }
.calendar-event.is-early-chicago { border-radius: 3px; outline: 1.5px dashed #8b5cf6; outline-offset: 1px; }
.calendar-event.is-early-chicago:hover { outline: 1.5px dashed #8b5cf6; }

/* Confirmed active-job locations, city boundaries from DataV GeoAtlas. */
.work-cities { padding: 14px 0 8px; }
.work-cities[hidden] { display:none; }
.work-cities h2 { margin:0 0 12px; color:#bed2e3; font-size:.875rem; font-weight:600; }
.city-silhouettes { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
.city-choice { position:relative; min-width:0; }
.city-trigger { width:100%; border:0; padding:4px 2px 8px; border-radius:9px; background:transparent; color:#e8f0f8; cursor:pointer; }
.city-trigger img { width:100%; height:60px; display:block; object-fit:contain; transition:transform .18s ease; }
.city-trigger span { display:flex; align-items:center; justify-content:center; gap:4px; font-size:14px; white-space:nowrap; }
.city-trigger b { font-size:12px; color:#ffc578; font-weight:600; }
.city-trigger:hover,.city-trigger:focus-visible { background:rgba(255,255,255,.08); outline:1px solid #eda851; }
.city-trigger:hover img { transform:translateY(-2px); }
.city-tooltip { position:fixed; z-index:100; width:280px; max-width:calc(100vw - 24px); padding:16px; border:1px solid #46647e; border-radius:12px; background:#153551; color:#f4f8fc; box-shadow:0 12px 35px #00152b55; opacity:0; visibility:hidden; pointer-events:none; transform:translateY(4px); transition:opacity .15s,transform .15s; }
.city-choice:hover .city-tooltip,.city-choice:focus-within .city-tooltip { opacity:1;visibility:visible;transform:none; }
.city-tooltip strong { color:#ffc578; font-size:15px; }
.city-tooltip ul { list-style:none; margin:10px 0 0; padding:0; display:grid;gap:10px; }
.city-tooltip li span,.city-tooltip li small { display:block; }
.city-tooltip li span { font-size:14px; font-weight:600; }
.city-tooltip li small { font-size:13px; color:#b7cfe1; line-height:1.5; }
@media (max-height:740px) and (min-width:1001px) { .sidebar { padding-top:18px;padding-bottom:18px; } .brand-block { padding-bottom:18px; } }

/* Chicago calendar: purple outline denotes interviews in the next early morning. */
.calendar-title .calendar-early-legend { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; line-height: 1.4; white-space: nowrap; color: var(--muted, #748397); }
.calendar-early-legend i { display: inline-block; width: 18px; height: 18px; border: 1.5px dashed #8b5cf6; border-radius: 3px; flex: 0 0 auto; }
