/* A warm, personal clearing, with a clear place for each part of a member's story. */
dialog.theme-profile{width:min(960px,96vw);padding:22px 28px 28px;border:1px solid #b5a580;border-top:5px solid #889b77;border-radius:25px;background:radial-gradient(ellipse at 15% 0,#f7deb9,transparent 65%),linear-gradient(135deg,#f5eddb,#e9e7d5);color:#514d3b;--ink:#514d3b;--muted:#83795f;--line:#c5bea1;box-shadow:0 26px 95px #28352c77,inset 0 0 0 5px #fff9e332}
.theme-profile .modal-head{position:relative;background:transparent;border-bottom:1px solid #b8ab8470;padding:0 40px 12px;min-height:48px;margin-bottom:20px}.theme-profile .modal-head h2{font:36px FieldScript,Georgia,serif;color:#687554;margin:0}.theme-profile .modal-head:after{display:none}.theme-profile .modal-head>button{top:0;border-radius:50%;background:#f9f0d9;border:1px solid #c7b790;color:#7e7051}
.theme-profile button{background:#f9f2df;border:1px solid #b9b28f;color:#5f694e;border-radius:10px}.theme-profile button:hover{background:#e9e9d2}.theme-profile button.primary{background:#768766;color:#fff8e5;border-color:#687b58}.theme-profile button.danger{color:#9b5145;border-color:#ca9c83}.theme-profile button:focus-visible,.theme-profile a:focus-visible,.theme-profile summary:focus-visible{outline:3px solid #8d9d75;outline-offset:3px}
.profile-hero{display:grid;grid-template-columns:minmax(240px,.9fr) minmax(0,1.1fr);border:1px solid #bcb295;border-radius:19px;overflow:hidden;background:#fff8e3a3;box-shadow:0 5px 15px #7d744c0c}.profile-portrait-scene{position:relative;isolation:isolate;min-height:300px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;padding:18px 12px 17px;background:linear-gradient(#d8c9b2,#edcda4 55%,#e2d5ad)}.profile-portrait-scene:before,.profile-portrait-scene:after{content:'';position:absolute;z-index:-1;width:150%;height:95px;left:-35%;bottom:-20px;border-radius:50%;background:#b5bb91;transform:rotate(12deg)}.profile-portrait-scene:after{left:-5%;bottom:-42px;background:#d4c797;transform:rotate(-12deg)}.profile-sun{position:absolute;z-index:-1;top:26px;right:28px;width:88px;height:88px;border-radius:50%;background:#fff0b9;box-shadow:0 0 42px #ffedb566}.profile-portrait-scene .member-art{width:100%;height:220px;padding:4px 12px 12px;margin:0}.profile-role{font:italic 12px/1.5 FieldSerif,Georgia,serif;color:#65684b;text-align:center;background:#fff4d6b5;padding:5px 12px;border-radius:20px;border:1px solid #c9b99077}
.profile-story{padding:26px 28px;align-self:center;min-width:0}.profile-eyebrow{text-transform:uppercase;letter-spacing:1.8px;font-size:9px;color:#98815b;margin:0 0 9px}.profile-story h3{font:34px/1.15 FieldScript,Georgia,serif;color:#6a7858;text-align:left;margin:0 0 13px;overflow-wrap:anywhere}.profile-status{display:flex;flex-wrap:wrap;gap:7px;align-items:center}.profile-status .badge,.profile-status .journal-tag,.profile-protected{margin:0;padding:4px 9px;border-radius:15px;font-size:10px;background:#e3e7cc;color:#69724f;border:1px solid #c1c7a0}.profile-status .badge.alert{background:#f0dbc4;color:#97694f}.profile-status .journal-tag{background:#e5dce9;color:#81718a;border-color:#c9b8cf}.profile-status .profile-protected{background:#f2e5c1;color:#9b8050;border-color:#d6c797}.profile-story .member-description{font:15px/1.75 FieldSerif,Georgia,serif;white-space:pre-wrap;overflow-wrap:anywhere;color:#75684f;margin:17px 0}.profile-facts,.profile-care-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.profile-facts>div{border-top:1px solid #c9bc9977;padding-top:12px}.profile-facts strong,.profile-care-grid strong{display:block;font:22px FieldSerif,Georgia,serif;color:#748261}.profile-facts small,.profile-care-grid small{display:block;font-size:10px;line-height:1.5;color:#8b7d61;margin-top:4px}.profile-growth{margin-top:17px}.profile-growth label{display:flex;justify-content:space-between;font-size:11px;color:#758362}.profile-growth progress{width:100%;height:9px;accent-color:#90a378;margin:7px 0}.profile-growth small{display:block;color:#8b7d61;font-size:10px}
.profile-treasures .profile-gifts{margin:19px 0;background:linear-gradient(120deg,#f7e6c9,#e4e8d4);border-color:#bcb58d;border-radius:15px;box-shadow:0 3px 12px #74623c0a}.profile-treasures .profile-gifts>summary{padding:17px 0}.profile-treasures .profile-gifts>summary>span:before{content:'✧';margin-right:12px;color:#b59c62}.profile-treasures .gift-grid{grid-template-columns:repeat(auto-fill,minmax(115px,1fr));gap:12px}
.profile-configuration,.profile-memory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;align-items:start}.profile-drawer{min-width:0;border:1px solid #c6bfa3;border-radius:14px;background:#fff8e87d;padding:0 17px;margin:0}.profile-drawer>summary{cursor:pointer;padding:17px 0;line-height:1.4;color:#697856}.profile-drawer>summary span{font:24px FieldScript,Georgia,serif}.profile-drawer>summary small{display:block;font-size:10px;color:#918268;margin:5px 0 0 17px}.profile-drawer[open]{padding-bottom:17px}.profile-drawer[open]>summary{border-bottom:1px solid #c6bfa36b;margin-bottom:15px}.profile-drawer .toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}.profile-drawer button{font-size:11px;line-height:1.4;padding:9px 10px;min-width:0;overflow-wrap:anywhere}.profile-drawer .row.wrap{gap:7px}.profile-drawer .row.wrap button{padding:7px 10px}.profile-drawer .field{margin-bottom:13px}.profile-drawer .field label{font-size:11px;color:#7a745b}.profile-drawer input,.profile-drawer select,.profile-drawer textarea{max-width:100%;background:#fffbed;border:1px solid #c8bfa0;border-radius:8px;color:#59563e}.profile-drawer textarea{min-height:105px;resize:vertical}.profile-drawer .field-help,.profile-drawer .muted{font-size:11px;line-height:1.65;color:#8d8064}.profile-editor form>label{font-size:11px;line-height:1.6;margin:12px 0}.profile-configuration+.profile-drawer{margin-top:15px}
.profile-memories{margin-top:24px}.profile-section-title{display:flex;align-items:center;gap:12px;margin:0 4px 14px}.profile-section-title>span{font-size:36px;color:#899573}.profile-section-title h3{font:29px FieldScript,Georgia,serif;color:#748263;margin:0;text-align:left}.profile-section-title p{font-size:11px;color:#938568;margin:5px 0 0}.profile-entry-list>a,.theme-profile .nb-profile-links>p{display:block;padding:11px 0;border-bottom:1px solid #d1c5a477;margin:0;text-decoration:none}.profile-entry-list>a:last-child,.theme-profile .nb-profile-links>p:last-child{border-bottom:0}.profile-entry-list>a>span{display:block;font:15px FieldSerif,Georgia,serif;color:#6c7c59}.profile-entry-list>a>small{display:block;font-size:10px;color:#978967;margin-top:5px}.theme-profile .nb-profile-links a{color:#6c7c59}.theme-profile .profile-memory-grid h3{display:none}.theme-profile .note.warning{margin:18px 0;border:1px solid #cfae83;border-radius:13px;padding:16px;background:#f6e4ca}
.gift-settings{margin-top:22px}.gift-settings>summary{cursor:pointer;color:#78855e;padding:5px 0}.gift-settings>summary>span{font-size:18px}.gift-settings>summary>small{display:block;color:#988866;font-size:11px;margin:6px 0}.gift-settings form{margin-top:16px}.gift-settings label{display:block;max-width:420px}.gift-settings input[type=range]{display:block;width:100%;accent-color:#80976a;margin-top:12px}.gift-settings output{font-weight:bold}.gift-settings .toolbar{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:680px){dialog.theme-profile{padding:17px 15px 22px}.profile-hero{grid-template-columns:1fr}.profile-portrait-scene{min-height:225px;padding-top:8px}.profile-portrait-scene .member-art{height:175px;max-width:280px}.profile-story{padding:20px}.profile-story h3{font-size:31px}.profile-story .member-description{font-size:14px}.profile-configuration,.profile-memory-grid{grid-template-columns:1fr;gap:12px}.profile-section-title h3{font-size:26px}.profile-treasures .gift-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.profile-treasures .profile-gifts>summary>small{margin-left:30px}.theme-profile .modal-head h2{font-size:32px}}
/* One continuous clearing behind solid, readable content panels. */
dialog.theme-profile{width:min(1080px,97vw);background:#e4d8b8 url('profile-clearing.svg') center top/cover no-repeat;background-attachment:local}
.profile-shell{display:grid;grid-template-columns:78px minmax(0,1fr);gap:20px;align-items:start}.member-profile{min-width:0}
.profile-rail{display:flex;flex-direction:column;gap:10px;position:sticky;top:8px;max-height:calc(88dvh - 80px);overflow-y:auto;overflow-x:hidden;padding:8px 5px 12px;scrollbar-width:thin;scrollbar-color:#a5b28c transparent}
.theme-profile .profile-switch{display:flex;flex-direction:column;align-items:center;width:65px;flex-shrink:0;padding:5px 4px 7px;gap:3px;background:#f5ecd9;border:1px solid #bcba9a;border-radius:17px;box-shadow:0 3px 8px #746d4420}.profile-switch svg{width:53px;height:53px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#f8e5bc,#d8d9b6);display:block}.profile-switch span{font:10px/1.3 sans-serif;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.theme-profile .profile-switch.selected{background:#eff1d8;border-color:#9aa87b;box-shadow:0 0 0 3px #eef1ca88,0 0 18px #b4c38ba6}.profile-switch.remembered:not(.selected){opacity:.7}
.profile-hero{grid-template-columns:minmax(260px,1fr) minmax(0,1.05fr);gap:20px;border:0;background:none;box-shadow:none;overflow:visible;align-items:center}.profile-portrait-scene{padding:12px 0 10px;min-height:0;background:none;overflow:hidden;justify-content:center;align-self:center}.profile-portrait-scene:before,.profile-portrait-scene:after,.profile-sun{display:none}
.profile-character{--profile-character-height:275;position:relative;isolation:isolate;width:100%;height:280px;max-width:380px;flex-shrink:0}.profile-character:before{content:'';position:absolute;z-index:-1;bottom:2px;left:calc(50% - 65px);width:130px;height:7px;border-radius:50%;background:#7d765522}.profile-character svg{display:block;width:100%;height:100%;overflow:visible;visibility:hidden}.profile-role{margin-top:18px;max-width:calc(100% - 12px);padding:7px 13px;line-height:1.5;background:#fff5df;border-color:#c9b88e}
.profile-story{background:#fbf4e4;border:1px solid #c6b794;border-radius:17px;padding:23px;box-shadow:0 5px 14px #746d4415;align-self:stretch;display:flex;flex-direction:column;justify-content:center}.profile-drawer{background:#fbf5e7}.profile-section-title{background:#f9f1df;padding:12px 15px;border:1px solid #cbbd98;border-radius:13px;margin:0 0 13px}.profile-treasures .profile-gifts{background:linear-gradient(120deg,#f7e6c9,#e4e8d4)}
[data-profile-pair]:has(>details[open]){grid-template-columns:minmax(0,1fr)}[data-profile-pair]>details:only-child{grid-column:1/-1}
.profile-pose-bank{display:flex;flex-wrap:wrap;gap:8px}.profile-pose-bank button{display:flex;gap:10px;align-items:center;max-width:100%}.profile-default-pose small{font-size:9px;color:#889575;border:1px solid #c5caa8;border-radius:10px;padding:2px 6px;background:#eef0dc}
.profile-bound-task{margin-top:13px;padding:12px 13px;background:#eaf0da;border:1px solid #c4ccac;border-radius:11px}.profile-bound-task>small{font-size:9px;letter-spacing:1px;text-transform:uppercase;color:#8a926b;margin:0 0 5px}.profile-bound-task>strong{display:block;font:16px/1.4 FieldSerif,Georgia,serif;color:#61744d;overflow-wrap:anywhere}.profile-bound-task>span{display:block;font-size:10px;color:#86916f;margin-top:5px}.profile-bound-task>button{margin-top:10px;font-size:10px;padding:5px 10px}
@media(max-width:860px){.profile-hero{grid-template-columns:1fr;gap:14px}.profile-portrait-scene{padding-top:0}.profile-character{--profile-character-height:260;max-width:360px}.profile-story{padding:20px}.profile-shell{gap:14px}.profile-configuration,.profile-memory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-drawer>summary span{font-size:22px}}
@media(max-width:540px){dialog.theme-profile{padding:14px 10px 20px}.profile-shell{grid-template-columns:54px minmax(0,1fr);gap:9px}.profile-rail{padding:6px 3px;gap:9px;top:4px}.theme-profile .profile-switch{width:47px;border-radius:13px;padding:4px 2px 6px}.profile-switch svg{width:39px;height:39px}.profile-switch span{font-size:9px}.profile-character{--profile-character-height:240}.profile-story{padding:16px}.profile-story h3{font-size:29px}.profile-role{font-size:11px;padding:6px 9px;margin-top:16px}.profile-drawer{padding:0 11px}.profile-drawer>summary span{font-size:20px}.profile-drawer>summary small{font-size:9px;margin-left:0}.profile-configuration,.profile-memory-grid{gap:8px}.profile-section-title{padding:10px}.profile-section-title h3{font-size:23px}.profile-treasures .gift-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-facts{gap:8px}.profile-facts strong{font-size:20px}}

[data-profile-pair]:not(:has(>details[open])){align-items:stretch}[data-profile-pair]:not(:has(>details[open]))>details>summary{height:100%;box-sizing:border-box}

/* Scale the contents, preserving the full-size profile window. */
dialog.theme-profile{zoom:1}
dialog.theme-profile #modalContent{zoom:.8}

/* Desktop web readability: typography only; retain the compact cards and artwork. */
@media (min-width:861px) and (pointer:fine){
.profile-web .theme-profile #modalContent{font-size:17px}
.profile-web .theme-profile .profile-eyebrow{font-size:12px}
.profile-web .theme-profile .profile-role{font-size:15px}
.profile-web .theme-profile .profile-story .member-description{font-size:18px}
.profile-web .theme-profile .profile-status :is(.badge,.journal-tag,.profile-protected){font-size:13px}
.profile-web .theme-profile :is(.profile-facts,.profile-care-grid) small{font-size:13px}
.profile-web .theme-profile :is(.profile-facts,.profile-care-grid) strong{font-size:25px}
.profile-web .theme-profile .profile-switch span{font-size:12px}
.profile-web .theme-profile .profile-drawer>summary span{font-size:28px}
.profile-web .theme-profile .profile-drawer>summary small{font-size:13px}
.profile-web .theme-profile .profile-drawer :is(button,.field label,.field-help,.muted),
.profile-web .theme-profile .profile-editor form>label{font-size:14px}
.profile-web .theme-profile .profile-drawer :is(input,select,textarea){font-size:16px}
.profile-web .theme-profile .profile-default-pose small{font-size:12px}
.profile-web .theme-profile .profile-section-title p{font-size:14px}
.profile-web .theme-profile .profile-entry-list>a>span{font-size:18px}
.profile-web .theme-profile .profile-entry-list>a>small{font-size:13px}
.profile-web .theme-profile .profile-growth label{font-size:14px}
.profile-web .theme-profile .profile-growth small{font-size:13px}
.profile-web .theme-profile .profile-bound-task>small{font-size:12px}
.profile-web .theme-profile .profile-bound-task>strong{font-size:19px}
.profile-web .theme-profile .profile-bound-task>span,
.profile-web .theme-profile .profile-bound-task>button{font-size:13px}
.profile-web .theme-profile .profile-gifts>summary>span{font-size:29px}
.profile-web .theme-profile .profile-gifts>summary>small{font-size:14px}
.profile-web .theme-profile .gift-tile strong{font-size:15px}
.profile-web .theme-profile .gift-tile small{font-size:13px}
}
