/* Family room. Ported from the Founder-approved blueprint family.css; `.mobile` is set on #frame. */
.fg-content{background:#f6f2e8}.fg-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 26px 14px}.fg-heading h2{font-size:27px;margin:6px 0}.fg-heading p{font-size:14px;color:#5e6c5a}.fg-toolbar{display:flex;gap:6px;align-items:center;flex-wrap:wrap;padding:0 26px 12px}.fg-toolbar button{font-size:14px;padding:8px 12px}.fg-toolbar output{font-size:13px;color:#65735e;margin-left:auto}.fg-workspace{display:grid;grid-template-columns:minmax(0,1fr) 255px;min-height:600px;margin:0 16px;border:1px solid #d1dac7;border-radius:16px;overflow:hidden}.fg-canvas-wrap{background:#eef1e5;min-width:0;position:relative}.fg-hint{font-size:12px;color:#5f7158;padding:10px 16px;border-bottom:1px solid #d6dfce}#fg-canvas{width:100%;height:560px;display:block;touch-action:none;cursor:grab;background-image:radial-gradient(#a6b59c55 1px,transparent 1px);background-size:24px 24px}#fg-canvas:active{cursor:grabbing}.fg-edge{fill:none;stroke:#657e54;stroke-width:2.2;cursor:pointer;pointer-events:stroke}.fg-edge:focus{outline:none;stroke:#1b4732;stroke-width:5}.fg-edge.partner{stroke:#a78b55;stroke-width:2}.fg-edge.adopt{stroke:#617d87;stroke-dasharray:9 5;stroke-width:2.6}.fg-edge.step{stroke:#a17a4a;stroke-dasharray:2 6;stroke-width:2.6}.fg-junction{fill:#637e55}.fg-divorce{stroke:#a17451;stroke-width:2.2;fill:none}.fg-edge-note{fill:#755f39;font:12px "Microsoft YaHei",sans-serif;paint-order:stroke;stroke:#eef1e5;stroke-width:5px;stroke-linejoin:round}.fg-generation{font:14px "Microsoft YaHei",sans-serif;fill:#79866b}.fg-person{cursor:pointer;outline:none}.fg-person>rect{fill:#fffdf7;stroke:#bacbae;stroke-width:1.3}.fg-person.selected>rect{stroke:#295f40;stroke-width:3}.fg-person.self>rect{fill:#dfead5;stroke:#64855a}.fg-person:focus>rect{stroke:#ad813e;stroke-width:3}.fg-avatar{fill:#eee8d7;stroke:none}.fg-avatar-icon{fill:none;stroke:#7a8065;stroke-width:1.7}.fg-name{font:600 18px "Microsoft YaHei",sans-serif;fill:#244b36}.fg-label{font:14px "Microsoft YaHei",sans-serif;fill:#53694b}.fg-legend{display:flex;gap:12px;flex-wrap:wrap;font-size:12px;line-height:1.8;border-top:1px solid #d1dbc5;padding:10px 14px}.fg-legend span{display:inline-flex;gap:6px;align-items:center}.fg-legend i{display:inline-block;width:22px;border-top:2px solid #657e54}.fg-legend i.partner{border-color:#a78b55}.fg-legend i.adopt{border-color:#617d87;border-top-style:dashed}.fg-legend i.step{border-color:#a17a4a;border-top-style:dotted}.fg-detail{border-left:1px solid #d1dac7;background:#fffdf7;padding:20px 18px;font-size:15px}.fg-detail h3{font-size:25px;margin:8px 0}.fg-detail h3 small{display:block;font-size:16px;font-weight:400;color:#57704d;margin:4px 0}.fg-detail p{margin:10px 0}.fg-detail-actions{display:grid;gap:8px;margin:14px 0}.fg-detail-actions button{font-size:15px}.fg-evidence{font-size:14px;margin-top:18px;border-top:1px solid #d1dac7;padding-top:12px}.fg-evidence summary{min-height:44px;cursor:pointer}.fg-overview{position:absolute;right:10px;bottom:88px;background:#fffdf4eb;border:1px solid #c9d5be;border-radius:9px;width:164px;box-shadow:0 3px 12px #35563c16}.fg-overview summary{font-size:12px;cursor:pointer;min-height:38px;padding:9px}.fg-overview svg{display:block;width:100%;height:87px}.fg-mini-edge{stroke:#839c77;stroke-width:10;fill:none}.fg-mini-person{fill:#cbd8bd}.fg-mini-self{fill:#3c6747}.fg-view{stroke:#ad803e;stroke-width:15}.fg-person-list{margin:18px 24px;font-size:15px}.fg-person-list summary{cursor:pointer;min-height:44px}#fg-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:10px 0}#fg-list button{font-size:14px;text-align:left}.fg-boundary{padding:0 24px 22px;font-size:13px;color:#697260}#overlay-body input#fg-name,#overlay-body textarea#fg-correction{display:block;width:100%;max-width:100%;border:1px solid #aebe9e;border-radius:9px;padding:12px;margin:10px 0;background:#faf8ee;font:inherit;line-height:1.7}#overlay-body textarea#fg-correction{min-height:110px}.mobile .fg-heading{padding:18px 15px 10px;display:block}.mobile .fg-heading h2{font-size:23px}.mobile .fg-heading>button{margin-top:10px;width:100%;font-size:16px}.mobile .fg-toolbar{padding:0 12px 10px;gap:4px}.mobile .fg-toolbar button{padding:7px 9px;font-size:13px}.mobile .fg-toolbar output{font-size:12px}.mobile .fg-workspace{display:flex;flex-direction:column;margin:0 8px;border-radius:12px}.mobile #fg-canvas{height:480px}.mobile .fg-detail{border-left:0;border-top:1px solid #d1dac7;padding:18px}.mobile .fg-overview{width:130px;bottom:102px}.mobile .fg-overview svg{height:68px}.mobile .fg-hint{font-size:12px;padding:8px 12px}.mobile .fg-legend{gap:7px;font-size:11px}.mobile #fg-list{grid-template-columns:1fr 1fr}.mobile .fg-person-list{margin:15px}.mobile .fg-boundary{padding:0 16px 20px}.mobile.large .fg-heading h2{font-size:25px}.mobile.large .fg-detail{font-size:18px}.mobile.large #fg-list button{font-size:16px}@media(prefers-reduced-motion:reduce){#fg-canvas{scroll-behavior:auto}}
/* Founder V5.1: avatars, partial dates, picking a photo as avatar. Same palette as above. */
.fg-avatar-photo{display:block;width:72px;height:72px;border-radius:14px;object-fit:cover;background:#eee8d7;border:1px solid #d1dac7;margin:6px 0}.fg-avatar-photo.placeholder{background:#eee8d7 url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%27-20 -20 40 40%27%3E%3Cpath d=%27M-9,8 Q0,-2 9,8 M-4,-6 a4,4 0 1 0 8,0 a4,4 0 1 0 -8,0%27 fill=%27none%27 stroke=%27%237a8065%27 stroke-width=%272%27/%3E%3C/svg%3E") center/60% no-repeat}.fg-avatar-image{clip-path:inset(0 round 8px)}
.date-fields{border:1px solid #d1dac7;border-radius:10px;padding:8px 10px;margin:10px 0;display:flex;gap:8px;flex-wrap:wrap}.date-fields legend{font-size:14px;color:#57704d;padding:0 4px}.date-fields input{width:6.5em;padding:8px;border:1px solid #aebe9e;border-radius:8px;background:#faf8ee;font:inherit}
.photo-strip{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}.photo-pick{padding:0;border:1px solid #c9d5be;border-radius:10px;overflow:hidden;width:72px;height:72px;background:#fffdf7}.photo-pick img,.photo-thumb img{width:100%;height:100%;object-fit:cover;display:block}.photo-thumb{width:96px;margin:0}.photo-thumb img{height:72px;border-radius:8px}.photo-thumb figcaption{font-size:12px;color:#5e6c5a}
.fg-ask{margin:12px 0;padding:12px 14px;border:1px solid #c9b78a;border-radius:12px;background:#fbf6ea}.fg-ask p{margin:0 0 8px}.fg-ask .actions{gap:8px}
/* Founder UX fix: a small handle in the middle of every relation line opens what it stands for. */
.fg-handle{cursor:pointer}.fg-handle-hit{fill:transparent}.fg-handle-dot{fill:#fffdf7;stroke:#637e55;stroke-width:2.5}.fg-handle.partner .fg-handle-dot{stroke:#a78b55}.fg-handle:hover .fg-handle-dot,.fg-handle:focus .fg-handle-dot{fill:#e7c98f}.fg-handle:focus{outline:none}.fg-person{cursor:grab}
.fg-pairs{margin:0 26px 12px}.mobile .fg-pairs{margin:0 12px 10px}.fg-pair{border-top:1px solid var(--line);padding-top:8px;margin-top:8px}.fg-pair .actions button{flex:0 1 auto}
#fg-rel-note{width:100%;min-height:64px}
/* Founder family graph fix (2026-11-01): a view that can be made larger (or dragged taller on a computer), lines that
   can be picked and moved with small squares (apart from the round point that opens the relation), the selected
   person's or line's own relations brought forward (the rest only dimmed), a gentle look for a family member who has
   died, a name not yet known, and forms written as one sentence. */
.fg-canvas-wrap{display:flex;flex-direction:column;height:var(--fg-h,640px);min-height:420px;max-height:94vh;resize:vertical;overflow:hidden}
.fg-canvas-wrap.big{height:86vh;resize:none}.fg-canvas-wrap:fullscreen{height:100vh;max-height:none;resize:none}
.fg-canvas-wrap #fg-canvas{flex:1 1 auto;height:auto;min-height:0}
.mobile .fg-canvas-wrap{height:auto;resize:none}.mobile .fg-canvas-wrap.big{height:82vh}.mobile .fg-canvas-wrap:not(.big) #fg-canvas{flex:none;height:480px}
.fg-edge-hit{fill:none;stroke:transparent;stroke-width:16;cursor:pointer;pointer-events:stroke}
.fg-edge.selected{stroke-width:4}.fg-edge.on{stroke-width:3}.fg-edge.dim,.fg-edge-note.dim,.fg-divorce.dim,.fg-handle.dim{opacity:.18}.fg-person.dim{opacity:.38}
.fg-ctl{cursor:grab}.fg-ctl.y{cursor:ns-resize}.fg-ctl.x{cursor:ew-resize}.fg-ctl-hit{fill:transparent}.fg-ctl-dot{fill:#fff7ea;stroke:#b0662a;stroke-width:2.4}.fg-ctl:focus{outline:none}.fg-ctl:focus .fg-ctl-dot,.fg-ctl:hover .fg-ctl-dot{fill:#f0c58f}
.fg-person.deceased>rect:first-child{fill:#f3f1ec;stroke:#cbc6ba}.fg-person.deceased .fg-name,.fg-person.deceased .fg-label{fill:#8b877d}
.fg-person.unknown-name .fg-name{fill:#8b877d;font-style:italic;font-weight:400}
.fg-line-panel{border:1px solid #c9b78a;border-radius:12px;background:#fbf6ea;padding:10px 12px;margin:0 0 14px}.fg-line-panel p{margin:6px 0}
.fg-style{display:inline-flex;gap:6px;align-items:center;font-size:13px;color:#53694b}.fg-style select{min-height:34px;border:1px solid #b7c1ad;border-radius:8px;background:#fffdf7;font:inherit}
.fg-sentence{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin:14px 0;font-size:17px}.fg-sentence input,.fg-sentence select{min-height:46px;border:1px solid #b7c1ad;border-radius:10px;background:#fffdf7;padding:8px 10px;font:inherit}
.fg-sentence input{flex:1 1 11em;min-width:9em}.fg-sentence select{flex:0 1 auto;max-width:100%}.fg-sentence strong{color:#244b36}
.fg-own{display:block;width:100%;min-height:44px;border:1px solid #b7c1ad;border-radius:10px;padding:8px 10px;margin:0 0 10px;background:#fffdf7;font:inherit}
.fg-choice{border:1px solid #d1dac7;border-radius:10px;padding:8px 12px;margin:8px 0;display:flex;flex-wrap:wrap;gap:6px 16px}.fg-choice legend{font-size:14px;color:#57704d;padding:0 4px}.fg-choice label{display:inline-flex;gap:6px;align-items:center;min-height:36px}
#fg-add-more label,.fg-life label,.fg-contact label{display:grid;gap:6px;margin:8px 0}#fg-add-more select,#fg-add-more textarea,.fg-life input:not([type=checkbox]),.fg-contact select,.fg-contact input,.fg-contact textarea{border:1px solid #b7c1ad;border-radius:9px;padding:8px 10px;background:#fffdf7;font:inherit}
.fg-life{border:1px solid #d1dac7;border-radius:10px;padding:8px 12px;margin:10px 0}.fg-life legend{font-size:14px;color:#57704d;padding:0 4px}.fg-quiet-check{display:flex!important;grid-template-columns:none;align-items:center;gap:8px;font-size:15px;color:#53694b}
.mobile .fg-sentence{font-size:16px}.mobile .fg-sentence input{flex-basis:100%}
/* Founder family branch fix (2026-11-01): view and move preferences, a branch or range shown alone, the way someone is
   related to the narrator, recorded descendants by generation, places among brothers and sisters, a group being moved. */
.fg-prefs{padding-top:0}.fg-prefs .fg-style select{max-width:13em}
.fg-branch{margin:0 26px 10px;padding:8px 12px;border:1px solid #c9b78a;border-radius:10px;background:#fbf6ea;font-size:14px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.fg-path{border-left:3px solid #c9b78a;padding-left:8px;font-size:14px;line-height:1.6}
.fg-desc-tabs,.fg-desc-names,.fg-desc-marks{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}.fg-desc-gen{border-top:1px solid var(--line);padding-top:6px;margin-top:6px}.fg-desc-names button{flex:0 1 auto}
.fg-rank-row{display:grid;grid-template-columns:minmax(6em,1fr) auto minmax(6em,10em);gap:8px;align-items:center;border-top:1px solid var(--line);padding:8px 0}.fg-rank-row select,.fg-rank-row input[type=text]{min-height:40px;border:1px solid #b7c1ad;border-radius:8px;background:#fffdf7;padding:6px 8px;font:inherit}
.fg-person.moving>rect:first-child{stroke:#b0662a;stroke-width:3;stroke-dasharray:6 4}
.mobile .fg-branch{margin:0 12px 10px}.mobile .fg-rank-row{grid-template-columns:1fr 1fr}
/* Founder family QA V2 (2026-11-01): joined or not and comments waiting (only from the share records), the person's page
   with the everyday fields first, contact channels, the birthday and its reminder, 生卒 folded below, what was shared. */
.fg-join circle{fill:#5f7f4f;stroke:#fffdf7;stroke-width:2}.fg-join.pending circle{fill:#fffdf7;stroke:#8a9a7a;stroke-dasharray:3 2}.fg-join text{font-size:12px;font-weight:700;fill:#fffdf7}.fg-join.pending text{fill:#6c7a60}
.fg-waiting circle{fill:#b0662a;stroke:#fffdf7;stroke-width:2}.fg-waiting text{font-size:11px;font-weight:700;fill:#fffdf7}
.fg-join-line{font-size:14px}
.fg-birthday,.fg-gender{border:1px solid #d1dac7;border-radius:10px;padding:8px 12px;margin:10px 0}.fg-birthday legend,.fg-gender legend{font-size:14px;color:#57704d;padding:0 4px}
.fg-birthday label{display:grid;gap:6px;margin:8px 0}.fg-birthday select{border:1px solid #b7c1ad;border-radius:9px;padding:8px 10px;background:#fffdf7;min-height:40px;max-width:14em}
.fg-gender{display:flex;flex-wrap:wrap;gap:14px}.fg-gender label{display:inline-flex!important;align-items:center;gap:6px;white-space:nowrap;margin:0}.fg-gender input{flex:none;width:20px;height:20px;margin:0}
.fg-ch-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:8px 0}.fg-ch-row [data-ch-type]{flex:0 0 10em}.fg-ch-row [data-ch-code]{flex:0 0 6.5em}.fg-ch-row [data-ch-label]{flex:0 0 9em}.fg-ch-row [data-ch-value]{flex:1 1 12em}.fg-ch-row [hidden]{display:none}
.fg-ch-row select,.fg-ch-row input{min-height:40px;border:1px solid #b7c1ad;border-radius:8px;background:#fffdf7;padding:6px 8px;min-width:0}
.fg-life-more summary,.fg-channels summary{cursor:pointer}.fg-life-more{opacity:.92}#fg-death-fields label{display:grid;gap:6px;margin:8px 0}#fg-death-fields input{border:1px solid #b7c1ad;border-radius:9px;padding:8px 10px;background:#fffdf7}
.fg-story-list{display:grid;gap:8px;margin:10px 0}.fg-story-list button{text-align:left}
.fg-history-item{border-top:1px solid var(--line);padding:8px 0}
.mobile .fg-ch-row [data-ch-value]{flex-basis:100%}
.large .fg-ch-row [data-ch-value]{flex-basis:100%}.large .fg-rank-row{grid-template-columns:1fr 1fr}.large .fg-join text,.large .fg-waiting text{font-size:13px}
/* Founder relation UX V3 (2026-11-01): the graph takes the full width; the selected person's summary and three folded
   parts (人物资料 / 关系来源 / 家人之间如何称呼) sit below it; the help request composer and the person's history. */
.fg-workspace{grid-template-columns:minmax(0,1fr);min-height:0}
.fg-detail{border-left:0;margin:14px 16px 0;border:1px solid #d1dac7;border-radius:16px;padding:18px 20px}
.fg-summary{display:grid;grid-template-columns:76px minmax(0,1fr) minmax(190px,auto);gap:18px;align-items:start}
.fg-summary .fg-avatar-photo{margin:4px 0}
.fg-summary h3{margin:4px 0 6px}
.fg-summary-main p{margin:6px 0}
.fg-summary-main small{color:#57704d;margin-right:6px}
.fg-summary-actions{display:grid;gap:8px}
.fg-summary-actions button{font-size:15px}
.fg-suggest{display:flex;flex-wrap:wrap;gap:6px}
.fg-suggest button{font-size:14px;padding:6px 12px}
.fg-notice{color:#7c5216}
.fg-notice button{font-size:13px;padding:3px 10px;margin-left:6px}
.fg-more-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px;padding-top:10px;border-top:1px dashed #d6ddcc}
.fg-more-actions button{font-size:13px;padding:6px 10px}
.fg-modules{display:grid;gap:10px;margin-top:14px}
.fg-module{border:1px solid #dbe2d0;border-radius:12px;background:#fbfaf3}
.fg-module>summary{min-height:46px;padding:12px 16px;cursor:pointer;font-weight:600;color:#284d38}
.fg-module-body{padding:0 16px 12px;font-size:15px}
.fg-module-body p{margin:8px 0}
.fg-module-body .fg-evidence{margin-top:8px}
.fg-way{border-left:3px solid #9bb08c;padding:2px 0 2px 10px;margin:8px 0}
.fg-open{background:#fff5e1;border-radius:10px;padding:6px 12px;margin:10px 0}
.fg-picked{position:absolute;left:10px;bottom:88px;max-width:60%;background:#fffdf4eb;border:1px solid #c9d5be;border-radius:999px;padding:6px 14px;font-size:13px;color:#2c5039;box-shadow:0 3px 12px #35563c16}
.fg-help-form input,.fg-help-form select,.fg-help-form textarea,.fg-link-row input{display:block;width:100%;max-width:100%;min-height:44px;border:1px solid #b7c1ad;border-radius:10px;padding:8px 10px;margin:4px 0 8px;background:#fffdf7;font:inherit;font-size:15px;color:inherit}
.fg-help-form textarea{min-height:64px;max-height:none;resize:vertical;line-height:1.6}
.fg-help-form label{display:block;text-align:left;font-size:14px;color:#4f6247}
.fg-help-form h3{font-size:17px;margin:14px 0 6px}
.fg-help-who,.fg-q-meta{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.fg-q{border:1px solid #d9e0cf;border-radius:12px;padding:10px 12px;margin:8px 0;background:#fbfaf3}
.fg-q-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.fg-q-head span{display:flex;gap:4px}
.fg-q-head button{font-size:13px;padding:4px 10px;min-height:34px}
.fg-help-presets{border-top:1px dashed #d6ddcc;margin-top:10px;padding-top:8px}
.fg-help-presets .actions{display:flex;flex-wrap:wrap;gap:6px}
#overlay-body .fg-help-presets .actions>*{min-width:0;flex:0 1 auto;font-size:13px;padding:6px 10px}
.fg-help-preview{background:#fbfaf3;border:1px solid #dbe2d0;border-radius:12px;padding:10px 16px}
.fg-help-preview li{margin:8px 0}
.fg-link-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.fg-link-row input{flex:1 1 260px;margin:0;font-size:13px}
.fg-state{display:inline-block;padding:0 8px;border-radius:10px;font-size:13px;background:#e3eedb;color:#2c5039}
.fg-help-q{border-top:1px solid #e3e7da;padding:6px 0}
.fg-answer{background:#fbfaf3;border-radius:10px;padding:4px 10px;margin:6px 0}
.fg-answer .actions{display:flex;flex-wrap:wrap;gap:6px}
#overlay-body .fg-answer .actions>*{min-width:0;flex:0 1 auto;font-size:13px;padding:5px 10px}
.mobile .fg-detail{margin:12px 8px 0;padding:14px}
.mobile .fg-summary{grid-template-columns:56px minmax(0,1fr);gap:12px}
.mobile .fg-summary .fg-avatar-photo{width:56px;height:56px}
.mobile .fg-summary-actions{grid-column:1/-1}
.mobile .fg-help-who,.mobile .fg-q-meta{grid-template-columns:1fr}
.mobile .fg-picked{bottom:102px;max-width:70%}
.large .fg-summary h3{font-size:27px}
.large .fg-summary-main,.large .fg-module-body{font-size:18px}
.large .fg-summary-actions button{font-size:17px}
/* Founder family layout V4 (2026-11-02): each count opens its list; each person with the path that ties them. */
.fg-count{margin:8px 0}.fg-count>summary{cursor:pointer;padding:6px 0}.fg-desc-row{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin:4px 0}.fg-desc-row>button{flex:0 1 auto;text-align:left}
.fg-desc-path{font-size:.9em}.fg-desc-path>summary{cursor:pointer;color:var(--muted,#666)}.fg-desc-path p{margin:4px 0 6px;word-break:break-all}

.fg-search{display:block;clear:both;width:100%;box-sizing:border-box;margin:16px 0 24px}.fg-search>label{display:block;margin-bottom:8px}.fg-search>input{display:block;width:min(100%,440px);box-sizing:border-box}.fg-search>[role="status"]{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.fg-search+[class*="fg-"]{margin-top:16px}

/* 人生故事图谱 (2026-11-09, approved view): a picture of tiles; tap to focus, the rest fades; links can be tapped. */
.sg-page{max-width:1240px;margin:0 auto;padding:12px 20px 32px}.sg-muted{color:var(--muted);font-size:14px}
.sg-top{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.sg-tabs{display:flex;flex-wrap:wrap;gap:6px;background:var(--white);border:1px solid var(--line);border-radius:14px;padding:5px}
.sg-tab{min-height:44px;padding:6px 14px;border:0;border-radius:10px;background:none;color:var(--ink);font-size:16px}.sg-tab.on{background:var(--green);color:#fff}
.sg-ring-btn{display:flex;align-items:center;gap:6px;white-space:nowrap;flex:none;background:none;border:0;min-height:0;padding:0;color:var(--muted);font-size:14px}.sg-ring-svg{width:56px;height:56px}
.sg-ring-bg{fill:#fff;stroke:#e6e2d4;stroke-width:6}.sg-ring-ok{fill:none;stroke:var(--gold);stroke-width:6;stroke-linecap:round}.sg-ring-svg text{font-size:12px;fill:var(--ink);font-weight:600}
.sg-stages{display:flex;gap:6px;overflow-x:auto;padding:10px 0 2px;scrollbar-width:thin}.sg-chip-btn{flex:none;min-height:38px;padding:4px 12px;border:1px solid var(--line);border-radius:999px;background:var(--white);font-size:14px;color:var(--ink)}.sg-chip-btn.on{border-color:var(--green);background:#e3efe4}
.sg-caption{margin:10px 0;padding:10px 14px;background:#2b342e;color:#f3efe2;border-left:4px solid var(--gold);border-radius:8px;font-size:15px;line-height:1.8}
.sg-caption strong{color:#fff}.sg-caption .sg-muted{color:#cfd6cc}.sg-rel-chip{min-height:32px;padding:2px 10px;margin:2px 2px;border-radius:999px;border:1px solid #6d7b6f;background:transparent;color:#f3efe2;font-size:14px}.sg-rel-chip.sg-e-inferred{border-style:dashed}
.sg-layout{display:grid;gap:16px;grid-template-columns:minmax(0,1fr)}
@media (min-width:820px){.sg-has-card .sg-layout{grid-template-columns:minmax(0,1fr) 360px}.sg-side{position:sticky;top:8px;align-self:start;max-height:calc(100vh - 120px);overflow:auto}}
.sg-stage-area{background:linear-gradient(180deg,#f7f3e8,#eef1e8);border:1px solid var(--line);border-radius:16px;padding:6px}
.sg-canvas{width:100%;height:auto;display:block}.sg-head{font-size:15px;fill:var(--muted);font-weight:600}
.sg-tile{cursor:pointer;transition:opacity .2s}.sg-tile:focus{outline:none}.sg-tile:focus-visible .sg-ring>*{stroke:var(--gold);stroke-width:5}
.sg-face>*{fill:#fbfaf4}.sg-k-person .sg-face>*{fill:#f2efe6}.sg-k-event .sg-face>*{fill:#f6efe0}.sg-k-place .sg-face>*{fill:#e8f0f3}.sg-k-object .sg-face>*{fill:#f3ebf2}.sg-k-relation .sg-face>*{fill:#efefe3}.sg-k-task .sg-face>*{fill:#ecefe8}
.sg-ring>*{fill:none;stroke:#6f806b;stroke-width:3}.sg-l-solid .sg-ring>*{stroke:#2f6b45;stroke-width:4}.sg-l-thin .sg-ring>*{stroke:#8a9a7f;stroke-width:2}.sg-l-dashed .sg-ring>*{stroke:#9aa08f;stroke-width:2;stroke-dasharray:6 4}
.sg-glyph{font-size:22px;font-weight:700;fill:var(--green)}.sg-k-event .sg-glyph{font-size:17px;fill:#6b4a17}
.sg-pill rect{fill:#2b342e}.sg-pill text{fill:#fff;font-size:15px;font-weight:600}
.sg-badge circle{fill:#fff;stroke:#c9b48a;stroke-width:1.5}.sg-badge text{font-size:12px;font-weight:700;fill:#6b4a17}.sg-b-ok text{fill:#2f6b45}.sg-b-later text{fill:#7a5a10}.sg-b-declined text{fill:#666}
.sg-dim{opacity:.22;filter:grayscale(1)}.sg-focus .sg-ring>*{stroke:var(--gold);stroke-width:5}.sg-near .sg-ring>*{stroke-width:4}
.sg-link{fill:none;stroke:#3d6f8e;stroke-width:2.5;stroke-dasharray:8 6}.sg-e-confirmed{stroke:#2f6b45;stroke-dasharray:none}.sg-e-narrated{stroke:#3d6f8e}.sg-e-inferred{stroke:#a0a69a;stroke-dasharray:4 6}.sg-link-on{stroke-width:5}
.sg-hit{fill:none;stroke:transparent;stroke-width:18;cursor:pointer}.sg-arrow{fill:#3d6f8e}
.sg-more{cursor:pointer}.sg-more rect{fill:#fff;stroke:#b7c1ad;stroke-dasharray:4 3}.sg-more text{font-size:18px;fill:var(--green);font-weight:600}
.sg-card,.sg-picker{background:var(--white);border:1px solid var(--line);border-radius:16px;padding:14px 16px}.sg-card h3{margin:4px 0 8px;font-size:20px;line-height:1.5}.sg-card h4{margin:12px 0 4px;font-size:15px;color:var(--green)}
.sg-card-head{display:flex;justify-content:space-between;align-items:center}.sg-x{min-height:40px;min-width:40px;padding:0;font-size:22px}
.sg-card-photo{width:100%;max-height:200px;object-fit:cover;border-radius:12px;margin:6px 0}
.sg-status{font-size:13px;padding:2px 8px;border-radius:999px;border:1px solid var(--line)}.sg-confirmed,.sg-checked{background:#e3efe4;border-color:#a9c9ad;color:#1f4b2a}.sg-narrated{background:#fff;color:var(--muted)}.sg-inferred,.sg-ambiguous{background:#fff;border-style:dashed;color:var(--muted)}.sg-later{background:#fbf1d8;border-color:#e2c48f;color:#6b4a17}
.sg-primary{display:grid;gap:8px;margin:12px 0}.sg-primary button{min-height:52px;font-size:17px}
.sg-gaps{font-size:15px;color:#4f5c51;line-height:1.7;margin:6px 0}.sg-declined{color:#555;background:#f1f1ee;padding:8px 10px;border-radius:8px}
.sg-quotes summary{cursor:pointer;padding:8px 0;font-weight:600;color:var(--green)}.sg-quotes blockquote{margin:6px 0;padding:8px 10px;background:#f8f6ee;border-left:3px solid var(--gold);border-radius:6px;line-height:1.7}.sg-quotes cite,.sg-card cite{display:block;font-style:normal;font-size:13px;color:var(--muted)}
.sg-card blockquote{margin:6px 0;padding:8px 10px;background:#f8f6ee;border-left:3px solid var(--gold);border-radius:6px;line-height:1.7}
.sg-near p{margin:4px 0;line-height:2}.sg-near-chip{min-height:34px;padding:2px 10px;margin:2px;border-radius:999px;border:1px solid var(--line);background:#fbfaf4;font-size:14px}.sg-near-chip.sg-e-inferred{border-style:dashed}
.sg-minor{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:12px;padding-top:10px;border-top:1px solid var(--line)}.sg-minor .link{font-size:15px;min-height:40px}
.sg-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.sg-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px;margin:8px 0}.sg-photo-pick{display:grid;gap:4px;padding:4px;border:1px solid var(--line);border-radius:10px;background:#fff;min-height:0}.sg-photo-pick img{width:100%;height:80px;object-fit:cover;border-radius:8px}.sg-photo-pick span{font-size:13px}
@media (max-width:819px){.sg-page{padding:8px 12px 24px}.sg-tabs{flex-wrap:nowrap;overflow-x:auto;width:100%}.sg-tab{flex:none}.sg-top{flex-wrap:nowrap}.sg-pill text{font-size:15px}.sg-caption{font-size:15px}.sg-card-photo{max-height:140px}.sg-ring-svg{width:48px;height:48px}.sg-tabs{flex:1 1 auto;min-width:0}}

/* FQA-4370-09 名字与写法: each name on its own block; type and delete one per line, full width on a phone. */
.fg-name-row{border-top:1px solid var(--line);padding:10px 0}.fg-name-row p{margin:0 0 6px}.fg-name-row label{display:block;margin:6px 0}.fg-name-row select{display:block;width:100%;min-height:44px;margin-top:4px}.fg-name-row label.check{display:flex;align-items:center;gap:8px;min-height:44px}
/* 故事画布 (Founder 2026-11-15, after the 动态百科 reference): a paper landscape, framed nodes, faded others, dashed
   story lines, a ring of what was looked at, a compare tray. Motion is off when less motion is asked for. */
.sg-lenses{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:10px 0 8px}.sg-lens-btn{min-height:40px;padding:4px 16px;border:1px solid var(--line);border-radius:999px;background:var(--white);font-size:15px;color:var(--ink)}.sg-lens-btn.on{background:var(--green);border-color:var(--green);color:#fff}
.sg-pick{display:flex;gap:6px;overflow-x:auto;padding:2px 0 8px;scrollbar-width:thin}.sg-pick-step{justify-content:space-between;align-items:center}
.sg-scene{position:relative;border-radius:18px;overflow:hidden;border:1px solid #d9d5c6;background:#f4f1e6;box-shadow:0 6px 24px rgba(41,63,51,.08)}
.sg-scene-top{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 10px;align-items:center;padding:12px 12px 4px;z-index:2;background:linear-gradient(180deg,#f4f1e6 70%,rgba(244,241,230,0))}
.sg-scene-top .sg-scene-tabs{grid-column:1;grid-row:1;flex-wrap:nowrap;overflow-x:auto;justify-self:start;max-width:100%}.sg-scene-top .sg-scene-tools{grid-column:2;grid-row:1}.sg-scene-top .sg-hint{grid-column:1/-1;grid-row:2}
.sg-scene-top .sg-tab{flex:none}.sg-wait-note{margin:0 12px 6px;padding:8px 12px;border:1px dashed #c9b48a;border-radius:10px;background:rgba(251,241,216,.85);font-size:14px;color:#5b4a26;display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;position:relative;z-index:2}.sg-wait-note button{min-height:36px}
.sg-scene-tabs{background:rgba(255,253,247,.94);box-shadow:0 2px 10px rgba(0,0,0,.08)}
.sg-hint{background:rgba(43,52,46,.94);color:#f3efe2;border-left:4px solid var(--gold);border-radius:8px;padding:8px 12px;font-size:14px;line-height:1.7;min-width:0}
.sg-hint p{margin:0}.sg-hint strong{color:#fff}.sg-hint .sg-muted{color:#cfd6cc}.sg-sep{color:#8f9a8f;margin:0 4px}
.sg-scene-tools{display:flex;gap:8px;align-items:center}
.sg-seen{width:58px;height:58px;filter:drop-shadow(0 2px 6px rgba(0,0,0,.12))}.sg-seen-bg{fill:#fffdf7;stroke:#e8e1cf;stroke-width:6}.sg-seen-ok{fill:none;stroke:var(--gold);stroke-width:6;stroke-linecap:round;transition:stroke-dasharray .5s ease}.sg-seen text{font-size:12px;font-weight:700;fill:var(--ink)}
.sg-compare-btn{position:relative;min-width:46px;min-height:46px;border-radius:12px;border:1px solid var(--line);background:#fffdf7;font-size:20px;box-shadow:0 2px 8px rgba(0,0,0,.1)}
.sg-cmp-count{position:absolute;top:-7px;right:-7px;min-width:20px;height:20px;border-radius:10px;background:#b4432e;color:#fff;font-size:12px;line-height:20px;font-weight:700}
.sg-scene-svg{display:block;width:100%;height:auto;touch-action:pan-y;user-select:none;cursor:default}.sg-scene-svg.sg-zoomed{touch-action:none;cursor:grab}.sg-scene-svg.sg-zoomed:active{cursor:grabbing}
.sg-paper{fill:#f3efe4}.sg-grid-line{fill:none;stroke:#e3ddcc;stroke-width:1}
.sg-hill{stroke:none}.sg-hill-far{fill:#dfe3dc;opacity:.55}.sg-hill-mid{fill:#d3dbd2;opacity:.5}.sg-hill-near{fill:#c8d3c7;opacity:.45}
.sg-head{font-size:15px;fill:#7a8577;font-weight:700;letter-spacing:.06em}
.sg-node{cursor:pointer;outline:none}.sg-pop{transform-box:fill-box;transform-origin:center;transition:transform .25s ease,opacity .25s ease,filter .25s ease}
.sg-shadow{fill:rgba(41,63,51,.16);transform:translate(2px,5px)}.sg-frame{fill:#fffdf7;stroke:#fff;stroke-width:3}
.sg-face{fill:#efe9db}.sg-k-person .sg-face{fill:#f1e4cf}.sg-k-event .sg-face{fill:#e6efe2}.sg-k-place .sg-face{fill:#e3ecef}.sg-k-object .sg-face{fill:#efe6ee}.sg-k-reflection .sg-face{fill:#f6e5e4}.sg-k-relation .sg-face{fill:#ecebe0}
.sg-tint{fill:none;stroke-width:5;stroke-linecap:round;stroke:#9aa59a}.sg-k-person .sg-tint{stroke:#b9894a}.sg-k-event .sg-tint{stroke:#3f7a57}.sg-k-place .sg-tint{stroke:#4f7f99}.sg-k-object .sg-tint{stroke:#8e5d86}.sg-k-reflection .sg-tint{stroke:#b4614f}.sg-k-relation .sg-tint{stroke:#7b7a52}
.sg-l-dashed .sg-frame{stroke:#b3b9aa;stroke-dasharray:6 4;stroke-width:2}
.sg-glyph{font-size:24px;font-weight:700;fill:#3b5446}.sg-glyph-year{font-size:19px;fill:#6b4a17}.sg-k-person .sg-glyph{font-size:30px;fill:#7a5426}
.sg-pill rect{fill:#2b342e;opacity:.92}.sg-pill text{fill:#fff;font-size:15px;font-weight:700}.sg-sub{font-size:13px;fill:#5d6b5f;font-weight:600}
.sg-node:hover .sg-pop,.sg-node:focus-visible .sg-pop{transform:translateY(-3px) scale(1.04)}.sg-node:focus-visible .sg-frame{stroke:var(--gold);stroke-width:4}
.sg-focus .sg-pop,.sg-center .sg-pop{transform:scale(1.08)}.sg-focus .sg-frame,.sg-center .sg-frame{stroke:var(--gold);stroke-width:5}
.sg-dim .sg-pop{opacity:.28;filter:grayscale(1)}
.sg-preview .sg-node:not(.sg-hover-near) .sg-pop{opacity:.35;filter:grayscale(.9)}
.sg-b-cmp circle{fill:#b4432e;stroke:#fff;stroke-width:2}.sg-b-cmp text{fill:#fff;font-size:12px;font-weight:700}
.sg-link{fill:none;stroke:#4f7f99;stroke-width:2.6;stroke-dasharray:8 7;stroke-linecap:round;animation:sg-flow 2.4s linear infinite}.sg-e-confirmed.sg-link{stroke:#2f6b45;stroke-dasharray:none;animation:none}.sg-e-inferred.sg-link{stroke:#a0a69a;stroke-dasharray:3 7}.sg-link-on{stroke-width:5}
.sg-edge-label rect{fill:#fffdf7;stroke:#c9c3b0}.sg-edge-label text{font-size:13px;fill:#3b5446;font-weight:600}
.sg-road{fill:none;stroke:#d9cfb6;stroke-width:22;stroke-linecap:round;stroke-linejoin:round;opacity:.7}.sg-road-line{fill:none;stroke:#b9a77c;stroke-width:2;stroke-dasharray:2 10;stroke-linecap:round}
.sg-sat .sg-pill text{font-size:13px}
.sg-zoom{position:absolute;right:12px;bottom:12px;display:flex;gap:6px;z-index:2}.sg-zoom-btn{min-width:44px;min-height:44px;border-radius:12px;border:1px solid var(--line);background:rgba(255,253,247,.95);font-size:20px;padding:0 10px;box-shadow:0 2px 8px rgba(0,0,0,.1)}.sg-zoom-reset{font-size:14px}
.sg-legend{position:absolute;left:12px;bottom:12px;margin:0;display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12px;color:#5d6b5f;background:rgba(255,253,247,.85);padding:4px 10px;border-radius:10px;z-index:1}
.sg-lg{display:inline-block;width:22px;border-top:3px solid #2f6b45;margin-left:6px}.sg-lg-thin{border-top:3px dashed #4f7f99}.sg-lg-dashed{border-top:3px dotted #a0a69a}
.sg-card-more{margin-top:4px}.sg-compare .sg-cmp-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}.sg-cmp-col{border:1px solid var(--line);border-radius:12px;padding:10px;min-width:0}.sg-cmp-col h4{margin:2px 0}.sg-cmp-col ul{padding-left:1.1em;margin:6px 0;font-size:14px;line-height:1.7}.sg-cmp-col blockquote{font-size:14px}
.sg-enter .sg-node .sg-pop{animation:sg-pop .42s cubic-bezier(.2,.8,.3,1.2) both}
.sg-enter .sg-d1 .sg-pop{animation-delay:.04s}.sg-enter .sg-d2 .sg-pop{animation-delay:.08s}.sg-enter .sg-d3 .sg-pop{animation-delay:.12s}.sg-enter .sg-d4 .sg-pop{animation-delay:.16s}.sg-enter .sg-d5 .sg-pop{animation-delay:.2s}.sg-enter .sg-d6 .sg-pop{animation-delay:.24s}.sg-enter .sg-d7 .sg-pop{animation-delay:.28s}
.sg-side .sg-card{animation:sg-slide .28s ease both}
@keyframes sg-pop{from{opacity:0;transform:scale(.82) translateY(8px)}to{opacity:1;transform:none}}
@keyframes sg-flow{to{stroke-dashoffset:-30}}
@keyframes sg-slide{from{opacity:0;transform:translateX(14px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.sg-enter .sg-node .sg-pop,.sg-link,.sg-side .sg-card{animation:none}.sg-pop{transition:none}}
@media (max-width:819px){.sg-scene-top{position:static;grid-template-columns:minmax(0,1fr) auto;padding:10px 10px 0;gap:8px}.sg-scene-tabs{grid-column:1/-1}.sg-seen{width:50px;height:50px}.sg-pill text{font-size:13px}.sg-sub{font-size:12px}.sg-head{font-size:13px}.sg-legend{position:static;margin:0 10px 10px;width:max-content;max-width:calc(100% - 20px)}.sg-zoom{position:static;justify-content:flex-end;padding:0 10px 8px}}
.mobile .sg-scene-top{position:static;grid-template-columns:minmax(0,1fr) auto;padding:10px 10px 0;gap:8px}.mobile .sg-scene-tabs{grid-column:1/-1}.mobile .sg-legend{position:static;margin:0 10px 10px}.mobile .sg-zoom{position:static;justify-content:flex-end;padding:0 10px 8px}
.sg-cmp-icon{width:22px;height:22px;fill:none;stroke:var(--ink);stroke-width:1.8;vertical-align:middle}
/* the card over the canvas (desktop) */
.sg-stage-area{position:relative}.sg-float{position:absolute;top:110px;right:18px;width:min(380px,46%);max-height:calc(100% - 130px);overflow:auto;z-index:5;border-radius:16px;box-shadow:0 12px 36px rgba(41,63,51,.22)}
.sg-float .sg-card .actions{display:flex;flex-wrap:wrap;gap:8px}.sg-float .sg-card .actions button{flex:1 1 auto;min-width:0}
/* the archive of one person or event over the canvas (动态百科 reference): the picture darkens behind it */
.sg-popup-open{min-height:600px}
.sg-popup-wrap{position:absolute;inset:0;z-index:6;display:flex;align-items:center;justify-content:center;padding:28px;background:rgba(36,44,40,.52);animation:sg-fade .22s ease both}
.sg-popup{position:relative;display:grid;grid-template-columns:minmax(0,40%) minmax(0,60%);width:min(900px,100%);max-height:calc(100% - 8px);background:#fffdf7;border-radius:18px;overflow:hidden;box-shadow:0 24px 60px rgba(0,0,0,.35);animation:sg-rise .3s cubic-bezier(.2,.8,.3,1.1) both}
.sg-popup-art{position:relative;min-height:300px;background:linear-gradient(170deg,#e8ece3,#d5dcd0 60%,#c9d2c4)}
.sg-popup-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.sg-art-frame{position:absolute;inset:26px;display:grid;place-items:center;background:#fffdf7;border:10px solid #fff;border-radius:26px;box-shadow:0 10px 26px rgba(41,63,51,.22);transform:rotate(-1.5deg)}
.sg-art-frame::before{content:"";position:absolute;left:12%;right:12%;top:-16px;height:22px;border-top:6px solid #9aa59a;border-radius:50% 50% 0 0}
.sg-art-frame.sg-k-person::before{border-color:#b9894a}.sg-art-frame.sg-k-event::before{border-color:#3f7a57}.sg-art-frame.sg-k-place::before{border-color:#4f7f99}.sg-art-frame.sg-k-object::before{border-color:#8e5d86}.sg-art-frame.sg-k-relation::before{border-color:#7b7a52}
.sg-art-frame span{font-size:clamp(56px,8vw,110px);font-weight:700;color:#7a5426;font-family:Georgia,"Songti SC","SimSun",serif}.sg-art-frame.sg-k-event span{font-size:clamp(44px,6vw,80px);color:#6b4a17}.sg-art-frame.sg-k-place span{color:#4f7f99}
.sg-k-person.sg-art-frame{background:#f1e4cf}.sg-k-event.sg-art-frame{background:#e6efe2}.sg-k-place.sg-art-frame{background:#e3ecef}.sg-k-object.sg-art-frame{background:#efe6ee}
.sg-popup-body{position:relative;padding:26px 28px 20px;overflow:auto;min-width:0}
.sg-popup-close{position:absolute;top:16px;right:16px;width:52px;height:52px;min-height:0;border-radius:50%;border:0;background:#2b342e;color:#fff;font-size:26px;line-height:1;box-shadow:0 6px 16px rgba(0,0,0,.25)}.sg-popup-close:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.sg-popup-kicker{margin:0 64px 4px 0;color:#b4432e;font-weight:700;font-size:15px}
.sg-popup-title{margin:0 64px 8px 0;font-size:36px;line-height:1.25;color:#1f2a24;font-family:Georgia,"Songti SC","SimSun",serif}.sg-popup-title-long{font-size:26px}
.sg-popup-line{margin:0 0 14px;color:#5d6b5f;font-size:17px;line-height:1.7}
.sg-popup-body h4{margin:14px 0 6px;font-size:14px;color:#5d6b5f;letter-spacing:.06em}
.sg-popup-points{list-style:none;margin:0;padding:0}.sg-popup-points li{position:relative;padding:3px 0 3px 18px;font-size:16px;line-height:1.6}.sg-popup-points li::before{content:"";position:absolute;left:2px;top:12px;width:8px;height:8px;background:var(--gold);transform:rotate(45deg)}
.sg-key-rels{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px}
.sg-key-rel{display:grid;gap:0;min-height:48px;padding:6px 10px;border:1px solid #6f8fa4;border-radius:10px;background:#eef3f6;color:#1f3b4c;font-size:16px;font-weight:700;box-shadow:0 2px 0 rgba(31,59,76,.12)}.sg-key-rel small{font-size:12px;font-weight:600;color:#5d6b5f}.sg-key-rel.sg-e-inferred{border-style:dashed}
.sg-popup .sg-quotes{margin-top:10px}
.sg-popup-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}.sg-popup-actions button{min-height:50px;padding:0 22px;border-radius:10px;font-size:16px;font-weight:700}
.sg-popup-actions .primary{background:#1d4a63;border-color:#1d4a63;color:#fff}
.sg-popup-more{display:flex;flex-wrap:wrap;gap:2px 14px;margin-top:10px}.sg-popup-more .link{min-height:40px;font-size:15px}
@keyframes sg-fade{from{opacity:0}to{opacity:1}}
@keyframes sg-rise{from{opacity:0;transform:translateY(16px) scale(.97)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.sg-popup-wrap,.sg-popup{animation:none}}
/* phone: a sheet from the bottom over the whole screen, the picture as a band on top */
@media (max-width:819px){.sg-popup-open{min-height:0}.sg-popup-wrap{position:fixed;padding:0;align-items:flex-end;z-index:60}.sg-popup{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);width:100%;max-height:88vh;border-radius:18px 18px 0 0}.sg-popup-art{min-height:150px}.sg-art-frame{inset:14px 30%;border-width:6px;border-radius:18px}.sg-art-frame span{font-size:48px}.sg-popup-body{padding:18px 16px 16px}.sg-popup-title{font-size:28px}.sg-popup-title-long{font-size:21px}.sg-popup-close{width:46px;height:46px;top:10px;right:10px}.sg-popup-actions button{flex:1 1 auto}}
.mobile .sg-popup-open{min-height:0}.mobile .sg-popup-wrap{position:fixed;padding:0;align-items:flex-end;z-index:60}.mobile .sg-popup{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);width:100%;max-height:88vh;border-radius:18px 18px 0 0}.mobile .sg-popup-art{min-height:150px}.mobile .sg-art-frame{inset:14px 30%;border-width:6px;border-radius:18px}.mobile .sg-art-frame span{font-size:48px}
.sg-popup-wrap{align-items:flex-start;padding-top:96px}.sg-popup{max-height:min(620px,calc(100vh - 150px))}@media (max-width:819px){.sg-popup-wrap{padding-top:0;align-items:flex-end}.sg-popup{max-height:88vh}}.mobile .sg-popup-wrap{padding-top:0;align-items:flex-end}.mobile .sg-popup{max-height:88vh}
/* hover preview: its lines drawn, what it touches lit (over any earlier choice), the rest faded */
.sg-preview .sg-hover-near .sg-pop{opacity:1;filter:none;transform:scale(1.04)}.sg-preview .sg-link:not(.sg-hover-link){opacity:.12}.sg-hover-link{animation:sg-draw .35s ease both,sg-flow 2.4s linear infinite}
@keyframes sg-draw{from{opacity:0}to{opacity:1}}@media (prefers-reduced-motion:reduce){.sg-hover-link{animation:none}}
.sg-scene-top .sg-scene-tabs,.mobile .sg-scene-top .sg-scene-tabs{grid-column:1;min-width:0}
/* the card for seeing an element and getting it filled in (Founder 2026-11-15, agreed plan): the actions stay in view */
.sg-blur{fill:transparent}.sg-popup{grid-template-columns:minmax(0,34%) minmax(0,66%)}.sg-popup-body{display:flex;flex-direction:column;padding:0;overflow:hidden;min-height:0}
.sg-popup-scroll{flex:1 1 auto;min-height:0;overflow:auto;padding:24px 26px 12px}.sg-popup-foot{flex:none;padding:12px 26px 16px;border-top:1px solid var(--line);background:#fffdf7}
.sg-popup-foot .sg-popup-actions{margin:0;padding:0;border:0}.sg-popup-foot .sg-popup-actions button{min-height:46px;padding:0 16px;font-size:15px}.sg-popup-foot .sg-popup-actions button.on{background:#e3efe4;border-color:var(--green)}
.sg-popup-status{margin:0 0 6px;font-size:14px;color:#5d6b5f}.sg-popup-scroll blockquote{margin:6px 0;padding:8px 10px;background:#f8f6ee;border-left:3px solid var(--gold);border-radius:6px;line-height:1.7;font-size:15px}.sg-popup-scroll cite{display:block;font-style:normal;font-size:13px;color:var(--muted)}
.sg-gap{display:flex;gap:8px;align-items:flex-start;padding:6px 0;font-size:16px;line-height:1.6;cursor:pointer}.sg-gap input{margin-top:5px;width:18px;height:18px;flex:none}.sg-own-q{display:grid;gap:4px;margin:6px 0 4px;font-size:15px}.sg-own-q input{min-height:44px;border:1px solid #b7c1ad;border-radius:10px;padding:8px 10px;background:var(--white)}
.sg-family-pick{margin:10px 0;padding:10px;border:1px dashed #b7c1ad;border-radius:10px;background:#f7f9f4}.sg-family-pick .sg-key-rel{display:inline-grid;margin:4px 6px 0 0;min-width:96px}
.sg-echo{list-style:none;padding:0;margin:4px 0;font-size:15px;line-height:1.8}.sg-adopted cite{color:#7a5426}
.sg-art-photo{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);min-height:44px;padding:0 16px;border-radius:999px;border:0;background:rgba(43,52,46,.85);color:#fff;font-size:15px;white-space:nowrap;z-index:2}
@media (max-width:819px){.sg-popup{grid-template-columns:1fr}.sg-popup-scroll{padding:16px 16px 10px}.sg-popup-foot{padding:10px 16px 14px}.sg-popup-foot .sg-popup-actions button{flex:1 1 40%}.sg-art-photo{bottom:10px}}
.mobile .sg-popup{grid-template-columns:1fr}.mobile .sg-popup-scroll{padding:16px 16px 10px}.mobile .sg-popup-foot{padding:10px 16px 14px}.mobile .sg-popup-foot .sg-popup-actions button{flex:1 1 40%}
/* the card has a fixed height so its middle scrolls and its actions stay in view */
.sg-popup{height:min(640px,calc(100vh - 140px));grid-template-rows:minmax(0,1fr)}.sg-popup-art{min-height:0}
@media (max-width:819px){.sg-popup{height:88vh;grid-template-rows:150px minmax(0,1fr)}}.mobile .sg-popup{height:88vh;grid-template-rows:150px minmax(0,1fr)}
/* phone: two rows of the four ways to ask, one sliding row of the rest, a lower picture band */
@media (max-width:819px){.sg-popup{grid-template-rows:116px minmax(0,1fr)}.sg-popup-art{min-height:0}.sg-popup-foot .sg-popup-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}.sg-popup-foot .sg-popup-actions button{min-height:44px;padding:0 8px;font-size:14px}.sg-popup-more{flex-wrap:nowrap;overflow-x:auto;gap:2px 12px;margin-top:6px;scrollbar-width:none}.sg-popup-more .link{flex:none;white-space:nowrap;min-height:36px;font-size:14px}.sg-art-photo{min-height:38px;font-size:14px;bottom:8px}}
.mobile .sg-popup{grid-template-rows:116px minmax(0,1fr)}.mobile .sg-popup-foot .sg-popup-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}.mobile .sg-popup-more{flex-wrap:nowrap;overflow-x:auto;margin-top:6px}.mobile .sg-popup-more .link{flex:none;white-space:nowrap}
/* Founder 2026-11-16: 故事人物 (people met along the way) look apart from the family: a blue-green frame */
.sg-story-person .sg-face{fill:#e2ecea}.sg-story-person .sg-tint{stroke:#4f8a86}.sg-story-person .sg-glyph{fill:#2f5f5b}
.sg-photo-upload{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end;margin:6px 0 12px}.sg-photo-upload label{display:flex;flex-direction:column;gap:4px;font-size:14px}
.sg-gap-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 8px}.sg-gap-aside{display:inline-flex;gap:4px}.sg-gap-aside button{font-size:12px;padding:2px 8px}.sg-gap-marked{margin:6px 0;font-size:14px}.sg-gap-marked p{margin:4px 0}
/* Founder 2026-11-21: the life timeline, a main axis */
.sg-timeline{max-width:860px}.sg-tl-summary{margin:6px 0 14px;font-size:15px}.sg-tl-stage{border-left:3px solid #b9894a;padding:4px 0 6px 16px;margin:0 0 14px;position:relative}
.sg-tl-stage::before{content:'';position:absolute;left:-8px;top:10px;width:13px;height:13px;border-radius:50%;background:#b9894a}.sg-tl-empty{border-left-style:dashed;opacity:.85}.sg-tl-empty::before{background:#fff;border:2px solid #b9894a}
.sg-tl-stage h3{margin:0 0 6px;font-size:18px}.sg-tl-stage h3 small{font-weight:400;color:#7a7466;font-size:14px;margin-left:6px}.sg-tl-stage ol{list-style:none;margin:0;padding:0}
.sg-tl-event{display:grid;grid-template-columns:96px 1fr;gap:10px;padding:8px 0;border-bottom:1px dashed #e4dccb}.sg-tl-year{font-weight:700;color:#6b4a17}.sg-tl-year small{display:block;font-weight:400;color:#7a7466;font-size:12px}
.sg-tl-quote{margin:4px 0;color:#4d4a42;font-size:14px}.sg-tl-quote small{margin-left:6px;color:#8a8475}.sg-tl-hint{margin:4px 0;font-size:13px;color:#7a5a20;background:#fbf4e4;border-radius:6px;padding:4px 8px}.sg-tl-more{margin:4px 0 0}
@media (max-width:640px){.sg-tl-event{grid-template-columns:1fr}}
.sg-tl-guess{margin:2px 0;font-size:12px;color:#8a8475}
/* Founder 2026-11-21: the overview numbers open what they count */
.sg-stats button.sg-stat{background:none;border:0;padding:0;color:inherit;font:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.sg-stats button.sg-stat:hover,.sg-stats button.sg-stat:focus-visible{color:#2f5f3b}.sg-stats button.sg-stat-todo{color:#9a5b12;font-weight:700}
.sg-gap-unknown{margin:8px 0;padding:8px 10px;background:#fbf4e4;border-radius:10px}.sg-gap-group{margin:0 0 4px;font-size:13px;color:#7a5a20}.sg-gap-decline{margin:8px 0 0;font-size:12px;color:#8a8475}.sg-gap-decline button{font-size:12px}
.sg-gap-aside{flex-wrap:wrap;align-items:center}.sg-gap-aside button.link{font-size:12px;color:#8a8475}.sg-gap-write{margin:4px 0 8px;padding:8px 10px;background:#f4f1e6;border-radius:10px}.sg-gap-write label{display:flex;flex-direction:column;gap:4px;font-size:13px}.sg-gap-write textarea{width:100%;box-sizing:border-box}.sg-gap-answers{margin:8px 0;padding:8px 10px;background:#eef3ec;border-radius:10px;font-size:14px}.sg-gap-answers p{margin:4px 0}
/* Founder 2026-11-21 (fourth look): the card fits the window, its middle scrolls, the two actions stay at the bottom;
   a photo shows whole (its own shape) on a soft ground. */
.sg-popup-wrap{position:fixed;inset:0;z-index:60;padding:24px;align-items:center}
.sg-popup.sg-popup-v4{grid-template-columns:minmax(0,34%) minmax(0,66%);width:min(960px,100%);height:min(760px,calc(100vh - 48px));max-height:calc(100vh - 48px)}
.sg-popup-v4 .sg-popup-body{display:flex;flex-direction:column;overflow:hidden;padding:24px 26px 16px}
.sg-popup-v4 .sg-popup-scroll{flex:1 1 auto;min-height:0;overflow:auto;padding-right:6px}
.sg-popup-v4 .sg-popup-foot{flex:0 0 auto}.sg-popup-v4 .sg-popup-actions{margin-top:10px;padding-top:12px}
.sg-popup-v4 .sg-popup-art.has-photo{display:flex;align-items:center;justify-content:center;background:#f1efe8}
.sg-popup-v4 .sg-popup-art.has-photo img{position:static;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.sg-popup-v4 .sg-popup-status{margin:0 0 12px;color:#6b6b5f;font-size:14px}.sg-popup-v4 h4{margin:16px 0 6px;font-size:15px;color:#3b4a40}
.sg-q{display:flex;align-items:center;justify-content:space-between;gap:6px 10px;flex-wrap:wrap;padding:8px 0;border-bottom:1px solid #eee8da}.sg-q p{margin:0;font-size:16px}
.sg-q-acts{display:inline-flex;align-items:center;gap:6px}.sg-q-acts button{min-height:32px;padding:4px 12px;font-size:14px}.sg-q-acts button.link{font-size:12px;color:#9a927f;padding:4px 2px}
.sg-help-list,.sg-help-pick{margin:10px 0;padding:10px 12px;background:#fbf4e4;border-radius:12px}.sg-help-title{margin:0 0 6px;font-weight:700;font-size:14px;color:#6b4a17}.sg-help-q{margin:4px 0}
.sg-help-ways{display:flex;flex-wrap:wrap;gap:8px}.sg-help-ways button{min-height:36px}
.sg-popup-links{margin:14px 0 4px;font-size:14px}.sg-popup-links .sg-dot{margin:0 6px;color:#b8b0a0}.sg-echo-line{margin:4px 0;font-size:14px}
@media (max-width:819px){.sg-popup.sg-popup-v4{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);height:auto;max-height:92vh}.sg-popup-wrap{padding:0;align-items:flex-end}.sg-popup-v4 .sg-popup-art{max-height:200px}}
.sg-popup.sg-popup-v4.no-photo{grid-template-columns:minmax(0,1fr);width:min(620px,100%)}.sg-help-note{margin:6px 0 0;font-size:12px;color:#8a8475}
.sg-card-actions{margin-top:12px;border-top:1px solid var(--line);padding-top:6px}.sg-card-actions>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:14px}.sg-card-actions .sg-popup-actions{margin:0;padding:4px 0;border:0}
.sg-question-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px}.sg-question-nav button{min-height:44px;font-size:13px}
@media(max-width:819px){
  .mobile .sg-page{font-size:var(--ui,16px);padding:12px}.mobile .sg-overview h2{display:none}.mobile .sg-overview p{font-size:12px;line-height:1.5;margin:3px 0}
  .mobile .sg-overview .actions{gap:4px;margin-top:6px}.mobile .sg-overview button{font-size:13px;min-height:40px;padding:5px 8px}.mobile .sg-stats button{min-height:24px;padding:0}
  .mobile .sg-popup-wrap{padding:8px;align-items:center}.mobile .sg-popup.sg-popup-v4{display:flex;flex-direction:column;width:100%;height:auto;max-height:calc(var(--writing-visible-height,100dvh) - 16px);border-radius:12px}
  .mobile .sg-popup-v4 .sg-popup-body{padding:10px 12px;min-height:0;flex:1}.mobile .sg-popup-v4 .sg-popup-scroll{padding:0;overflow:auto;min-height:0}
  .mobile .sg-popup-v4 .sg-popup-art.has-photo{height:96px;max-height:96px;flex:none}
  .mobile .sg-popup-v4 .sg-popup-title,.mobile .sg-popup-v4 .sg-popup-title-long{font-size:18px;line-height:1.5;margin:6px 36px 6px 0}
  .mobile .sg-popup-v4 .sg-popup-kicker,.mobile .sg-popup-v4 .sg-popup-status{font-size:12px;line-height:1.5;margin:2px 0}
  .mobile .sg-popup-v4 .sg-popup-close{width:40px;height:40px;min-height:40px;top:4px;right:4px}
  .mobile .sg-popup-v4 blockquote{font-size:var(--ui,16px);line-height:1.65;margin:6px 0;padding:8px}.mobile .sg-popup-v4 h4{font-size:15px;margin:10px 0 6px}
  .mobile .sg-popup-v4 button{font-size:14px;min-height:44px;padding:5px 8px}.mobile .sg-q p{font-size:16px;line-height:1.65}.mobile .sg-gap-write textarea,.mobile .sg-own-q input{font-size:16px}
  .mobile .sg-popup-v4 .sg-popup-links{font-size:13px;line-height:1.5}.mobile .sg-key-rels{gap:4px}.mobile .sg-key-rel{font-size:14px}
}
.fg-more{margin:4px 0 8px}.fg-more>summary{cursor:pointer;font-size:13px;color:#7a7466}
.reading-more{margin-top:12px}.reading-more .actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.study-board button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left}.study-board button.selected{outline:2px solid currentColor}
.study-board>button{padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:var(--white);min-height:0;height:auto;font-weight:400}
.collaboration-decisions,.share-card .actions{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0}
.focus-other{margin:12px 0;display:flex;flex-wrap:wrap;gap:6px;align-items:baseline}.focus-other small{color:#8a8475}
.svc-track{display:flex;flex-wrap:wrap;gap:6px;list-style:none;padding:0;margin:12px 0}.svc-track li{padding:4px 10px;border-radius:999px;background:#eee9dc;font-size:13px;color:#7a7466}.svc-track li.done{background:#dbe6d6;color:#2f4a33}.svc-track li.on{background:#2f4a33;color:#fff}.svc-card{margin:14px 0;padding:12px 14px;border:1px solid var(--line,#e2dccd);border-radius:12px;background:#fffdf8}.svc-price{font-size:22px;font-weight:600;margin:4px 0}.svc-qr{max-width:220px;height:auto;display:block;margin:8px 0;border-radius:8px}.svc-thread{list-style:none;padding:0;margin:8px 0;display:grid;gap:8px}.svc-msg{padding:8px 10px;border-radius:10px;background:#f4f1e6}.svc-msg.mine{background:#e8efe4}.svc-msg p{margin:2px 0}.svc-access{font-size:14px}#svc-q{width:100%;box-sizing:border-box;margin:6px 0}
.svc-mine{list-style:none;padding:0}.svc-mine li{margin:6px 0}.notice-inline{display:inline-block;padding:1px 8px;border-radius:999px;background:#fbf0d9;color:#7a5a20;font-size:13px}
.svc-offer{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.svc-group{margin:6px 0}.svc-group summary{cursor:pointer;font-weight:600}.svc-groupby{margin:4px 0}
.improve-card{margin:12px 0;padding:14px 16px;border-radius:14px;background:#f6efe2;color:#4a3b22}.improve-card p{margin:6px 0}
.legacy-row{border:1px solid #e4dccb;border-radius:12px;padding:10px 14px;margin:10px 0}.legacy-supplement{border-left:3px solid #c9b48a;margin:8px 0;padding:4px 12px;color:#5a4a2a}.legacy-supplement footer{font-size:13px;color:#8a7a5a}
/* Founder 2026-11-23 (手机家庭图): compact header and tools, the map gets the screen, the person's card slides up. */
.mobile .fg-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px 4px}
.mobile .fg-heading .kicker{display:none}.mobile .fg-heading h2{font-size:18px;margin:0;line-height:1.3}.mobile .fg-heading p{margin:0;font-size:13px;color:#57704d}
.mobile .fg-heading>button{width:auto;margin:0;padding:6px 12px;min-height:36px;font-size:14px;flex:none}
.mobile .fg-search{padding:0 12px 4px;display:flex;align-items:center;gap:8px}.mobile .fg-search label{font-size:13px;white-space:nowrap}.mobile .fg-search input{min-height:36px;padding:4px 10px;font-size:15px;flex:1;min-width:0}
.mobile .fg-toolbar{padding:2px 12px 4px;gap:4px;flex-wrap:wrap}.mobile .fg-toolbar button{padding:4px 10px;min-height:34px;font-size:13px}
.mobile .fg-more{padding:0 12px}.mobile .fg-more>summary{font-size:13px;padding:4px 0}.mobile .fg-prefs .fg-style{font-size:13px}.mobile .fg-prefs select{min-height:32px;font-size:13px}
.mobile .fg-hint{font-size:12px;padding:6px 12px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.mobile .fg-legend{flex-wrap:nowrap;overflow-x:auto;white-space:nowrap;font-size:11px;padding:4px 10px}
.mobile #fg-canvas{height:calc(100dvh - 260px);min-height:320px}
.mobile .fg-overview:not([open]){width:auto}
.fg-armed rect,.fg-armed .fg-card{stroke:#c89b58 !important;stroke-width:4px !important}
.mobile .fg-detail.sheet{position:fixed;left:0;right:0;bottom:0;z-index:60;max-height:64vh;overflow:auto;border-top:0;border-radius:18px 18px 0 0;box-shadow:0 -8px 30px rgba(33,74,57,.25);padding:46px 16px calc(18px + env(safe-area-inset-bottom))}
.fg-sheet-close{position:absolute;top:8px;right:12px;min-height:34px;padding:4px 14px;border:1px solid #d1dac7;border-radius:10px;background:#fffdf7;font-size:14px}


/* Founder 2026-11-28: the avatar frame is a button that adds or changes the photo. */
.fg-avatar-button{display:flex;flex-direction:column;align-items:center;gap:2px;border:0;background:transparent;padding:0;min-height:0;border-radius:14px;flex:none}
.fg-avatar-button .fg-avatar-photo{margin:4px 0 0}.fg-avatar-caption{font-size:12px;color:var(--muted);text-decoration:underline;text-underline-offset:3px}
