/* Physical location and full-body character cards. */
.ship-presence{display:flex;align-items:center;justify-content:space-between;gap:16px;position:relative;min-width:0;padding:13px 18px;margin:0 0 22px;border:1px solid #c1c9c5;border-left:4px solid #557c7b;border-radius:4px;background:#e9eee8;color:#24485a}
.ship-presence.is-underway{background:#e8eef3;border-color:#bfccd6;border-left-color:#32637c}
.presence-heading{display:flex;align-items:center;gap:12px;min-width:0}
.presence-heading>.icon{width:32px;height:32px;flex:none}
.presence-heading>div{display:flex;align-items:baseline;flex-wrap:wrap;column-gap:12px;row-gap:3px;min-width:0}
.presence-heading span{font-size:11px;font-weight:600;letter-spacing:.08em;color:#486c72;white-space:nowrap}
.presence-heading strong{font-size:18px;line-height:1.5;overflow-wrap:anywhere}
.presence-heading small{flex-basis:100%;color:#617482;font-size:11px;line-height:1.7}
.presence-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px 14px;min-width:0;max-width:48%}
.presence-actions>small{font-size:10px;color:#5c7181;line-height:1.7;overflow-wrap:anywhere}
.presence-actions .btn{flex:none;background:#fbfcf8}
.presence-remaining{font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}
.presence-remaining b{display:inline-block;min-width:3ch;text-align:right}
.ship-presence>.bar{position:absolute;left:0;bottom:0;width:100%;height:3px;margin:0;border-radius:0}
.harbor-unavailable{display:grid;grid-template-columns:minmax(230px,1.05fr) minmax(0,1fr);overflow:hidden;align-items:stretch}
.underway-scene{position:relative;min-height:270px;display:grid;place-items:center;background:#143d59;overflow:hidden}
.underway-scene>.ocean-backdrop{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.underway-scene>.ship-drawing{position:relative;width:85%;max-width:420px;height:240px}
.harbor-unavailable-body{padding:clamp(22px,3.5vw,48px);display:flex;flex-direction:column;justify-content:center;min-width:0}
.harbor-unavailable-body h2{font-size:25px;color:#24485b;margin-bottom:13px}
.harbor-unavailable-body p{font-size:13px;line-height:1.9;color:#63727b;margin:0 0 22px;overflow-wrap:anywhere}
.harbor-unavailable-body .inline-actions{gap:10px;flex-wrap:wrap}
.tavern-candidates{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.tavern-candidates>.recruit-card{display:grid;grid-template-columns:minmax(110px,.8fr) minmax(0,1.2fr);gap:18px;padding:20px;background:#fbf8f0;align-items:stretch;min-width:0}
.recruit-fullbody{align-self:start;display:flex;align-items:center;justify-content:center;min-width:0;background:radial-gradient(ellipse at 50% 78%,#dad6c554,transparent 65%);border-right:1px solid #ded5c4;padding-right:12px}
.recruit-fullbody>.crew-portrait-frame{display:block;width:100%;height:auto;min-height:0;max-height:none;background:transparent;border:0;border-radius:0;overflow:visible}
.recruit-fullbody .fullbody-portrait{display:block;width:100%;height:auto;max-height:none;object-fit:contain;object-position:center bottom}
.recruit-profile{display:flex;flex-direction:column;min-width:0;padding-block:2px}
.recruit-identity h3{font-family:var(--display);font-size:clamp(21px,2vw,28px);font-weight:500;line-height:1.45;color:#23475b;margin:7px 0 3px;overflow-wrap:anywhere}
.recruit-identity p{font-size:12px;color:#48697a;margin:0 0 4px;line-height:1.7}
.recruit-identity>small{font-size:10px;color:#718088;line-height:1.7}
.recruit-profile .recruit-aptitude{display:flex;flex-direction:column;align-items:flex-start;gap:4px;line-height:1.65;font-size:11px;margin:14px 0 0}
.recruit-profile .recruit-skill{min-height:0;font-size:12px;line-height:1.8;margin:12px 0;overflow-wrap:anywhere}
.recruit-profile .trait-line{display:flex;align-items:flex-start;flex-direction:column;gap:7px;font-size:11px;line-height:1.8;overflow-wrap:anywhere}
.recruit-profile .trait-line b{max-width:100%;white-space:normal}
.recruit-profile .recruit-fee{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin-top:auto;padding-top:15px}
.recruit-profile .recruit-fee small{font-size:11px}
.recruit-profile .recruit-fee .btn{white-space:normal;line-height:1.6;width:100%}
.crew-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.crew-grid>.crew-card.fullbody-crew-card,.crew-grid>.crew-card.fullbody-crew-card:only-child{display:grid;grid-template-columns:minmax(115px,.68fr) minmax(0,1.32fr);gap:0;align-items:start;overflow:visible;min-width:0;background:#fbf8f0}
.fullbody-crew-card>.crew-fullbody{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;gap:12px;min-width:0;padding:20px 8px 16px;background:radial-gradient(ellipse at 50% 55%,#ded8c466,transparent 70%)}
.crew-fullbody>.crew-portrait-frame{width:100%;height:360px;max-height:none;overflow:visible;background:transparent;border:0;border-radius:0}
.fullbody-crew-card .crew-fullbody .crew-avatar-painted{display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom;background:transparent;margin:0;max-width:none;max-height:none}
.crew-posting{font-size:11px;color:#4d6b71;border:1px solid #c8c9b9;border-radius:3px;padding:4px 9px;text-align:center;line-height:1.7;max-width:100%;overflow-wrap:anywhere;background:#f7f5eb}
.crew-profile{min-width:0;border-left:1px solid #dcd2c0}
.crew-profile>.crew-main{padding:18px 17px 15px;display:block;background:transparent}
.crew-profile>.crew-main>div{width:100%}
.crew-profile h3{font-size:24px;line-height:1.5;margin:5px 0;overflow-wrap:anywhere}
.crew-profile .role,.crew-profile .crew-talent-line{line-height:1.8;overflow-wrap:anywhere}
.crew-profile>.crew-trait{padding:13px 17px;display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.crew-profile .crew-trait small{line-height:1.8;display:block;margin-top:5px}
.crew-profile>.crew-training{padding:13px 17px;flex-wrap:wrap;align-items:flex-start}
.crew-profile>.crew-training small{line-height:1.8;overflow-wrap:anywhere}
.crew-profile>.crew-learning{padding:13px 17px}
.crew-profile .crew-learning-next{line-height:1.85}
.crew-profile .crew-skill-choices{grid-template-columns:minmax(0,1fr)}
.crew-profile .crew-ability{flex-wrap:wrap}
.crew-profile .crew-ability>span{min-width:0;flex-basis:100%}
.crew-profile>.crew-development,.crew-profile>.crew-mastery{min-width:0}
.crew-profile summary{overflow-wrap:anywhere}
.crew-portrait-frame .crew-avatar-painted,.career-portrait{object-fit:contain;object-position:center bottom;background:transparent}
.crew-portrait-frame{background:transparent}
.career-officer>.career-portrait{width:58px;height:116px}
.career-candidate>.career-portrait{width:36px;height:72px}
.crew-profile .crew-learning-head{flex-wrap:wrap;gap:6px}
.port-preview-label{display:inline-block;border:1px solid #c4cfda;background:#eff3f6;padding:4px 8px;margin:0 0 12px;color:#526e81;font-size:11px;line-height:1.7}
@media(min-width:1200px){.crew-grid:has(>.crew-card:only-child){max-width:950px}.crew-grid>.crew-card.fullbody-crew-card:only-child{grid-template-columns:250px minmax(0,1fr)}.fullbody-crew-card:only-child .crew-fullbody>.crew-portrait-frame{height:480px}}
@media(max-width:1180px){.tavern-candidates,.crew-grid{grid-template-columns:minmax(0,1fr)}.tavern-candidates>.recruit-card{grid-template-columns:minmax(130px,.55fr) minmax(0,1.45fr)}.crew-grid>.crew-card.fullbody-crew-card{grid-template-columns:190px minmax(0,1fr)}}
@media(max-width:650px){.ship-presence{padding:12px;margin-bottom:18px;gap:10px;align-items:flex-start;flex-direction:column}.presence-heading{gap:9px}.presence-heading>.icon{width:26px;height:26px}.presence-heading strong{font-size:17px}.presence-heading>div{column-gap:8px}.presence-actions{max-width:none;width:100%;justify-content:space-between;gap:6px}.presence-actions>small{flex:1;font-size:10px}.presence-actions .btn{font-size:11px;min-height:36px}.presence-heading small{font-size:11px}.harbor-unavailable{grid-template-columns:minmax(0,1fr)}.underway-scene{min-height:190px}.underway-scene>.ship-drawing{height:185px}.harbor-unavailable-body{padding:22px 18px}.harbor-unavailable-body h2{font-size:22px}.tavern-scene{min-height:165px}.tavern-scene small{display:block;line-height:1.9;font-size:11px}.tavern-candidates>.recruit-card{grid-template-columns:110px minmax(0,1fr);padding:15px 12px;gap:12px}.recruit-fullbody{padding-right:8px}.recruit-profile .recruit-aptitude{font-size:10px}.recruit-identity h3{font-size:22px}.recruit-profile .recruit-fee .btn{font-size:11px;padding:8px}.crew-grid>.crew-card.fullbody-crew-card,.crew-grid>.crew-card.fullbody-crew-card:only-child{grid-template-columns:110px minmax(0,1fr)}.fullbody-crew-card>.crew-fullbody{padding:15px 4px}.crew-fullbody>.crew-portrait-frame{height:auto}.fullbody-crew-card .crew-fullbody .crew-avatar-painted{height:auto}.crew-profile>.crew-main,.crew-profile>.crew-trait,.crew-profile>.crew-training,.crew-profile>.crew-learning{padding:13px 12px}.crew-profile h3{font-size:21px}.crew-profile .role{font-size:12px}.crew-profile .crew-training small{font-size:11px}.crew-profile .btn{white-space:normal;line-height:1.6}.crew-profile .progress-info{flex-wrap:wrap;gap:3px}.crew-posting{font-size:10px;padding:4px 6px}.crew-profile .crew-learning-head{display:grid;grid-template-columns:minmax(0,1fr)}.crew-profile .crew-ability{display:grid;grid-template-columns:minmax(0,1fr)}.crew-profile .crew-ability .btn{justify-self:start}}
@media(max-width:370px){.tavern-candidates>.recruit-card{grid-template-columns:89px minmax(0,1fr);gap:10px;padding:13px 10px}.recruit-identity h3{font-size:20px}.crew-grid>.crew-card.fullbody-crew-card,.crew-grid>.crew-card.fullbody-crew-card:only-child{grid-template-columns:90px minmax(0,1fr)}.crew-profile>.crew-main,.crew-profile>.crew-trait,.crew-profile>.crew-training,.crew-profile>.crew-learning{padding:12px 10px}.crew-profile h3{font-size:19px}.presence-heading strong{font-size:16px}}
