:root {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #20332a;
  background: #f5f7f1;
  font-synthesis: none;
  --ink: #20332a;
  --muted: #586b61;
  --primary: #24694f;
  --primary-dark: #184936;
  --pale: #e9f1e8;
  --line: #dfe8df;
  --white: #fff;
  --green: #16765b;
  --amber: #925415;
  --red: #aa365a;
  --shadow: 0 10px 30px #1c472508;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .56; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid #478e70; outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
svg.icon { width: 1.12rem; height: 1.12rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.app-shell, .shell { min-height: 100vh; }
.sidebar { width: 15.2rem; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 1.7rem 1rem 1rem; position: fixed; inset: 0 auto 0 0; z-index: 3; }
.brand { display: flex; align-items: center; gap: .72rem; padding: .15rem .48rem 2rem; color: var(--ink); text-decoration: none; }
.brand-mark, .brand-icon { display: grid; place-items: center; border-radius: .85rem; color: #fff; background: #23654e; width: 2.55rem; height: 2.55rem; flex: 0 0 2.55rem; }
.brand-mark .icon, .brand-icon .icon { width: 1.4rem; height: 1.4rem; }
.brand strong, .brand-name { display: block; letter-spacing: .03em; font-size: 1.05rem; font-weight: 760; }
.brand small, .brand-subtitle { display: block; color: var(--muted); font-size: .75rem; margin-top: .14rem; }
.navigation { display: grid; gap: .32rem; }
.navigation button { display: flex; width: 100%; align-items: center; gap: .7rem; justify-content: flex-start; border: 0; color: #545774; background: transparent; font-size: .92rem; font-weight: 610; padding: .72rem .8rem; border-radius: .65rem; min-height: 2.75rem; text-align: left; }
.navigation button:hover { background: #edf5ec; }
.navigation button[aria-current="page"] { color: #184c38; background: #e1efe4; }
.side-note { margin-top: auto; border-top: 1px solid var(--line); padding: .95rem .6rem .15rem; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.side-note strong { color: var(--ink); }
.main { margin-left: 15.2rem; }
.topbar { background: #fff; min-height: 4.45rem; padding: .8rem 2rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.topbar .context, .topbar-title { display: flex; align-items: center; gap: .5rem; min-width: 0; }
[data-company-name] { max-width: min(48vw, 25rem); overflow-wrap: anywhere; font-size: .94rem; }
.topbar-actions { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.engine-label, [data-engine-label] { font-size: .81rem; font-weight: 700; color: #245d4d; background: var(--pale); border-radius: 99px; padding: .35rem .65rem; white-space: nowrap; }
#view { max-width: 96rem; margin: 0 auto; padding: 1.7rem 2rem 3rem; }
.btn { min-height: 2.55rem; display: inline-flex; align-items: center; justify-content: center; gap: .46rem; border: 1px solid #d4e1d6; border-radius: .63rem; padding: .49rem .82rem; background: white; color: #345346; font-size: .88rem; font-weight: 680; text-decoration: none; line-height: 1.28; }
.btn:hover { background: #eef6ed; }
.btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn.primary:hover { background: var(--primary-dark); }
.btn.quiet { background: transparent; border-color: transparent; color: var(--primary-dark); }
.btn.small { min-height: 2.15rem; padding: .36rem .65rem; }
.btn.danger { color: var(--red); }
.btn.icon-btn { width: 2.4rem; min-height: 2.4rem; padding: 0; }
.actions { display: flex; gap: .55rem; flex-wrap: wrap; align-items: center; }
.muted { color: var(--muted); }
.meta { font-size: .81rem; color: var(--muted); line-height: 1.5; }
.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, .44fr); gap: 1.2rem; align-items: center; padding: clamp(1.15rem, 3vw, 2.1rem) clamp(1.1rem, 3vw, 2.3rem); border-radius: 1.2rem; min-height: 14.4rem; background: linear-gradient(116deg, #163d30 0%, #235540 70%, #376f50 100%); color: white; box-shadow: 0 15px 26px #224f3524; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0 0 0 46%; background: repeating-linear-gradient(0deg, transparent 0 24px, #fff1 25px 26px), repeating-linear-gradient(90deg, transparent 0 27px, #fff1 28px 29px); mask-image: linear-gradient(90deg, transparent, #000); }
.hero .hint { color: #d1ecdb; font-size: .81rem; font-weight: 650; letter-spacing: .02em; margin-bottom: .52rem; }
.hero h1 { font-size: clamp(1.8rem, 4.1vw, 3.1rem); line-height: 1.12; letter-spacing: -.045em; overflow-wrap: anywhere; }
.hero p:not(.hint) { color: #eff8ef; font-size: .97rem; max-width: 32rem; line-height: 1.65; margin: .8rem 0 1.15rem; }
.hero .btn.primary { color: #184d3c; background: #fff; border-color: white; }
.hero .btn.secondary { color: white; background: #ffffff13; border-color: #fff5; }
.hero .btn:hover { filter: brightness(.94); }
.hero-display { position: relative; display: grid; gap: .48rem; width: min(100%, 17rem); justify-self: end; padding: .78rem; border: 1px solid #ffffff38; border-radius: 1rem; background: #153e2e55; backdrop-filter: blur(10px); }
.hero-display div { display: flex; align-items: center; gap: .52rem; padding: .32rem .45rem; color: #edf6ec; font-size: .82rem; }
.hero-display div + div { border-top: 1px solid #ffffff24; }
.hero-display svg { color: #d2ebda; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin-top: 1rem; }
.metric { padding: .88rem .99rem; border: 1px solid var(--line); background: #fff; border-radius: .8rem; box-shadow: var(--shadow); min-width: 0; }
.metric p { color: var(--muted); font-size: .82rem; display: flex; align-items: center; justify-content: space-between; gap: .23rem; }
.metric p .icon { color: #357457; }
.metric strong { display: block; margin-top: .44rem; font-variant-numeric: tabular-nums; font-size: 1.58rem; letter-spacing: -.04em; overflow-wrap: anywhere; }
.metric small { font-size: .75rem; color: var(--muted); }
.section-title, .page-heading { display: flex; gap: .8rem; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; margin: 1.62rem 0 .8rem; }
.page-heading { margin: 0 0 1.1rem; }
.page-heading h1 { font-size: clamp(1.65rem, 3vw, 2.2rem); letter-spacing: -.04em; }
.section-title h2 { font-size: 1.22rem; }
.section-title p, .page-heading p { margin-top: .24rem; color: var(--muted); font-size: .88rem; }
.people-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.person { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: .94rem; background: white; box-shadow: var(--shadow); min-width: 0; }
.person-head { padding: .75rem .78rem .65rem; display: flex; justify-content: space-between; gap: .4rem; align-items: start; }
.person-head h3 { font-size: 1.06rem; line-height: 1.25; overflow-wrap: anywhere; }
.person-head p { margin-bottom: .15rem; color: var(--primary-dark); font-size: .76rem; font-weight: 680; overflow-wrap: anywhere; }
.person-head button { color: var(--muted); }
.portrait { aspect-ratio: 1; width: min(100%, 15rem); margin: auto; border-radius: .75rem .75rem 0 0; position: relative; overflow: hidden; background-color: #e4def7; }
.person-scene { background: linear-gradient(140deg,#eef2e9,#e8efe7); overflow: hidden; padding: .34rem .4rem 0; max-height: 13rem; }
.portrait::before { content: ""; position: absolute; inset: 0; background-image: url("./assets/employee-atlas.jpg"); background-repeat: no-repeat; background-size: 300% 200%; background-position: var(--ax) var(--ay); }
.portrait.n0 { --ax: 0%; --ay: 0%; background-color: #dcd4f4; }
.portrait.n1 { --ax: 50%; --ay: 0%; background-color: #cce9de; }
.portrait.n2 { --ax: 100%; --ay: 0%; background-color: #f2dce8; }
.portrait.n3 { --ax: 0%; --ay: 100%; background-color: #dce3f6; }
.portrait.n4 { --ax: 50%; --ay: 100%; background-color: #f0e6dc; }
.portrait.n5 { --ax: 100%; --ay: 100%; background-color: #e0dfef; }
.person[data-state="running"] .portrait::before { animation: focus-work 3s ease-in-out infinite; }
.person-scene .work-indicator { position: absolute; z-index: 1; inset: auto .55rem .55rem .55rem; height: .23rem; overflow: hidden; background: #fff8; border-radius: 4px; }
.person-scene .work-indicator::after { content: ""; display: block; width: 33%; height: 100%; border-radius: 4px; background: #458970; animation: bar 1.6s ease-in-out infinite; }
@keyframes focus-work { 50% { transform: scale(1.025) translateY(-1%); } }
@keyframes bar { from { transform: translateX(-100%); } to { transform: translateX(310%); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } }
.person-foot { padding: .64rem .78rem .75rem; min-height: 4.5rem; }
.person-foot .meta { margin-top: .37rem; overflow-wrap: anywhere; }
.badge { font-size: .76rem; font-weight: 700; display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; border-radius: 99px; padding: .27rem .52rem; background: #f0f0f7; color: #575774; }
.badge.running, .badge.live, .badge.active, .badge.done { background: #e7f6ef; color: #176c52; }
.badge.running::before { content: ""; width: .43rem; height: .43rem; border-radius: 100%; background: #249974; }
.badge.review, .badge.candidate { color: #864813; background: #fff2e5; }
.badge.blocked { color: #902343; background: #fce9f0; }
.badge.ready { color: #30644f; background: #e6f2e8; }
.split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: .85rem; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: .9rem; box-shadow: var(--shadow); padding: .95rem 1rem; min-width: 0; }
.panel h2, .panel h3 { font-size: 1.06rem; margin-bottom: .35rem; }
.panel + .panel.stacked { margin-top: .8rem; }
.list { display: grid; }
.list-row { border: 0; border-bottom: 1px solid var(--line); min-height: 3.7rem; display: flex; align-items: center; justify-content: space-between; text-align: left; gap: .7rem; background: #fff; color: var(--ink); padding: .65rem .1rem; }
.list-row:last-child { border-bottom: 0; }
button.list-row:hover strong { color: var(--primary-dark); }
.list-row strong { display: block; font-size: .94rem; overflow-wrap: anywhere; }
.list-row .meta { margin-top: .17rem; }
.list-lead { display: flex; min-width: 0; align-items: center; gap: .62rem; }
.tile-icon { display: grid; place-items: center; flex: 0 0 2.25rem; height: 2.25rem; border-radius: .65rem; background: #e4eee5; color: var(--primary); }
.empty { padding: 1rem .2rem; color: var(--muted); font-size: .91rem; line-height: 1.6; }
.stack { display: grid; gap: .7rem; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.task-result { white-space: pre-wrap; overflow-wrap: anywhere; margin: .38rem 0 .7rem; padding: .72rem .82rem; border-radius: .62rem; background: #f2f7ef; color: #324f40; line-height: 1.62; font-size: .94rem; }
.task-step { padding: .64rem 0; border-bottom: 1px solid var(--line); }
.task-step:last-child { border-bottom: 0; }
.step-head { display: flex; align-items: center; justify-content: space-between; gap: .55rem; flex-wrap: wrap; }
.step-head strong { font-size: .96rem; }
.note-text { margin: .44rem 0 .7rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
dialog { border: 1px solid var(--line); border-radius: 1rem; padding: 0; width: min(42rem, calc(100% - 1.35rem)); max-height: min(85vh, 52rem); color: var(--ink); background: white; box-shadow: 0 28px 65px #22213a36; }
dialog::backdrop { background: #19143174; backdrop-filter: blur(2px); }
#modal-content { padding: 1.15rem; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; margin-bottom: .95rem; }
.modal-head h2 { font-size: 1.35rem; }
.modal-head p { margin-top: .24rem; }
form { display: grid; gap: .75rem; }
label { font-size: .87rem; font-weight: 650; }
.field { display: grid; gap: .28rem; min-width: 0; }
input:not([type="checkbox"]), textarea, select { width: 100%; color: var(--ink); border: 1px solid #d0ded3; border-radius: .6rem; background-color: white; padding: .64rem .72rem; min-height: 2.65rem; }
textarea { resize: vertical; min-height: 5rem; }
select { appearance: none; padding-right: 2.1rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23565774' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-position: right .65rem center; background-repeat: no-repeat; }
.checkline { display: flex; align-items: center; gap: .5rem; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: .89rem; }
th, td { border-bottom: 1px solid var(--line); text-align: left; padding: .64rem .45rem; }
th { color: var(--muted); font-size: .77rem; }
#toast { position: fixed; inset: auto 1rem 1rem auto; z-index: 10; max-width: min(30rem, calc(100vw - 2rem)); border-radius: .7rem; background: #173f31; color: white; padding: .7rem .9rem; box-shadow: var(--shadow); font-size: .88rem; }
#toast:empty { display: none; }
@media (max-width: 1120px) {
  .sidebar { width: 12.6rem; }
  .main { margin-left: 12.6rem; }
  #view, .topbar { padding-inline: 1.35rem; }
  .people-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 830px) {
  .sidebar { position: static; width: auto; padding: .78rem .75rem .42rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: .1rem .25rem .65rem; }
  .navigation { display: flex; flex-wrap: wrap; gap: .17rem; }
  .navigation button { width: auto; padding: .44rem .57rem; font-size: .83rem; }
  .navigation .icon { width: .98rem; height: .98rem; }
  .side-note { display: none; }
  .main { margin-left: 0; }
}
@media (max-width: 565px) {
  #view, .topbar { padding-inline: .82rem; }
  #view { padding-top: .95rem; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-display { display: none; }
  .topbar { align-items: flex-start; }
  .topbar-actions { justify-content: flex-end; }
  .split, .card-grid { grid-template-columns: 1fr; }
  .metrics, .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .48rem; }
  .metric { padding: .6rem; }
  .person-head, .person-foot { padding-inline: .55rem; }
  .engine-label, [data-engine-label] { font-size: .72rem; }
}
.running-person { display:flex; gap:.72rem; align-items:center; margin:.6rem 0; padding:.5rem; border-radius:.65rem; background:#e6f1e9; }
.running-person .portrait { width:4.1rem; margin:0; flex:0 0 4.1rem; border-radius:.55rem; }
.running-person[data-state="running"] .portrait::before { animation:focus-work 2s ease-in-out infinite; }
.running-person .work-indicator { position:absolute; height:3px; inset:auto .3rem .35rem; background:#fff9; z-index:1; overflow:hidden; border-radius:3px; }
.running-person .work-indicator::after { content:""; display:block; width:31%; height:100%; background:#458970; animation:bar 1.6s ease-in-out infinite; }
.side-note small { display:block; }
@media (min-width: 680px) and (max-width: 830px) {
  .sidebar { flex-direction: row; align-items: center; gap: .72rem; padding: .56rem .69rem; }
  .brand { padding: 0; white-space: nowrap; }
  .navigation { margin-left: auto; justify-content: flex-end; }
  .navigation button { min-height: 2.35rem; }
  .hero { min-height: 11.8rem; padding-block: 1rem; }
}
@media (max-width: 679px) {
  .hero { min-height: 0; }
}

.jpd-mark {
  position: relative;
  inline-size: 1.42rem;
  block-size: 1.27rem;
  transform: rotate(-9deg);
}
.jpd-mark::before,
.jpd-mark::after {
  position: absolute;
  content: "";
}
.jpd-mark::before {
  inset: .14rem .22rem .12rem 0;
  background: #fff4dd;
  clip-path: polygon(0 0, 66% 0, 66% 27%, 100% 27%, 100% 100%, 0 100%);
  border-radius: .16rem;
}
.jpd-mark::after {
  inset: 0 0 auto auto;
  width: .49rem;
  height: .48rem;
  background: #f5a25c;
  border-radius: .11rem;
}
