/* Clear entrances, with detail only after a deliberate choice. */
.preference-group{margin:10px 0;border:1px solid #61736c66;border-radius:12px;background:#142a31;overflow:hidden}
.preference-group>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;list-style:none;padding:17px 16px;cursor:pointer;min-height:74px;color:#e9ddc7}
.preference-group>summary::-webkit-details-marker{display:none}.preference-group>summary::after{content:'+';font:23px system-ui;color:#c9b186;flex-shrink:0}.preference-group[open]>summary::after{content:'−'}.preference-group>summary strong,.profile-entry strong{display:block;font:17px/1.3 Georgia,serif;font-weight:400}.preference-group>summary small,.profile-entry small{display:block;font:12px/1.5 system-ui;color:#acbfbc;margin-top:5px}.preference-group[open]>summary{border-bottom:1px solid #61736c55}.preference-body{padding:16px}.preference-body>p{font-size:13px;line-height:1.6;color:#bdccca}.preference-body>button,.preference-body>.file-button{display:block;width:100%;margin:8px 0;text-align:left;min-height:44px}.preference-group>summary:focus-visible,.profile-entry:focus-visible{outline:2px solid #e9ca95;outline-offset:-4px}
#adventurerProfile .profile-character-compact{padding:14px 16px;gap:14px;border-color:#64796b66}.profile-character-compact .profile-character-art{flex:0 0 62px}.profile-character-compact .profile-character-art img{width:62px;height:84px}.profile-character-compact h2{font-size:23px!important;margin:0!important}.profile-character-compact .profile-xp{margin:9px 0}.profile-character-compact small{font-size:11px}.profile-character-compact p{font-size:12px!important}
#adventurerProfile .profile-intro{font-size:13px;color:#aebfbd;margin:22px 0 12px}.profile-menu{display:block}.profile-entry{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;min-height:74px;padding:16px;margin:10px 0;border:1px solid #61736c66;border-radius:12px;background:#142a31;text-align:left;color:#e9ddc7}.profile-entry>span:first-child{min-width:0}.profile-entry>span:last-child{font:24px system-ui;color:#c9b186;flex-shrink:0}#adventurerProfile .preference-body .profile-entry{background:transparent;border:0;border-bottom:1px solid #61736c44;border-radius:0;padding:12px 0;margin:0;display:flex}#adventurerProfile .preference-body .profile-entry:last-child{border-bottom:0}#adventurerProfile .preference-body .world-journey{margin:12px 0 0}#adventurerProfile .profile-heading>.secondary{font-size:12px}
#settings{max-width:760px;margin:auto;padding-bottom:32px}#settings>h1{margin-bottom:8px}#settings>.eyebrow{margin-top:24px}#settings>.muted{margin-bottom:24px;font-size:13px}#settings .preference-body .panel{margin:0;padding:0;border:0;background:transparent}#settings .preference-body h2{font:20px Georgia,serif}#settings .exercise-art-preference h2{display:none}#settings .preference-body select{width:100%;min-height:44px}#settings .preference-body button{white-space:normal}
.personal-dialog{max-height:calc(100dvh - 32px)}.personal-dialog .personal-section>summary{padding:14px 12px;min-height:68px}.personal-dialog .personal-section>summary strong{font-size:17px}.personal-dialog .personal-section>summary small{font-size:11px}.personal-dialog .personal-section-body{padding:14px}.personal-dialog .personal-section-body>h3:first-child{margin-top:0}.personal-dialog .personal-actions{padding-top:12px;flex-wrap:wrap}.personal-dialog .personal-actions button{min-height:44px}.personal-dialog #personalClose{min-width:44px;min-height:44px}
@media(max-width:370px){.preference-group>summary,.profile-entry{padding:14px 12px}.preference-body{padding:12px}.personal-dialog .personal-section-body{padding:10px}.personal-dialog .personal-top h2{font-size:23px}.profile-character-compact .profile-character-art{flex-basis:50px}.profile-character-compact .profile-character-art img{width:50px}.personal-dialog .personal-actions{display:grid;grid-template-columns:1fr}.personal-dialog .personal-actions .personal-primary{grid-row:1}}

#settings>button[data-open=adventurer]{width:auto;border:0;background:transparent;padding:8px 0;text-align:left;min-height:44px}#settings>h1{font:32px/1.15 Georgia,serif;margin-top:16px}#personalSection-nutrition>.personal-section-body>h3:first-child{display:none}

/* Character page: expedition equipment and an honest glimpse of the crew. */
#adventurerProfile .profile-character-compact{position:relative;overflow:hidden;min-height:185px;padding:24px 18px;background:linear-gradient(90deg,#102b2de8,#10242a9c),var(--chapter-art) center 48%/cover;border:1px solid #c2aa6f80;border-radius:18px;box-shadow:inset 0 0 0 5px #d3b87509}
#adventurerProfile .profile-character-art{position:relative;flex-basis:90px;padding-top:16px}#adventurerProfile .profile-character-art img{width:90px;height:130px;filter:drop-shadow(0 8px 5px #0007)}
.profile-level-seal{position:absolute;top:-6px;left:50%;transform:translateX(-50%) rotate(-5deg);white-space:nowrap;border:1px solid #d6bd83;background:#233d36;color:#e5d2a3;border-radius:5px;padding:5px 9px;font:10px Georgia,serif;letter-spacing:1px}
#adventurerProfile .profile-character h2{font-size:28px!important}.profile-card-link{display:block;margin-top:9px;color:#dbc18a;font-size:11px}#adventurerProfile .profile-xp{height:7px;background:#051e2599;border:1px solid #d6bd8333}#adventurerProfile .profile-xp span{background:linear-gradient(90deg,#ab9b65,#e0c791)}
#adventurerProfile .profile-menu>.profile-entry,#adventurerProfile .profile-menu>.preference-group{background:linear-gradient(125deg,#21393b,#122a31);border-color:#9aab8155;box-shadow:0 3px 0 #061a1e}
#adventurerProfile .profile-menu>.profile-entry{display:grid;grid-template-columns:38px minmax(0,1fr) 16px;gap:13px;padding:18px 16px;min-height:92px}
#adventurerProfile .profile-menu>.preference-group>summary{display:grid;grid-template-columns:38px minmax(0,1fr) 16px;gap:13px;min-height:92px}
.profile-emblem{display:grid!important;place-items:center;width:36px;height:42px;border:1px solid #c8b47d55;border-radius:10px 10px 16px 16px;color:#dbc28b;background:#b7a5740c}.profile-emblem svg{width:23px;height:23px}.profile-entry-label{min-width:0}.profile-entry-label strong{color:#eddfbc}.profile-entry-label small{overflow-wrap:anywhere}
#adventurerProfile .preference-body .profile-emblem{display:none!important}#adventurerProfile .preference-body .profile-entry-label{flex:1}
.profile-crew{margin:18px 0 24px;border:1px solid #c5ae745f;border-radius:16px;overflow:hidden;background:#10282e;box-shadow:0 4px 0 #061a1e}
.profile-crew-banner{position:relative;display:flex;flex-direction:column;align-items:flex-start;width:100%;min-height:130px;text-align:left;padding:20px;border:0;border-radius:0;background:linear-gradient(90deg,#0d282dee,#0d282d77),var(--route-art) center 52%/cover;color:#eedebc;cursor:pointer}.profile-crew-banner>.eyebrow{font-size:9px!important;letter-spacing:2px}.profile-crew-banner>strong{font:29px Georgia,serif;margin:9px 0}.profile-crew-banner>span:last-child{display:flex;justify-content:space-between;align-items:center;width:100%;font:12px system-ui;color:#d4ddcc}.profile-crew-banner>span:last-child>span{font-size:26px;color:#e7ce94}.profile-crew-preview{padding:0 14px}.profile-crew-preview>p{font-size:12px!important;color:#aebfb7;line-height:1.6!important;margin:13px 0}.profile-crew-strip{display:flex;gap:9px;list-style:none;overflow-x:auto;scroll-snap-type:x mandatory;padding:2px 2px 14px;margin:0;scrollbar-width:thin;scrollbar-color:#9c9866 transparent;overscroll-behavior-x:contain}.profile-crew-strip li{flex:0 0 155px;min-width:0;scroll-snap-align:start;padding:13px 12px;border:1px solid #a4ac7855;border-radius:10px;background:linear-gradient(135deg,#2a403d,#172f33)}.profile-crew-strip .is-self{border-color:#d7bd80}.profile-crew-strip strong{display:block;font:16px Georgia,serif;overflow-wrap:anywhere;color:#efdfb9;margin:9px 0}.crew-rank{font:9px system-ui;letter-spacing:1.4px;color:#c7b47e}.profile-crew-strip small{font-size:11px;color:#b8c9bb}
.profile-crew :focus-visible{outline:2px solid #efd298;outline-offset:-3px}#adventurerProfile .profile-menu>.profile-entry:active,.profile-crew-banner:active{transform:translateY(2px)}
@media(hover:hover){#adventurerProfile .profile-menu>.profile-entry:hover,#adventurerProfile .profile-menu>.preference-group:hover{border-color:#c7b078}.profile-crew-banner:hover{filter:brightness(1.1)}}
@media(max-width:370px){#adventurerProfile .profile-character-art{flex-basis:63px}#adventurerProfile .profile-character-art img{width:63px;height:110px}#adventurerProfile .profile-character h2{font-size:23px!important}#adventurerProfile .profile-menu>.profile-entry,#adventurerProfile .profile-menu>.preference-group>summary{padding:14px 12px;gap:9px;grid-template-columns:32px minmax(0,1fr) 14px}.profile-emblem{width:31px}.profile-crew-strip li{flex-basis:145px}}
@media(prefers-reduced-motion:reduce){#adventurerProfile button:active{transform:none!important}}

/* Compact expedition menus: visible destinations and one editing area at a time. */
.profile-category{margin:20px 0;border:1px solid #a7996855;border-radius:16px;background:linear-gradient(135deg,#213936,#11272e);overflow:hidden}
.profile-category>summary{display:flex;align-items:center;gap:12px;padding:14px 16px;background:linear-gradient(100deg,#bb9f6812,transparent);border-bottom:1px solid #b9a77433}
#adventurerProfile .profile-category h2{font:21px/1.2 Georgia,serif;color:#e9dbb8;margin:0}
#adventurerProfile .profile-category summary p{font:11px/1.5 system-ui;color:#b5c5ba;margin:5px 0 0}
.profile-category .preference-body{padding:0 14px}
#adventurerProfile .profile-category .profile-entry{min-height:64px;gap:10px;padding:12px 2px}
#adventurerProfile .profile-category .profile-entry strong{font:14px/1.4 system-ui;font-weight:600;color:#e5dfc9}
#adventurerProfile .profile-category .profile-entry small{font-size:11px;margin-top:3px;color:#aebfba}
#adventurerProfile .profile-menu>.profile-entry{min-height:76px;padding:13px 16px}
#personalDialog{padding:0!important;width:min(720px,calc(100% - 20px));border-color:#beaa7777;background:linear-gradient(135deg,#203630,#10252d 45%);box-shadow:0 18px 70px #0009}
#personalDialog form{padding:18px}
#personalDialog .personal-top{padding:12px 12px 18px;margin:-18px -18px 0;background:linear-gradient(90deg,#112c2ce8,#10242abd),var(--route-art) center/cover;border-bottom:1px solid #baa37444}
#personalDialog .personal-top h2{font:26px Georgia,serif;color:#eadab5}
#personalDialog .personal-top+p{font:12px/1.5 system-ui;margin:12px 0;color:#b4c5bc}
.personal-navigation{display:flex;flex-wrap:wrap;gap:6px;padding:6px 0 12px}
#personalDialog .personal-navigation button{flex:1 0 auto;min-height:44px;padding:9px 11px;font:12px system-ui;background:#0c2229;border-color:#8e99764d;color:#baccc0;border-radius:9px}
#personalDialog .personal-navigation button[aria-pressed=true]{background:#d2bc86;color:#142b2c;border-color:#ead7a7;box-shadow:0 2px 0 #776847;font-weight:650}
#personalDialog .personal-section:not([open]){display:none}
#personalDialog .personal-section{margin:0;border-radius:12px;background:#0e252bbb;border-color:#a7ac7555}
#personalDialog .personal-section>summary{pointer-events:none;min-height:0;padding:13px 14px;list-style:none}
#personalDialog .personal-section>summary::after{display:none}
#personalDialog .personal-section>summary small{font-size:11px}
#personalDialog .personal-section-body{padding:12px 14px}
#personalDialog label{font-size:12px;line-height:1.45;margin:9px 0;gap:5px}
#personalDialog input,#personalDialog select{min-height:44px;padding:9px;width:100%;box-sizing:border-box;background:#1b3439;border-color:#71877680}
#personalDialog .personal-check input{width:20px;min-height:20px;margin:0}
#personalDialog .personal-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 10px}
#personalDialog .personal-hint,#personalDialog p{font-size:11px;line-height:1.55}
#personalDialog .personal-actions{position:sticky;bottom:-18px;z-index:2;margin:14px -18px -18px;padding:12px 18px max(12px,env(safe-area-inset-bottom));background:#10272af5;border-top:1px solid #bea57455;box-shadow:0 -8px 18px #10272a99}
#personalDialog .personal-actions button{font-size:12px;min-height:44px}
#personalDialog .personal-primary{background:#d1bc87;border-color:#e3ce9c}
#personalDialog .phase-target-preview{padding:11px;margin:10px 0;font-size:12px}
#personalDialog .phase-target-preview ul{margin:6px 0}#personalDialog .phase-target-preview li{padding:6px 0}
#personalDialog .nutrition-adjustments{padding:10px;margin:10px 0}
#personalDialog :focus-visible{outline:2px solid #e9cb8c;outline-offset:2px}
@media(max-width:370px){#personalDialog form{padding:12px}#personalDialog .personal-top{margin:-12px -12px 0}#personalDialog .personal-actions{bottom:-12px;margin:12px -12px -12px;padding:10px 12px;display:flex}#personalDialog .personal-section-body{padding:10px}#personalDialog .personal-grid{gap:0 8px}#personalDialog .personal-navigation button{padding:8px;font-size:11px}}
@media(hover:hover){.profile-category .profile-entry:hover{background:#d5bc7910!important}.personal-navigation button:hover{filter:brightness(1.1)}}
#settings .preference-group{background:linear-gradient(125deg,#213936,#122a31);border-color:#a7996855;border-radius:14px}
#settings .preference-group>summary{min-height:64px;padding:13px 14px}#settings .preference-body{padding:12px 14px}
.route-settings .plan-goal-options{padding:14px;border:1px solid #b39d6766;border-radius:14px;background:linear-gradient(125deg,#263b35,#132b32);margin:12px 0}
.route-settings .plan-goal-options h3{font:20px Georgia,serif;color:#ead9b1;margin:0 0 12px}
.route-settings .plan-goal-options p{font-size:12px;line-height:1.55;color:#b6c7be}
.route-settings .route-settings-unit{padding:12px;margin:8px 0;border:1px solid #8f9b7055;border-radius:12px;background:#193237}
.route-settings .route-settings-unit label{margin:0;font-size:12px}
.route-settings .catalog-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.route-settings .catalog-filters input{width:100%;min-width:0;box-sizing:border-box}

.profile-category>summary{cursor:pointer;list-style:none;min-height:76px}.profile-category>summary::-webkit-details-marker{display:none}.profile-category>summary>div{flex:1;min-width:0}.profile-category>summary::after{content:"+";font:24px system-ui;color:#d4bd85}.profile-category[open]>summary::after{content:"−"}.profile-category:not([open])>summary{border-bottom:0}.profile-category>summary:focus-visible{outline:2px solid #e9cb8c;outline-offset:-4px}

/* One shared rhythm for links and expandable profile cards. */
#adventurerProfile .profile-menu{display:grid;gap:10px}
#adventurerProfile .profile-menu>.profile-entry,#adventurerProfile .profile-menu>.profile-category{margin:0;border-radius:14px}
#adventurerProfile .profile-menu>.profile-entry,#adventurerProfile .profile-category>summary{display:grid;grid-template-columns:36px minmax(0,1fr) 16px;align-items:center;gap:13px;min-height:76px;box-sizing:border-box;padding:13px 16px}
#adventurerProfile .profile-menu>.profile-entry strong,#adventurerProfile .profile-category>summary h2{font:19px/1.3 Georgia,serif;font-weight:400;margin:0;color:#eddfbc}
#adventurerProfile .profile-menu>.profile-entry small,#adventurerProfile .profile-category>summary p{font:12px/1.5 system-ui;margin:5px 0 0;color:#acbfbc}
#adventurerProfile .profile-category>summary::after{text-align:center}
@media(max-width:370px){#adventurerProfile .profile-menu>.profile-entry,#adventurerProfile .profile-category>summary{grid-template-columns:31px minmax(0,1fr) 16px;gap:9px;padding:13px 12px}}
#adventurerProfile .profile-category>summary{min-height:74px}
