:root{
  --ink:#153d35; --ink2:#2d5b51; --paper:#f5f0e7; --white:#fffdf8;
  --line:#d8d0c3; --muted:#68746f; --gold:#b58a55; --red:#8a3d31;
  --shadow:0 18px 55px #21362e22;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; min-height:100vh;
  background:linear-gradient(#f8f4ec,#efe8dc);
  color:#263a34; font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
button,input,select{font:inherit}
button{border:0;border-radius:12px;padding:13px 17px;background:var(--ink);color:#fff;font-weight:750;cursor:pointer}
button:hover{filter:brightness(1.05)}
button:disabled{opacity:.45;cursor:not-allowed}
.ghost{background:#eee7dc;color:var(--ink)}
.danger{background:var(--red)}
.soft{background:#edf2ef;color:var(--ink);border:1px solid #d3dfda}
.shell{max-width:1180px;margin:auto;padding:20px}
.brand{display:flex;align-items:center;gap:12px;padding:6px 2px 22px}
.brand strong{font:500 30px Georgia,serif;color:var(--ink)}
.mark{
  width:40px;height:40px;border:2px solid var(--ink);border-radius:50%;
  display:grid;place-items:center;color:var(--gold);font-weight:900;
}
.mini{font-size:12px;color:#77817c}
.kicker{font-size:11px;text-transform:uppercase;letter-spacing:.16em;font-weight:800;color:var(--gold)}
.hero{
  background:var(--ink);color:#fff;border-radius:30px;padding:50px;
  display:grid;grid-template-columns:1.25fr .75fr;gap:28px;box-shadow:var(--shadow)
}
.hero h1{font:500 clamp(46px,7vw,80px)/.98 Georgia,serif;margin:0 0 18px;letter-spacing:-2px}
.hero p{font-size:18px;line-height:1.6;color:#e6ece9}
.heroCard,.card{
  background:var(--white);color:#263a34;border:1px solid #ddd3c6;
  border-radius:22px;padding:26px;box-shadow:0 10px 28px #263a3411
}
.heroCard{align-self:center}.heroCard p{font-size:14px;color:#5f7069}
.boot-guard{position:fixed;inset:0;z-index:99999;display:grid;place-items:center;padding:24px;background:linear-gradient(#f8f4ec,#efe8dc)}
.boot-guard-card{max-width:560px;background:var(--white);border:1px solid #ddd3c6;border-radius:24px;padding:28px;box-shadow:var(--shadow)}
.boot-guard-card strong{display:block;font:500 30px Georgia,serif;color:var(--ink);margin-bottom:8px}
.boot-guard-card p{margin:7px 0;color:#5f7069;line-height:1.55}
.boot-guard-card code{font-size:11px;color:#7a817e}
.storage-warning{position:sticky;top:10px;z-index:1000;margin:0 auto 14px;max-width:1120px;padding:12px 15px;border:1px solid #d7b38d;background:#fff8ed;border-radius:12px;color:#6d4b29;font-size:13px;line-height:1.45}
.hidden{display:none!important}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:24px}
.card h2,.card h3{font:500 30px Georgia,serif;color:var(--ink);margin:6px 0 12px}
.card h3{font-size:22px}
.choice{cursor:pointer;transition:.18s}.choice:hover{transform:translateY(-2px);box-shadow:0 16px 32px #263a3418}
label{display:block;font-size:13px;font-weight:750;margin:14px 0 7px}
input,select{
  width:100%;padding:12px;border:1px solid #cdc4b8;border-radius:11px;background:#fff;color:#263a34
}
input:focus,select:focus{outline:3px solid #2d5b5118;border-color:var(--ink2)}
.row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.status{
  margin-top:15px;padding:12px;border:1px solid #d3dfda;background:#edf2ef;
  border-radius:11px;color:#365248;font-size:14px
}
.workspace{display:grid;grid-template-columns:320px 1fr;gap:22px;margin-top:24px}
.person{padding:10px 12px;background:#fff;border:1px solid #ddd3c6;border-radius:11px;margin:7px 0;cursor:pointer}
.person:hover{border-color:#b9c9c3}
.person small{display:block;color:#7a817e}
.tabs{display:flex;gap:7px;margin:16px 0}
.tab{padding:8px 11px;border-radius:999px;background:#eee7dc;color:var(--ink);font-size:12px;font-weight:750;cursor:pointer}
.tab.active{background:var(--ink);color:#fff}
.note{font-size:12px;color:#76807c;text-align:center;margin:26px 0}
.workspace-main{display:grid;gap:18px}
.welcome-back{
  background:linear-gradient(135deg,#153d35,#234f45);color:#fff;border-radius:24px;padding:30px;
  position:relative;overflow:hidden
}
.welcome-back:after{
  content:"";position:absolute;right:-60px;top:-80px;width:240px;height:240px;
  border:1px solid #ffffff22;border-radius:50%
}
.welcome-back h2{font:500 34px Georgia,serif;margin:5px 0 9px}
.welcome-back p{max-width:640px;color:#dfe9e5;line-height:1.55}
.memory-strip{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}
.memory-pill{background:#ffffff14;border:1px solid #ffffff25;border-radius:999px;padding:7px 11px;font-size:12px}
.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.quick{
  background:var(--white);border:1px solid #ddd3c6;border-radius:17px;padding:18px;
  cursor:pointer;min-height:116px
}
.quick:hover{border-color:#b8c9c3}
.quick strong{display:block;color:var(--ink);margin-bottom:6px}
.quick span{font-size:13px;color:var(--muted);line-height:1.45}


/* 0.16 · CHANGE HISTORY & UNDO (retained in 0.17) */
.history-panel{margin-top:16px;border:1px solid #d8cdb9}
.history-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}
.history-summary{margin-top:4px;font-size:13px;color:var(--muted);line-height:1.5}
.history-list{display:grid;gap:9px;margin-top:13px}
.history-item{border:1px solid #e0d8cc;border-radius:13px;padding:12px 13px;background:#fffdf9}
.history-item.undone{opacity:.66;background:#faf8f4}
.history-item-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.history-item-copy{min-width:0;flex:1}
.history-item-title{font-weight:850;color:var(--ink);line-height:1.35}
.history-item-detail{font-size:12px;color:var(--muted);line-height:1.45;margin-top:3px}
.history-item-meta{font-size:10px;color:#8b8e88;margin-top:6px}
.history-item-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-top:9px}
.history-item-actions button{padding:7px 10px;border-radius:9px;font-size:11px}
.history-no-undo{font-size:10px;color:#8a7d6e;line-height:1.35}
.history-badge{display:inline-flex;align-items:center;justify-content:center;min-width:23px;height:23px;padding:0 7px;border-radius:999px;background:#31594d;color:#fff;font-size:11px;font-weight:850}

/* 0.15 · TREE CHECK-UP */
.checkup-panel{margin-top:16px;border:1px solid #d8cdb9}
.checkup-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}
.checkup-summary{margin-top:4px;font-size:13px;color:var(--muted);line-height:1.5}
.checkup-health{margin-top:14px;border-radius:15px;padding:15px 16px;border:1px solid #d9dedb;background:#f5f8f6;display:flex;gap:11px;align-items:flex-start}
.checkup-health.amber{border-color:#dec897;background:#fffbf2}.checkup-health.red{border-color:#d8aaa6;background:#fff8f7}
.checkup-health strong{display:block;color:var(--ink);font:500 20px Georgia,serif;margin-bottom:3px}
.checkup-health span{font-size:12px;color:#68736e;line-height:1.45}
.checkup-list{display:grid;gap:10px;margin-top:12px}
.checkup-item{border:1px solid #e0d8cc;border-radius:13px;padding:13px;background:#fffdf9}
.checkup-item.red{border-color:#d8aaa6;background:#fff9f8}.checkup-item.amber{border-color:#dec897;background:#fffaf1}.checkup-item.grey{background:#faf8f4}
.checkup-item-top{display:flex;gap:10px;align-items:flex-start}.checkup-item-copy{min-width:0;flex:1}
.checkup-item-title{font-weight:850;color:var(--ink);line-height:1.35}.checkup-item-detail{font-size:12px;color:var(--muted);line-height:1.48;margin-top:3px}
.checkup-item-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.checkup-item-actions button{padding:8px 11px;border-radius:9px;font-size:11px}
.checkup-badge{display:inline-flex;align-items:center;justify-content:center;min-width:23px;height:23px;padding:0 7px;border-radius:999px;background:#31594d;color:#fff;font-size:11px;font-weight:850}

/* 0.9 · RESEARCH QUEUE */
.research-panel{margin-top:16px}
.research-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.research-head h3{margin-bottom:4px}
.research-summary{font-size:12px;color:var(--muted);margin-top:5px}
.research-list{display:grid;gap:10px;margin-top:14px}
.research-task{border:1px solid #ddd3c6;background:#fffdf9;border-radius:14px;padding:14px}
.research-task.started{border-color:#b58a55;background:#fffaf1}
.research-task-top{display:flex;align-items:flex-start;gap:9px}
.research-task-copy{min-width:0;flex:1}
.research-task-title{font-weight:800;color:var(--ink);line-height:1.35}
.research-task-sub{font-size:12px;color:var(--muted);margin-top:4px;line-height:1.45}
.research-task-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:11px}
.research-task-actions button{padding:8px 11px;border-radius:9px;font-size:11px}
.research-task-actions .done{background:#edf2ef;color:var(--ink);border:1px solid #d3dfda}
.research-task-actions .ignore{background:#f1eee8;color:#6d746f}
.research-empty{padding:18px;border:1px dashed #cfc6b9;border-radius:14px;background:#faf7f1;color:var(--muted);font-size:13px}
.quick .research-badge{display:inline-flex;align-items:center;justify-content:center;min-width:23px;height:23px;padding:0 7px;border-radius:999px;background:var(--ink);color:white;font-size:11px;font-weight:850}

/* 0.4 · WHO AM I? · RELATIONSHIPS & MEMORY */
.person.active{border-color:var(--gold);box-shadow:0 0 0 2px #b58a5522;background:#fffcf5}
.profile-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.profile-head h3{font-size:30px;margin-bottom:4px}
.profile-vitals{color:var(--muted);font-size:13px}
.relationship-banner{
  margin:18px 0;padding:16px 18px;border-radius:16px;background:#eef3f0;border:1px solid #d3dfda
}
.relationship-banner strong{font:500 20px Georgia,serif;color:var(--ink);display:block;margin-bottom:4px}
.relationship-route{padding:15px;border:1px solid #ddd3c6;background:#fbf8f2;border-radius:15px;margin-top:12px}
.relationship-route .route-label{font-size:11px;text-transform:uppercase;letter-spacing:.13em;color:var(--gold);font-weight:800;margin-bottom:10px}
.route-meta{font-size:12px;color:#65736d;margin-top:8px;line-height:1.45}
.route-count{display:inline-flex;align-items:center;gap:6px;margin-top:9px;padding:5px 9px;border-radius:999px;background:#edf2ef;border:1px solid #d3dfda;color:#365248;font-size:11px;font-weight:800}
.route-count.warn{background:#f6efe1;border-color:#dfcfaa;color:#6f5521}
.route-alternates{margin-top:13px;border-top:1px solid #e3dbd0;padding-top:11px}
.route-alternates summary{cursor:pointer;font-weight:800;color:var(--ink);font-size:12px}
.route-alt{margin-top:11px;padding:11px;border-radius:12px;background:#fff;border:1px solid #e3dbd0}
.route-alt strong{display:block;font-size:12px;margin-bottom:6px}

.route-line{display:flex;flex-wrap:wrap;align-items:center;gap:6px;line-height:1.8}
.route-person{background:#fff;border:1px solid #ddd3c6;border-radius:999px;padding:5px 9px;font-size:12px;color:var(--ink)}
.route-edge{font-size:10px;color:#718079;font-weight:750}
.relatives-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:16px}
.relative-box{border:1px solid #e1d9cf;background:#fff;border-radius:14px;padding:13px}
.relative-box strong{display:block;color:var(--ink);margin-bottom:7px}
.relative-box button{display:block;width:100%;text-align:left;background:transparent;color:#405a51;padding:5px 0;font-size:12px;font-weight:650}
.relative-box button:hover{color:var(--ink);text-decoration:underline}
.evidence-wrap{margin-top:18px;padding-top:16px;border-top:1px solid #e4ddd3}
.evidence-chip{display:inline-flex;align-items:center;gap:7px;border-radius:999px;padding:6px 9px;background:#f0ece5;font-size:11px;font-weight:750;color:#53625c}
.evidence-chip:before{content:"";width:7px;height:7px;border-radius:50%;background:#9b9388}
.evidence-chip.proven:before{background:#4f7b66}.evidence-chip.probable:before{background:#9b7b3f}
.evidence-chip.possible:before{background:#a5664f}.evidence-chip.traditional:before{background:#735b83}

/* 0.7 · TRAFFIC LIGHTS */
.traffic-dot{display:inline-block;width:9px;height:9px;border-radius:50%;flex:0 0 9px;background:#9b9388;box-shadow:0 0 0 1px #00000012}
.traffic-dot.green,.evidence-chip.green:before{background:#3f7a58}
.traffic-dot.amber,.evidence-chip.amber:before{background:#c58a29}
.traffic-dot.red,.evidence-chip.red:before{background:#a84d45}
.traffic-dot.grey,.evidence-chip.grey:before{background:#9b9388}
.person-name-row{display:flex;align-items:center;gap:8px;min-width:0}
.person-name-row strong{min-width:0;overflow:hidden;text-overflow:ellipsis}
.traffic-legend{display:grid;grid-template-columns:1fr 1fr;gap:6px 10px;margin:11px 0 4px;padding:10px 11px;border:1px solid #e1d9cf;border-radius:11px;background:#faf7f1;font-size:10px;color:#68756f}
.traffic-legend span{display:flex;align-items:center;gap:6px}
.route-traffic{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:9px;font-size:11px;font-weight:800;color:#53625c}
.route-traffic-note{font-weight:500;color:#6d7772}
.route-person{display:inline-flex;align-items:center;gap:6px}
.traffic-explain{margin-top:10px;padding:10px 11px;border-radius:11px;background:#faf7f1;border:1px solid #e1d9cf;font-size:11px;line-height:1.45;color:#68756f}
.memory-board{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:16px}
.memory-column{background:#faf7f1;border:1px solid #e1d9cf;border-radius:15px;padding:14px;min-height:130px}
.memory-column h4{font:500 17px Georgia,serif;color:var(--ink);margin:0 0 9px}
.memory-item{font-size:12px;line-height:1.45;padding:8px 9px;background:#fff;border:1px solid #e4ddd3;border-radius:10px;margin-bottom:7px;position:relative;padding-right:28px}
.memory-item button{position:absolute;right:4px;top:4px;padding:2px 6px;border-radius:7px;background:transparent;color:#94897c}
.memory-empty{font-size:12px;color:#8a918e}
.memory-add{display:grid;grid-template-columns:1fr 160px auto;gap:8px;margin-top:14px}
.memory-add input,.memory-add select{margin:0}
.proof-note{font-size:11px;line-height:1.5;color:#68756f;margin-top:8px}

/* 0.8 · EVIDENCE LEDGER */
.evidence-ledger{margin-top:14px;padding:14px;border:1px solid #e1d9cf;border-radius:14px;background:#faf7f1}
.evidence-ledger h4{font:500 17px Georgia,serif;color:var(--ink);margin:0 0 8px}
.evidence-ledger textarea{width:100%;min-height:76px;resize:vertical;margin-top:6px}
.source-add{display:grid;grid-template-columns:150px 1fr 1fr auto;gap:7px;margin-top:10px}
.source-add input,.source-add select{margin:0}
.source-list{display:grid;gap:7px;margin-top:10px}
.source-row{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:start;padding:9px 10px;border:1px solid #e4ddd3;border-radius:11px;background:#fff;font-size:11px;line-height:1.45}
.source-row strong{display:block;color:var(--ink);font-size:12px}
.source-row button{padding:3px 7px;border-radius:7px;background:transparent;color:#94897c}
.link-row{display:grid;grid-template-columns:1fr auto;gap:7px;align-items:center}
.link-person{display:flex!important;align-items:center;gap:7px!important}
.link-evidence-btn{width:auto!important;padding:4px 7px!important;border:1px solid #ddd3c6!important;border-radius:8px!important;background:#faf7f1!important;font-size:10px!important;text-align:center!important}
.link-editor{margin-top:14px;padding:14px;border:1px solid #d9d0c4;border-radius:14px;background:#fff}
.link-editor-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.link-editor textarea{width:100%;min-height:70px;resize:vertical;margin-top:6px}
@media(max-width:800px){.source-add{grid-template-columns:1fr}.link-row{grid-template-columns:1fr auto}}

/* 0.11 · SOURCE CAPTURE + RECORD FACTS */
.source-capture{margin-top:18px}
.source-capture-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.source-capture-head h3{margin-top:4px}
.source-capture textarea{width:100%;min-height:138px;resize:vertical;margin-top:12px}
.source-detected{margin-top:10px;padding:10px 12px;border-radius:11px;background:#f3efe7;border:1px solid #dfd6c9;font-size:12px;line-height:1.45;color:#52645d}
.source-detected.good{background:#edf3ef;border-color:#cadbd2}
.source-detected.warn{background:#f7f0df;border-color:#e4d2a9}
.source-capture-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.source-capture-fields input,.source-capture-fields select{margin:0}
.source-capture-summary{margin-top:10px;font-size:11px;line-height:1.5;color:#68756f}
@media(max-width:800px){.source-capture-fields{grid-template-columns:1fr}}
.fact-review{margin-top:18px}
.fact-review-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.fact-review-list{display:grid;gap:9px;margin-top:12px}
.fact-proposal{padding:11px 12px;border:1px solid #e1d9cf;border-radius:12px;background:#fff}
.fact-proposal-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.fact-proposal strong{display:block;color:var(--ink);font-size:13px}
.fact-proposal .value{font-size:13px;color:#40584f;margin-top:3px}
.fact-proposal .current{font-size:11px;color:#8b6b48;margin-top:4px}
.fact-proposal .actions{margin-top:8px}
.fact-proposal .actions button{padding:6px 9px}
.fact-list{display:grid;gap:7px;margin-top:9px}
.fact-row{padding:8px 10px;border:1px solid #e5ded4;border-radius:10px;background:#fbf8f3;font-size:11px;line-height:1.45}
.fact-row strong{color:var(--ink)}

/* FIRST-RUN CLIVE */
.intro-overlay{
  position:fixed;inset:0;background:#102f29f2;z-index:1000;
  display:grid;place-items:center;padding:24px
}
.intro-card{
  width:min(960px,96vw);max-height:92vh;overflow:auto;background:#fffdf8;border-radius:30px;
  box-shadow:0 32px 90px #0006;display:grid;grid-template-columns:minmax(280px,.9fr) 1.1fr;overflow:hidden
}
.intro-portrait{
  min-height:590px;background:#173b34 url("../assets/clive-locked-v2.jpg") center 20%/cover no-repeat;position:relative
}
.intro-portrait:after{
  content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 60%,#143a33dd 100%)
}
.intro-badge{
  position:absolute;z-index:2;left:26px;bottom:25px;color:#fff;
  font:500 28px Georgia,serif
}
.intro-badge small{display:block;font:600 11px Inter,sans-serif;letter-spacing:.15em;text-transform:uppercase;color:#d4b586;margin-bottom:4px}
.intro-talk{padding:48px 44px;display:flex;flex-direction:column;justify-content:center}
.intro-talk h1{font:500 40px/1.08 Georgia,serif;color:var(--ink);margin:8px 0 15px}
.intro-talk p{font-size:17px;line-height:1.58;color:#52645d}
.clive-line{min-height:122px}
.intro-controls{margin-top:8px}
.option-list{display:grid;gap:9px}
.option{
  text-align:left;background:#f2eee6;color:var(--ink);border:1px solid #ddd3c6;padding:14px 15px
}
.option:hover{background:#e9eee9;border-color:#bfd0c9}
.option strong{display:block}
.option span{display:block;font-weight:500;font-size:12px;color:#6c7772;margin-top:3px}
.intro-foot{font-size:11px;color:#84908a;margin-top:18px}

/* 0.17 · FAMILY FOUNDATIONS */
.family-setup-card{
  width:min(760px,96vw);max-height:92vh;overflow:auto;background:#fffdf8;border-radius:28px;
  box-shadow:0 32px 90px #0006;padding:34px 38px;border:1px solid #e0d7ca
}
.family-setup-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.family-setup-head h2{font:500 34px/1.1 Georgia,serif;color:var(--ink);margin:7px 0 0}
.family-setup-body{margin-top:24px}
.family-setup-body p{font-size:15px;line-height:1.55;color:#5a6963}
.setup-progress{font-size:11px;font-weight:800;color:#806541;background:#f1e8dc;border-radius:999px;padding:7px 10px;white-space:nowrap}
.setup-person-grid{display:grid;grid-template-columns:1.35fr .75fr .9fr;gap:10px;align-items:end}
.setup-person{padding:14px;border:1px solid #e0d8cc;border-radius:15px;background:#fbf8f2;margin-top:10px}
.setup-person .setup-person-grid{margin-top:4px}
.setup-note{padding:11px 13px;border-radius:12px;background:#edf2ef;border:1px solid #d3dfda;color:#4c625a;font-size:12px;line-height:1.45;margin-top:12px}
.setup-child-row{display:grid;grid-template-columns:1.35fr .75fr .9fr auto;gap:8px;align-items:end;margin-top:9px}
.setup-child-row button{padding:11px 13px}
.profile-place{font-size:12px;color:#6e7b75;margin-top:4px}
@media(max-width:800px){
  .family-setup-card{padding:27px 22px}
  .family-setup-head{display:block}
  .setup-progress{display:inline-block;margin-top:10px}
  .setup-person-grid,.setup-child-row{grid-template-columns:1fr}
}

/* PERSISTENT CLIVE */
.clive-dock{position:fixed;right:22px;top:18px;z-index:500}
.clive-nudge{
  position:absolute;right:0;top:72px;width:255px;background:#fffdf8;border:1px solid #ddd3c6;
  border-radius:16px;padding:12px 14px;box-shadow:0 15px 38px #263a3428;font-size:13px;line-height:1.4
}
.clive-nudge:after{
  content:"";position:absolute;right:24px;top:-8px;width:16px;height:16px;background:#fffdf8;
  transform:rotate(45deg);border-left:1px solid #ddd3c6;border-top:1px solid #ddd3c6
}
.clive-orb{
  min-width:178px;height:58px;border-radius:18px;padding:5px 12px 5px 5px;border:1px solid #d9d0c3;
  box-shadow:0 10px 28px #153d3535;background:#fffdf8;color:var(--ink);position:relative;
  display:flex;align-items:center;gap:9px;text-align:left
}
.clive-orb img{width:46px;height:46px;border-radius:14px;object-fit:cover;object-position:center 24%;display:block;flex:none}
.clive-cameo-copy{display:block;line-height:1.05}
.clive-cameo-copy strong{display:block;font:500 18px Georgia,serif}
.clive-cameo-copy small{display:block;font-size:10px;color:#6f7b76;font-weight:650;margin-top:4px;white-space:nowrap}
.clive-dot{
  position:absolute;right:-3px;top:-3px;width:15px;height:15px;border-radius:50%;
  background:#c79b58;border:3px solid #fffdf8
}
.clive-panel{
  position:fixed;right:0;top:0;bottom:0;width:min(440px,100vw);height:100vh;
  background:#fffdf8;border-left:1px solid #d9d0c3;border-radius:24px 0 0 24px;
  box-shadow:-28px 0 80px #17362f44;z-index:510;display:flex;flex-direction:column;overflow:hidden
}
.clive-head{
  background:var(--ink);color:#fff;padding:14px 16px;display:flex;align-items:center;gap:11px
}
.clive-head img{width:47px;height:47px;border-radius:50%;object-fit:cover;object-position:center 24%;border:2px solid #ffffffcc}
.clive-head strong{font:500 21px Georgia,serif}
.clive-head small{display:block;color:#cbdcd6;margin-top:2px}
.clive-close{margin-left:auto;background:#ffffff18;padding:7px 10px}
.clive-memory{
  padding:9px 13px;background:#edf2ef;border-bottom:1px solid #d3dfda;color:#496259;font-size:11px;line-height:1.4
}
.chat{flex:1;overflow:auto;padding:16px;background:linear-gradient(#fffdf8,#f7f2e9)}
.msg{max-width:87%;padding:10px 12px;border-radius:15px;margin:0 0 10px;line-height:1.48;font-size:14px}
.msg.clive{background:#e8efec;color:#294b42;border-bottom-left-radius:4px}
.msg.user{background:var(--ink);color:#fff;margin-left:auto;border-bottom-right-radius:4px}
.msg .detail{font-size:12px;color:#687a73;margin-top:7px;border-top:1px solid #cddad5;padding-top:7px}
.chat-compose{border-top:1px solid #ddd3c6;padding:11px;background:#fffdf8}
.chat-row{display:grid;grid-template-columns:1fr auto;gap:7px}
.chat-row input{padding:11px}
.chat-row button{padding:11px 14px}
.chat-hint{font-size:10px;color:#85908b;margin-top:6px}
.thinking{display:inline-flex;gap:4px;align-items:center}
.thinking i{width:5px;height:5px;background:#779087;border-radius:50%;animation:blink 1.2s infinite}
.thinking i:nth-child(2){animation-delay:.18s}.thinking i:nth-child(3){animation-delay:.36s}
@keyframes blink{0%,70%,100%{opacity:.25}35%{opacity:1}}

@media(max-width:800px){
  .hero,.grid,.workspace,.row,.quick-grid{grid-template-columns:1fr}
  .hero{padding:34px 25px}.shell{padding:13px}
  .intro-card{grid-template-columns:1fr}
  .intro-portrait{min-height:270px;background-position:center 19%}
  .intro-talk{padding:28px 24px}
  .intro-talk h1{font-size:34px}
  .clive-dock{right:10px;top:10px}
  .clive-orb{min-width:132px;height:52px;border-radius:16px;padding-right:9px}
  .clive-orb img{width:40px;height:40px;border-radius:12px}
  .clive-cameo-copy small{display:none}
  .clive-panel{right:0;top:0;bottom:0;width:100vw;height:100vh;border-radius:0}
  .clive-nudge{display:none}
  .relatives-grid,.memory-board,.memory-add{grid-template-columns:1fr}
}

.contradiction-panel{margin-top:16px}
.contradiction-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.contradiction-head h3{margin-bottom:4px}
.contradiction-summary{font-size:12px;color:var(--muted);margin-top:5px}
.contradiction-list{display:grid;gap:10px;margin-top:14px}
.contradiction-item{border:1px solid #ddd3c6;background:#fffdf9;border-radius:14px;padding:14px}
.contradiction-item.red{border-color:#d7aaa6;background:#fff8f7}
.contradiction-item.amber{border-color:#d8c18e;background:#fffbf2}
.contradiction-top{display:flex;align-items:flex-start;gap:9px}
.contradiction-copy{min-width:0;flex:1}
.contradiction-title{font-weight:800;color:var(--ink);line-height:1.35}
.contradiction-detail{font-size:12px;color:var(--muted);margin-top:4px;line-height:1.5}
.contradiction-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:11px}
.contradiction-actions button{padding:8px 11px;border-radius:9px;font-size:11px}
.resolve-advice{margin-top:10px;padding:10px 11px;border-radius:11px;background:#faf7f1;border:1px solid #e3dbcf;font-size:11px;line-height:1.5;color:#5f6f68}
.resolve-advice strong{color:var(--ink)}
.resolve-advice .basis{display:block;margin-top:3px;color:#7b7a72}
.resolve-state{display:inline-flex;align-items:center;gap:5px;margin-top:8px;padding:4px 7px;border-radius:999px;background:#f0ece5;font-size:10px;font-weight:800;color:#6a665f}
.evidence-prompt{margin-top:16px;border:1px solid #cfc2a7;background:#fffaf0}
.evidence-prompt .actions{margin-top:10px}
.undo-fix{white-space:nowrap}
.quick .problem-badge{display:inline-flex;align-items:center;justify-content:center;min-width:23px;height:23px;padding:0 7px;border-radius:999px;background:#8f4b45;color:white;font-size:11px;font-weight:850}
.duplicate-badge{display:inline-flex;align-items:center;justify-content:center;min-width:23px;height:23px;padding:0 7px;border-radius:999px;background:#8b7447;color:white;font-size:11px;font-weight:850}
.duplicate-panel{margin-top:16px;border:1px solid #d8cdb9}
.duplicate-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.duplicate-summary{font-size:11px;color:#66716c;margin-top:3px}
.duplicate-list{display:grid;gap:10px;margin-top:12px}
.duplicate-item{border:1px solid #ded7ca;border-radius:13px;padding:12px;background:#fff}
.duplicate-top{display:flex;gap:10px;align-items:flex-start}
.duplicate-copy{flex:1;min-width:0}
.duplicate-title{font-weight:850;font-size:13px}
.duplicate-detail{font-size:11px;color:#68716d;line-height:1.45;margin-top:2px}
.duplicate-pair{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.duplicate-record{border:1px solid #e6dfd3;border-radius:10px;padding:9px;background:#faf8f4;font-size:11px;line-height:1.45}
.duplicate-record strong{display:block;color:var(--ink);font-size:12px}
.duplicate-record span{display:block;color:#6c746f}
.duplicate-advice{margin-top:9px;font-size:11px;color:#5f6f68;line-height:1.45}
.duplicate-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.duplicate-actions button{padding:8px 11px;border-radius:9px;font-size:11px}
@media(max-width:720px){.duplicate-pair{grid-template-columns:1fr}}

/* 0.17.3 · RESUME VIEW (retains 0.17.2 PEOPLE & MEMORIES) */
.person-profile-card{padding:0;overflow:hidden}
.profile-hero-new{display:grid;grid-template-columns:190px 1fr;gap:26px;padding:28px;background:linear-gradient(145deg,#fffdf8,#f2ece2);border-bottom:1px solid #ded5c8}
.profile-photo-wrap{position:relative;min-height:220px;border-radius:20px;background:#e9e3d9;border:1px solid #d6ccbf;overflow:hidden;display:grid;place-items:center;box-shadow:0 12px 28px #263a3414}
.profile-photo-wrap img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;display:none}
.profile-photo-wrap.has-photo img{display:block}
.profile-photo-placeholder{font:500 58px Georgia,serif;color:#7f8d87;letter-spacing:-2px}
.profile-photo-wrap.has-photo .profile-photo-placeholder{display:none}
.photo-edit-btn{position:absolute;left:10px;right:10px;bottom:10px;padding:9px 11px;border-radius:10px;background:#153d35e8;backdrop-filter:blur(8px);font-size:11px}
.profile-identity-new{min-width:0;display:flex;flex-direction:column;justify-content:center}
.profile-title-row{display:flex;gap:12px;align-items:flex-start;justify-content:space-between}
.profile-title-row h3{font-size:38px!important;line-height:1.04;margin:4px 0 8px!important}
.profile-hero-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}
.profile-hero-actions button{padding:9px 12px;font-size:12px}
.profile-relationship-mini{font:500 18px Georgia,serif;color:var(--ink);margin-top:13px}
.profile-dashboard{display:grid;grid-template-columns:1.18fr .9fr;gap:16px;padding:20px 24px 0}
.profile-panel{border:1px solid #e0d7cb;background:#fffdfa;border-radius:18px;padding:18px}
.profile-panel h4{font:500 21px Georgia,serif;color:var(--ink);margin:0 0 12px}
.profile-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.profile-panel-head button{padding:7px 10px;font-size:11px}
.memory-box-card{grid-column:1 / -1;display:grid;grid-template-columns:220px 1fr;gap:20px;align-items:center;position:relative;overflow:hidden;background:linear-gradient(135deg,#f8f3ea,#fffdfa)}
.memory-box-card:after{content:"";position:absolute;width:260px;height:260px;border:1px solid #b58a5522;border-radius:50%;right:-100px;top:-120px}
.memory-box-art{position:relative;z-index:1;cursor:pointer;transition:transform .3s ease,filter .3s ease}
.memory-box-art img{display:block;width:100%;height:auto;border-radius:16px}
.memory-box-art.opening{transform:translateY(-9px) rotateX(-5deg);filter:drop-shadow(0 18px 18px #263a3430)}
.memory-box-copy{position:relative;z-index:2}
.memory-box-copy h4{font-size:26px;margin-bottom:5px}
.memory-box-copy p{margin:0;color:var(--muted);font-size:13px;line-height:1.5}
.memory-counts{display:flex;gap:8px;flex-wrap:wrap;margin:13px 0}
.memory-count{border:1px solid #dfd5c7;background:#fff;border-radius:12px;padding:7px 9px;min-width:72px;font-size:10px;color:#738079;text-align:center}
.memory-count strong{display:block;font:500 18px Georgia,serif;color:var(--ink)}
.memory-box-peek{display:flex;gap:7px;flex-wrap:wrap;min-height:0;transition:.22s}
.memory-peek-chip{font-size:10px;padding:5px 8px;border-radius:999px;background:#edf2ef;color:#365248;border:1px solid #d3dfda;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.key-fact-grid{display:grid;gap:0}
.key-fact{display:grid;grid-template-columns:130px 1fr;gap:10px;padding:8px 0;border-bottom:1px solid #eee7dd;font-size:12px}
.key-fact:last-child{border-bottom:0}
.key-fact span:first-child{color:#78827d}
.key-fact strong{color:var(--ink);font-weight:750}
.family-profile-card .relatives-grid{grid-template-columns:1fr;margin-top:0}
.family-profile-card .relative-box{border:0;border-top:1px solid #eee7dd;border-radius:0;padding:10px 0;background:transparent}
.family-profile-card .relative-box:first-child{border-top:0;padding-top:0}
.profile-evidence-area{padding:0 24px 24px}
.profile-evidence-area>.relationship-banner{margin-top:18px}
.profile-evidence-area>.relationship-route{margin-top:12px}
.profile-evidence-area>.evidence-ledger{margin-top:16px}
.profile-clive-note{margin:16px 24px 24px;padding:14px 16px;border-radius:14px;background:#edf2ef;border:1px solid #d3dfda;display:flex;justify-content:space-between;gap:14px;align-items:center}
.profile-clive-note strong{font:500 18px Georgia,serif;color:var(--ink)}
.profile-clive-note span{display:block;font-size:11px;color:#64736d;margin-top:3px}
.profile-clive-note button{padding:8px 11px;font-size:11px}

.oc-modal{position:fixed;inset:0;z-index:20000;background:#142d2878;display:grid;place-items:center;padding:20px;backdrop-filter:blur(5px)}
.oc-modal-card{width:min(720px,100%);max-height:min(86vh,860px);overflow:auto;background:var(--white);border:1px solid #d8d0c3;border-radius:24px;box-shadow:0 26px 80px #0c201b55;padding:24px}
.oc-modal-card.wide{width:min(920px,100%)}
.oc-modal-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.oc-modal-head h3{font:500 30px Georgia,serif;color:var(--ink);margin:3px 0 5px}
.oc-modal-head button{padding:8px 11px}
.oc-modal textarea{width:100%;min-height:105px;padding:12px;border:1px solid #cdc4b8;border-radius:11px;background:#fff;color:#263a34;font:inherit;resize:vertical}
.oc-modal input[type=file]{padding:9px;background:#faf7f1}
.memory-box-filters{display:flex;gap:7px;overflow-x:auto;margin:16px 0 6px;padding-bottom:4px;border-bottom:1px solid #e4dbcf}
.memory-box-filters button{flex:0 0 auto;padding:8px 11px;border-radius:9px;background:transparent;color:#52645d;font-size:11px}
.memory-box-filters button.active{background:#164b42;color:#fff;box-shadow:none}
.memory-modal-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}
.memory-modal-toolbar button{padding:8px 11px;font-size:11px}
.memory-full-list{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:12px}
.memory-full-item{border:1px solid #e0d7cb;border-radius:14px;background:#fff;padding:12px;display:grid;grid-template-columns:72px 1fr;gap:11px;min-height:96px}
.memory-full-thumb{width:72px;height:72px;border-radius:11px;background:#edf2ef;display:grid;place-items:center;overflow:hidden;font-size:25px}
.memory-full-thumb img{width:100%;height:100%;object-fit:cover}
.memory-full-item strong{display:block;color:var(--ink);font-size:13px;line-height:1.3}
.memory-full-item .memory-meta{font-size:10px;color:#7b8580;margin:3px 0 5px}
.memory-full-item p{font-size:11px;color:#5f6d67;line-height:1.4;margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.memory-item-actions{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px}
.memory-item-actions button{padding:5px 7px;font-size:9px;border-radius:7px}
.memory-item-actions .ghost{background:#eee7dc}
.memory-empty-state{padding:26px;border:1px dashed #cfc6b9;border-radius:15px;background:#faf7f1;text-align:center;color:#77817c;font-size:13px;grid-column:1/-1}
.memory-empty-state button{margin-top:13px;padding:8px 11px;font-size:11px}
.memory-storage-note{font-size:10px;color:#7e8783;margin-top:10px}
.memory-type-icon{font-size:22px}
.person-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.person-edit-grid .full{grid-column:1/-1}
.person-edit-grid label{margin-top:8px}
@media(max-width:900px){.profile-dashboard{grid-template-columns:1fr}.memory-box-card{grid-template-columns:170px 1fr}}
@media(max-width:700px){.profile-hero-new{grid-template-columns:1fr}.profile-photo-wrap{min-height:300px}.profile-dashboard{padding:16px 14px 0}.profile-evidence-area{padding:0 14px 18px}.profile-clive-note{margin:16px 14px 18px}.memory-box-card{grid-template-columns:1fr}.memory-box-art{max-width:220px;margin:auto}.memory-full-list{grid-template-columns:1fr}.person-edit-grid{grid-template-columns:1fr}.person-edit-grid .full{grid-column:auto}}


/* 0.19.3 · dedicated person route
   The approved person profile becomes the whole workspace. The People index and every
   dashboard panel remain intact, but none of them competes with the selected person. */
.workspace.person-page-active{grid-template-columns:minmax(0,1fr)}
.workspace.person-page-active > aside{display:none}
.workspace.person-page-active > .workspace-main{width:100%;min-width:0}
.workspace-main.person-view > :not(#personProfile){display:none!important}
.workspace-main.person-view > #personProfile{display:block!important;width:100%}

/* 0.19.7 · accepted Mary tablet person page with editable person collections
   This layer is intentionally scoped to the dedicated person route. */
body.person-route-active{background:#ede8df}
body.person-route-active .shell{max-width:1480px;padding:0 16px 28px}
body.person-route-active .shell>.brand{display:none}
body.person-route-active .shell>.hero{display:none}
body.person-route-active .workspace{margin-top:0}
body.person-route-active .clive-dock{top:86px}
.person-tablet-page.card{padding:0;overflow:hidden;border-radius:30px;border:1px solid #d9d1c6;background:#f8f3eb;box-shadow:0 22px 70px #2f3d3624}

.person-topbar{height:74px;padding:0 34px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:34px;align-items:center;background:#fffdf9;border-bottom:1px solid #e8e0d5}
.person-topbar button{background:transparent;color:#2a302d;padding:6px;border-radius:8px;font-weight:500}
.person-wordmark{font:italic 500 36px Georgia,serif!important;color:#124b43!important;letter-spacing:-1.6px}
.person-primary-nav{display:flex;align-items:center;gap:28px;min-width:0}
.person-primary-nav button{font:500 15px Georgia,serif;white-space:nowrap}
.person-primary-nav button:first-child{color:var(--ink);font-weight:700}
.person-account{display:flex;align-items:center;gap:10px;white-space:nowrap;color:#29352f;font:500 14px Georgia,serif}
.person-account-search{font-size:28px!important;line-height:1;transform:rotate(-18deg)}
.person-account-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#274e45;color:#fff;font:700 11px Inter,sans-serif;letter-spacing:.04em;box-shadow:inset 0 0 0 2px #fff,0 0 0 1px #d8cfc1}

.person-tablet-grid{display:grid;grid-template-columns:340px minmax(0,1fr);min-height:760px;background:#f8f3eb}
.person-identity-panel{padding:14px 30px 28px;background:linear-gradient(180deg,#f5eee4,#faf6ef);border-right:1px solid #e1d8cb;color:#263832}
.person-portrait{width:100%;aspect-ratio:4/4.7;min-height:0!important;border-radius:17px!important;border:5px solid #ede2d2!important;background:#e8e0d4!important;box-shadow:0 10px 28px #55483922!important}
.person-portrait .profile-photo-placeholder{font-size:76px}
.person-portrait .photo-edit-btn{opacity:0;transition:opacity .18s;background:#164b42e8}
.person-portrait:hover .photo-edit-btn,.person-portrait:focus-within .photo-edit-btn{opacity:1}
.person-identity-panel h1{margin:14px 0 5px;font:500 37px/1.02 Georgia,serif;color:#184a42;letter-spacing:-.7px}
.profile-alternate-names{margin:-1px 0 7px;color:#75675f;font:italic 500 13px/1.4 Georgia,serif;text-align:center}
.person-lifespan{font:500 17px Georgia,serif;color:#303d37}
.person-character-line{margin:10px 6px 11px 0;font:italic 500 15px/1.45 Georgia,serif;color:#655d54;text-align:center}
.person-evidence-chip{margin:0 0 13px;font-size:10px}
.person-identity-facts{border-top:1px solid #ded4c6;margin-top:1px;padding-top:5px}
.person-identity-fact{display:grid;grid-template-columns:26px 1fr;gap:9px;padding:11px 0;border-bottom:1px solid #e6ddd1;color:#58766f}
.person-identity-fact>span{font-size:18px;line-height:1.1;padding-top:2px;text-align:center}
.person-identity-fact strong{display:block;font:700 14px Georgia,serif;color:#355c54;margin-bottom:2px}
.person-identity-fact div span{display:block;font:500 12px/1.4 Georgia,serif;color:#4b4c48;white-space:pre-line}
.person-identity-actions{display:grid;gap:8px;margin-top:18px}
.person-identity-actions button{width:100%;padding:11px 12px;border-radius:9px;background:transparent;color:#1a4d44;border:1px solid #cfbea7;font:600 13px Georgia,serif}
.person-identity-actions button.ghost{border-color:transparent;background:#eee7dc;font-family:Inter,sans-serif;font-size:11px}

.person-tablet-main{min-width:0;background:#faf7f1}
.person-keepsake-hero{height:clamp(350px,34vw,490px);position:relative;overflow:hidden;cursor:pointer;background:#eee8df}
.person-keepsake-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#fbf8f2 0%,#fbf8f2e8 22%,#fbf8f245 45%,transparent 62%);pointer-events:none}
.person-keepsake-hero>img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .45s ease}
.person-keepsake-hero:hover>img{transform:scale(1.012)}
.person-keepsake-hero.opening>img{transform:scale(1.035) translateY(-4px)}
.person-keepsake-copy{position:absolute;left:38px;top:44px;bottom:0;z-index:2;width:min(390px,43%);color:#30413b}
.person-keepsake-copy h2{font:500 clamp(30px,3vw,44px)/1.03 Georgia,serif!important;color:#184c43;margin:0 0 15px!important;letter-spacing:-.8px}
.person-keepsake-copy p{font:500 15px/1.5 Georgia,serif;margin:0;max-width:365px}
.person-keepsake-copy button{position:absolute;left:0;bottom:34px;margin:0;display:flex;align-items:center;gap:10px;border-radius:10px;padding:13px 20px;background:#165047;color:#fff;font:600 15px/1.2 Georgia,serif;box-shadow:0 8px 20px #163b3326}
.person-keepsake-copy button>span:first-child{font-size:22px;color:#dbc89d}

.person-count-strip{position:relative;z-index:3;margin:-28px 16px 0;min-height:126px;display:grid;grid-template-columns:repeat(4,1fr);background:#fffdf9;border:1px solid #e5dccf;border-radius:15px;box-shadow:0 13px 28px #4a443a18;overflow:hidden}
.person-count-item{appearance:none;border:0;border-left:1px solid #e7dfd4;border-radius:0;background:transparent;color:#2f3d37;padding:23px 17px 18px;display:grid;grid-template-columns:36px 1fr;gap:11px;align-items:start;text-align:left;font-weight:500}
.person-count-item:first-child{border-left:0}
.person-count-item:hover{background:#f7f2ea;filter:none}
.person-count-icon{font-size:27px;line-height:1;color:#5a7d76}
.person-count-copy strong{display:block;font:500 26px/1 Georgia,serif;color:#193f38;margin-bottom:3px}
.person-count-copy span{display:block;font:500 13px Georgia,serif;color:#2e3834}
.person-count-copy small{display:block;margin-top:6px;color:#887d70;font:500 11px/1.25 Georgia,serif}

.person-story-strip{margin:16px;display:grid;grid-template-columns:.9fr 1.35fr;border:1px solid #e5dccf;border-radius:16px;overflow:hidden;background:#fffdf9;min-height:224px}
.person-remember-card,.person-latest-photos-card{padding:22px 20px;min-width:0}
.person-latest-photos-card{border-left:1px solid #e6ddd1}
.person-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.person-section-head h3{font:500 20px Georgia,serif!important;color:#28342f;margin:0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.person-section-head button{background:transparent;color:#355c54;padding:2px;font:500 11px Georgia,serif;text-decoration:underline}
.person-latest-memory{min-height:120px;display:flex;align-items:center}
.person-memory-quote{display:grid;grid-template-columns:52px 1fr;gap:13px;align-items:start}
.person-memory-avatar{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:#d8c6ae;color:#4d443a;font:600 14px Georgia,serif;overflow:hidden}
.person-memory-quote blockquote{margin:0;font:italic 500 14px/1.55 Georgia,serif;color:#5c554d}
.person-memory-quote cite{display:block;margin-top:7px;font:500 11px/1.45 Georgia,serif;color:#6b6259}
.person-empty-invitation{width:100%;color:#746d65;font:500 13px/1.5 Georgia,serif}
.person-empty-invitation button{margin-top:12px;padding:8px 11px;border-radius:8px;font-size:11px}
.person-latest-photos{display:flex;align-items:center;justify-content:center;min-height:150px;padding:15px 16px 10px;overflow:hidden}
.person-photo-thumb{position:relative;min-height:120px;padding:0!important;border-radius:10px!important;overflow:hidden;background:linear-gradient(145deg,#e4ddd2,#c8bba8)!important;border:1px solid #d9cdbc!important;color:#fff!important}
.person-latest-photos .person-photo-thumb{flex:0 0 min(42%,150px);height:130px;margin-left:-32px;box-shadow:0 9px 22px #352d2829;transform:rotate(-7deg);transform-origin:50% 90%;z-index:1}
.person-latest-photos .person-photo-thumb:first-child{margin-left:0;transform:rotate(-9deg)}
.person-latest-photos .person-photo-thumb:nth-child(2){transform:rotate(-3deg);z-index:2}
.person-latest-photos .person-photo-thumb:nth-child(3){transform:rotate(4deg);z-index:3}
.person-latest-photos .person-photo-thumb:nth-child(4){transform:rotate(9deg);z-index:4}
.person-photo-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.person-photo-thumb span{position:absolute;inset:auto 5px 5px;background:#25352f99;border-radius:6px;padding:4px;font-size:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.person-photo-empty{width:100%;display:grid;place-items:center;border:1px dashed #d5cabb;border-radius:10px;color:#776e64;font:500 13px Georgia,serif;text-align:center;padding:18px}
.person-photo-empty button{margin-top:9px;padding:8px 11px;font-size:10px}
.person-tribute{margin:0 16px 18px;padding:23px;text-align:center;border:1px solid #e6ddd1;border-radius:15px;background:#f5eee4;color:#8d7e6d;font:500 13px Georgia,serif}

.person-record-details{margin:18px;border:1px solid #ddd3c6;border-radius:17px;background:#fffdf9;overflow:hidden}
.person-record-details>summary{list-style:none;cursor:pointer;padding:17px 20px;display:flex;align-items:center;justify-content:space-between;gap:20px;color:#264b43;background:#f4eee5}
.person-record-details>summary::-webkit-details-marker{display:none}
.person-record-details>summary strong{font:500 19px Georgia,serif}
.person-record-details>summary span{font-size:11px;color:#7a817e;text-align:right}
.person-record-details[open]>summary{border-bottom:1px solid #dfd5c8}
.person-record-details .person-record-grid{padding:18px 18px 0}
.person-record-details .profile-evidence-area{padding:0 18px 20px}
.person-record-details .profile-clive-note{margin:16px 18px 20px}

@media(max-width:1180px){
  .person-topbar{padding:0 24px;gap:22px}.person-primary-nav{gap:18px}
  .person-tablet-grid{grid-template-columns:290px minmax(0,1fr)}
  .person-identity-panel{padding:14px 24px 24px}.person-identity-panel h1{font-size:32px}
  .person-keepsake-copy{left:30px;top:34px}.person-keepsake-copy button{bottom:30px}
  .person-count-copy small{display:none}
}
@media(max-width:900px){
  body.person-route-active .shell{padding:0 8px 20px}
  .person-topbar{height:66px;padding:0 18px;gap:18px}.person-wordmark{font-size:29px!important}.person-primary-nav{gap:9px}.person-primary-nav button{font-size:12px}.person-account-name{display:none}
  .person-tablet-grid{grid-template-columns:230px minmax(0,1fr)}.person-identity-panel{padding:12px 18px 22px}.person-identity-panel h1{font-size:27px}.person-lifespan{font-size:14px}.person-character-line{font-size:13px}
  .person-keepsake-copy{left:24px;top:27px;width:45%}.person-keepsake-copy p{font-size:13px}.person-keepsake-copy button{bottom:27px;padding:11px 14px;font-size:13px}
  .person-count-strip{min-height:105px}.person-count-item{grid-template-columns:25px 1fr;padding:18px 10px;gap:7px}.person-count-icon{font-size:21px}.person-count-copy strong{font-size:21px}.person-count-copy span{font-size:11px}
  .person-story-strip{grid-template-columns:1fr}.person-latest-photos-card{border-left:0;border-top:1px solid #e6ddd1}
}
@media(max-width:700px){
  body.person-route-active .clive-dock{top:73px}
  .person-tablet-page.card{border-radius:18px}.person-topbar{grid-template-columns:1fr auto;height:auto;min-height:64px}.person-primary-nav{grid-row:2;grid-column:1/-1;justify-content:space-between;padding-bottom:10px}.person-primary-nav button:nth-child(5){display:none}.person-account-search{display:none}
  .person-tablet-grid{grid-template-columns:1fr}.person-identity-panel{border-right:0;border-bottom:1px solid #e1d8cb}.person-portrait{max-width:270px;margin:auto}.person-identity-panel h1,.person-lifespan{text-align:center}.person-evidence-chip{display:flex;width:max-content;margin:0 auto 13px}
  .person-keepsake-hero{height:430px}.person-keepsake-copy{left:22px;top:24px;width:62%}.person-keepsake-copy button{bottom:30px}
  .person-count-strip{grid-template-columns:1fr 1fr;margin-top:-20px}.person-count-item:nth-child(3){border-left:0;border-top:1px solid #e7dfd4}.person-count-item:nth-child(4){border-top:1px solid #e7dfd4}
  .person-latest-photos{grid-template-columns:1fr 1fr}.person-photo-thumb{min-height:145px}
  .person-record-details>summary{align-items:flex-start;flex-direction:column}.person-record-details>summary span{text-align:left}
}
@media(prefers-reduced-motion:reduce){.person-keepsake-hero>img,.person-portrait .photo-edit-btn{transition:none}}

/* 0.19.10 · names, shared photographs and person filing cabinets */
.people-link-list{display:grid;gap:7px;max-height:260px;overflow:auto;margin-top:9px;padding-right:3px}
.people-link-choice{display:flex!important;align-items:flex-start;gap:9px;padding:10px 11px!important;border:1px solid #ddd3c7;border-radius:10px;background:#fffdf9;color:#2e3934;cursor:pointer}
.people-link-choice input{width:auto!important;margin:3px 0 0!important}
.people-link-choice span{display:block;min-width:0}.people-link-choice strong{display:block;font:600 13px Georgia,serif}.people-link-choice small{display:block;margin-top:3px;color:#746a64;font:italic 11px Georgia,serif}
.filing-cabinet-layout{display:grid;grid-template-columns:minmax(250px,.72fr) minmax(0,1.28fr);gap:18px;align-items:start}
.filing-add-panel{padding:17px;border:1px solid #d7c9bc;border-radius:14px;background:linear-gradient(145deg,#f4ede4,#ece2d5)}
.filing-add-panel h4{margin:0 0 13px;color:#29483f;font:600 19px Georgia,serif}.filing-add-panel label{margin-top:10px}
.filing-people-wrap{margin-top:13px;padding-top:13px;border-top:1px solid #d5c5b5}
.filing-cabinet-list{display:grid;gap:10px}
.filing-item{display:grid;grid-template-columns:54px 1fr;gap:13px;align-items:center;padding:14px;border:1px solid #d9d0c5;border-radius:12px;background:#fffdf9}
.filing-paper{width:46px;height:58px;display:grid;place-items:center;border:1px solid #cbbda9;border-radius:3px;background:linear-gradient(155deg,#fffdf8,#e8dfd1);color:#59746d;font-size:22px;box-shadow:4px 5px 0 #e4d8c8}
.filing-item strong{font:600 14px Georgia,serif;color:#2f3e38}.filing-item .memory-item-actions{margin-top:9px}
.memory-full-list.memory-photo-fan{display:flex;align-items:flex-start;gap:0;overflow-x:auto;padding:25px 32px 28px;min-height:235px}
.memory-photo-fan .memory-full-item{flex:0 0 250px;display:grid;margin-left:-78px;transform:rotate(-6deg);transform-origin:50% 100%;box-shadow:0 13px 30px #332b2529;transition:transform .16s,margin .16s;position:relative}
.memory-photo-fan .memory-full-item:first-child{margin-left:0}.memory-photo-fan .memory-full-item:nth-child(2){transform:rotate(-2deg)}.memory-photo-fan .memory-full-item:nth-child(3){transform:rotate(3deg)}.memory-photo-fan .memory-full-item:nth-child(4n){transform:rotate(7deg)}
.memory-photo-fan .memory-full-item:hover,.memory-photo-fan .memory-full-item:focus-within{transform:translateY(-10px) rotate(0);z-index:5}
@media(max-width:700px){
  .profile-alternate-names{text-align:center}.filing-cabinet-layout{grid-template-columns:1fr}.people-link-list{max-height:220px}
  .person-latest-photos .person-photo-thumb{flex-basis:42%;margin-left:-42px}
  .memory-full-list.memory-photo-fan{padding-left:12px;padding-right:12px}.memory-photo-fan .memory-full-item{flex-basis:225px;margin-left:-90px}.memory-photo-fan .memory-full-item:first-child{margin-left:0}
}

/* 0.19.13 · owner Home
   A warm front door to the archive, deliberately distinct from a person record. */
body.owner-home-route-active{background:#ebe6dc}
body.owner-home-route-active .shell{max-width:1480px;padding:0 16px 28px}
body.owner-home-route-active .shell>.brand,body.owner-home-route-active .shell>.hero{display:none}
body.owner-home-route-active .workspace,body.owner-home-route-active .shell>.note{display:none}
body.owner-home-route-active .clive-dock{display:none}
.owner-home-page{position:relative;margin:0;overflow:hidden;border:1px solid #d7cec1;border-radius:30px;background:#f6f0e7;color:#2b3934;box-shadow:0 22px 70px #2f3d3624}
.owner-home-page:before{content:"";position:absolute;z-index:0;inset:74px 0 auto;height:180px;pointer-events:none;opacity:.48;background:radial-gradient(circle at 18px 18px,transparent 0 12px,#cbb99d33 13px 14px,transparent 15px) 0 0/36px 36px,linear-gradient(180deg,#e9dfd0,#f6f0e700)}
.owner-topbar{position:relative;z-index:2;height:74px;padding:0 34px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:30px;align-items:center;background:#fffdf9;border-bottom:1px solid #e6ddd1}
.owner-topbar button{background:transparent;color:#2a302d;padding:6px;border-radius:8px;font-weight:500;box-shadow:none}
.owner-wordmark{font:italic 500 36px Georgia,serif!important;color:#124b43!important;letter-spacing:-1.6px}
.owner-primary-nav{display:flex;align-items:center;justify-content:center;gap:24px;min-width:0}
.owner-primary-nav button{font:500 14px Georgia,serif;white-space:nowrap;border-radius:0}
.owner-primary-nav button.active{color:#173f37;border-bottom:2px solid #b58a55;padding-top:26px;padding-bottom:25px;font-weight:700}
.owner-account{display:flex!important;align-items:center;gap:10px!important;white-space:nowrap;font:500 14px Georgia,serif!important}
.owner-account-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#274e45;color:#fff;font:700 11px Inter,sans-serif;letter-spacing:.04em;box-shadow:inset 0 0 0 2px #fff,0 0 0 1px #d8cfc1}
.owner-home-body{position:relative;z-index:1;padding:30px 34px 38px;display:grid;gap:18px}
.owner-welcome-panel{display:grid;grid-template-columns:minmax(0,1.16fr) minmax(300px,.84fr);gap:26px;align-items:stretch;padding:29px 31px;border:1px solid #d9cdbd;border-radius:22px;background:linear-gradient(125deg,#fbf7ef 0%,#f6ede1 58%,#e7ddd0 100%);box-shadow:0 12px 28px #4a443a12}
.owner-welcome-copy{position:relative;padding-left:22px}
.owner-welcome-copy:before{content:"";position:absolute;left:0;top:3px;bottom:3px;width:7px;border-left:1px solid #b89464;border-right:1px solid #d2bea2;background:repeating-linear-gradient(180deg,transparent 0 7px,#b89464 8px 9px,transparent 10px 14px)}
.owner-welcome-copy h1{margin:4px 0 8px;font:500 clamp(34px,4vw,50px)/1.02 Georgia,serif;color:#174940;letter-spacing:-1px}
.owner-welcome-copy p{max-width:680px;margin:0;color:#65655f;font:500 14px/1.55 Georgia,serif}
.owner-primary-action{margin-top:22px;padding:12px 18px;border-radius:9px;font:600 13px Georgia,serif}
.owner-clive-card{display:grid;grid-template-columns:112px 1fr;gap:17px;align-items:center;padding:15px;border:1px solid #d4c6b4;border-radius:17px;background:#fffdf9;color:#2b3934;text-align:left;box-shadow:0 9px 22px #3f3a3214}
.owner-clive-card:hover{background:#faf6ef;filter:none}
.owner-clive-card img{width:112px;height:128px;object-fit:cover;object-position:center 22%;border-radius:12px;filter:saturate(.9)}
.owner-clive-card span,.owner-clive-card small{display:block;color:#7a6d62;font:500 10px/1.4 Inter,sans-serif;letter-spacing:.04em;text-transform:uppercase}
.owner-clive-card strong{display:block;margin:7px 0 8px;color:#24473f;font:italic 500 20px/1.3 Georgia,serif}
.owner-clive-card small{text-transform:none;letter-spacing:0;line-height:1.45}
.owner-entrances{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid #d9cfc2;border-radius:18px;background:#fffdf9;overflow:hidden;box-shadow:0 10px 24px #4a443a10}
.owner-entrances button{min-height:118px;padding:20px 18px;display:grid;grid-template-columns:42px 1fr;grid-template-rows:auto auto;column-gap:12px;text-align:left;border-left:1px solid #e3dbd0;border-radius:0;background:transparent;color:#293a34;box-shadow:none}
.owner-entrances button:first-child{border-left:0}.owner-entrances button:hover{background:#f4eee5;filter:none}
.owner-entrance-icon{grid-row:1/3;font:500 31px/1 Georgia,serif;color:#66867e;padding-top:3px}
.owner-entrances strong{font:600 18px/1.15 Georgia,serif;color:#21473f}.owner-entrances small{margin-top:6px;color:#81766b;font:500 11px/1.35 Georgia,serif}
.owner-home-columns{display:grid;grid-template-columns:1.15fr .85fr;gap:18px}
.owner-home-card{border:1px solid #d9cfc2;border-radius:18px;background:#fffdf9;box-shadow:0 10px 24px #4a443a0d}
.owner-attention-card,.owner-recent-card{padding:22px}
.owner-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:14px}
.owner-section-heading h2,.owner-place-copy h2{margin:3px 0 0;font:500 25px/1.1 Georgia,serif;color:#24483f}
.owner-count-chip{min-width:32px;height:32px;padding:0 9px;display:grid;place-items:center;border-radius:999px;background:#eee5d8;color:#5f625d;font:700 12px Inter,sans-serif}
.owner-attention-list,.owner-recent-list{display:grid;gap:8px}
.owner-attention-item,.owner-recent-item{width:100%;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;padding:11px 12px;border:1px solid #e3dbd0;border-radius:12px;background:#faf7f1;color:#34443e;text-align:left;box-shadow:none}
.owner-attention-item:hover,.owner-recent-item:hover{background:#f1eadf;filter:none}.owner-attention-item.red{border-left:4px solid #a85f57}.owner-attention-item.amber{border-left:4px solid #b28a4e}.owner-attention-item.grey{border-left:4px solid #82908a}
.owner-attention-number{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:#e8dfd2;color:#485951;font:700 11px Inter,sans-serif}
.owner-attention-item strong,.owner-recent-item strong{display:block;font:600 13px/1.3 Georgia,serif}.owner-attention-item small,.owner-recent-item small{display:block;margin-top:3px;color:#786f67;font:500 10px/1.35 Inter,sans-serif}.owner-attention-item b,.owner-recent-item b{color:#28584e;font:600 10px Inter,sans-serif;white-space:nowrap}
.owner-recent-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:10px;background:#eee7dc;color:#51756d;font-size:21px}
.owner-calm-state{min-height:90px;display:flex;gap:13px;align-items:center;padding:15px;border:1px dashed #d2c6b7;border-radius:12px;background:#faf7f1;color:#4d665f}.owner-calm-state>span{width:35px;height:35px;display:grid;place-items:center;border-radius:50%;background:#dce8e1;font-size:17px}.owner-calm-state strong,.owner-calm-state small{display:block}.owner-calm-state strong{font:600 14px Georgia,serif}.owner-calm-state small{margin-top:4px;color:#777069;font-size:10px;line-height:1.4}
.owner-place-card{padding:23px 25px;display:grid;grid-template-columns:minmax(250px,.72fr) minmax(0,1.28fr);gap:25px;align-items:center;background:linear-gradient(120deg,#fffdf9,#f0e8dc)}
.owner-place-copy p{margin:8px 0 15px;color:#726b63;font:500 12px/1.5 Georgia,serif}.owner-place-copy button{padding:9px 12px;font-size:11px}
.owner-family-circle{display:flex;align-items:stretch;justify-content:flex-end;gap:8px;min-width:0;overflow-x:auto;padding:4px}
.owner-family-person{flex:0 0 118px;min-height:104px;padding:12px 8px!important;display:flex;flex-direction:column;align-items:center;background:#fffdf9!important;color:#31453e!important;border:1px solid #dacfc1!important;border-radius:13px!important;box-shadow:0 5px 13px #3f3a320f!important}.owner-family-person.owner{border-color:#8ca99f!important;background:#eef3ef!important}.owner-family-person>span{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#d9cbb7;color:#36564d;font:700 10px Inter,sans-serif}.owner-family-person.owner>span{background:#28564c;color:#fff}.owner-family-person strong{max-width:100%;margin-top:7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:600 12px Georgia,serif}.owner-family-person small{margin-top:3px;color:#86796d;font:500 9px Inter,sans-serif;text-transform:uppercase;letter-spacing:.04em}
@media(max-width:1100px){.owner-topbar{padding:0 22px;gap:18px}.owner-primary-nav{gap:13px}.owner-primary-nav button{font-size:12px}.owner-welcome-panel{grid-template-columns:1fr minmax(280px,.74fr);gap:18px;padding:24px}.owner-home-body{padding:24px}.owner-clive-card{grid-template-columns:92px 1fr}.owner-clive-card img{width:92px;height:112px}.owner-entrances button{padding:17px 12px;grid-template-columns:34px 1fr}.owner-entrance-icon{font-size:26px}}
@media(max-width:760px){body.owner-home-route-active .shell{padding:0 8px 20px}.owner-home-page{border-radius:20px}.owner-topbar{height:auto;min-height:64px;grid-template-columns:1fr auto;padding:0 18px}.owner-wordmark{font-size:29px!important}.owner-primary-nav{grid-row:2;grid-column:1/-1;justify-content:space-between;padding-bottom:9px;overflow-x:auto}.owner-primary-nav button{font-size:11px}.owner-primary-nav button.active{padding:5px 2px 8px}.owner-account{grid-column:2;grid-row:1}.owner-account span:last-child{display:none}.owner-home-body{padding:16px 12px}.owner-welcome-panel{grid-template-columns:1fr;padding:20px}.owner-clive-card{grid-template-columns:82px 1fr}.owner-clive-card img{width:82px;height:96px}.owner-entrances{grid-template-columns:1fr 1fr}.owner-entrances button:nth-child(3){border-left:0;border-top:1px solid #e3dbd0}.owner-entrances button:nth-child(4){border-top:1px solid #e3dbd0}.owner-home-columns,.owner-place-card{grid-template-columns:1fr}.owner-family-circle{justify-content:flex-start}.owner-attention-card,.owner-recent-card{padding:17px}}

/* 0.19.14 · owner-controlled archive safety and editable Life Stories */
.owner-archive-card{display:grid;grid-template-columns:auto minmax(280px,1fr) auto;gap:18px;align-items:center;padding:21px 23px;background:linear-gradient(112deg,#f4eee4,#fffdf9 62%);border-color:#d6c9b8}
.owner-archive-mark{width:50px;height:50px;display:grid;place-items:center;border-radius:14px;background:#254f46;color:#fff;font:500 23px Georgia,serif;box-shadow:0 8px 18px #31564d22}
.owner-archive-copy h2{margin:3px 0 6px;font:500 21px/1.1 Georgia,serif;color:#254b43}.owner-archive-copy p{margin:0;max-width:690px;color:#6d6860;font:500 11px/1.5 Georgia,serif}
.owner-archive-actions{display:flex;justify-content:flex-end;gap:7px;flex-wrap:wrap;max-width:440px}.owner-archive-actions button{padding:9px 11px;font-size:10px;white-space:nowrap}
.archive-restore-card{max-width:700px}.archive-integrity-status{margin:15px 0 12px;padding:11px 13px;border-radius:10px;background:#eee8df;color:#5d625e;font-weight:700}.archive-integrity-status.good{background:#deece4;color:#245545}.archive-integrity-status.warn{background:#f5ead0;color:#765922}.archive-integrity-status.bad{background:#f1dfdc;color:#793e38}
.archive-restore-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.archive-restore-summary>div{padding:11px;border:1px solid #e1d7ca;border-radius:10px;background:#faf7f2}.archive-restore-summary span,.archive-restore-summary strong{display:block}.archive-restore-summary span{color:#81786e;font-size:9px;text-transform:uppercase;letter-spacing:.05em}.archive-restore-summary strong{margin-top:4px;color:#33473f;font:600 13px Georgia,serif;overflow-wrap:anywhere}
.archive-replace-warning{display:grid;gap:4px;margin:13px 0;padding:12px 13px;border-left:3px solid #b28b55;background:#f8f2e9}.archive-replace-warning strong{font:600 13px Georgia,serif;color:#4d493f}.archive-replace-warning span{color:#726b63;font-size:11px;line-height:1.45}
.person-life-story{margin:28px 25px 0;padding:30px;border:1px solid #d9cec0;border-radius:20px;background:linear-gradient(145deg,#fbf7f0,#fffdfa 50%,#f4ede4);box-shadow:0 12px 32px #5a4e3d12;position:relative;overflow:hidden}.person-life-story:before,.person-life-story:after{content:"";position:absolute;width:96px;height:96px;border:1px solid #d5c2a8;border-radius:50%;opacity:.35}.person-life-story:before{left:-51px;top:-51px;box-shadow:0 0 0 8px #f7f0e7,0 0 0 9px #d5c2a8}.person-life-story:after{right:-58px;bottom:-58px;box-shadow:0 0 0 8px #f7f0e7,0 0 0 9px #d5c2a8}
.life-story-heading{position:relative;z-index:1;display:flex;align-items:end;justify-content:space-between;gap:22px;padding-bottom:18px;border-bottom:1px solid #ded3c5}.life-story-heading h2{margin:4px 0 6px;font:italic 500 34px/1 Georgia,serif;color:#214b42}.life-story-heading p{margin:0;color:#746e65;font:500 12px/1.45 Georgia,serif}.life-story-actions{display:flex;gap:7px;justify-content:flex-end;flex-wrap:wrap}.life-story-actions button{padding:9px 12px;font-size:10px}.life-story-actions .life-story-new{border-color:#b88f57;color:#765426;background:#fff9ed}
.life-story-layout{position:relative;z-index:1;display:grid;grid-template-columns:minmax(210px,.38fr) minmax(0,.62fr);gap:25px;padding-top:23px}.life-timeline-panel{padding:18px 17px;border-radius:15px;background:#eaf0eb;border:1px solid #d5dfd8}.life-timeline-panel h3{margin:0 0 15px;font:600 17px Georgia,serif;color:#31544b}.person-timeline{display:grid}.timeline-event{position:relative;display:grid;grid-template-columns:15px 1fr;gap:9px;min-height:67px}.timeline-event:not(:last-child):before{content:"";position:absolute;left:5px;top:14px;bottom:-2px;width:1px;background:#b5c4bc}.timeline-dot{position:relative;z-index:1;width:11px;height:11px;margin-top:4px;border:3px solid #eaf0eb;border-radius:50%;background:#557a6f;box-shadow:0 0 0 1px #8fa69f}.timeline-event.memory .timeline-dot{background:#ae8751}.timeline-event.document .timeline-dot{background:#84705d}.timeline-event time,.timeline-event strong,.timeline-event small{display:block}.timeline-event time{margin-bottom:2px;color:#887761;font:700 9px Inter,sans-serif;text-transform:uppercase;letter-spacing:.04em}.timeline-event strong{color:#344940;font:600 13px Georgia,serif}.timeline-event small{margin-top:2px;color:#74776f;font:500 9px/1.35 Inter,sans-serif}
.life-story-paper{min-height:300px;padding:26px 30px;border:1px solid #ded2c3;background:#fffdf8;box-shadow:0 7px 18px #4a403417;position:relative}.life-story-paper:before{content:"";position:absolute;inset:7px;border:1px solid #eee6dc;pointer-events:none}.life-story-text{position:relative;z-index:1;color:#443f39;font:500 16px/1.72 Georgia,serif}.life-story-text p{margin:0 0 18px}.life-story-text p:last-child{margin-bottom:0}.life-story-invitation{max-width:440px;margin:48px auto;text-align:center;color:#6e685f}.life-story-invitation>span{display:block;color:#b48c56;font-size:23px}.life-story-invitation h3{margin:8px 0 7px;color:#315148;font:italic 500 23px Georgia,serif}.life-story-invitation p{margin:0;font:500 13px/1.6 Georgia,serif}.life-story-empty{padding:13px;color:#7b746c;font-size:11px;text-align:center}
.life-story-editor{min-height:340px;font:500 16px/1.65 Georgia,serif}.life-story-addition-list{display:grid;gap:9px;margin:14px 0}.life-story-addition-list label{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:start;padding:12px;border:1px solid #ddd2c4;border-radius:10px;background:#faf7f1;color:#4d504b;font:500 13px/1.45 Georgia,serif}.life-story-addition-list input{margin-top:3px}
@media(max-width:900px){.owner-archive-card{grid-template-columns:auto 1fr}.owner-archive-actions{grid-column:1/-1;max-width:none;justify-content:flex-start}.person-life-story{margin:22px 18px 0;padding:24px 21px}.life-story-layout{grid-template-columns:minmax(180px,.34fr) minmax(0,.66fr);gap:16px}.life-story-paper{padding:23px}.archive-restore-summary{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.owner-archive-card{grid-template-columns:1fr;padding:17px}.owner-archive-mark{width:42px;height:42px}.owner-archive-actions{grid-column:auto;justify-content:flex-start}.person-life-story{margin:17px 9px 0;padding:21px 14px;border-radius:15px}.life-story-heading{align-items:flex-start;flex-direction:column}.life-story-heading h2{font-size:29px}.life-story-layout{grid-template-columns:1fr}.life-timeline-panel{max-height:330px;overflow:auto}.life-story-paper{padding:22px 19px}.life-story-text{font-size:15px}.archive-restore-summary{grid-template-columns:1fr}}

/* 0.19.10 · real Family Tree route
   Pedigree is the primary view; the semi-circular fan is an alternative view of
   the same saved people and links. Both canvases pan, zoom and recentre. */
body.tree-route-active{background:#ede8df}
body.tree-route-active .shell{max-width:1480px;padding:0 16px 28px}
body.tree-route-active .shell>.brand,body.tree-route-active .shell>.hero{display:none}
body.tree-route-active .workspace{display:none}
body.tree-route-active .shell>.note{display:none}
body.tree-route-active .clive-dock{top:86px}
.family-tree-page{margin:0;background:#f7f2ea;border:1px solid #d9d1c6;border-radius:30px;overflow:hidden;box-shadow:0 22px 70px #2f3d3624;color:#283832}
.tree-topbar{height:74px;padding:0 34px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:34px;align-items:center;background:#fffdf9;border-bottom:1px solid #e8e0d5}
.tree-topbar button{background:transparent;color:#2a302d;padding:6px;border-radius:8px;font-weight:500}
.tree-wordmark{font:italic 500 36px Georgia,serif!important;color:#124b43!important;letter-spacing:-1.6px}
.tree-primary-nav{display:flex;align-items:center;justify-content:center;gap:30px;min-width:0}
.tree-primary-nav button{font:500 15px Georgia,serif;white-space:nowrap;border-radius:0}
.tree-primary-nav button.active{color:#173f37;border-bottom:2px solid #b58a55;padding-top:26px;padding-bottom:25px}
.tree-account{display:flex;align-items:center;gap:10px;white-space:nowrap;color:#29352f;font:500 14px Georgia,serif}
.tree-account-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#274e45;color:#fff;font:700 11px Inter,sans-serif;letter-spacing:.04em;box-shadow:inset 0 0 0 2px #fff,0 0 0 1px #d8cfc1}
.family-tree-body{padding:20px 24px 24px}
.family-tree-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:2px 2px 16px}
.family-tree-heading h1{margin:4px 0 3px;font:500 clamp(27px,3vw,39px)/1.05 Georgia,serif;color:#19473f;letter-spacing:-.5px}
.family-tree-heading p{margin:0;color:#6d7772;font:500 13px/1.45 Georgia,serif}
.tree-heading-actions,.tree-canvas-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.tree-heading-actions button,.tree-canvas-controls button{padding:9px 12px;border-radius:8px;font-size:11px}
.tree-viewbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:10px}
.tree-mode-switch{display:flex;border:1px solid #cec6bb;border-radius:9px;overflow:hidden;background:#fffdf9}
.tree-mode-switch button{border-radius:0;background:transparent;color:#31554d;padding:9px 14px;font:600 12px Georgia,serif;border-left:1px solid #ddd5ca}
.tree-mode-switch button:first-child{border-left:0}
.tree-mode-switch button.active{background:#28554b;color:#fff}
.family-tree-canvas{height:clamp(500px,62vh,700px);position:relative;overflow:hidden;touch-action:none;cursor:grab;border:1px solid #d8d0c4;border-radius:15px;background-color:#fffdf9;background-image:radial-gradient(circle,#d8d0c4 1px,transparent 1.1px);background-size:20px 20px;box-shadow:inset 0 2px 12px #2f3d360d}
.family-tree-canvas.dragging{cursor:grabbing}
.family-tree-pan-layer{position:absolute;left:0;top:0;width:1400px;height:820px;transform-origin:0 0;will-change:transform;user-select:none}
.pedigree-connectors{position:absolute;inset:0;width:1400px;height:820px;overflow:visible;pointer-events:none}
.pedigree-connectors path{fill:none;stroke:#899b94;stroke-width:2;vector-effect:non-scaling-stroke}
.pedigree-connectors path.tree-partner-line,.fan-tree-svg path.tree-partner-line{fill:none;stroke:#b58a55;stroke-width:3;stroke-dasharray:3 4;vector-effect:non-scaling-stroke}
.tree-node{position:absolute;transform:translate(-50%,-50%);width:166px;min-height:82px;padding:10px 11px;display:grid;grid-template-columns:42px 1fr;gap:9px;align-items:center;text-align:left;border:1px solid #d2cbc0;border-radius:10px;background:#fffdf9;color:#293832;box-shadow:0 7px 18px #2f3d3618;cursor:pointer;font-weight:500}
.tree-node:hover{border-color:#62867c;filter:none}
.tree-node.centre{border-color:#27594f;box-shadow:0 0 0 3px #e1ece7,0 8px 20px #2f3d3620}
.tree-node.partner{border-color:#b89b77;background:#fffbf4;box-shadow:0 0 0 3px #f2e9dc,0 8px 20px #2f3d3618}
.tree-node.partner:before{content:"Together";position:absolute;left:50%;top:-17px;transform:translateX(-50%);padding:2px 7px;border-radius:9px;background:#f1e6d7;color:#876b48;font:700 8px/1.2 Inter,sans-serif;text-transform:uppercase;letter-spacing:.06em;white-space:nowrap}
.tree-node.placeholder{border-style:dashed;background:#f8f4ed;color:#567169;box-shadow:none}
.tree-node-photo{width:42px;height:51px;border-radius:6px;background:#e9e4da;display:grid;place-items:center;color:#2f5a50;font:600 14px Georgia,serif}
.tree-node.placeholder .tree-node-photo{background:#edf1ed;font-size:21px}
.tree-node-copy{min-width:0}
.tree-node-copy strong{display:block;font:500 14px/1.2 Georgia,serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tree-node-copy span{display:block;margin-top:4px;color:#758079;font:500 10px/1.3 Inter,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tree-node-light{position:absolute;right:8px;top:8px;width:8px;height:8px;border-radius:50%;background:#929b96}
.tree-node-light.green{background:#2f705b}.tree-node-light.amber{background:#b68132}.tree-node-light.red{background:#9b4e45}.tree-node-light.grey{background:#929b96}
.fan-tree-svg{position:absolute;inset:0;width:1400px;height:820px;overflow:visible}
.fan-segment{stroke:#d0c9bd;stroke-width:2;vector-effect:non-scaling-stroke;cursor:pointer;transition:filter .12s}
.fan-segment:hover{filter:brightness(.97)}
.fan-segment.known{fill:#e8ece5}.fan-segment.parent{fill:#dce9e4}.fan-segment.placeholder{fill:#faf7f1;stroke-dasharray:7 6}
.fan-segment.green{stroke:#37705e}.fan-segment.amber{stroke:#b68132}.fan-segment.red{stroke:#9b4e45}.fan-segment.grey{stroke:#a5ada9}
.fan-label{width:150px;height:50px;display:grid;place-items:center;text-align:center;cursor:pointer;color:#2b3833;font-family:Georgia,serif;line-height:1.12}
.fan-label strong{display:block;font-size:14px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:145px}
.fan-label span{display:block;margin-top:3px;color:#6f7974;font:500 10px Inter,sans-serif}
.fan-label.placeholder strong{color:#316057}
.fan-centre{position:absolute;left:700px;top:710px;transform:translate(-50%,-50%);width:118px;text-align:center;cursor:pointer}
.fan-centre-avatar{width:66px;height:66px;margin:auto;border-radius:50%;display:grid;place-items:center;background:#28584e;color:#fff;border:5px solid #fffdf9;box-shadow:0 4px 14px #2f3d3624;font:600 18px Georgia,serif}
.fan-centre strong{display:block;margin-top:7px;font:500 14px Georgia,serif;white-space:nowrap}
.fan-centre span{display:block;margin-top:2px;color:#717a76;font-size:10px}
.fan-partner{z-index:2}
.tree-instructions{display:flex;justify-content:center;gap:22px;flex-wrap:wrap;padding:12px 4px 0;color:#7a817e;font:500 10px Inter,sans-serif}
.tree-instructions span:before{content:"·";color:#b58a55;margin-right:7px}
.guided-name-choices{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0 8px}
.guided-name-choices button{padding:9px 12px;border-radius:9px;font-size:12px}
@media(max-width:900px){
  body.tree-route-active .shell{padding:0 8px 20px}.family-tree-page{border-radius:20px}
  .tree-topbar{height:66px;padding:0 18px;gap:18px}.tree-wordmark{font-size:29px!important}.tree-primary-nav{gap:14px}.tree-primary-nav button{font-size:12px}.tree-primary-nav button.active{padding-top:23px;padding-bottom:22px}.tree-account span:last-child{display:none}
  .family-tree-body{padding:16px 14px 18px}.family-tree-canvas{height:570px}.family-tree-heading{align-items:flex-start}.tree-heading-actions button:first-child{display:none}
}
@media(max-width:620px){
  body.tree-route-active .clive-dock{top:73px}.tree-topbar{height:auto;min-height:64px;grid-template-columns:1fr auto}.tree-primary-nav{grid-row:2;grid-column:1/-1;justify-content:space-between;padding-bottom:9px}.tree-primary-nav button.active{padding:5px 2px 8px}.tree-account{grid-column:2;grid-row:1}
  .family-tree-body{padding:14px 8px}.family-tree-heading{display:block}.tree-heading-actions{justify-content:flex-start;margin-top:12px}.tree-heading-actions button{padding:8px 10px}.tree-viewbar{align-items:flex-start}.tree-canvas-controls{gap:4px}.tree-canvas-controls button{padding:8px 9px}.family-tree-canvas{height:590px;border-radius:11px}.tree-instructions{gap:8px 15px;justify-content:flex-start}
}
@media(prefers-reduced-motion:reduce){.family-tree-pan-layer{will-change:auto}.fan-segment{transition:none}}

/* 0.19.11 · RESEARCH WORKSPACE */
body.research-route-active{background:#ede8df}
body.research-route-active .shell{max-width:1480px;padding:0 16px 28px}
body.research-route-active .shell>.brand,body.research-route-active .shell>.hero{display:none}
body.research-route-active .workspace,body.research-route-active .shell>.note{display:none}
body.research-route-active .clive-dock{top:86px}
.research-workspace-page{margin:0;background:#f8f3eb;border:1px solid #d9d1c6;border-radius:30px;overflow:hidden;box-shadow:0 22px 70px #2f3d3624;color:#283832}
.research-topbar{height:74px;padding:0 34px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:34px;align-items:center;background:#fffdf9;border-bottom:1px solid #e8e0d5}
.research-topbar button{background:transparent;color:#2a302d;padding:6px;border-radius:8px;font-weight:500}
.research-wordmark{font:italic 500 36px Georgia,serif!important;color:#124b43!important;letter-spacing:-1.6px}
.research-primary-nav{display:flex;align-items:center;justify-content:center;gap:30px;min-width:0}
.research-primary-nav button{font:500 15px Georgia,serif;white-space:nowrap;border-radius:0}
.research-primary-nav button.active{color:#173f37;border-bottom:2px solid #b58a55;padding-top:26px;padding-bottom:25px}
.research-account{display:flex;align-items:center;gap:10px;white-space:nowrap;color:#29352f;font:500 14px Georgia,serif}
.research-page-body{padding:34px;background:linear-gradient(180deg,#f8f3eb,#f2ece3)}
.research-page-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:22px}
.research-page-heading h1{margin:5px 0 8px;font:500 clamp(32px,4vw,52px)/1.05 Georgia,serif;color:#184a42;letter-spacing:-1px}
.research-page-heading p{margin:0;max-width:720px;color:#66706b}
.research-person-picker{min-width:250px;padding:14px 16px;border:1px solid #d9cdbf;border-radius:13px;background:#fffdf9}
.research-person-picker label{margin:0 0 6px;color:#6c675f}
.research-person-picker select{margin:0}
.research-mode-switch{display:flex;gap:7px;margin-bottom:20px;padding:5px;width:max-content;border:1px solid #d9cdbf;border-radius:12px;background:#eee6dc}
.research-mode-switch button{background:transparent;color:#40534d;padding:9px 15px;border-radius:8px}
.research-mode-switch button.active{background:#fffdf9;color:#17483f;box-shadow:0 4px 12px #4f45381a}
.research-person-summary{display:grid;grid-template-columns:minmax(220px,.72fr) minmax(0,1.28fr);gap:18px;margin-bottom:24px;padding:20px;border:1px solid #ddd2c5;border-radius:16px;background:#fffdf9}
.research-person-summary h2{margin:2px 0 7px;font:500 27px Georgia,serif;color:#244a42}
.research-known-facts{display:flex;flex-wrap:wrap;gap:8px;align-content:start}
.research-known-facts span{padding:8px 10px;border:1px solid #dfd5c8;border-radius:999px;background:#f6f0e8;color:#46544f;font-size:12px}
.research-section-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:3px 0 14px}
.research-section-head h2{margin:3px 0 0;font:500 25px Georgia,serif;color:#29483f}
.research-section-head>span{max-width:430px;color:#776f66;font-size:12px;text-align:right}
.guided-research-plans{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:26px}
.guided-research-card{display:flex;flex-direction:column;min-height:230px;padding:18px;border:1px solid #d9cfc2;border-radius:15px;background:#fffdf9;box-shadow:0 8px 20px #4f453810}
.guided-research-card .research-number{width:31px;height:31px;display:grid;place-items:center;border-radius:50%;background:#d9c7a7;color:#28483f;font:600 13px Georgia,serif}
.guided-research-card h3{margin:13px 0 8px;font:600 19px Georgia,serif;color:#244a42}
.guided-research-card p{margin:0 0 10px;color:#625f59;font-size:13px;line-height:1.45}
.guided-research-query{padding:9px 10px;border-radius:9px;background:#f2ebe2;color:#6a6158;font-size:11px;word-break:break-word}
.guided-research-card .actions{margin-top:auto}
.raw-search-card{display:grid;grid-template-columns:minmax(0,.8fr) minmax(320px,1.2fr);gap:28px;padding:24px;border:1px solid #d7cbbd;border-radius:16px;background:#fffdf9;margin-bottom:18px}
.raw-search-card h2{margin:5px 0 9px;font:500 27px Georgia,serif;color:#284a42}.raw-search-card p{color:#67645e;line-height:1.55}
.raw-search-controls{padding:17px;border-radius:13px;background:#f2ebe2}.raw-search-controls label:first-child{margin-top:0}
.research-search-history{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 24px}
.research-search-chip{padding:8px 10px;border:1px solid #ddd2c5;border-radius:999px;background:#fffdf9;color:#5d625f;font-size:11px}
.research-candidate-entry,.research-results-section,.research-suggested-facts{margin-top:22px;padding:22px;border:1px solid #d9cfc2;border-radius:17px;background:#fffdf9}
.research-candidate-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px}.research-candidate-grid .wide{grid-column:1/-1}.research-candidate-grid textarea{min-height:120px}
.research-candidate-list{display:grid;gap:11px}
.research-candidate{display:grid;grid-template-columns:10px minmax(0,1fr);gap:14px;padding:16px;border:1px solid #ded5ca;border-radius:13px;background:#fcfaf6}
.research-candidate-bar{border-radius:999px;background:#a6aaa7}.research-candidate.accepted .research-candidate-bar{background:#6f9b7f}.research-candidate.rejected .research-candidate-bar{background:#b56d67}.research-candidate.unsure .research-candidate-bar{background:#c39a56}
.research-candidate-head{display:flex;align-items:start;justify-content:space-between;gap:12px}.research-candidate-head strong{font:600 16px Georgia,serif;color:#30463f}.research-candidate-status{padding:4px 8px;border-radius:999px;background:#eee7dc;color:#685f56;font-size:10px;text-transform:uppercase;letter-spacing:.04em}
.research-candidate-meta{margin:5px 0;color:#746c64;font-size:11px}.research-candidate-raw{margin:10px 0;padding:10px;border-left:3px solid #d4c2a5;background:#f5efe7;color:#545651;font-size:12px;white-space:pre-wrap}
.research-candidate .actions{margin-top:10px}.research-empty-state{padding:24px;border:1px dashed #d3c7b9;border-radius:12px;text-align:center;color:#766e65;background:#faf6f0}
.research-suggested-facts .fact-proposal{background:#faf6f0}
@media(max-width:1000px){.guided-research-plans{grid-template-columns:1fr 1fr}.research-page-body{padding:25px}.research-topbar{padding:0 20px;gap:18px}.research-primary-nav{gap:14px}}
@media(max-width:700px){body.research-route-active .shell{padding:0 8px 20px}body.research-route-active .clive-dock{top:73px}.research-workspace-page{border-radius:20px}.research-topbar{height:auto;min-height:64px;grid-template-columns:1fr auto}.research-wordmark{font-size:29px!important}.research-primary-nav{grid-row:2;grid-column:1/-1;justify-content:space-between;padding-bottom:9px}.research-primary-nav button{font-size:12px}.research-primary-nav button.active{padding:5px 2px 8px}.research-account{grid-column:2;grid-row:1}.research-account span:last-child{display:none}.research-page-body{padding:18px 13px}.research-page-heading{align-items:stretch;flex-direction:column}.research-person-picker{min-width:0}.research-person-summary,.raw-search-card{grid-template-columns:1fr}.guided-research-plans{grid-template-columns:1fr}.research-candidate-grid{grid-template-columns:1fr}.research-candidate-grid .wide{grid-column:auto}.research-section-head{align-items:flex-start;flex-direction:column}.research-section-head>span{text-align:left}}

/* 0.20.0 · PRIVATE ARCHIVE ACCOUNT */
.cloud-account-button{position:fixed;right:24px;top:18px;z-index:75;display:flex;align-items:center;gap:9px;padding:9px 13px;border:1px solid #cfc3b3;border-radius:999px;background:#fffdf9;color:#26483f;box-shadow:0 8px 24px #2f3d3620;text-align:left}.cloud-account-button span:last-child{display:flex;flex-direction:column}.cloud-account-button strong{font:600 12px Georgia,serif}.cloud-account-button small{font-size:10px;color:#6c716d}.cloud-account-dot{width:9px;height:9px;border-radius:50%;background:#a59e95;box-shadow:0 0 0 3px #eee9e2}.cloud-account-dot.connected{background:#54866e;box-shadow:0 0 0 3px #dcebe2}.cloud-account-dot.attention{background:#b67b42;box-shadow:0 0 0 3px #f2dfc8}.cloud-account-button.attention{border-color:#c99962;background:#fff8ed}.cloud-account-card{max-width:760px}.cloud-signin p{line-height:1.55}.cloud-signin input{max-width:480px}.cloud-account-summary{display:flex;justify-content:space-between;gap:16px;padding:14px 16px;border-radius:12px;background:#edf4f0;color:#2f5148}.cloud-account-summary strong{font-size:12px}.cloud-panel,.cloud-conflict{margin-top:15px;padding:17px;border:1px solid #d8cec1;border-radius:14px;background:#fffdf9}.cloud-panel p,.cloud-conflict p{margin:7px 0;color:#646961;line-height:1.5}.cloud-conflict{border-color:#d2a56f;background:#fff7ea}.cloud-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.cloud-list-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid #ece5dc}.cloud-list-row:last-child{border-bottom:0}.cloud-list-row>span:first-child{display:flex;min-width:0;flex-direction:column}.cloud-list-row small{margin-top:3px;color:#74726d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cloud-current{padding:5px 8px;border-radius:999px;background:#e5efe9;color:#426b58;font-size:10px}.cloud-account-message{margin-top:14px;padding:12px 14px;border-radius:11px}.cloud-account-message.good{display:block;background:#e8f2ec;color:#315e49}.cloud-account-message.bad{display:block;background:#fbebe6;color:#8b4739}.cloud-account-message.hidden{display:none}.cloud-local-link{display:inline-block;margin-top:12px;padding:10px 13px;border-radius:10px;background:#edf4f0;color:#275b4d;font-weight:600}.cloud-read-only-notice{margin:0 0 14px;padding:12px 14px;border-radius:11px;background:#fff1d9;color:#79532c}.cloud-contribution-locked button:not(.cloud-account-button){cursor:default}
@media(max-width:700px){.cloud-account-button{right:10px;top:9px;padding:8px 10px}.cloud-account-button strong{display:none}.cloud-account-button small{max-width:120px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cloud-account-summary{align-items:flex-start;flex-direction:column}.cloud-list-row{align-items:flex-start}.cloud-list-row small{white-space:normal}}
