:root{color-scheme:light;font-family:Inter,"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",system-ui,sans-serif;--ink: #17231d;--muted: #5d7066;--line: #cbd7cd;--surface: #ffffff;--surface-soft: #f6f8f5;--accent: #17705b;--accent-soft: #e8f5ef;--copper: #c85f2e;--copper-soft: #fff2df;--shadow: 0 18px 45px rgba(32, 49, 39, .12)}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:#eef3ef;color:var(--ink)}button,input,select{font:inherit}button{min-height:36px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);cursor:pointer;transition:border-color .16s ease,background .16s ease,color .16s ease,transform .16s ease}button:hover{border-color:var(--accent);color:var(--accent)}button:active{transform:translateY(1px)}input,select{width:100%;min-height:40px;border:1px solid var(--line);border-radius:8px;background:#fbfcfb;color:var(--ink);outline:none;padding:0 12px}input:focus,select:focus{border-color:var(--accent);box-shadow:0 0 0 3px #17705b1f}.app-shell{display:flex;flex-direction:column;min-height:100vh}.topbar{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:76px;padding:14px 24px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.88);backdrop-filter:blur(12px);z-index:5}.eyebrow{margin:0 0 4px;color:var(--copper);font-size:12px;font-weight:700}h1,h2,p{margin-top:0}h1{margin-bottom:0;font-size:26px;letter-spacing:0}.topbar-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}.topbar-actions button{padding:0 14px}.icon-button{width:38px;padding:0;font-size:20px;line-height:1}.zoom-readout{display:inline-flex;align-items:center;justify-content:center;min-width:56px;height:36px;border:1px solid var(--line);border-radius:8px;background:var(--surface-soft);color:var(--muted);font-size:13px}.side-panel{display:flex;flex-direction:column;gap:18px;overflow:auto;border-right:1px solid var(--line);background:#fbfcfb;padding:20px}.panel-section{display:grid;gap:10px;padding-bottom:18px;border-bottom:1px solid #e3e9e2}.panel-section:last-child{border-bottom:0}.field-label,.section-title{color:var(--muted);font-size:13px;font-weight:700}.muted-line{margin:0;color:var(--muted);font-size:13px}.primary-button{border-color:var(--accent);background:var(--accent);color:#fff}.primary-button:hover{background:#125c4b;color:#fff}.ghost-button{background:var(--accent-soft);border-color:#bdd8cd;color:var(--accent)}.person-detail h2{margin-bottom:2px;font-size:24px}.person-detail dl{display:grid;gap:9px;margin:6px 0 0}.person-detail dl div{display:grid;grid-template-columns:52px 1fr;gap:10px;align-items:baseline}.person-detail dt{color:var(--muted);font-size:12px}.person-detail dd{margin:0;font-size:14px}.person-note{margin:6px 0 0;color:#3c4f45;font-size:13px;line-height:1.7}.export-actions{grid-template-columns:repeat(3,1fr)}.export-actions .section-title{grid-column:1 / -1}.tree-stage{position:relative;min-width:0;overflow:hidden;background:var(--surface-soft)}.tree-svg{display:block;width:100%;height:100%;cursor:grab;touch-action:none}.tree-svg.is-panning{cursor:grabbing}.stage-bg{fill:#f6f8f5}.stage-grid{opacity:.55}.links path{fill:none;stroke:#b7c0b5;stroke-width:1.8;stroke-linecap:round;transition:opacity .16s ease,stroke .16s ease,stroke-width .16s ease}.links path.is-highlight{stroke:var(--copper);stroke-width:3.2}.links path.is-dimmed{opacity:.18}.person-node{cursor:pointer;transition:opacity .16s ease}.person-node.is-dimmed{opacity:.34}.person-card{fill:var(--surface);stroke:#c8d0c7;stroke-width:1.4;filter:drop-shadow(0 9px 16px rgba(35,52,43,.1));transition:fill .16s ease,stroke .16s ease,stroke-width .16s ease}.person-node.is-selected .person-card{fill:#edf8f4;stroke:var(--accent);stroke-width:2.4}.person-node.is-highlight .person-card{fill:var(--copper-soft);stroke:var(--copper);stroke-width:2.4}.person-name{fill:var(--ink);font-size:18px;font-weight:800}.person-meta{fill:#587064;font-size:12px;font-weight:700}.person-years{fill:#6d6b5d;font-size:12px}.person-count{fill:#8a5b35;font-size:11px}.collapse-control{cursor:pointer}.collapse-control circle{fill:#f7faf7;stroke:#aebcaf;stroke-width:1.4}.collapse-control text{fill:#32433b;font-size:15px;font-weight:800;pointer-events:none}.spouse-links path{fill:none;stroke:#e0c9b4;stroke-width:1.2;stroke-dasharray:4 3;opacity:.7}.spouse-node{cursor:default;transition:opacity .16s ease}.spouse-node.is-dimmed{opacity:.34}.spouse-card{fill:#fefaf5;stroke:#e8d5c0;stroke-width:1.2;filter:drop-shadow(0 4px 8px rgba(33,27,20,.08))}.spouse-label{fill:#c8956a;font-size:14px}.spouse-name{fill:#6b421f;font-size:13px;font-weight:700}.spouse-years{fill:#a0886e;font-size:10px}.stage-help{position:absolute;right:18px;bottom:18px;border:1px solid rgba(202,214,204,.85);border-radius:8px;background:rgba(255,255,255,.84);color:var(--muted);padding:8px 12px;font-size:12px;box-shadow:var(--shadow);pointer-events:none}.toast{position:absolute;left:50%;bottom:20px;transform:translate(-50%);border:1px solid #d7b58a;border-radius:8px;background:#fff9ee;color:#6b421f;padding:10px 16px;box-shadow:var(--shadow);font-size:13px}.toast-enter-active,.toast-leave-active{transition:opacity .18s ease,transform .18s ease}.toast-enter-from,.toast-leave-to{opacity:0;transform:translate(-50%,8px)}.workspace{display:grid;grid-template-columns:320px minmax(0,1fr);min-height:0;flex:1}@media (max-width: 1180px){.workspace{grid-template-columns:290px minmax(0,1fr)}.topbar{padding-inline:18px}}@media (max-width: 860px){.app-shell{min-height:100vh}.topbar{align-items:flex-start;flex-direction:column}.topbar-actions{justify-content:flex-start}.workspace{grid-template-columns:1fr}.side-panel{max-height:420px;border-right:0;border-bottom:1px solid var(--line)}.tree-stage{min-height:68vh}}.status-overlay{display:flex;align-items:center;justify-content:center;min-height:100vh;background:#eef3ef}.status-box{display:flex;flex-direction:column;align-items:center;gap:16px;padding:48px 64px;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:var(--shadow);text-align:center}.status-box p{margin:0;color:var(--muted);font-size:15px}.spinner{width:40px;height:40px;border:3px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.error-box{max-width:400px}.error-icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;background:#fef0ed;color:var(--copper);font-size:24px;font-weight:800;margin:0}.error-box h2{margin:0;font-size:20px;color:var(--ink)}.error-msg{color:#8c5c4a;font-size:14px;line-height:1.7}
