/* A single, measured party layout: identical text baselines in all four slots. */
#app.party-sheet-open #modal-root{bottom:var(--chat-strip,34px)}
#app.party-sheet-open .modal-shade{inset:0;padding:0}
#app .modal.party-modal{bottom:0;min-height:400px;max-height:calc(100% - 58px);border-radius:22px 22px 0 0;border-bottom:0;padding:11px 12px 10px;gap:7px;box-shadow:0 -4px 18px #17382b20,inset 0 3px 0 #fffaf2}
.party-sheet-head{grid-template-columns:34px minmax(0,1fr) 34px;gap:10px;position:relative;z-index:4;min-height:34px}
.party-invite-anchor{position:relative;width:34px;height:34px;z-index:2}
.party-sheet-head .icon-button{display:grid;place-items:center;width:34px;height:34px;min-height:34px;padding:7px;line-height:1;border-radius:8px;box-sizing:border-box}
.party-sheet-head .icon-button>svg{width:20px;height:20px;display:block;margin:0}
.party-sheet-head>[data-close]>svg{width:19px;height:19px}
.party-sheet-title{display:grid;grid-template-columns:minmax(10px,1fr) auto minmax(10px,1fr);align-items:center;gap:10px;min-height:34px}
.party-sheet-title:before,.party-sheet-title:after,.party-sheet-title h2:before,.party-sheet-title h2:after{content:none}
.party-sheet-title h2{font-size:25px;line-height:30px;margin:0;text-align:center}
.party-title-rule{display:block;position:relative;height:1px;background:linear-gradient(90deg,#c7b38b99,#bca477);min-width:0}
.party-title-rule:before{content:'';position:absolute;top:-1px;left:0;width:3px;height:3px;border-radius:50%;background:#c7b58b}
.party-title-rule>i{position:absolute;top:50%;right:-1px;width:5px;height:5px;border:1px solid #bda46d;background:#fcf7e8;transform:translateY(-50%) rotate(45deg)}
.party-title-rule.rule-end{transform:scaleX(-1)}
.party-sheet-subtitle{font-size:8px;line-height:11px;letter-spacing:1.8px;margin:-3px 44px 0;text-align:center}
.party-invite-anchor>.party-sheet-code{top:calc(100% + 7px);left:0;width:202px;max-width:calc(100vw - 26px);padding:10px;border-radius:10px;box-shadow:0 5px 14px #3e493d24}
.party-invite-anchor>.party-sheet-code:before{left:12px;top:-6px;width:10px;height:10px}
.party-sheet-code>small{font-size:10px;line-height:14px}
.party-sheet-code>strong{font-size:25px;line-height:31px;margin:1px 0 4px}
.party-sheet-code>.secondary{min-height:29px;font-size:11px;line-height:15px;padding:5px}
.party-modal #party-online-content{gap:7px;scrollbar-gutter:auto}
.party-modal .party-same-place{min-height:26px;font-size:10px;line-height:14px;padding:5px 7px}
.party-modal .party-grid{grid-template-rows:repeat(2,minmax(128px,1fr));min-height:264px;gap:8px;flex:1 0 264px}
.party-modal .party-card{min-height:128px;padding:10px;box-sizing:border-box}
.party-modal .party-card-member{display:grid;grid-template-columns:54px minmax(0,1fr);grid-template-rows:34px 36px 16px;align-content:center;gap:5px 8px;padding:10px;min-width:0}
.party-modal .party-card-art{grid-column:1;grid-row:1/3;width:54px;height:72px;align-self:center;margin:0;padding:0}
.party-modal .party-card-portrait{width:54px;height:72px;border-radius:7px;object-fit:cover;object-position:center 15%;box-shadow:0 0 0 2px #fffbf1,0 0 0 3px #d5c69e}
.party-modal .party-card-copy{grid-column:2;grid-row:1;min-width:0;gap:3px;justify-content:center;align-self:stretch;padding:0 9px 0 0;overflow:hidden}
.party-modal .party-card-name{font-size:15px;line-height:18px;width:100%;max-width:100%;margin:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.party-modal .party-card-class{font-size:9px;line-height:12px;white-space:nowrap;color:#918369}
.party-modal .party-card-vitals{grid-column:2;grid-row:2;width:100%;align-self:center;gap:4px}
.party-modal .party-card-vital{height:16px;gap:4px;min-width:0}
.party-modal .party-card-health-icon,.party-modal .party-card-vital-icon{width:12px;height:13px;flex:0 0 12px;font-size:14px;line-height:13px}
.party-modal .party-card-meter{height:15px;border-radius:4px;background:#e2e3cc;min-width:0}
.party-modal .party-card-meter-value{font-size:10px;line-height:15px;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:0;color:#315a50;white-space:nowrap;text-align:center}
.party-modal .party-card-foot{grid-column:1/-1;grid-row:3;align-self:center;height:16px;font-size:8px;line-height:13px;min-width:0}
.party-modal .party-card-status{font-size:8px;line-height:13px;white-space:nowrap}
.party-modal .party-card-place{font-size:8px;line-height:13px;max-width:52%}
.party-modal .party-card-kick{top:5px;right:5px;width:19px;height:19px;min-height:19px;line-height:17px;font-size:15px;border-radius:5px;background:#f4eedf;color:#a8987c;opacity:.85;z-index:2}
.party-modal .party-card-effect{font-size:8px;line-height:12px;bottom:0;max-width:100%;padding:1px 3px}
.party-modal .party-card-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:10px;min-height:128px}
.party-modal .party-card-empty-art{flex:0 0 29px;width:33px;height:29px;min-height:29px;margin:0;opacity:.2}
.party-modal .party-card-empty>strong{font-size:16px;line-height:19px;margin:0}
.party-modal .party-card-empty>small{font-size:10px;line-height:13px;margin:0}
.party-modal .party-slot-add{flex:0 0 27px;width:27px;height:27px;min-height:27px;max-height:27px;line-height:23px;font-size:25px;margin:1px 0 0;padding:0;box-sizing:border-box;align-self:center}
.party-modal .party-leave{min-height:35px;padding:7px 10px;font-size:13px;line-height:19px;background:linear-gradient(145deg,#986a76,#805460);border-color:#8b616e;box-shadow:inset 0 0 0 2px #e5bdad35;color:#fff5e8;flex:none}
.party-modal .party-tools{font-size:10px;line-height:15px}
.party-modal .party-tools>summary{padding:3px 6px}
.party-modal #party-online-footer>button{min-height:28px;font-size:10px;line-height:14px;padding:5px 7px}
/* Lightly ornamented online line with one blinking lime jewel. */
.shore-online-track{height:1px;background:linear-gradient(90deg,#bfae80aa,#a8b474,#bfae80aa)}
.shore-online-track:before,.shore-online-track:after{content:'';position:absolute;top:50%;width:3px;height:3px;box-sizing:border-box;border:1px solid #bcac80;border-radius:50%;background:#f8efdb;transform:translateY(-50%)}
.shore-online-track:before{left:0}
.shore-online-track:after{right:0}
.shore-online-track>i{left:50%;top:50%;width:8px;height:8px;transform:translate(-50%,-50%) rotate(45deg);border:1px solid #8d9f3b;background:linear-gradient(135deg,#e2ecad 0%,#c6db70 48%,#b7cc5c 49%,#d4e590 100%);box-shadow:0 0 0 2px #faf0dd;animation:shore-online-jewel 1.8s ease-in-out infinite;will-change:opacity}
.shore-online-track>i:after{content:'';position:absolute;inset:2px;background:#f0f7cb;border-radius:1px}
@keyframes shore-online-jewel{0%,100%{opacity:.42}45%,60%{opacity:1}}
.shore-online-line:disabled .shore-online-track>i{animation:none;opacity:.45;background:#b5b290;box-shadow:0 0 0 2px #faf0dd}
.shore-online-line:disabled .shore-online-track>i:after{background:#d9d6b9}
/* The location surface joins the navigation with a straight bottom edge. */
#world .destination{bottom:0;border-radius:22px 22px 0 0;border-bottom:0;clip-path:inset(0 round 22px 22px 0 0)}
#world .destination>.location-inline-panel{border-radius:22px 22px 0 0;clip-path:inset(0 round 22px 22px 0 0);border-bottom:0}
/* Square, centered forge frame and two readable service cards. */
#world .choice-forge .world-choice-scene:before,#world .choice-workshop .world-choice-scene:before{inset:auto;left:50%;top:50%;width:auto;height:min(72px,84%);max-width:none;max-height:none;aspect-ratio:1;border:1px solid #c8bfa04d;border-radius:8px;transform:translate(-50%,-50%);background:#faf7e324}
.world-forge{gap:12px;padding:2px 0;overflow:auto;scrollbar-width:none}
.world-forge::-webkit-scrollbar{display:none}
.world-forge-master{gap:12px;padding-bottom:11px;align-items:center}
.world-forge-master>img{width:52px;height:52px;flex:0 0 52px;aspect-ratio:1;object-fit:contain;object-position:center;padding:9px;box-sizing:border-box;border-radius:9px;box-shadow:inset 0 0 0 2px #fffbf0}
.world-forge-master>div{gap:5px;min-width:0}
.world-forge-master small{font-size:8px;line-height:12px;letter-spacing:1px}
.world-forge-master strong{font-size:21px;line-height:24px}
.world-forge-master p{font-size:11px;line-height:16px;margin:0}
.world-forge-services{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:10px;min-height:142px;flex:1}
.world-forge-services>button{display:flex;align-items:center;justify-content:center;gap:11px;min-width:0;min-height:142px;padding:14px 10px;border:1px solid #cfd2b7;border-radius:11px;background:linear-gradient(145deg,#fcfaf0,#eef0df);box-shadow:inset 0 0 0 3px #fffcf280;text-align:center}
.world-forge-services>button>.world-forge-service-art{display:grid;place-items:center;width:55px;height:55px;min-height:55px;flex:0 0 55px;padding:8px;box-sizing:border-box;border:1px solid #d9cdb0;border-radius:10px;background:#faf6e8;box-shadow:inset 0 0 0 2px #fffaf1}
.world-forge-service-art>img{display:block;width:37px;height:37px;object-fit:contain}
.world-forge-services>button>.world-forge-service-copy{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;width:100%}
.world-forge-services strong{font:700 17px/21px Interface,sans-serif;color:#365f50;text-wrap:balance}
.world-forge-services small{font-size:10px;line-height:15px;color:#8d967b;max-width:150px}
.world-forge-services>button>.icon{right:9px;top:10px;font-size:12px;opacity:.7}
@media(max-width:350px){.party-sheet-head{gap:7px}.party-sheet-title{gap:7px}.party-sheet-title h2{font-size:23px}.party-modal .party-card-member{grid-template-columns:45px minmax(0,1fr);gap:5px 6px;padding:9px}.party-modal .party-card-art,.party-modal .party-card-portrait{width:45px;height:70px}.party-modal .party-card-name{font-size:13px;line-height:17px}.party-modal .party-card-class{font-size:8px;line-height:11px}.party-modal .party-card-meter-value{font-size:9px}.party-modal .party-card-vital{gap:3px}.party-modal .party-card-health-icon,.party-modal .party-card-vital-icon{width:10px;flex-basis:10px}.party-modal .party-card-foot,.party-modal .party-card-status,.party-modal .party-card-place{font-size:7px}.world-forge-master strong{font-size:19px}.world-forge-services{gap:8px}.world-forge-services>button{padding:12px 8px}.world-forge-services strong{font-size:16px;line-height:20px}}
@media(max-height:620px){#app .modal.party-modal{min-height:0;height:calc(100% - 72px);max-height:calc(100% - 58px)}}
/* Readiness lives separately from the combat turn's submitted action. */
.party-modal .party-card-copy{text-align:left}
.party-modal .party-card-class{margin:0}
.party-modal .party-card-foot{flex-wrap:nowrap}
.party-modal .party-card-status.readiness-ready{color:#648653}
.party-modal .party-card-status.readiness-not-ready{color:#ac7373}
.party-modal .party-card-status.readiness-waiting{color:#a99565}
.party-modal .party-card-status.readiness-ready:before{background:#86ab63;box-shadow:0 0 0 1px #b8cc9755}
.party-modal .party-card-status.readiness-not-ready:before{background:#ba8380;box-shadow:none}
.party-modal .party-card-status.readiness-waiting:before{background:#c6b574;box-shadow:none}
.party-modal .party-card-own-foot{justify-content:flex-start}
.party-modal .party-auto-ready{display:flex;align-items:center;justify-content:space-between;gap:5px;width:100%;min-width:0;min-height:20px;height:20px;padding:0;border:0;box-shadow:none;background:none;font:inherit;font-size:9px;line-height:14px;font-weight:500;color:#748570;text-align:left}
.party-modal .party-auto-ready>span{font-size:9px;line-height:14px;white-space:nowrap}
.party-auto-ready>i{display:block;position:relative;flex:0 0 25px;width:25px;height:14px;border:1px solid #bfc5ac;border-radius:8px;background:#e5e7d9;transition:background .18s ease,border-color .18s ease}
.party-auto-ready>i:before{content:'';position:absolute;left:2px;top:2px;width:8px;height:8px;border-radius:50%;background:#fffbed;box-shadow:0 1px 2px #445d4924;transition:transform .18s ease}
.party-auto-ready[aria-checked=true]>i{border-color:#7e9e6c;background:#9db784}
.party-auto-ready[aria-checked=true]>i:before{transform:translateX(11px)}
#party-ready-root{position:absolute;inset:0;z-index:55;display:grid;place-items:center;overflow:hidden;padding:26px 24px;background:#faf7edcc;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);animation:party-ready-in .35s ease-out both;isolation:isolate}
#party-ready-root.closing{animation:party-ready-out .22s ease-in both;pointer-events:auto}
.party-ready-prompt{display:flex;flex-direction:column;align-items:center;width:100%;max-width:340px;text-align:center;animation:party-ready-lift .4s cubic-bezier(.18,.72,.28,1) both}
.closing>.party-ready-prompt{animation:party-ready-lower .22s ease-in both}
.party-ready-emblem{position:relative;display:grid;place-items:center;width:122px;height:122px;margin-bottom:19px;background:radial-gradient(ellipse,#cfd9b140,transparent 70%)}
.party-ready-emblem:before,.party-ready-emblem:after{content:'';position:absolute;top:50%;width:28px;height:1px;background:linear-gradient(90deg,transparent,#bcae7d88)}
.party-ready-emblem:before{right:100%}.party-ready-emblem:after{left:100%;transform:scaleX(-1)}
.party-ready-emblem>img{display:block;width:108px;height:108px;object-fit:contain;filter:drop-shadow(0 3px 4px #6a795617)}
.party-ready-eyebrow{font-size:9px;line-height:14px;letter-spacing:2px;color:#a2936b;margin-bottom:12px}
.party-ready-prompt>h2{font:700 33px/1.15 Interface,sans-serif;margin:0;color:#376a5a;background:linear-gradient(110deg,#315c50 18%,#60806a 40%,#939c69 50%,#60806a 60%,#315c50 82%);background-size:230% 100%;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;animation:party-ready-sheen 5s ease-in-out infinite}
.party-ready-prompt>p{margin:15px 0 0;max-width:280px;font-size:13px;line-height:20px;color:#8d8b74;text-wrap:balance}
.party-ready-ornament{position:relative;width:110px;height:1px;margin:22px 0 14px;background:linear-gradient(90deg,transparent,#b4ac83,transparent)}
.party-ready-ornament>i{position:absolute;left:50%;top:50%;width:6px;height:6px;transform:translate(-50%,-50%) rotate(45deg);border:1px solid #b5ac7c;background:#f8f4e9;box-shadow:0 0 0 4px #faf7ed}
.party-ready-progress{font-size:10px;line-height:15px;color:#8d947c;font-variant-numeric:tabular-nums}
.party-ready-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;width:100%;margin-top:24px}
.party-ready-actions>button{display:flex;align-items:center;justify-content:center;gap:11px;min-height:48px;padding:12px 15px;border:1px solid;border-radius:10px;box-shadow:inset 0 0 0 2px #fff5db33,0 3px 8px #49603d0a;font:700 18px/22px Interface,sans-serif;transition:transform .16s ease,filter .16s ease}
.party-ready-actions>button>span{font:20px/22px Interface,sans-serif;opacity:.8}
.party-ready-actions>button:active{transform:translateY(1px)}
.party-ready-actions>.party-ready-yes{color:#fff8e7;border-color:#547c65;background:linear-gradient(145deg,#6f9474,#527962)}
.party-ready-actions>.party-ready-no{color:#8c6270;border-color:#c4a4aa;background:linear-gradient(145deg,#f4e8e4,#e9d9d8)}
.party-ready-actions>button:disabled{opacity:.55}
@keyframes party-ready-in{from{opacity:0}to{opacity:1}}
@keyframes party-ready-out{to{opacity:0}}
@keyframes party-ready-lift{from{opacity:0;transform:translate3d(0,14px,0) scale(.98)}to{opacity:1;transform:translate3d(0,0,0) scale(1)}}
@keyframes party-ready-lower{to{transform:translate3d(0,8px,0) scale(.99)}}
@keyframes party-ready-sheen{0%,100%{background-position:100% 50%}50%{background-position:0 50%}}
@media(max-width:350px){.party-modal .party-auto-ready>span{font-size:8px}.party-modal .party-auto-ready{gap:3px}.party-auto-ready>i{flex-basis:23px;width:23px}.party-auto-ready[aria-checked=true]>i:before{transform:translateX(9px)}.party-ready-prompt>h2{font-size:29px}}
@media(max-height:620px){.party-ready-emblem{width:100px;height:100px;margin-bottom:12px}.party-ready-emblem>img{width:88px;height:88px}.party-ready-prompt>h2{font-size:29px}.party-ready-actions{margin-top:18px}.party-ready-ornament{margin-top:17px}}
@media(prefers-reduced-motion:reduce){#party-ready-root,.party-ready-prompt,.party-ready-prompt>h2{animation:none!important}.party-auto-ready>i,.party-auto-ready>i:before{transition:none}}
#app.reduced-motion #party-ready-root,#app.reduced-motion .party-ready-prompt,#app.reduced-motion .party-ready-prompt>h2{animation:none!important}
